@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,10 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import * as Capability from "@dxos/app-framework/Capability";
3
+ import { meta } from "#meta";
4
+ //#region src/types/GitHubCapabilities.ts
5
+ var GitHubCapabilities_exports = /* @__PURE__ */ __exportAll({ LinkSource: () => LinkSource });
6
+ var LinkSource = Capability.make()(`${meta.profile.key}.capability.linkSource`);
7
+ //#endregion
8
+ export { LinkSource, GitHubCapabilities_exports as t };
9
+
10
+ //# sourceMappingURL=GitHubCapabilities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubCapabilities.mjs","names":[],"sources":["../../src/types/GitHubCapabilities.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport type * as Effect from 'effect/Effect';\n\nimport * as Capability from '@dxos/app-framework/Capability';\nimport type * as PreviewCapabilities from '@dxos/plugin-preview/PreviewCapabilities';\nimport { type Issue, type PullRequest, type Repo } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { type GitHubLink } from '../extensions/index.ts';\n\n/**\n * Where a previewed link's repository, pull request or issue comes from. The plugin's default fetches it from\n * the GitHub API with the space's connection token (anonymously when there is none); a host that\n * contributes one — a story, a test, an offline build — replaces the fetch.\n */\nexport type GitHubLinkSource = (\n link: GitHubLink,\n context: PreviewCapabilities.PreviewLinkContext,\n) => Effect.Effect<Repo.Repo | Issue.Issue | PullRequest.PullRequest | undefined>;\n\nexport const LinkSource = Capability.make<GitHubLinkSource>()(`${meta.profile.key}.capability.linkSource`);\n"],"mappings":";;;;;AA0BA,IAAa,aAAa,WAAW,KAAuB,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,uBAAuB"}
@@ -0,0 +1,15 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import { meta } from "#meta";
3
+ import * as ActivationEvent from "@dxos/app-framework/ActivationEvent";
4
+ //#region src/types/GitHubEvents.ts
5
+ var GitHubEvents_exports = /* @__PURE__ */ __exportAll({ Start: () => Start });
6
+ /**
7
+ * The feature's start event: the plugin's start-gated modules (and cross-plugin
8
+ * contributions consumed by this feature) activate here. Fired on demand and by the
9
+ * host's idle trickle.
10
+ */
11
+ var Start = ActivationEvent.pluginStart(meta.profile.key);
12
+ //#endregion
13
+ export { Start, GitHubEvents_exports as t };
14
+
15
+ //# sourceMappingURL=GitHubEvents.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubEvents.mjs","names":[],"sources":["../../src/types/GitHubEvents.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as ActivationEvent from '@dxos/app-framework/ActivationEvent';\n\nimport { meta } from '#meta';\n\n/**\n * The feature's start event: the plugin's start-gated modules (and cross-plugin\n * contributions consumed by this feature) activate here. Fired on demand and by the\n * host's idle trickle.\n */\nexport const Start = ActivationEvent.pluginStart(meta.profile.key);\n"],"mappings":";;;;;;;;;;AAeA,IAAa,QAAQ,gBAAgB,YAAY,KAAK,QAAQ,GAAG"}
@@ -0,0 +1,384 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import { Walkthrough } from "./Walkthrough.mjs";
3
+ import * as ConnectorSpec from "@dxos/plugin-connector/ConnectorSpec";
4
+ import * as Operation from "@dxos/compute/Operation";
5
+ import { PullRequest } from "@dxos/types";
6
+ import { DXN, Database, Obj, Ref } from "@dxos/echo";
7
+ import * as Schema from "effect/Schema";
8
+ import { AiService } from "@dxos/ai";
9
+ import * as Trace from "@dxos/compute/Trace";
10
+ import * as PageAction from "@dxos/plugin-crx/PageAction";
11
+ //#region src/types/GitHubOperation.ts
12
+ var GitHubOperation_exports = /* @__PURE__ */ __exportAll({
13
+ AddPullRequestComment: () => AddPullRequestComment,
14
+ AddPullRequestReviewComment: () => AddPullRequestReviewComment,
15
+ CheckCounts: () => CheckCounts,
16
+ CheckOutcome: () => CheckOutcome,
17
+ CheckRun: () => CheckRun,
18
+ CiState: () => CiState,
19
+ GenerateWalkthrough: () => GenerateWalkthrough,
20
+ GetGitHubRepositories: () => GetGitHubRepositories,
21
+ GetPullRequestDiff: () => GetPullRequestDiff,
22
+ GetPullRequestStatus: () => GetPullRequestStatus,
23
+ ImportPullRequest: () => ImportPullRequest,
24
+ ImportPullRequestFromSnapshot: () => ImportPullRequestFromSnapshot,
25
+ MaterializeGitHubTarget: () => MaterializeGitHubTarget,
26
+ RefreshPullRequests: () => RefreshPullRequests,
27
+ ReviewState: () => ReviewState,
28
+ SubmitPullRequestApproval: () => SubmitPullRequestApproval,
29
+ SyncGitHubRepositories: () => SyncGitHubRepositories,
30
+ SyncOptions: () => SyncOptions,
31
+ SyncPullRequest: () => SyncPullRequest,
32
+ createWalkthroughProgressKey: () => createWalkthroughProgressKey
33
+ });
34
+ /**
35
+ * Discovery only — list GitHub repositories the connection's token can see.
36
+ * Returns one descriptor per repo across all the user's orgs (and personal
37
+ * account). Read-only: NEVER materializes local objects — materialization is
38
+ * handled by the connector's `materializeTarget` when a `Cursor` is created.
39
+ *
40
+ * Orgs and their members are NOT presented as sync targets — they are
41
+ * auto-synced as part of the sync of any repo they own.
42
+ */
43
+ var GetGitHubRepositories = Operation.make({
44
+ meta: {
45
+ key: DXN.make("org.dxos.operation.github.getRepositories"),
46
+ name: "Get GitHub Repositories",
47
+ description: "List GitHub repositories reachable from a connection without materializing local objects.",
48
+ icon: "ph--github-logo--regular"
49
+ },
50
+ input: ConnectorSpec.GetSyncTargetsInput,
51
+ output: ConnectorSpec.GetSyncTargetsOutput
52
+ });
53
+ /**
54
+ * Find-or-create the empty local root Project for a selected GitHub repo so a
55
+ * cursor can reference it as its `spec.target`. Keyed by the repo's
56
+ * GitHub foreign id (`remoteTarget.id`), so it is idempotent across re-selection.
57
+ */
58
+ var MaterializeGitHubTarget = Operation.make({
59
+ meta: {
60
+ key: DXN.make("org.dxos.operation.github.materializeTarget"),
61
+ name: "Materialize GitHub Target",
62
+ description: "Create the empty local root Project bound to a selected GitHub repository.",
63
+ icon: "ph--github-logo--regular"
64
+ },
65
+ input: ConnectorSpec.MaterializeTargetInput,
66
+ output: ConnectorSpec.MaterializeTargetOutput
67
+ });
68
+ /**
69
+ * Per-target options. `maxDaysBack` caps how far back issues/PRs are pulled
70
+ * (mirrors the Gmail mailbox `daysBack`). Default — when unset — is "sync
71
+ * everything ever opened or edited."
72
+ */
73
+ var SyncOptions = Schema.Struct({ maxDaysBack: Schema.Number.annotate({
74
+ title: "Sync history (days)",
75
+ description: "Pull issues and PRs updated within this many days. Leave empty to sync everything."
76
+ }).pipe(Schema.optional) });
77
+ /**
78
+ * Reconcile GitHub data for every repo bound to a connection (one cursor per repo).
79
+ *
80
+ * Pull-then-push per bound repo: auto-upsert its owning org + members,
81
+ * three-way merge the repo as a Project and its issues/PRs as Tasks (respecting
82
+ * `maxDaysBack` if set), then push diverged Project/Task fields back to GitHub.
83
+ * Sync state (`lastTick`/`lastError`/`spec.snapshots`) is written onto each binding.
84
+ */
85
+ var SyncGitHubRepositories = Operation.make({
86
+ meta: {
87
+ key: DXN.make("org.dxos.operation.github.syncRepositories"),
88
+ name: "Sync GitHub Repositories",
89
+ description: "Reconcile every bound GitHub repo plus its owning org, members, issues, PRs, and comments.",
90
+ icon: "ph--arrows-clockwise--regular"
91
+ },
92
+ input: ConnectorSpec.SyncInput,
93
+ output: Schema.Struct({ pulled: Schema.Struct({
94
+ organizations: Schema.Number,
95
+ people: Schema.Number,
96
+ projects: Schema.Number,
97
+ tasks: Schema.Number,
98
+ comments: Schema.Number
99
+ }) })
100
+ }).pipe(Operation.visible);
101
+ /**
102
+ * Import a pull request named by a github.com URL or `owner/repo#123` into the space, so it can be
103
+ * opened, reviewed and walked through without waiting for a sync of the whole repository.
104
+ *
105
+ * Idempotent by coordinates — a pull request the space already holds is returned as it stands
106
+ * rather than duplicated.
107
+ */
108
+ var ImportPullRequest = Operation.make({
109
+ meta: {
110
+ key: DXN.make("org.dxos.operation.github.importPullRequest"),
111
+ name: "Import Pull Request",
112
+ description: "Add a pull request to the space, named by its URL or as owner/repo#number.",
113
+ icon: "ph--git-pull-request--regular"
114
+ },
115
+ services: [Database.Service],
116
+ input: Schema.Struct({
117
+ /** A github.com pull request URL, or `owner/repo#123`. */
118
+ reference: Schema.String }),
119
+ output: Schema.Struct({
120
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
121
+ /** False where the space already held the pull request, which is then returned unchanged. */
122
+ imported: Schema.Boolean
123
+ }),
124
+ types: [PullRequest.PullRequest]
125
+ }).pipe(Operation.visible, Operation.mutation("write"));
126
+ /**
127
+ * Import the pull request the browser extension is looking at, named by the page's own URL.
128
+ *
129
+ * Separate from {@link ImportPullRequest} because the extension bridge invokes every page action
130
+ * with the fixed `{ snapshot, target }` shape and reads an `{ id }` back. Nothing is extracted from
131
+ * the page: the URL in the snapshot's source names the pull request, and GitHub is the authority on
132
+ * everything else.
133
+ */
134
+ var ImportPullRequestFromSnapshot = Operation.make({
135
+ meta: {
136
+ key: DXN.make("org.dxos.operation.github.importPullRequestFromSnapshot"),
137
+ name: "Open pull request in Composer",
138
+ description: "Import the pull request a browser page shows, named by that page's URL.",
139
+ icon: "ph--git-pull-request--regular"
140
+ },
141
+ input: Schema.Struct({
142
+ snapshot: PageAction.Snapshot,
143
+ target: Database.Database.annotate({ description: "The database to add the pull request to." })
144
+ }),
145
+ output: Schema.Struct({ id: Schema.String }),
146
+ types: [PullRequest.PullRequest]
147
+ }).pipe(Operation.mutation("write"));
148
+ /**
149
+ * Generate a walkthrough of a pull request: one markdown document narrating the change in reading
150
+ * order, with its diff chunks spliced in from the patch itself.
151
+ *
152
+ * Idempotent by commit — a walkthrough already generated for the pull request's head is returned
153
+ * unchanged unless `force` says otherwise, since the answer cannot have changed.
154
+ */
155
+ var GenerateWalkthrough = Operation.make({
156
+ meta: {
157
+ key: DXN.make("org.dxos.operation.github.generateWalkthrough"),
158
+ name: "Generate Walkthrough",
159
+ description: "Narrate a pull request as one markdown document, with the change's diffs embedded in it.",
160
+ icon: "ph--path--regular"
161
+ },
162
+ input: Schema.Struct({
163
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
164
+ /** Regenerate even where a walkthrough for this head already exists. */
165
+ force: Schema.Boolean.pipe(Schema.optional)
166
+ }),
167
+ output: Schema.Struct({
168
+ walkthrough: Ref.Ref(Walkthrough),
169
+ /** Whether the model ran, as against an existing walkthrough being returned unchanged. */
170
+ generated: Schema.Boolean,
171
+ /** Hunks the prose accounts for, over the patch's total. */
172
+ covered: Schema.Number,
173
+ total: Schema.Number
174
+ }),
175
+ types: [Walkthrough, PullRequest.PullRequest],
176
+ services: [Trace.TraceService, AiService.AiService]
177
+ }).pipe(Operation.visible);
178
+ /**
179
+ * Submit an approving review on a pull request, as the space's GitHub connection.
180
+ *
181
+ * Falls back to a marked conversation comment where GitHub refuses the review — the author's own
182
+ * pull request, or a token with no review permission — so the approval is still recorded and still
183
+ * detectable by an agent deciding whether the pull request is good to land.
184
+ */
185
+ var SubmitPullRequestApproval = Operation.make({
186
+ meta: {
187
+ key: DXN.make("org.dxos.operation.github.submitPullRequestApproval"),
188
+ name: "Submit Pull Request Approval",
189
+ description: "Submit an approving review on a pull request, or record the approval as a comment.",
190
+ icon: "ph--check-circle--regular"
191
+ },
192
+ input: Schema.Struct({
193
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
194
+ /** Optional review summary. */
195
+ body: Schema.String.pipe(Schema.optional)
196
+ }),
197
+ output: Schema.Struct({
198
+ /** Set where the approving review was accepted. */
199
+ reviewId: Schema.Number.pipe(Schema.optional),
200
+ /** Set instead where the approval was recorded as a comment. */
201
+ commentId: Schema.Number.pipe(Schema.optional),
202
+ url: Schema.String.pipe(Schema.optional),
203
+ /** Whether the approval is a comment rather than a review. */
204
+ commented: Schema.Boolean
205
+ }),
206
+ types: [PullRequest.PullRequest]
207
+ });
208
+ /** Post a conversation comment on a pull request, as the space's GitHub connection. */
209
+ var AddPullRequestComment = Operation.make({
210
+ meta: {
211
+ key: DXN.make("org.dxos.operation.github.addPullRequestComment"),
212
+ name: "Add Pull Request Comment",
213
+ description: "Post a comment on a pull request.",
214
+ icon: "ph--chat-text--regular"
215
+ },
216
+ input: Schema.Struct({
217
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
218
+ body: Schema.String
219
+ }),
220
+ output: Schema.Struct({
221
+ commentId: Schema.Number,
222
+ url: Schema.String.pipe(Schema.optional)
223
+ }),
224
+ types: [PullRequest.PullRequest]
225
+ });
226
+ /** Post a review comment on one line of a pull request's diff, as the space's GitHub connection. */
227
+ var AddPullRequestReviewComment = Operation.make({
228
+ meta: {
229
+ key: DXN.make("org.dxos.operation.github.addPullRequestReviewComment"),
230
+ name: "Add Pull Request Review Comment",
231
+ description: "Post a review comment on a line of a pull request diff.",
232
+ icon: "ph--chat-centered-text--regular"
233
+ },
234
+ input: Schema.Struct({
235
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
236
+ body: Schema.String,
237
+ /** Head SHA the line numbers refer to; a walkthrough's `commit`. */
238
+ commit: Schema.String,
239
+ path: Schema.String,
240
+ line: Schema.Number,
241
+ /** `LEFT` for the removed side, `RIGHT` for added and context lines. */
242
+ side: Schema.Literals(["LEFT", "RIGHT"])
243
+ }),
244
+ output: Schema.Struct({
245
+ commentId: Schema.Number,
246
+ url: Schema.String.pipe(Schema.optional)
247
+ }),
248
+ types: [PullRequest.PullRequest]
249
+ });
250
+ /**
251
+ * Re-read a stored pull request from GitHub and write back whatever has changed — its title, state,
252
+ * description, branches and size — so the object in the space does not go stale between syncs.
253
+ */
254
+ var SyncPullRequest = Operation.make({
255
+ meta: {
256
+ key: DXN.make("org.dxos.operation.github.syncPullRequest"),
257
+ name: "Sync Pull Request",
258
+ description: "Refresh a stored pull request from GitHub.",
259
+ icon: "ph--arrows-clockwise--regular"
260
+ },
261
+ input: Schema.Struct({ pullRequest: Ref.Ref(PullRequest.PullRequest) }),
262
+ output: Schema.Struct({
263
+ /** Names of the fields that changed; empty where the stored pull request was already current. */
264
+ updated: Schema.Array(Schema.String) }),
265
+ types: [PullRequest.PullRequest]
266
+ }).pipe(Operation.mutation("write"));
267
+ /**
268
+ * Refresh every pull request in the space that is still in flight (open or draft) from GitHub.
269
+ *
270
+ * Run on a schedule by the space's refresh trigger (see `ensureRefreshTrigger`), so pull requests the
271
+ * user is not looking at still track their state; one unreachable pull request does not fail the rest.
272
+ */
273
+ var RefreshPullRequests = Operation.make({
274
+ meta: {
275
+ key: DXN.make("org.dxos.operation.github.refreshPullRequests"),
276
+ name: "Refresh Pull Requests",
277
+ description: "Refresh every open pull request in the space from GitHub.",
278
+ icon: "ph--arrows-clockwise--regular"
279
+ },
280
+ services: [Database.Service],
281
+ input: Schema.Struct({}),
282
+ output: Schema.Struct({
283
+ /** Open pull requests read from GitHub. */
284
+ checked: Schema.Number,
285
+ /** Of those, the ones whose stored fields changed. */
286
+ updated: Schema.Number,
287
+ /** Of those, the ones GitHub could not be read for. */
288
+ failed: Schema.Number
289
+ }),
290
+ types: [PullRequest.PullRequest]
291
+ }).pipe(Operation.mutation("write"));
292
+ /** Aggregate outcome of a commit's check runs; `none` when the commit has no checks at all. */
293
+ var CiState = Schema.Literals([
294
+ "success",
295
+ "failure",
296
+ "pending",
297
+ "none"
298
+ ]);
299
+ var CheckCounts = Schema.Struct({
300
+ total: Schema.Number,
301
+ passed: Schema.Number,
302
+ failed: Schema.Number,
303
+ pending: Schema.Number
304
+ });
305
+ /**
306
+ * Where the reviews stand, from each reviewer's latest verdict: any outstanding request for changes
307
+ * outweighs approvals, and `none` means no reviewer has approved or asked for changes.
308
+ */
309
+ var ReviewState = Schema.Literals([
310
+ "approved",
311
+ "changes_requested",
312
+ "none"
313
+ ]);
314
+ /** How one check run ended, folded to what a reader acts on; `skipped` is neither passing nor failing. */
315
+ var CheckOutcome = Schema.Literals([
316
+ "success",
317
+ "failure",
318
+ "pending",
319
+ "skipped",
320
+ "neutral"
321
+ ]);
322
+ /** One check run on the head commit, as the article lists it. */
323
+ var CheckRun = Schema.Struct({
324
+ name: Schema.String,
325
+ outcome: CheckOutcome,
326
+ /** GitHub's own `conclusion` (`timed_out`, `cancelled`, …), kept for the label when it says more than the outcome. */
327
+ conclusion: Schema.String.pipe(Schema.optional),
328
+ /** Where the run's logs live: the provider's page when it has one, else GitHub's. */
329
+ url: Schema.String.pipe(Schema.optional),
330
+ startedAt: Schema.String.pipe(Schema.optional),
331
+ completedAt: Schema.String.pipe(Schema.optional)
332
+ });
333
+ /** Read a pull request's live state and the CI outcome of its head commit from GitHub. */
334
+ var GetPullRequestStatus = Operation.make({
335
+ meta: {
336
+ key: DXN.make("org.dxos.operation.github.getPullRequestStatus"),
337
+ name: "Get Pull Request Status",
338
+ description: "Read a pull request's state, its review verdict and the CI status of its head commit.",
339
+ icon: "ph--git-pull-request--regular"
340
+ },
341
+ input: Schema.Struct({ pullRequest: Ref.Ref(PullRequest.PullRequest) }),
342
+ output: Schema.Struct({
343
+ state: PullRequest.State,
344
+ title: Schema.String,
345
+ commit: Schema.String.pipe(Schema.optional),
346
+ /** The live description, which may have changed since the pull request was imported. */
347
+ body: Schema.String.pipe(Schema.optional),
348
+ ci: CiState,
349
+ checks: CheckCounts,
350
+ runs: Schema.Array(CheckRun),
351
+ review: ReviewState,
352
+ /** Reviewers whose latest verdict is an approval. */
353
+ approvals: Schema.Number
354
+ }),
355
+ types: [PullRequest.PullRequest]
356
+ });
357
+ /**
358
+ * Read a pull request's whole change as a unified diff, with the head commit it was taken at so a
359
+ * line comment on it anchors to the lines the reader saw.
360
+ */
361
+ var GetPullRequestDiff = Operation.make({
362
+ meta: {
363
+ key: DXN.make("org.dxos.operation.github.getPullRequestDiff"),
364
+ name: "Get Pull Request Diff",
365
+ description: "Read a pull request's changed files as a unified diff.",
366
+ icon: "ph--git-diff--regular"
367
+ },
368
+ input: Schema.Struct({ pullRequest: Ref.Ref(PullRequest.PullRequest) }),
369
+ output: Schema.Struct({
370
+ commit: Schema.String.pipe(Schema.optional),
371
+ diff: Schema.String
372
+ }),
373
+ types: [PullRequest.PullRequest]
374
+ });
375
+ /**
376
+ * Progress key for {@link GenerateWalkthrough}, derived from the pull request rather than passed, so
377
+ * the UI can watch a run it did not start. The absolute URI form is required: a hydration-dependent
378
+ * one would not match the key the producer mints.
379
+ */
380
+ var createWalkthroughProgressKey = (pullRequest) => Obj.getURI(pullRequest, { prefer: "absolute" }).toString() + "#walkthrough";
381
+ //#endregion
382
+ export { AddPullRequestComment, AddPullRequestReviewComment, CheckCounts, CheckOutcome, CheckRun, CiState, GenerateWalkthrough, GetGitHubRepositories, GetPullRequestDiff, GetPullRequestStatus, ImportPullRequest, ImportPullRequestFromSnapshot, MaterializeGitHubTarget, RefreshPullRequests, ReviewState, SubmitPullRequestApproval, SyncGitHubRepositories, SyncOptions, SyncPullRequest, createWalkthroughProgressKey, GitHubOperation_exports as t };
383
+
384
+ //# sourceMappingURL=GitHubOperation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubOperation.mjs","names":[],"sources":["../../src/types/GitHubOperation.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport * as Operation from '@dxos/compute/Operation';\nimport * as Trace from '@dxos/compute/Trace';\nimport { Database, DXN, Obj, Ref } from '@dxos/echo';\n// Referenced in the emitted .d.ts of the operations (via `ConnectorSpec`'s schemas); importing it\n// lets TypeScript name it (TS2883).\n// eslint-disable-next-line unused-imports/no-unused-imports\nimport { Connection } from '@dxos/link';\nimport * as ConnectorSpec from '@dxos/plugin-connector/ConnectorSpec';\nimport * as PageAction from '@dxos/plugin-crx/PageAction';\nimport { PullRequest } from '@dxos/types';\n\nimport * as Walkthrough from './Walkthrough.ts';\n\n/**\n * Discovery only — list GitHub repositories the connection's token can see.\n * Returns one descriptor per repo across all the user's orgs (and personal\n * account). Read-only: NEVER materializes local objects — materialization is\n * handled by the connector's `materializeTarget` when a `Cursor` is created.\n *\n * Orgs and their members are NOT presented as sync targets — they are\n * auto-synced as part of the sync of any repo they own.\n */\nexport const GetGitHubRepositories = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.getRepositories'),\n name: 'Get GitHub Repositories',\n description: 'List GitHub repositories reachable from a connection without materializing local objects.',\n icon: 'ph--github-logo--regular',\n },\n input: ConnectorSpec.GetSyncTargetsInput,\n output: ConnectorSpec.GetSyncTargetsOutput,\n});\n\n/**\n * Find-or-create the empty local root Project for a selected GitHub repo so a\n * cursor can reference it as its `spec.target`. Keyed by the repo's\n * GitHub foreign id (`remoteTarget.id`), so it is idempotent across re-selection.\n */\nexport const MaterializeGitHubTarget = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.materializeTarget'),\n name: 'Materialize GitHub Target',\n description: 'Create the empty local root Project bound to a selected GitHub repository.',\n icon: 'ph--github-logo--regular',\n },\n input: ConnectorSpec.MaterializeTargetInput,\n output: ConnectorSpec.MaterializeTargetOutput,\n});\n\n/**\n * Per-target options. `maxDaysBack` caps how far back issues/PRs are pulled\n * (mirrors the Gmail mailbox `daysBack`). Default — when unset — is \"sync\n * everything ever opened or edited.\"\n */\nexport const SyncOptions = Schema.Struct({\n maxDaysBack: Schema.Number.annotate({\n title: 'Sync history (days)',\n description: 'Pull issues and PRs updated within this many days. Leave empty to sync everything.',\n }).pipe(Schema.optional),\n});\n\nexport interface SyncOptions extends Schema.Schema.Type<typeof SyncOptions> {}\n\n/**\n * Reconcile GitHub data for every repo bound to a connection (one cursor per repo).\n *\n * Pull-then-push per bound repo: auto-upsert its owning org + members,\n * three-way merge the repo as a Project and its issues/PRs as Tasks (respecting\n * `maxDaysBack` if set), then push diverged Project/Task fields back to GitHub.\n * Sync state (`lastTick`/`lastError`/`spec.snapshots`) is written onto each binding.\n */\nexport const SyncGitHubRepositories = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.syncRepositories'),\n name: 'Sync GitHub Repositories',\n description: 'Reconcile every bound GitHub repo plus its owning org, members, issues, PRs, and comments.',\n icon: 'ph--arrows-clockwise--regular',\n },\n input: ConnectorSpec.SyncInput,\n output: Schema.Struct({\n pulled: Schema.Struct({\n organizations: Schema.Number,\n people: Schema.Number,\n projects: Schema.Number,\n tasks: Schema.Number,\n comments: Schema.Number,\n }),\n }),\n}).pipe(Operation.visible);\n\n/**\n * Import a pull request named by a github.com URL or `owner/repo#123` into the space, so it can be\n * opened, reviewed and walked through without waiting for a sync of the whole repository.\n *\n * Idempotent by coordinates — a pull request the space already holds is returned as it stands\n * rather than duplicated.\n */\nexport const ImportPullRequest = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.importPullRequest'),\n name: 'Import Pull Request',\n description: 'Add a pull request to the space, named by its URL or as owner/repo#number.',\n icon: 'ph--git-pull-request--regular',\n },\n services: [Database.Service],\n input: Schema.Struct({\n /** A github.com pull request URL, or `owner/repo#123`. */\n reference: Schema.String,\n }),\n output: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n /** False where the space already held the pull request, which is then returned unchanged. */\n imported: Schema.Boolean,\n }),\n types: [PullRequest.PullRequest],\n}).pipe(Operation.visible, Operation.mutation('write'));\n\n/**\n * Import the pull request the browser extension is looking at, named by the page's own URL.\n *\n * Separate from {@link ImportPullRequest} because the extension bridge invokes every page action\n * with the fixed `{ snapshot, target }` shape and reads an `{ id }` back. Nothing is extracted from\n * the page: the URL in the snapshot's source names the pull request, and GitHub is the authority on\n * everything else.\n */\nexport const ImportPullRequestFromSnapshot = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.importPullRequestFromSnapshot'),\n name: 'Open pull request in Composer',\n description: \"Import the pull request a browser page shows, named by that page's URL.\",\n icon: 'ph--git-pull-request--regular',\n },\n input: Schema.Struct({\n snapshot: PageAction.Snapshot,\n target: Database.Database.annotate({ description: 'The database to add the pull request to.' }),\n }),\n output: Schema.Struct({\n id: Schema.String,\n }),\n types: [PullRequest.PullRequest],\n}).pipe(Operation.mutation('write'));\n\n/**\n * Generate a walkthrough of a pull request: one markdown document narrating the change in reading\n * order, with its diff chunks spliced in from the patch itself.\n *\n * Idempotent by commit — a walkthrough already generated for the pull request's head is returned\n * unchanged unless `force` says otherwise, since the answer cannot have changed.\n */\nexport const GenerateWalkthrough = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.generateWalkthrough'),\n name: 'Generate Walkthrough',\n description: \"Narrate a pull request as one markdown document, with the change's diffs embedded in it.\",\n icon: 'ph--path--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n /** Regenerate even where a walkthrough for this head already exists. */\n force: Schema.Boolean.pipe(Schema.optional),\n }),\n output: Schema.Struct({\n walkthrough: Ref.Ref(Walkthrough.Walkthrough),\n /** Whether the model ran, as against an existing walkthrough being returned unchanged. */\n generated: Schema.Boolean,\n /** Hunks the prose accounts for, over the patch's total. */\n covered: Schema.Number,\n total: Schema.Number,\n }),\n types: [Walkthrough.Walkthrough, PullRequest.PullRequest],\n // `AiService` must be declared, not merely provided: the invoker builds the runtime from THIS list\n // and `Layer.orDie` clears a layer's error channel, never its requirement.\n services: [Trace.TraceService, AiService.AiService],\n}).pipe(Operation.visible);\n\n/**\n * Submit an approving review on a pull request, as the space's GitHub connection.\n *\n * Falls back to a marked conversation comment where GitHub refuses the review — the author's own\n * pull request, or a token with no review permission — so the approval is still recorded and still\n * detectable by an agent deciding whether the pull request is good to land.\n */\nexport const SubmitPullRequestApproval = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.submitPullRequestApproval'),\n name: 'Submit Pull Request Approval',\n description: 'Submit an approving review on a pull request, or record the approval as a comment.',\n icon: 'ph--check-circle--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n /** Optional review summary. */\n body: Schema.String.pipe(Schema.optional),\n }),\n output: Schema.Struct({\n /** Set where the approving review was accepted. */\n reviewId: Schema.Number.pipe(Schema.optional),\n /** Set instead where the approval was recorded as a comment. */\n commentId: Schema.Number.pipe(Schema.optional),\n url: Schema.String.pipe(Schema.optional),\n /** Whether the approval is a comment rather than a review. */\n commented: Schema.Boolean,\n }),\n types: [PullRequest.PullRequest],\n});\n\n/** Post a conversation comment on a pull request, as the space's GitHub connection. */\nexport const AddPullRequestComment = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.addPullRequestComment'),\n name: 'Add Pull Request Comment',\n description: 'Post a comment on a pull request.',\n icon: 'ph--chat-text--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n body: Schema.String,\n }),\n output: Schema.Struct({\n commentId: Schema.Number,\n url: Schema.String.pipe(Schema.optional),\n }),\n types: [PullRequest.PullRequest],\n});\n\n/** Post a review comment on one line of a pull request's diff, as the space's GitHub connection. */\nexport const AddPullRequestReviewComment = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.addPullRequestReviewComment'),\n name: 'Add Pull Request Review Comment',\n description: 'Post a review comment on a line of a pull request diff.',\n icon: 'ph--chat-centered-text--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n body: Schema.String,\n /** Head SHA the line numbers refer to; a walkthrough's `commit`. */\n commit: Schema.String,\n path: Schema.String,\n line: Schema.Number,\n /** `LEFT` for the removed side, `RIGHT` for added and context lines. */\n side: Schema.Literals(['LEFT', 'RIGHT']),\n }),\n output: Schema.Struct({\n commentId: Schema.Number,\n url: Schema.String.pipe(Schema.optional),\n }),\n types: [PullRequest.PullRequest],\n});\n\n/**\n * Re-read a stored pull request from GitHub and write back whatever has changed — its title, state,\n * description, branches and size — so the object in the space does not go stale between syncs.\n */\nexport const SyncPullRequest = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.syncPullRequest'),\n name: 'Sync Pull Request',\n description: 'Refresh a stored pull request from GitHub.',\n icon: 'ph--arrows-clockwise--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n }),\n output: Schema.Struct({\n /** Names of the fields that changed; empty where the stored pull request was already current. */\n updated: Schema.Array(Schema.String),\n }),\n types: [PullRequest.PullRequest],\n}).pipe(Operation.mutation('write'));\n\n/**\n * Refresh every pull request in the space that is still in flight (open or draft) from GitHub.\n *\n * Run on a schedule by the space's refresh trigger (see `ensureRefreshTrigger`), so pull requests the\n * user is not looking at still track their state; one unreachable pull request does not fail the rest.\n */\nexport const RefreshPullRequests = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.refreshPullRequests'),\n name: 'Refresh Pull Requests',\n description: 'Refresh every open pull request in the space from GitHub.',\n icon: 'ph--arrows-clockwise--regular',\n },\n services: [Database.Service],\n input: Schema.Struct({}),\n output: Schema.Struct({\n /** Open pull requests read from GitHub. */\n checked: Schema.Number,\n /** Of those, the ones whose stored fields changed. */\n updated: Schema.Number,\n /** Of those, the ones GitHub could not be read for. */\n failed: Schema.Number,\n }),\n types: [PullRequest.PullRequest],\n}).pipe(Operation.mutation('write'));\n\n/** Aggregate outcome of a commit's check runs; `none` when the commit has no checks at all. */\nexport const CiState = Schema.Literals(['success', 'failure', 'pending', 'none']);\nexport type CiState = Schema.Schema.Type<typeof CiState>;\n\nexport const CheckCounts = Schema.Struct({\n total: Schema.Number,\n passed: Schema.Number,\n failed: Schema.Number,\n pending: Schema.Number,\n});\nexport interface CheckCounts extends Schema.Schema.Type<typeof CheckCounts> {}\n\n/**\n * Where the reviews stand, from each reviewer's latest verdict: any outstanding request for changes\n * outweighs approvals, and `none` means no reviewer has approved or asked for changes.\n */\nexport const ReviewState = Schema.Literals(['approved', 'changes_requested', 'none']);\nexport type ReviewState = Schema.Schema.Type<typeof ReviewState>;\n\n/** How one check run ended, folded to what a reader acts on; `skipped` is neither passing nor failing. */\nexport const CheckOutcome = Schema.Literals(['success', 'failure', 'pending', 'skipped', 'neutral']);\nexport type CheckOutcome = Schema.Schema.Type<typeof CheckOutcome>;\n\n/** One check run on the head commit, as the article lists it. */\nexport const CheckRun = Schema.Struct({\n name: Schema.String,\n outcome: CheckOutcome,\n /** GitHub's own `conclusion` (`timed_out`, `cancelled`, …), kept for the label when it says more than the outcome. */\n conclusion: Schema.String.pipe(Schema.optional),\n /** Where the run's logs live: the provider's page when it has one, else GitHub's. */\n url: Schema.String.pipe(Schema.optional),\n startedAt: Schema.String.pipe(Schema.optional),\n completedAt: Schema.String.pipe(Schema.optional),\n});\nexport interface CheckRun extends Schema.Schema.Type<typeof CheckRun> {}\n\n/** Read a pull request's live state and the CI outcome of its head commit from GitHub. */\nexport const GetPullRequestStatus = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.getPullRequestStatus'),\n name: 'Get Pull Request Status',\n description: \"Read a pull request's state, its review verdict and the CI status of its head commit.\",\n icon: 'ph--git-pull-request--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n }),\n output: Schema.Struct({\n state: PullRequest.State,\n title: Schema.String,\n commit: Schema.String.pipe(Schema.optional),\n /** The live description, which may have changed since the pull request was imported. */\n body: Schema.String.pipe(Schema.optional),\n ci: CiState,\n checks: CheckCounts,\n runs: Schema.Array(CheckRun),\n review: ReviewState,\n /** Reviewers whose latest verdict is an approval. */\n approvals: Schema.Number,\n }),\n types: [PullRequest.PullRequest],\n});\n\n/**\n * Read a pull request's whole change as a unified diff, with the head commit it was taken at so a\n * line comment on it anchors to the lines the reader saw.\n */\nexport const GetPullRequestDiff = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.github.getPullRequestDiff'),\n name: 'Get Pull Request Diff',\n description: \"Read a pull request's changed files as a unified diff.\",\n icon: 'ph--git-diff--regular',\n },\n input: Schema.Struct({\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n }),\n output: Schema.Struct({\n commit: Schema.String.pipe(Schema.optional),\n diff: Schema.String,\n }),\n types: [PullRequest.PullRequest],\n});\n\n/**\n * Progress key for {@link GenerateWalkthrough}, derived from the pull request rather than passed, so\n * the UI can watch a run it did not start. The absolute URI form is required: a hydration-dependent\n * one would not match the key the producer mints.\n */\nexport const createWalkthroughProgressKey = (pullRequest: PullRequest.PullRequest): string =>\n Obj.getURI(pullRequest, { prefer: 'absolute' }).toString() + '#walkthrough';\n"],"mappings":"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"}
@@ -0,0 +1,16 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import { meta as meta$1 } from "#meta";
3
+ import * as Plugin from "@dxos/app-framework/Plugin";
4
+ //#region src/GitHubPlugin.ts
5
+ var GitHubPlugin_exports = /* @__PURE__ */ __exportAll({
6
+ make: () => make,
7
+ meta: () => meta
8
+ });
9
+ /** Plugin metadata, available without loading the plugin body. */
10
+ var meta = meta$1;
11
+ /** Constructs the plugin; the body loads on first enable. */
12
+ var make = Plugin.lazy(meta, () => import("#plugin"));
13
+ //#endregion
14
+ export { make, meta, GitHubPlugin_exports as t };
15
+
16
+ //# sourceMappingURL=GitHubPlugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubPlugin.mjs","names":[],"sources":["../../src/GitHubPlugin.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Plugin from '@dxos/app-framework/Plugin';\n\nimport { meta as pluginMeta } from '#meta';\n\n/** Plugin metadata, available without loading the plugin body. */\nexport const meta = pluginMeta;\n\n/** Constructs the plugin; the body loads on first enable. */\nexport const make = Plugin.lazy(meta, () => import('#plugin'));\n"],"mappings":";;;;;;;;;AAWA,IAAa,OAAO;;AAGpB,IAAa,OAAO,OAAO,KAAK,YAAY,OAAO,UAAU"}
@@ -0,0 +1,59 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import { PullRequest } from "@dxos/types";
3
+ import { Annotation, DXN, Format, Obj, Ref, Type } from "@dxos/echo";
4
+ import * as Schema from "effect/Schema";
5
+ //#region src/types/Walkthrough.ts
6
+ var Walkthrough_exports = /* @__PURE__ */ __exportAll({
7
+ Walkthrough: () => Walkthrough,
8
+ instanceOf: () => instanceOf,
9
+ isStale: () => isStale,
10
+ make: () => make,
11
+ makeTitle: () => makeTitle
12
+ });
13
+ /**
14
+ * A narrated reading of a pull request: one markdown document whose prose, headings and ```diff
15
+ * fences describe the change in the order a reviewer should meet it.
16
+ *
17
+ * Generated against ONE commit and stale the moment the branch moves, which is why `commit` is part
18
+ * of the record rather than something to infer — see {@link isStale}.
19
+ */
20
+ var Walkthrough = class extends Type.makeObject(DXN.make("org.dxos.type.walkthrough", "0.1.0"))(Schema.Struct({
21
+ /** The pull request this narrates. */
22
+ pullRequest: Ref.Ref(PullRequest.PullRequest),
23
+ /** `owner/repo#123: title`, copied at generation so the label needs no ref load. */
24
+ title: Schema.String.pipe(Schema.annotate({ title: "Title" }), Schema.optional),
25
+ /**
26
+ * The whole document, as a plain string rather than a text object.
27
+ *
28
+ * A walkthrough is replaced wholesale on every regeneration and is never co-edited character by
29
+ * character, so the CRDT a text object would impose is pure cost: it would keep per-character
30
+ * history for a document nobody edits.
31
+ */
32
+ body: Schema.String.pipe(Schema.annotate({ title: "Body" })),
33
+ /** Head SHA the walkthrough was generated from; anything else means it describes another change. */
34
+ commit: Schema.String.pipe(Schema.annotate({ title: "Commit" })),
35
+ generatedAt: Format.DateTime.pipe(Schema.annotate({ title: "Generated" }), Schema.optional),
36
+ /** Model that produced the prose, so a regression can be attributed after the default moves. */
37
+ model: Schema.String.pipe(Schema.annotate({ title: "Model" }), Schema.optional),
38
+ /** Hunks the prose accounts for, over the patch's total — how much of the change it narrates. */
39
+ covered: Schema.Number.pipe(Schema.annotate({ title: "Hunks covered" }), Schema.optional),
40
+ total: Schema.Number.pipe(Schema.annotate({ title: "Hunks total" }), Schema.optional)
41
+ }).pipe(Schema.annotate({
42
+ title: "Walkthrough",
43
+ description: "A narrated reading of a pull request."
44
+ }), Annotation.LabelAnnotation.set(["title", "commit"]), Annotation.IconAnnotation.set({
45
+ icon: "ph--path--regular",
46
+ hue: "indigo"
47
+ }), Annotation.UserType.set())) {};
48
+ /** Factory wrapper around `Obj.make` for {@link Walkthrough}. */
49
+ var make = (props) => Obj.make(Walkthrough, props);
50
+ /** Returns true when value is a Walkthrough object. */
51
+ var instanceOf = (value) => Obj.instanceOf(Walkthrough, value);
52
+ /** The label a walkthrough of this pull request carries. */
53
+ var makeTitle = (pullRequest, title = pullRequest.title) => `${PullRequest.reference(pullRequest)}: ${title}`;
54
+ /** Whether the walkthrough describes a commit other than the one given. */
55
+ var isStale = (walkthrough, head) => walkthrough.commit !== head;
56
+ //#endregion
57
+ export { Walkthrough, instanceOf, isStale, make, makeTitle, Walkthrough_exports as t };
58
+
59
+ //# sourceMappingURL=Walkthrough.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Walkthrough.mjs","names":[],"sources":["../../src/types/Walkthrough.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, DXN, Format, Obj, Ref, Type } from '@dxos/echo';\nimport { PullRequest } from '@dxos/types';\n\n/**\n * A narrated reading of a pull request: one markdown document whose prose, headings and ```diff\n * fences describe the change in the order a reviewer should meet it.\n *\n * Generated against ONE commit and stale the moment the branch moves, which is why `commit` is part\n * of the record rather than something to infer — see {@link isStale}.\n */\nexport class Walkthrough extends Type.makeObject<Walkthrough>(DXN.make('org.dxos.type.walkthrough', '0.1.0'))(\n Schema.Struct({\n /** The pull request this narrates. */\n pullRequest: Ref.Ref(PullRequest.PullRequest),\n\n /** `owner/repo#123: title`, copied at generation so the label needs no ref load. */\n title: Schema.String.pipe(Schema.annotate({ title: 'Title' }), Schema.optional),\n\n /**\n * The whole document, as a plain string rather than a text object.\n *\n * A walkthrough is replaced wholesale on every regeneration and is never co-edited character by\n * character, so the CRDT a text object would impose is pure cost: it would keep per-character\n * history for a document nobody edits.\n */\n body: Schema.String.pipe(Schema.annotate({ title: 'Body' })),\n\n /** Head SHA the walkthrough was generated from; anything else means it describes another change. */\n commit: Schema.String.pipe(Schema.annotate({ title: 'Commit' })),\n\n generatedAt: Format.DateTime.pipe(Schema.annotate({ title: 'Generated' }), Schema.optional),\n\n /** Model that produced the prose, so a regression can be attributed after the default moves. */\n model: Schema.String.pipe(Schema.annotate({ title: 'Model' }), Schema.optional),\n\n /** Hunks the prose accounts for, over the patch's total — how much of the change it narrates. */\n covered: Schema.Number.pipe(Schema.annotate({ title: 'Hunks covered' }), Schema.optional),\n total: Schema.Number.pipe(Schema.annotate({ title: 'Hunks total' }), Schema.optional),\n }).pipe(\n Schema.annotate({ title: 'Walkthrough', description: 'A narrated reading of a pull request.' }),\n Annotation.LabelAnnotation.set(['title', 'commit']),\n Annotation.IconAnnotation.set({ icon: 'ph--path--regular', hue: 'indigo' }),\n Annotation.UserType.set(),\n ),\n) {}\n\n/** Factory wrapper around `Obj.make` for {@link Walkthrough}. */\nexport const make = (props: Obj.MakeProps<typeof Walkthrough>): Walkthrough => Obj.make(Walkthrough, props);\n\n/** Returns true when value is a Walkthrough object. */\nexport const instanceOf = (value: unknown): value is Walkthrough => Obj.instanceOf(Walkthrough, value);\n\n/** The label a walkthrough of this pull request carries. */\nexport const makeTitle = (pullRequest: PullRequest.PullRequest, title = pullRequest.title): string =>\n `${PullRequest.reference(pullRequest)}: ${title}`;\n\n/** Whether the walkthrough describes a commit other than the one given. */\nexport const isStale = (walkthrough: Walkthrough, head: string): boolean => walkthrough.commit !== head;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,IAAa,cAAb,cAAiC,KAAK,WAAwB,IAAI,KAAK,6BAA6B,OAAO,CAAC,CAAC,CAC3G,OAAO,OAAO;;CAEZ,aAAa,IAAI,IAAI,YAAY,WAAW;;CAG5C,OAAO,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,QAAQ,CAAC,GAAG,OAAO,QAAQ;;;;;;;;CAS9E,MAAM,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,OAAO,CAAC,CAAC;;CAG3D,QAAQ,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,SAAS,CAAC,CAAC;CAE/D,aAAa,OAAO,SAAS,KAAK,OAAO,SAAS,EAAE,OAAO,YAAY,CAAC,GAAG,OAAO,QAAQ;;CAG1F,OAAO,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,QAAQ,CAAC,GAAG,OAAO,QAAQ;;CAG9E,SAAS,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,gBAAgB,CAAC,GAAG,OAAO,QAAQ;CACxF,OAAO,OAAO,OAAO,KAAK,OAAO,SAAS,EAAE,OAAO,cAAc,CAAC,GAAG,OAAO,QAAQ;AACtF,CAAC,CAAC,CAAC,KACD,OAAO,SAAS;CAAE,OAAO;CAAe,aAAa;AAAwC,CAAC,GAC9F,WAAW,gBAAgB,IAAI,CAAC,SAAS,QAAQ,CAAC,GAClD,WAAW,eAAe,IAAI;CAAE,MAAM;CAAqB,KAAK;AAAS,CAAC,GAC1E,WAAW,SAAS,IAAI,CAC1B,CACF,CAAC,CAAC,CAAC;;AAGH,IAAa,QAAQ,UAA0D,IAAI,KAAK,aAAa,KAAK;;AAG1G,IAAa,cAAc,UAAyC,IAAI,WAAW,aAAa,KAAK;;AAGrG,IAAa,aAAa,aAAsC,QAAQ,YAAY,UAClF,GAAG,YAAY,UAAU,WAAW,EAAE,IAAI;;AAG5C,IAAa,WAAW,aAA0B,SAA0B,YAAY,WAAW"}
@@ -0,0 +1,54 @@
1
+ import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
2
+ import * as ActivationEvents from "@dxos/app-framework/ActivationEvents";
3
+ import * as Capability from "@dxos/app-framework/Capability";
4
+ import * as AppCapability from "@dxos/app-toolkit/AppCapability";
5
+ import * as ConnectorEvents from "@dxos/plugin-connector/ConnectorEvents";
6
+ import * as ConnectorSpec from "@dxos/plugin-connector/ConnectorSpec";
7
+ import * as CrxCapabilities from "@dxos/plugin-crx/CrxCapabilities";
8
+ import * as CrxEvents from "@dxos/plugin-crx/CrxEvents";
9
+ import { translations } from "#translations";
10
+ import * as MarkdownCapabilities from "@dxos/plugin-markdown/MarkdownCapabilities";
11
+ import * as MarkdownEvents from "@dxos/plugin-markdown/MarkdownEvents";
12
+ import * as PreviewCapabilities from "@dxos/plugin-preview/PreviewCapabilities";
13
+ import * as PreviewEvents from "@dxos/plugin-preview/PreviewEvents";
14
+ import { meta } from "#meta";
15
+ //#region src/capabilities/gen/browser.ts
16
+ var Connector = Capability.lazyModule("GitHubConnector", {
17
+ provides: [ConnectorSpec.Connector],
18
+ activatesOn: ConnectorEvents.Start
19
+ }, () => import("./chunk-connector.mjs"));
20
+ var MarkdownExtension = Capability.lazyModule("MarkdownExtension", {
21
+ provides: [MarkdownCapabilities.ExtensionProvider],
22
+ activatesOn: MarkdownEvents.Start,
23
+ environments: ["browser", "tauri"]
24
+ }, () => import("./chunk-markdown-extension.mjs"));
25
+ var LinkResolver = Capability.lazyModule("LinkResolver", {
26
+ provides: [PreviewCapabilities.LinkResolver],
27
+ activatesOn: PreviewEvents.Start,
28
+ environments: ["browser", "tauri"]
29
+ }, () => import("./chunk-link-resolver.mjs"));
30
+ var AppGraphBuilder = AppCapability.appGraphBuilder(() => import("./chunk-app-graph-builder.mjs"), { environments: ["browser", "tauri"] });
31
+ var PageActionProvider = Capability.lazyModule("PageActionProvider", {
32
+ provides: [CrxCapabilities.PageAction],
33
+ activatesOn: CrxEvents.Start
34
+ }, () => import("./chunk-page-action.mjs"));
35
+ var OperationHandler = AppCapability.operationHandler(() => import("./chunk-operation-handler.mjs"), { activatesOn: ActivationEvents.Idle });
36
+ var Schema = AppCapability.schema(() => import("./chunk-schema.mjs"));
37
+ var SkillDefinition = AppCapability.skillDefinition(() => import("./chunk-skill-definition.mjs"));
38
+ var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs").then((n) => n.t), { roles: [
39
+ "org.dxos.role.cardContent",
40
+ "org.dxos.role.cardMenu",
41
+ "org.dxos.role.article",
42
+ "org.dxos.role.dialog"
43
+ ] });
44
+ var PluginAsset = AppCapability.pluginAsset({
45
+ pluginId: meta.profile.key,
46
+ path: "PLUGIN.mdl",
47
+ content: PLUGIN_default,
48
+ mimeType: "application/x-mdl"
49
+ });
50
+ var Translations = AppCapability.translations(translations);
51
+ //#endregion
52
+ export { AppGraphBuilder, Connector, LinkResolver, MarkdownExtension, OperationHandler, PageActionProvider, PluginAsset, ReactSurface, Schema, SkillDefinition, Translations };
53
+
54
+ //# sourceMappingURL=capabilities.browser.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.browser.mjs","names":[],"sources":["../../src/capabilities/gen/browser.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'browser' condition.\n\nimport * as ActivationEvents from '@dxos/app-framework/ActivationEvents';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as ConnectorEvents from '@dxos/plugin-connector/ConnectorEvents';\nimport * as ConnectorSpec from '@dxos/plugin-connector/ConnectorSpec';\nimport * as CrxCapabilities from '@dxos/plugin-crx/CrxCapabilities';\nimport * as CrxEvents from '@dxos/plugin-crx/CrxEvents';\nimport * as MarkdownCapabilities from '@dxos/plugin-markdown/MarkdownCapabilities';\nimport * as MarkdownEvents from '@dxos/plugin-markdown/MarkdownEvents';\nimport * as PreviewCapabilities from '@dxos/plugin-preview/PreviewCapabilities';\nimport * as PreviewEvents from '@dxos/plugin-preview/PreviewEvents';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nimport pluginSpec from '../../../PLUGIN.mdl?raw';\n\nexport const Connector = Capability.lazyModule(\n 'GitHubConnector',\n { provides: [ConnectorSpec.Connector], activatesOn: ConnectorEvents.Start },\n () => import('../connector.ts'),\n);\n\n// Browser-only: the editor it decorates and the popover it answers render nowhere else.\nexport const MarkdownExtension = Capability.lazyModule(\n 'MarkdownExtension',\n {\n provides: [MarkdownCapabilities.ExtensionProvider],\n activatesOn: MarkdownEvents.Start,\n environments: ['browser', 'tauri'],\n },\n () => import('../markdown-extension.ts'),\n);\n\nexport const LinkResolver = Capability.lazyModule(\n 'LinkResolver',\n {\n provides: [PreviewCapabilities.LinkResolver],\n activatesOn: PreviewEvents.Start,\n environments: ['browser', 'tauri'],\n },\n () => import('../link-resolver.ts'),\n);\n\n// Narrower than the `appGraphBuilder` family default: the action opens a dialog, which means\n// nothing without an app shell.\nexport const AppGraphBuilder = AppCapability.appGraphBuilder(() => import('../app-graph-builder.ts'), {\n environments: ['browser', 'tauri'],\n});\n\nexport const PageActionProvider = Capability.lazyModule(\n 'PageActionProvider',\n { provides: [CrxCapabilities.PageAction], activatesOn: CrxEvents.Start },\n () => import('../page-action.ts'),\n);\n\nexport const OperationHandler = AppCapability.operationHandler(() => import('../operation-handler.ts'), {\n activatesOn: ActivationEvents.Idle,\n});\n\nexport const Schema = AppCapability.schema(() => import('../schema.ts'));\n\nexport const SkillDefinition = AppCapability.skillDefinition(() => import('../skill-definition.ts'));\n\nexport const ReactSurface = AppCapability.surface(() => import('../react-surface.ts'), {\n roles: ['org.dxos.role.cardContent', 'org.dxos.role.cardMenu', 'org.dxos.role.article', 'org.dxos.role.dialog'],\n});\n\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\n\nexport const Translations = AppCapability.translations(translations);\n"],"mappings":";;;;;;;;;;;;;;;AAuBA,IAAa,YAAY,WAAW,WAClC,mBACA;CAAE,UAAU,CAAC,cAAc,SAAS;CAAG,aAAa,gBAAgB;AAAM,SACpE,OAAO,wBACf;AAGA,IAAa,oBAAoB,WAAW,WAC1C,qBACA;CACE,UAAU,CAAC,qBAAqB,iBAAiB;CACjD,aAAa,eAAe;CAC5B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,iCACf;AAEA,IAAa,eAAe,WAAW,WACrC,gBACA;CACE,UAAU,CAAC,oBAAoB,YAAY;CAC3C,aAAa,cAAc;CAC3B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,4BACf;AAIA,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,kCAA4B,EACpG,cAAc,CAAC,WAAW,OAAO,EACnC,CAAC;AAED,IAAa,qBAAqB,WAAW,WAC3C,sBACA;CAAE,UAAU,CAAC,gBAAgB,UAAU;CAAG,aAAa,UAAU;AAAM,SACjE,OAAO,0BACf;AAEA,IAAa,mBAAmB,cAAc,uBAAuB,OAAO,kCAA4B,EACtG,aAAa,iBAAiB,KAChC,CAAC;AAED,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAe;AAEvE,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,+BAAyB;AAEnG,IAAa,eAAe,cAAc,cAAc,OAAO,4BAAA,CAAA,MAAA,MAAA,EAAA,CAAA,GAAwB,EACrF,OAAO;CAAC;CAA6B;CAA0B;CAAyB;AAAsB,EAChH,CAAC;AAED,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,SAAS;CACT,UAAU;AACZ,CAAC;AAED,IAAa,eAAe,cAAc,aAAa,YAAY"}