@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,270 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { AiService } from '@dxos/ai';
|
|
3
|
+
import * as Operation from '@dxos/compute/Operation';
|
|
4
|
+
import * as Trace from '@dxos/compute/Trace';
|
|
5
|
+
import { Database, Obj } from '@dxos/echo';
|
|
6
|
+
import { Connection } from '@dxos/link';
|
|
7
|
+
import { PullRequest } from '@dxos/types';
|
|
8
|
+
import * as Walkthrough from './Walkthrough.ts';
|
|
9
|
+
/**
|
|
10
|
+
* Discovery only — list GitHub repositories the connection's token can see.
|
|
11
|
+
* Returns one descriptor per repo across all the user's orgs (and personal
|
|
12
|
+
* account). Read-only: NEVER materializes local objects — materialization is
|
|
13
|
+
* handled by the connector's `materializeTarget` when a `Cursor` is created.
|
|
14
|
+
*
|
|
15
|
+
* Orgs and their members are NOT presented as sync targets — they are
|
|
16
|
+
* auto-synced as part of the sync of any repo they own.
|
|
17
|
+
*/
|
|
18
|
+
export declare const GetGitHubRepositories: Operation.Definition<{
|
|
19
|
+
readonly connection: import("@dxos/echo/internal").Ref<Connection.Connection & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
20
|
+
}, {
|
|
21
|
+
readonly targets: readonly {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly description?: string | undefined;
|
|
25
|
+
readonly metadata?: {
|
|
26
|
+
readonly [x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
}, never>;
|
|
30
|
+
/**
|
|
31
|
+
* Find-or-create the empty local root Project for a selected GitHub repo so a
|
|
32
|
+
* cursor can reference it as its `spec.target`. Keyed by the repo's
|
|
33
|
+
* GitHub foreign id (`remoteTarget.id`), so it is idempotent across re-selection.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MaterializeGitHubTarget: Operation.Definition<{
|
|
36
|
+
readonly connection: import("@dxos/echo/internal").Ref<Connection.Connection & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
37
|
+
readonly remoteTarget?: {
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly description?: string | undefined;
|
|
41
|
+
readonly metadata?: {
|
|
42
|
+
readonly [x: string]: unknown;
|
|
43
|
+
} | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
readonly target: import("@dxos/echo/internal").Ref<Obj.Unknown>;
|
|
47
|
+
}, never>;
|
|
48
|
+
/**
|
|
49
|
+
* Per-target options. `maxDaysBack` caps how far back issues/PRs are pulled
|
|
50
|
+
* (mirrors the Gmail mailbox `daysBack`). Default — when unset — is "sync
|
|
51
|
+
* everything ever opened or edited."
|
|
52
|
+
*/
|
|
53
|
+
export declare const SyncOptions: Schema.Struct<{
|
|
54
|
+
readonly maxDaysBack: Schema.optional<Schema.Number>;
|
|
55
|
+
}>;
|
|
56
|
+
export interface SyncOptions extends Schema.Schema.Type<typeof SyncOptions> {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Reconcile GitHub data for every repo bound to a connection (one cursor per repo).
|
|
60
|
+
*
|
|
61
|
+
* Pull-then-push per bound repo: auto-upsert its owning org + members,
|
|
62
|
+
* three-way merge the repo as a Project and its issues/PRs as Tasks (respecting
|
|
63
|
+
* `maxDaysBack` if set), then push diverged Project/Task fields back to GitHub.
|
|
64
|
+
* Sync state (`lastTick`/`lastError`/`spec.snapshots`) is written onto each binding.
|
|
65
|
+
*/
|
|
66
|
+
export declare const SyncGitHubRepositories: Operation.Definition<{
|
|
67
|
+
readonly connection: import("@dxos/echo/internal").Ref<Connection.Connection & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
68
|
+
readonly priority?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
readonly pulled: {
|
|
71
|
+
readonly organizations: number;
|
|
72
|
+
readonly people: number;
|
|
73
|
+
readonly projects: number;
|
|
74
|
+
readonly tasks: number;
|
|
75
|
+
readonly comments: number;
|
|
76
|
+
};
|
|
77
|
+
}, never>;
|
|
78
|
+
/**
|
|
79
|
+
* Import a pull request named by a github.com URL or `owner/repo#123` into the space, so it can be
|
|
80
|
+
* opened, reviewed and walked through without waiting for a sync of the whole repository.
|
|
81
|
+
*
|
|
82
|
+
* Idempotent by coordinates — a pull request the space already holds is returned as it stands
|
|
83
|
+
* rather than duplicated.
|
|
84
|
+
*/
|
|
85
|
+
export declare const ImportPullRequest: Operation.Definition<{
|
|
86
|
+
readonly reference: string;
|
|
87
|
+
}, {
|
|
88
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
89
|
+
readonly imported: boolean;
|
|
90
|
+
}, Database.Service>;
|
|
91
|
+
/**
|
|
92
|
+
* Import the pull request the browser extension is looking at, named by the page's own URL.
|
|
93
|
+
*
|
|
94
|
+
* Separate from {@link ImportPullRequest} because the extension bridge invokes every page action
|
|
95
|
+
* with the fixed `{ snapshot, target }` shape and reads an `{ id }` back. Nothing is extracted from
|
|
96
|
+
* the page: the URL in the snapshot's source names the pull request, and GitHub is the authority on
|
|
97
|
+
* everything else.
|
|
98
|
+
*/
|
|
99
|
+
export declare const ImportPullRequestFromSnapshot: Operation.Definition<{
|
|
100
|
+
readonly snapshot: {
|
|
101
|
+
readonly source: {
|
|
102
|
+
readonly url: string;
|
|
103
|
+
readonly title: string;
|
|
104
|
+
readonly favicon?: string | undefined;
|
|
105
|
+
readonly clippedAt: string;
|
|
106
|
+
};
|
|
107
|
+
readonly selection?: {
|
|
108
|
+
readonly text: string;
|
|
109
|
+
readonly html?: string | undefined;
|
|
110
|
+
readonly htmlTruncated?: boolean | undefined;
|
|
111
|
+
readonly rect?: {
|
|
112
|
+
readonly x: number;
|
|
113
|
+
readonly y: number;
|
|
114
|
+
readonly width: number;
|
|
115
|
+
readonly height: number;
|
|
116
|
+
} | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
readonly hints?: {
|
|
119
|
+
readonly ogTitle?: string | undefined;
|
|
120
|
+
readonly ogDescription?: string | undefined;
|
|
121
|
+
readonly ogImage?: string | undefined;
|
|
122
|
+
readonly jsonLd?: readonly unknown[] | undefined;
|
|
123
|
+
readonly h1?: string | undefined;
|
|
124
|
+
readonly firstImage?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
readonly imageData?: string | undefined;
|
|
127
|
+
readonly html?: string | undefined;
|
|
128
|
+
readonly htmlTruncated?: boolean | undefined;
|
|
129
|
+
};
|
|
130
|
+
readonly target: Database.Database;
|
|
131
|
+
}, {
|
|
132
|
+
readonly id: string;
|
|
133
|
+
}, never>;
|
|
134
|
+
/**
|
|
135
|
+
* Generate a walkthrough of a pull request: one markdown document narrating the change in reading
|
|
136
|
+
* order, with its diff chunks spliced in from the patch itself.
|
|
137
|
+
*
|
|
138
|
+
* Idempotent by commit — a walkthrough already generated for the pull request's head is returned
|
|
139
|
+
* unchanged unless `force` says otherwise, since the answer cannot have changed.
|
|
140
|
+
*/
|
|
141
|
+
export declare const GenerateWalkthrough: Operation.Definition<{
|
|
142
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
143
|
+
readonly force?: boolean | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
readonly walkthrough: import("@dxos/echo/internal").Ref<Walkthrough.Walkthrough & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
146
|
+
readonly generated: boolean;
|
|
147
|
+
readonly covered: number;
|
|
148
|
+
readonly total: number;
|
|
149
|
+
}, AiService.AiService | Trace.TraceService>;
|
|
150
|
+
/**
|
|
151
|
+
* Submit an approving review on a pull request, as the space's GitHub connection.
|
|
152
|
+
*
|
|
153
|
+
* Falls back to a marked conversation comment where GitHub refuses the review — the author's own
|
|
154
|
+
* pull request, or a token with no review permission — so the approval is still recorded and still
|
|
155
|
+
* detectable by an agent deciding whether the pull request is good to land.
|
|
156
|
+
*/
|
|
157
|
+
export declare const SubmitPullRequestApproval: Operation.Definition<{
|
|
158
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
159
|
+
readonly body?: string | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
readonly reviewId?: number | undefined;
|
|
162
|
+
readonly commentId?: number | undefined;
|
|
163
|
+
readonly url?: string | undefined;
|
|
164
|
+
readonly commented: boolean;
|
|
165
|
+
}, never>;
|
|
166
|
+
/** Post a conversation comment on a pull request, as the space's GitHub connection. */
|
|
167
|
+
export declare const AddPullRequestComment: Operation.Definition<{
|
|
168
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
169
|
+
readonly body: string;
|
|
170
|
+
}, {
|
|
171
|
+
readonly commentId: number;
|
|
172
|
+
readonly url?: string | undefined;
|
|
173
|
+
}, never>;
|
|
174
|
+
/** Post a review comment on one line of a pull request's diff, as the space's GitHub connection. */
|
|
175
|
+
export declare const AddPullRequestReviewComment: Operation.Definition<{
|
|
176
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
177
|
+
readonly body: string;
|
|
178
|
+
readonly commit: string;
|
|
179
|
+
readonly path: string;
|
|
180
|
+
readonly line: number;
|
|
181
|
+
readonly side: "LEFT" | "RIGHT";
|
|
182
|
+
}, {
|
|
183
|
+
readonly commentId: number;
|
|
184
|
+
readonly url?: string | undefined;
|
|
185
|
+
}, never>;
|
|
186
|
+
/**
|
|
187
|
+
* Re-read a stored pull request from GitHub and write back whatever has changed — its title, state,
|
|
188
|
+
* description, branches and size — so the object in the space does not go stale between syncs.
|
|
189
|
+
*/
|
|
190
|
+
export declare const SyncPullRequest: Operation.Definition<{
|
|
191
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
192
|
+
}, {
|
|
193
|
+
readonly updated: readonly string[];
|
|
194
|
+
}, never>;
|
|
195
|
+
/** Aggregate outcome of a commit's check runs; `none` when the commit has no checks at all. */
|
|
196
|
+
export declare const CiState: Schema.Literals<readonly ["success", "failure", "pending", "none"]>;
|
|
197
|
+
export type CiState = Schema.Schema.Type<typeof CiState>;
|
|
198
|
+
export declare const CheckCounts: Schema.Struct<{
|
|
199
|
+
readonly total: Schema.Number;
|
|
200
|
+
readonly passed: Schema.Number;
|
|
201
|
+
readonly failed: Schema.Number;
|
|
202
|
+
readonly pending: Schema.Number;
|
|
203
|
+
}>;
|
|
204
|
+
export interface CheckCounts extends Schema.Schema.Type<typeof CheckCounts> {
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Where the reviews stand, from each reviewer's latest verdict: any outstanding request for changes
|
|
208
|
+
* outweighs approvals, and `none` means no reviewer has approved or asked for changes.
|
|
209
|
+
*/
|
|
210
|
+
export declare const ReviewState: Schema.Literals<readonly ["approved", "changes_requested", "none"]>;
|
|
211
|
+
export type ReviewState = Schema.Schema.Type<typeof ReviewState>;
|
|
212
|
+
/** How one check run ended, folded to what a reader acts on; `skipped` is neither passing nor failing. */
|
|
213
|
+
export declare const CheckOutcome: Schema.Literals<readonly ["success", "failure", "pending", "skipped", "neutral"]>;
|
|
214
|
+
export type CheckOutcome = Schema.Schema.Type<typeof CheckOutcome>;
|
|
215
|
+
/** One check run on the head commit, as the article lists it. */
|
|
216
|
+
export declare const CheckRun: Schema.Struct<{
|
|
217
|
+
readonly name: Schema.String;
|
|
218
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure", "pending", "skipped", "neutral"]>;
|
|
219
|
+
/** GitHub's own `conclusion` (`timed_out`, `cancelled`, …), kept for the label when it says more than the outcome. */
|
|
220
|
+
readonly conclusion: Schema.optional<Schema.String>;
|
|
221
|
+
/** Where the run's logs live: the provider's page when it has one, else GitHub's. */
|
|
222
|
+
readonly url: Schema.optional<Schema.String>;
|
|
223
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
224
|
+
readonly completedAt: Schema.optional<Schema.String>;
|
|
225
|
+
}>;
|
|
226
|
+
export interface CheckRun extends Schema.Schema.Type<typeof CheckRun> {
|
|
227
|
+
}
|
|
228
|
+
/** Read a pull request's live state and the CI outcome of its head commit from GitHub. */
|
|
229
|
+
export declare const GetPullRequestStatus: Operation.Definition<{
|
|
230
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
231
|
+
}, {
|
|
232
|
+
readonly state: "closed" | "draft" | "merged" | "open";
|
|
233
|
+
readonly title: string;
|
|
234
|
+
readonly commit?: string | undefined;
|
|
235
|
+
readonly body?: string | undefined;
|
|
236
|
+
readonly ci: "failure" | "none" | "pending" | "success";
|
|
237
|
+
readonly checks: {
|
|
238
|
+
readonly total: number;
|
|
239
|
+
readonly passed: number;
|
|
240
|
+
readonly failed: number;
|
|
241
|
+
readonly pending: number;
|
|
242
|
+
};
|
|
243
|
+
readonly runs: readonly {
|
|
244
|
+
readonly name: string;
|
|
245
|
+
readonly outcome: "failure" | "neutral" | "pending" | "skipped" | "success";
|
|
246
|
+
readonly conclusion?: string | undefined;
|
|
247
|
+
readonly url?: string | undefined;
|
|
248
|
+
readonly startedAt?: string | undefined;
|
|
249
|
+
readonly completedAt?: string | undefined;
|
|
250
|
+
}[];
|
|
251
|
+
readonly review: "approved" | "changes_requested" | "none";
|
|
252
|
+
readonly approvals: number;
|
|
253
|
+
}, never>;
|
|
254
|
+
/**
|
|
255
|
+
* Read a pull request's whole change as a unified diff, with the head commit it was taken at so a
|
|
256
|
+
* line comment on it anchors to the lines the reader saw.
|
|
257
|
+
*/
|
|
258
|
+
export declare const GetPullRequestDiff: Operation.Definition<{
|
|
259
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
260
|
+
}, {
|
|
261
|
+
readonly commit?: string | undefined;
|
|
262
|
+
readonly diff: string;
|
|
263
|
+
}, never>;
|
|
264
|
+
/**
|
|
265
|
+
* Progress key for {@link GenerateWalkthrough}, derived from the pull request rather than passed, so
|
|
266
|
+
* the UI can watch a run it did not start. The absolute URI form is required: a hydration-dependent
|
|
267
|
+
* one would not match the key the producer mints.
|
|
268
|
+
*/
|
|
269
|
+
export declare const createWalkthroughProgressKey: (pullRequest: PullRequest.PullRequest) => string;
|
|
270
|
+
//# sourceMappingURL=GitHubOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/GitHubOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAO,GAAG,EAAO,MAAM,YAAY,CAAC;AAIrD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;SAShC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;SASlC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,WAAW;;EAKtB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG;AAE9E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;SAiBT,CAAC;AAE3B;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;oBAkByB,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAeN,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;4CAwBN,CAAC;AAE3B;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;SAsBpC,CAAC;AAEH,uFAAuF;AACvF,eAAO,MAAM,qBAAqB;;;;;;SAgBhC,CAAC;AAEH,oGAAoG;AACpG,eAAO,MAAM,2BAA2B;;;;;;;;;;SAsBtC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;SAeQ,CAAC;AAErC,+FAA+F;AAC/F,eAAO,MAAM,OAAO,qEAA6D,CAAC;AAClF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzD,eAAO,MAAM,WAAW;;;;;EAKtB,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG;AAE9E;;;GAGG;AACH,eAAO,MAAM,WAAW,qEAA6D,CAAC;AACtF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,0GAA0G;AAC1G,eAAO,MAAM,YAAY,mFAA2E,CAAC;AACrG,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,iEAAiE;AACjE,eAAO,MAAM,QAAQ;;;IAGnB,sHAAsH;;IAEtH,qFAAqF;;;;EAIrF,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC;CAAG;AAExE,0FAA0F;AAC1F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;SAwB/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;SAe7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,gBAAiB,WAAW,CAAC,WAAW,KAAG,MACP,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { ViewState } from '@dxos/react-ui-attention/types';
|
|
3
|
+
/**
|
|
4
|
+
* The fields the pull request list can be ordered by. `relevance` ranks what needs the reader first
|
|
5
|
+
* (see `relevance`); `updated` and `created` are GitHub's times.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SortField: Schema.Literals<readonly ["relevance", "updated", "created", "number", "title"]>;
|
|
8
|
+
export type SortField = Schema.Schema.Type<typeof SortField>;
|
|
9
|
+
export declare const SortDirection: Schema.Literals<readonly ["asc", "desc"]>;
|
|
10
|
+
export type SortDirection = Schema.Schema.Type<typeof SortDirection>;
|
|
11
|
+
export declare const Sort: Schema.Struct<{
|
|
12
|
+
readonly field: Schema.Literals<readonly ["relevance", "updated", "created", "number", "title"]>;
|
|
13
|
+
readonly direction: Schema.Literals<readonly ["asc", "desc"]>;
|
|
14
|
+
}>;
|
|
15
|
+
export type Sort = Schema.Schema.Type<typeof Sort>;
|
|
16
|
+
/** The fields the list can be grouped by; `none` is one ungrouped list. */
|
|
17
|
+
export declare const GroupField: Schema.Literals<readonly ["none", "repo", "state", "checks", "author"]>;
|
|
18
|
+
export type GroupField = Schema.Schema.Type<typeof GroupField>;
|
|
19
|
+
export declare const DEFAULT_SORT: Sort;
|
|
20
|
+
export declare const View: Schema.Struct<{
|
|
21
|
+
readonly query: Schema.String;
|
|
22
|
+
readonly sort: Schema.optional<Schema.Struct<{
|
|
23
|
+
readonly field: Schema.Literals<readonly ["relevance", "updated", "created", "number", "title"]>;
|
|
24
|
+
readonly direction: Schema.Literals<readonly ["asc", "desc"]>;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly group: Schema.optional<Schema.Literals<readonly ["none", "repo", "state", "checks", "author"]>>;
|
|
27
|
+
}>;
|
|
28
|
+
export type View = Schema.Schema.Type<typeof View>;
|
|
29
|
+
/**
|
|
30
|
+
* How a reader has the space's pull requests arranged, keyed by the space and held per device
|
|
31
|
+
* (`local`), as a task set's list is: the filter, order and grouping are how this reader looks at the
|
|
32
|
+
* list here, not a property of the space every member would see.
|
|
33
|
+
*/
|
|
34
|
+
export declare const aspect: ViewState.Aspect<View>;
|
|
35
|
+
//# sourceMappingURL=PullRequestsView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PullRequestsView.d.ts","sourceRoot":"","sources":["../../../../src/types/PullRequestsView.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,SAAS,kFAA0E,CAAC;AACjG,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa,2CAAmC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,eAAO,MAAM,IAAI;;;EAAgE,CAAC;AAClF,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD,2EAA2E;AAC3E,eAAO,MAAM,UAAU,yEAAiE,CAAC;AACzF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,YAAY,EAAE,IAAgD,CAAC;AAE5E,eAAO,MAAM,IAAI;;;;;;;EAIf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAKxC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Obj, Type } from '@dxos/echo';
|
|
2
|
+
import { PullRequest } from '@dxos/types';
|
|
3
|
+
declare const Walkthrough_base: Type.ObjClass<Walkthrough, {
|
|
4
|
+
readonly pullRequest: import("@dxos/echo/internal").Ref<PullRequest.PullRequest & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
5
|
+
readonly title?: string | undefined;
|
|
6
|
+
readonly body: string;
|
|
7
|
+
readonly commit: string;
|
|
8
|
+
readonly generatedAt?: string | undefined;
|
|
9
|
+
readonly model?: string | undefined;
|
|
10
|
+
readonly covered?: number | undefined;
|
|
11
|
+
readonly total?: number | undefined;
|
|
12
|
+
}, {}>;
|
|
13
|
+
/**
|
|
14
|
+
* A narrated reading of a pull request: one markdown document whose prose, headings and ```diff
|
|
15
|
+
* fences describe the change in the order a reviewer should meet it.
|
|
16
|
+
*
|
|
17
|
+
* Generated against ONE commit and stale the moment the branch moves, which is why `commit` is part
|
|
18
|
+
* of the record rather than something to infer — see {@link isStale}.
|
|
19
|
+
*/
|
|
20
|
+
export declare class Walkthrough extends Walkthrough_base {
|
|
21
|
+
}
|
|
22
|
+
/** Factory wrapper around `Obj.make` for {@link Walkthrough}. */
|
|
23
|
+
export declare const make: (props: Obj.MakeProps<typeof Walkthrough>) => Walkthrough;
|
|
24
|
+
/** Returns true when value is a Walkthrough object. */
|
|
25
|
+
export declare const instanceOf: (value: unknown) => value is Walkthrough;
|
|
26
|
+
/** The label a walkthrough of this pull request carries. */
|
|
27
|
+
export declare const makeTitle: (pullRequest: PullRequest.PullRequest, title?: string) => string;
|
|
28
|
+
/** Whether the walkthrough describes a commit other than the one given. */
|
|
29
|
+
export declare const isStale: (walkthrough: Walkthrough, head: string) => boolean;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=Walkthrough.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Walkthrough.d.ts","sourceRoot":"","sources":["../../../../src/types/Walkthrough.ts"],"names":[],"mappings":"AAQA,OAAO,EAA2B,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;AAE1C;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,gBAkChC;CAAG;AAEJ,iEAAiE;AACjE,eAAO,MAAM,IAAI,UAAW,GAAG,CAAC,SAAS,CAAC,OAAO,WAAW,CAAC,KAAG,WAA2C,CAAC;AAE5G,uDAAuD;AACvD,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,KAAK,IAAI,WAAiD,CAAC;AAEvG,4DAA4D;AAC5D,eAAO,MAAM,SAAS,gBAAiB,WAAW,CAAC,WAAW,qBAA8B,MACzC,CAAC;AAEpD,2EAA2E;AAC3E,eAAO,MAAM,OAAO,gBAAiB,WAAW,QAAQ,MAAM,KAAG,OAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Walkthrough.test.d.ts","sourceRoot":"","sources":["../../../../src/types/Walkthrough.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type PatchHunk } from './patch.ts';
|
|
2
|
+
export type WalkthroughFill = {
|
|
3
|
+
body: string;
|
|
4
|
+
/** Hunks no fence claimed, in patch order — what the appended section covers. */
|
|
5
|
+
missed: {
|
|
6
|
+
path: string;
|
|
7
|
+
hunks: PatchHunk[];
|
|
8
|
+
}[];
|
|
9
|
+
/** Files the patch changed without changing any line: renames and mode changes. */
|
|
10
|
+
textless: string[];
|
|
11
|
+
/** Machine-written or binary files, named in the appendix rather than rendered. */
|
|
12
|
+
generated: string[];
|
|
13
|
+
/** Fences naming a file the patch does not contain; left in place with a note. */
|
|
14
|
+
unresolved: string[];
|
|
15
|
+
/** Hunks the body accounts for, over the patch's total. */
|
|
16
|
+
covered: number;
|
|
17
|
+
total: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Fills the walkthrough's empty diff fences from the pull request's own patch, then reports what the
|
|
21
|
+
* prose never mentioned.
|
|
22
|
+
*
|
|
23
|
+
* The model is asked for placeholders — a path and a line range — rather than diff content, because
|
|
24
|
+
* a model that transcribes a diff gets lines subtly wrong and the result is a review artefact that
|
|
25
|
+
* lies about the change. Here the bytes come from git and only the selection is the model's.
|
|
26
|
+
*/
|
|
27
|
+
export declare const fillWalkthrough: (body: string, patch: string) => WalkthroughFill;
|
|
28
|
+
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/fill.ts"],"names":[],"mappings":"AAKA,OAAO,EAAkB,KAAK,SAAS,EAAoD,MAAM,YAAY,CAAC;AAgB9G,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,EAAE,CAAA;KAAE,EAAE,CAAC;IAC/C,mFAAmF;IACnF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mFAAmF;IACnF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,kFAAkF;IAClF,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAgFF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,SAAU,MAAM,SAAS,MAAM,KAAG,eA4F7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill.test.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/fill.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Database } from '@dxos/echo';
|
|
3
|
+
import { PullRequest } from '@dxos/types';
|
|
4
|
+
import { Walkthrough } from '#types';
|
|
5
|
+
/** What the pull request looks like on GitHub right now, as against the local mirror of it. */
|
|
6
|
+
export type RemoteFacts = {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
baseBranch?: string;
|
|
10
|
+
headBranch?: string;
|
|
11
|
+
/** Head SHA. Absent means the walkthrough cannot be pinned to a commit, so it is always stale. */
|
|
12
|
+
commit?: string;
|
|
13
|
+
};
|
|
14
|
+
export type GenerateOptions<R = never> = {
|
|
15
|
+
pullRequest: PullRequest.PullRequest;
|
|
16
|
+
remote: RemoteFacts;
|
|
17
|
+
/** The whole unified diff, which the chunks are filled from. */
|
|
18
|
+
diff: string;
|
|
19
|
+
/** Regenerate even where a walkthrough for this head already exists. */
|
|
20
|
+
force?: boolean;
|
|
21
|
+
/** Identifier recorded on the result, so a regression can be attributed after the default moves. */
|
|
22
|
+
model: string;
|
|
23
|
+
/**
|
|
24
|
+
* Runs the model over the prompt. Injected so the decision logic can be tested without one, and
|
|
25
|
+
* generic in its requirement so the model service it needs is DECLARED by the caller rather than
|
|
26
|
+
* quietly dropped — a requirement erased here is a defect at the first real invocation.
|
|
27
|
+
*/
|
|
28
|
+
narrate: (prompt: string) => Effect.Effect<string, never, R>;
|
|
29
|
+
/** Phase reporter; `current` counts against {@link GENERATE_PHASES}. */
|
|
30
|
+
report?: (message: string, current: number) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Diff size past which the walkthrough is planned into chapters and narrated a chapter at a time.
|
|
33
|
+
* Zero forces the two-stage path; `Infinity` forces the one-shot path.
|
|
34
|
+
*/
|
|
35
|
+
chapterThresholdChars?: number;
|
|
36
|
+
};
|
|
37
|
+
export type GenerateResult = {
|
|
38
|
+
walkthrough: Walkthrough.Walkthrough;
|
|
39
|
+
/** How the body was written: one prompt, or a plan plus a prompt per chapter. */
|
|
40
|
+
strategy?: 'one-shot' | 'chaptered';
|
|
41
|
+
/** Whether the model ran, as against an existing walkthrough being returned unchanged. */
|
|
42
|
+
generated: boolean;
|
|
43
|
+
covered: number;
|
|
44
|
+
total: number;
|
|
45
|
+
};
|
|
46
|
+
/** Phases a caller's progress meter counts, so it is determinate rather than a spinner. */
|
|
47
|
+
export declare const GENERATE_PHASES = 5;
|
|
48
|
+
/**
|
|
49
|
+
* Decides whether to regenerate, runs the model, fills the chunks, and stores the result.
|
|
50
|
+
*
|
|
51
|
+
* Split from the operation handler so the part with the decisions in it can be tested against a real
|
|
52
|
+
* database without a network or a model: what the handler adds is two HTTP calls.
|
|
53
|
+
*/
|
|
54
|
+
export declare const generateWalkthrough: <R = never>({ pullRequest, remote, diff, force, model, narrate, report, chapterThresholdChars, }: GenerateOptions<R>) => Effect.Effect<GenerateResult, never, Database.Service | R>;
|
|
55
|
+
/** The walkthrough already written for this pull request, if any. */
|
|
56
|
+
export declare const findWalkthrough: (pullRequest: PullRequest.PullRequest) => Effect.Effect<Walkthrough.Walkthrough | undefined, never, Database.Service>;
|
|
57
|
+
/**
|
|
58
|
+
* The newest of however many were written, ties broken by id.
|
|
59
|
+
*
|
|
60
|
+
* Two generations racing on one pull request both see none and both add: the check and the write
|
|
61
|
+
* are separate steps, and ECHO has neither a uniqueness constraint nor an atomic upsert to close
|
|
62
|
+
* that. Picking deterministically makes the duplicate inert instead — every reader lands on the
|
|
63
|
+
* same object, and the next regeneration updates that one in place rather than forking again. The
|
|
64
|
+
* loser stays in the space; removing it from a read path would delete another client's object.
|
|
65
|
+
*/
|
|
66
|
+
export declare const newestWalkthrough: (walkthroughs: readonly Walkthrough.Walkthrough[]) => Walkthrough.Walkthrough | undefined;
|
|
67
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/generate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAkBrC,+FAA+F;AAC/F,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,KAAK,IAAI;IACvC,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;IACrC,MAAM,EAAE,WAAW,CAAC;IACpB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oGAAoG;IACpG,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAC7D,wEAAwE;IACxE,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;IACrC,iFAAiF;IACjF,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACpC,0FAA0F;IAC1F,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,2FAA2F;AAC3F,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,GAAG,KAAK,wFAS1C,eAAe,CAAC,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,CAAC,CAkD7E,CAAC;AAuCL,qEAAqE;AACrE,eAAO,MAAM,eAAe,gBACb,WAAW,CAAC,WAAW,KACnC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAM1E,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,iBACd,SAAS,WAAW,CAAC,WAAW,EAAE,KAC/C,WAAW,CAAC,WAAW,GAAG,SAad,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.test.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/generate.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a path is machine-written or unreadable.
|
|
3
|
+
*
|
|
4
|
+
* `.changeset/` entries count: the changeset is a consequence of the change the walkthrough already
|
|
5
|
+
* describes, and a section about it tells the reader nothing the rest of the document did not.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isGeneratedPath: (path: string) => boolean;
|
|
8
|
+
/** A file git could not diff as text, whatever its extension says. */
|
|
9
|
+
export declare const isBinaryPatch: (preamble: readonly string[]) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this file is one the walkthrough should leave alone.
|
|
12
|
+
*
|
|
13
|
+
* A hunk count of zero is NOT generated on its own: a rename or a mode change is still a change a
|
|
14
|
+
* reviewer has to know about, and {@link fillWalkthrough} reports it separately.
|
|
15
|
+
*/
|
|
16
|
+
export declare const isGeneratedFile: (file: {
|
|
17
|
+
path: string;
|
|
18
|
+
preamble: readonly string[];
|
|
19
|
+
}) => boolean;
|
|
20
|
+
//# sourceMappingURL=generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/generated.ts"],"names":[],"mappings":"AAwCA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,SAAU,MAAM,KAAG,OAU9C,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,aAAa,aAAc,SAAS,MAAM,EAAE,KAAG,OACsC,CAAC;AAEnG;;;;;GAKG;AACH,eAAO,MAAM,eAAe,SAAU;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,KAAG,OAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated.test.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/generated.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts a blank line before every heading outside a code fence.
|
|
3
|
+
*
|
|
4
|
+
* A heading may legally interrupt a paragraph, so the model and the chapter join both emit one on
|
|
5
|
+
* the very next line — which the walkthrough's source-level editor shows flush against the prose.
|
|
6
|
+
*/
|
|
7
|
+
export declare const spaceHeadings: (markdown: string) => string;
|
|
8
|
+
//# sourceMappingURL=headings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/headings.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,KAAG,MAuBhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headings.test.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/headings.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './fill.ts';
|
|
2
|
+
export * from './generate.ts';
|
|
3
|
+
export * from './generated.ts';
|
|
4
|
+
export * from './headings.ts';
|
|
5
|
+
export * from './patch.ts';
|
|
6
|
+
export * from './plan.ts';
|
|
7
|
+
export * from './prompt.ts';
|
|
8
|
+
export * from './score.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** A `@@` hunk, kept as the verbatim lines git emitted so filling a chunk is lossless. */
|
|
2
|
+
export type PatchHunk = {
|
|
3
|
+
/** The `@@ -a,b +c,d @@ section` line. */
|
|
4
|
+
header: string;
|
|
5
|
+
/** Body lines (context, additions, removals), without the header. */
|
|
6
|
+
lines: string[];
|
|
7
|
+
/** 1-based inclusive span in the file AFTER the change; `afterEnd < afterStart` for a pure removal. */
|
|
8
|
+
afterStart: number;
|
|
9
|
+
afterEnd: number;
|
|
10
|
+
/** The same span in the file BEFORE it, which is all a pure removal has. */
|
|
11
|
+
beforeStart: number;
|
|
12
|
+
beforeEnd: number;
|
|
13
|
+
added: number;
|
|
14
|
+
removed: number;
|
|
15
|
+
};
|
|
16
|
+
export type PatchFile = {
|
|
17
|
+
/** Path after the change, or the pre-image path when the file was deleted. */
|
|
18
|
+
path: string;
|
|
19
|
+
/** Headers git emitted before the first hunk (`diff --git`, `index`, `---`, `+++`). */
|
|
20
|
+
preamble: string[];
|
|
21
|
+
hunks: PatchHunk[];
|
|
22
|
+
added: number;
|
|
23
|
+
removed: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Splits a multi-file unified diff — what `GET /repos/…/pulls/N` returns under the `diff` media type
|
|
27
|
+
* — into files and hunks. Hunk bodies are carried verbatim rather than re-derived, so a chunk filled
|
|
28
|
+
* from one is byte-identical to what git produced.
|
|
29
|
+
*/
|
|
30
|
+
export declare const parsePatch: (patch: string) => PatchFile[];
|
|
31
|
+
/** The hunk text a diff fence holds: the `@@` header and its body, as git wrote them. */
|
|
32
|
+
export declare const renderHunks: (hunks: PatchHunk[]) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether a hunk shows any of `[start, end]` of the post-change file.
|
|
35
|
+
*
|
|
36
|
+
* A pure removal spans nothing after the change (`afterEnd === afterStart - 1`), so it is treated as
|
|
37
|
+
* occupying the single position the lines were removed from — otherwise no range could ever select
|
|
38
|
+
* it, including the one this module's own {@link hunkRange} reports for it.
|
|
39
|
+
*/
|
|
40
|
+
export declare const hunkOverlaps: (hunk: PatchHunk, start: number, end: number) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The span a set of hunks covers, for a fence's `lines=` attribute.
|
|
43
|
+
*
|
|
44
|
+
* Measured after the change, except where nothing survives it: a deleted file's post-image is empty
|
|
45
|
+
* and would otherwise read as `Lines 0`, so its range is quoted from the pre-image instead.
|
|
46
|
+
*/
|
|
47
|
+
export declare const hunkRange: (hunks: PatchHunk[]) => string | undefined;
|
|
48
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../../src/walkthrough/patch.ts"],"names":[],"mappings":"AAIA,0FAA0F;AAC1F,MAAM,MAAM,SAAS,GAAG;IACtB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,uGAAuG;IACvG,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKF;;;;GAIG;AACH,eAAO,MAAM,UAAU,UAAW,MAAM,KAAG,SAAS,EAmFnD,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,WAAW,UAAW,SAAS,EAAE,KAAG,MACwB,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,SAAU,SAAS,SAAS,MAAM,OAAO,MAAM,KAAG,OACE,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,SAAS,UAAW,SAAS,EAAE,KAAG,MAAM,GAAG,SAUvD,CAAC"}
|