@dxos/plugin-github 0.14.0 → 0.16.0-next-60712ab191a99ba90316cc4be753e9e11b17100a

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 (86) hide show
  1. package/dist/lib/GitHubCapabilities.mjs +1 -10
  2. package/dist/lib/GitHubEvents.mjs +1 -15
  3. package/dist/lib/GitHubOperation.mjs +1 -384
  4. package/dist/lib/GitHubPlugin.mjs +1 -16
  5. package/dist/lib/Walkthrough.mjs +1 -59
  6. package/dist/lib/capabilities.browser.mjs +1 -2
  7. package/dist/lib/capabilities.browser.mjs.map +1 -1
  8. package/dist/lib/capabilities.mjs +1 -2
  9. package/dist/lib/capabilities.mjs.map +1 -1
  10. package/dist/lib/capabilities.tauri.mjs +1 -2
  11. package/dist/lib/capabilities.tauri.mjs.map +1 -1
  12. package/dist/lib/chunk-Extensions.mjs +18 -0
  13. package/dist/lib/chunk-Extensions.mjs.map +1 -0
  14. package/dist/lib/chunk-GitHubCapabilities.mjs +10 -0
  15. package/dist/lib/chunk-GitHubCapabilities.mjs.map +1 -0
  16. package/dist/lib/chunk-GitHubEvents.mjs +15 -0
  17. package/dist/lib/chunk-GitHubEvents.mjs.map +1 -0
  18. package/dist/lib/chunk-GitHubOperation.mjs +386 -0
  19. package/dist/lib/chunk-GitHubOperation.mjs.map +1 -0
  20. package/dist/lib/chunk-GitHubPlugin.mjs +16 -0
  21. package/dist/lib/chunk-GitHubPlugin.mjs.map +1 -0
  22. package/dist/lib/chunk-ImportPullRequestDialog.mjs.map +1 -1
  23. package/dist/lib/chunk-PLUGIN.mjs +1 -1
  24. package/dist/lib/chunk-PullRequestArticle.mjs +33 -10
  25. package/dist/lib/chunk-PullRequestArticle.mjs.map +1 -1
  26. package/dist/lib/chunk-PullRequestArticle2.mjs +1 -2
  27. package/dist/lib/chunk-PullRequestCardMenu.mjs +1 -1
  28. package/dist/lib/chunk-PullRequestsArticle.mjs +3 -3
  29. package/dist/lib/chunk-PullRequestsArticle.mjs.map +1 -1
  30. package/dist/lib/chunk-Walkthrough.mjs +59 -0
  31. package/dist/lib/chunk-Walkthrough.mjs.map +1 -0
  32. package/dist/lib/chunk-WalkthroughArticle.mjs +1 -1
  33. package/dist/lib/chunk-add-pull-request-comment.mjs.map +1 -1
  34. package/dist/lib/chunk-add-pull-request-review-comment.mjs.map +1 -1
  35. package/dist/lib/chunk-connector.mjs.map +1 -1
  36. package/dist/lib/chunk-generate-walkthrough.mjs.map +1 -1
  37. package/dist/lib/chunk-get-pull-request-diff.mjs.map +1 -1
  38. package/dist/lib/chunk-get-pull-request-status.mjs.map +1 -1
  39. package/dist/lib/chunk-get-repositories.mjs.map +1 -1
  40. package/dist/lib/chunk-github-api.mjs +1 -0
  41. package/dist/lib/chunk-github-api.mjs.map +1 -1
  42. package/dist/lib/chunk-import-pull-request.mjs.map +1 -1
  43. package/dist/lib/chunk-link-resolver.mjs.map +1 -1
  44. package/dist/lib/chunk-pull-request2.mjs +1 -0
  45. package/dist/lib/chunk-pull-request2.mjs.map +1 -1
  46. package/dist/lib/chunk-react-surface.mjs +4 -4
  47. package/dist/lib/chunk-react-surface.mjs.map +1 -1
  48. package/dist/lib/chunk-submit-pull-request-approval.mjs.map +1 -1
  49. package/dist/lib/chunk-sync.mjs.map +1 -1
  50. package/dist/lib/index.mjs +2 -2
  51. package/dist/lib/meta.mjs.map +1 -1
  52. package/dist/lib/ns/Extensions.mjs +2 -16
  53. package/dist/lib/types.mjs +4 -4
  54. package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -1
  56. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  57. package/dist/types/src/cards/GitHubCard.d.ts.map +1 -1
  58. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts +1 -1
  59. package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts.map +1 -1
  60. package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts.map +1 -1
  61. package/dist/types/src/operations/pull-request.d.ts.map +1 -1
  62. package/dist/types/src/services/github-api.d.ts +1 -0
  63. package/dist/types/src/services/github-api.d.ts.map +1 -1
  64. package/dist/types/src/stories/PullRequestOverview.stories.d.ts +2 -0
  65. package/dist/types/src/stories/PullRequestOverview.stories.d.ts.map +1 -1
  66. package/dist/types/src/types/GitHubOperation.d.ts +3 -0
  67. package/dist/types/src/types/GitHubOperation.d.ts.map +1 -1
  68. package/dist/types/tsconfig.tsbuildinfo +1 -1
  69. package/package.json +47 -47
  70. package/src/capabilities/gen/browser.ts +1 -3
  71. package/src/capabilities/gen/tauri.ts +1 -3
  72. package/src/capabilities/index.ts +1 -4
  73. package/src/cards/GitHubCard.tsx +7 -3
  74. package/src/components/PullRequestOverview/CheckRunList.tsx +34 -6
  75. package/src/components/PullRequestOverview/PullRequestOverview.tsx +5 -1
  76. package/src/containers/PullRequestsArticle/PullRequestsArticle.tsx +12 -10
  77. package/src/operations/pull-request.ts +1 -0
  78. package/src/services/github-api.ts +1 -0
  79. package/src/stories/PullRequestOverview.stories.tsx +20 -0
  80. package/src/types/GitHubOperation.ts +2 -0
  81. package/dist/lib/GitHubCapabilities.mjs.map +0 -1
  82. package/dist/lib/GitHubEvents.mjs.map +0 -1
  83. package/dist/lib/GitHubOperation.mjs.map +0 -1
  84. package/dist/lib/GitHubPlugin.mjs.map +0 -1
  85. package/dist/lib/Walkthrough.mjs.map +0 -1
  86. package/dist/lib/ns/Extensions.mjs.map +0 -1
@@ -1,10 +1 @@
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
1
+ export { n as LinkSource } from "./chunk-GitHubCapabilities.mjs";
@@ -1,15 +1 @@
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
1
+ export { n as Start } from "./chunk-GitHubEvents.mjs";
@@ -1,384 +1 @@
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
1
+ export { t as AddPullRequestComment, n as AddPullRequestReviewComment, r as CheckCounts, i as CheckOutcome, a as CheckRun, o as CiState, s as GenerateWalkthrough, c as GetGitHubRepositories, l as GetPullRequestDiff, u as GetPullRequestStatus, f as ImportPullRequest, p as ImportPullRequestFromSnapshot, m as MaterializeGitHubTarget, h as RefreshPullRequests, g as ReviewState, _ as SubmitPullRequestApproval, v as SyncGitHubRepositories, y as SyncOptions, b as SyncPullRequest, x as createWalkthroughProgressKey } from "./chunk-GitHubOperation.mjs";
@@ -1,16 +1 @@
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
1
+ export { n as make, r as meta } from "./chunk-GitHubPlugin.mjs";
@@ -1,59 +1 @@
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
1
+ export { t as Walkthrough, r as instanceOf, i as isStale, a as make, o as makeTitle } from "./chunk-Walkthrough.mjs";
@@ -1,4 +1,3 @@
1
- import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
2
1
  import * as ActivationEvents from "@dxos/app-framework/ActivationEvents";
3
2
  import * as Capability from "@dxos/app-framework/Capability";
4
3
  import * as AppCapability from "@dxos/app-toolkit/AppCapability";
@@ -44,7 +43,7 @@ var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs
44
43
  var PluginAsset = AppCapability.pluginAsset({
45
44
  pluginId: meta.profile.key,
46
45
  path: "PLUGIN.mdl",
47
- content: PLUGIN_default,
46
+ content: () => import("./chunk-PLUGIN.mjs"),
48
47
  mimeType: "application/x-mdl"
49
48
  });
50
49
  var Translations = AppCapability.translations(translations);
@@ -1 +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"}
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\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: () => import('../../../PLUGIN.mdl?raw'),\n mimeType: 'application/x-mdl',\n});\n\nexport const Translations = AppCapability.translations(translations);\n"],"mappings":";;;;;;;;;;;;;;AAqBA,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,eAAe,OAAO;CACtB,UAAU;AACZ,CAAC;AAED,IAAa,eAAe,cAAc,aAAa,YAAY"}
@@ -1,4 +1,3 @@
1
- import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
2
1
  import * as ActivationEvents from "@dxos/app-framework/ActivationEvents";
3
2
  import * as Capability from "@dxos/app-framework/Capability";
4
3
  import * as AppCapability from "@dxos/app-toolkit/AppCapability";
@@ -44,7 +43,7 @@ var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs
44
43
  var PluginAsset = AppCapability.pluginAsset({
45
44
  pluginId: meta.profile.key,
46
45
  path: "PLUGIN.mdl",
47
- content: PLUGIN_default,
46
+ content: () => import("./chunk-PLUGIN.mjs"),
48
47
  mimeType: "application/x-mdl"
49
48
  });
50
49
  var Translations = AppCapability.translations(translations);
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.mjs","names":[],"sources":["../../src/capabilities/index.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\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\n// eslint-disable-next-line import/no-relative-packages\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// 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);\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// 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});\nexport const PageActionProvider = Capability.lazyModule(\n 'PageActionProvider',\n { provides: [CrxCapabilities.PageAction], activatesOn: CrxEvents.Start },\n () => import('./page-action.ts'),\n);\nexport const OperationHandler = AppCapability.operationHandler(() => import('./operation-handler.ts'), {\n activatesOn: ActivationEvents.Idle,\n});\nexport const Schema = AppCapability.schema(() => import('./schema.ts'));\nexport const SkillDefinition = AppCapability.skillDefinition(() => import('./skill-definition.ts'));\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});\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\nexport const Translations = AppCapability.translations(translations);\n"],"mappings":";;;;;;;;;;;;;;;AAsBA,IAAa,YAAY,WAAW,WAClC,mBACA;CAAE,UAAU,CAAC,cAAc,SAAS;CAAG,aAAa,gBAAgB;AAAM,SACpE,OAAO,wBACf;AAEA,IAAa,oBAAoB,WAAW,WAC1C,qBACA;CACE,UAAU,CAAC,qBAAqB,iBAAiB;CACjD,aAAa,eAAe;CAC5B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,iCACf;AACA,IAAa,eAAe,WAAW,WACrC,gBACA;CACE,UAAU,CAAC,oBAAoB,YAAY;CAC3C,aAAa,cAAc;CAC3B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,4BACf;AAGA,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,kCAA2B,EACnG,cAAc,CAAC,WAAW,OAAO,EACnC,CAAC;AACD,IAAa,qBAAqB,WAAW,WAC3C,sBACA;CAAE,UAAU,CAAC,gBAAgB,UAAU;CAAG,aAAa,UAAU;AAAM,SACjE,OAAO,0BACf;AACA,IAAa,mBAAmB,cAAc,uBAAuB,OAAO,kCAA2B,EACrG,aAAa,iBAAiB,KAChC,CAAC;AACD,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAc;AACtE,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,+BAAwB;AAClG,IAAa,eAAe,cAAc,cAAc,OAAO,4BAAA,CAAA,MAAA,MAAA,EAAA,CAAA,GAAuB,EACpF,OAAO;CAAC;CAA6B;CAA0B;CAAyB;AAAsB,EAChH,CAAC;AACD,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,SAAS;CACT,UAAU;AACZ,CAAC;AACD,IAAa,eAAe,cAAc,aAAa,YAAY"}
1
+ {"version":3,"file":"capabilities.mjs","names":[],"sources":["../../src/capabilities/index.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\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\nexport const Connector = Capability.lazyModule(\n 'GitHubConnector',\n { provides: [ConnectorSpec.Connector], activatesOn: ConnectorEvents.Start },\n () => import('./connector.ts'),\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);\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// 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});\nexport const PageActionProvider = Capability.lazyModule(\n 'PageActionProvider',\n { provides: [CrxCapabilities.PageAction], activatesOn: CrxEvents.Start },\n () => import('./page-action.ts'),\n);\nexport const OperationHandler = AppCapability.operationHandler(() => import('./operation-handler.ts'), {\n activatesOn: ActivationEvents.Idle,\n});\nexport const Schema = AppCapability.schema(() => import('./schema.ts'));\nexport const SkillDefinition = AppCapability.skillDefinition(() => import('./skill-definition.ts'));\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});\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: () => import('../../PLUGIN.mdl?raw'),\n mimeType: 'application/x-mdl',\n});\nexport const Translations = AppCapability.translations(translations);\n"],"mappings":";;;;;;;;;;;;;;AAmBA,IAAa,YAAY,WAAW,WAClC,mBACA;CAAE,UAAU,CAAC,cAAc,SAAS;CAAG,aAAa,gBAAgB;AAAM,SACpE,OAAO,wBACf;AAEA,IAAa,oBAAoB,WAAW,WAC1C,qBACA;CACE,UAAU,CAAC,qBAAqB,iBAAiB;CACjD,aAAa,eAAe;CAC5B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,iCACf;AACA,IAAa,eAAe,WAAW,WACrC,gBACA;CACE,UAAU,CAAC,oBAAoB,YAAY;CAC3C,aAAa,cAAc;CAC3B,cAAc,CAAC,WAAW,OAAO;AACnC,SACM,OAAO,4BACf;AAGA,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,kCAA2B,EACnG,cAAc,CAAC,WAAW,OAAO,EACnC,CAAC;AACD,IAAa,qBAAqB,WAAW,WAC3C,sBACA;CAAE,UAAU,CAAC,gBAAgB,UAAU;CAAG,aAAa,UAAU;AAAM,SACjE,OAAO,0BACf;AACA,IAAa,mBAAmB,cAAc,uBAAuB,OAAO,kCAA2B,EACrG,aAAa,iBAAiB,KAChC,CAAC;AACD,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAc;AACtE,IAAa,kBAAkB,cAAc,sBAAsB,OAAO,+BAAwB;AAClG,IAAa,eAAe,cAAc,cAAc,OAAO,4BAAA,CAAA,MAAA,MAAA,EAAA,CAAA,GAAuB,EACpF,OAAO;CAAC;CAA6B;CAA0B;CAAyB;AAAsB,EAChH,CAAC;AACD,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,eAAe,OAAO;CACtB,UAAU;AACZ,CAAC;AACD,IAAa,eAAe,cAAc,aAAa,YAAY"}
@@ -1,4 +1,3 @@
1
- import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
2
1
  import * as ActivationEvents from "@dxos/app-framework/ActivationEvents";
3
2
  import * as Capability from "@dxos/app-framework/Capability";
4
3
  import * as AppCapability from "@dxos/app-toolkit/AppCapability";
@@ -44,7 +43,7 @@ var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs
44
43
  var PluginAsset = AppCapability.pluginAsset({
45
44
  pluginId: meta.profile.key,
46
45
  path: "PLUGIN.mdl",
47
- content: PLUGIN_default,
46
+ content: () => import("./chunk-PLUGIN.mjs"),
48
47
  mimeType: "application/x-mdl"
49
48
  });
50
49
  var Translations = AppCapability.translations(translations);
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.tauri.mjs","names":[],"sources":["../../src/capabilities/gen/tauri.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'tauri' 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"}
1
+ {"version":3,"file":"capabilities.tauri.mjs","names":[],"sources":["../../src/capabilities/gen/tauri.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'tauri' 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\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: () => import('../../../PLUGIN.mdl?raw'),\n mimeType: 'application/x-mdl',\n});\n\nexport const Translations = AppCapability.translations(translations);\n"],"mappings":";;;;;;;;;;;;;;AAqBA,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,eAAe,OAAO;CACtB,UAAU;AACZ,CAAC;AAED,IAAa,eAAe,cAAc,aAAa,YAAY"}
@@ -0,0 +1,18 @@
1
+ import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
2
+ import { n as parseGitHubLink, r as parsePullRequestReference, t as GITHUB_LINK } from "./chunk-github-link.mjs";
3
+ import { PULL_REQUEST_ICON, githubLinkIcon, githubLinks, githubReferences, referenceUrl } from "./extensions.mjs";
4
+ //#region src/Extensions.ts
5
+ var Extensions_exports = /* @__PURE__ */ __exportAll({
6
+ GITHUB_LINK: () => GITHUB_LINK,
7
+ PULL_REQUEST_ICON: () => PULL_REQUEST_ICON,
8
+ githubLinkIcon: () => githubLinkIcon,
9
+ githubLinks: () => githubLinks,
10
+ githubReferences: () => githubReferences,
11
+ parseGitHubLink: () => parseGitHubLink,
12
+ parsePullRequestReference: () => parsePullRequestReference,
13
+ referenceUrl: () => referenceUrl
14
+ });
15
+ //#endregion
16
+ export { Extensions_exports as t };
17
+
18
+ //# sourceMappingURL=chunk-Extensions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-Extensions.mjs","names":[],"sources":["../../src/Extensions.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nexport * from './extensions/index.ts';\n"],"mappings":""}
@@ -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 as n, GitHubCapabilities_exports as t };
9
+
10
+ //# sourceMappingURL=chunk-GitHubCapabilities.mjs.map