@dxos/plugin-github 0.7.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +384 -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 +1506 -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 +171 -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-refresh-pull-requests.mjs +49 -0
- package/dist/lib/chunk-refresh-pull-requests.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 +26 -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 +23 -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 +18 -0
- package/dist/types/src/components/PullRequestOverview/CheckRunList.d.ts.map +1 -0
- package/dist/types/src/components/PullRequestOverview/CheckRunList.test.d.ts +2 -0
- package/dist/types/src/components/PullRequestOverview/CheckRunList.test.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/refresh-pull-requests.d.ts +5 -0
- package/dist/types/src/operations/refresh-pull-requests.d.ts.map +1 -0
- package/dist/types/src/operations/refresh.d.ts +37 -0
- package/dist/types/src/operations/refresh.d.ts.map +1 -0
- package/dist/types/src/operations/refresh.test.d.ts +2 -0
- package/dist/types/src/operations/refresh.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 +281 -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.test.ts +29 -0
- package/src/components/PullRequestOverview/CheckRunList.tsx +141 -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 +84 -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 +149 -0
- package/src/operations/index.ts +30 -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/refresh-pull-requests.ts +69 -0
- package/src/operations/refresh.test.ts +112 -0
- package/src/operations/refresh.ts +111 -0
- package/src/operations/submit-pull-request-approval.ts +41 -0
- package/src/operations/sync-pull-request.ts +34 -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 +114 -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 +397 -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,332 @@
|
|
|
1
|
+
import * as Cause from 'effect/Cause';
|
|
2
|
+
import * as Context from 'effect/Context';
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
import * as HttpClient from 'effect/http/HttpClient';
|
|
5
|
+
import * as HttpClientError from 'effect/http/HttpClientError';
|
|
6
|
+
import * as Layer from 'effect/Layer';
|
|
7
|
+
import * as Schema from 'effect/Schema';
|
|
8
|
+
import { type Ref } from '@dxos/echo';
|
|
9
|
+
import { type AccessToken, Connection } from '@dxos/link';
|
|
10
|
+
/** Stored as `AccessToken.token`; sent as `Authorization: Bearer <token>`. Empty means anonymous. */
|
|
11
|
+
type GitHubCredentialsValue = {
|
|
12
|
+
token: string;
|
|
13
|
+
};
|
|
14
|
+
declare const GitHubUserSchema: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.Number;
|
|
16
|
+
readonly login: Schema.String;
|
|
17
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
18
|
+
readonly email: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
19
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
20
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
21
|
+
readonly bio: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
22
|
+
readonly company: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
23
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
24
|
+
}>;
|
|
25
|
+
export type GitHubUser = Schema.Schema.Type<typeof GitHubUserSchema>;
|
|
26
|
+
declare const GitHubOrgSchema: Schema.Struct<{
|
|
27
|
+
readonly id: Schema.Number;
|
|
28
|
+
readonly login: Schema.String;
|
|
29
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
30
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
31
|
+
readonly blog: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
32
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
33
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
34
|
+
readonly location: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
35
|
+
}>;
|
|
36
|
+
export type GitHubOrg = Schema.Schema.Type<typeof GitHubOrgSchema>;
|
|
37
|
+
declare const GitHubRepoSchema: Schema.Struct<{
|
|
38
|
+
readonly id: Schema.Number;
|
|
39
|
+
readonly name: Schema.String;
|
|
40
|
+
readonly full_name: Schema.String;
|
|
41
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
42
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
43
|
+
readonly homepage: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
44
|
+
readonly archived: Schema.optional<Schema.Boolean>;
|
|
45
|
+
readonly disabled: Schema.optional<Schema.Boolean>;
|
|
46
|
+
readonly fork: Schema.optional<Schema.Boolean>;
|
|
47
|
+
readonly default_branch: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
48
|
+
readonly owner: Schema.Struct<{
|
|
49
|
+
readonly id: Schema.Number;
|
|
50
|
+
readonly login: Schema.String;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
export type GitHubRepo = Schema.Schema.Type<typeof GitHubRepoSchema>;
|
|
54
|
+
declare const GitHubMilestoneSchema: Schema.Struct<{
|
|
55
|
+
readonly id: Schema.Number;
|
|
56
|
+
readonly number: Schema.Number;
|
|
57
|
+
readonly title: Schema.String;
|
|
58
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
59
|
+
readonly state: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
60
|
+
/** ISO datetime, unlike the date-only shape the local model stores. */
|
|
61
|
+
readonly due_on: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
62
|
+
}>;
|
|
63
|
+
export type GitHubMilestone = Schema.Schema.Type<typeof GitHubMilestoneSchema>;
|
|
64
|
+
declare const GitHubIssueSchema: Schema.Struct<{
|
|
65
|
+
readonly id: Schema.Number;
|
|
66
|
+
readonly number: Schema.Number;
|
|
67
|
+
readonly title: Schema.String;
|
|
68
|
+
readonly body: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
69
|
+
readonly state: Schema.String;
|
|
70
|
+
readonly state_reason: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
71
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
72
|
+
readonly comments: Schema.optional<Schema.Number>;
|
|
73
|
+
readonly comments_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
74
|
+
readonly created_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
75
|
+
readonly updated_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
76
|
+
readonly closed_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
77
|
+
readonly user: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
78
|
+
readonly id: Schema.Number;
|
|
79
|
+
readonly login: Schema.String;
|
|
80
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
81
|
+
readonly email: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
82
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
83
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
84
|
+
readonly bio: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
85
|
+
readonly company: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
86
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
87
|
+
}>>>;
|
|
88
|
+
readonly assignees: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
89
|
+
readonly id: Schema.Number;
|
|
90
|
+
readonly login: Schema.String;
|
|
91
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
92
|
+
readonly email: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
93
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
94
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
95
|
+
readonly bio: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
96
|
+
readonly company: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
97
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
98
|
+
}>>>;
|
|
99
|
+
readonly labels: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
100
|
+
readonly name: Schema.String;
|
|
101
|
+
}>>>;
|
|
102
|
+
readonly milestone: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
103
|
+
readonly id: Schema.Number;
|
|
104
|
+
readonly number: Schema.Number;
|
|
105
|
+
readonly title: Schema.String;
|
|
106
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
107
|
+
readonly state: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
108
|
+
/** ISO datetime, unlike the date-only shape the local model stores. */
|
|
109
|
+
readonly due_on: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
110
|
+
}>>>;
|
|
111
|
+
readonly pull_request: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
112
|
+
readonly url: Schema.String;
|
|
113
|
+
readonly merged_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
114
|
+
}>>>;
|
|
115
|
+
}>;
|
|
116
|
+
export type GitHubIssue = Schema.Schema.Type<typeof GitHubIssueSchema>;
|
|
117
|
+
/** GET /repos/{owner}/{repo}/pulls/{number} — the pull-request view, which alone carries the diff size and merge state. */
|
|
118
|
+
declare const GitHubPullSchema: Schema.Struct<{
|
|
119
|
+
readonly id: Schema.Number;
|
|
120
|
+
readonly number: Schema.Number;
|
|
121
|
+
readonly title: Schema.String;
|
|
122
|
+
readonly body: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
123
|
+
readonly state: Schema.String;
|
|
124
|
+
readonly draft: Schema.optional<Schema.Boolean>;
|
|
125
|
+
readonly merged: Schema.optional<Schema.Boolean>;
|
|
126
|
+
readonly merged_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
127
|
+
readonly created_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
128
|
+
readonly updated_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
129
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
130
|
+
readonly user: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
131
|
+
readonly id: Schema.Number;
|
|
132
|
+
readonly login: Schema.String;
|
|
133
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
134
|
+
readonly email: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
135
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
136
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
137
|
+
readonly bio: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
138
|
+
readonly company: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
139
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
140
|
+
}>>>;
|
|
141
|
+
readonly labels: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
142
|
+
readonly name: Schema.String;
|
|
143
|
+
}>>>;
|
|
144
|
+
readonly additions: Schema.optional<Schema.Number>;
|
|
145
|
+
readonly deletions: Schema.optional<Schema.Number>;
|
|
146
|
+
readonly base: Schema.optional<Schema.Struct<{
|
|
147
|
+
readonly ref: Schema.String;
|
|
148
|
+
readonly sha: Schema.optional<Schema.String>;
|
|
149
|
+
}>>;
|
|
150
|
+
readonly head: Schema.optional<Schema.Struct<{
|
|
151
|
+
readonly ref: Schema.String;
|
|
152
|
+
readonly sha: Schema.optional<Schema.String>;
|
|
153
|
+
}>>;
|
|
154
|
+
}>;
|
|
155
|
+
export type GitHubPull = Schema.Schema.Type<typeof GitHubPullSchema>;
|
|
156
|
+
declare const GitHubCommentSchema: Schema.Struct<{
|
|
157
|
+
readonly id: Schema.Number;
|
|
158
|
+
readonly body: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
159
|
+
readonly user: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
160
|
+
readonly id: Schema.Number;
|
|
161
|
+
readonly login: Schema.String;
|
|
162
|
+
readonly name: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
163
|
+
readonly email: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
164
|
+
readonly avatar_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
165
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
166
|
+
readonly bio: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
167
|
+
readonly company: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
168
|
+
readonly type: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
169
|
+
}>>>;
|
|
170
|
+
readonly created_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
171
|
+
readonly updated_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
172
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
173
|
+
}>;
|
|
174
|
+
export type GitHubComment = Schema.Schema.Type<typeof GitHubCommentSchema>;
|
|
175
|
+
declare const GitHubCredentials_base: Context.ServiceClass<GitHubCredentials, "@dxos/plugin-github/GitHubCredentials", GitHubCredentialsValue>;
|
|
176
|
+
/**
|
|
177
|
+
* Layer-based credentials service. Mirrors `TrelloCredentials`: every API call
|
|
178
|
+
* pulls the token from this service rather than threading it through as an
|
|
179
|
+
* explicit parameter, so callers compose a single
|
|
180
|
+
* `Effect.provide(GitHubApi.fromConnection(ref))` at the
|
|
181
|
+
* operation boundary.
|
|
182
|
+
*
|
|
183
|
+
* Token sourcing: an operation invoked with a `Connection` composes
|
|
184
|
+
* `fromConnection(ref)`; one invoked with an external-sync cursor composes
|
|
185
|
+
* `fromAccessToken(cursor.spec.source)` directly (the cursor no longer relates
|
|
186
|
+
* to `Connection`).
|
|
187
|
+
*/
|
|
188
|
+
export declare class GitHubCredentials extends GitHubCredentials_base {
|
|
189
|
+
}
|
|
190
|
+
/** Creates a credentials layer from an AccessToken ref. Loads it and returns its `token`. */
|
|
191
|
+
export declare const fromAccessToken: (accessTokenRef: Ref.Ref<AccessToken.AccessToken>) => Layer.Layer<GitHubCredentials, import("@dxos/echo/Error").EntityNotFoundError, never>;
|
|
192
|
+
/** Creates a credentials layer from a Connection ref. Loads its `accessToken` and returns its `token`. */
|
|
193
|
+
export declare const fromConnection: (connectionRef: Ref.Ref<Connection.Connection>) => Layer.Layer<GitHubCredentials, import("@dxos/echo/Error").EntityNotFoundError, never>;
|
|
194
|
+
export type GitHubEffect<T> = Effect.Effect<T, HttpClientError.HttpClientError | Schema.SchemaError | Cause.TimeoutError, HttpClient.HttpClient | GitHubCredentials>;
|
|
195
|
+
/**
|
|
196
|
+
* The status a failed GitHub request answered with, or `undefined` for a transport, timeout or
|
|
197
|
+
* decode failure. Callers branch on it to tell a dead credential (401) from an absent resource.
|
|
198
|
+
*/
|
|
199
|
+
export declare const responseStatus: (error: unknown) => number | undefined;
|
|
200
|
+
/** GET /user — authenticated user profile. */
|
|
201
|
+
export declare const fetchUser: () => GitHubEffect<GitHubUser>;
|
|
202
|
+
/** GET /user/orgs — orgs visible to the authenticated user. */
|
|
203
|
+
export declare const fetchUserOrgs: () => GitHubEffect<readonly GitHubOrg[]>;
|
|
204
|
+
/**
|
|
205
|
+
* GET /user/repos — every repo the authenticated user can see.
|
|
206
|
+
*
|
|
207
|
+
* Includes owner, collaborator, and org-member affiliations. For a GitHub App
|
|
208
|
+
* user-to-server token this is intersected with the App's installation scope —
|
|
209
|
+
* admins control which repos are visible by choosing All / Selected at install
|
|
210
|
+
* time.
|
|
211
|
+
*/
|
|
212
|
+
export declare const fetchUserRepos: () => GitHubEffect<readonly GitHubRepo[]>;
|
|
213
|
+
/** GET /orgs/{org} — full org metadata. */
|
|
214
|
+
export declare const fetchOrg: (org: string) => GitHubEffect<GitHubOrg>;
|
|
215
|
+
/** GET /orgs/{org}/members — public + private members (depends on token). */
|
|
216
|
+
export declare const fetchOrgMembers: (org: string) => GitHubEffect<readonly GitHubUser[]>;
|
|
217
|
+
/** GET /users/{login} — full user profile (org members lists return a partial form). */
|
|
218
|
+
export declare const fetchUserByLogin: (login: string) => GitHubEffect<GitHubUser>;
|
|
219
|
+
/** GET /orgs/{org}/repos — repos owned by the org. */
|
|
220
|
+
export declare const fetchOrgRepos: (org: string) => GitHubEffect<readonly GitHubRepo[]>;
|
|
221
|
+
/**
|
|
222
|
+
* GET /repos/{owner}/{repo}/issues — both issues AND pull requests.
|
|
223
|
+
*
|
|
224
|
+
* `state=all` includes closed. PRs are distinguishable by a non-null
|
|
225
|
+
* `pull_request` field. `since` is an optional ISO timestamp; when provided,
|
|
226
|
+
* GitHub returns only issues updated at or after that point — we use this
|
|
227
|
+
* for incremental syncs.
|
|
228
|
+
*/
|
|
229
|
+
export declare const fetchRepoIssues: (owner: string, repo: string, options?: {
|
|
230
|
+
since?: string;
|
|
231
|
+
}) => GitHubEffect<readonly GitHubIssue[]>;
|
|
232
|
+
/** GET /repos/{owner}/{repo}. */
|
|
233
|
+
export declare const fetchRepo: (owner: string, repo: string) => GitHubEffect<GitHubRepo>;
|
|
234
|
+
/** GET /repos/{owner}/{repo}/issues/{number} — an issue, or the issue view of a pull request. */
|
|
235
|
+
export declare const fetchIssue: (owner: string, repo: string, number: number) => GitHubEffect<GitHubIssue>;
|
|
236
|
+
/** GET /repos/{owner}/{repo}/pulls/{number}. */
|
|
237
|
+
export declare const fetchPullRequest: (owner: string, repo: string, number: number) => GitHubEffect<GitHubPull>;
|
|
238
|
+
/**
|
|
239
|
+
* GET /repos/{owner}/{repo}/pulls/{number} as a unified diff — the same bytes `git diff` would
|
|
240
|
+
* produce, which is what a generated walkthrough splices its chunks from.
|
|
241
|
+
*/
|
|
242
|
+
export declare const fetchPullRequestDiff: (owner: string, repo: string, number: number) => GitHubEffect<string>;
|
|
243
|
+
/**
|
|
244
|
+
* GET /repos/{owner}/{repo}/milestones — `state=all` so closed milestones stay mirrored (the
|
|
245
|
+
* issues still assigned to them have to resolve to something).
|
|
246
|
+
*/
|
|
247
|
+
export declare const fetchRepoMilestones: (owner: string, repo: string) => GitHubEffect<readonly GitHubMilestone[]>;
|
|
248
|
+
/** GET /repos/{owner}/{repo}/issues/{number}/comments. */
|
|
249
|
+
export declare const fetchIssueComments: (owner: string, repo: string, issueNumber: number) => GitHubEffect<readonly GitHubComment[]>;
|
|
250
|
+
export type IssueUpdateInput = {
|
|
251
|
+
title?: string;
|
|
252
|
+
body?: string;
|
|
253
|
+
state?: 'open' | 'closed';
|
|
254
|
+
state_reason?: 'completed' | 'not_planned' | 'reopened' | null;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* PATCH /repos/{owner}/{repo}/issues/{number} — update title / body / state.
|
|
258
|
+
*
|
|
259
|
+
* GitHub conflates issues and PRs at this endpoint: the same PATCH works for
|
|
260
|
+
* both, but PR-specific fields (head/base/draft) must go through the
|
|
261
|
+
* `/pulls/{n}` endpoint. We only touch issue-mappable fields here.
|
|
262
|
+
*/
|
|
263
|
+
export declare const updateIssue: (owner: string, repo: string, issueNumber: number, input: IssueUpdateInput) => GitHubEffect<GitHubIssue>;
|
|
264
|
+
export type RepoUpdateInput = {
|
|
265
|
+
/** GitHub allows the owner of a repo to rename it; this is rare and risky and we currently don't push it. */
|
|
266
|
+
name?: string;
|
|
267
|
+
description?: string;
|
|
268
|
+
homepage?: string;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* PATCH /repos/{owner}/{repo} — update repo description and a small set of
|
|
272
|
+
* mapped metadata. Renames (`name`) are accepted by the API but we don't push
|
|
273
|
+
* them by default: a rename invalidates clones, breaks pinned URLs, and is
|
|
274
|
+
* almost never what a user wants from a sync mirror.
|
|
275
|
+
*/
|
|
276
|
+
export declare const updateRepo: (owner: string, repo: string, input: RepoUpdateInput) => GitHubEffect<GitHubRepo>;
|
|
277
|
+
declare const GitHubReviewSchema: Schema.Struct<{
|
|
278
|
+
readonly id: Schema.Number;
|
|
279
|
+
readonly state: Schema.String;
|
|
280
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
281
|
+
}>;
|
|
282
|
+
export type GitHubReview = Schema.Schema.Type<typeof GitHubReviewSchema>;
|
|
283
|
+
/** POST /repos/{owner}/{repo}/pulls/{number}/reviews with `event: APPROVE`. */
|
|
284
|
+
export declare const approvePullRequest: (owner: string, repo: string, number: number, body?: string) => GitHubEffect<GitHubReview>;
|
|
285
|
+
declare const GitHubSubmittedReviewSchema: Schema.Struct<{
|
|
286
|
+
readonly id: Schema.Number;
|
|
287
|
+
/** `APPROVED`, `CHANGES_REQUESTED`, `COMMENTED`, `DISMISSED` or `PENDING`. */
|
|
288
|
+
readonly state: Schema.String;
|
|
289
|
+
readonly user: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
290
|
+
readonly login: Schema.String;
|
|
291
|
+
}>>>;
|
|
292
|
+
readonly submitted_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
293
|
+
}>;
|
|
294
|
+
export type GitHubSubmittedReview = Schema.Schema.Type<typeof GitHubSubmittedReviewSchema>;
|
|
295
|
+
/**
|
|
296
|
+
* GET /repos/{owner}/{repo}/pulls/{number}/reviews — every page, oldest first, since a reviewer's
|
|
297
|
+
* standing verdict is their latest review and a truncated list could miss it.
|
|
298
|
+
*/
|
|
299
|
+
export declare const fetchReviews: (owner: string, repo: string, number: number) => GitHubEffect<readonly GitHubSubmittedReview[]>;
|
|
300
|
+
/** POST /repos/{owner}/{repo}/issues/{number}/comments — a conversation comment, which a pull request shares with issues. */
|
|
301
|
+
export declare const createIssueComment: (owner: string, repo: string, issueNumber: number, body: string) => GitHubEffect<GitHubComment>;
|
|
302
|
+
declare const GitHubCheckRunSchema: Schema.Struct<{
|
|
303
|
+
readonly name: Schema.String;
|
|
304
|
+
/** `queued`, `in_progress` or `completed`. */
|
|
305
|
+
readonly status: Schema.String;
|
|
306
|
+
/** Set once `completed`: `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, `action_required`. */
|
|
307
|
+
readonly conclusion: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
308
|
+
readonly html_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
309
|
+
/** The provider's own page for the run (Depot, say), which GitHub's `html_url` only links back to. */
|
|
310
|
+
readonly details_url: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
311
|
+
readonly started_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
312
|
+
readonly completed_at: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
313
|
+
}>;
|
|
314
|
+
export type GitHubCheckRun = Schema.Schema.Type<typeof GitHubCheckRunSchema>;
|
|
315
|
+
/**
|
|
316
|
+
* GET /repos/{owner}/{repo}/commits/{sha}/check-runs — every page, since a truncated list would
|
|
317
|
+
* report a failing commit as green.
|
|
318
|
+
*/
|
|
319
|
+
export declare const fetchCheckRuns: (owner: string, repo: string, sha: string) => GitHubEffect<readonly GitHubCheckRun[]>;
|
|
320
|
+
export type ReviewCommentInput = {
|
|
321
|
+
body: string;
|
|
322
|
+
/** Head SHA the line numbers refer to. */
|
|
323
|
+
commit_id: string;
|
|
324
|
+
path: string;
|
|
325
|
+
line: number;
|
|
326
|
+
/** `LEFT` is the base (removed) side, `RIGHT` the head (added or context) side. */
|
|
327
|
+
side: 'LEFT' | 'RIGHT';
|
|
328
|
+
};
|
|
329
|
+
/** POST /repos/{owner}/{repo}/pulls/{number}/comments — a review comment on one line of the diff. */
|
|
330
|
+
export declare const createReviewComment: (owner: string, repo: string, number: number, input: ReviewCommentInput) => GitHubEffect<GitHubComment>;
|
|
331
|
+
export {};
|
|
332
|
+
//# sourceMappingURL=github-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-api.d.ts","sourceRoot":"","sources":["../../../../src/services/github-api.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,KAA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Ac,EAAE,CAQ7G,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,UACvB,MAAM,QACP,MAAM,UACJ,MAAM,SACP,kBAAkB,KACxB,YAAY,CAAC,aAAa,CAQ1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
2
|
+
import * as Skill from '@dxos/compute/Skill';
|
|
3
|
+
export declare const key = "org.dxos.skill.github";
|
|
4
|
+
/**
|
|
5
|
+
* Imported rather than named as strings: an unresolvable tool id is dropped from the toolkit with
|
|
6
|
+
* only a log line. Verbs that write to GitHub (approvals, comments) are left out so an agent cannot
|
|
7
|
+
* post under the user's account without a skill that asks for it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const operations: readonly Operation.Definition.Any[];
|
|
10
|
+
/** GitHub pull requests: import them into a space by URL, read their live state, and walk through them. */
|
|
11
|
+
export declare const make: () => Skill.Skill;
|
|
12
|
+
//# sourceMappingURL=GitHubSkill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubSkill.d.ts","sourceRoot":"","sources":["../../../../src/skills/GitHubSkill.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAM7C,eAAO,MAAM,GAAG,0BAA0B,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,CAAC,UAAU,CAAC,GAAG,EAIzD,CAAC;AAEF,2GAA2G;AAC3G,eAAO,MAAM,IAAI,QAAO,KAAK,CAAC,KAoB1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/skills/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The generation path end to end, against a real pull request: fetch its diff from GitHub, have the
|
|
5
|
+
* model narrate it as placeholder fences, splice the real hunks in, and render the result.
|
|
6
|
+
*
|
|
7
|
+
* The model runs against the live edge service (the `edge-remote` testing preset), so this story
|
|
8
|
+
* needs network but no credentials.
|
|
9
|
+
*/
|
|
10
|
+
declare const DefaultStory: ({ url: initialUrl }: {
|
|
11
|
+
url: string;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
declare const meta: {
|
|
14
|
+
title: string;
|
|
15
|
+
render: typeof DefaultStory;
|
|
16
|
+
decorators: import("@storybook/react").Decorator[];
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: string;
|
|
19
|
+
controls: {
|
|
20
|
+
disable: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
//# sourceMappingURL=Generate.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Generate.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Generate.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,KAAgC,MAAM,OAAO,CAAC;AA4BrD;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,wBAAyB;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,sBAqFzD,CAAC;AAUF,QAAA,MAAM,IAAI;;;;;QAIM,MAAM;QAAgB,QAAQ;YAAI,OAAO;;;CACpB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type StoryArgs = {
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* The whole mechanism end to end: `githubLinks()` turns the URLs into anchor chips, the chips'
|
|
8
|
+
* activation goes to the contributed `LinkResolver`s, and the resolved object's `CardContent`
|
|
9
|
+
* surface renders the card.
|
|
10
|
+
*/
|
|
11
|
+
declare const DefaultStory: ({ text }: StoryArgs) => React.JSX.Element;
|
|
12
|
+
declare const meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
render: typeof DefaultStory;
|
|
15
|
+
decorators: import("@storybook/react").Decorator[];
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const Default: Story;
|
|
23
|
+
//# sourceMappingURL=Links.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Links.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Links.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA+B,MAAM,OAAO,CAAC;AAoEpD,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,YAAY,aAAc,SAAS,sBAoCxC,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;QAaM,MAAM;;CACe,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC"}
|