@dxos/plugin-github 0.7.4 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/PLUGIN.mdl +784 -0
- package/dist/lib/GitHubCapabilities.mjs +10 -0
- package/dist/lib/GitHubCapabilities.mjs.map +1 -0
- package/dist/lib/GitHubEvents.mjs +15 -0
- package/dist/lib/GitHubEvents.mjs.map +1 -0
- package/dist/lib/GitHubOperation.mjs +358 -0
- package/dist/lib/GitHubOperation.mjs.map +1 -0
- package/dist/lib/GitHubPlugin.mjs +16 -0
- package/dist/lib/GitHubPlugin.mjs.map +1 -0
- package/dist/lib/Walkthrough.mjs +59 -0
- package/dist/lib/Walkthrough.mjs.map +1 -0
- package/dist/lib/capabilities.browser.mjs +54 -0
- package/dist/lib/capabilities.browser.mjs.map +1 -0
- package/dist/lib/capabilities.mjs +54 -0
- package/dist/lib/capabilities.mjs.map +1 -0
- package/dist/lib/capabilities.node.mjs +30 -0
- package/dist/lib/capabilities.node.mjs.map +1 -0
- package/dist/lib/capabilities.tauri.mjs +54 -0
- package/dist/lib/capabilities.tauri.mjs.map +1 -0
- package/dist/lib/capabilities.workerd.mjs +30 -0
- package/dist/lib/capabilities.workerd.mjs.map +1 -0
- package/dist/lib/chunk-ImportPullRequestDialog.mjs +116 -0
- package/dist/lib/chunk-ImportPullRequestDialog.mjs.map +1 -0
- package/dist/lib/chunk-PLUGIN.mjs +6 -0
- package/dist/lib/chunk-PLUGIN.mjs.map +1 -0
- package/dist/lib/chunk-PullRequestArticle.mjs +1486 -0
- package/dist/lib/chunk-PullRequestArticle.mjs.map +1 -0
- package/dist/lib/chunk-PullRequestArticle2.mjs +2 -0
- package/dist/lib/chunk-PullRequestCardMenu.mjs +123 -0
- package/dist/lib/chunk-PullRequestCardMenu.mjs.map +1 -0
- package/dist/lib/chunk-PullRequestsArticle.mjs +594 -0
- package/dist/lib/chunk-PullRequestsArticle.mjs.map +1 -0
- package/dist/lib/chunk-WalkthroughArticle.mjs +26 -0
- package/dist/lib/chunk-WalkthroughArticle.mjs.map +1 -0
- package/dist/lib/chunk-add-pull-request-comment.mjs +19 -0
- package/dist/lib/chunk-add-pull-request-comment.mjs.map +1 -0
- package/dist/lib/chunk-add-pull-request-review-comment.mjs +25 -0
- package/dist/lib/chunk-add-pull-request-review-comment.mjs.map +1 -0
- package/dist/lib/chunk-app-graph-builder.mjs +39 -0
- package/dist/lib/chunk-app-graph-builder.mjs.map +1 -0
- package/dist/lib/chunk-connector.mjs +70 -0
- package/dist/lib/chunk-connector.mjs.map +1 -0
- package/dist/lib/chunk-constants.mjs +11 -0
- package/dist/lib/chunk-constants.mjs.map +1 -0
- package/dist/lib/chunk-errors.mjs +29 -0
- package/dist/lib/chunk-errors.mjs.map +1 -0
- package/dist/lib/chunk-generate-walkthrough.mjs +86 -0
- package/dist/lib/chunk-generate-walkthrough.mjs.map +1 -0
- package/dist/lib/chunk-generate.mjs +719 -0
- package/dist/lib/chunk-generate.mjs.map +1 -0
- package/dist/lib/chunk-get-pull-request-diff.mjs +25 -0
- package/dist/lib/chunk-get-pull-request-diff.mjs.map +1 -0
- package/dist/lib/chunk-get-pull-request-status.mjs +29 -0
- package/dist/lib/chunk-get-pull-request-status.mjs.map +1 -0
- package/dist/lib/chunk-get-repositories.mjs +32 -0
- package/dist/lib/chunk-get-repositories.mjs.map +1 -0
- package/dist/lib/chunk-github-api.mjs +375 -0
- package/dist/lib/chunk-github-api.mjs.map +1 -0
- package/dist/lib/chunk-github-link.mjs +59 -0
- package/dist/lib/chunk-github-link.mjs.map +1 -0
- package/dist/lib/chunk-import-pull-request-from-snapshot.mjs +25 -0
- package/dist/lib/chunk-import-pull-request-from-snapshot.mjs.map +1 -0
- package/dist/lib/chunk-import-pull-request.mjs +96 -0
- package/dist/lib/chunk-import-pull-request.mjs.map +1 -0
- package/dist/lib/chunk-link-resolver.mjs +109 -0
- package/dist/lib/chunk-link-resolver.mjs.map +1 -0
- package/dist/lib/chunk-markdown-extension.mjs +92 -0
- package/dist/lib/chunk-markdown-extension.mjs.map +1 -0
- package/dist/lib/chunk-materialize-target.mjs +36 -0
- package/dist/lib/chunk-materialize-target.mjs.map +1 -0
- package/dist/lib/chunk-operation-handler.mjs +12 -0
- package/dist/lib/chunk-operation-handler.mjs.map +1 -0
- package/dist/lib/chunk-page-action.mjs +22 -0
- package/dist/lib/chunk-page-action.mjs.map +1 -0
- package/dist/lib/chunk-pull-request.mjs +58 -0
- package/dist/lib/chunk-pull-request.mjs.map +1 -0
- package/dist/lib/chunk-pull-request2.mjs +110 -0
- package/dist/lib/chunk-pull-request2.mjs.map +1 -0
- package/dist/lib/chunk-react-surface.mjs +233 -0
- package/dist/lib/chunk-react-surface.mjs.map +1 -0
- package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
- package/dist/lib/chunk-schema.mjs +15 -0
- package/dist/lib/chunk-schema.mjs.map +1 -0
- package/dist/lib/chunk-skill-definition.mjs +10 -0
- package/dist/lib/chunk-skill-definition.mjs.map +1 -0
- package/dist/lib/chunk-submit-pull-request-approval.mjs +56 -0
- package/dist/lib/chunk-submit-pull-request-approval.mjs.map +1 -0
- package/dist/lib/chunk-sync-pull-request.mjs +24 -0
- package/dist/lib/chunk-sync-pull-request.mjs.map +1 -0
- package/dist/lib/chunk-sync.mjs +481 -0
- package/dist/lib/chunk-sync.mjs.map +1 -0
- package/dist/lib/chunk-useOpenObject.mjs +43 -0
- package/dist/lib/chunk-useOpenObject.mjs.map +1 -0
- package/dist/lib/extensions.mjs +132 -0
- package/dist/lib/extensions.mjs.map +1 -0
- package/dist/lib/index.mjs +4 -0
- package/dist/lib/meta.mjs +47 -0
- package/dist/lib/meta.mjs.map +1 -0
- package/dist/lib/ns/Extensions.mjs +18 -0
- package/dist/lib/ns/Extensions.mjs.map +1 -0
- package/dist/lib/operations.mjs +22 -0
- package/dist/lib/operations.mjs.map +1 -0
- package/dist/lib/plugin.mjs +9 -0
- package/dist/lib/plugin.mjs.map +1 -0
- package/dist/lib/skills.mjs +44 -0
- package/dist/lib/skills.mjs.map +1 -0
- package/dist/lib/testing.mjs +189 -0
- package/dist/lib/testing.mjs.map +1 -0
- package/dist/lib/translations.mjs +136 -0
- package/dist/lib/translations.mjs.map +1 -0
- package/dist/lib/types.mjs +5 -0
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/Extensions.d.ts +2 -0
- package/dist/types/src/Extensions.d.ts.map +1 -0
- package/dist/types/src/GitHubPlugin.d.ts +37 -0
- package/dist/types/src/GitHubPlugin.d.ts.map +1 -0
- package/dist/types/src/GitHubPlugin.workerd.test.d.ts +2 -0
- package/dist/types/src/GitHubPlugin.workerd.test.d.ts.map +1 -0
- package/dist/types/src/approval.d.ts +21 -0
- package/dist/types/src/approval.d.ts.map +1 -0
- package/dist/types/src/approval.test.d.ts +2 -0
- package/dist/types/src/approval.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +9 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/connector.d.ts +17 -0
- package/dist/types/src/capabilities/connector.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/browser.d.ts +13 -0
- package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/node.d.ts +13 -0
- package/dist/types/src/capabilities/gen/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/tauri.d.ts +13 -0
- package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts +13 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +13 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/link-resolver.d.ts +10 -0
- package/dist/types/src/capabilities/link-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown-extension.d.ts +14 -0
- package/dist/types/src/capabilities/markdown-extension.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +5 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/page-action.d.ts +5 -0
- package/dist/types/src/capabilities/page-action.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema.d.ts +12 -0
- package/dist/types/src/capabilities/schema.d.ts.map +1 -0
- package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
- package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
- package/dist/types/src/cards/GitHubCard.d.ts +11 -0
- package/dist/types/src/cards/GitHubCard.d.ts.map +1 -0
- package/dist/types/src/cards/GitHubCard.stories.d.ts +45 -0
- package/dist/types/src/cards/GitHubCard.stories.d.ts.map +1 -0
- package/dist/types/src/cards/PullRequestCard.d.ts +9 -0
- package/dist/types/src/cards/PullRequestCard.d.ts.map +1 -0
- package/dist/types/src/cards/index.d.ts +3 -0
- package/dist/types/src/cards/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentComposer/CommentComposer.d.ts +30 -0
- package/dist/types/src/components/CommentComposer/CommentComposer.d.ts.map +1 -0
- package/dist/types/src/components/CommentComposer/index.d.ts +2 -0
- package/dist/types/src/components/CommentComposer/index.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts +8 -0
- package/dist/types/src/components/PullRequestFiles/DiffStat.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/FileTree.d.ts +17 -0
- package/dist/types/src/components/PullRequestFiles/FileTree.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts +23 -0
- package/dist/types/src/components/PullRequestFiles/PullRequestFiles.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/files.d.ts +39 -0
- package/dist/types/src/components/PullRequestFiles/files.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/files.test.d.ts +2 -0
- package/dist/types/src/components/PullRequestFiles/files.test.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestFiles/index.d.ts +5 -0
- package/dist/types/src/components/PullRequestFiles/index.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts +21 -0
- package/dist/types/src/components/PullRequestOverview/ArtifactPill.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts +15 -0
- package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts +10 -0
- package/dist/types/src/components/PullRequestOverview/PullRequestDetails.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts +16 -0
- package/dist/types/src/components/PullRequestOverview/PullRequestOverview.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts +28 -0
- package/dist/types/src/components/PullRequestOverview/RelatedCards.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/index.d.ts +6 -0
- package/dist/types/src/components/PullRequestOverview/index.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts +20 -0
- package/dist/types/src/components/PullRequestStatus/PullRequestStatus.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestStatus/index.d.ts +2 -0
- package/dist/types/src/components/PullRequestStatus/index.d.ts.map +1 -0
- package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts +18 -0
- package/dist/types/src/components/WalkthroughView/WalkthroughView.d.ts.map +1 -0
- package/dist/types/src/components/WalkthroughView/extensions.d.ts +16 -0
- package/dist/types/src/components/WalkthroughView/extensions.d.ts.map +1 -0
- package/dist/types/src/components/WalkthroughView/index.d.ts +3 -0
- package/dist/types/src/components/WalkthroughView/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +5 -8
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +7 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts +6 -0
- package/dist/types/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.d.ts.map +1 -0
- package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts +3 -0
- package/dist/types/src/containers/ImportPullRequestDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts +15 -0
- package/dist/types/src/containers/PullRequestArticle/PullRequestArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestArticle/failure.d.ts +10 -0
- package/dist/types/src/containers/PullRequestArticle/failure.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts +2 -0
- package/dist/types/src/containers/PullRequestArticle/failure.test.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PullRequestArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts +14 -0
- package/dist/types/src/containers/PullRequestCardMenu/PullRequestCardMenu.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestCardMenu/index.d.ts +2 -0
- package/dist/types/src/containers/PullRequestCardMenu/index.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts +13 -0
- package/dist/types/src/containers/PullRequestsArticle/PullRequestsArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts +44 -0
- package/dist/types/src/containers/PullRequestsArticle/arrange.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts +2 -0
- package/dist/types/src/containers/PullRequestsArticle/arrange.test.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestsArticle/format.d.ts +3 -0
- package/dist/types/src/containers/PullRequestsArticle/format.d.ts.map +1 -0
- package/dist/types/src/containers/PullRequestsArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PullRequestsArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts +13 -0
- package/dist/types/src/containers/WalkthroughArticle/WalkthroughArticle.d.ts.map +1 -0
- package/dist/types/src/containers/WalkthroughArticle/index.d.ts +2 -0
- package/dist/types/src/containers/WalkthroughArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +7 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +157 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +3 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/extensions/links.d.ts +21 -0
- package/dist/types/src/extensions/links.d.ts.map +1 -0
- package/dist/types/src/extensions/links.test.d.ts +2 -0
- package/dist/types/src/extensions/links.test.d.ts.map +1 -0
- package/dist/types/src/extensions/references.d.ts +23 -0
- package/dist/types/src/extensions/references.d.ts.map +1 -0
- package/dist/types/src/extensions/references.test.d.ts +2 -0
- package/dist/types/src/extensions/references.test.d.ts.map +1 -0
- package/dist/types/src/github-link.d.ts +29 -0
- package/dist/types/src/github-link.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +5 -2
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useOpenObject.d.ts +9 -0
- package/dist/types/src/hooks/useOpenObject.d.ts.map +1 -0
- package/dist/types/src/hooks/usePullRequestChecks.d.ts +10 -0
- package/dist/types/src/hooks/usePullRequestChecks.d.ts.map +1 -0
- package/dist/types/src/hooks/usePullRequestDiff.d.ts +12 -0
- package/dist/types/src/hooks/usePullRequestDiff.d.ts.map +1 -0
- package/dist/types/src/hooks/usePullRequestFiles.d.ts +22 -0
- package/dist/types/src/hooks/usePullRequestFiles.d.ts.map +1 -0
- package/dist/types/src/hooks/useSyncPullRequest.d.ts +10 -0
- package/dist/types/src/hooks/useSyncPullRequest.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +34 -11
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-pull-request-comment.d.ts +5 -0
- package/dist/types/src/operations/add-pull-request-comment.d.ts.map +1 -0
- package/dist/types/src/operations/add-pull-request-review-comment.d.ts +5 -0
- package/dist/types/src/operations/add-pull-request-review-comment.d.ts.map +1 -0
- package/dist/types/src/operations/generate-walkthrough.d.ts +11 -0
- package/dist/types/src/operations/generate-walkthrough.d.ts.map +1 -0
- package/dist/types/src/operations/get-pull-request-diff.d.ts +5 -0
- package/dist/types/src/operations/get-pull-request-diff.d.ts.map +1 -0
- package/dist/types/src/operations/get-pull-request-status.d.ts +5 -0
- package/dist/types/src/operations/get-pull-request-status.d.ts.map +1 -0
- package/dist/types/src/operations/get-repositories.d.ts +13 -0
- package/dist/types/src/operations/get-repositories.d.ts.map +1 -0
- package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts +12 -0
- package/dist/types/src/operations/import-pull-request-from-snapshot.d.ts.map +1 -0
- package/dist/types/src/operations/import-pull-request.d.ts +63 -0
- package/dist/types/src/operations/import-pull-request.d.ts.map +1 -0
- package/dist/types/src/operations/import-pull-request.test.d.ts +2 -0
- package/dist/types/src/operations/import-pull-request.test.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/materialize-target.d.ts +12 -0
- package/dist/types/src/operations/materialize-target.d.ts.map +1 -0
- package/dist/types/src/operations/pull-request.d.ts +48 -0
- package/dist/types/src/operations/pull-request.d.ts.map +1 -0
- package/dist/types/src/operations/pull-request.test.d.ts +2 -0
- package/dist/types/src/operations/pull-request.test.d.ts.map +1 -0
- package/dist/types/src/operations/submit-pull-request-approval.d.ts +5 -0
- package/dist/types/src/operations/submit-pull-request-approval.d.ts.map +1 -0
- package/dist/types/src/operations/sync-pull-request.d.ts +5 -0
- package/dist/types/src/operations/sync-pull-request.d.ts.map +1 -0
- package/dist/types/src/operations/sync.d.ts +123 -0
- package/dist/types/src/operations/sync.d.ts.map +1 -0
- package/dist/types/src/operations/sync.test.d.ts +2 -0
- package/dist/types/src/operations/sync.test.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/plugin.test.d.ts +2 -0
- package/dist/types/src/plugin.test.d.ts.map +1 -0
- package/dist/types/src/pull-request-body.d.ts +37 -0
- package/dist/types/src/pull-request-body.d.ts.map +1 -0
- package/dist/types/src/pull-request-body.test.d.ts +2 -0
- package/dist/types/src/pull-request-body.test.d.ts.map +1 -0
- package/dist/types/src/pull-request.d.ts +28 -0
- package/dist/types/src/pull-request.d.ts.map +1 -0
- package/dist/types/src/pull-request.test.d.ts +2 -0
- package/dist/types/src/pull-request.test.d.ts.map +1 -0
- package/dist/types/src/services/github-api.d.ts +332 -0
- package/dist/types/src/services/github-api.d.ts.map +1 -0
- package/dist/types/src/services/index.d.ts +2 -0
- package/dist/types/src/services/index.d.ts.map +1 -0
- package/dist/types/src/skills/GitHubSkill.d.ts +12 -0
- package/dist/types/src/skills/GitHubSkill.d.ts.map +1 -0
- package/dist/types/src/skills/index.d.ts +2 -0
- package/dist/types/src/skills/index.d.ts.map +1 -0
- package/dist/types/src/stories/Generate.stories.d.ts +27 -0
- package/dist/types/src/stories/Generate.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Links.stories.d.ts +23 -0
- package/dist/types/src/stories/Links.stories.d.ts.map +1 -0
- package/dist/types/src/stories/PullRequestArticle.stories.d.ts +359 -0
- package/dist/types/src/stories/PullRequestArticle.stories.d.ts.map +1 -0
- package/dist/types/src/stories/PullRequestFiles.stories.d.ts +365 -0
- package/dist/types/src/stories/PullRequestFiles.stories.d.ts.map +1 -0
- package/dist/types/src/stories/PullRequestOverview.stories.d.ts +367 -0
- package/dist/types/src/stories/PullRequestOverview.stories.d.ts.map +1 -0
- package/dist/types/src/stories/PullRequestsArticle.stories.d.ts +357 -0
- package/dist/types/src/stories/PullRequestsArticle.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Walkthrough.stories.d.ts +380 -0
- package/dist/types/src/stories/Walkthrough.stories.d.ts.map +1 -0
- package/dist/types/src/stories/github.d.ts +23 -0
- package/dist/types/src/stories/github.d.ts.map +1 -0
- package/dist/types/src/stories/github.test.d.ts +2 -0
- package/dist/types/src/stories/github.test.d.ts.map +1 -0
- package/dist/types/src/stories/walkthrough-fixture.d.ts +8 -0
- package/dist/types/src/stories/walkthrough-fixture.d.ts.map +1 -0
- package/dist/types/src/testing/fixtures.d.ts +14 -0
- package/dist/types/src/testing/fixtures.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +4 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/plugin.d.ts +4 -0
- package/dist/types/src/testing/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/pull-request-13348.d.ts +6 -0
- package/dist/types/src/testing/pull-request-13348.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +339 -53
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/GitHubCapabilities.d.ts +13 -0
- package/dist/types/src/types/GitHubCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/GitHubEvents.d.ts +8 -0
- package/dist/types/src/types/GitHubEvents.d.ts.map +1 -0
- package/dist/types/src/types/GitHubOperation.d.ts +270 -0
- package/dist/types/src/types/GitHubOperation.d.ts.map +1 -0
- package/dist/types/src/types/PullRequestsView.d.ts +35 -0
- package/dist/types/src/types/PullRequestsView.d.ts.map +1 -0
- package/dist/types/src/types/Walkthrough.d.ts +31 -0
- package/dist/types/src/types/Walkthrough.d.ts.map +1 -0
- package/dist/types/src/types/Walkthrough.test.d.ts +2 -0
- package/dist/types/src/types/Walkthrough.test.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +5 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/walkthrough/fill.d.ts +28 -0
- package/dist/types/src/walkthrough/fill.d.ts.map +1 -0
- package/dist/types/src/walkthrough/fill.test.d.ts +2 -0
- package/dist/types/src/walkthrough/fill.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/generate.d.ts +67 -0
- package/dist/types/src/walkthrough/generate.d.ts.map +1 -0
- package/dist/types/src/walkthrough/generate.test.d.ts +2 -0
- package/dist/types/src/walkthrough/generate.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/generated.d.ts +20 -0
- package/dist/types/src/walkthrough/generated.d.ts.map +1 -0
- package/dist/types/src/walkthrough/generated.test.d.ts +2 -0
- package/dist/types/src/walkthrough/generated.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/headings.d.ts +8 -0
- package/dist/types/src/walkthrough/headings.d.ts.map +1 -0
- package/dist/types/src/walkthrough/headings.test.d.ts +2 -0
- package/dist/types/src/walkthrough/headings.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/index.d.ts +9 -0
- package/dist/types/src/walkthrough/index.d.ts.map +1 -0
- package/dist/types/src/walkthrough/patch.d.ts +48 -0
- package/dist/types/src/walkthrough/patch.d.ts.map +1 -0
- package/dist/types/src/walkthrough/plan.d.ts +55 -0
- package/dist/types/src/walkthrough/plan.d.ts.map +1 -0
- package/dist/types/src/walkthrough/plan.test.d.ts +2 -0
- package/dist/types/src/walkthrough/plan.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/prompt.d.ts +33 -0
- package/dist/types/src/walkthrough/prompt.d.ts.map +1 -0
- package/dist/types/src/walkthrough/prompt.test.d.ts +2 -0
- package/dist/types/src/walkthrough/prompt.test.d.ts.map +1 -0
- package/dist/types/src/walkthrough/score.d.ts +43 -0
- package/dist/types/src/walkthrough/score.d.ts.map +1 -0
- package/dist/types/src/walkthrough/score.test.d.ts +2 -0
- package/dist/types/src/walkthrough/score.test.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dx.config.ts +39 -0
- package/package.json +167 -48
- package/src/Extensions.ts +7 -0
- package/src/GitHubPlugin.ts +15 -0
- package/src/GitHubPlugin.workerd.test.ts +23 -0
- package/src/approval.test.ts +40 -0
- package/src/approval.ts +39 -0
- package/src/capabilities/app-graph-builder.ts +47 -0
- package/src/capabilities/connector.ts +95 -0
- package/src/capabilities/gen/browser.ts +82 -0
- package/src/capabilities/gen/node.ts +43 -0
- package/src/capabilities/gen/tauri.ts +82 -0
- package/src/capabilities/gen/workerd.ts +43 -0
- package/src/capabilities/index.ts +71 -0
- package/src/capabilities/link-resolver.ts +137 -0
- package/src/capabilities/markdown-extension.ts +146 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/page-action.ts +32 -0
- package/src/capabilities/react-surface.ts +98 -0
- package/src/capabilities/schema.ts +16 -0
- package/src/capabilities/skill-definition.ts +14 -0
- package/src/cards/GitHubCard.stories.tsx +165 -0
- package/src/cards/GitHubCard.tsx +93 -0
- package/src/cards/PullRequestCard.tsx +23 -0
- package/src/cards/index.ts +6 -0
- package/src/components/CommentComposer/CommentComposer.tsx +109 -0
- package/src/components/CommentComposer/index.ts +5 -0
- package/src/components/PullRequestFiles/DiffStat.tsx +15 -0
- package/src/components/PullRequestFiles/FileTree.tsx +102 -0
- package/src/components/PullRequestFiles/PullRequestFiles.tsx +87 -0
- package/src/components/PullRequestFiles/files.test.ts +59 -0
- package/src/components/PullRequestFiles/files.ts +115 -0
- package/src/components/PullRequestFiles/index.ts +8 -0
- package/src/components/PullRequestOverview/ArtifactPill.tsx +82 -0
- package/src/components/PullRequestOverview/CheckRunList.tsx +120 -0
- package/src/components/PullRequestOverview/PullRequestDetails.tsx +15 -0
- package/src/components/PullRequestOverview/PullRequestOverview.tsx +110 -0
- package/src/components/PullRequestOverview/RelatedCards.tsx +147 -0
- package/src/components/PullRequestOverview/index.ts +9 -0
- package/src/components/PullRequestStatus/PullRequestStatus.tsx +81 -0
- package/src/components/PullRequestStatus/index.ts +5 -0
- package/src/components/WalkthroughView/WalkthroughView.tsx +62 -0
- package/src/components/WalkthroughView/extensions.ts +53 -0
- package/src/components/WalkthroughView/index.ts +6 -0
- package/src/components/index.ts +6 -9
- package/src/constants.ts +12 -0
- package/src/containers/ImportPullRequestDialog/ImportPullRequestDialog.tsx +160 -0
- package/src/containers/ImportPullRequestDialog/index.ts +7 -0
- package/src/containers/PullRequestArticle/PullRequestArticle.tsx +573 -0
- package/src/containers/PullRequestArticle/failure.test.ts +42 -0
- package/src/containers/PullRequestArticle/failure.ts +16 -0
- package/src/containers/PullRequestArticle/index.ts +5 -0
- package/src/containers/PullRequestCardMenu/PullRequestCardMenu.tsx +134 -0
- package/src/containers/PullRequestCardMenu/index.ts +5 -0
- package/src/containers/PullRequestsArticle/PullRequestsArticle.tsx +361 -0
- package/src/containers/PullRequestsArticle/arrange.test.ts +122 -0
- package/src/containers/PullRequestsArticle/arrange.ts +245 -0
- package/src/containers/PullRequestsArticle/format.ts +31 -0
- package/src/containers/PullRequestsArticle/index.ts +5 -0
- package/src/containers/WalkthroughArticle/WalkthroughArticle.tsx +31 -0
- package/src/containers/WalkthroughArticle/index.ts +5 -0
- package/src/containers/index.ts +11 -0
- package/src/errors.ts +61 -0
- package/src/extensions/index.ts +6 -0
- package/src/extensions/links.test.ts +133 -0
- package/src/extensions/links.ts +91 -0
- package/src/extensions/references.test.ts +83 -0
- package/src/extensions/references.ts +100 -0
- package/src/github-link.ts +70 -0
- package/src/hooks/index.ts +6 -3
- package/src/hooks/useOpenObject.ts +48 -0
- package/src/hooks/usePullRequestChecks.ts +81 -0
- package/src/hooks/usePullRequestDiff.ts +57 -0
- package/src/hooks/usePullRequestFiles.ts +98 -0
- package/src/hooks/useSyncPullRequest.ts +51 -0
- package/src/index.ts +4 -6
- package/src/meta.ts +8 -13
- package/src/operations/add-pull-request-comment.ts +31 -0
- package/src/operations/add-pull-request-review-comment.ts +32 -0
- package/src/operations/generate-walkthrough.ts +124 -0
- package/src/operations/get-pull-request-diff.ts +37 -0
- package/src/operations/get-pull-request-status.ts +44 -0
- package/src/operations/get-repositories.ts +53 -0
- package/src/operations/import-pull-request-from-snapshot.ts +48 -0
- package/src/operations/import-pull-request.test.ts +151 -0
- package/src/operations/import-pull-request.ts +141 -0
- package/src/operations/index.ts +29 -0
- package/src/operations/materialize-target.ts +60 -0
- package/src/operations/pull-request.test.ts +120 -0
- package/src/operations/pull-request.ts +141 -0
- package/src/operations/submit-pull-request-approval.ts +41 -0
- package/src/operations/sync-pull-request.ts +37 -0
- package/src/operations/sync.test.ts +453 -0
- package/src/operations/sync.ts +807 -0
- package/src/plugin.test.ts +40 -0
- package/src/plugin.ts +37 -0
- package/src/pull-request-body.test.ts +61 -0
- package/src/pull-request-body.ts +144 -0
- package/src/pull-request.test.ts +67 -0
- package/src/pull-request.ts +80 -0
- package/src/services/github-api.ts +735 -0
- package/src/services/index.ts +5 -0
- package/src/skills/GitHubSkill.ts +46 -0
- package/src/skills/index.ts +5 -0
- package/src/stories/Generate.stories.tsx +152 -0
- package/src/stories/Links.stories.tsx +153 -0
- package/src/stories/PullRequestArticle.stories.tsx +107 -0
- package/src/stories/PullRequestFiles.stories.tsx +69 -0
- package/src/stories/PullRequestOverview.stories.tsx +113 -0
- package/src/stories/PullRequestsArticle.stories.tsx +170 -0
- package/src/stories/Walkthrough.stories.tsx +110 -0
- package/src/stories/github.test.ts +65 -0
- package/src/stories/github.ts +70 -0
- package/src/stories/walkthrough-fixture.ts +115 -0
- package/src/testing/fixtures.ts +99 -0
- package/src/testing/index.ts +7 -0
- package/src/testing/plugin.ts +25 -0
- package/src/testing/pull-request-13348.ts +104 -0
- package/src/testing/pull-request-13363.patch +2981 -0
- package/src/translations.ts +135 -63
- package/src/types/GitHubCapabilities.ts +27 -0
- package/src/types/GitHubEvents.ts +16 -0
- package/src/types/GitHubOperation.ts +371 -0
- package/src/types/PullRequestsView.ts +45 -0
- package/src/types/Walkthrough.test.ts +75 -0
- package/src/types/Walkthrough.ts +66 -0
- package/src/types/index.ts +8 -0
- package/src/vite-env.d.ts +15 -0
- package/src/walkthrough/fill.test.ts +337 -0
- package/src/walkthrough/fill.ts +246 -0
- package/src/walkthrough/generate.test.ts +219 -0
- package/src/walkthrough/generate.ts +248 -0
- package/src/walkthrough/generated.test.ts +70 -0
- package/src/walkthrough/generated.ts +70 -0
- package/src/walkthrough/headings.test.ts +40 -0
- package/src/walkthrough/headings.ts +39 -0
- package/src/walkthrough/index.ts +12 -0
- package/src/walkthrough/patch.ts +154 -0
- package/src/walkthrough/plan.test.ts +178 -0
- package/src/walkthrough/plan.ts +251 -0
- package/src/walkthrough/prompt.test.ts +100 -0
- package/src/walkthrough/prompt.ts +147 -0
- package/src/walkthrough/score.test.ts +272 -0
- package/src/walkthrough/score.ts +430 -0
- package/README.md +0 -15
- package/dist/lib/browser/chunk-S4MPSBA5.mjs +0 -21
- package/dist/lib/browser/chunk-S4MPSBA5.mjs.map +0 -7
- package/dist/lib/browser/index.css +0 -7
- package/dist/lib/browser/index.css.map +0 -7
- package/dist/lib/browser/index.mjs +0 -1535
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/meta.mjs +0 -11
- package/dist/lib/browser/meta.mjs.map +0 -7
- package/dist/types/src/GithubPlugin.d.ts +0 -4
- package/dist/types/src/GithubPlugin.d.ts.map +0 -1
- package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts +0 -4
- package/dist/types/src/components/EmbeddedMain/EmbeddedMain.d.ts.map +0 -1
- package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts +0 -9
- package/dist/types/src/components/EmbeddedMain/GfmPreview.d.ts.map +0 -1
- package/dist/types/src/components/EmbeddedMain/index.d.ts +0 -2
- package/dist/types/src/components/EmbeddedMain/index.d.ts.map +0 -1
- package/dist/types/src/components/ExportDialog.d.ts +0 -8
- package/dist/types/src/components/ExportDialog.d.ts.map +0 -1
- package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts +0 -3
- package/dist/types/src/components/GithubApiProviders/GitHubSettings.d.ts.map +0 -1
- package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts +0 -15
- package/dist/types/src/components/GithubApiProviders/OctokitProvider.d.ts.map +0 -1
- package/dist/types/src/components/GithubApiProviders/index.d.ts +0 -3
- package/dist/types/src/components/GithubApiProviders/index.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts +0 -6
- package/dist/types/src/components/GithubEchoResolverProviders/DocumentTreeItem.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts +0 -7
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverContext.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts +0 -6
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverDialog.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts +0 -16
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverProps.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts +0 -3
- package/dist/types/src/components/GithubEchoResolverProviders/ResolverTree.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts +0 -11
- package/dist/types/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts +0 -3
- package/dist/types/src/components/GithubEchoResolverProviders/index.d.ts.map +0 -1
- package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts +0 -6
- package/dist/types/src/components/GithubEchoResolverProviders/spaceResolvers.d.ts.map +0 -1
- package/dist/types/src/components/ImportDialog.d.ts +0 -7
- package/dist/types/src/components/ImportDialog.d.ts.map +0 -1
- package/dist/types/src/components/Issue.d.ts +0 -5
- package/dist/types/src/components/Issue.d.ts.map +0 -1
- package/dist/types/src/components/Loading/Loading.d.ts +0 -15
- package/dist/types/src/components/Loading/Loading.d.ts.map +0 -1
- package/dist/types/src/components/Loading/Loading.stories.d.ts +0 -40
- package/dist/types/src/components/Loading/Loading.stories.d.ts.map +0 -1
- package/dist/types/src/components/Loading/index.d.ts +0 -2
- package/dist/types/src/components/Loading/index.d.ts.map +0 -1
- package/dist/types/src/components/MarkdownActions.d.ts +0 -7
- package/dist/types/src/components/MarkdownActions.d.ts.map +0 -1
- package/dist/types/src/components/UrlDialog.d.ts +0 -6
- package/dist/types/src/components/UrlDialog.d.ts.map +0 -1
- package/dist/types/src/hooks/useDocGhId.d.ts +0 -6
- package/dist/types/src/hooks/useDocGhId.d.ts.map +0 -1
- package/dist/types/src/hooks/useGhIdFromUrl.d.ts +0 -2
- package/dist/types/src/hooks/useGhIdFromUrl.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -30
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/GithubPlugin.tsx +0 -127
- package/src/components/EmbeddedMain/EmbeddedMain.tsx +0 -294
- package/src/components/EmbeddedMain/GfmPreview.tsx +0 -110
- package/src/components/EmbeddedMain/embedded.css +0 -3
- package/src/components/EmbeddedMain/index.ts +0 -5
- package/src/components/ExportDialog.tsx +0 -157
- package/src/components/GithubApiProviders/GitHubSettings.tsx +0 -72
- package/src/components/GithubApiProviders/OctokitProvider.tsx +0 -60
- package/src/components/GithubApiProviders/index.ts +0 -6
- package/src/components/GithubEchoResolverProviders/DocumentTreeItem.tsx +0 -26
- package/src/components/GithubEchoResolverProviders/ResolverContext.tsx +0 -137
- package/src/components/GithubEchoResolverProviders/ResolverDialog.tsx +0 -34
- package/src/components/GithubEchoResolverProviders/ResolverProps.ts +0 -23
- package/src/components/GithubEchoResolverProviders/ResolverTree.tsx +0 -86
- package/src/components/GithubEchoResolverProviders/SpacePickerTreeItem.tsx +0 -105
- package/src/components/GithubEchoResolverProviders/index.ts +0 -6
- package/src/components/GithubEchoResolverProviders/spaceResolvers.ts +0 -86
- package/src/components/ImportDialog.tsx +0 -72
- package/src/components/Issue.tsx +0 -62
- package/src/components/Loading/Loading.stories.tsx +0 -32
- package/src/components/Loading/Loading.tsx +0 -70
- package/src/components/Loading/index.ts +0 -5
- package/src/components/MarkdownActions.tsx +0 -136
- package/src/components/UrlDialog.tsx +0 -52
- package/src/hooks/useDocGhId.ts +0 -38
- package/src/hooks/useGhIdFromUrl.ts +0 -26
- package/src/types.ts +0 -51
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrange.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestsArticle/arrange.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,KAAK,KAAK,gBAAgB,MAAM,iCAAiC,CAAC;AAEzE,uFAAuF;AACvF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,eAAe,CAAC,OAAO,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC,WAAW,CAAC;IACpC,MAAM,EAAE,eAAe,CAAC,WAAW,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,kHAAkH;AAClH,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;IACrC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,EAAE,SAAS,IAAI,CAAC,IAAI,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,cAAc,EAAE,CAAC;CACjC,CAAC;AAUF,4FAA4F;AAC5F,eAAO,MAAM,UAAU,SAAU,SAAS,cAAc,EAAE,WAAW,MAAM,CAAC,GAAG,KAAG,SAAS,cAAc,EACA,CAAC;AAI1G;;;;GAIG;AACH,eAAO,MAAM,SAAS,mCAAoC,cAAc,KAAG,MAoB1E,CAAC;AA0BF,8DAA8D;AAC9D,eAAO,MAAM,QAAQ,SAAU,SAAS,cAAc,EAAE,QAAQ,gBAAgB,CAAC,IAAI,KAAG,SAAS,cAAc,EAQ9G,CAAC;AASF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,CAKvD,CAAC;AASF,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,CAK1D,CAAC;AA0BF;;;GAGG;AACH,eAAO,MAAM,SAAS,SACd,SAAS,cAAc,EAAE,SACxB,gBAAgB,CAAC,UAAU,KACjC,mBAAmB,EAAE,GAAG,SAwE1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrange.test.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestsArticle/arrange.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestsArticle/format.ts"],"names":[],"mappings":"AAgBA,8GAA8G;AAC9G,eAAO,MAAM,cAAc,UAAW,MAAM,mBAAqB,MAahE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PullRequestsArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type * as AppSurface from '@dxos/app-toolkit/AppSurface';
|
|
3
|
+
import { type Walkthrough } from '#types';
|
|
4
|
+
export type WalkthroughArticleProps = AppSurface.ObjectArticleProps<Walkthrough.Walkthrough>;
|
|
5
|
+
/**
|
|
6
|
+
* A walkthrough opened directly — from a search result, or a link written before the pull request
|
|
7
|
+
* became the subject — shown as the review of the pull request it narrates.
|
|
8
|
+
*
|
|
9
|
+
* The ref is resolved to a snapshot and the live object queried back by id: the article writes to
|
|
10
|
+
* the pull request (approve, comment) through a ref of its own, which a snapshot cannot give.
|
|
11
|
+
*/
|
|
12
|
+
export declare const WalkthroughArticle: ({ subject, ...props }: WalkthroughArticleProps) => React.JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=WalkthroughArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalkthroughArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/WalkthroughArticle/WalkthroughArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAKhE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,0BAA2B,uBAAuB,6BAMhF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/WalkthroughArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
export declare const ImportPullRequestDialog: ComponentType<any>;
|
|
3
|
+
export declare const PullRequestCardMenu: ComponentType<any>;
|
|
4
|
+
export declare const PullRequestArticle: ComponentType<any>;
|
|
5
|
+
export declare const PullRequestsArticle: ComponentType<any>;
|
|
6
|
+
export declare const WalkthroughArticle: ComponentType<any>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,GAAG,CAA4D,CAAC;AACpH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,GAAG,CAAwD,CAAC;AAC5G,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,GAAG,CAAuD,CAAC;AAC1G,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,GAAG,CAAwD,CAAC;AAC5G,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,GAAG,CAAuD,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { BaseError } from '@dxos/errors';
|
|
2
|
+
declare const GitHubRepoUnresolvedError_base: {
|
|
3
|
+
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
4
|
+
cause?: unknown;
|
|
5
|
+
stack?: string;
|
|
6
|
+
name: "GitHubRepoUnresolvedError";
|
|
7
|
+
context: Record<string, unknown>;
|
|
8
|
+
readonly message: string;
|
|
9
|
+
readonly _tag: "GitHubRepoUnresolvedError";
|
|
10
|
+
};
|
|
11
|
+
isError(error: unknown): error is Error;
|
|
12
|
+
name: "GitHubRepoUnresolvedError";
|
|
13
|
+
is(error: unknown): error is BaseError;
|
|
14
|
+
wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
|
|
15
|
+
ifTypeDiffers?: boolean;
|
|
16
|
+
}): (error: unknown) => {
|
|
17
|
+
cause?: unknown;
|
|
18
|
+
stack?: string;
|
|
19
|
+
name: "GitHubRepoUnresolvedError";
|
|
20
|
+
context: Record<string, unknown>;
|
|
21
|
+
readonly message: string;
|
|
22
|
+
readonly _tag: "GitHubRepoUnresolvedError";
|
|
23
|
+
};
|
|
24
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
25
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
26
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
27
|
+
stackTraceLimit: number;
|
|
28
|
+
};
|
|
29
|
+
/** The binding names no repository: no `externalId` and no GitHub foreign key on the target. */
|
|
30
|
+
export declare class GitHubRepoUnresolvedError extends GitHubRepoUnresolvedError_base {
|
|
31
|
+
}
|
|
32
|
+
declare const GitHubRepoInaccessibleError_base: {
|
|
33
|
+
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
34
|
+
cause?: unknown;
|
|
35
|
+
stack?: string;
|
|
36
|
+
name: "GitHubRepoInaccessibleError";
|
|
37
|
+
context: Record<string, unknown>;
|
|
38
|
+
readonly message: string;
|
|
39
|
+
readonly _tag: "GitHubRepoInaccessibleError";
|
|
40
|
+
};
|
|
41
|
+
isError(error: unknown): error is Error;
|
|
42
|
+
name: "GitHubRepoInaccessibleError";
|
|
43
|
+
is(error: unknown): error is BaseError;
|
|
44
|
+
wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
|
|
45
|
+
ifTypeDiffers?: boolean;
|
|
46
|
+
}): (error: unknown) => {
|
|
47
|
+
cause?: unknown;
|
|
48
|
+
stack?: string;
|
|
49
|
+
name: "GitHubRepoInaccessibleError";
|
|
50
|
+
context: Record<string, unknown>;
|
|
51
|
+
readonly message: string;
|
|
52
|
+
readonly _tag: "GitHubRepoInaccessibleError";
|
|
53
|
+
};
|
|
54
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
55
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
56
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
57
|
+
stackTraceLimit: number;
|
|
58
|
+
};
|
|
59
|
+
/** The connection's token cannot see the repository the binding names (un-shared or revoked). */
|
|
60
|
+
export declare class GitHubRepoInaccessibleError extends GitHubRepoInaccessibleError_base {
|
|
61
|
+
}
|
|
62
|
+
declare const GitHubPullRequestUnstoredError_base: {
|
|
63
|
+
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
64
|
+
cause?: unknown;
|
|
65
|
+
stack?: string;
|
|
66
|
+
name: "GitHubPullRequestUnstoredError";
|
|
67
|
+
context: Record<string, unknown>;
|
|
68
|
+
readonly message: string;
|
|
69
|
+
readonly _tag: "GitHubPullRequestUnstoredError";
|
|
70
|
+
};
|
|
71
|
+
isError(error: unknown): error is Error;
|
|
72
|
+
name: "GitHubPullRequestUnstoredError";
|
|
73
|
+
is(error: unknown): error is BaseError;
|
|
74
|
+
wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
|
|
75
|
+
ifTypeDiffers?: boolean;
|
|
76
|
+
}): (error: unknown) => {
|
|
77
|
+
cause?: unknown;
|
|
78
|
+
stack?: string;
|
|
79
|
+
name: "GitHubPullRequestUnstoredError";
|
|
80
|
+
context: Record<string, unknown>;
|
|
81
|
+
readonly message: string;
|
|
82
|
+
readonly _tag: "GitHubPullRequestUnstoredError";
|
|
83
|
+
};
|
|
84
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
85
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
86
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
87
|
+
stackTraceLimit: number;
|
|
88
|
+
};
|
|
89
|
+
/** The pull request is not stored: a preview card mints one in memory, and it has no database. */
|
|
90
|
+
export declare class GitHubPullRequestUnstoredError extends GitHubPullRequestUnstoredError_base {
|
|
91
|
+
}
|
|
92
|
+
declare const GitHubPullRequestReferenceError_base: {
|
|
93
|
+
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
94
|
+
cause?: unknown;
|
|
95
|
+
stack?: string;
|
|
96
|
+
name: "GitHubPullRequestReferenceError";
|
|
97
|
+
context: Record<string, unknown>;
|
|
98
|
+
readonly message: string;
|
|
99
|
+
readonly _tag: "GitHubPullRequestReferenceError";
|
|
100
|
+
};
|
|
101
|
+
isError(error: unknown): error is Error;
|
|
102
|
+
name: "GitHubPullRequestReferenceError";
|
|
103
|
+
is(error: unknown): error is BaseError;
|
|
104
|
+
wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
|
|
105
|
+
ifTypeDiffers?: boolean;
|
|
106
|
+
}): (error: unknown) => {
|
|
107
|
+
cause?: unknown;
|
|
108
|
+
stack?: string;
|
|
109
|
+
name: "GitHubPullRequestReferenceError";
|
|
110
|
+
context: Record<string, unknown>;
|
|
111
|
+
readonly message: string;
|
|
112
|
+
readonly _tag: "GitHubPullRequestReferenceError";
|
|
113
|
+
};
|
|
114
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
115
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
116
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
117
|
+
stackTraceLimit: number;
|
|
118
|
+
};
|
|
119
|
+
/** The text a user typed names no pull request: neither a github.com URL nor `owner/repo#123`. */
|
|
120
|
+
export declare class GitHubPullRequestReferenceError extends GitHubPullRequestReferenceError_base {
|
|
121
|
+
}
|
|
122
|
+
declare const GitHubProjectMissingError_base: {
|
|
123
|
+
new (options?: import("@dxos/errors").BaseErrorOptions): {
|
|
124
|
+
cause?: unknown;
|
|
125
|
+
stack?: string;
|
|
126
|
+
name: "GitHubProjectMissingError";
|
|
127
|
+
context: Record<string, unknown>;
|
|
128
|
+
readonly message: string;
|
|
129
|
+
readonly _tag: "GitHubProjectMissingError";
|
|
130
|
+
};
|
|
131
|
+
isError(error: unknown): error is Error;
|
|
132
|
+
name: "GitHubProjectMissingError";
|
|
133
|
+
is(error: unknown): error is BaseError;
|
|
134
|
+
wrap(options?: Omit<import("@dxos/errors").BaseErrorOptions, 'cause'> & {
|
|
135
|
+
ifTypeDiffers?: boolean;
|
|
136
|
+
}): (error: unknown) => {
|
|
137
|
+
cause?: unknown;
|
|
138
|
+
stack?: string;
|
|
139
|
+
name: "GitHubProjectMissingError";
|
|
140
|
+
context: Record<string, unknown>;
|
|
141
|
+
readonly message: string;
|
|
142
|
+
readonly _tag: "GitHubProjectMissingError";
|
|
143
|
+
};
|
|
144
|
+
extend<Name extends string = string>(name: Name, message?: string): any;
|
|
145
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
146
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
147
|
+
stackTraceLimit: number;
|
|
148
|
+
};
|
|
149
|
+
/** The local Project could not be re-resolved after its upsert. */
|
|
150
|
+
export declare class GitHubProjectMissingError extends GitHubProjectMissingError_base {
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* User-facing / persisted diagnostic string for failures from GitHub sync paths.
|
|
154
|
+
*/
|
|
155
|
+
export declare const formatGitHubSyncFailure: (error: unknown) => string;
|
|
156
|
+
export {};
|
|
157
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/errors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC,gGAAgG;AAChG,qBAAa,yBAA0B,SAAQ,8BAG9C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,iGAAiG;AACjG,qBAAa,2BAA4B,SAAQ,gCAGhD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,kGAAkG;AAClG,qBAAa,8BAA+B,SAAQ,mCAGnD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,kGAAkG;AAClG,qBAAa,+BAAgC,SAAQ,oCAGpD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEJ,mEAAmE;AACnE,qBAAa,yBAA0B,SAAQ,8BAG9C;CAAG;AAEJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAAW,OAAO,KAAG,MAmBxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
|
2
|
+
import { type LinkWidgetProps, type WidgetDef } from '@dxos/ui-editor';
|
|
3
|
+
import { type GitHubLink } from '../github-link.ts';
|
|
4
|
+
export * from '../github-link.ts';
|
|
5
|
+
/** A link widget's props, with the URL's parts alongside it. */
|
|
6
|
+
export type GitHubLinkProps<TContext = any> = LinkWidgetProps<TContext> & GitHubLink;
|
|
7
|
+
/** The chip's leading icon for a pull request, in GitHub's open-state green. */
|
|
8
|
+
export declare const PULL_REQUEST_ICON: {
|
|
9
|
+
icon: string;
|
|
10
|
+
classNames: string;
|
|
11
|
+
};
|
|
12
|
+
/** The chip icon for a GitHub URL: a pull request's; none for an issue or a repository. */
|
|
13
|
+
export declare const githubLinkIcon: (url: string) => typeof PULL_REQUEST_ICON | undefined;
|
|
14
|
+
export type GitHubLinksOptions = {
|
|
15
|
+
/** Overrides the default chip's preview trigger. */
|
|
16
|
+
trigger?: 'hover' | 'click';
|
|
17
|
+
/** The inline widget for `[label](https://github.com/…/pull/123)`; the anchor chip by default. */
|
|
18
|
+
link?: WidgetDef<GitHubLinkProps>;
|
|
19
|
+
};
|
|
20
|
+
export declare const githubLinks: ({ trigger, link, }?: GitHubLinksOptions) => Extension;
|
|
21
|
+
//# sourceMappingURL=links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/extensions/links.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,SAAS,EAA6B,MAAM,iBAAiB,CAAC;AAEhH,OAAO,EAAe,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AAElF,cAAc,mBAAmB,CAAC;AAElC,gEAAgE;AAChE,MAAM,MAAM,eAAe,CAAC,QAAQ,GAAG,GAAG,IAAI,eAAe,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC;AAErF,gFAAgF;AAChF,eAAO,MAAM,iBAAiB;IAAK,IAAI;IAAmC,UAAU;CAAoB,CAAC;AAEzG,2FAA2F;AAC3F,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,OAAO,iBAAiB,GAAG,SACD,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,kGAAkG;IAClG,IAAI,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CACnC,CAAC;AAeF,eAAO,MAAM,WAAW,wBAYrB,kBAAkB,KAAQ,SAIzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.test.d.ts","sourceRoot":"","sources":["../../../../src/extensions/links.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
|
2
|
+
export type GitHubReferenceResolver = (number: number) => string | undefined;
|
|
3
|
+
export type GitHubReferencesOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Target for a reference, or `undefined` to leave it undecorated — which is the answer whenever
|
|
6
|
+
* the repository is unknown, since `#123` means nothing without one.
|
|
7
|
+
*/
|
|
8
|
+
resolve: GitHubReferenceResolver;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Decorates `#123` as a link to the issue or pull request.
|
|
12
|
+
*
|
|
13
|
+
* Contributed by this plugin rather than built into the editor: the number resolves against the
|
|
14
|
+
* repository the space is bound to, which is GitHub-specific knowledge, and a document with no
|
|
15
|
+
* GitHub binding must render the text unchanged.
|
|
16
|
+
*/
|
|
17
|
+
export declare const githubReferences: ({ resolve }: GitHubReferencesOptions) => Extension;
|
|
18
|
+
/**
|
|
19
|
+
* The canonical target for a reference. `issues/<n>` is deliberate: GitHub redirects it to the pull
|
|
20
|
+
* request when the number is one, so a single URL serves both without asking which it is.
|
|
21
|
+
*/
|
|
22
|
+
export declare const referenceUrl: (repo: string, number: number) => string;
|
|
23
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../../src/extensions/references.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,mBAAmB,CAAC;AAY/D,MAAM,MAAM,uBAAuB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;AAE7E,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,uBAAuB,KAAG,SAkBrE,CAAC;AA2CJ;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,UAAU,MAAM,KAAG,MAAuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.test.d.ts","sourceRoot":"","sources":["../../../../src/extensions/references.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `https://github.com/owner/repo`, `/pull/123` or `/issues/123`, with an optional trailing slash,
|
|
3
|
+
* fragment or query. A path below the repository (`/blob/…`, `/actions`) is a page, not an object.
|
|
4
|
+
*/
|
|
5
|
+
export declare const GITHUB_LINK: RegExp;
|
|
6
|
+
export type GitHubLink = {
|
|
7
|
+
owner: string;
|
|
8
|
+
repo: string;
|
|
9
|
+
kind: 'repo' | 'pull' | 'issue';
|
|
10
|
+
/** Absent for a repository. */
|
|
11
|
+
number?: number;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
/** The parts of a pull request or issue URL, or undefined for any other URL. */
|
|
15
|
+
export declare const parseGitHubLink: (url: string) => GitHubLink | undefined;
|
|
16
|
+
/** A pull request named by its coordinates, however the user wrote it. */
|
|
17
|
+
export type PullRequestReference = {
|
|
18
|
+
owner: string;
|
|
19
|
+
repo: string;
|
|
20
|
+
number: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The pull request a user's text names: a github.com URL or `owner/repo#123`.
|
|
24
|
+
*
|
|
25
|
+
* An `/issues/123` URL is accepted alongside `/pull/123` because GitHub itself serves a pull
|
|
26
|
+
* request under both, and a reader who copied the wrong one still means the same change.
|
|
27
|
+
*/
|
|
28
|
+
export declare const parsePullRequestReference: (value: string) => PullRequestReference | undefined;
|
|
29
|
+
//# sourceMappingURL=github-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-link.d.ts","sourceRoot":"","sources":["../../../src/github-link.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,WAAW,QACoF,CAAC;AAE7G,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAChC,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,eAAe,QAAS,MAAM,KAAG,UAAU,GAAG,SAU1D,CAAC;AAQF,0EAA0E;AAC1E,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,UAAW,MAAM,KAAG,oBAAoB,GAAG,SAahF,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './useOpenObject.ts';
|
|
2
|
+
export * from './usePullRequestFiles.ts';
|
|
3
|
+
export * from './usePullRequestDiff.ts';
|
|
4
|
+
export * from './useSyncPullRequest.ts';
|
|
5
|
+
export * from './usePullRequestChecks.ts';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Obj } from '@dxos/echo';
|
|
2
|
+
/**
|
|
3
|
+
* Opens a stored object as a plank.
|
|
4
|
+
*
|
|
5
|
+
* An object stored moments ago has no graph node yet, and the deck cannot open a node it cannot
|
|
6
|
+
* find; expanding only asks the connectors, so wait for the node to land.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useOpenObject: () => ((object: Obj.Any) => Promise<void>);
|
|
9
|
+
//# sourceMappingURL=useOpenObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOpenObject.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useOpenObject.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAOjC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAO,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAqBnE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SpaceId } from '@dxos/keys';
|
|
2
|
+
import { type PullRequest } from '@dxos/types';
|
|
3
|
+
import { type PullRequestChecks } from '../containers/PullRequestsArticle/arrange.ts';
|
|
4
|
+
/**
|
|
5
|
+
* The CI and review standing of every live pull request in `pullRequests`, keyed by object id and
|
|
6
|
+
* filled in as each read lands. Finished pull requests are not read: their checks no longer ask
|
|
7
|
+
* anything of the reader.
|
|
8
|
+
*/
|
|
9
|
+
export declare const usePullRequestChecks: (pullRequests: readonly PullRequest.PullRequest[], spaceId: SpaceId | undefined) => ReadonlyMap<string, PullRequestChecks>;
|
|
10
|
+
//# sourceMappingURL=usePullRequestChecks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePullRequestChecks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePullRequestChecks.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AActF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,iBACjB,SAAS,WAAW,CAAC,WAAW,EAAE,WACvC,OAAO,GAAG,SAAS,KAC3B,WAAW,CAAC,MAAM,EAAE,iBAAiB,CA4CvC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Ref } from '@dxos/echo';
|
|
2
|
+
import { type SpaceId } from '@dxos/keys';
|
|
3
|
+
import { type PullRequest } from '@dxos/types';
|
|
4
|
+
export type PullRequestDiff = {
|
|
5
|
+
diff?: string;
|
|
6
|
+
/** Head commit the diff was read at, which a line comment on it must name. */
|
|
7
|
+
commit?: string;
|
|
8
|
+
error?: Error;
|
|
9
|
+
};
|
|
10
|
+
/** Reads a pull request's diff through the space's GitHub connection, once `enabled` first turns true. */
|
|
11
|
+
export declare const usePullRequestDiff: (pullRequest: Ref.Ref<PullRequest.PullRequest>, spaceId: SpaceId | undefined, enabled: boolean) => PullRequestDiff;
|
|
12
|
+
//# sourceMappingURL=usePullRequestDiff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePullRequestDiff.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePullRequestDiff.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,gBAChB,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,WACpC,OAAO,GAAG,SAAS,WACnB,OAAO,KACf,eA8BF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FileNode } from '../components/PullRequestFiles/files.ts';
|
|
2
|
+
import { type PatchFile } from '../walkthrough/patch.ts';
|
|
3
|
+
export type PullRequestFiles = {
|
|
4
|
+
tree?: FileNode;
|
|
5
|
+
files: PatchFile[];
|
|
6
|
+
/** The file on screen. */
|
|
7
|
+
file?: PatchFile;
|
|
8
|
+
reviewed: ReadonlySet<string>;
|
|
9
|
+
select: (path: string) => void;
|
|
10
|
+
/** Moves to the file `delta` places away in tree order; a no-op past either end. */
|
|
11
|
+
step: (delta: number) => void;
|
|
12
|
+
setReviewed: (path: string, reviewed: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A pull request's changed files, the one on screen, and which the reader has reviewed.
|
|
16
|
+
*
|
|
17
|
+
* Reviewed state is the reader's own, so it lives in their browser under `storageKey` rather than in
|
|
18
|
+
* the space. A file is reviewed at the change it had when checked: a push that changes it unchecks
|
|
19
|
+
* it, as GitHub's "Viewed" does.
|
|
20
|
+
*/
|
|
21
|
+
export declare const usePullRequestFiles: (diff: string | undefined, storageKey: string) => PullRequestFiles;
|
|
22
|
+
//# sourceMappingURL=usePullRequestFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePullRequestFiles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePullRequestFiles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,QAAQ,EAA8C,MAAM,yCAAyC,CAAC;AACpH,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,oFAAoF;IACpF,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACxD,CAAC;AAwBF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,SAAU,MAAM,GAAG,SAAS,cAAc,MAAM,KAAG,gBA6ClF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type PullRequest } from '@dxos/types';
|
|
2
|
+
/**
|
|
3
|
+
* Refreshes a stored pull request from GitHub when it is shown, since whatever shows it is the moment
|
|
4
|
+
* its fields are worth trusting: a repository sync may be days old, and an import is never re-synced.
|
|
5
|
+
*
|
|
6
|
+
* A pull request held by no database (a link preview) is skipped, as there is nothing to write back to,
|
|
7
|
+
* and one synced within {@link SYNC_INTERVAL} is skipped too.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useSyncPullRequest: (pullRequest: PullRequest.PullRequest) => void;
|
|
10
|
+
//# sourceMappingURL=useSyncPullRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSyncPullRequest.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSyncPullRequest.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB/C;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,gBAAiB,WAAW,CAAC,WAAW,KAAG,IAazE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from './
|
|
1
|
+
export * as GitHubPlugin from './GitHubPlugin.ts';
|
|
2
|
+
export * from '#types';
|
|
3
|
+
export * as Extensions from './Extensions.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,cAAc,QAAQ,CAAC;AACvB,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,13 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { DXN } from '@dxos/keys';
|
|
2
|
+
export declare const meta: {
|
|
3
|
+
readonly profile: {
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description?: string | undefined;
|
|
7
|
+
readonly homePage?: string | undefined;
|
|
8
|
+
readonly source?: string | undefined;
|
|
9
|
+
readonly tags?: readonly string[] | undefined;
|
|
10
|
+
readonly screenshots?: readonly {
|
|
11
|
+
readonly light?: string | undefined;
|
|
12
|
+
readonly dark?: string | undefined;
|
|
13
|
+
}[] | undefined;
|
|
14
|
+
readonly icon?: {
|
|
15
|
+
readonly key: string;
|
|
16
|
+
readonly hue?: string | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
readonly dependsOn?: readonly string[] | undefined;
|
|
19
|
+
readonly spec?: string | undefined;
|
|
20
|
+
readonly createdAt?: string | undefined;
|
|
21
|
+
readonly author?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly release?: {
|
|
24
|
+
readonly version: string;
|
|
25
|
+
readonly moduleUrl: string;
|
|
26
|
+
readonly dependencies?: {
|
|
27
|
+
readonly [x: string]: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
readonly pluginKey?: string | undefined;
|
|
30
|
+
readonly manifestHash?: string | undefined;
|
|
31
|
+
readonly createdAt?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
11
33
|
};
|
|
12
|
-
|
|
34
|
+
/** The dialog behind the "Import pull request" command. */
|
|
35
|
+
export declare const IMPORT_PULL_REQUEST_DIALOG: DXN.DXN;
|
|
13
36
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAErD,2DAA2D;AAC3D,eAAO,MAAM,0BAA0B,SAA0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.AddPullRequestComment>;
|
|
4
|
+
export default handler;
|
|
5
|
+
//# sourceMappingURL=add-pull-request-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-pull-request-comment.d.ts","sourceRoot":"","sources":["../../../../src/operations/add-pull-request-comment.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,qBAAqB,CAc9E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.AddPullRequestReviewComment>;
|
|
4
|
+
export default handler;
|
|
5
|
+
//# sourceMappingURL=add-pull-request-review-comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-pull-request-review-comment.d.ts","sourceRoot":"","sources":["../../../../src/operations/add-pull-request-review-comment.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,2BAA2B,CAepF,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
/**
|
|
4
|
+
* Generate a walkthrough of a pull request.
|
|
5
|
+
*
|
|
6
|
+
* Only the I/O is here — fetch the pull request, fetch its diff, run the model — because that is the
|
|
7
|
+
* part a test cannot reach. The decisions live in {@link generateWalkthrough}.
|
|
8
|
+
*/
|
|
9
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.GenerateWalkthrough>;
|
|
10
|
+
export default handler;
|
|
11
|
+
//# sourceMappingURL=generate-walkthrough.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-walkthrough.d.ts","sourceRoot":"","sources":["../../../../src/operations/generate-walkthrough.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAKrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAgBzC;;;;;GAKG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,mBAAmB,CAiF5E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pull-request-diff.d.ts","sourceRoot":"","sources":["../../../../src/operations/get-pull-request-diff.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAKzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,kBAAkB,CAoB3E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.GetPullRequestStatus>;
|
|
4
|
+
export default handler;
|
|
5
|
+
//# sourceMappingURL=get-pull-request-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pull-request-status.d.ts","sourceRoot":"","sources":["../../../../src/operations/get-pull-request-status.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAQzC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,oBAAoB,CAuB7E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
/**
|
|
4
|
+
* Discovery only — list GitHub repositories reachable from the connection's
|
|
5
|
+
* token. Read-only: NO local Projects are created here. Materialization is
|
|
6
|
+
* handled by the connector's `materializeTarget` when a binding is created.
|
|
7
|
+
*
|
|
8
|
+
* Output is sorted by `full_name` (case-insensitive) so the picker is stable
|
|
9
|
+
* regardless of GitHub's response order.
|
|
10
|
+
*/
|
|
11
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.GetGitHubRepositories>;
|
|
12
|
+
export default handler;
|
|
13
|
+
//# sourceMappingURL=get-repositories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-repositories.d.ts","sourceRoot":"","sources":["../../../../src/operations/get-repositories.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAIzC;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,qBAAqB,CA2B9E,CAAC;eAEW,OAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import { GitHubOperation } from '#types';
|
|
3
|
+
/**
|
|
4
|
+
* Import the pull request the extension's page is showing.
|
|
5
|
+
*
|
|
6
|
+
* The snapshot is read for its URL alone — the page's DOM says nothing GitHub's API does not say
|
|
7
|
+
* better — and the import itself is delegated, so the anonymous fallback and the existing-object
|
|
8
|
+
* check stay in one place.
|
|
9
|
+
*/
|
|
10
|
+
declare const handler: Operation.WithHandler<typeof GitHubOperation.ImportPullRequestFromSnapshot>;
|
|
11
|
+
export default handler;
|
|
12
|
+
//# sourceMappingURL=import-pull-request-from-snapshot.d.ts.map
|