@dxos/plugin-github 0.7.4 → 0.14.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 (642) 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 +384 -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 +1506 -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 +171 -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-refresh-pull-requests.mjs +49 -0
  83. package/dist/lib/chunk-refresh-pull-requests.mjs.map +1 -0
  84. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  85. package/dist/lib/chunk-schema.mjs +15 -0
  86. package/dist/lib/chunk-schema.mjs.map +1 -0
  87. package/dist/lib/chunk-skill-definition.mjs +10 -0
  88. package/dist/lib/chunk-skill-definition.mjs.map +1 -0
  89. package/dist/lib/chunk-submit-pull-request-approval.mjs +56 -0
  90. package/dist/lib/chunk-submit-pull-request-approval.mjs.map +1 -0
  91. package/dist/lib/chunk-sync-pull-request.mjs +26 -0
  92. package/dist/lib/chunk-sync-pull-request.mjs.map +1 -0
  93. package/dist/lib/chunk-sync.mjs +481 -0
  94. package/dist/lib/chunk-sync.mjs.map +1 -0
  95. package/dist/lib/chunk-useOpenObject.mjs +43 -0
  96. package/dist/lib/chunk-useOpenObject.mjs.map +1 -0
  97. package/dist/lib/extensions.mjs +132 -0
  98. package/dist/lib/extensions.mjs.map +1 -0
  99. package/dist/lib/index.mjs +4 -0
  100. package/dist/lib/meta.mjs +47 -0
  101. package/dist/lib/meta.mjs.map +1 -0
  102. package/dist/lib/ns/Extensions.mjs +18 -0
  103. package/dist/lib/ns/Extensions.mjs.map +1 -0
  104. package/dist/lib/operations.mjs +23 -0
  105. package/dist/lib/operations.mjs.map +1 -0
  106. package/dist/lib/plugin.mjs +9 -0
  107. package/dist/lib/plugin.mjs.map +1 -0
  108. package/dist/lib/skills.mjs +44 -0
  109. package/dist/lib/skills.mjs.map +1 -0
  110. package/dist/lib/testing.mjs +189 -0
  111. package/dist/lib/testing.mjs.map +1 -0
  112. package/dist/lib/translations.mjs +136 -0
  113. package/dist/lib/translations.mjs.map +1 -0
  114. package/dist/lib/types.mjs +5 -0
  115. package/dist/types/dx.config.d.ts +28 -0
  116. package/dist/types/dx.config.d.ts.map +1 -0
  117. package/dist/types/src/Extensions.d.ts +2 -0
  118. package/dist/types/src/Extensions.d.ts.map +1 -0
  119. package/dist/types/src/GitHubPlugin.d.ts +37 -0
  120. package/dist/types/src/GitHubPlugin.d.ts.map +1 -0
  121. package/dist/types/src/GitHubPlugin.workerd.test.d.ts +2 -0
  122. package/dist/types/src/GitHubPlugin.workerd.test.d.ts.map +1 -0
  123. package/dist/types/src/approval.d.ts +21 -0
  124. package/dist/types/src/approval.d.ts.map +1 -0
  125. package/dist/types/src/approval.test.d.ts +2 -0
  126. package/dist/types/src/approval.test.d.ts.map +1 -0
  127. package/dist/types/src/capabilities/app-graph-builder.d.ts +9 -0
  128. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/connector.d.ts +17 -0
  130. package/dist/types/src/capabilities/connector.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/gen/browser.d.ts +13 -0
  132. package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/gen/node.d.ts +13 -0
  134. package/dist/types/src/capabilities/gen/node.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/gen/tauri.d.ts +13 -0
  136. package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/gen/workerd.d.ts +13 -0
  138. package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/index.d.ts +13 -0
  140. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/link-resolver.d.ts +10 -0
  142. package/dist/types/src/capabilities/link-resolver.d.ts.map +1 -0
  143. package/dist/types/src/capabilities/markdown-extension.d.ts +14 -0
  144. package/dist/types/src/capabilities/markdown-extension.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/operation-handler.d.ts +5 -0
  146. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/page-action.d.ts +5 -0
  148. package/dist/types/src/capabilities/page-action.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  150. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/schema.d.ts +12 -0
  152. package/dist/types/src/capabilities/schema.d.ts.map +1 -0
  153. package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
  154. package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
  155. package/dist/types/src/cards/GitHubCard.d.ts +11 -0
  156. package/dist/types/src/cards/GitHubCard.d.ts.map +1 -0
  157. package/dist/types/src/cards/GitHubCard.stories.d.ts +45 -0
  158. package/dist/types/src/cards/GitHubCard.stories.d.ts.map +1 -0
  159. package/dist/types/src/cards/PullRequestCard.d.ts +9 -0
  160. package/dist/types/src/cards/PullRequestCard.d.ts.map +1 -0
  161. package/dist/types/src/cards/index.d.ts +3 -0
  162. package/dist/types/src/cards/index.d.ts.map +1 -0
  163. package/dist/types/src/components/CommentComposer/CommentComposer.d.ts +30 -0
  164. package/dist/types/src/components/CommentComposer/CommentComposer.d.ts.map +1 -0
  165. package/dist/types/src/components/CommentComposer/index.d.ts +2 -0
  166. package/dist/types/src/components/CommentComposer/index.d.ts.map +1 -0
  167. package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts +8 -0
  168. package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts.map +1 -0
  169. package/dist/types/src/components/PullRequestFiles/FileTree.d.ts +17 -0
  170. package/dist/types/src/components/PullRequestFiles/FileTree.d.ts.map +1 -0
  171. package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts +23 -0
  172. package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts.map +1 -0
  173. package/dist/types/src/components/PullRequestFiles/files.d.ts +39 -0
  174. package/dist/types/src/components/PullRequestFiles/files.d.ts.map +1 -0
  175. package/dist/types/src/components/PullRequestFiles/files.test.d.ts +2 -0
  176. package/dist/types/src/components/PullRequestFiles/files.test.d.ts.map +1 -0
  177. package/dist/types/src/components/PullRequestFiles/index.d.ts +5 -0
  178. package/dist/types/src/components/PullRequestFiles/index.d.ts.map +1 -0
  179. package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts +21 -0
  180. package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts.map +1 -0
  181. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts +18 -0
  182. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts.map +1 -0
  183. package/dist/types/src/components/PullRequestOverview/CheckRunList.test.d.ts +2 -0
  184. package/dist/types/src/components/PullRequestOverview/CheckRunList.test.d.ts.map +1 -0
  185. package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts +10 -0
  186. package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts.map +1 -0
  187. package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts +16 -0
  188. package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts.map +1 -0
  189. package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts +28 -0
  190. package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts.map +1 -0
  191. package/dist/types/src/components/PullRequestOverview/index.d.ts +6 -0
  192. package/dist/types/src/components/PullRequestOverview/index.d.ts.map +1 -0
  193. package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts +20 -0
  194. package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts.map +1 -0
  195. package/dist/types/src/components/PullRequestStatus/index.d.ts +2 -0
  196. package/dist/types/src/components/PullRequestStatus/index.d.ts.map +1 -0
  197. package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts +18 -0
  198. package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts.map +1 -0
  199. package/dist/types/src/components/WalkthroughView/extensions.d.ts +16 -0
  200. package/dist/types/src/components/WalkthroughView/extensions.d.ts.map +1 -0
  201. package/dist/types/src/components/WalkthroughView/index.d.ts +3 -0
  202. package/dist/types/src/components/WalkthroughView/index.d.ts.map +1 -0
  203. package/dist/types/src/components/index.d.ts +5 -8
  204. package/dist/types/src/components/index.d.ts.map +1 -1
  205. package/dist/types/src/constants.d.ts +7 -0
  206. package/dist/types/src/constants.d.ts.map +1 -0
  207. package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts +6 -0
  208. package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts.map +1 -0
  209. package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts +3 -0
  210. package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts.map +1 -0
  211. package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts +15 -0
  212. package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts.map +1 -0
  213. package/dist/types/src/containers/PullRequestArticle/failure.d.ts +10 -0
  214. package/dist/types/src/containers/PullRequestArticle/failure.d.ts.map +1 -0
  215. package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts +2 -0
  216. package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts.map +1 -0
  217. package/dist/types/src/containers/PullRequestArticle/index.d.ts +2 -0
  218. package/dist/types/src/containers/PullRequestArticle/index.d.ts.map +1 -0
  219. package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts +14 -0
  220. package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts.map +1 -0
  221. package/dist/types/src/containers/PullRequestCardMenu/index.d.ts +2 -0
  222. package/dist/types/src/containers/PullRequestCardMenu/index.d.ts.map +1 -0
  223. package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts +13 -0
  224. package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts.map +1 -0
  225. package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts +44 -0
  226. package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts.map +1 -0
  227. package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts +2 -0
  228. package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts.map +1 -0
  229. package/dist/types/src/containers/PullRequestsArticle/format.d.ts +3 -0
  230. package/dist/types/src/containers/PullRequestsArticle/format.d.ts.map +1 -0
  231. package/dist/types/src/containers/PullRequestsArticle/index.d.ts +2 -0
  232. package/dist/types/src/containers/PullRequestsArticle/index.d.ts.map +1 -0
  233. package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts +13 -0
  234. package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts.map +1 -0
  235. package/dist/types/src/containers/WalkthroughArticle/index.d.ts +2 -0
  236. package/dist/types/src/containers/WalkthroughArticle/index.d.ts.map +1 -0
  237. package/dist/types/src/containers/index.d.ts +7 -0
  238. package/dist/types/src/containers/index.d.ts.map +1 -0
  239. package/dist/types/src/errors.d.ts +157 -0
  240. package/dist/types/src/errors.d.ts.map +1 -0
  241. package/dist/types/src/extensions/index.d.ts +3 -0
  242. package/dist/types/src/extensions/index.d.ts.map +1 -0
  243. package/dist/types/src/extensions/links.d.ts +21 -0
  244. package/dist/types/src/extensions/links.d.ts.map +1 -0
  245. package/dist/types/src/extensions/links.test.d.ts +2 -0
  246. package/dist/types/src/extensions/links.test.d.ts.map +1 -0
  247. package/dist/types/src/extensions/references.d.ts +23 -0
  248. package/dist/types/src/extensions/references.d.ts.map +1 -0
  249. package/dist/types/src/extensions/references.test.d.ts +2 -0
  250. package/dist/types/src/extensions/references.test.d.ts.map +1 -0
  251. package/dist/types/src/github-link.d.ts +29 -0
  252. package/dist/types/src/github-link.d.ts.map +1 -0
  253. package/dist/types/src/hooks/index.d.ts +5 -2
  254. package/dist/types/src/hooks/index.d.ts.map +1 -1
  255. package/dist/types/src/hooks/useOpenObject.d.ts +9 -0
  256. package/dist/types/src/hooks/useOpenObject.d.ts.map +1 -0
  257. package/dist/types/src/hooks/usePullRequestChecks.d.ts +10 -0
  258. package/dist/types/src/hooks/usePullRequestChecks.d.ts.map +1 -0
  259. package/dist/types/src/hooks/usePullRequestDiff.d.ts +12 -0
  260. package/dist/types/src/hooks/usePullRequestDiff.d.ts.map +1 -0
  261. package/dist/types/src/hooks/usePullRequestFiles.d.ts +22 -0
  262. package/dist/types/src/hooks/usePullRequestFiles.d.ts.map +1 -0
  263. package/dist/types/src/hooks/useSyncPullRequest.d.ts +10 -0
  264. package/dist/types/src/hooks/useSyncPullRequest.d.ts.map +1 -0
  265. package/dist/types/src/index.d.ts +3 -3
  266. package/dist/types/src/index.d.ts.map +1 -1
  267. package/dist/types/src/meta.d.ts +34 -11
  268. package/dist/types/src/meta.d.ts.map +1 -1
  269. package/dist/types/src/operations/add-pull-request-comment.d.ts +5 -0
  270. package/dist/types/src/operations/add-pull-request-comment.d.ts.map +1 -0
  271. package/dist/types/src/operations/add-pull-request-review-comment.d.ts +5 -0
  272. package/dist/types/src/operations/add-pull-request-review-comment.d.ts.map +1 -0
  273. package/dist/types/src/operations/generate-walkthrough.d.ts +11 -0
  274. package/dist/types/src/operations/generate-walkthrough.d.ts.map +1 -0
  275. package/dist/types/src/operations/get-pull-request-diff.d.ts +5 -0
  276. package/dist/types/src/operations/get-pull-request-diff.d.ts.map +1 -0
  277. package/dist/types/src/operations/get-pull-request-status.d.ts +5 -0
  278. package/dist/types/src/operations/get-pull-request-status.d.ts.map +1 -0
  279. package/dist/types/src/operations/get-repositories.d.ts +13 -0
  280. package/dist/types/src/operations/get-repositories.d.ts.map +1 -0
  281. package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts +12 -0
  282. package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts.map +1 -0
  283. package/dist/types/src/operations/import-pull-request.d.ts +63 -0
  284. package/dist/types/src/operations/import-pull-request.d.ts.map +1 -0
  285. package/dist/types/src/operations/import-pull-request.test.d.ts +2 -0
  286. package/dist/types/src/operations/import-pull-request.test.d.ts.map +1 -0
  287. package/dist/types/src/operations/index.d.ts +3 -0
  288. package/dist/types/src/operations/index.d.ts.map +1 -0
  289. package/dist/types/src/operations/materialize-target.d.ts +12 -0
  290. package/dist/types/src/operations/materialize-target.d.ts.map +1 -0
  291. package/dist/types/src/operations/pull-request.d.ts +48 -0
  292. package/dist/types/src/operations/pull-request.d.ts.map +1 -0
  293. package/dist/types/src/operations/pull-request.test.d.ts +2 -0
  294. package/dist/types/src/operations/pull-request.test.d.ts.map +1 -0
  295. package/dist/types/src/operations/refresh-pull-requests.d.ts +5 -0
  296. package/dist/types/src/operations/refresh-pull-requests.d.ts.map +1 -0
  297. package/dist/types/src/operations/refresh.d.ts +37 -0
  298. package/dist/types/src/operations/refresh.d.ts.map +1 -0
  299. package/dist/types/src/operations/refresh.test.d.ts +2 -0
  300. package/dist/types/src/operations/refresh.test.d.ts.map +1 -0
  301. package/dist/types/src/operations/submit-pull-request-approval.d.ts +5 -0
  302. package/dist/types/src/operations/submit-pull-request-approval.d.ts.map +1 -0
  303. package/dist/types/src/operations/sync-pull-request.d.ts +5 -0
  304. package/dist/types/src/operations/sync-pull-request.d.ts.map +1 -0
  305. package/dist/types/src/operations/sync.d.ts +123 -0
  306. package/dist/types/src/operations/sync.d.ts.map +1 -0
  307. package/dist/types/src/operations/sync.test.d.ts +2 -0
  308. package/dist/types/src/operations/sync.test.d.ts.map +1 -0
  309. package/dist/types/src/plugin.d.ts +4 -0
  310. package/dist/types/src/plugin.d.ts.map +1 -0
  311. package/dist/types/src/plugin.test.d.ts +2 -0
  312. package/dist/types/src/plugin.test.d.ts.map +1 -0
  313. package/dist/types/src/pull-request-body.d.ts +37 -0
  314. package/dist/types/src/pull-request-body.d.ts.map +1 -0
  315. package/dist/types/src/pull-request-body.test.d.ts +2 -0
  316. package/dist/types/src/pull-request-body.test.d.ts.map +1 -0
  317. package/dist/types/src/pull-request.d.ts +28 -0
  318. package/dist/types/src/pull-request.d.ts.map +1 -0
  319. package/dist/types/src/pull-request.test.d.ts +2 -0
  320. package/dist/types/src/pull-request.test.d.ts.map +1 -0
  321. package/dist/types/src/services/github-api.d.ts +332 -0
  322. package/dist/types/src/services/github-api.d.ts.map +1 -0
  323. package/dist/types/src/services/index.d.ts +2 -0
  324. package/dist/types/src/services/index.d.ts.map +1 -0
  325. package/dist/types/src/skills/GitHubSkill.d.ts +12 -0
  326. package/dist/types/src/skills/GitHubSkill.d.ts.map +1 -0
  327. package/dist/types/src/skills/index.d.ts +2 -0
  328. package/dist/types/src/skills/index.d.ts.map +1 -0
  329. package/dist/types/src/stories/Generate.stories.d.ts +27 -0
  330. package/dist/types/src/stories/Generate.stories.d.ts.map +1 -0
  331. package/dist/types/src/stories/Links.stories.d.ts +23 -0
  332. package/dist/types/src/stories/Links.stories.d.ts.map +1 -0
  333. package/dist/types/src/stories/PullRequestArticle.stories.d.ts +359 -0
  334. package/dist/types/src/stories/PullRequestArticle.stories.d.ts.map +1 -0
  335. package/dist/types/src/stories/PullRequestFiles.stories.d.ts +365 -0
  336. package/dist/types/src/stories/PullRequestFiles.stories.d.ts.map +1 -0
  337. package/dist/types/src/stories/PullRequestOverview.stories.d.ts +367 -0
  338. package/dist/types/src/stories/PullRequestOverview.stories.d.ts.map +1 -0
  339. package/dist/types/src/stories/PullRequestsArticle.stories.d.ts +357 -0
  340. package/dist/types/src/stories/PullRequestsArticle.stories.d.ts.map +1 -0
  341. package/dist/types/src/stories/Walkthrough.stories.d.ts +380 -0
  342. package/dist/types/src/stories/Walkthrough.stories.d.ts.map +1 -0
  343. package/dist/types/src/stories/github.d.ts +23 -0
  344. package/dist/types/src/stories/github.d.ts.map +1 -0
  345. package/dist/types/src/stories/github.test.d.ts +2 -0
  346. package/dist/types/src/stories/github.test.d.ts.map +1 -0
  347. package/dist/types/src/stories/walkthrough-fixture.d.ts +8 -0
  348. package/dist/types/src/stories/walkthrough-fixture.d.ts.map +1 -0
  349. package/dist/types/src/testing/fixtures.d.ts +14 -0
  350. package/dist/types/src/testing/fixtures.d.ts.map +1 -0
  351. package/dist/types/src/testing/index.d.ts +4 -0
  352. package/dist/types/src/testing/index.d.ts.map +1 -0
  353. package/dist/types/src/testing/plugin.d.ts +4 -0
  354. package/dist/types/src/testing/plugin.d.ts.map +1 -0
  355. package/dist/types/src/testing/pull-request-13348.d.ts +6 -0
  356. package/dist/types/src/testing/pull-request-13348.d.ts.map +1 -0
  357. package/dist/types/src/translations.d.ts +339 -53
  358. package/dist/types/src/translations.d.ts.map +1 -1
  359. package/dist/types/src/types/GitHubCapabilities.d.ts +13 -0
  360. package/dist/types/src/types/GitHubCapabilities.d.ts.map +1 -0
  361. package/dist/types/src/types/GitHubEvents.d.ts +8 -0
  362. package/dist/types/src/types/GitHubEvents.d.ts.map +1 -0
  363. package/dist/types/src/types/GitHubOperation.d.ts +281 -0
  364. package/dist/types/src/types/GitHubOperation.d.ts.map +1 -0
  365. package/dist/types/src/types/PullRequestsView.d.ts +35 -0
  366. package/dist/types/src/types/PullRequestsView.d.ts.map +1 -0
  367. package/dist/types/src/types/Walkthrough.d.ts +31 -0
  368. package/dist/types/src/types/Walkthrough.d.ts.map +1 -0
  369. package/dist/types/src/types/Walkthrough.test.d.ts +2 -0
  370. package/dist/types/src/types/Walkthrough.test.d.ts.map +1 -0
  371. package/dist/types/src/types/index.d.ts +5 -0
  372. package/dist/types/src/types/index.d.ts.map +1 -0
  373. package/dist/types/src/walkthrough/fill.d.ts +28 -0
  374. package/dist/types/src/walkthrough/fill.d.ts.map +1 -0
  375. package/dist/types/src/walkthrough/fill.test.d.ts +2 -0
  376. package/dist/types/src/walkthrough/fill.test.d.ts.map +1 -0
  377. package/dist/types/src/walkthrough/generate.d.ts +67 -0
  378. package/dist/types/src/walkthrough/generate.d.ts.map +1 -0
  379. package/dist/types/src/walkthrough/generate.test.d.ts +2 -0
  380. package/dist/types/src/walkthrough/generate.test.d.ts.map +1 -0
  381. package/dist/types/src/walkthrough/generated.d.ts +20 -0
  382. package/dist/types/src/walkthrough/generated.d.ts.map +1 -0
  383. package/dist/types/src/walkthrough/generated.test.d.ts +2 -0
  384. package/dist/types/src/walkthrough/generated.test.d.ts.map +1 -0
  385. package/dist/types/src/walkthrough/headings.d.ts +8 -0
  386. package/dist/types/src/walkthrough/headings.d.ts.map +1 -0
  387. package/dist/types/src/walkthrough/headings.test.d.ts +2 -0
  388. package/dist/types/src/walkthrough/headings.test.d.ts.map +1 -0
  389. package/dist/types/src/walkthrough/index.d.ts +9 -0
  390. package/dist/types/src/walkthrough/index.d.ts.map +1 -0
  391. package/dist/types/src/walkthrough/patch.d.ts +48 -0
  392. package/dist/types/src/walkthrough/patch.d.ts.map +1 -0
  393. package/dist/types/src/walkthrough/plan.d.ts +55 -0
  394. package/dist/types/src/walkthrough/plan.d.ts.map +1 -0
  395. package/dist/types/src/walkthrough/plan.test.d.ts +2 -0
  396. package/dist/types/src/walkthrough/plan.test.d.ts.map +1 -0
  397. package/dist/types/src/walkthrough/prompt.d.ts +33 -0
  398. package/dist/types/src/walkthrough/prompt.d.ts.map +1 -0
  399. package/dist/types/src/walkthrough/prompt.test.d.ts +2 -0
  400. package/dist/types/src/walkthrough/prompt.test.d.ts.map +1 -0
  401. package/dist/types/src/walkthrough/score.d.ts +43 -0
  402. package/dist/types/src/walkthrough/score.d.ts.map +1 -0
  403. package/dist/types/src/walkthrough/score.test.d.ts +2 -0
  404. package/dist/types/src/walkthrough/score.test.d.ts.map +1 -0
  405. package/dist/types/tsconfig.tsbuildinfo +1 -0
  406. package/dx.config.ts +39 -0
  407. package/package.json +167 -48
  408. package/src/Extensions.ts +7 -0
  409. package/src/GitHubPlugin.ts +15 -0
  410. package/src/GitHubPlugin.workerd.test.ts +23 -0
  411. package/src/approval.test.ts +40 -0
  412. package/src/approval.ts +39 -0
  413. package/src/capabilities/app-graph-builder.ts +47 -0
  414. package/src/capabilities/connector.ts +95 -0
  415. package/src/capabilities/gen/browser.ts +82 -0
  416. package/src/capabilities/gen/node.ts +43 -0
  417. package/src/capabilities/gen/tauri.ts +82 -0
  418. package/src/capabilities/gen/workerd.ts +43 -0
  419. package/src/capabilities/index.ts +71 -0
  420. package/src/capabilities/link-resolver.ts +137 -0
  421. package/src/capabilities/markdown-extension.ts +146 -0
  422. package/src/capabilities/operation-handler.ts +16 -0
  423. package/src/capabilities/page-action.ts +32 -0
  424. package/src/capabilities/react-surface.ts +98 -0
  425. package/src/capabilities/schema.ts +16 -0
  426. package/src/capabilities/skill-definition.ts +14 -0
  427. package/src/cards/GitHubCard.stories.tsx +165 -0
  428. package/src/cards/GitHubCard.tsx +93 -0
  429. package/src/cards/PullRequestCard.tsx +23 -0
  430. package/src/cards/index.ts +6 -0
  431. package/src/components/CommentComposer/CommentComposer.tsx +109 -0
  432. package/src/components/CommentComposer/index.ts +5 -0
  433. package/src/components/PullRequestFiles/DiffStat.tsx +15 -0
  434. package/src/components/PullRequestFiles/FileTree.tsx +102 -0
  435. package/src/components/PullRequestFiles/PullRequestFiles.tsx +87 -0
  436. package/src/components/PullRequestFiles/files.test.ts +59 -0
  437. package/src/components/PullRequestFiles/files.ts +115 -0
  438. package/src/components/PullRequestFiles/index.ts +8 -0
  439. package/src/components/PullRequestOverview/ArtifactPill.tsx +82 -0
  440. package/src/components/PullRequestOverview/CheckRunList.test.ts +29 -0
  441. package/src/components/PullRequestOverview/CheckRunList.tsx +141 -0
  442. package/src/components/PullRequestOverview/PullRequestDetails.tsx +15 -0
  443. package/src/components/PullRequestOverview/PullRequestOverview.tsx +110 -0
  444. package/src/components/PullRequestOverview/RelatedCards.tsx +147 -0
  445. package/src/components/PullRequestOverview/index.ts +9 -0
  446. package/src/components/PullRequestStatus/PullRequestStatus.tsx +84 -0
  447. package/src/components/PullRequestStatus/index.ts +5 -0
  448. package/src/components/WalkthroughView/WalkthroughView.tsx +62 -0
  449. package/src/components/WalkthroughView/extensions.ts +53 -0
  450. package/src/components/WalkthroughView/index.ts +6 -0
  451. package/src/components/index.ts +6 -9
  452. package/src/constants.ts +12 -0
  453. package/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.tsx +160 -0
  454. package/src/containers/ImportPullRequestDialog/index.ts +7 -0
  455. package/src/containers/PullRequestArticle/PullRequestArticle.tsx +573 -0
  456. package/src/containers/PullRequestArticle/failure.test.ts +42 -0
  457. package/src/containers/PullRequestArticle/failure.ts +16 -0
  458. package/src/containers/PullRequestArticle/index.ts +5 -0
  459. package/src/containers/PullRequestCardMenu/PullRequestCardMenu.tsx +134 -0
  460. package/src/containers/PullRequestCardMenu/index.ts +5 -0
  461. package/src/containers/PullRequestsArticle/PullRequestsArticle.tsx +361 -0
  462. package/src/containers/PullRequestsArticle/arrange.test.ts +122 -0
  463. package/src/containers/PullRequestsArticle/arrange.ts +245 -0
  464. package/src/containers/PullRequestsArticle/format.ts +31 -0
  465. package/src/containers/PullRequestsArticle/index.ts +5 -0
  466. package/src/containers/WalkthroughArticle/WalkthroughArticle.tsx +31 -0
  467. package/src/containers/WalkthroughArticle/index.ts +5 -0
  468. package/src/containers/index.ts +11 -0
  469. package/src/errors.ts +61 -0
  470. package/src/extensions/index.ts +6 -0
  471. package/src/extensions/links.test.ts +133 -0
  472. package/src/extensions/links.ts +91 -0
  473. package/src/extensions/references.test.ts +83 -0
  474. package/src/extensions/references.ts +100 -0
  475. package/src/github-link.ts +70 -0
  476. package/src/hooks/index.ts +6 -3
  477. package/src/hooks/useOpenObject.ts +48 -0
  478. package/src/hooks/usePullRequestChecks.ts +81 -0
  479. package/src/hooks/usePullRequestDiff.ts +57 -0
  480. package/src/hooks/usePullRequestFiles.ts +98 -0
  481. package/src/hooks/useSyncPullRequest.ts +51 -0
  482. package/src/index.ts +4 -6
  483. package/src/meta.ts +8 -13
  484. package/src/operations/add-pull-request-comment.ts +31 -0
  485. package/src/operations/add-pull-request-review-comment.ts +32 -0
  486. package/src/operations/generate-walkthrough.ts +124 -0
  487. package/src/operations/get-pull-request-diff.ts +37 -0
  488. package/src/operations/get-pull-request-status.ts +44 -0
  489. package/src/operations/get-repositories.ts +53 -0
  490. package/src/operations/import-pull-request-from-snapshot.ts +48 -0
  491. package/src/operations/import-pull-request.test.ts +151 -0
  492. package/src/operations/import-pull-request.ts +149 -0
  493. package/src/operations/index.ts +30 -0
  494. package/src/operations/materialize-target.ts +60 -0
  495. package/src/operations/pull-request.test.ts +120 -0
  496. package/src/operations/pull-request.ts +141 -0
  497. package/src/operations/refresh-pull-requests.ts +69 -0
  498. package/src/operations/refresh.test.ts +112 -0
  499. package/src/operations/refresh.ts +111 -0
  500. package/src/operations/submit-pull-request-approval.ts +41 -0
  501. package/src/operations/sync-pull-request.ts +34 -0
  502. package/src/operations/sync.test.ts +453 -0
  503. package/src/operations/sync.ts +807 -0
  504. package/src/plugin.test.ts +40 -0
  505. package/src/plugin.ts +37 -0
  506. package/src/pull-request-body.test.ts +61 -0
  507. package/src/pull-request-body.ts +144 -0
  508. package/src/pull-request.test.ts +67 -0
  509. package/src/pull-request.ts +80 -0
  510. package/src/services/github-api.ts +735 -0
  511. package/src/services/index.ts +5 -0
  512. package/src/skills/GitHubSkill.ts +46 -0
  513. package/src/skills/index.ts +5 -0
  514. package/src/stories/Generate.stories.tsx +152 -0
  515. package/src/stories/Links.stories.tsx +153 -0
  516. package/src/stories/PullRequestArticle.stories.tsx +107 -0
  517. package/src/stories/PullRequestFiles.stories.tsx +69 -0
  518. package/src/stories/PullRequestOverview.stories.tsx +114 -0
  519. package/src/stories/PullRequestsArticle.stories.tsx +170 -0
  520. package/src/stories/Walkthrough.stories.tsx +110 -0
  521. package/src/stories/github.test.ts +65 -0
  522. package/src/stories/github.ts +70 -0
  523. package/src/stories/walkthrough-fixture.ts +115 -0
  524. package/src/testing/fixtures.ts +99 -0
  525. package/src/testing/index.ts +7 -0
  526. package/src/testing/plugin.ts +25 -0
  527. package/src/testing/pull-request-13348.ts +104 -0
  528. package/src/testing/pull-request-13363.patch +2981 -0
  529. package/src/translations.ts +135 -63
  530. package/src/types/GitHubCapabilities.ts +27 -0
  531. package/src/types/GitHubEvents.ts +16 -0
  532. package/src/types/GitHubOperation.ts +397 -0
  533. package/src/types/PullRequestsView.ts +45 -0
  534. package/src/types/Walkthrough.test.ts +75 -0
  535. package/src/types/Walkthrough.ts +66 -0
  536. package/src/types/index.ts +8 -0
  537. package/src/vite-env.d.ts +15 -0
  538. package/src/walkthrough/fill.test.ts +337 -0
  539. package/src/walkthrough/fill.ts +246 -0
  540. package/src/walkthrough/generate.test.ts +219 -0
  541. package/src/walkthrough/generate.ts +248 -0
  542. package/src/walkthrough/generated.test.ts +70 -0
  543. package/src/walkthrough/generated.ts +70 -0
  544. package/src/walkthrough/headings.test.ts +40 -0
  545. package/src/walkthrough/headings.ts +39 -0
  546. package/src/walkthrough/index.ts +12 -0
  547. package/src/walkthrough/patch.ts +154 -0
  548. package/src/walkthrough/plan.test.ts +178 -0
  549. package/src/walkthrough/plan.ts +251 -0
  550. package/src/walkthrough/prompt.test.ts +100 -0
  551. package/src/walkthrough/prompt.ts +147 -0
  552. package/src/walkthrough/score.test.ts +272 -0
  553. package/src/walkthrough/score.ts +430 -0
  554. package/README.md +0 -15
  555. package/dist/lib/browser/chunk-S4MPSBA5.mjs +0 -21
  556. package/dist/lib/browser/chunk-S4MPSBA5.mjs.map +0 -7
  557. package/dist/lib/browser/index.css +0 -7
  558. package/dist/lib/browser/index.css.map +0 -7
  559. package/dist/lib/browser/index.mjs +0 -1535
  560. package/dist/lib/browser/index.mjs.map +0 -7
  561. package/dist/lib/browser/meta.json +0 -1
  562. package/dist/lib/browser/meta.mjs +0 -11
  563. package/dist/lib/browser/meta.mjs.map +0 -7
  564. package/dist/types/src/GithubPlugin.d.ts +0 -4
  565. package/dist/types/src/GithubPlugin.d.ts.map +0 -1
  566. package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts +0 -4
  567. package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts.map +0 -1
  568. package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts +0 -9
  569. package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts.map +0 -1
  570. package/dist/types/src/components/EmbeddedMain/index.d.ts +0 -2
  571. package/dist/types/src/components/EmbeddedMain/index.d.ts.map +0 -1
  572. package/dist/types/src/components/ExportDialog.d.ts +0 -8
  573. package/dist/types/src/components/ExportDialog.d.ts.map +0 -1
  574. package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts +0 -3
  575. package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts.map +0 -1
  576. package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts +0 -15
  577. package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts.map +0 -1
  578. package/dist/types/src/components/GithubApiProviders/index.d.ts +0 -3
  579. package/dist/types/src/components/GithubApiProviders/index.d.ts.map +0 -1
  580. package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts +0 -6
  581. package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts.map +0 -1
  582. package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts +0 -7
  583. package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts.map +0 -1
  584. package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts +0 -6
  585. package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts.map +0 -1
  586. package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts +0 -16
  587. package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts.map +0 -1
  588. package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts +0 -3
  589. package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts.map +0 -1
  590. package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts +0 -11
  591. package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts.map +0 -1
  592. package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts +0 -3
  593. package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts.map +0 -1
  594. package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts +0 -6
  595. package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts.map +0 -1
  596. package/dist/types/src/components/ImportDialog.d.ts +0 -7
  597. package/dist/types/src/components/ImportDialog.d.ts.map +0 -1
  598. package/dist/types/src/components/Issue.d.ts +0 -5
  599. package/dist/types/src/components/Issue.d.ts.map +0 -1
  600. package/dist/types/src/components/Loading/Loading.d.ts +0 -15
  601. package/dist/types/src/components/Loading/Loading.d.ts.map +0 -1
  602. package/dist/types/src/components/Loading/Loading.stories.d.ts +0 -40
  603. package/dist/types/src/components/Loading/Loading.stories.d.ts.map +0 -1
  604. package/dist/types/src/components/Loading/index.d.ts +0 -2
  605. package/dist/types/src/components/Loading/index.d.ts.map +0 -1
  606. package/dist/types/src/components/MarkdownActions.d.ts +0 -7
  607. package/dist/types/src/components/MarkdownActions.d.ts.map +0 -1
  608. package/dist/types/src/components/UrlDialog.d.ts +0 -6
  609. package/dist/types/src/components/UrlDialog.d.ts.map +0 -1
  610. package/dist/types/src/hooks/useDocGhId.d.ts +0 -6
  611. package/dist/types/src/hooks/useDocGhId.d.ts.map +0 -1
  612. package/dist/types/src/hooks/useGhIdFromUrl.d.ts +0 -2
  613. package/dist/types/src/hooks/useGhIdFromUrl.d.ts.map +0 -1
  614. package/dist/types/src/types.d.ts +0 -30
  615. package/dist/types/src/types.d.ts.map +0 -1
  616. package/src/GithubPlugin.tsx +0 -127
  617. package/src/components/EmbeddedMain/EmbeddedMain.tsx +0 -294
  618. package/src/components/EmbeddedMain/GfmPreview.tsx +0 -110
  619. package/src/components/EmbeddedMain/embedded.css +0 -3
  620. package/src/components/EmbeddedMain/index.ts +0 -5
  621. package/src/components/ExportDialog.tsx +0 -157
  622. package/src/components/GithubApiProviders/GitHubSettings.tsx +0 -72
  623. package/src/components/GithubApiProviders/OctokitProvider.tsx +0 -60
  624. package/src/components/GithubApiProviders/index.ts +0 -6
  625. package/src/components/GithubEchoResolverProviders/DocumentTreeItem.tsx +0 -26
  626. package/src/components/GithubEchoResolverProviders/ResolverContext.tsx +0 -137
  627. package/src/components/GithubEchoResolverProviders/ResolverDialog.tsx +0 -34
  628. package/src/components/GithubEchoResolverProviders/ResolverProps.ts +0 -23
  629. package/src/components/GithubEchoResolverProviders/ResolverTree.tsx +0 -86
  630. package/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.tsx +0 -105
  631. package/src/components/GithubEchoResolverProviders/index.ts +0 -6
  632. package/src/components/GithubEchoResolverProviders/spaceResolvers.ts +0 -86
  633. package/src/components/ImportDialog.tsx +0 -72
  634. package/src/components/Issue.tsx +0 -62
  635. package/src/components/Loading/Loading.stories.tsx +0 -32
  636. package/src/components/Loading/Loading.tsx +0 -70
  637. package/src/components/Loading/index.ts +0 -5
  638. package/src/components/MarkdownActions.tsx +0 -136
  639. package/src/components/UrlDialog.tsx +0 -52
  640. package/src/hooks/useDocGhId.ts +0 -38
  641. package/src/hooks/useGhIdFromUrl.ts +0 -26
  642. package/src/types.ts +0 -51
@@ -0,0 +1,5 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.GetPullRequestStatus>;
4
+ export default handler;
5
+ //# sourceMappingURL=get-pull-request-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-pull-request-status.d.ts","sourceRoot":"","sources":["../../../../src/operations/get-pull-request-status.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAQzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,oBAAoB,CAuB7E,CAAC;eAEW,OAAO"}
@@ -0,0 +1,13 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ /**
4
+ * Discovery only — list GitHub repositories reachable from the connection's
5
+ * token. Read-only: NO local Projects are created here. Materialization is
6
+ * handled by the connector's `materializeTarget` when a binding is created.
7
+ *
8
+ * Output is sorted by `full_name` (case-insensitive) so the picker is stable
9
+ * regardless of GitHub's response order.
10
+ */
11
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.GetGitHubRepositories>;
12
+ export default handler;
13
+ //# sourceMappingURL=get-repositories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-repositories.d.ts","sourceRoot":"","sources":["../../../../src/operations/get-repositories.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIzC;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,qBAAqB,CA2B9E,CAAC;eAEW,OAAO"}
@@ -0,0 +1,12 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ /**
4
+ * Import the pull request the extension's page is showing.
5
+ *
6
+ * The snapshot is read for its URL alone — the page's DOM says nothing GitHub's API does not say
7
+ * better — and the import itself is delegated, so the anonymous fallback and the existing-object
8
+ * check stay in one place.
9
+ */
10
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.ImportPullRequestFromSnapshot>;
11
+ export default handler;
12
+ //# sourceMappingURL=import-pull-request-from-snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-pull-request-from-snapshot.d.ts","sourceRoot":"","sources":["../../../../src/operations/import-pull-request-from-snapshot.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,6BAA6B,CAyBtF,CAAC;eAEW,OAAO"}
@@ -0,0 +1,63 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import * as Operation from '@dxos/compute/Operation';
3
+ import { GitHubOperation } from '#types';
4
+ import { type PullRequestReference } from '../github-link.ts';
5
+ import { GitHubApi } from '../services/index.ts';
6
+ /**
7
+ * The pull request as the space's GitHub connection, falling back to an anonymous read whenever the
8
+ * stored token is what stood in the way.
9
+ *
10
+ * A public pull request must never fail because of a credential. Three separate conditions make one
11
+ * look unreachable — a revoked token (401), a suspended or SSO-blocked one (403), and a repository
12
+ * outside the App installation the token belongs to (404) — and the anonymous retry, which is the
13
+ * same request a space with no connection would make, resolves all three. The cost is one extra
14
+ * request on a pull request that genuinely does not exist.
15
+ *
16
+ * `fetch` is injected so the fallback can be exercised without an HTTP client.
17
+ */
18
+ export declare const fetchPullRequestWithFallback: ({ owner, repo, number }: PullRequestReference, token: string, fetch?: (owner: string, repo: string, number: number) => GitHubApi.GitHubEffect<GitHubApi.GitHubPull>) => Effect.Effect<{
19
+ readonly id: number;
20
+ readonly number: number;
21
+ readonly title: string;
22
+ readonly body?: string | null | undefined;
23
+ readonly state: string;
24
+ readonly draft?: boolean | undefined;
25
+ readonly merged?: boolean | undefined;
26
+ readonly merged_at?: string | null | undefined;
27
+ readonly created_at?: string | null | undefined;
28
+ readonly updated_at?: string | null | undefined;
29
+ readonly html_url?: string | null | undefined;
30
+ readonly user?: {
31
+ readonly id: number;
32
+ readonly login: string;
33
+ readonly name?: string | null | undefined;
34
+ readonly email?: string | null | undefined;
35
+ readonly avatar_url?: string | null | undefined;
36
+ readonly html_url?: string | null | undefined;
37
+ readonly bio?: string | null | undefined;
38
+ readonly company?: string | null | undefined;
39
+ readonly type?: string | null | undefined;
40
+ } | null | undefined;
41
+ readonly labels?: readonly {
42
+ readonly name: string;
43
+ }[] | undefined;
44
+ readonly additions?: number | undefined;
45
+ readonly deletions?: number | undefined;
46
+ readonly base?: {
47
+ readonly ref: string;
48
+ readonly sha?: string | undefined;
49
+ } | undefined;
50
+ readonly head?: {
51
+ readonly ref: string;
52
+ readonly sha?: string | undefined;
53
+ } | undefined;
54
+ }, never, import("effect/http/HttpClient").HttpClient>;
55
+ /**
56
+ * Import a pull request the user named, as the space's GitHub connection or anonymously.
57
+ *
58
+ * The object is filed through `SpaceOperation.AddObject` rather than added directly: an imported
59
+ * pull request is something the user went looking for, so it belongs where they can find it again.
60
+ */
61
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.ImportPullRequest>;
62
+ export default handler;
63
+ //# sourceMappingURL=import-pull-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-pull-request.d.ts","sourceRoot":"","sources":["../../../../src/operations/import-pull-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,EAAE,KAAK,oBAAoB,EAA6B,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAmBjD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,4BACd,oBAAoB,SACtC,MAAM,UACN,CACL,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,KACX,SAAS,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA6C/C,CAAC;AAEL;;;;;GAKG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,iBAAiB,CAoC5E,CAAC;eAEa,OAAO"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=import-pull-request.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-pull-request.test.d.ts","sourceRoot":"","sources":["../../../../src/operations/import-pull-request.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import * as OperationHandlerSet from '@dxos/compute/OperationHandlerSet';
2
+ export declare const GitHubOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,mBAAmB,MAAM,mCAAmC,CAAC;AAIzE,eAAO,MAAM,yBAAyB,yCAoBpC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ /**
4
+ * Find-or-create the empty local root Project for a GitHub repo so a `Cursor`
5
+ * can reference it as its `spec.target`. Idempotent: keyed by the repo's
6
+ * GitHub foreign id (`remoteTarget.id`), it returns the existing Project
7
+ * when one already carries that key. The repo's data is filled in lazily by the
8
+ * sync operation; here we only stamp the foreign key + a display name.
9
+ */
10
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.MaterializeGitHubTarget>;
11
+ export default handler;
12
+ //# sourceMappingURL=materialize-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialize-target.d.ts","sourceRoot":"","sources":["../../../../src/operations/materialize-target.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMzC;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,uBAAuB,CAkChF,CAAC;eAEW,OAAO"}
@@ -0,0 +1,48 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import * as Layer from 'effect/Layer';
3
+ import { Database, type Ref } from '@dxos/echo';
4
+ import { Connection } from '@dxos/link';
5
+ import { type PullRequest } from '@dxos/types';
6
+ import { type GitHubOperation } from '#types';
7
+ import { GitHubApi } from '../services/index.ts';
8
+ /**
9
+ * The GitHub connection whose token requests are sent with: the first one holding a token. Shared by
10
+ * the handlers and by the UI that sends the user to reconnect, so both name the same connection.
11
+ */
12
+ export declare const githubConnection: () => Effect.Effect<{
13
+ connection: Connection.Connection & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>;
14
+ token: string;
15
+ } | undefined, import("@dxos/echo/Error").EntityNotFoundError, Database.Service>;
16
+ /**
17
+ * The token of {@link githubConnection}, or empty for anonymous — which reaches any public pull
18
+ * request, and is the only option in a space that has not connected GitHub.
19
+ */
20
+ export declare const githubToken: () => Effect.Effect<string, import("@dxos/echo/Error").EntityNotFoundError, Database.Service>;
21
+ /**
22
+ * The stored pull request behind an operation's input and credentials for its space.
23
+ *
24
+ * The invoker carries no database resolver, so handlers derive one from the pull request itself; a
25
+ * preview card's in-memory pull request has none and cannot be acted on.
26
+ */
27
+ export declare const resolvePullRequest: (ref: Ref.Ref<PullRequest.PullRequest>) => Effect.Effect<{
28
+ pullRequest: PullRequest.PullRequest;
29
+ db: Database.Database;
30
+ credentials: Layer.Layer<GitHubApi.GitHubCredentials, never, never>;
31
+ }, import("@dxos/echo/Error").EntityNotFoundError, never>;
32
+ /** One check run as the article lists it: its outcome folded the way {@link summarizeCheckRuns} counts it. */
33
+ export declare const toCheckRun: (run: GitHubApi.GitHubCheckRun) => GitHubOperation.CheckRun;
34
+ /** Folds a commit's check runs into one outcome: any failure fails, then any unfinished run is pending. */
35
+ export declare const summarizeCheckRuns: (runs: readonly GitHubApi.GitHubCheckRun[]) => {
36
+ ci: GitHubOperation.CiState;
37
+ checks: GitHubOperation.CheckCounts;
38
+ };
39
+ /**
40
+ * Folds a pull request's reviews into where they stand, from each reviewer's latest verdict — the
41
+ * way GitHub reads them: a later approval clears that reviewer's request for changes, and a dismissal
42
+ * withdraws whichever verdict it replaced.
43
+ */
44
+ export declare const summarizeReviews: (reviews: readonly GitHubApi.GitHubSubmittedReview[]) => {
45
+ review: GitHubOperation.ReviewState;
46
+ approvals: number;
47
+ };
48
+ //# sourceMappingURL=pull-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request.d.ts","sourceRoot":"","sources":["../../../../src/operations/pull-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAe,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAI9C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;gFAczB,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,WAAW,+FAAiF,CAAC;AAE1G;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAS,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC;;;;yDASpE,CAAC;AAYL,8GAA8G;AAC9G,eAAO,MAAM,UAAU,QAAS,SAAS,CAAC,cAAc,KAAG,eAAe,CAAC,QAoB1E,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,kBAAkB,SACvB,SAAS,SAAS,CAAC,cAAc,EAAE,KACxC;IAAE,EAAE,EAAE,eAAe,CAAC,OAAO,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC,WAAW,CAAA;CAepE,CAAC;AAKF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAClB,SAAS,SAAS,CAAC,qBAAqB,EAAE,KAClD;IAAE,MAAM,EAAE,eAAe,CAAC,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAiB1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pull-request.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request.test.d.ts","sourceRoot":"","sources":["../../../../src/operations/pull-request.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.RefreshPullRequests>;
4
+ export default handler;
5
+ //# sourceMappingURL=refresh-pull-requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh-pull-requests.d.ts","sourceRoot":"","sources":["../../../../src/operations/refresh-pull-requests.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAWzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,mBAAmB,CA4C5E,CAAC;eAEW,OAAO"}
@@ -0,0 +1,37 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import * as Trigger from '@dxos/compute/Trigger';
3
+ import { Database } from '@dxos/echo';
4
+ import { PullRequest } from '@dxos/types';
5
+ /**
6
+ * How often the space's refresh trigger polls its open pull requests: hourly, at an off-the-hour minute
7
+ * so the fleet of spaces does not land on EDGE's busiest tick, and because every open pull request
8
+ * costs a GitHub request against the connection's rate limit.
9
+ */
10
+ export declare const REFRESH_CRON = "17 * * * *";
11
+ /**
12
+ * Re-read one stored pull request from GitHub and write back the fields that changed.
13
+ *
14
+ * Uses the anonymous fallback, so a public pull request still refreshes behind a revoked token.
15
+ * Returns the names of the changed fields.
16
+ */
17
+ export declare const refreshPullRequest: (pullRequest: PullRequest.PullRequest, token: string) => Effect.Effect<string[], never, import("effect/http/HttpClient").HttpClient>;
18
+ /** Most pull requests one run refreshes, so a run stays within GitHub's rate limit and EDGE's subrequest budget. */
19
+ export declare const REFRESH_BATCH_SIZE = 20;
20
+ /**
21
+ * The slice of `pullRequests` the run in window `window` refreshes: consecutive windows walk the list in
22
+ * id order and wrap, so every pull request is refreshed once every `ceil(count / size)` runs without
23
+ * storing a cursor.
24
+ */
25
+ export declare const selectRefreshBatch: (pullRequests: readonly PullRequest.PullRequest[], window: number, size?: number) => PullRequest.PullRequest[];
26
+ /** The space's pull requests GitHub may still change. */
27
+ export declare const queryInFlightPullRequests: () => Effect.Effect<(PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>)[], never, Database.Service>;
28
+ /**
29
+ * Give the space its one pull-request refresh trigger, unless it has one already — including one the
30
+ * user disabled, which stays disabled.
31
+ *
32
+ * Peers that race to create it each add their own, so every caller converges on the same keeper (the
33
+ * lowest id) and removes the rest. The trigger runs on EDGE, so pull requests keep refreshing while no
34
+ * client has the space open.
35
+ */
36
+ export declare const ensureRefreshTrigger: () => Effect.Effect<Trigger.Trigger & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never, Database.Service>;
37
+ //# sourceMappingURL=refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../../../src/operations/refresh.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO1C;;;;GAIG;AACH,eAAO,MAAM,YAAY,eAAe,CAAC;AAKzC;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,sIAc7B,CAAC;AAMH,oHAAoH;AACpH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iBACf,SAAS,WAAW,CAAC,WAAW,EAAE,UACxC,MAAM,oBAEb,WAAW,CAAC,WAAW,EAOzB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,yBAAyB,iKAInC,CAAC;AAKJ;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,qJAoB/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=refresh.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refresh.test.d.ts","sourceRoot":"","sources":["../../../../src/operations/refresh.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.SubmitPullRequestApproval>;
4
+ export default handler;
5
+ //# sourceMappingURL=submit-pull-request-approval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submit-pull-request-approval.d.ts","sourceRoot":"","sources":["../../../../src/operations/submit-pull-request-approval.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,yBAAyB,CAsBlF,CAAC;eAEW,OAAO"}
@@ -0,0 +1,5 @@
1
+ import * as Operation from '@dxos/compute/Operation';
2
+ import { GitHubOperation } from '#types';
3
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.SyncPullRequest>;
4
+ export default handler;
5
+ //# sourceMappingURL=sync-pull-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync-pull-request.d.ts","sourceRoot":"","sources":["../../../../src/operations/sync-pull-request.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAe1E,CAAC;eAEa,OAAO"}
@@ -0,0 +1,123 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import * as Operation from '@dxos/compute/Operation';
3
+ import { Database } from '@dxos/echo';
4
+ import { Cursor } from '@dxos/link';
5
+ import { Milestone, Person, Task, TaskSet } from '@dxos/types';
6
+ import { GitHubOperation } from '#types';
7
+ import { GitHubApi } from '../services/index.ts';
8
+ /**
9
+ * Move a task into `container`. Idempotent — sync runs repeatedly and must never append a second
10
+ * ref for a task already in the set.
11
+ */
12
+ export declare const setTaskContainer: (task: Task.Task, container: TaskSet.TaskSet) => Effect.Effect<void, never, Database.Service>;
13
+ /**
14
+ * Pull a GitHub milestone into ECHO. Mirrored remote-wins without a snapshot merge — milestones
15
+ * are pull-only (nothing here pushes milestone edits back), so there is no local side to protect.
16
+ */
17
+ export declare const upsertMilestone: (taskSet: TaskSet.TaskSet, remote: {
18
+ readonly id: number;
19
+ readonly number: number;
20
+ readonly title: string;
21
+ readonly description?: string | null | undefined;
22
+ readonly state?: string | null | undefined;
23
+ readonly due_on?: string | null | undefined;
24
+ }) => Effect.Effect<Milestone.Milestone, never, Database.Service>;
25
+ /**
26
+ * Pull a GitHub issue into ECHO as a Task. Same merge shape as
27
+ * {@link upsertProject}, against snapshot fields {title, description, status}.
28
+ * Non-mapped fields (`Task.priority`, `Task.estimate`, etc.) are preserved.
29
+ *
30
+ * Set membership is NOT wired here: this runs concurrently per issue and `TaskSet.tasks` is a
31
+ * shared array, so the caller applies {@link setTaskContainer} sequentially afterwards.
32
+ *
33
+ * `milestone` is the local mirror of `issue.milestone`, mirrored remote-wins outside the snapshot
34
+ * merge (nothing pushes milestone edits back, so there is no local side to protect).
35
+ */
36
+ export declare const upsertTask: (binding: Cursor.ExternalCursor, issue: {
37
+ readonly id: number;
38
+ readonly number: number;
39
+ readonly title: string;
40
+ readonly body?: string | null | undefined;
41
+ readonly state: string;
42
+ readonly state_reason?: string | null | undefined;
43
+ readonly html_url?: string | null | undefined;
44
+ readonly comments?: number | undefined;
45
+ readonly comments_url?: string | null | undefined;
46
+ readonly created_at?: string | null | undefined;
47
+ readonly updated_at?: string | null | undefined;
48
+ readonly closed_at?: string | null | undefined;
49
+ readonly user?: {
50
+ readonly id: number;
51
+ readonly login: string;
52
+ readonly name?: string | null | undefined;
53
+ readonly email?: string | null | undefined;
54
+ readonly avatar_url?: string | null | undefined;
55
+ readonly html_url?: string | null | undefined;
56
+ readonly bio?: string | null | undefined;
57
+ readonly company?: string | null | undefined;
58
+ readonly type?: string | null | undefined;
59
+ } | null | undefined;
60
+ readonly assignees?: readonly {
61
+ readonly id: number;
62
+ readonly login: string;
63
+ readonly name?: string | null | undefined;
64
+ readonly email?: string | null | undefined;
65
+ readonly avatar_url?: string | null | undefined;
66
+ readonly html_url?: string | null | undefined;
67
+ readonly bio?: string | null | undefined;
68
+ readonly company?: string | null | undefined;
69
+ readonly type?: string | null | undefined;
70
+ }[] | undefined;
71
+ readonly labels?: readonly {
72
+ readonly name: string;
73
+ }[] | undefined;
74
+ readonly milestone?: {
75
+ readonly id: number;
76
+ readonly number: number;
77
+ readonly title: string;
78
+ readonly description?: string | null | undefined;
79
+ readonly state?: string | null | undefined;
80
+ readonly due_on?: string | null | undefined;
81
+ } | null | undefined;
82
+ readonly pull_request?: {
83
+ readonly url: string;
84
+ readonly merged_at?: string | null | undefined;
85
+ } | null | undefined;
86
+ }, assignedPerson: Person.Person | undefined, milestone: Milestone.Milestone | undefined) => Effect.Effect<{
87
+ task: Task.Task;
88
+ created: boolean;
89
+ }, never, Database.Service>;
90
+ export type GitHubPushResult = {
91
+ projects: number;
92
+ tasks: number;
93
+ };
94
+ /**
95
+ * Push reconciler for one repo. Walks the locally-mirrored Project for the
96
+ * given repo plus every Task whose foreign key matches one of the issues we
97
+ * just pulled, diffs against the binding's snapshot, and PATCHes any diverged
98
+ * field back to GitHub.
99
+ *
100
+ * Behaviour:
101
+ * - Project description divergence → PATCH /repos/{owner}/{repo}.
102
+ * `name` divergence is logged but NOT pushed (rename is destructive and
103
+ * almost never desired from a sync mirror).
104
+ * - Task title / description / status divergence → PATCH the issue.
105
+ * - Tombstones (`Obj.isDeleted`) are skipped.
106
+ *
107
+ * After a successful push the snapshot is refreshed with the values just
108
+ * sent so the next pass sees no divergence even before the next pull.
109
+ *
110
+ * The push callbacks' error type is generic. The reconciler doesn't inspect
111
+ * or recover from those errors — it propagates so the outer `Effect.result`
112
+ * at the call site can record the binding's `lastError`. Generic-`E` keeps
113
+ * this module decoupled from the HTTP error hierarchy of `GitHubApi`.
114
+ */
115
+ export declare const pushRepoUpdates: <E, R>(binding: Cursor.ExternalCursor, repo: GitHubApi.GitHubRepo, remoteIssuesById: ReadonlyMap<string, GitHubApi.GitHubIssue>, push: {
116
+ /** Wraps `GitHubApi.updateIssue`. */
117
+ updateIssue: (owner: string, repo: string, issueNumber: number, input: GitHubApi.IssueUpdateInput) => Effect.Effect<void, E, R>;
118
+ /** Wraps `GitHubApi.updateRepo`. */
119
+ updateRepo: (owner: string, repo: string, input: GitHubApi.RepoUpdateInput) => Effect.Effect<void, E, R>;
120
+ }) => Effect.Effect<GitHubPushResult, E, Database.Service | R>;
121
+ declare const handler: Operation.WithHandler<typeof GitHubOperation.SyncGitHubRepositories>;
122
+ export default handler;
123
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/operations/sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAiC,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAE,SAAS,EAAgB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG7E,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AASzC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAyHjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,+FAiC3B,CAAC;AA0HH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;iEA6B1B,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwErB,CAAC;AAMH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,EACjC,OAAO,EAAE,MAAM,CAAC,cAAc,EAC9B,IAAI,EAAE,SAAS,CAAC,UAAU,EAC1B,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,EAC5D,IAAI,EAAE;IACJ,qCAAqC;IACrC,WAAW,EAAE,CACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,gBAAgB,KAC9B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,oCAAoC;IACpC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,eAAe,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAC1G,KACE,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,CAAC,CAuH3D,CAAC;AA8LF,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,sBAAsB,CAsB/E,CAAC;eAEW,OAAO"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sync.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.test.d.ts","sourceRoot":"","sources":["../../../../src/operations/sync.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import * as Plugin from '@dxos/app-framework/Plugin';
2
+ export declare const GitHubPlugin: Plugin.PluginFactory<void>;
3
+ export default GitHubPlugin;
4
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AAiBrD,eAAO,MAAM,YAAY,4BAaxB,CAAC;eAEa,YAAY"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.test.d.ts","sourceRoot":"","sources":["../../../src/plugin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /** Public host of the `agent-artifacts` R2 bucket that demo videos and screenshots are linked from. */
2
+ export declare const ARTIFACTS_HOST = "pub-39066a86073446d7b77b1c157b660bb5.r2.dev";
3
+ export type ArtifactKind = 'video' | 'image' | 'file';
4
+ /** A file in the artifacts bucket that a pull request body links to. */
5
+ export type ArtifactLink = {
6
+ url: string;
7
+ kind: ArtifactKind;
8
+ /** The file name, the last path segment. */
9
+ name: string;
10
+ /** The link's own text, when it was written as `[label](url)` rather than bare. */
11
+ label?: string;
12
+ };
13
+ /** What a pull request body says beyond its prose: the footers the harness and CI append, and the media it links. */
14
+ export type PullRequestBody = {
15
+ /** The prose, with the footers taken out. */
16
+ markdown: string;
17
+ /** Present when the body carries the Claude Code footer. */
18
+ claudeCode?: {
19
+ /** The session that wrote the pull request. */
20
+ sessionUrl?: string;
21
+ };
22
+ /** The Composer deployment built from the pull request's head. */
23
+ previewUrl?: string;
24
+ /** Artifacts in first-mention order, each once. */
25
+ artifacts: ArtifactLink[];
26
+ };
27
+ /** The artifact a URL names, or undefined when it is not in the artifacts bucket. */
28
+ export declare const parseArtifactLink: (url: string) => Omit<ArtifactLink, 'label'> | undefined;
29
+ /**
30
+ * Splits a pull request body into its prose and what the footers and links say.
31
+ *
32
+ * The footers are the harness's (`🤖 Generated with Claude Code` and the session URL) and CI's
33
+ * (the Composer preview block); the article shows them as cards, so they are taken out of the prose
34
+ * rather than rendered twice.
35
+ */
36
+ export declare const parsePullRequestBody: (body: string | undefined) => PullRequestBody;
37
+ //# sourceMappingURL=pull-request-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request-body.d.ts","sourceRoot":"","sources":["../../../src/pull-request-body.ts"],"names":[],"mappings":"AAIA,uGAAuG;AACvG,eAAO,MAAM,cAAc,gDAAgD,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD,wEAAwE;AACxE,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,YAAY,CAAC;IACnB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qHAAqH;AACrH,MAAM,MAAM,eAAe,GAAG;IAC5B,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,UAAU,CAAC,EAAE;QACX,+CAA+C;QAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAKF,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,SAsB7E,CAAC;AAeF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,SAAU,MAAM,GAAG,SAAS,KAAG,eAiC/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pull-request-body.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request-body.test.d.ts","sourceRoot":"","sources":["../../../src/pull-request-body.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { type Obj } from '@dxos/echo';
2
+ import { PullRequest } from '@dxos/types';
3
+ import { type PullRequestReference } from './github-link.ts';
4
+ import { type GitHubApi } from './services/index.ts';
5
+ /** Where a pull request lives on github.com, for a reference that carried no URL of its own. */
6
+ export declare const pullRequestUrl: ({ owner, repo, number }: PullRequestReference) => string;
7
+ /**
8
+ * GitHub's pull payload as the fields a local {@link PullRequest.PullRequest} holds.
9
+ *
10
+ * Shared by the link preview and the import command so the two cannot disagree about what a pull
11
+ * request looks like once it is in a space.
12
+ */
13
+ export declare const toPullRequestProps: (reference: PullRequestReference & {
14
+ url?: string;
15
+ }, pull: GitHubApi.GitHubPull) => Obj.MakeProps<typeof PullRequest.PullRequest>;
16
+ /** Fields a re-sync may overwrite; the coordinates and URL name the pull request and never drift. */
17
+ declare const SYNCED_FIELDS: readonly ['title', 'state', 'author', 'description', 'baseBranch', 'headBranch', 'additions', 'deletions', 'createdAt', 'updatedAt'];
18
+ type SyncedField = (typeof SYNCED_FIELDS)[number];
19
+ export type PullRequestChanges = Partial<Pick<PullRequest.PullRequest, SyncedField>>;
20
+ /**
21
+ * The fields where GitHub's payload differs from the stored pull request, so a re-sync writes only
22
+ * what changed and an unchanged pull request costs no mutation.
23
+ *
24
+ * A field GitHub's payload leaves out is kept rather than cleared: an absent value is unknown, not empty.
25
+ */
26
+ export declare const pullRequestChanges: (pullRequest: PullRequest.PullRequest, pull: GitHubApi.GitHubPull) => PullRequestChanges;
27
+ export {};
28
+ //# sourceMappingURL=pull-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request.d.ts","sourceRoot":"","sources":["../../../src/pull-request.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,gGAAgG;AAChG,eAAO,MAAM,cAAc,4BAA6B,oBAAoB,KAAG,MACzB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,cAClB,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,QAC5C,SAAS,CAAC,UAAU,KACzB,GAAG,CAAC,SAAS,CAAC,OAAO,WAAW,CAAC,WAAW,CAgB7C,CAAC;AAEH,qGAAqG;AACrG,QAAA,MAAM,aAAa,YACjB,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,CACH,CAAC;AAEX,KAAK,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAErF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,gBAChB,WAAW,CAAC,WAAW,QAC9B,SAAS,CAAC,UAAU,KACzB,kBAWF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pull-request.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-request.test.d.ts","sourceRoot":"","sources":["../../../src/pull-request.test.ts"],"names":[],"mappings":""}