@dxos/plugin-github 0.7.4 → 0.13.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 (628) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +784 -0
  3. package/dist/lib/GitHubCapabilities.mjs +10 -0
  4. package/dist/lib/GitHubCapabilities.mjs.map +1 -0
  5. package/dist/lib/GitHubEvents.mjs +15 -0
  6. package/dist/lib/GitHubEvents.mjs.map +1 -0
  7. package/dist/lib/GitHubOperation.mjs +358 -0
  8. package/dist/lib/GitHubOperation.mjs.map +1 -0
  9. package/dist/lib/GitHubPlugin.mjs +16 -0
  10. package/dist/lib/GitHubPlugin.mjs.map +1 -0
  11. package/dist/lib/Walkthrough.mjs +59 -0
  12. package/dist/lib/Walkthrough.mjs.map +1 -0
  13. package/dist/lib/capabilities.browser.mjs +54 -0
  14. package/dist/lib/capabilities.browser.mjs.map +1 -0
  15. package/dist/lib/capabilities.mjs +54 -0
  16. package/dist/lib/capabilities.mjs.map +1 -0
  17. package/dist/lib/capabilities.node.mjs +30 -0
  18. package/dist/lib/capabilities.node.mjs.map +1 -0
  19. package/dist/lib/capabilities.tauri.mjs +54 -0
  20. package/dist/lib/capabilities.tauri.mjs.map +1 -0
  21. package/dist/lib/capabilities.workerd.mjs +30 -0
  22. package/dist/lib/capabilities.workerd.mjs.map +1 -0
  23. package/dist/lib/chunk-ImportPullRequestDialog.mjs +116 -0
  24. package/dist/lib/chunk-ImportPullRequestDialog.mjs.map +1 -0
  25. package/dist/lib/chunk-PLUGIN.mjs +6 -0
  26. package/dist/lib/chunk-PLUGIN.mjs.map +1 -0
  27. package/dist/lib/chunk-PullRequestArticle.mjs +1486 -0
  28. package/dist/lib/chunk-PullRequestArticle.mjs.map +1 -0
  29. package/dist/lib/chunk-PullRequestArticle2.mjs +2 -0
  30. package/dist/lib/chunk-PullRequestCardMenu.mjs +123 -0
  31. package/dist/lib/chunk-PullRequestCardMenu.mjs.map +1 -0
  32. package/dist/lib/chunk-PullRequestsArticle.mjs +594 -0
  33. package/dist/lib/chunk-PullRequestsArticle.mjs.map +1 -0
  34. package/dist/lib/chunk-WalkthroughArticle.mjs +26 -0
  35. package/dist/lib/chunk-WalkthroughArticle.mjs.map +1 -0
  36. package/dist/lib/chunk-add-pull-request-comment.mjs +19 -0
  37. package/dist/lib/chunk-add-pull-request-comment.mjs.map +1 -0
  38. package/dist/lib/chunk-add-pull-request-review-comment.mjs +25 -0
  39. package/dist/lib/chunk-add-pull-request-review-comment.mjs.map +1 -0
  40. package/dist/lib/chunk-app-graph-builder.mjs +39 -0
  41. package/dist/lib/chunk-app-graph-builder.mjs.map +1 -0
  42. package/dist/lib/chunk-connector.mjs +70 -0
  43. package/dist/lib/chunk-connector.mjs.map +1 -0
  44. package/dist/lib/chunk-constants.mjs +11 -0
  45. package/dist/lib/chunk-constants.mjs.map +1 -0
  46. package/dist/lib/chunk-errors.mjs +29 -0
  47. package/dist/lib/chunk-errors.mjs.map +1 -0
  48. package/dist/lib/chunk-generate-walkthrough.mjs +86 -0
  49. package/dist/lib/chunk-generate-walkthrough.mjs.map +1 -0
  50. package/dist/lib/chunk-generate.mjs +719 -0
  51. package/dist/lib/chunk-generate.mjs.map +1 -0
  52. package/dist/lib/chunk-get-pull-request-diff.mjs +25 -0
  53. package/dist/lib/chunk-get-pull-request-diff.mjs.map +1 -0
  54. package/dist/lib/chunk-get-pull-request-status.mjs +29 -0
  55. package/dist/lib/chunk-get-pull-request-status.mjs.map +1 -0
  56. package/dist/lib/chunk-get-repositories.mjs +32 -0
  57. package/dist/lib/chunk-get-repositories.mjs.map +1 -0
  58. package/dist/lib/chunk-github-api.mjs +375 -0
  59. package/dist/lib/chunk-github-api.mjs.map +1 -0
  60. package/dist/lib/chunk-github-link.mjs +59 -0
  61. package/dist/lib/chunk-github-link.mjs.map +1 -0
  62. package/dist/lib/chunk-import-pull-request-from-snapshot.mjs +25 -0
  63. package/dist/lib/chunk-import-pull-request-from-snapshot.mjs.map +1 -0
  64. package/dist/lib/chunk-import-pull-request.mjs +96 -0
  65. package/dist/lib/chunk-import-pull-request.mjs.map +1 -0
  66. package/dist/lib/chunk-link-resolver.mjs +109 -0
  67. package/dist/lib/chunk-link-resolver.mjs.map +1 -0
  68. package/dist/lib/chunk-markdown-extension.mjs +92 -0
  69. package/dist/lib/chunk-markdown-extension.mjs.map +1 -0
  70. package/dist/lib/chunk-materialize-target.mjs +36 -0
  71. package/dist/lib/chunk-materialize-target.mjs.map +1 -0
  72. package/dist/lib/chunk-operation-handler.mjs +12 -0
  73. package/dist/lib/chunk-operation-handler.mjs.map +1 -0
  74. package/dist/lib/chunk-page-action.mjs +22 -0
  75. package/dist/lib/chunk-page-action.mjs.map +1 -0
  76. package/dist/lib/chunk-pull-request.mjs +58 -0
  77. package/dist/lib/chunk-pull-request.mjs.map +1 -0
  78. package/dist/lib/chunk-pull-request2.mjs +110 -0
  79. package/dist/lib/chunk-pull-request2.mjs.map +1 -0
  80. package/dist/lib/chunk-react-surface.mjs +233 -0
  81. package/dist/lib/chunk-react-surface.mjs.map +1 -0
  82. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  83. package/dist/lib/chunk-schema.mjs +15 -0
  84. package/dist/lib/chunk-schema.mjs.map +1 -0
  85. package/dist/lib/chunk-skill-definition.mjs +10 -0
  86. package/dist/lib/chunk-skill-definition.mjs.map +1 -0
  87. package/dist/lib/chunk-submit-pull-request-approval.mjs +56 -0
  88. package/dist/lib/chunk-submit-pull-request-approval.mjs.map +1 -0
  89. package/dist/lib/chunk-sync-pull-request.mjs +24 -0
  90. package/dist/lib/chunk-sync-pull-request.mjs.map +1 -0
  91. package/dist/lib/chunk-sync.mjs +481 -0
  92. package/dist/lib/chunk-sync.mjs.map +1 -0
  93. package/dist/lib/chunk-useOpenObject.mjs +43 -0
  94. package/dist/lib/chunk-useOpenObject.mjs.map +1 -0
  95. package/dist/lib/extensions.mjs +132 -0
  96. package/dist/lib/extensions.mjs.map +1 -0
  97. package/dist/lib/index.mjs +4 -0
  98. package/dist/lib/meta.mjs +47 -0
  99. package/dist/lib/meta.mjs.map +1 -0
  100. package/dist/lib/ns/Extensions.mjs +18 -0
  101. package/dist/lib/ns/Extensions.mjs.map +1 -0
  102. package/dist/lib/operations.mjs +22 -0
  103. package/dist/lib/operations.mjs.map +1 -0
  104. package/dist/lib/plugin.mjs +9 -0
  105. package/dist/lib/plugin.mjs.map +1 -0
  106. package/dist/lib/skills.mjs +44 -0
  107. package/dist/lib/skills.mjs.map +1 -0
  108. package/dist/lib/testing.mjs +189 -0
  109. package/dist/lib/testing.mjs.map +1 -0
  110. package/dist/lib/translations.mjs +136 -0
  111. package/dist/lib/translations.mjs.map +1 -0
  112. package/dist/lib/types.mjs +5 -0
  113. package/dist/types/dx.config.d.ts +28 -0
  114. package/dist/types/dx.config.d.ts.map +1 -0
  115. package/dist/types/src/Extensions.d.ts +2 -0
  116. package/dist/types/src/Extensions.d.ts.map +1 -0
  117. package/dist/types/src/GitHubPlugin.d.ts +37 -0
  118. package/dist/types/src/GitHubPlugin.d.ts.map +1 -0
  119. package/dist/types/src/GitHubPlugin.workerd.test.d.ts +2 -0
  120. package/dist/types/src/GitHubPlugin.workerd.test.d.ts.map +1 -0
  121. package/dist/types/src/approval.d.ts +21 -0
  122. package/dist/types/src/approval.d.ts.map +1 -0
  123. package/dist/types/src/approval.test.d.ts +2 -0
  124. package/dist/types/src/approval.test.d.ts.map +1 -0
  125. package/dist/types/src/capabilities/app-graph-builder.d.ts +9 -0
  126. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  127. package/dist/types/src/capabilities/connector.d.ts +17 -0
  128. package/dist/types/src/capabilities/connector.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/gen/browser.d.ts +13 -0
  130. package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/gen/node.d.ts +13 -0
  132. package/dist/types/src/capabilities/gen/node.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/gen/tauri.d.ts +13 -0
  134. package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/gen/workerd.d.ts +13 -0
  136. package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/index.d.ts +13 -0
  138. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/link-resolver.d.ts +10 -0
  140. package/dist/types/src/capabilities/link-resolver.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/markdown-extension.d.ts +14 -0
  142. package/dist/types/src/capabilities/markdown-extension.d.ts.map +1 -0
  143. package/dist/types/src/capabilities/operation-handler.d.ts +5 -0
  144. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/page-action.d.ts +5 -0
  146. package/dist/types/src/capabilities/page-action.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  148. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/schema.d.ts +12 -0
  150. package/dist/types/src/capabilities/schema.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
  152. package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
  153. package/dist/types/src/cards/GitHubCard.d.ts +11 -0
  154. package/dist/types/src/cards/GitHubCard.d.ts.map +1 -0
  155. package/dist/types/src/cards/GitHubCard.stories.d.ts +45 -0
  156. package/dist/types/src/cards/GitHubCard.stories.d.ts.map +1 -0
  157. package/dist/types/src/cards/PullRequestCard.d.ts +9 -0
  158. package/dist/types/src/cards/PullRequestCard.d.ts.map +1 -0
  159. package/dist/types/src/cards/index.d.ts +3 -0
  160. package/dist/types/src/cards/index.d.ts.map +1 -0
  161. package/dist/types/src/components/CommentComposer/CommentComposer.d.ts +30 -0
  162. package/dist/types/src/components/CommentComposer/CommentComposer.d.ts.map +1 -0
  163. package/dist/types/src/components/CommentComposer/index.d.ts +2 -0
  164. package/dist/types/src/components/CommentComposer/index.d.ts.map +1 -0
  165. package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts +8 -0
  166. package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts.map +1 -0
  167. package/dist/types/src/components/PullRequestFiles/FileTree.d.ts +17 -0
  168. package/dist/types/src/components/PullRequestFiles/FileTree.d.ts.map +1 -0
  169. package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts +23 -0
  170. package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts.map +1 -0
  171. package/dist/types/src/components/PullRequestFiles/files.d.ts +39 -0
  172. package/dist/types/src/components/PullRequestFiles/files.d.ts.map +1 -0
  173. package/dist/types/src/components/PullRequestFiles/files.test.d.ts +2 -0
  174. package/dist/types/src/components/PullRequestFiles/files.test.d.ts.map +1 -0
  175. package/dist/types/src/components/PullRequestFiles/index.d.ts +5 -0
  176. package/dist/types/src/components/PullRequestFiles/index.d.ts.map +1 -0
  177. package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts +21 -0
  178. package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts.map +1 -0
  179. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts +15 -0
  180. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts.map +1 -0
  181. package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts +10 -0
  182. package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts.map +1 -0
  183. package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts +16 -0
  184. package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts.map +1 -0
  185. package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts +28 -0
  186. package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts.map +1 -0
  187. package/dist/types/src/components/PullRequestOverview/index.d.ts +6 -0
  188. package/dist/types/src/components/PullRequestOverview/index.d.ts.map +1 -0
  189. package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts +20 -0
  190. package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts.map +1 -0
  191. package/dist/types/src/components/PullRequestStatus/index.d.ts +2 -0
  192. package/dist/types/src/components/PullRequestStatus/index.d.ts.map +1 -0
  193. package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts +18 -0
  194. package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts.map +1 -0
  195. package/dist/types/src/components/WalkthroughView/extensions.d.ts +16 -0
  196. package/dist/types/src/components/WalkthroughView/extensions.d.ts.map +1 -0
  197. package/dist/types/src/components/WalkthroughView/index.d.ts +3 -0
  198. package/dist/types/src/components/WalkthroughView/index.d.ts.map +1 -0
  199. package/dist/types/src/components/index.d.ts +5 -8
  200. package/dist/types/src/components/index.d.ts.map +1 -1
  201. package/dist/types/src/constants.d.ts +7 -0
  202. package/dist/types/src/constants.d.ts.map +1 -0
  203. package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts +6 -0
  204. package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts.map +1 -0
  205. package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts +3 -0
  206. package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts.map +1 -0
  207. package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts +15 -0
  208. package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts.map +1 -0
  209. package/dist/types/src/containers/PullRequestArticle/failure.d.ts +10 -0
  210. package/dist/types/src/containers/PullRequestArticle/failure.d.ts.map +1 -0
  211. package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts +2 -0
  212. package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts.map +1 -0
  213. package/dist/types/src/containers/PullRequestArticle/index.d.ts +2 -0
  214. package/dist/types/src/containers/PullRequestArticle/index.d.ts.map +1 -0
  215. package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts +14 -0
  216. package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts.map +1 -0
  217. package/dist/types/src/containers/PullRequestCardMenu/index.d.ts +2 -0
  218. package/dist/types/src/containers/PullRequestCardMenu/index.d.ts.map +1 -0
  219. package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts +13 -0
  220. package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts.map +1 -0
  221. package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts +44 -0
  222. package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts.map +1 -0
  223. package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts +2 -0
  224. package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts.map +1 -0
  225. package/dist/types/src/containers/PullRequestsArticle/format.d.ts +3 -0
  226. package/dist/types/src/containers/PullRequestsArticle/format.d.ts.map +1 -0
  227. package/dist/types/src/containers/PullRequestsArticle/index.d.ts +2 -0
  228. package/dist/types/src/containers/PullRequestsArticle/index.d.ts.map +1 -0
  229. package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts +13 -0
  230. package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts.map +1 -0
  231. package/dist/types/src/containers/WalkthroughArticle/index.d.ts +2 -0
  232. package/dist/types/src/containers/WalkthroughArticle/index.d.ts.map +1 -0
  233. package/dist/types/src/containers/index.d.ts +7 -0
  234. package/dist/types/src/containers/index.d.ts.map +1 -0
  235. package/dist/types/src/errors.d.ts +157 -0
  236. package/dist/types/src/errors.d.ts.map +1 -0
  237. package/dist/types/src/extensions/index.d.ts +3 -0
  238. package/dist/types/src/extensions/index.d.ts.map +1 -0
  239. package/dist/types/src/extensions/links.d.ts +21 -0
  240. package/dist/types/src/extensions/links.d.ts.map +1 -0
  241. package/dist/types/src/extensions/links.test.d.ts +2 -0
  242. package/dist/types/src/extensions/links.test.d.ts.map +1 -0
  243. package/dist/types/src/extensions/references.d.ts +23 -0
  244. package/dist/types/src/extensions/references.d.ts.map +1 -0
  245. package/dist/types/src/extensions/references.test.d.ts +2 -0
  246. package/dist/types/src/extensions/references.test.d.ts.map +1 -0
  247. package/dist/types/src/github-link.d.ts +29 -0
  248. package/dist/types/src/github-link.d.ts.map +1 -0
  249. package/dist/types/src/hooks/index.d.ts +5 -2
  250. package/dist/types/src/hooks/index.d.ts.map +1 -1
  251. package/dist/types/src/hooks/useOpenObject.d.ts +9 -0
  252. package/dist/types/src/hooks/useOpenObject.d.ts.map +1 -0
  253. package/dist/types/src/hooks/usePullRequestChecks.d.ts +10 -0
  254. package/dist/types/src/hooks/usePullRequestChecks.d.ts.map +1 -0
  255. package/dist/types/src/hooks/usePullRequestDiff.d.ts +12 -0
  256. package/dist/types/src/hooks/usePullRequestDiff.d.ts.map +1 -0
  257. package/dist/types/src/hooks/usePullRequestFiles.d.ts +22 -0
  258. package/dist/types/src/hooks/usePullRequestFiles.d.ts.map +1 -0
  259. package/dist/types/src/hooks/useSyncPullRequest.d.ts +10 -0
  260. package/dist/types/src/hooks/useSyncPullRequest.d.ts.map +1 -0
  261. package/dist/types/src/index.d.ts +3 -3
  262. package/dist/types/src/index.d.ts.map +1 -1
  263. package/dist/types/src/meta.d.ts +34 -11
  264. package/dist/types/src/meta.d.ts.map +1 -1
  265. package/dist/types/src/operations/add-pull-request-comment.d.ts +5 -0
  266. package/dist/types/src/operations/add-pull-request-comment.d.ts.map +1 -0
  267. package/dist/types/src/operations/add-pull-request-review-comment.d.ts +5 -0
  268. package/dist/types/src/operations/add-pull-request-review-comment.d.ts.map +1 -0
  269. package/dist/types/src/operations/generate-walkthrough.d.ts +11 -0
  270. package/dist/types/src/operations/generate-walkthrough.d.ts.map +1 -0
  271. package/dist/types/src/operations/get-pull-request-diff.d.ts +5 -0
  272. package/dist/types/src/operations/get-pull-request-diff.d.ts.map +1 -0
  273. package/dist/types/src/operations/get-pull-request-status.d.ts +5 -0
  274. package/dist/types/src/operations/get-pull-request-status.d.ts.map +1 -0
  275. package/dist/types/src/operations/get-repositories.d.ts +13 -0
  276. package/dist/types/src/operations/get-repositories.d.ts.map +1 -0
  277. package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts +12 -0
  278. package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts.map +1 -0
  279. package/dist/types/src/operations/import-pull-request.d.ts +63 -0
  280. package/dist/types/src/operations/import-pull-request.d.ts.map +1 -0
  281. package/dist/types/src/operations/import-pull-request.test.d.ts +2 -0
  282. package/dist/types/src/operations/import-pull-request.test.d.ts.map +1 -0
  283. package/dist/types/src/operations/index.d.ts +3 -0
  284. package/dist/types/src/operations/index.d.ts.map +1 -0
  285. package/dist/types/src/operations/materialize-target.d.ts +12 -0
  286. package/dist/types/src/operations/materialize-target.d.ts.map +1 -0
  287. package/dist/types/src/operations/pull-request.d.ts +48 -0
  288. package/dist/types/src/operations/pull-request.d.ts.map +1 -0
  289. package/dist/types/src/operations/pull-request.test.d.ts +2 -0
  290. package/dist/types/src/operations/pull-request.test.d.ts.map +1 -0
  291. package/dist/types/src/operations/submit-pull-request-approval.d.ts +5 -0
  292. package/dist/types/src/operations/submit-pull-request-approval.d.ts.map +1 -0
  293. package/dist/types/src/operations/sync-pull-request.d.ts +5 -0
  294. package/dist/types/src/operations/sync-pull-request.d.ts.map +1 -0
  295. package/dist/types/src/operations/sync.d.ts +123 -0
  296. package/dist/types/src/operations/sync.d.ts.map +1 -0
  297. package/dist/types/src/operations/sync.test.d.ts +2 -0
  298. package/dist/types/src/operations/sync.test.d.ts.map +1 -0
  299. package/dist/types/src/plugin.d.ts +4 -0
  300. package/dist/types/src/plugin.d.ts.map +1 -0
  301. package/dist/types/src/plugin.test.d.ts +2 -0
  302. package/dist/types/src/plugin.test.d.ts.map +1 -0
  303. package/dist/types/src/pull-request-body.d.ts +37 -0
  304. package/dist/types/src/pull-request-body.d.ts.map +1 -0
  305. package/dist/types/src/pull-request-body.test.d.ts +2 -0
  306. package/dist/types/src/pull-request-body.test.d.ts.map +1 -0
  307. package/dist/types/src/pull-request.d.ts +28 -0
  308. package/dist/types/src/pull-request.d.ts.map +1 -0
  309. package/dist/types/src/pull-request.test.d.ts +2 -0
  310. package/dist/types/src/pull-request.test.d.ts.map +1 -0
  311. package/dist/types/src/services/github-api.d.ts +332 -0
  312. package/dist/types/src/services/github-api.d.ts.map +1 -0
  313. package/dist/types/src/services/index.d.ts +2 -0
  314. package/dist/types/src/services/index.d.ts.map +1 -0
  315. package/dist/types/src/skills/GitHubSkill.d.ts +12 -0
  316. package/dist/types/src/skills/GitHubSkill.d.ts.map +1 -0
  317. package/dist/types/src/skills/index.d.ts +2 -0
  318. package/dist/types/src/skills/index.d.ts.map +1 -0
  319. package/dist/types/src/stories/Generate.stories.d.ts +27 -0
  320. package/dist/types/src/stories/Generate.stories.d.ts.map +1 -0
  321. package/dist/types/src/stories/Links.stories.d.ts +23 -0
  322. package/dist/types/src/stories/Links.stories.d.ts.map +1 -0
  323. package/dist/types/src/stories/PullRequestArticle.stories.d.ts +359 -0
  324. package/dist/types/src/stories/PullRequestArticle.stories.d.ts.map +1 -0
  325. package/dist/types/src/stories/PullRequestFiles.stories.d.ts +365 -0
  326. package/dist/types/src/stories/PullRequestFiles.stories.d.ts.map +1 -0
  327. package/dist/types/src/stories/PullRequestOverview.stories.d.ts +367 -0
  328. package/dist/types/src/stories/PullRequestOverview.stories.d.ts.map +1 -0
  329. package/dist/types/src/stories/PullRequestsArticle.stories.d.ts +357 -0
  330. package/dist/types/src/stories/PullRequestsArticle.stories.d.ts.map +1 -0
  331. package/dist/types/src/stories/Walkthrough.stories.d.ts +380 -0
  332. package/dist/types/src/stories/Walkthrough.stories.d.ts.map +1 -0
  333. package/dist/types/src/stories/github.d.ts +23 -0
  334. package/dist/types/src/stories/github.d.ts.map +1 -0
  335. package/dist/types/src/stories/github.test.d.ts +2 -0
  336. package/dist/types/src/stories/github.test.d.ts.map +1 -0
  337. package/dist/types/src/stories/walkthrough-fixture.d.ts +8 -0
  338. package/dist/types/src/stories/walkthrough-fixture.d.ts.map +1 -0
  339. package/dist/types/src/testing/fixtures.d.ts +14 -0
  340. package/dist/types/src/testing/fixtures.d.ts.map +1 -0
  341. package/dist/types/src/testing/index.d.ts +4 -0
  342. package/dist/types/src/testing/index.d.ts.map +1 -0
  343. package/dist/types/src/testing/plugin.d.ts +4 -0
  344. package/dist/types/src/testing/plugin.d.ts.map +1 -0
  345. package/dist/types/src/testing/pull-request-13348.d.ts +6 -0
  346. package/dist/types/src/testing/pull-request-13348.d.ts.map +1 -0
  347. package/dist/types/src/translations.d.ts +339 -53
  348. package/dist/types/src/translations.d.ts.map +1 -1
  349. package/dist/types/src/types/GitHubCapabilities.d.ts +13 -0
  350. package/dist/types/src/types/GitHubCapabilities.d.ts.map +1 -0
  351. package/dist/types/src/types/GitHubEvents.d.ts +8 -0
  352. package/dist/types/src/types/GitHubEvents.d.ts.map +1 -0
  353. package/dist/types/src/types/GitHubOperation.d.ts +270 -0
  354. package/dist/types/src/types/GitHubOperation.d.ts.map +1 -0
  355. package/dist/types/src/types/PullRequestsView.d.ts +35 -0
  356. package/dist/types/src/types/PullRequestsView.d.ts.map +1 -0
  357. package/dist/types/src/types/Walkthrough.d.ts +31 -0
  358. package/dist/types/src/types/Walkthrough.d.ts.map +1 -0
  359. package/dist/types/src/types/Walkthrough.test.d.ts +2 -0
  360. package/dist/types/src/types/Walkthrough.test.d.ts.map +1 -0
  361. package/dist/types/src/types/index.d.ts +5 -0
  362. package/dist/types/src/types/index.d.ts.map +1 -0
  363. package/dist/types/src/walkthrough/fill.d.ts +28 -0
  364. package/dist/types/src/walkthrough/fill.d.ts.map +1 -0
  365. package/dist/types/src/walkthrough/fill.test.d.ts +2 -0
  366. package/dist/types/src/walkthrough/fill.test.d.ts.map +1 -0
  367. package/dist/types/src/walkthrough/generate.d.ts +67 -0
  368. package/dist/types/src/walkthrough/generate.d.ts.map +1 -0
  369. package/dist/types/src/walkthrough/generate.test.d.ts +2 -0
  370. package/dist/types/src/walkthrough/generate.test.d.ts.map +1 -0
  371. package/dist/types/src/walkthrough/generated.d.ts +20 -0
  372. package/dist/types/src/walkthrough/generated.d.ts.map +1 -0
  373. package/dist/types/src/walkthrough/generated.test.d.ts +2 -0
  374. package/dist/types/src/walkthrough/generated.test.d.ts.map +1 -0
  375. package/dist/types/src/walkthrough/headings.d.ts +8 -0
  376. package/dist/types/src/walkthrough/headings.d.ts.map +1 -0
  377. package/dist/types/src/walkthrough/headings.test.d.ts +2 -0
  378. package/dist/types/src/walkthrough/headings.test.d.ts.map +1 -0
  379. package/dist/types/src/walkthrough/index.d.ts +9 -0
  380. package/dist/types/src/walkthrough/index.d.ts.map +1 -0
  381. package/dist/types/src/walkthrough/patch.d.ts +48 -0
  382. package/dist/types/src/walkthrough/patch.d.ts.map +1 -0
  383. package/dist/types/src/walkthrough/plan.d.ts +55 -0
  384. package/dist/types/src/walkthrough/plan.d.ts.map +1 -0
  385. package/dist/types/src/walkthrough/plan.test.d.ts +2 -0
  386. package/dist/types/src/walkthrough/plan.test.d.ts.map +1 -0
  387. package/dist/types/src/walkthrough/prompt.d.ts +33 -0
  388. package/dist/types/src/walkthrough/prompt.d.ts.map +1 -0
  389. package/dist/types/src/walkthrough/prompt.test.d.ts +2 -0
  390. package/dist/types/src/walkthrough/prompt.test.d.ts.map +1 -0
  391. package/dist/types/src/walkthrough/score.d.ts +43 -0
  392. package/dist/types/src/walkthrough/score.d.ts.map +1 -0
  393. package/dist/types/src/walkthrough/score.test.d.ts +2 -0
  394. package/dist/types/src/walkthrough/score.test.d.ts.map +1 -0
  395. package/dist/types/tsconfig.tsbuildinfo +1 -0
  396. package/dx.config.ts +39 -0
  397. package/package.json +167 -48
  398. package/src/Extensions.ts +7 -0
  399. package/src/GitHubPlugin.ts +15 -0
  400. package/src/GitHubPlugin.workerd.test.ts +23 -0
  401. package/src/approval.test.ts +40 -0
  402. package/src/approval.ts +39 -0
  403. package/src/capabilities/app-graph-builder.ts +47 -0
  404. package/src/capabilities/connector.ts +95 -0
  405. package/src/capabilities/gen/browser.ts +82 -0
  406. package/src/capabilities/gen/node.ts +43 -0
  407. package/src/capabilities/gen/tauri.ts +82 -0
  408. package/src/capabilities/gen/workerd.ts +43 -0
  409. package/src/capabilities/index.ts +71 -0
  410. package/src/capabilities/link-resolver.ts +137 -0
  411. package/src/capabilities/markdown-extension.ts +146 -0
  412. package/src/capabilities/operation-handler.ts +16 -0
  413. package/src/capabilities/page-action.ts +32 -0
  414. package/src/capabilities/react-surface.ts +98 -0
  415. package/src/capabilities/schema.ts +16 -0
  416. package/src/capabilities/skill-definition.ts +14 -0
  417. package/src/cards/GitHubCard.stories.tsx +165 -0
  418. package/src/cards/GitHubCard.tsx +93 -0
  419. package/src/cards/PullRequestCard.tsx +23 -0
  420. package/src/cards/index.ts +6 -0
  421. package/src/components/CommentComposer/CommentComposer.tsx +109 -0
  422. package/src/components/CommentComposer/index.ts +5 -0
  423. package/src/components/PullRequestFiles/DiffStat.tsx +15 -0
  424. package/src/components/PullRequestFiles/FileTree.tsx +102 -0
  425. package/src/components/PullRequestFiles/PullRequestFiles.tsx +87 -0
  426. package/src/components/PullRequestFiles/files.test.ts +59 -0
  427. package/src/components/PullRequestFiles/files.ts +115 -0
  428. package/src/components/PullRequestFiles/index.ts +8 -0
  429. package/src/components/PullRequestOverview/ArtifactPill.tsx +82 -0
  430. package/src/components/PullRequestOverview/CheckRunList.tsx +120 -0
  431. package/src/components/PullRequestOverview/PullRequestDetails.tsx +15 -0
  432. package/src/components/PullRequestOverview/PullRequestOverview.tsx +110 -0
  433. package/src/components/PullRequestOverview/RelatedCards.tsx +147 -0
  434. package/src/components/PullRequestOverview/index.ts +9 -0
  435. package/src/components/PullRequestStatus/PullRequestStatus.tsx +81 -0
  436. package/src/components/PullRequestStatus/index.ts +5 -0
  437. package/src/components/WalkthroughView/WalkthroughView.tsx +62 -0
  438. package/src/components/WalkthroughView/extensions.ts +53 -0
  439. package/src/components/WalkthroughView/index.ts +6 -0
  440. package/src/components/index.ts +6 -9
  441. package/src/constants.ts +12 -0
  442. package/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.tsx +160 -0
  443. package/src/containers/ImportPullRequestDialog/index.ts +7 -0
  444. package/src/containers/PullRequestArticle/PullRequestArticle.tsx +573 -0
  445. package/src/containers/PullRequestArticle/failure.test.ts +42 -0
  446. package/src/containers/PullRequestArticle/failure.ts +16 -0
  447. package/src/containers/PullRequestArticle/index.ts +5 -0
  448. package/src/containers/PullRequestCardMenu/PullRequestCardMenu.tsx +134 -0
  449. package/src/containers/PullRequestCardMenu/index.ts +5 -0
  450. package/src/containers/PullRequestsArticle/PullRequestsArticle.tsx +361 -0
  451. package/src/containers/PullRequestsArticle/arrange.test.ts +122 -0
  452. package/src/containers/PullRequestsArticle/arrange.ts +245 -0
  453. package/src/containers/PullRequestsArticle/format.ts +31 -0
  454. package/src/containers/PullRequestsArticle/index.ts +5 -0
  455. package/src/containers/WalkthroughArticle/WalkthroughArticle.tsx +31 -0
  456. package/src/containers/WalkthroughArticle/index.ts +5 -0
  457. package/src/containers/index.ts +11 -0
  458. package/src/errors.ts +61 -0
  459. package/src/extensions/index.ts +6 -0
  460. package/src/extensions/links.test.ts +133 -0
  461. package/src/extensions/links.ts +91 -0
  462. package/src/extensions/references.test.ts +83 -0
  463. package/src/extensions/references.ts +100 -0
  464. package/src/github-link.ts +70 -0
  465. package/src/hooks/index.ts +6 -3
  466. package/src/hooks/useOpenObject.ts +48 -0
  467. package/src/hooks/usePullRequestChecks.ts +81 -0
  468. package/src/hooks/usePullRequestDiff.ts +57 -0
  469. package/src/hooks/usePullRequestFiles.ts +98 -0
  470. package/src/hooks/useSyncPullRequest.ts +51 -0
  471. package/src/index.ts +4 -6
  472. package/src/meta.ts +8 -13
  473. package/src/operations/add-pull-request-comment.ts +31 -0
  474. package/src/operations/add-pull-request-review-comment.ts +32 -0
  475. package/src/operations/generate-walkthrough.ts +124 -0
  476. package/src/operations/get-pull-request-diff.ts +37 -0
  477. package/src/operations/get-pull-request-status.ts +44 -0
  478. package/src/operations/get-repositories.ts +53 -0
  479. package/src/operations/import-pull-request-from-snapshot.ts +48 -0
  480. package/src/operations/import-pull-request.test.ts +151 -0
  481. package/src/operations/import-pull-request.ts +141 -0
  482. package/src/operations/index.ts +29 -0
  483. package/src/operations/materialize-target.ts +60 -0
  484. package/src/operations/pull-request.test.ts +120 -0
  485. package/src/operations/pull-request.ts +141 -0
  486. package/src/operations/submit-pull-request-approval.ts +41 -0
  487. package/src/operations/sync-pull-request.ts +37 -0
  488. package/src/operations/sync.test.ts +453 -0
  489. package/src/operations/sync.ts +807 -0
  490. package/src/plugin.test.ts +40 -0
  491. package/src/plugin.ts +37 -0
  492. package/src/pull-request-body.test.ts +61 -0
  493. package/src/pull-request-body.ts +144 -0
  494. package/src/pull-request.test.ts +67 -0
  495. package/src/pull-request.ts +80 -0
  496. package/src/services/github-api.ts +735 -0
  497. package/src/services/index.ts +5 -0
  498. package/src/skills/GitHubSkill.ts +46 -0
  499. package/src/skills/index.ts +5 -0
  500. package/src/stories/Generate.stories.tsx +152 -0
  501. package/src/stories/Links.stories.tsx +153 -0
  502. package/src/stories/PullRequestArticle.stories.tsx +107 -0
  503. package/src/stories/PullRequestFiles.stories.tsx +69 -0
  504. package/src/stories/PullRequestOverview.stories.tsx +113 -0
  505. package/src/stories/PullRequestsArticle.stories.tsx +170 -0
  506. package/src/stories/Walkthrough.stories.tsx +110 -0
  507. package/src/stories/github.test.ts +65 -0
  508. package/src/stories/github.ts +70 -0
  509. package/src/stories/walkthrough-fixture.ts +115 -0
  510. package/src/testing/fixtures.ts +99 -0
  511. package/src/testing/index.ts +7 -0
  512. package/src/testing/plugin.ts +25 -0
  513. package/src/testing/pull-request-13348.ts +104 -0
  514. package/src/testing/pull-request-13363.patch +2981 -0
  515. package/src/translations.ts +135 -63
  516. package/src/types/GitHubCapabilities.ts +27 -0
  517. package/src/types/GitHubEvents.ts +16 -0
  518. package/src/types/GitHubOperation.ts +371 -0
  519. package/src/types/PullRequestsView.ts +45 -0
  520. package/src/types/Walkthrough.test.ts +75 -0
  521. package/src/types/Walkthrough.ts +66 -0
  522. package/src/types/index.ts +8 -0
  523. package/src/vite-env.d.ts +15 -0
  524. package/src/walkthrough/fill.test.ts +337 -0
  525. package/src/walkthrough/fill.ts +246 -0
  526. package/src/walkthrough/generate.test.ts +219 -0
  527. package/src/walkthrough/generate.ts +248 -0
  528. package/src/walkthrough/generated.test.ts +70 -0
  529. package/src/walkthrough/generated.ts +70 -0
  530. package/src/walkthrough/headings.test.ts +40 -0
  531. package/src/walkthrough/headings.ts +39 -0
  532. package/src/walkthrough/index.ts +12 -0
  533. package/src/walkthrough/patch.ts +154 -0
  534. package/src/walkthrough/plan.test.ts +178 -0
  535. package/src/walkthrough/plan.ts +251 -0
  536. package/src/walkthrough/prompt.test.ts +100 -0
  537. package/src/walkthrough/prompt.ts +147 -0
  538. package/src/walkthrough/score.test.ts +272 -0
  539. package/src/walkthrough/score.ts +430 -0
  540. package/README.md +0 -15
  541. package/dist/lib/browser/chunk-S4MPSBA5.mjs +0 -21
  542. package/dist/lib/browser/chunk-S4MPSBA5.mjs.map +0 -7
  543. package/dist/lib/browser/index.css +0 -7
  544. package/dist/lib/browser/index.css.map +0 -7
  545. package/dist/lib/browser/index.mjs +0 -1535
  546. package/dist/lib/browser/index.mjs.map +0 -7
  547. package/dist/lib/browser/meta.json +0 -1
  548. package/dist/lib/browser/meta.mjs +0 -11
  549. package/dist/lib/browser/meta.mjs.map +0 -7
  550. package/dist/types/src/GithubPlugin.d.ts +0 -4
  551. package/dist/types/src/GithubPlugin.d.ts.map +0 -1
  552. package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts +0 -4
  553. package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts.map +0 -1
  554. package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts +0 -9
  555. package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts.map +0 -1
  556. package/dist/types/src/components/EmbeddedMain/index.d.ts +0 -2
  557. package/dist/types/src/components/EmbeddedMain/index.d.ts.map +0 -1
  558. package/dist/types/src/components/ExportDialog.d.ts +0 -8
  559. package/dist/types/src/components/ExportDialog.d.ts.map +0 -1
  560. package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts +0 -3
  561. package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts.map +0 -1
  562. package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts +0 -15
  563. package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts.map +0 -1
  564. package/dist/types/src/components/GithubApiProviders/index.d.ts +0 -3
  565. package/dist/types/src/components/GithubApiProviders/index.d.ts.map +0 -1
  566. package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts +0 -6
  567. package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts.map +0 -1
  568. package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts +0 -7
  569. package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts.map +0 -1
  570. package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts +0 -6
  571. package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts.map +0 -1
  572. package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts +0 -16
  573. package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts.map +0 -1
  574. package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts +0 -3
  575. package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts.map +0 -1
  576. package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts +0 -11
  577. package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts.map +0 -1
  578. package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts +0 -3
  579. package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts.map +0 -1
  580. package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts +0 -6
  581. package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts.map +0 -1
  582. package/dist/types/src/components/ImportDialog.d.ts +0 -7
  583. package/dist/types/src/components/ImportDialog.d.ts.map +0 -1
  584. package/dist/types/src/components/Issue.d.ts +0 -5
  585. package/dist/types/src/components/Issue.d.ts.map +0 -1
  586. package/dist/types/src/components/Loading/Loading.d.ts +0 -15
  587. package/dist/types/src/components/Loading/Loading.d.ts.map +0 -1
  588. package/dist/types/src/components/Loading/Loading.stories.d.ts +0 -40
  589. package/dist/types/src/components/Loading/Loading.stories.d.ts.map +0 -1
  590. package/dist/types/src/components/Loading/index.d.ts +0 -2
  591. package/dist/types/src/components/Loading/index.d.ts.map +0 -1
  592. package/dist/types/src/components/MarkdownActions.d.ts +0 -7
  593. package/dist/types/src/components/MarkdownActions.d.ts.map +0 -1
  594. package/dist/types/src/components/UrlDialog.d.ts +0 -6
  595. package/dist/types/src/components/UrlDialog.d.ts.map +0 -1
  596. package/dist/types/src/hooks/useDocGhId.d.ts +0 -6
  597. package/dist/types/src/hooks/useDocGhId.d.ts.map +0 -1
  598. package/dist/types/src/hooks/useGhIdFromUrl.d.ts +0 -2
  599. package/dist/types/src/hooks/useGhIdFromUrl.d.ts.map +0 -1
  600. package/dist/types/src/types.d.ts +0 -30
  601. package/dist/types/src/types.d.ts.map +0 -1
  602. package/src/GithubPlugin.tsx +0 -127
  603. package/src/components/EmbeddedMain/EmbeddedMain.tsx +0 -294
  604. package/src/components/EmbeddedMain/GfmPreview.tsx +0 -110
  605. package/src/components/EmbeddedMain/embedded.css +0 -3
  606. package/src/components/EmbeddedMain/index.ts +0 -5
  607. package/src/components/ExportDialog.tsx +0 -157
  608. package/src/components/GithubApiProviders/GitHubSettings.tsx +0 -72
  609. package/src/components/GithubApiProviders/OctokitProvider.tsx +0 -60
  610. package/src/components/GithubApiProviders/index.ts +0 -6
  611. package/src/components/GithubEchoResolverProviders/DocumentTreeItem.tsx +0 -26
  612. package/src/components/GithubEchoResolverProviders/ResolverContext.tsx +0 -137
  613. package/src/components/GithubEchoResolverProviders/ResolverDialog.tsx +0 -34
  614. package/src/components/GithubEchoResolverProviders/ResolverProps.ts +0 -23
  615. package/src/components/GithubEchoResolverProviders/ResolverTree.tsx +0 -86
  616. package/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.tsx +0 -105
  617. package/src/components/GithubEchoResolverProviders/index.ts +0 -6
  618. package/src/components/GithubEchoResolverProviders/spaceResolvers.ts +0 -86
  619. package/src/components/ImportDialog.tsx +0 -72
  620. package/src/components/Issue.tsx +0 -62
  621. package/src/components/Loading/Loading.stories.tsx +0 -32
  622. package/src/components/Loading/Loading.tsx +0 -70
  623. package/src/components/Loading/index.ts +0 -5
  624. package/src/components/MarkdownActions.tsx +0 -136
  625. package/src/components/UrlDialog.tsx +0 -52
  626. package/src/hooks/useDocGhId.ts +0 -38
  627. package/src/hooks/useGhIdFromUrl.ts +0 -26
  628. package/src/types.ts +0 -51
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cards/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React, { type RefObject } from 'react';
2
+ import { type DiffLineTarget } from '@dxos/ui-editor';
3
+ export type CommentComposerProps = {
4
+ value: string;
5
+ busy?: boolean;
6
+ /** The diff line the comment is addressed to, named above the field; absent for a pull request comment. */
7
+ target?: DiffLineTarget;
8
+ onValueChange: (value: string) => void;
9
+ onSubmit: () => void;
10
+ onCancel: () => void;
11
+ };
12
+ /**
13
+ * The comment field, its target and its buttons — rendered as a band under the pull request header
14
+ * when the comment is about the pull request, and inside {@link LineCommentPopover} when it is
15
+ * about one line of a diff.
16
+ */
17
+ export declare const CommentComposer: ({ value, busy, target, onValueChange, onSubmit, onCancel }: CommentComposerProps) => React.JSX.Element;
18
+ /** The composer as a band under the toolbar, for a comment on the pull request as a whole. */
19
+ export declare const CommentBand: (props: CommentComposerProps) => React.JSX.Element;
20
+ export type LineCommentPopoverProps = CommentComposerProps & {
21
+ open: boolean;
22
+ /** The diff line's comment button, which CodeMirror owns; the popover is positioned at it. */
23
+ anchorRef: RefObject<HTMLElement | null>;
24
+ };
25
+ /**
26
+ * The composer floated at the diff line it addresses, so the reader reads the comment against the
27
+ * code it is about rather than against a band at the other end of the document.
28
+ */
29
+ export declare const LineCommentPopover: ({ open, anchorRef, ...props }: LineCommentPopoverProps) => React.JSX.Element;
30
+ //# sourceMappingURL=CommentComposer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommentComposer.d.ts","sourceRoot":"","sources":["../../../../../src/components/CommentComposer/CommentComposer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAsB,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;AAS/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2GAA2G;IAC3G,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,+DAAgE,oBAAoB,sBAyC/G,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,WAAW,UAAW,oBAAoB,sBAItD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG;IAC3D,IAAI,EAAE,OAAO,CAAC;IACd,8FAA8F;IAC9F,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,kCAAmC,uBAAuB,sBAgBxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './CommentComposer.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CommentComposer/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export type DiffStatProps = {
3
+ added: number;
4
+ removed: number;
5
+ };
6
+ /** `+12 -3`, coloured as the diff gutters are, with a zero count left out. */
7
+ export declare const DiffStat: ({ added, removed }: DiffStatProps) => React.JSX.Element;
8
+ //# sourceMappingURL=DiffStat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiffStat.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/DiffStat.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,8EAA8E;AAC9E,eAAO,MAAM,QAAQ,uBAAwB,aAAa,sBAKzD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type FileNode } from './files.ts';
3
+ export type FileTreeProps = {
4
+ root: FileNode;
5
+ /** Path of the file on screen. */
6
+ selected?: string;
7
+ /** Paths of the files the reader has checked off. */
8
+ reviewed: ReadonlySet<string>;
9
+ onSelect: (path: string) => void;
10
+ onReviewedChange: (path: string, reviewed: boolean) => void;
11
+ };
12
+ /**
13
+ * The changed files as a tree: a checkbox per file to mark it reviewed, its change counts at the
14
+ * trailing edge, and the file on screen as the current row.
15
+ */
16
+ export declare const FileTree: ({ root, selected, reviewed, onSelect, onReviewedChange }: FileTreeProps) => React.JSX.Element;
17
+ //# sourceMappingURL=FileTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/FileTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,6DAA8D,aAAa,sBAwE/F,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { type DiffLineTarget } from '@dxos/ui-editor';
3
+ import { type PatchFile } from '../../walkthrough/patch.ts';
4
+ import { type FileNode } from './files.ts';
5
+ export type PullRequestFilesProps = {
6
+ /** Undefined while the diff is loading. */
7
+ tree?: FileNode;
8
+ /** The file on screen. */
9
+ file?: PatchFile;
10
+ reviewed: ReadonlySet<string>;
11
+ total: number;
12
+ /** Shown in place of the files when the diff could not be read. */
13
+ error?: string;
14
+ onSelect: (path: string) => void;
15
+ onReviewedChange: (path: string, reviewed: boolean) => void;
16
+ onLineComment?: (target: DiffLineTarget, anchor: HTMLElement) => void;
17
+ };
18
+ /**
19
+ * Every changed file, one at a time: the file's diff rendered as a walkthrough chunk, beside a rail
20
+ * listing the changed files as a tree the reader checks off as they go.
21
+ */
22
+ export declare const PullRequestFiles: ({ tree, file, reviewed, total, error, onSelect, onReviewedChange, onLineComment, }: PullRequestFilesProps) => React.JSX.Element;
23
+ //# sourceMappingURL=PullRequestFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestFiles.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/PullRequestFiles.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,YAAY,CAAC;AAGtD,MAAM,MAAM,qBAAqB,GAAG;IAClC,2CAA2C;IAC3C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,uFAS1B,qBAAqB,sBAuCvB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { type PatchFile } from '../../walkthrough/patch.ts';
2
+ /** A node of the changed-file tree: a directory (with children) or a changed file (with its patch). */
3
+ export type FileNode = {
4
+ /**
5
+ * A generated id rather than the path: the tree joins ids into row paths with a separator a file
6
+ * name may itself contain (`+page.svelte`).
7
+ */
8
+ id: string;
9
+ /** The full path of the file or directory; the synthetic root's is empty. */
10
+ path: string;
11
+ /** What the row shows: a base name, or a run of directories that each hold only one child. */
12
+ name: string;
13
+ file?: PatchFile;
14
+ children: FileNode[];
15
+ added: number;
16
+ removed: number;
17
+ };
18
+ /** Id of the synthetic root the tree model anchors its top-level rows to; never rendered. */
19
+ export declare const FILE_TREE_ROOT = "root";
20
+ /**
21
+ * The changed files as a directory tree, directories before files and each alphabetical — the order
22
+ * GitHub's own file tree uses. A directory whose only child is another directory is folded into one
23
+ * row (`src/components`), since a chain of single-entry folders is depth without information.
24
+ */
25
+ export declare const buildFileTree: (files: readonly PatchFile[]) => FileNode;
26
+ /** The files in the order the tree lists them, which is the order previous/next walks. */
27
+ export declare const flattenFiles: (node: FileNode) => PatchFile[];
28
+ /**
29
+ * One file's change as the ```diff fence the walkthrough renders, so the files view shows a file
30
+ * exactly as a walkthrough chunk would. The fence is one backtick longer than any run in the body:
31
+ * a context line of a markdown file can itself be a fence, which would otherwise close this one.
32
+ */
33
+ export declare const diffFence: (file: PatchFile) => string;
34
+ /**
35
+ * A short digest of a file's change. A file is reviewed at a signature: when a push changes the
36
+ * file its signature moves and the check falls away, as GitHub's "Viewed" does.
37
+ */
38
+ export declare const fileSignature: (file: PatchFile) => string;
39
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,4BAA4B,CAAC;AAEzE,uGAAuG;AACvG,MAAM,MAAM,QAAQ,GAAG;IACrB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,8FAA8F;IAC9F,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,SAAS,SAAS,EAAE,KAAG,QA4C3D,CAAC;AAKF,0FAA0F;AAC1F,eAAO,MAAM,YAAY,SAAU,QAAQ,KAAG,SAAS,EACQ,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,KAAG,MAK3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,SAAU,SAAS,KAAG,MAc/C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=files.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/files.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './DiffStat.tsx';
2
+ export * from './files.ts';
3
+ export * from './FileTree.tsx';
4
+ export * from './PullRequestFiles.tsx';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestFiles/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { type ArtifactKind, type ArtifactLink } from '../../pull-request-body.ts';
3
+ /** The leading icon for each kind of artifact. */
4
+ export declare const artifactIcon: Record<ArtifactKind, string>;
5
+ /** The image or video itself, or nothing for a file the browser cannot show inline. */
6
+ export declare const ArtifactMedia: ({ artifact, classNames }: {
7
+ artifact: ArtifactLink;
8
+ classNames?: string;
9
+ }) => React.JSX.Element | null;
10
+ export type ArtifactPillProps = {
11
+ artifact: ArtifactLink;
12
+ /** The link's text; the file name when it was written bare. */
13
+ children?: ReactNode;
14
+ };
15
+ /**
16
+ * An artifact link as a pill that previews its image or video in place, so a reader sees the demo
17
+ * without leaving the pull request. The outline matches the anchor chip a GitHub link becomes, so
18
+ * the body's links read as one kind of thing.
19
+ */
20
+ export declare const ArtifactPill: ({ artifact, children }: ArtifactPillProps) => React.JSX.Element;
21
+ //# sourceMappingURL=ArtifactPill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactPill.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/ArtifactPill.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAElF,kDAAkD;AAClD,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAIrD,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,aAAa,6BAA8B;IAAE,QAAQ,EAAE,YAAY,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,6BAmB7F,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,2BAA4B,iBAAiB,sBA8BrE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type GitHubOperation } from '#types';
3
+ /** `4m 12s`, or undefined for a run that has not both started and finished. */
4
+ export declare const formatDuration: (startedAt?: string, completedAt?: string) => string | undefined;
5
+ /** Sorts runs by what needs attention, then by name so shards read in order. */
6
+ export declare const sortCheckRuns: (runs: readonly GitHubOperation.CheckRun[]) => GitHubOperation.CheckRun[];
7
+ export type CheckRunListProps = {
8
+ /** Undefined while the status is loading. */
9
+ runs?: readonly GitHubOperation.CheckRun[];
10
+ };
11
+ /** Every check on the head commit: its outcome, how long it took, and its logs a click away. */
12
+ export declare const CheckRunList: ({ runs }: CheckRunListProps) => React.JSX.Element;
13
+ /** The label the checks section carries: the counts once there are runs to count. */
14
+ export declare const useCheckSummary: (runs?: readonly GitHubOperation.CheckRun[]) => string;
15
+ //# sourceMappingURL=CheckRunList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckRunList.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/CheckRunList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAa9C,+EAA+E;AAC/E,eAAO,MAAM,cAAc,eAAgB,MAAM,gBAAgB,MAAM,KAAG,MAAM,GAAG,SAUlF,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,aAAa,SAAU,SAAS,eAAe,CAAC,QAAQ,EAAE,KAAG,eAAe,CAAC,QAAQ,EAK/F,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,eAAe,CAAC,QAAQ,EAAE,CAAC;CAC5C,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,YAAY,aAAc,iBAAiB,sBA0CvD,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,eAAe,UAAW,SAAS,eAAe,CAAC,QAAQ,EAAE,KAAG,MAuB5E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as Schema from 'effect/Schema';
2
+ /** What the overview's details section shows, as a read-only form: one row per fact about the pull request. */
3
+ export declare const PullRequestDetailsSchema: Schema.Struct<{
4
+ readonly reference: Schema.String;
5
+ readonly state: Schema.optional<Schema.String>;
6
+ readonly checks: Schema.optional<Schema.String>;
7
+ readonly branches: Schema.optional<Schema.String>;
8
+ }>;
9
+ export type PullRequestDetailsValues = Schema.Schema.Type<typeof PullRequestDetailsSchema>;
10
+ //# sourceMappingURL=PullRequestDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/PullRequestDetails.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,+GAA+G;AAC/G,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type GitHubOperation } from '#types';
3
+ import { type PullRequestDetailsValues } from './PullRequestDetails.tsx';
4
+ export type PullRequestOverviewProps = {
5
+ /** The pull request's description as written on GitHub, footers included. */
6
+ body?: string;
7
+ details: PullRequestDetailsValues;
8
+ /** Undefined while the status is loading. */
9
+ runs?: readonly GitHubOperation.CheckRun[];
10
+ };
11
+ /**
12
+ * A pull request as its author presented it: the description, the facts about it, what it links to
13
+ * beyond the diff, and every check on its head commit.
14
+ */
15
+ export declare const PullRequestOverview: ({ body, details, runs }: PullRequestOverviewProps) => React.JSX.Element;
16
+ //# sourceMappingURL=PullRequestOverview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestOverview.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/PullRequestOverview.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAA4B,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAGnG,MAAM,MAAM,wBAAwB,GAAG;IACrC,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,wBAAwB,CAAC;IAClC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,eAAe,CAAC,QAAQ,EAAE,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4BAA6B,wBAAwB,sBAiCpF,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { type ArtifactLink, type PullRequestBody } from '../../pull-request-body.ts';
3
+ /** One tile of the related grid: a demo artifact, or a link out of the pull request. */
4
+ export type RelatedItem = {
5
+ kind: 'artifact';
6
+ id: string;
7
+ artifact: ArtifactLink;
8
+ } | {
9
+ kind: 'link';
10
+ id: string;
11
+ icon: string;
12
+ iconClassNames?: string;
13
+ title: string;
14
+ href?: string;
15
+ detail?: string;
16
+ };
17
+ export type RelatedCardsProps = Pick<PullRequestBody, 'artifacts' | 'claudeCode' | 'previewUrl'>;
18
+ /** What {@link RelatedCards} would show; empty when the pull request links to nothing beyond its diff. */
19
+ export declare const useRelatedItems: ({ artifacts, claudeCode, previewUrl }: RelatedCardsProps) => RelatedItem[];
20
+ /**
21
+ * What the pull request points at beyond its diff, one card each — its demo media, the preview
22
+ * deployment built from it, and the session that wrote it — in the masonry grid related objects
23
+ * use everywhere else. Renders inside its host's scroller rather than owning one.
24
+ */
25
+ export declare const RelatedCards: ({ items }: {
26
+ items: readonly RelatedItem[];
27
+ }) => React.JSX.Element;
28
+ //# sourceMappingURL=RelatedCards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelatedCards.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/RelatedCards.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGrF,wFAAwF;AACxF,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC,CAAC;AAEjG,0GAA0G;AAC1G,eAAO,MAAM,eAAe,0CAA2C,iBAAiB,KAAG,WAAW,EA4BrG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,cAAe;IAAE,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;CAAE,sBAIxE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './ArtifactPill.tsx';
2
+ export * from './CheckRunList.tsx';
3
+ export * from './PullRequestDetails.tsx';
4
+ export * from './PullRequestOverview.tsx';
5
+ export * from './RelatedCards.tsx';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestOverview/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { type PullRequest } from '@dxos/types';
3
+ import { type GitHubOperation } from '#types';
4
+ export type PullRequestStatusProps = {
5
+ reference: string;
6
+ title?: string;
7
+ state?: PullRequest.State;
8
+ /** Absent until the live status has arrived; the review and CI tags read as unknown until then. */
9
+ review?: {
10
+ state: GitHubOperation.ReviewState;
11
+ approvals: number;
12
+ };
13
+ ci?: {
14
+ state: GitHubOperation.CiState;
15
+ checks: GitHubOperation.CheckCounts;
16
+ };
17
+ };
18
+ /** One line answering where the pull request stands: open or merged, approved or not, CI green or red. */
19
+ export declare const PullRequestStatus: ({ reference, title, state, review, ci }: PullRequestStatusProps) => React.JSX.Element;
20
+ //# sourceMappingURL=PullRequestStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestStatus/PullRequestStatus.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAsB9C,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC;IAC1B,mGAAmG;IACnG,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,eAAe,CAAC,WAAW,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,EAAE,CAAC,EAAE;QAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAAC,MAAM,EAAE,eAAe,CAAC,WAAW,CAAA;KAAE,CAAC;CAC9E,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,iBAAiB,4CAA6C,sBAAsB,sBAsChG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './PullRequestStatus.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PullRequestStatus/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { type DiffDocumentOptions } from './extensions.ts';
3
+ export type WalkthroughViewProps = Omit<DiffDocumentOptions, 'themeMode'> & {
4
+ /** The markdown document: prose, headings and ```diff fences. */
5
+ value: string;
6
+ };
7
+ /**
8
+ * A read-only diff document: a whole walkthrough with its navigation rail, or one file's change as a
9
+ * single fence. Either way the chunks are the walkthrough's own, so a file reads the same in both.
10
+ */
11
+ export declare const WalkthroughView: ({ value, sidebar, layout, onLineComment }: WalkthroughViewProps) => React.JSX.Element;
12
+ export type WalkthroughPlaceholderProps = {
13
+ generating?: boolean;
14
+ onGenerate: () => void;
15
+ };
16
+ /** What the walkthrough tab shows before there is a walkthrough: the offer to write one, or its progress. */
17
+ export declare const WalkthroughPlaceholder: ({ generating, onGenerate }: WalkthroughPlaceholderProps) => React.JSX.Element;
18
+ //# sourceMappingURL=WalkthroughView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalkthroughView.d.ts","sourceRoot":"","sources":["../../../../../src/components/WalkthroughView/WalkthroughView.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,OAAO,EAAE,KAAK,mBAAmB,EAA0B,MAAM,iBAAiB,CAAC;AAEnF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IAC1E,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,8CAA+C,oBAAoB,sBAe9F,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,sBAAsB,+BAAgC,2BAA2B,sBAY7F,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type DiffLayout, type DiffLineTarget } from '@dxos/ui-editor';
3
+ import { type ThemeMode } from '@dxos/ui-types';
4
+ export type DiffDocumentOptions = {
5
+ themeMode: ThemeMode;
6
+ /** The navigation rail beside the document; `none` for a document that is a single file. */
7
+ sidebar?: 'full' | 'stats' | 'none';
8
+ layout?: DiffLayout;
9
+ onLineComment?: (target: DiffLineTarget, anchor: HTMLElement) => void;
10
+ };
11
+ /**
12
+ * A read-only markdown document whose ```diff fences render as diff chunks — the one reading surface
13
+ * both a walkthrough and a single changed file are shown in, so the two cannot drift apart.
14
+ */
15
+ export declare const diffDocumentExtensions: ({ themeMode, sidebar, layout, onLineComment, }: DiffDocumentOptions) => Extension;
16
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../../src/components/WalkthroughView/extensions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EAUpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOhD,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACpC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,mDAKhC,mBAAmB,KAAG,SASxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './extensions.ts';
2
+ export * from './WalkthroughView.tsx';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/WalkthroughView/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -1,9 +1,6 @@
1
- export * from './EmbeddedMain';
2
- export * from './ExportDialog';
3
- export * from './GithubApiProviders';
4
- export * from './GithubEchoResolverProviders';
5
- export * from './ImportDialog';
6
- export * from './Issue';
7
- export * from './MarkdownActions';
8
- export * from './UrlDialog';
1
+ export * from './CommentComposer/index.ts';
2
+ export * from './PullRequestFiles/index.ts';
3
+ export * from './PullRequestOverview/index.ts';
4
+ export * from './PullRequestStatus/index.ts';
5
+ export * from './WalkthroughView/index.ts';
9
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Source string used in `AccessToken.source` and `Obj.Meta.keys[i].source` for GitHub. */
2
+ export declare const GITHUB_SOURCE = "github.com";
3
+ /** Connector id matching the `ConnectorEntry.id` contributed by this plugin. */
4
+ export declare const GITHUB_PROVIDER_ID = "github";
5
+ /** Base URL for the GitHub REST API. */
6
+ export declare const GITHUB_API_BASE = "https://api.github.com";
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAIA,2FAA2F;AAC3F,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,wCAAwC;AACxC,eAAO,MAAM,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function ImportPullRequestDialog(): React.JSX.Element;
3
+ export declare namespace ImportPullRequestDialog {
4
+ var displayName: string;
5
+ }
6
+ //# sourceMappingURL=ImportPullRequestDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImportPullRequestDialog.d.ts","sourceRoot":"","sources":["../../../../../src/containers/ImportPullRequestDialog/ImportPullRequestDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsB,MAAM,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './ImportPullRequestDialog.tsx';
2
+ export { ImportPullRequestDialog as default } from './ImportPullRequestDialog.tsx';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/ImportPullRequestDialog/index.ts"],"names":[],"mappings":"AAIA,cAAc,+BAA+B,CAAC;AAE9C,OAAO,EAAE,uBAAuB,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type * as AppSurface from '@dxos/app-toolkit/AppSurface';
3
+ import { PullRequest } from '@dxos/types';
4
+ export type PullRequestArticleProps = AppSurface.ObjectArticleProps<PullRequest.PullRequest>;
5
+ /**
6
+ * A pull request read as a review: its number, state and CI outcome above whatever narration the
7
+ * space holds, with approving and commenting one click away. Everything GitHub-side goes through
8
+ * the space's GitHub connection.
9
+ *
10
+ * The pull request is the subject rather than the walkthrough because one exists before the other
11
+ * does: a pull request just imported has no narration yet, and generating it is an action ON the
12
+ * pull request, not a different object to open.
13
+ */
14
+ export declare const PullRequestArticle: ({ role, attendableId, subject: pullRequest }: PullRequestArticleProps) => React.JSX.Element;
15
+ //# sourceMappingURL=PullRequestArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestArticle/PullRequestArticle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,KAAK,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAchE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA0C1C,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAE7F;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,iDAAkD,uBAAuB,sBAgfvG,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Names a pull-request action's failure so the user knows what to do about it.
3
+ *
4
+ * A rejected credential is the one failure the user can fix themselves, and it is indistinguishable
5
+ * from any other error once it reaches the toast as `error.message` — GitHub answers it as a bare
6
+ * `401`, which surfaces as `StatusCode: non 2xx status code (401 GET …)`. Matches the same
7
+ * distinction `ImportPullRequestDialog` already draws on `tokenStatus`.
8
+ */
9
+ export declare const pullRequestFailureKey: (error: unknown, fallbackKey: string) => string;
10
+ //# sourceMappingURL=failure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failure.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestArticle/failure.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,UAAW,OAAO,eAAe,MAAM,KAAG,MACW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=failure.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failure.test.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestArticle/failure.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { PullRequestArticle as default } from './PullRequestArticle.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type * as AppSurface from '@dxos/app-toolkit/AppSurface';
2
+ import { PullRequest } from '@dxos/types';
3
+ export type PullRequestCardMenuProps = AppSurface.CardMenuData<PullRequest.PullRequest>;
4
+ /**
5
+ * Adds "Open walkthrough" or "Generate walkthrough" to a pull request card's menu, whichever applies.
6
+ *
7
+ * Either way what opens is the pull request: the walkthrough is what its article renders, so a
8
+ * generation that is still running does not leave the reader with nothing to open. A preview card
9
+ * holds a pull request minted in memory from its URL, so the stored copy with the same
10
+ * owner/repo/number is what the menu acts on — in the pull request's own space when it has one,
11
+ * otherwise the space the user is working in.
12
+ */
13
+ export declare const PullRequestCardMenu: ({ subject, menu }: PullRequestCardMenuProps) => null;
14
+ //# sourceMappingURL=PullRequestCardMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestCardMenu.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestCardMenu/PullRequestCardMenu.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAQhE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAU1C,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,YAAY,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAExF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,sBAAuB,wBAAwB,SAoE9E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { PullRequestCardMenu as default } from './PullRequestCardMenu.tsx';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestCardMenu/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { type Database } from '@dxos/echo';
3
+ export type PullRequestsArticleProps = {
4
+ role?: string;
5
+ attendableId: string;
6
+ /** The space's database; absent when the type node carries no space, which renders nothing. */
7
+ db?: Database.Database;
8
+ };
9
+ export declare function PullRequestsArticle({ db, ...props }: PullRequestsArticleProps): React.JSX.Element | null;
10
+ export declare namespace PullRequestsArticle {
11
+ var displayName: string;
12
+ }
13
+ //# sourceMappingURL=PullRequestsArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullRequestsArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestsArticle/PullRequestsArticle.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,KAAK,QAAQ,EAA0B,MAAM,YAAY,CAAC;AAmDnE,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,+FAA+F;IAC/F,EAAE,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;CACxB,CAAC;4CAQkC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB"}
@@ -0,0 +1,44 @@
1
+ import { type Filter } from '@dxos/echo';
2
+ import { PullRequest, type Task } from '@dxos/types';
3
+ import { type GitHubOperation } from '#types';
4
+ import type * as PullRequestsView from '../../types/PullRequestsView.ts';
5
+ /** The live part of a pull request's standing, read from GitHub rather than stored. */
6
+ export type PullRequestChecks = {
7
+ ci: GitHubOperation.CiState;
8
+ checks: GitHubOperation.CheckCounts;
9
+ review: GitHubOperation.ReviewState;
10
+ approvals: number;
11
+ };
12
+ /** One row of the list: the stored pull request, its live checks once they arrive, and the tasks that list it. */
13
+ export type PullRequestRow = {
14
+ pullRequest: PullRequest.PullRequest;
15
+ checks?: PullRequestChecks;
16
+ tasks: readonly Task.Task[];
17
+ };
18
+ export type PullRequestRowGroup = {
19
+ id: string;
20
+ /** A literal (a repository, an author) or a translation key in the plugin's namespace. */
21
+ label: string;
22
+ translate?: boolean;
23
+ icon: string;
24
+ hue?: string;
25
+ rows: readonly PullRequestRow[];
26
+ };
27
+ /** The rows the toolbar's query keeps, in input order; an absent filter keeps every row. */
28
+ export declare const filterRows: (rows: readonly PullRequestRow[], filter?: Filter.Any) => readonly PullRequestRow[];
29
+ /**
30
+ * How much a row asks of the reader now: an open pull request outranks a draft, which outranks a
31
+ * finished one; within those, red CI or requested changes (something to fix) outrank one ready to
32
+ * merge, which outranks one still waiting; and a pull request some task tracks is nudged up.
33
+ */
34
+ export declare const relevance: ({ pullRequest, checks, tasks }: PullRequestRow) => number;
35
+ /** The rows reordered by `sort`, ties kept in input order. */
36
+ export declare const sortRows: (rows: readonly PullRequestRow[], sort: PullRequestsView.Sort) => readonly PullRequestRow[];
37
+ export declare const STATE_HUE: Record<PullRequest.State, string>;
38
+ export declare const CI_HUE: Record<GitHubOperation.CiState, string>;
39
+ /**
40
+ * The rows partitioned by `field`, each group's rows in input order (so a sort applies within every
41
+ * group). Absent for `none`: an ungrouped list has no headers.
42
+ */
43
+ export declare const groupRows: (rows: readonly PullRequestRow[], field: PullRequestsView.GroupField) => PullRequestRowGroup[] | undefined;
44
+ //# sourceMappingURL=arrange.d.ts.map