@gitkraken/core-gitlens 0.6.0 → 0.7.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/CHANGELOG.md +15 -1
- package/README.md +9 -2
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/decorate.js +9 -0
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js +57 -0
- package/dist/git/cache.d.ts +297 -297
- package/dist/git/cache.js +948 -1276
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts +202 -197
- package/dist/git/context.js +12 -8
- package/dist/git/context.js.map +1 -1
- package/dist/git/errors.d.ts +268 -281
- package/dist/git/errors.js +928 -706
- package/dist/git/errors.js.map +1 -1
- package/dist/git/features.d.ts +3 -2
- package/dist/git/features.js +34 -55
- package/dist/git/features.js.map +1 -1
- package/dist/git/gitHealth.d.ts +88 -81
- package/dist/git/gitHealth.js +259 -329
- package/dist/git/gitHealth.js.map +1 -1
- package/dist/git/models/author.d.ts +12 -10
- package/dist/git/models/author.js +0 -2
- package/dist/git/models/autolink.d.ts +36 -37
- package/dist/git/models/autolink.js +0 -2
- package/dist/git/models/blame.d.ts +25 -23
- package/dist/git/models/blame.js +0 -2
- package/dist/git/models/branch.d.ts +74 -72
- package/dist/git/models/branch.js +132 -171
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts +135 -133
- package/dist/git/models/commit.js +381 -484
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts +30 -29
- package/dist/git/models/contributor.js +56 -64
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts +5 -3
- package/dist/git/models/defaultBranch.js +0 -2
- package/dist/git/models/diff.d.ts +49 -47
- package/dist/git/models/diff.js +0 -2
- package/dist/git/models/file.d.ts +20 -18
- package/dist/git/models/file.js +0 -2
- package/dist/git/models/fileChange.d.ts +45 -43
- package/dist/git/models/fileChange.js +60 -66
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +25 -23
- package/dist/git/models/fileStatus.js +30 -26
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +328 -320
- package/dist/git/models/graph.js +31 -27
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts +37 -35
- package/dist/git/models/graphSearch.js +0 -2
- package/dist/git/models/graphSession.d.ts +158 -66
- package/dist/git/models/graphSession.js +72 -1
- package/dist/git/models/graphSession.js.map +1 -1
- package/dist/git/models/issue.d.ts +171 -150
- package/dist/git/models/issue.js +86 -88
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +16 -14
- package/dist/git/models/issueOrPullRequest.js +0 -2
- package/dist/git/models/lineRange.d.ts +6 -4
- package/dist/git/models/lineRange.js +0 -2
- package/dist/git/models/log.d.ts +18 -16
- package/dist/git/models/log.js +0 -2
- package/dist/git/models/mergeConflicts.d.ts +17 -15
- package/dist/git/models/mergeConflicts.js +0 -2
- package/dist/git/models/patch.d.ts +14 -12
- package/dist/git/models/patch.js +0 -2
- package/dist/git/models/pausedOperationStatus.d.ts +42 -40
- package/dist/git/models/pausedOperationStatus.js +0 -2
- package/dist/git/models/pullRequest.d.ts +238 -236
- package/dist/git/models/pullRequest.js +151 -163
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts +30 -28
- package/dist/git/models/rebase.js +0 -2
- package/dist/git/models/reference.d.ts +57 -55
- package/dist/git/models/reference.js +0 -2
- package/dist/git/models/reflog.d.ts +29 -27
- package/dist/git/models/reflog.js +63 -82
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts +34 -32
- package/dist/git/models/remote.js +74 -95
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts +86 -84
- package/dist/git/models/remoteProvider.js +145 -150
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts +58 -56
- package/dist/git/models/remoteResource.js +15 -12
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +144 -142
- package/dist/git/models/repository.js +358 -406
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts +8 -6
- package/dist/git/models/repositoryChangeEvent.js +26 -24
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts +50 -46
- package/dist/git/models/repositoryIdentities.js +7 -5
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts +9 -7
- package/dist/git/models/repositoryMetadata.js +0 -2
- package/dist/git/models/resourceDescriptor.d.ts +11 -9
- package/dist/git/models/resourceDescriptor.js +0 -2
- package/dist/git/models/revision.d.ts +2 -0
- package/dist/git/models/revision.js +8 -5
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts +48 -47
- package/dist/git/models/search.js +53 -49
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts +5 -3
- package/dist/git/models/shortlog.js +0 -2
- package/dist/git/models/signature.d.ts +28 -26
- package/dist/git/models/signature.js +0 -2
- package/dist/git/models/staging.d.ts +18 -16
- package/dist/git/models/staging.js +0 -2
- package/dist/git/models/stash.d.ts +5 -3
- package/dist/git/models/stash.js +0 -2
- package/dist/git/models/status.d.ts +51 -49
- package/dist/git/models/status.js +172 -205
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts +35 -34
- package/dist/git/models/statusFile.js +112 -125
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +34 -32
- package/dist/git/models/tag.js +64 -77
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts +8 -6
- package/dist/git/models/tree.js +0 -2
- package/dist/git/models/user.d.ts +6 -4
- package/dist/git/models/user.js +0 -2
- package/dist/git/models/worktree.d.ts +50 -48
- package/dist/git/models/worktree.js +102 -133
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts +7 -5
- package/dist/git/parsers/diffParser.js +438 -587
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts +3 -1
- package/dist/git/parsers/rebaseTodoParser.js +165 -208
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts +12 -10
- package/dist/git/providers/blame.js +0 -2
- package/dist/git/providers/branches.d.ts +96 -94
- package/dist/git/providers/branches.js +0 -2
- package/dist/git/providers/commits.d.ts +105 -104
- package/dist/git/providers/commits.js +0 -2
- package/dist/git/providers/config.d.ts +80 -78
- package/dist/git/providers/config.js +0 -2
- package/dist/git/providers/contributors.d.ts +23 -21
- package/dist/git/providers/contributors.js +0 -2
- package/dist/git/providers/diff.d.ts +68 -66
- package/dist/git/providers/diff.js +0 -2
- package/dist/git/providers/graph.d.ts +73 -62
- package/dist/git/providers/graph.js +0 -2
- package/dist/git/providers/maintenance.d.ts +180 -178
- package/dist/git/providers/maintenance.js +0 -20
- package/dist/git/providers/operations.d.ts +114 -112
- package/dist/git/providers/operations.js +0 -2
- package/dist/git/providers/patch.d.ts +26 -24
- package/dist/git/providers/patch.js +0 -2
- package/dist/git/providers/pausedOperations.d.ts +19 -17
- package/dist/git/providers/pausedOperations.js +0 -2
- package/dist/git/providers/provider.d.ts +52 -50
- package/dist/git/providers/provider.js +0 -2
- package/dist/git/providers/refs.d.ts +42 -40
- package/dist/git/providers/refs.js +0 -2
- package/dist/git/providers/remotes.d.ts +24 -22
- package/dist/git/providers/remotes.js +0 -2
- package/dist/git/providers/revision.d.ts +25 -23
- package/dist/git/providers/revision.js +0 -2
- package/dist/git/providers/shared/remotes.d.ts +24 -22
- package/dist/git/providers/shared/remotes.js +52 -77
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts +37 -35
- package/dist/git/providers/staging.js +0 -2
- package/dist/git/providers/stash.d.ts +38 -36
- package/dist/git/providers/stash.js +0 -2
- package/dist/git/providers/status.d.ts +32 -30
- package/dist/git/providers/status.js +0 -2
- package/dist/git/providers/tags.d.ts +20 -18
- package/dist/git/providers/tags.js +0 -2
- package/dist/git/providers/types.d.ts +19 -17
- package/dist/git/providers/types.js +0 -2
- package/dist/git/providers/worktrees.d.ts +26 -24
- package/dist/git/providers/worktrees.js +0 -2
- package/dist/git/remotes/azure-devops.d.ts +46 -45
- package/dist/git/remotes/azure-devops.js +252 -257
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts +30 -29
- package/dist/git/remotes/bitbucket-server.js +141 -142
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts +27 -26
- package/dist/git/remotes/bitbucket.js +114 -111
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts +26 -25
- package/dist/git/remotes/custom.js +130 -130
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts +29 -28
- package/dist/git/remotes/gerrit.js +140 -143
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts +28 -27
- package/dist/git/remotes/gitea.js +141 -145
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts +35 -34
- package/dist/git/remotes/github.js +196 -190
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts +31 -30
- package/dist/git/remotes/gitlab.js +245 -227
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts +16 -14
- package/dist/git/remotes/google-source.js +33 -31
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts +16 -14
- package/dist/git/remotes/matcher.js +141 -124
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/repositoryService.d.ts +47 -47
- package/dist/git/repositoryService.js +47 -44
- package/dist/git/repositoryService.js.map +1 -1
- package/dist/git/run.types.d.ts +91 -76
- package/dist/git/run.types.js +0 -2
- package/dist/git/service.d.ts +73 -71
- package/dist/git/service.js +286 -302
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts +4 -2
- package/dist/git/utils/autolink.utils.js +103 -139
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts +22 -20
- package/dist/git/utils/blame.utils.js +196 -230
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts +7 -9
- package/dist/git/utils/branch.utils.js +89 -115
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts +10 -16
- package/dist/git/utils/commit.utils.js +28 -47
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/config.utils.d.ts +2 -0
- package/dist/git/utils/config.utils.js +14 -5
- package/dist/git/utils/config.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts +16 -13
- package/dist/git/utils/conflictResolution.utils.js +116 -113
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +10 -8
- package/dist/git/utils/contributor.utils.js +47 -69
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts +2 -0
- package/dist/git/utils/fetch.utils.js +33 -44
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +22 -21
- package/dist/git/utils/fileStatus.utils.js +59 -45
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +19 -1
- package/dist/git/utils/graph.utils.js +60 -35
- package/dist/git/utils/graph.utils.js.map +1 -1
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +154 -158
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +23 -20
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts +4 -1
- package/dist/git/utils/mergeConflicts.utils.js +28 -15
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +7 -42
- package/dist/git/utils/pausedOperationStatus.utils.js +83 -146
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +7 -5
- package/dist/git/utils/pullRequest.utils.js +180 -187
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +6 -6
- package/dist/git/utils/reachability.utils.js +120 -147
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts +3 -1
- package/dist/git/utils/rebase.utils.js +87 -71
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +33 -32
- package/dist/git/utils/reference.utils.js +152 -179
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts +5 -3
- package/dist/git/utils/remote.utils.js +77 -116
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts +3 -1
- package/dist/git/utils/repository.utils.js +12 -11
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts +3 -1
- package/dist/git/utils/resourceDescriptor.utils.js +8 -14
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts +11 -10
- package/dist/git/utils/revision.utils.js +69 -83
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts +5 -3
- package/dist/git/utils/search.utils.js +383 -522
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts +22 -20
- package/dist/git/utils/sorting.js +133 -227
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +2 -0
- package/dist/git/utils/sshKey.utils.js +10 -15
- package/dist/git/utils/sshKey.utils.js.map +1 -1
- package/dist/git/utils/status.utils.d.ts +20 -15
- package/dist/git/utils/status.utils.js +93 -79
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts +6 -4
- package/dist/git/utils/statusFile.utils.js +71 -72
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts +4 -2
- package/dist/git/utils/tag.utils.js +10 -8
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts +5 -2
- package/dist/git/utils/tooltip.utils.js +49 -24
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts +9 -7
- package/dist/git/utils/uriAuthority.js +19 -16
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts +3 -1
- package/dist/git/utils/user.utils.js +6 -10
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts +5 -3
- package/dist/git/utils/worktree.utils.js +14 -12
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts +38 -36
- package/dist/git/watching/changeEvent.js +60 -67
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts +3 -1
- package/dist/git/watching/classifyChange.js +50 -79
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +43 -41
- package/dist/git/watching/gitIgnoreFilter.js +92 -107
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts +22 -20
- package/dist/git/watching/initWatcher.js +58 -57
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts +8 -7
- package/dist/git/watching/provider.js +0 -2
- package/dist/git/watching/watchGroup.d.ts +29 -28
- package/dist/git/watching/watchGroup.js +105 -137
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +70 -68
- package/dist/git/watching/watchService.js +275 -339
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +112 -111
- package/dist/git/watching/watchSession.js +260 -314
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +4 -2
- package/dist/git/watching/watcherPatterns.js +21 -24
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +117 -114
- package/dist/git-cli/cliGitProvider.js +261 -283
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/eventLoopMonitor.d.ts +26 -0
- package/dist/git-cli/exec/eventLoopMonitor.js +61 -0
- package/dist/git-cli/exec/eventLoopMonitor.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +3 -4
- package/dist/git-cli/exec/exec.errors.d.ts +2 -2
- package/dist/git-cli/exec/exec.errors.js +2 -2
- package/dist/git-cli/exec/exec.js +3 -3
- package/dist/git-cli/exec/exec.types.d.ts +2 -2
- package/dist/git-cli/exec/exec.types.js +0 -2
- package/dist/git-cli/exec/features.d.ts +2 -3
- package/dist/git-cli/exec/features.js +2 -2
- package/dist/git-cli/exec/git.d.ts +224 -205
- package/dist/git-cli/exec/git.js +834 -1042
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts +51 -48
- package/dist/git-cli/exec/gitQueue.js +225 -260
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts +8 -6
- package/dist/git-cli/exec/locator.js +95 -121
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts +22 -20
- package/dist/git-cli/parsers/blameParser.js +238 -332
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts +3 -1
- package/dist/git-cli/parsers/indexParser.js +146 -221
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +103 -110
- package/dist/git-cli/parsers/logParser.js +998 -1199
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +5 -3
- package/dist/git-cli/parsers/mergeTreeParser.js +28 -72
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts +5 -4
- package/dist/git-cli/parsers/refParser.js +92 -137
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts +7 -6
- package/dist/git-cli/parsers/reflogParser.js +100 -173
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -2
- package/dist/git-cli/parsers/remoteParser.js +74 -126
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -2
- package/dist/git-cli/parsers/shortlogParser.js +44 -49
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts +3 -1
- package/dist/git-cli/parsers/signatureParser.js +82 -124
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +5 -3
- package/dist/git-cli/parsers/sshSignatureParser.js +55 -64
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +4 -2
- package/dist/git-cli/parsers/statusParser.js +148 -205
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts +3 -1
- package/dist/git-cli/parsers/treeParser.js +57 -108
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts +4 -3
- package/dist/git-cli/parsers/worktreeParser.js +76 -132
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts +25 -23
- package/dist/git-cli/providers/blame.js +404 -413
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +117 -116
- package/dist/git-cli/providers/branches.js +1132 -1468
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -2
- package/dist/git-cli/providers/commitFilesetUtils.js +36 -18
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +58 -56
- package/dist/git-cli/providers/commits.js +1084 -1423
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +129 -127
- package/dist/git-cli/providers/config.js +612 -831
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts +29 -28
- package/dist/git-cli/providers/contributors.js +246 -351
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts +97 -94
- package/dist/git-cli/providers/diff.js +638 -845
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +66 -68
- package/dist/git-cli/providers/graph.js +1400 -1848
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/maintenance.d.ts +305 -303
- package/dist/git-cli/providers/maintenance.js +1526 -2078
- package/dist/git-cli/providers/maintenance.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts +96 -94
- package/dist/git-cli/providers/operations.js +664 -724
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts +37 -35
- package/dist/git-cli/providers/patch.js +206 -307
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts +30 -28
- package/dist/git-cli/providers/pausedOperations.js +475 -506
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts +50 -48
- package/dist/git-cli/providers/refs.js +335 -479
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts +23 -21
- package/dist/git-cli/providers/remotes.js +71 -92
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +27 -25
- package/dist/git-cli/providers/revision.js +288 -304
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +31 -29
- package/dist/git-cli/providers/staging.js +140 -189
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts +44 -42
- package/dist/git-cli/providers/stash.js +288 -387
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +61 -59
- package/dist/git-cli/providers/status.js +332 -453
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts +31 -29
- package/dist/git-cli/providers/tags.js +158 -215
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +35 -33
- package/dist/git-cli/providers/worktrees.js +178 -203
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts +28 -26
- package/dist/git-cli/service.js +38 -40
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/discovery.d.ts +19 -17
- package/dist/ipc/discovery.js +104 -128
- package/dist/ipc/discovery.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts +16 -14
- package/dist/ipc/ipcServer.js +139 -160
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/agentCapabilities.d.ts +50 -37
- package/dist/plus/agents/agentCapabilities.js +138 -173
- package/dist/plus/agents/agentCapabilities.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +153 -151
- package/dist/plus/agents/providers/claudeCodeTranscript.js +605 -679
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts +237 -240
- package/dist/plus/agents/providers/gkAgentProvider.js +2162 -3334
- package/dist/plus/agents/providers/gkAgentProvider.js.map +1 -1
- package/dist/plus/agents/sanitizePrompt.d.ts +2 -0
- package/dist/plus/agents/sanitizePrompt.js +58 -91
- package/dist/plus/agents/sanitizePrompt.js.map +1 -1
- package/dist/plus/agents/stateMachine.d.ts +7 -5
- package/dist/plus/agents/stateMachine.js +135 -163
- package/dist/plus/agents/stateMachine.js.map +1 -1
- package/dist/plus/agents/types.d.ts +333 -336
- package/dist/plus/agents/types.js +48 -48
- package/dist/plus/agents/types.js.map +1 -1
- package/dist/plus/ai/constants.d.ts +3 -1
- package/dist/plus/ai/constants.js +88 -84
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts +22 -18
- package/dist/plus/ai/errors.js +158 -138
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts +11 -9
- package/dist/plus/ai/models/conversation.js +30 -26
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +29 -27
- package/dist/plus/ai/models/model.js +663 -471
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +56 -55
- package/dist/plus/ai/models/promptTemplates.js +0 -2
- package/dist/plus/ai/models/provider.d.ts +79 -77
- package/dist/plus/ai/models/provider.js +0 -2
- package/dist/plus/ai/models/results.d.ts +27 -21
- package/dist/plus/ai/models/results.js +0 -2
- package/dist/plus/ai/prompts.d.ts +4 -2
- package/dist/plus/ai/prompts.js +301 -190
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +33 -32
- package/dist/plus/ai/providers/anthropicProvider.js +484 -381
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -16
- package/dist/plus/ai/providers/azureProvider.js +53 -53
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts +23 -20
- package/dist/plus/ai/providers/context.js +0 -2
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +17 -15
- package/dist/plus/ai/providers/deepSeekProvider.js +45 -39
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/geminiProvider.js +316 -230
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +22 -20
- package/dist/plus/ai/providers/gitkrakenProvider.js +165 -260
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +16 -14
- package/dist/plus/ai/providers/huggingFaceProvider.js +45 -46
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts +22 -20
- package/dist/plus/ai/providers/mistralProvider.js +263 -195
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts +26 -24
- package/dist/plus/ai/providers/ollamaProvider.js +156 -189
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +18 -16
- package/dist/plus/ai/providers/openAICompatibleProvider.js +50 -50
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +187 -185
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +356 -475
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts +20 -19
- package/dist/plus/ai/providers/openRouterProvider.js +60 -65
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts +17 -15
- package/dist/plus/ai/providers/openaiProvider.js +35 -34
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts +4 -2
- package/dist/plus/ai/providers/responseFormatCache.js +21 -17
- package/dist/plus/ai/providers/responseFormatCache.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/xaiProvider.js +61 -46
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts +4 -2
- package/dist/plus/ai/utils/ai.utils.js +50 -77
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +7 -5
- package/dist/plus/ai/utils/results.utils.js +235 -269
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +3 -2
- package/dist/plus/ai/utils/truncation.utils.js +242 -205
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts +58 -56
- package/dist/plus/git-github/api/config.js +15 -11
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +500 -497
- package/dist/plus/git-github/api/github.js +2326 -3121
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts +5 -3
- package/dist/plus/git-github/api/github.utils.js +24 -19
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts +5 -3
- package/dist/plus/git-github/api/issueSearchQuery.js +204 -221
- package/dist/plus/git-github/api/issueSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts +6 -5
- package/dist/plus/git-github/api/pullRequestSearchQuery.js +89 -116
- package/dist/plus/git-github/api/pullRequestSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts +10 -8
- package/dist/plus/git-github/api/token.js +0 -2
- package/dist/plus/git-github/api/tokenUtils.d.ts +4 -2
- package/dist/plus/git-github/api/tokenUtils.js +14 -10
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts +94 -92
- package/dist/plus/git-github/api/types.js +0 -2
- package/dist/plus/git-github/context.d.ts +65 -63
- package/dist/plus/git-github/context.js +13 -9
- package/dist/plus/git-github/context.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +182 -182
- package/dist/plus/git-github/models.js +199 -265
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts +32 -31
- package/dist/plus/git-github/providers/github/blame.js +137 -150
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +42 -40
- package/dist/plus/git-github/providers/github/branches.js +199 -274
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts +35 -33
- package/dist/plus/git-github/providers/github/commits.js +527 -606
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts +10 -8
- package/dist/plus/git-github/providers/github/config.js +35 -45
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts +25 -24
- package/dist/plus/git-github/providers/github/contributors.js +174 -216
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts +34 -32
- package/dist/plus/git-github/providers/github/diff.js +154 -194
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +33 -31
- package/dist/plus/git-github/providers/github/graph.js +400 -452
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts +33 -31
- package/dist/plus/git-github/providers/github/refs.js +97 -131
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts +8 -6
- package/dist/plus/git-github/providers/github/remotes.js +30 -35
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +13 -11
- package/dist/plus/git-github/providers/github/revision.js +106 -129
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts +24 -22
- package/dist/plus/git-github/providers/github/status.js +49 -47
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts +21 -19
- package/dist/plus/git-github/providers/github/tags.js +78 -103
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +67 -64
- package/dist/plus/git-github/providers/githubGitProvider.js +131 -128
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts +46 -44
- package/dist/plus/git-github/providers/githubProvider.js +0 -2
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +29 -27
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +173 -208
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +126 -107
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +399 -497
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +73 -72
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +153 -232
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +61 -59
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +100 -124
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +14 -12
- package/dist/plus/integrations/authentication/manualTokenProvider.js +26 -51
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +102 -85
- package/dist/plus/integrations/authentication/models.js +55 -54
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +19 -17
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -51
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +12 -10
- package/dist/plus/integrations/collectionMetadata.js +204 -254
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/constants.d.ts +60 -34
- package/dist/plus/integrations/constants.js +157 -132
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +253 -252
- package/dist/plus/integrations/context.js +0 -2
- package/dist/plus/integrations/errors.d.ts +26 -25
- package/dist/plus/integrations/errors.js +116 -140
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +36 -40
- package/dist/plus/integrations/index.js +46 -57
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +445 -440
- package/dist/plus/integrations/integrationService.js +1054 -1324
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +33 -31
- package/dist/plus/integrations/lite.js +84 -122
- package/dist/plus/integrations/lite.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +592 -580
- package/dist/plus/integrations/manager.js +0 -2
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +420 -415
- package/dist/plus/integrations/models/gitHostIntegration.js +1180 -1293
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +200 -190
- package/dist/plus/integrations/models/integration.js +577 -722
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issueCache.d.ts +15 -13
- package/dist/plus/integrations/models/issueCache.js +9 -7
- package/dist/plus/integrations/models/issueCache.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +108 -85
- package/dist/plus/integrations/models/issueReads.js +0 -2
- package/dist/plus/integrations/models/issuesIntegration.d.ts +72 -71
- package/dist/plus/integrations/models/issuesIntegration.js +160 -186
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts +9 -7
- package/dist/plus/integrations/models/pullRequestReads.js +0 -2
- package/dist/plus/integrations/providerFilters.d.ts +8 -20
- package/dist/plus/integrations/providerFilters.js +11 -7
- package/dist/plus/integrations/providerFilters.js.map +1 -1
- package/dist/plus/integrations/providers/accounts.d.ts +7 -5
- package/dist/plus/integrations/providers/accounts.js +21 -31
- package/dist/plus/integrations/providers/accounts.js.map +1 -1
- package/dist/plus/integrations/providers/apiClients.d.ts +13 -10
- package/dist/plus/integrations/providers/apiClients.js +51 -36
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +31 -29
- package/dist/plus/integrations/providers/apiConfig.js +18 -16
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts +69 -67
- package/dist/plus/integrations/providers/azure/azure.js +452 -577
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +228 -226
- package/dist/plus/integrations/providers/azure/models.js +223 -251
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -131
- package/dist/plus/integrations/providers/azureDevOps.js +773 -931
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +50 -48
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +417 -585
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts +179 -179
- package/dist/plus/integrations/providers/bitbucket/models.js +96 -144
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +111 -109
- package/dist/plus/integrations/providers/bitbucket-server/models.js +102 -121
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +79 -79
- package/dist/plus/integrations/providers/bitbucket-server.js +205 -241
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +80 -79
- package/dist/plus/integrations/providers/bitbucket.js +390 -477
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts +5 -3
- package/dist/plus/integrations/providers/github/github.js +38 -45
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts +8 -5
- package/dist/plus/integrations/providers/github/github.utils.js +7 -4
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts +2 -3
- package/dist/plus/integrations/providers/github/models.js +2 -2
- package/dist/plus/integrations/providers/github.d.ts +174 -172
- package/dist/plus/integrations/providers/github.js +431 -523
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +67 -66
- package/dist/plus/integrations/providers/gitlab/gitlab.js +546 -757
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +45 -46
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +109 -107
- package/dist/plus/integrations/providers/gitlab/models.js +74 -89
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +115 -114
- package/dist/plus/integrations/providers/gitlab.js +440 -528
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +3 -1
- package/dist/plus/integrations/providers/issueSorts.js +66 -62
- package/dist/plus/integrations/providers/issueSorts.js.map +1 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +90 -0
- package/dist/plus/integrations/providers/jira-server.js +322 -0
- package/dist/plus/integrations/providers/jira-server.js.map +1 -0
- package/dist/plus/integrations/providers/jira.d.ts +41 -39
- package/dist/plus/integrations/providers/jira.js +378 -440
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +85 -89
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +63 -62
- package/dist/plus/integrations/providers/linear.js +315 -358
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +514 -503
- package/dist/plus/integrations/providers/models.js +816 -865
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts +35 -2
- package/dist/plus/integrations/providers/providerErrors.js +120 -81
- package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +299 -271
- package/dist/plus/integrations/providers/providersApi.js +1048 -1001
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts +21 -21
- package/dist/plus/integrations/providers/pullRequestReviews.js +64 -90
- package/dist/plus/integrations/providers/pullRequestReviews.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +35 -34
- package/dist/plus/integrations/providers/trello.js +136 -143
- package/dist/plus/integrations/providers/trello.js.map +1 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +4 -2
- package/dist/plus/integrations/providers/utils/providerPaging.js +131 -156
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -1
- package/dist/plus/integrations/providers/utils.d.ts +51 -50
- package/dist/plus/integrations/providers/utils.js +185 -296
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/broaden.d.ts +10 -8
- package/dist/plus/integrations/reads/broaden.js +320 -439
- package/dist/plus/integrations/reads/broaden.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +47 -45
- package/dist/plus/integrations/reads/context.js +0 -2
- package/dist/plus/integrations/reads/counts.d.ts +74 -72
- package/dist/plus/integrations/reads/counts.js +233 -314
- package/dist/plus/integrations/reads/counts.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +26 -24
- package/dist/plus/integrations/reads/cursors.js +80 -115
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +24 -23
- package/dist/plus/integrations/reads/drains.js +225 -298
- package/dist/plus/integrations/reads/drains.js.map +1 -1
- package/dist/plus/integrations/reads/filters.d.ts +84 -80
- package/dist/plus/integrations/reads/filters.js +326 -414
- package/dist/plus/integrations/reads/filters.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +14 -12
- package/dist/plus/integrations/reads/hierarchy.js +248 -332
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +11 -9
- package/dist/plus/integrations/reads/hierarchy.utils.js +109 -108
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts +28 -26
- package/dist/plus/integrations/reads/issueBatch.js +83 -85
- package/dist/plus/integrations/reads/issueBatch.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +42 -33
- package/dist/plus/integrations/reads/issueTracker.js +265 -386
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.d.ts +50 -47
- package/dist/plus/integrations/reads/issues.js +202 -331
- package/dist/plus/integrations/reads/issues.js.map +1 -1
- package/dist/plus/integrations/reads/ordering.d.ts +32 -30
- package/dist/plus/integrations/reads/ordering.js +47 -43
- package/dist/plus/integrations/reads/ordering.js.map +1 -1
- package/dist/plus/integrations/reads/paging.d.ts +59 -57
- package/dist/plus/integrations/reads/paging.js +244 -261
- package/dist/plus/integrations/reads/paging.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts +37 -35
- package/dist/plus/integrations/reads/pullRequests.js +95 -148
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts +15 -13
- package/dist/plus/integrations/reads/resolveRepository.js +147 -231
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts +29 -27
- package/dist/plus/integrations/reads/searchIssues.js +104 -153
- package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts +20 -18
- package/dist/plus/integrations/reads/searchPullRequests.js +91 -113
- package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/sweeps.d.ts +6 -4
- package/dist/plus/integrations/reads/sweeps.js +143 -178
- package/dist/plus/integrations/reads/sweeps.js.map +1 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts +24 -16
- package/dist/plus/integrations/reads/trackerIssue.js +52 -49
- package/dist/plus/integrations/reads/trackerIssue.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.d.ts +10 -7
- package/dist/plus/integrations/reads/warnings.js +264 -291
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +201 -199
- package/dist/plus/integrations/results.js +105 -119
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/telemetry.d.ts +7 -5
- package/dist/plus/integrations/telemetry.js +9 -9
- package/dist/plus/integrations/telemetry.js.map +1 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts +21 -0
- package/dist/plus/integrations/utils/domain.utils.js +55 -22
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +30 -6
- package/dist/plus/integrations/utils/integration.utils.js +154 -161
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts +9 -7
- package/dist/utils/array.js +110 -126
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/base64.js +2 -2
- package/dist/utils/brand.d.ts +4 -3
- package/dist/utils/brand.js +0 -2
- package/dist/utils/cancellation.d.ts +24 -24
- package/dist/utils/cancellation.js +152 -167
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts +31 -37
- package/dist/utils/charCode.js +41 -37
- package/dist/utils/charCode.js.map +1 -1
- package/dist/utils/coalescedRun.d.ts +10 -8
- package/dist/utils/coalescedRun.js +39 -41
- package/dist/utils/coalescedRun.js.map +1 -1
- package/dist/utils/color.d.ts +137 -135
- package/dist/utils/color.js +535 -660
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/counter.d.ts +5 -3
- package/dist/utils/counter.js +19 -17
- package/dist/utils/counter.js.map +1 -1
- package/dist/utils/crypto.d.ts +2 -2
- package/dist/utils/crypto.js +2 -2
- package/dist/utils/date.d.ts +10 -9
- package/dist/utils/date.js +312 -350
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.d.ts +45 -43
- package/dist/utils/debounce.js +175 -206
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts +3 -1
- package/dist/utils/decorators/debounce.js +16 -19
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts +13 -11
- package/dist/utils/decorators/gate.js +97 -124
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts +25 -24
- package/dist/utils/decorators/log.js +166 -227
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts +10 -8
- package/dist/utils/decorators/memoize.js +49 -57
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts +2 -0
- package/dist/utils/decorators/resolver.js +64 -75
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts +15 -14
- package/dist/utils/decorators/sequentialize.js +61 -80
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts +2 -0
- package/dist/utils/decorators/serializable.js +30 -39
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts +23 -21
- package/dist/utils/dedupedAsyncCache.js +63 -66
- package/dist/utils/dedupedAsyncCache.js.map +1 -1
- package/dist/utils/diff.d.ts +2 -0
- package/dist/utils/diff.js +41 -51
- package/dist/utils/diff.js.map +1 -1
- package/dist/utils/disposable.d.ts +15 -13
- package/dist/utils/disposable.js +71 -80
- package/dist/utils/disposable.js.map +1 -1
- package/dist/utils/dom.d.ts +45 -0
- package/dist/utils/dom.js +106 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/encoding.d.ts +2 -0
- package/dist/utils/encoding.js +7 -5
- package/dist/utils/encoding.js.map +1 -1
- package/dist/utils/env/browser/base64.d.ts +2 -0
- package/dist/utils/env/browser/base64.js +32 -34
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts +2 -0
- package/dist/utils/env/browser/crypto.js +17 -13
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.js +6 -2
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts +2 -0
- package/dist/utils/env/browser/hex.js +271 -29
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.js +17 -13
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts +3 -1
- package/dist/utils/env/browser/logScope.js +39 -43
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.js +211 -184
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts +3 -0
- package/dist/utils/env/browser/platform.js +11 -4
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts +2 -0
- package/dist/utils/env/node/base64.js +13 -11
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts +2 -0
- package/dist/utils/env/node/crypto.js +13 -9
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +66 -65
- package/dist/utils/env/node/exec.js +255 -267
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.js +7 -3
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts +2 -0
- package/dist/utils/env/node/hex.js +10 -6
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts +2 -2
- package/dist/utils/env/node/hrtime.js +2 -2
- package/dist/utils/env/node/logScope.d.ts +3 -1
- package/dist/utils/env/node/logScope.js +52 -42
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts +3 -0
- package/dist/utils/env/node/platform.js +11 -4
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/error.d.ts +8 -6
- package/dist/utils/error.js +16 -14
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/event.d.ts +27 -25
- package/dist/utils/event.js +141 -170
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts +15 -14
- package/dist/utils/formatter.js +96 -129
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/fs.d.ts +2 -2
- package/dist/utils/fs.js +2 -2
- package/dist/utils/function.d.ts +5 -6
- package/dist/utils/function.js +73 -90
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/fuzzy.d.ts +18 -16
- package/dist/utils/fuzzy.js +121 -127
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/gitRefs.d.ts +11 -0
- package/dist/utils/gitRefs.js +21 -0
- package/dist/utils/gitRefs.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +49 -47
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/hex.d.ts +2 -2
- package/dist/utils/hex.js +2 -2
- package/dist/utils/hostingServiceType.d.ts +8 -0
- package/dist/utils/hostingServiceType.js +0 -0
- package/dist/utils/hrtime.d.ts +4 -2
- package/dist/utils/hrtime.js +8 -5
- package/dist/utils/hrtime.js.map +1 -1
- package/dist/utils/iterable.d.ts +3 -1
- package/dist/utils/iterable.js +591 -616
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/keys/chord.d.ts +27 -25
- package/dist/utils/keys/chord.js +108 -122
- package/dist/utils/keys/chord.js.map +1 -1
- package/dist/utils/keys/keybinding.d.ts +98 -22
- package/dist/utils/keys/keybinding.js +151 -53
- package/dist/utils/keys/keybinding.js.map +1 -1
- package/dist/utils/keys/keymapDispatcher.d.ts +66 -0
- package/dist/utils/keys/keymapDispatcher.js +187 -0
- package/dist/utils/keys/keymapDispatcher.js.map +1 -0
- package/dist/utils/lazy.d.ts +14 -12
- package/dist/utils/lazy.js +35 -36
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/loggable.d.ts +3 -1
- package/dist/utils/loggable.js +6 -2
- package/dist/utils/loggable.js.map +1 -1
- package/dist/utils/logger.d.ts +48 -46
- package/dist/utils/logger.js +219 -304
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.d.ts +30 -28
- package/dist/utils/logger.scoped.js +133 -147
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts +34 -32
- package/dist/utils/lruMap.js +97 -101
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/markdown.d.ts +5 -3
- package/dist/utils/markdown.js +52 -88
- package/dist/utils/markdown.js.map +1 -1
- package/dist/utils/mru.d.ts +13 -11
- package/dist/utils/mru.js +57 -62
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.d.ts +9 -34
- package/dist/utils/object.js +132 -191
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +36 -34
- package/dist/utils/paging.js +42 -45
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.d.ts +4 -1
- package/dist/utils/path.js +129 -162
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/pausedOperation.d.ts +42 -0
- package/dist/utils/pausedOperation.js +62 -0
- package/dist/utils/pausedOperation.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/platform.js +2 -2
- package/dist/utils/plural.d.ts +21 -0
- package/dist/utils/plural.js +136 -0
- package/dist/utils/plural.js.map +1 -0
- package/dist/utils/promise.d.ts +19 -18
- package/dist/utils/promise.js +323 -360
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +331 -330
- package/dist/utils/promiseCache.js +602 -717
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/resourceUsage.d.ts +2 -0
- package/dist/utils/resourceUsage.js +0 -2
- package/dist/utils/searchTree.d.ts +51 -49
- package/dist/utils/searchTree.js +306 -396
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts +33 -32
- package/dist/utils/stopwatch.js +67 -81
- package/dist/utils/stopwatch.js.map +1 -1
- package/dist/utils/string.d.ts +17 -24
- package/dist/utils/string.js +787 -803
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts +15 -14
- package/dist/utils/subscriptionManager.js +36 -33
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts +64 -62
- package/dist/utils/trie.js +438 -580
- package/dist/utils/trie.js.map +1 -1
- package/dist/utils/types.d.ts +8 -16
- package/dist/utils/types.js +0 -2
- package/dist/utils/uri.d.ts +27 -25
- package/dist/utils/uri.js +42 -42
- package/dist/utils/uri.js.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.js +17 -23
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/version.d.ts +6 -5
- package/dist/utils/version.js +77 -104
- package/dist/utils/version.js.map +1 -1
- package/docs/integrations.md +70 -26
- package/package.json +18 -8
- package/dist/git/cache.d.ts.map +0 -1
- package/dist/git/context.d.ts.map +0 -1
- package/dist/git/errors.d.ts.map +0 -1
- package/dist/git/features.d.ts.map +0 -1
- package/dist/git/gitHealth.d.ts.map +0 -1
- package/dist/git/models/author.d.ts.map +0 -1
- package/dist/git/models/author.js.map +0 -1
- package/dist/git/models/autolink.d.ts.map +0 -1
- package/dist/git/models/autolink.js.map +0 -1
- package/dist/git/models/blame.d.ts.map +0 -1
- package/dist/git/models/blame.js.map +0 -1
- package/dist/git/models/branch.d.ts.map +0 -1
- package/dist/git/models/commit.d.ts.map +0 -1
- package/dist/git/models/contributor.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.js.map +0 -1
- package/dist/git/models/diff.d.ts.map +0 -1
- package/dist/git/models/diff.js.map +0 -1
- package/dist/git/models/file.d.ts.map +0 -1
- package/dist/git/models/file.js.map +0 -1
- package/dist/git/models/fileChange.d.ts.map +0 -1
- package/dist/git/models/fileStatus.d.ts.map +0 -1
- package/dist/git/models/graph.d.ts.map +0 -1
- package/dist/git/models/graphSearch.d.ts.map +0 -1
- package/dist/git/models/graphSearch.js.map +0 -1
- package/dist/git/models/graphSession.d.ts.map +0 -1
- package/dist/git/models/issue.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.js.map +0 -1
- package/dist/git/models/lineRange.d.ts.map +0 -1
- package/dist/git/models/lineRange.js.map +0 -1
- package/dist/git/models/log.d.ts.map +0 -1
- package/dist/git/models/log.js.map +0 -1
- package/dist/git/models/mergeConflicts.d.ts.map +0 -1
- package/dist/git/models/mergeConflicts.js.map +0 -1
- package/dist/git/models/patch.d.ts.map +0 -1
- package/dist/git/models/patch.js.map +0 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +0 -1
- package/dist/git/models/pausedOperationStatus.js.map +0 -1
- package/dist/git/models/pullRequest.d.ts.map +0 -1
- package/dist/git/models/rebase.d.ts.map +0 -1
- package/dist/git/models/rebase.js.map +0 -1
- package/dist/git/models/reference.d.ts.map +0 -1
- package/dist/git/models/reference.js.map +0 -1
- package/dist/git/models/reflog.d.ts.map +0 -1
- package/dist/git/models/remote.d.ts.map +0 -1
- package/dist/git/models/remoteProvider.d.ts.map +0 -1
- package/dist/git/models/remoteResource.d.ts.map +0 -1
- package/dist/git/models/repository.d.ts.map +0 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +0 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.js.map +0 -1
- package/dist/git/models/resourceDescriptor.d.ts.map +0 -1
- package/dist/git/models/resourceDescriptor.js.map +0 -1
- package/dist/git/models/revision.d.ts.map +0 -1
- package/dist/git/models/search.d.ts.map +0 -1
- package/dist/git/models/shortlog.d.ts.map +0 -1
- package/dist/git/models/shortlog.js.map +0 -1
- package/dist/git/models/signature.d.ts.map +0 -1
- package/dist/git/models/signature.js.map +0 -1
- package/dist/git/models/staging.d.ts.map +0 -1
- package/dist/git/models/staging.js.map +0 -1
- package/dist/git/models/stash.d.ts.map +0 -1
- package/dist/git/models/stash.js.map +0 -1
- package/dist/git/models/status.d.ts.map +0 -1
- package/dist/git/models/statusFile.d.ts.map +0 -1
- package/dist/git/models/tag.d.ts.map +0 -1
- package/dist/git/models/tree.d.ts.map +0 -1
- package/dist/git/models/tree.js.map +0 -1
- package/dist/git/models/user.d.ts.map +0 -1
- package/dist/git/models/user.js.map +0 -1
- package/dist/git/models/worktree.d.ts.map +0 -1
- package/dist/git/parsers/diffParser.d.ts.map +0 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +0 -1
- package/dist/git/providers/blame.d.ts.map +0 -1
- package/dist/git/providers/blame.js.map +0 -1
- package/dist/git/providers/branches.d.ts.map +0 -1
- package/dist/git/providers/branches.js.map +0 -1
- package/dist/git/providers/commits.d.ts.map +0 -1
- package/dist/git/providers/commits.js.map +0 -1
- package/dist/git/providers/config.d.ts.map +0 -1
- package/dist/git/providers/config.js.map +0 -1
- package/dist/git/providers/contributors.d.ts.map +0 -1
- package/dist/git/providers/contributors.js.map +0 -1
- package/dist/git/providers/diff.d.ts.map +0 -1
- package/dist/git/providers/diff.js.map +0 -1
- package/dist/git/providers/graph.d.ts.map +0 -1
- package/dist/git/providers/graph.js.map +0 -1
- package/dist/git/providers/maintenance.d.ts.map +0 -1
- package/dist/git/providers/maintenance.js.map +0 -1
- package/dist/git/providers/operations.d.ts.map +0 -1
- package/dist/git/providers/operations.js.map +0 -1
- package/dist/git/providers/patch.d.ts.map +0 -1
- package/dist/git/providers/patch.js.map +0 -1
- package/dist/git/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git/providers/pausedOperations.js.map +0 -1
- package/dist/git/providers/provider.d.ts.map +0 -1
- package/dist/git/providers/provider.js.map +0 -1
- package/dist/git/providers/refs.d.ts.map +0 -1
- package/dist/git/providers/refs.js.map +0 -1
- package/dist/git/providers/remotes.d.ts.map +0 -1
- package/dist/git/providers/remotes.js.map +0 -1
- package/dist/git/providers/revision.d.ts.map +0 -1
- package/dist/git/providers/revision.js.map +0 -1
- package/dist/git/providers/shared/remotes.d.ts.map +0 -1
- package/dist/git/providers/staging.d.ts.map +0 -1
- package/dist/git/providers/staging.js.map +0 -1
- package/dist/git/providers/stash.d.ts.map +0 -1
- package/dist/git/providers/stash.js.map +0 -1
- package/dist/git/providers/status.d.ts.map +0 -1
- package/dist/git/providers/status.js.map +0 -1
- package/dist/git/providers/tags.d.ts.map +0 -1
- package/dist/git/providers/tags.js.map +0 -1
- package/dist/git/providers/types.d.ts.map +0 -1
- package/dist/git/providers/types.js.map +0 -1
- package/dist/git/providers/worktrees.d.ts.map +0 -1
- package/dist/git/providers/worktrees.js.map +0 -1
- package/dist/git/remotes/azure-devops.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket.d.ts.map +0 -1
- package/dist/git/remotes/custom.d.ts.map +0 -1
- package/dist/git/remotes/gerrit.d.ts.map +0 -1
- package/dist/git/remotes/gitea.d.ts.map +0 -1
- package/dist/git/remotes/github.d.ts.map +0 -1
- package/dist/git/remotes/gitlab.d.ts.map +0 -1
- package/dist/git/remotes/google-source.d.ts.map +0 -1
- package/dist/git/remotes/matcher.d.ts.map +0 -1
- package/dist/git/repositoryService.d.ts.map +0 -1
- package/dist/git/run.types.d.ts.map +0 -1
- package/dist/git/run.types.js.map +0 -1
- package/dist/git/service.d.ts.map +0 -1
- package/dist/git/utils/autolink.utils.d.ts.map +0 -1
- package/dist/git/utils/blame.utils.d.ts.map +0 -1
- package/dist/git/utils/branch.utils.d.ts.map +0 -1
- package/dist/git/utils/commit.utils.d.ts.map +0 -1
- package/dist/git/utils/config.utils.d.ts.map +0 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +0 -1
- package/dist/git/utils/contributor.utils.d.ts.map +0 -1
- package/dist/git/utils/fetch.utils.d.ts.map +0 -1
- package/dist/git/utils/fileStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/graph.utils.d.ts.map +0 -1
- package/dist/git/utils/issue.utils.d.ts.map +0 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +0 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/reachability.utils.d.ts.map +0 -1
- package/dist/git/utils/rebase.utils.d.ts.map +0 -1
- package/dist/git/utils/reference.utils.d.ts.map +0 -1
- package/dist/git/utils/remote.utils.d.ts.map +0 -1
- package/dist/git/utils/repository.utils.d.ts.map +0 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +0 -1
- package/dist/git/utils/revision.utils.d.ts.map +0 -1
- package/dist/git/utils/search.utils.d.ts.map +0 -1
- package/dist/git/utils/sorting.d.ts.map +0 -1
- package/dist/git/utils/sshKey.utils.d.ts.map +0 -1
- package/dist/git/utils/status.utils.d.ts.map +0 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +0 -1
- package/dist/git/utils/tag.utils.d.ts.map +0 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +0 -1
- package/dist/git/utils/uriAuthority.d.ts.map +0 -1
- package/dist/git/utils/user.utils.d.ts.map +0 -1
- package/dist/git/utils/worktree.utils.d.ts.map +0 -1
- package/dist/git/watching/changeEvent.d.ts.map +0 -1
- package/dist/git/watching/classifyChange.d.ts.map +0 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +0 -1
- package/dist/git/watching/initWatcher.d.ts.map +0 -1
- package/dist/git/watching/provider.d.ts.map +0 -1
- package/dist/git/watching/provider.js.map +0 -1
- package/dist/git/watching/watchGroup.d.ts.map +0 -1
- package/dist/git/watching/watchService.d.ts.map +0 -1
- package/dist/git/watching/watchSession.d.ts.map +0 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +0 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.js.map +0 -1
- package/dist/git-cli/exec/exec.js.map +0 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.types.js.map +0 -1
- package/dist/git-cli/exec/features.d.ts.map +0 -1
- package/dist/git-cli/exec/features.js.map +0 -1
- package/dist/git-cli/exec/git.d.ts.map +0 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +0 -1
- package/dist/git-cli/exec/locator.d.ts.map +0 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/statusParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +0 -1
- package/dist/git-cli/providers/blame.d.ts.map +0 -1
- package/dist/git-cli/providers/branches.d.ts.map +0 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +0 -1
- package/dist/git-cli/providers/commits.d.ts.map +0 -1
- package/dist/git-cli/providers/config.d.ts.map +0 -1
- package/dist/git-cli/providers/contributors.d.ts.map +0 -1
- package/dist/git-cli/providers/diff.d.ts.map +0 -1
- package/dist/git-cli/providers/graph.d.ts.map +0 -1
- package/dist/git-cli/providers/maintenance.d.ts.map +0 -1
- package/dist/git-cli/providers/operations.d.ts.map +0 -1
- package/dist/git-cli/providers/patch.d.ts.map +0 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git-cli/providers/refs.d.ts.map +0 -1
- package/dist/git-cli/providers/remotes.d.ts.map +0 -1
- package/dist/git-cli/providers/revision.d.ts.map +0 -1
- package/dist/git-cli/providers/staging.d.ts.map +0 -1
- package/dist/git-cli/providers/stash.d.ts.map +0 -1
- package/dist/git-cli/providers/status.d.ts.map +0 -1
- package/dist/git-cli/providers/tags.d.ts.map +0 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +0 -1
- package/dist/git-cli/service.d.ts.map +0 -1
- package/dist/ipc/discovery.d.ts.map +0 -1
- package/dist/ipc/ipcServer.d.ts.map +0 -1
- package/dist/plus/agents/agentCapabilities.d.ts.map +0 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +0 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts.map +0 -1
- package/dist/plus/agents/sanitizePrompt.d.ts.map +0 -1
- package/dist/plus/agents/stateMachine.d.ts.map +0 -1
- package/dist/plus/agents/types.d.ts.map +0 -1
- package/dist/plus/ai/constants.d.ts.map +0 -1
- package/dist/plus/ai/errors.d.ts.map +0 -1
- package/dist/plus/ai/models/conversation.d.ts.map +0 -1
- package/dist/plus/ai/models/model.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.js.map +0 -1
- package/dist/plus/ai/models/provider.d.ts.map +0 -1
- package/dist/plus/ai/models/provider.js.map +0 -1
- package/dist/plus/ai/models/results.d.ts.map +0 -1
- package/dist/plus/ai/models/results.js.map +0 -1
- package/dist/plus/ai/prompts.d.ts.map +0 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.js.map +0 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +0 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts.map +0 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/results.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/config.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.js.map +0 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.js.map +0 -1
- package/dist/plus/git-github/context.d.ts.map +0 -1
- package/dist/plus/git-github/models.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +0 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/models.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +0 -1
- package/dist/plus/integrations/collectionMetadata.d.ts.map +0 -1
- package/dist/plus/integrations/constants.d.ts.map +0 -1
- package/dist/plus/integrations/context.d.ts.map +0 -1
- package/dist/plus/integrations/context.js.map +0 -1
- package/dist/plus/integrations/errors.d.ts.map +0 -1
- package/dist/plus/integrations/index.d.ts.map +0 -1
- package/dist/plus/integrations/integrationService.d.ts.map +0 -1
- package/dist/plus/integrations/lite.d.ts.map +0 -1
- package/dist/plus/integrations/manager.d.ts.map +0 -1
- package/dist/plus/integrations/manager.js.map +0 -1
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/integration.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueCache.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.js.map +0 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.js.map +0 -1
- package/dist/plus/integrations/providerFilters.d.ts.map +0 -1
- package/dist/plus/integrations/providers/accounts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiClients.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.js.map +0 -1
- package/dist/plus/integrations/providers/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jira.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts.map +0 -1
- package/dist/plus/integrations/providers/linear.d.ts.map +0 -1
- package/dist/plus/integrations/providers/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providersApi.d.ts.map +0 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts.map +0 -1
- package/dist/plus/integrations/providers/trello.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/broaden.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.js.map +0 -1
- package/dist/plus/integrations/reads/counts.d.ts.map +0 -1
- package/dist/plus/integrations/reads/cursors.d.ts.map +0 -1
- package/dist/plus/integrations/reads/drains.d.ts.map +0 -1
- package/dist/plus/integrations/reads/filters.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/ordering.d.ts.map +0 -1
- package/dist/plus/integrations/reads/paging.d.ts.map +0 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/sweeps.d.ts.map +0 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts.map +0 -1
- package/dist/plus/integrations/reads/warnings.d.ts.map +0 -1
- package/dist/plus/integrations/results.d.ts.map +0 -1
- package/dist/plus/integrations/telemetry.d.ts.map +0 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +0 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +0 -1
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/base64.d.ts.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/brand.d.ts.map +0 -1
- package/dist/utils/brand.js.map +0 -1
- package/dist/utils/cancellation.d.ts.map +0 -1
- package/dist/utils/charCode.d.ts.map +0 -1
- package/dist/utils/coalescedRun.d.ts.map +0 -1
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/counter.d.ts.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/gate.d.ts.map +0 -1
- package/dist/utils/decorators/log.d.ts.map +0 -1
- package/dist/utils/decorators/memoize.d.ts.map +0 -1
- package/dist/utils/decorators/resolver.d.ts.map +0 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +0 -1
- package/dist/utils/decorators/serializable.d.ts.map +0 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +0 -1
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/disposable.d.ts.map +0 -1
- package/dist/utils/encoding.d.ts.map +0 -1
- package/dist/utils/env/browser/base64.d.ts.map +0 -1
- package/dist/utils/env/browser/crypto.d.ts.map +0 -1
- package/dist/utils/env/browser/fs.d.ts.map +0 -1
- package/dist/utils/env/browser/hex.d.ts.map +0 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +0 -1
- package/dist/utils/env/browser/logScope.d.ts.map +0 -1
- package/dist/utils/env/browser/md5.d.ts.map +0 -1
- package/dist/utils/env/browser/platform.d.ts.map +0 -1
- package/dist/utils/env/node/base64.d.ts.map +0 -1
- package/dist/utils/env/node/crypto.d.ts.map +0 -1
- package/dist/utils/env/node/exec.d.ts.map +0 -1
- package/dist/utils/env/node/fs.d.ts.map +0 -1
- package/dist/utils/env/node/hex.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.js.map +0 -1
- package/dist/utils/env/node/logScope.d.ts.map +0 -1
- package/dist/utils/env/node/platform.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/formatter.d.ts.map +0 -1
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/function.d.ts.map +0 -1
- package/dist/utils/fuzzy.d.ts.map +0 -1
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/hrtime.d.ts.map +0 -1
- package/dist/utils/iterable.d.ts.map +0 -1
- package/dist/utils/keys/chord.d.ts.map +0 -1
- package/dist/utils/keys/keybinding.d.ts.map +0 -1
- package/dist/utils/lazy.d.ts.map +0 -1
- package/dist/utils/loggable.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.scoped.d.ts.map +0 -1
- package/dist/utils/lruMap.d.ts.map +0 -1
- package/dist/utils/markdown.d.ts.map +0 -1
- package/dist/utils/mru.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/paging.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/promise.d.ts.map +0 -1
- package/dist/utils/promiseCache.d.ts.map +0 -1
- package/dist/utils/resourceUsage.d.ts.map +0 -1
- package/dist/utils/resourceUsage.js.map +0 -1
- package/dist/utils/searchTree.d.ts.map +0 -1
- package/dist/utils/stopwatch.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/subscriptionManager.d.ts.map +0 -1
- package/dist/utils/trie.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/uri.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/src/git/cache.ts +0 -1859
- package/src/git/context.ts +0 -301
- package/src/git/errors.ts +0 -1168
- package/src/git/features.ts +0 -98
- package/src/git/gitHealth.ts +0 -522
- package/src/git/models/author.ts +0 -19
- package/src/git/models/autolink.ts +0 -59
- package/src/git/models/blame.ts +0 -46
- package/src/git/models/branch.ts +0 -237
- package/src/git/models/commit.ts +0 -673
- package/src/git/models/contributor.ts +0 -84
- package/src/git/models/defaultBranch.ts +0 -6
- package/src/git/models/diff.ts +0 -74
- package/src/git/models/file.ts +0 -29
- package/src/git/models/fileChange.ts +0 -82
- package/src/git/models/fileStatus.ts +0 -36
- package/src/git/models/graph.ts +0 -444
- package/src/git/models/graphSearch.ts +0 -53
- package/src/git/models/graphSession.ts +0 -102
- package/src/git/models/issue.ts +0 -273
- package/src/git/models/issueOrPullRequest.ts +0 -20
- package/src/git/models/lineRange.ts +0 -7
- package/src/git/models/log.ts +0 -21
- package/src/git/models/mergeConflicts.ts +0 -19
- package/src/git/models/patch.ts +0 -25
- package/src/git/models/pausedOperationStatus.ts +0 -63
- package/src/git/models/pullRequest.ts +0 -357
- package/src/git/models/rebase.ts +0 -60
- package/src/git/models/reference.ts +0 -80
- package/src/git/models/reflog.ts +0 -88
- package/src/git/models/remote.ts +0 -100
- package/src/git/models/remoteProvider.ts +0 -291
- package/src/git/models/remoteResource.ts +0 -87
- package/src/git/models/repository.ts +0 -510
- package/src/git/models/repositoryChangeEvent.ts +0 -30
- package/src/git/models/repositoryIdentities.ts +0 -99
- package/src/git/models/repositoryMetadata.ts +0 -12
- package/src/git/models/resourceDescriptor.ts +0 -28
- package/src/git/models/revision.ts +0 -12
- package/src/git/models/search.ts +0 -138
- package/src/git/models/shortlog.ts +0 -6
- package/src/git/models/signature.ts +0 -45
- package/src/git/models/staging.ts +0 -27
- package/src/git/models/stash.ts +0 -6
- package/src/git/models/status.ts +0 -246
- package/src/git/models/statusFile.ts +0 -131
- package/src/git/models/tag.ts +0 -76
- package/src/git/models/tree.ts +0 -10
- package/src/git/models/user.ts +0 -7
- package/src/git/models/worktree.ts +0 -160
- package/src/git/parsers/diffParser.ts +0 -648
- package/src/git/parsers/rebaseTodoParser.ts +0 -169
- package/src/git/providers/blame.ts +0 -40
- package/src/git/providers/branches.ts +0 -143
- package/src/git/providers/commits.ts +0 -174
- package/src/git/providers/config.ts +0 -167
- package/src/git/providers/contributors.ts +0 -34
- package/src/git/providers/diff.ts +0 -133
- package/src/git/providers/graph.ts +0 -95
- package/src/git/providers/maintenance.ts +0 -224
- package/src/git/providers/operations.ts +0 -164
- package/src/git/providers/patch.ts +0 -31
- package/src/git/providers/pausedOperations.ts +0 -23
- package/src/git/providers/provider.ts +0 -64
- package/src/git/providers/refs.ts +0 -68
- package/src/git/providers/remotes.ts +0 -33
- package/src/git/providers/revision.ts +0 -32
- package/src/git/providers/shared/remotes.ts +0 -95
- package/src/git/providers/staging.ts +0 -36
- package/src/git/providers/stash.ts +0 -51
- package/src/git/providers/status.ts +0 -48
- package/src/git/providers/tags.ts +0 -29
- package/src/git/providers/types.ts +0 -33
- package/src/git/providers/worktrees.ts +0 -37
- package/src/git/remotes/azure-devops.ts +0 -361
- package/src/git/remotes/bitbucket-server.ts +0 -189
- package/src/git/remotes/bitbucket.ts +0 -142
- package/src/git/remotes/custom.ts +0 -162
- package/src/git/remotes/gerrit.ts +0 -186
- package/src/git/remotes/gitea.ts +0 -184
- package/src/git/remotes/github.ts +0 -236
- package/src/git/remotes/gitlab.ts +0 -270
- package/src/git/remotes/google-source.ts +0 -51
- package/src/git/remotes/matcher.ts +0 -215
- package/src/git/repositoryService.ts +0 -180
- package/src/git/run.types.ts +0 -156
- package/src/git/service.ts +0 -369
- package/src/git/utils/autolink.utils.ts +0 -202
- package/src/git/utils/blame.utils.ts +0 -298
- package/src/git/utils/branch.utils.ts +0 -165
- package/src/git/utils/commit.utils.ts +0 -89
- package/src/git/utils/config.utils.ts +0 -8
- package/src/git/utils/conflictResolution.utils.ts +0 -157
- package/src/git/utils/contributor.utils.ts +0 -105
- package/src/git/utils/fetch.utils.ts +0 -48
- package/src/git/utils/fileStatus.utils.ts +0 -62
- package/src/git/utils/graph.utils.ts +0 -46
- package/src/git/utils/issue.utils.ts +0 -187
- package/src/git/utils/issueOrPullRequest.utils.ts +0 -23
- package/src/git/utils/mergeConflicts.utils.ts +0 -21
- package/src/git/utils/pausedOperationStatus.utils.ts +0 -184
- package/src/git/utils/pullRequest.utils.ts +0 -244
- package/src/git/utils/reachability.utils.ts +0 -180
- package/src/git/utils/rebase.utils.ts +0 -128
- package/src/git/utils/reference.utils.ts +0 -267
- package/src/git/utils/remote.utils.ts +0 -146
- package/src/git/utils/repository.utils.ts +0 -18
- package/src/git/utils/resourceDescriptor.utils.ts +0 -26
- package/src/git/utils/revision.utils.ts +0 -149
- package/src/git/utils/search.utils.ts +0 -624
- package/src/git/utils/sorting.ts +0 -329
- package/src/git/utils/sshKey.utils.ts +0 -30
- package/src/git/utils/status.utils.ts +0 -115
- package/src/git/utils/statusFile.utils.ts +0 -182
- package/src/git/utils/tag.utils.ts +0 -17
- package/src/git/utils/tooltip.utils.ts +0 -37
- package/src/git/utils/uriAuthority.ts +0 -34
- package/src/git/utils/user.utils.ts +0 -20
- package/src/git/utils/worktree.utils.ts +0 -21
- package/src/git/watching/changeEvent.ts +0 -95
- package/src/git/watching/classifyChange.ts +0 -104
- package/src/git/watching/gitIgnoreFilter.ts +0 -134
- package/src/git/watching/initWatcher.ts +0 -81
- package/src/git/watching/provider.ts +0 -24
- package/src/git/watching/watchGroup.ts +0 -185
- package/src/git/watching/watchService.ts +0 -430
- package/src/git/watching/watchSession.ts +0 -439
- package/src/git/watching/watcherPatterns.ts +0 -51
- package/src/git-cli/cliGitProvider.ts +0 -461
- package/src/git-cli/exec/exec.errors.ts +0 -1
- package/src/git-cli/exec/exec.ts +0 -11
- package/src/git-cli/exec/exec.types.ts +0 -8
- package/src/git-cli/exec/features.ts +0 -2
- package/src/git-cli/exec/git.ts +0 -1371
- package/src/git-cli/exec/gitQueue.ts +0 -326
- package/src/git-cli/exec/locator.ts +0 -157
- package/src/git-cli/parsers/blameParser.ts +0 -374
- package/src/git-cli/parsers/indexParser.ts +0 -192
- package/src/git-cli/parsers/logParser.ts +0 -1365
- package/src/git-cli/parsers/mergeTreeParser.ts +0 -22
- package/src/git-cli/parsers/refParser.ts +0 -110
- package/src/git-cli/parsers/reflogParser.ts +0 -153
- package/src/git-cli/parsers/remoteParser.ts +0 -95
- package/src/git-cli/parsers/shortlogParser.ts +0 -59
- package/src/git-cli/parsers/signatureParser.ts +0 -162
- package/src/git-cli/parsers/sshSignatureParser.ts +0 -85
- package/src/git-cli/parsers/statusParser.ts +0 -209
- package/src/git-cli/parsers/treeParser.ts +0 -61
- package/src/git-cli/parsers/worktreeParser.ts +0 -111
- package/src/git-cli/providers/blame.ts +0 -598
- package/src/git-cli/providers/branches.ts +0 -1931
- package/src/git-cli/providers/commitFilesetUtils.ts +0 -45
- package/src/git-cli/providers/commits.ts +0 -1856
- package/src/git-cli/providers/config.ts +0 -1025
- package/src/git-cli/providers/contributors.ts +0 -360
- package/src/git-cli/providers/diff.ts +0 -1172
- package/src/git-cli/providers/graph.ts +0 -2237
- package/src/git-cli/providers/maintenance.ts +0 -2599
- package/src/git-cli/providers/operations.ts +0 -1016
- package/src/git-cli/providers/patch.ts +0 -305
- package/src/git-cli/providers/pausedOperations.ts +0 -670
- package/src/git-cli/providers/refs.ts +0 -486
- package/src/git-cli/providers/remotes.ts +0 -115
- package/src/git-cli/providers/revision.ts +0 -383
- package/src/git-cli/providers/staging.ts +0 -210
- package/src/git-cli/providers/stash.ts +0 -577
- package/src/git-cli/providers/status.ts +0 -568
- package/src/git-cli/providers/tags.ts +0 -224
- package/src/git-cli/providers/worktrees.ts +0 -285
- package/src/git-cli/service.ts +0 -82
- package/src/ipc/discovery.ts +0 -186
- package/src/ipc/ipcServer.ts +0 -171
- package/src/plus/agents/agentCapabilities.ts +0 -286
- package/src/plus/agents/providers/claudeCodeTranscript.ts +0 -867
- package/src/plus/agents/providers/gkAgentProvider.ts +0 -4036
- package/src/plus/agents/sanitizePrompt.ts +0 -109
- package/src/plus/agents/stateMachine.ts +0 -197
- package/src/plus/agents/types.ts +0 -500
- package/src/plus/ai/constants.ts +0 -121
- package/src/plus/ai/errors.ts +0 -152
- package/src/plus/ai/models/conversation.ts +0 -35
- package/src/plus/ai/models/model.ts +0 -528
- package/src/plus/ai/models/promptTemplates.ts +0 -171
- package/src/plus/ai/models/provider.ts +0 -125
- package/src/plus/ai/models/results.ts +0 -31
- package/src/plus/ai/prompts.ts +0 -849
- package/src/plus/ai/providers/anthropicProvider.ts +0 -458
- package/src/plus/ai/providers/azureProvider.ts +0 -74
- package/src/plus/ai/providers/context.ts +0 -29
- package/src/plus/ai/providers/deepSeekProvider.ts +0 -46
- package/src/plus/ai/providers/geminiProvider.ts +0 -245
- package/src/plus/ai/providers/gitkrakenProvider.ts +0 -347
- package/src/plus/ai/providers/huggingFaceProvider.ts +0 -64
- package/src/plus/ai/providers/mistralProvider.ts +0 -243
- package/src/plus/ai/providers/ollamaProvider.ts +0 -292
- package/src/plus/ai/providers/openAICompatibleProvider.ts +0 -64
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +0 -654
- package/src/plus/ai/providers/openRouterProvider.ts +0 -101
- package/src/plus/ai/providers/openaiProvider.ts +0 -47
- package/src/plus/ai/providers/responseFormatCache.ts +0 -39
- package/src/plus/ai/providers/xaiProvider.ts +0 -54
- package/src/plus/ai/utils/ai.utils.ts +0 -95
- package/src/plus/ai/utils/results.utils.ts +0 -407
- package/src/plus/ai/utils/truncation.utils.ts +0 -296
- package/src/plus/git-github/api/config.ts +0 -91
- package/src/plus/git-github/api/github.ts +0 -5462
- package/src/plus/git-github/api/github.utils.ts +0 -36
- package/src/plus/git-github/api/issueSearchQuery.ts +0 -273
- package/src/plus/git-github/api/pullRequestSearchQuery.ts +0 -154
- package/src/plus/git-github/api/token.ts +0 -15
- package/src/plus/git-github/api/tokenUtils.ts +0 -15
- package/src/plus/git-github/api/types.ts +0 -197
- package/src/plus/git-github/context.ts +0 -107
- package/src/plus/git-github/models.ts +0 -623
- package/src/plus/git-github/providers/github/blame.ts +0 -225
- package/src/plus/git-github/providers/github/branches.ts +0 -401
- package/src/plus/git-github/providers/github/commits.ts +0 -929
- package/src/plus/git-github/providers/github/config.ts +0 -47
- package/src/plus/git-github/providers/github/contributors.ts +0 -313
- package/src/plus/git-github/providers/github/diff.ts +0 -281
- package/src/plus/git-github/providers/github/graph.ts +0 -635
- package/src/plus/git-github/providers/github/refs.ts +0 -172
- package/src/plus/git-github/providers/github/remotes.ts +0 -44
- package/src/plus/git-github/providers/github/revision.ts +0 -140
- package/src/plus/git-github/providers/github/status.ts +0 -69
- package/src/plus/git-github/providers/github/tags.ts +0 -148
- package/src/plus/git-github/providers/githubGitProvider.ts +0 -168
- package/src/plus/git-github/providers/githubProvider.ts +0 -65
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +0 -292
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +0 -656
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +0 -385
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +0 -148
- package/src/plus/integrations/authentication/manualTokenProvider.ts +0 -79
- package/src/plus/integrations/authentication/models.ts +0 -202
- package/src/plus/integrations/authentication/rejectedTokenTracker.ts +0 -56
- package/src/plus/integrations/collectionMetadata.ts +0 -325
- package/src/plus/integrations/constants.ts +0 -190
- package/src/plus/integrations/context.ts +0 -386
- package/src/plus/integrations/errors.ts +0 -188
- package/src/plus/integrations/index.ts +0 -231
- package/src/plus/integrations/integrationService.ts +0 -2003
- package/src/plus/integrations/lite.ts +0 -233
- package/src/plus/integrations/manager.ts +0 -728
- package/src/plus/integrations/models/gitHostIntegration.ts +0 -1862
- package/src/plus/integrations/models/integration.ts +0 -1005
- package/src/plus/integrations/models/issueCache.ts +0 -29
- package/src/plus/integrations/models/issueReads.ts +0 -152
- package/src/plus/integrations/models/issuesIntegration.ts +0 -248
- package/src/plus/integrations/models/pullRequestReads.ts +0 -18
- package/src/plus/integrations/providerFilters.ts +0 -36
- package/src/plus/integrations/providers/accounts.ts +0 -38
- package/src/plus/integrations/providers/apiClients.ts +0 -69
- package/src/plus/integrations/providers/apiConfig.ts +0 -71
- package/src/plus/integrations/providers/azure/azure.ts +0 -953
- package/src/plus/integrations/providers/azure/models.ts +0 -723
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1355
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +0 -904
- package/src/plus/integrations/providers/bitbucket/models.ts +0 -446
- package/src/plus/integrations/providers/bitbucket-server/models.ts +0 -283
- package/src/plus/integrations/providers/bitbucket-server.ts +0 -445
- package/src/plus/integrations/providers/bitbucket.ts +0 -793
- package/src/plus/integrations/providers/github/github.ts +0 -64
- package/src/plus/integrations/providers/github/github.utils.ts +0 -23
- package/src/plus/integrations/providers/github/models.ts +0 -29
- package/src/plus/integrations/providers/github.ts +0 -940
- package/src/plus/integrations/providers/gitlab/gitlab.ts +0 -1320
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +0 -80
- package/src/plus/integrations/providers/gitlab/models.ts +0 -271
- package/src/plus/integrations/providers/gitlab.ts +0 -841
- package/src/plus/integrations/providers/issueSorts.ts +0 -89
- package/src/plus/integrations/providers/jira.ts +0 -596
- package/src/plus/integrations/providers/jiraIssueByKey.ts +0 -155
- package/src/plus/integrations/providers/linear.ts +0 -484
- package/src/plus/integrations/providers/models.ts +0 -1833
- package/src/plus/integrations/providers/providerErrors.ts +0 -115
- package/src/plus/integrations/providers/providersApi.ts +0 -1881
- package/src/plus/integrations/providers/pullRequestReviews.ts +0 -122
- package/src/plus/integrations/providers/trello.ts +0 -208
- package/src/plus/integrations/providers/utils/providerPaging.ts +0 -212
- package/src/plus/integrations/providers/utils.ts +0 -419
- package/src/plus/integrations/reads/broaden.ts +0 -704
- package/src/plus/integrations/reads/context.ts +0 -99
- package/src/plus/integrations/reads/counts.ts +0 -610
- package/src/plus/integrations/reads/cursors.ts +0 -224
- package/src/plus/integrations/reads/drains.ts +0 -420
- package/src/plus/integrations/reads/filters.ts +0 -614
- package/src/plus/integrations/reads/hierarchy.ts +0 -486
- package/src/plus/integrations/reads/hierarchy.utils.ts +0 -155
- package/src/plus/integrations/reads/issueBatch.ts +0 -197
- package/src/plus/integrations/reads/issueTracker.ts +0 -556
- package/src/plus/integrations/reads/issues.ts +0 -600
- package/src/plus/integrations/reads/ordering.ts +0 -124
- package/src/plus/integrations/reads/paging.ts +0 -379
- package/src/plus/integrations/reads/pullRequests.ts +0 -260
- package/src/plus/integrations/reads/resolveRepository.ts +0 -275
- package/src/plus/integrations/reads/searchIssues.ts +0 -274
- package/src/plus/integrations/reads/searchPullRequests.ts +0 -235
- package/src/plus/integrations/reads/sweeps.ts +0 -266
- package/src/plus/integrations/reads/trackerIssue.ts +0 -105
- package/src/plus/integrations/reads/warnings.ts +0 -535
- package/src/plus/integrations/results.ts +0 -443
- package/src/plus/integrations/telemetry.ts +0 -29
- package/src/plus/integrations/utils/domain.utils.ts +0 -26
- package/src/plus/integrations/utils/integration.utils.ts +0 -215
- package/src/utils/array.ts +0 -194
- package/src/utils/base64.ts +0 -1
- package/src/utils/brand.ts +0 -7
- package/src/utils/cancellation.ts +0 -199
- package/src/utils/charCode.ts +0 -38
- package/src/utils/coalescedRun.ts +0 -45
- package/src/utils/color.ts +0 -817
- package/src/utils/counter.ts +0 -21
- package/src/utils/crypto.ts +0 -1
- package/src/utils/date.ts +0 -474
- package/src/utils/debounce.ts +0 -303
- package/src/utils/decorators/debounce.ts +0 -31
- package/src/utils/decorators/gate.ts +0 -167
- package/src/utils/decorators/log.ts +0 -320
- package/src/utils/decorators/memoize.ts +0 -98
- package/src/utils/decorators/resolver.ts +0 -95
- package/src/utils/decorators/sequentialize.ts +0 -118
- package/src/utils/decorators/serializable.ts +0 -43
- package/src/utils/dedupedAsyncCache.ts +0 -74
- package/src/utils/diff.ts +0 -61
- package/src/utils/disposable.ts +0 -156
- package/src/utils/encoding.ts +0 -8
- package/src/utils/env/browser/base64.ts +0 -50
- package/src/utils/env/browser/crypto.ts +0 -21
- package/src/utils/env/browser/fs.ts +0 -3
- package/src/utils/env/browser/hex.ts +0 -41
- package/src/utils/env/browser/hrtime.ts +0 -14
- package/src/utils/env/browser/logScope.ts +0 -57
- package/src/utils/env/browser/md5.ts +0 -217
- package/src/utils/env/browser/platform.ts +0 -10
- package/src/utils/env/node/base64.ts +0 -19
- package/src/utils/env/node/crypto.ts +0 -17
- package/src/utils/env/node/exec.ts +0 -488
- package/src/utils/env/node/fs.ts +0 -5
- package/src/utils/env/node/hex.ts +0 -11
- package/src/utils/env/node/hrtime.ts +0 -1
- package/src/utils/env/node/logScope.ts +0 -63
- package/src/utils/env/node/platform.ts +0 -5
- package/src/utils/error.ts +0 -18
- package/src/utils/event.ts +0 -230
- package/src/utils/formatter.ts +0 -198
- package/src/utils/fs.ts +0 -1
- package/src/utils/function.ts +0 -141
- package/src/utils/fuzzy.ts +0 -185
- package/src/utils/hash.ts +0 -60
- package/src/utils/hex.ts +0 -1
- package/src/utils/hrtime.ts +0 -8
- package/src/utils/iterable.ts +0 -797
- package/src/utils/keys/chord.ts +0 -184
- package/src/utils/keys/keybinding.ts +0 -116
- package/src/utils/lazy.ts +0 -39
- package/src/utils/loggable.ts +0 -7
- package/src/utils/logger.scoped.ts +0 -237
- package/src/utils/logger.ts +0 -403
- package/src/utils/lruMap.ts +0 -112
- package/src/utils/markdown.ts +0 -115
- package/src/utils/mru.ts +0 -68
- package/src/utils/object.ts +0 -278
- package/src/utils/paging.ts +0 -97
- package/src/utils/path.ts +0 -204
- package/src/utils/platform.ts +0 -1
- package/src/utils/promise.ts +0 -657
- package/src/utils/promiseCache.ts +0 -908
- package/src/utils/resourceUsage.ts +0 -5
- package/src/utils/searchTree.ts +0 -444
- package/src/utils/stopwatch.ts +0 -125
- package/src/utils/string.ts +0 -1003
- package/src/utils/subscriptionManager.ts +0 -40
- package/src/utils/trie.ts +0 -740
- package/src/utils/types.ts +0 -31
- package/src/utils/uri.ts +0 -118
- package/src/utils/validation.ts +0 -38
- package/src/utils/version.ts +0 -128
|
@@ -1,1833 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Account,
|
|
3
|
-
ActionablePullRequest,
|
|
4
|
-
AnyEntityIdentifierInput,
|
|
5
|
-
AzureDevOps,
|
|
6
|
-
AzureOrganization,
|
|
7
|
-
AzureProject,
|
|
8
|
-
AzureSetPullRequestInput,
|
|
9
|
-
Bitbucket,
|
|
10
|
-
BitbucketServer,
|
|
11
|
-
BitbucketWorkspaceStub,
|
|
12
|
-
CollectionMetadata,
|
|
13
|
-
CursorPageInput,
|
|
14
|
-
EnterpriseOptions,
|
|
15
|
-
GetRepoInput,
|
|
16
|
-
GitBuildStatus,
|
|
17
|
-
GitBuildStatusState as GitBuildStatusStateType,
|
|
18
|
-
GitHub,
|
|
19
|
-
GitHubPullRequestFieldMap,
|
|
20
|
-
GitIssueState as GitIssueStateType,
|
|
21
|
-
GitLab,
|
|
22
|
-
GitLabGroup,
|
|
23
|
-
GitMergeStrategy,
|
|
24
|
-
GitPullRequest,
|
|
25
|
-
GitPullRequestMergeableState as GitPullRequestMergeableStateType,
|
|
26
|
-
GitPullRequestReviewState as GitPullRequestReviewStateType,
|
|
27
|
-
GitPullRequestState as GitPullRequestStateType,
|
|
28
|
-
GitRepository,
|
|
29
|
-
GitRepositoryRemoteInfo,
|
|
30
|
-
Jira,
|
|
31
|
-
JiraProject,
|
|
32
|
-
JiraResource,
|
|
33
|
-
Linear,
|
|
34
|
-
LinearOrganization,
|
|
35
|
-
LinearTeam,
|
|
36
|
-
NumberedPageInput,
|
|
37
|
-
Organization,
|
|
38
|
-
Issue as ProviderApiIssue,
|
|
39
|
-
PullRequestWithUniqueID,
|
|
40
|
-
RequestFunction,
|
|
41
|
-
RequestOptions,
|
|
42
|
-
Response,
|
|
43
|
-
SetPullRequestInput,
|
|
44
|
-
Trello,
|
|
45
|
-
} from '@gitkraken/provider-apis';
|
|
46
|
-
import { EntityIdentifierUtils } from '@gitkraken/provider-apis/entity-identifiers';
|
|
47
|
-
import { GitProviderUtils } from '@gitkraken/provider-apis/provider-utils';
|
|
48
|
-
import { githubSearchResultLimit } from '../../git-github/api/config.js';
|
|
49
|
-
import type { Account as UserAccount } from '../../../git/models/author.js';
|
|
50
|
-
import type { IssueProject, IssueProviderState, IssueShape, IssueStateFilter } from '../../../git/models/issue.js';
|
|
51
|
-
import { Issue, RepositoryAccessLevel } from '../../../git/models/issue.js';
|
|
52
|
-
import type {
|
|
53
|
-
PullRequestRef,
|
|
54
|
-
PullRequestRefs,
|
|
55
|
-
PullRequestRepositoryIdentityDescriptor,
|
|
56
|
-
PullRequestState,
|
|
57
|
-
PullRequestStateFilter,
|
|
58
|
-
} from '../../../git/models/pullRequest.js';
|
|
59
|
-
import {
|
|
60
|
-
PullRequest,
|
|
61
|
-
PullRequestMergeableState,
|
|
62
|
-
PullRequestStatusCheckRollupState,
|
|
63
|
-
} from '../../../git/models/pullRequest.js';
|
|
64
|
-
import type { Provider, ProviderReference } from '../../../git/models/remoteProvider.js';
|
|
65
|
-
import type { ProviderScope } from '../../../git/models/resourceDescriptor.js';
|
|
66
|
-
import { gitSuffixRegex } from '../../../git/utils/remote.utils.js';
|
|
67
|
-
import type { PagedResult } from '../../../utils/paging.js';
|
|
68
|
-
import { equalsIgnoreCase } from '../../../utils/string.js';
|
|
69
|
-
import type { IntegrationIds } from '../constants.js';
|
|
70
|
-
import {
|
|
71
|
-
GitCloudHostIntegrationId,
|
|
72
|
-
GitSelfManagedHostIntegrationId,
|
|
73
|
-
IssuesCloudHostIntegrationId,
|
|
74
|
-
} from '../constants.js';
|
|
75
|
-
import type { Integration, IntegrationType } from '../models/integration.js';
|
|
76
|
-
import type {
|
|
77
|
-
IssueSearchCapabilities,
|
|
78
|
-
IssueSorting,
|
|
79
|
-
PullRequestSearchCapabilities,
|
|
80
|
-
PullRequestSorting,
|
|
81
|
-
} from '../providerFilters.js';
|
|
82
|
-
import { IssueFilter, PullRequestFilter } from '../providerFilters.js';
|
|
83
|
-
|
|
84
|
-
export { IssueFilter, PullRequestFilter } from '../providerFilters.js';
|
|
85
|
-
export type {
|
|
86
|
-
IssueSearchCapabilities,
|
|
87
|
-
IssueSearchCriteria,
|
|
88
|
-
IssueSearchRelationship,
|
|
89
|
-
IssueSortField,
|
|
90
|
-
IssueSorting,
|
|
91
|
-
PullRequestSearchCapabilities,
|
|
92
|
-
PullRequestSearchCriteria,
|
|
93
|
-
PullRequestSortField,
|
|
94
|
-
PullRequestSorting,
|
|
95
|
-
} from '../providerFilters.js';
|
|
96
|
-
import type { ProviderRepositoryShape } from '../results.js';
|
|
97
|
-
|
|
98
|
-
export type { ProviderOrganization, ProviderRepositoryShape } from '../results.js';
|
|
99
|
-
import { fromProviderAccount, toProviderAccount } from './accounts.js';
|
|
100
|
-
import {
|
|
101
|
-
azureAccountWideIssueSorts,
|
|
102
|
-
azureIssueSorts,
|
|
103
|
-
githubAccountWideIssueSorts,
|
|
104
|
-
githubIssueSorts,
|
|
105
|
-
gitlabAccountWideIssueSorts,
|
|
106
|
-
gitlabIssueSorts,
|
|
107
|
-
jiraIssueSorts,
|
|
108
|
-
linearIssueSorts,
|
|
109
|
-
trelloIssueSorts,
|
|
110
|
-
} from './issueSorts.js';
|
|
111
|
-
import type { ProviderPullRequestReview, ProviderPullRequestReviews } from './pullRequestReviews.js';
|
|
112
|
-
import {
|
|
113
|
-
fromPullRequestReviewDecision,
|
|
114
|
-
providerPullRequestReviewStateDismissed,
|
|
115
|
-
toCompletedReviews,
|
|
116
|
-
toProviderReviewDecision,
|
|
117
|
-
toProviderReviews,
|
|
118
|
-
toReviewRequests,
|
|
119
|
-
} from './pullRequestReviews.js';
|
|
120
|
-
import { getEntityIdentifierInput } from './utils.js';
|
|
121
|
-
|
|
122
|
-
type GitBuildStatusState = GitBuildStatusStateType;
|
|
123
|
-
type GitIssueState = GitIssueStateType;
|
|
124
|
-
type GitPullRequestMergeableState = GitPullRequestMergeableStateType;
|
|
125
|
-
type GitPullRequestReviewState = GitPullRequestReviewStateType;
|
|
126
|
-
type GitPullRequestState = GitPullRequestStateType;
|
|
127
|
-
|
|
128
|
-
// Local runtime copies of the `@gitkraken/provider-apis` string enums. Duplicated (not imported as
|
|
129
|
-
// values) because the SDK ships as CJS whose named enum exports can't be statically imported as ESM
|
|
130
|
-
// values from the bundled `dist`. Exported so the enum-parity test can deep-equal them against the
|
|
131
|
-
// real SDK enums and turn any upstream drift into a test failure instead of a silent mismatch.
|
|
132
|
-
export const GitBuildStatusState = {
|
|
133
|
-
ActionRequired: 'ACTION_REQUIRED' as GitBuildStatusState,
|
|
134
|
-
Cancelled: 'CANCELLED' as GitBuildStatusState,
|
|
135
|
-
Error: 'ERROR' as GitBuildStatusState,
|
|
136
|
-
Failed: 'FAILED' as GitBuildStatusState,
|
|
137
|
-
Pending: 'PENDING' as GitBuildStatusState,
|
|
138
|
-
Running: 'RUNNING' as GitBuildStatusState,
|
|
139
|
-
Skipped: 'SKIPPED' as GitBuildStatusState,
|
|
140
|
-
Success: 'SUCCESS' as GitBuildStatusState,
|
|
141
|
-
Warning: 'WARNING' as GitBuildStatusState,
|
|
142
|
-
OptionalActionRequired: 'OPTIONAL_ACTION_REQUIRED' as GitBuildStatusState,
|
|
143
|
-
} as const;
|
|
144
|
-
|
|
145
|
-
export const GitIssueState = {
|
|
146
|
-
Open: 'OPEN' as GitIssueState,
|
|
147
|
-
Closed: 'CLOSED' as GitIssueState,
|
|
148
|
-
} as const;
|
|
149
|
-
|
|
150
|
-
export const GitPullRequestState = {
|
|
151
|
-
Open: 'OPEN' as GitPullRequestState,
|
|
152
|
-
Closed: 'CLOSED' as GitPullRequestState,
|
|
153
|
-
Merged: 'MERGED' as GitPullRequestState,
|
|
154
|
-
} as const;
|
|
155
|
-
|
|
156
|
-
export const GitPullRequestReviewState = {
|
|
157
|
-
Approved: 'APPROVED' as GitPullRequestReviewState,
|
|
158
|
-
ChangesRequested: 'CHANGES_REQUESTED' as GitPullRequestReviewState,
|
|
159
|
-
Commented: 'COMMENTED' as GitPullRequestReviewState,
|
|
160
|
-
ReviewRequested: 'REVIEW_REQUESTED' as GitPullRequestReviewState,
|
|
161
|
-
} as const;
|
|
162
|
-
|
|
163
|
-
export const GitPullRequestMergeableState = {
|
|
164
|
-
Behind: 'BEHIND' as GitPullRequestMergeableState,
|
|
165
|
-
Blocked: 'BLOCKED' as GitPullRequestMergeableState,
|
|
166
|
-
Conflicts: 'CONFLICTS' as GitPullRequestMergeableState,
|
|
167
|
-
FailingChecks: 'FAILING_CHECKS' as GitPullRequestMergeableState,
|
|
168
|
-
Mergeable: 'MERGEABLE' as GitPullRequestMergeableState,
|
|
169
|
-
Unknown: 'UNKNOWN' as GitPullRequestMergeableState,
|
|
170
|
-
UnknownAndBlocked: 'UNKNOWN_AND_BLOCKED' as GitPullRequestMergeableState,
|
|
171
|
-
Unstable: 'UNSTABLE' as GitPullRequestMergeableState,
|
|
172
|
-
} as const;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Forward-only host type — the package only sets `EnrichablePullRequest.enrichable`
|
|
176
|
-
* for the host to consume. Typed as `any` to avoid duplicating the host's
|
|
177
|
-
* `EnrichableItem` shape.
|
|
178
|
-
*/
|
|
179
|
-
type EnrichableItem = any;
|
|
180
|
-
|
|
181
|
-
export type ProviderAccount = Account;
|
|
182
|
-
export type ProviderReposInput = (string | number)[] | GetRepoInput[];
|
|
183
|
-
export type ProviderRepoInput = GetRepoInput;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Which half of {@link ProviderReposInput} a caller supplied: repository IDS rather than descriptors.
|
|
187
|
-
*
|
|
188
|
-
* The union has no discriminant, so the answer is the element shape — and several layers need it for different
|
|
189
|
-
* reasons (`ProvidersApi` to pick `repoIds` vs `repos` in the SDK input, `GitHostIntegration` to refuse an
|
|
190
|
-
* id-based read a provider can't serve, `listIssuesPage` to know GitLab's id form takes the SDK's own merging
|
|
191
|
-
* aggregate). One predicate rather than one per layer, because each copy is free to disagree about the shape,
|
|
192
|
-
* and the symptom of disagreement is a read routed to the wrong provider query.
|
|
193
|
-
*
|
|
194
|
-
* Takes `unknown` rather than {@link ProviderReposInput} because `ProvidersApi.isRepoIdsInput` forwards here and
|
|
195
|
-
* is public with an unvalidated parameter, so the array check has to stay part of the rule rather than be assumed
|
|
196
|
-
* from the parameter type.
|
|
197
|
-
*/
|
|
198
|
-
export function isRepoIdsInput(input: unknown): input is (string | number)[] {
|
|
199
|
-
return (
|
|
200
|
-
input != null &&
|
|
201
|
-
Array.isArray(input) &&
|
|
202
|
-
input.every(repo => typeof repo === 'string' || typeof repo === 'number')
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export type ProviderPullRequest = Omit<GitPullRequest, 'reviews'> & { reviews: ProviderPullRequestReviews };
|
|
207
|
-
export type ProviderRepository = GitRepository;
|
|
208
|
-
export type ProviderIssue = ProviderApiIssue;
|
|
209
|
-
export type ProviderEnterpriseOptions = EnterpriseOptions;
|
|
210
|
-
export type ProviderJiraProject = JiraProject;
|
|
211
|
-
export type ProviderJiraResource = JiraResource;
|
|
212
|
-
export type ProviderLinearTeam = LinearTeam;
|
|
213
|
-
export type ProviderLinearOrganization = LinearOrganization;
|
|
214
|
-
export type ProviderAzureProject = AzureProject;
|
|
215
|
-
export type ProviderAzureResource = AzureOrganization;
|
|
216
|
-
export type ProviderBitbucketResource = BitbucketWorkspaceStub;
|
|
217
|
-
export type ProviderGitHubOrganization = Organization;
|
|
218
|
-
export type ProviderGitLabGroup = GitLabGroup;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Returns an account-wide PR identity. Provider PR ids are commonly scoped to a repository or organization,
|
|
222
|
-
* so an id alone is never safe for deduplication across a multi-repository fan-out. Repository identity wins
|
|
223
|
-
* when available so the same row still deduplicates when a later facet adds or removes its URL.
|
|
224
|
-
*/
|
|
225
|
-
export function getProviderPullRequestIdentity(
|
|
226
|
-
pr: Pick<ProviderPullRequest, 'id' | 'repository' | 'url'>,
|
|
227
|
-
): string | undefined {
|
|
228
|
-
const repository = pr.repository as
|
|
229
|
-
| {
|
|
230
|
-
id?: string | number;
|
|
231
|
-
name?: string;
|
|
232
|
-
namespace?: string;
|
|
233
|
-
owner?: { login?: string } | string;
|
|
234
|
-
project?: string;
|
|
235
|
-
}
|
|
236
|
-
| undefined;
|
|
237
|
-
const urlIdentity = pr.url != null && pr.url.trim() !== '' ? `url:${pr.url}` : undefined;
|
|
238
|
-
if (repository == null) return urlIdentity;
|
|
239
|
-
|
|
240
|
-
const owner = typeof repository.owner === 'string' ? repository.owner : repository.owner?.login;
|
|
241
|
-
const repositoryId = repository.id != null ? String(repository.id).trim() : '';
|
|
242
|
-
if (repositoryId !== '') return `repository:${repositoryId}:pull-request:${pr.id}`;
|
|
243
|
-
|
|
244
|
-
const name = repository.name?.trim() ?? '';
|
|
245
|
-
const namespace = (repository.namespace ?? owner)?.trim() ?? '';
|
|
246
|
-
const project = repository.project?.trim() ?? '';
|
|
247
|
-
if (name !== '' && (namespace !== '' || project !== '')) {
|
|
248
|
-
return `repository:${namespace}/${project}/${name}:pull-request:${pr.id}`;
|
|
249
|
-
}
|
|
250
|
-
return urlIdentity;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export type ProviderHierarchyResult<T> = PagedResult<T> & {
|
|
254
|
-
readonly truncated?: boolean;
|
|
255
|
-
/**
|
|
256
|
-
* SDK collection metadata merged across the drained pages. Independent from the local `truncated` backstop:
|
|
257
|
-
* a page-drain backstop stays visible even if every fetched page reported `complete`, and SDK
|
|
258
|
-
* incompleteness is preserved even when the drain finished within its page budget.
|
|
259
|
-
*/
|
|
260
|
-
readonly metadata?: CollectionMetadata;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* A normalized {@link PagedResult} that additionally carries the SDK's collection {@link CollectionMetadata}
|
|
265
|
-
* (completeness + per-scope failures). Named to avoid colliding with the public ProviderBackend
|
|
266
|
-
* `ProviderPagedResult` in `results.ts`: this is the integration-local carrier between the `ProvidersApi`
|
|
267
|
-
* boundary and the code that maps metadata into warnings/truncation. `metadata` is optional so providers and
|
|
268
|
-
* test doubles that predate the SDK metadata contract keep behaving exactly as before.
|
|
269
|
-
*/
|
|
270
|
-
export type ProviderApiPagedResult<T> = PagedResult<T> & {
|
|
271
|
-
readonly metadata?: CollectionMetadata;
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* A non-paged collection result carrying SDK {@link CollectionMetadata}. Used for fan-out reads that return a
|
|
276
|
-
* flat set of values with completeness/failure metadata but no provider-native pagination (e.g. Jira project
|
|
277
|
-
* discovery across resources, Trello board search).
|
|
278
|
-
*/
|
|
279
|
-
export type ProviderApiCollectionResult<T> = {
|
|
280
|
-
readonly values: NonNullable<T>[];
|
|
281
|
-
readonly metadata?: CollectionMetadata;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
export const ProviderPullRequestReviewState = GitPullRequestReviewState;
|
|
285
|
-
export const ProviderBuildStatusState = GitBuildStatusState;
|
|
286
|
-
export type ProviderRequestFunction = RequestFunction;
|
|
287
|
-
export type ProviderRequestResponse<T> = Response<T>;
|
|
288
|
-
export type ProviderRequestOptions = RequestOptions;
|
|
289
|
-
|
|
290
|
-
export enum PagingMode {
|
|
291
|
-
Project = 'project',
|
|
292
|
-
Repo = 'repo',
|
|
293
|
-
Repos = 'repos',
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface PagingInput {
|
|
297
|
-
cursor?: string | null;
|
|
298
|
-
page?: number;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface PagedRepoInput {
|
|
302
|
-
repo: GetRepoInput;
|
|
303
|
-
cursor?: string;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export interface PagedProjectInput {
|
|
307
|
-
namespace: string;
|
|
308
|
-
project: string;
|
|
309
|
-
cursor?: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export interface GetPullRequestsOptions {
|
|
313
|
-
authorLogin?: string;
|
|
314
|
-
assigneeLogins?: string[];
|
|
315
|
-
reviewRequestedLogin?: string;
|
|
316
|
-
// Reviewer filters keyed differently per provider: GitHub/GitLab use reviewRequestedLogin (login),
|
|
317
|
-
// Bitbucket/Azure DevOps use reviewerId (account id), Bitbucket Server uses reviewerLogin (login).
|
|
318
|
-
reviewerId?: string;
|
|
319
|
-
reviewerLogin?: string;
|
|
320
|
-
mentionLogin?: string;
|
|
321
|
-
// PR states to include; when omitted the provider returns its default (open only).
|
|
322
|
-
states?: GitPullRequestState[];
|
|
323
|
-
query?: string;
|
|
324
|
-
cursor?: string; // stringified JSON object of type { type: 'cursor' | 'page'; value: string | number } | {}
|
|
325
|
-
baseUrl?: string;
|
|
326
|
-
// 1-based page to request from numbered-page providers; takes precedence over a page-typed cursor.
|
|
327
|
-
page?: number;
|
|
328
|
-
// Items to request per page (numbered-page providers, plus GitHub's maxPageSize).
|
|
329
|
-
pageSize?: number;
|
|
330
|
-
// Opt in to repository remote metadata (clone URLs) when the PR payload lacks it. Only Azure DevOps
|
|
331
|
-
// acts on this today (extra API call); it is a no-op for the other providers.
|
|
332
|
-
includeRemoteInfo?: boolean;
|
|
333
|
-
// Field selection for the row shape. GitHub-shaped because it is the only provider whose PR read gates
|
|
334
|
-
// anything on it; the others ignore it. Declared here rather than passed through a spread so a typo or a
|
|
335
|
-
// wrong-shaped map is a compile error instead of a silently ignored key. An ABSENT map means "select
|
|
336
|
-
// everything", so only summary reads pass one.
|
|
337
|
-
fields?: GitHubPullRequestFieldMap;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export interface GetPullRequestsForUserOptions {
|
|
341
|
-
includeFromArchivedRepos?: boolean;
|
|
342
|
-
cursor?: string; // stringified JSON object of type { type: 'cursor' | 'page'; value: string | number } | {}
|
|
343
|
-
baseUrl?: string;
|
|
344
|
-
// PR states to include; when omitted the provider returns its default (open only).
|
|
345
|
-
states?: GitPullRequestState[];
|
|
346
|
-
/**
|
|
347
|
-
* Items to request per page. Worth setting explicitly on an account-wide read that gets DRAINED: each
|
|
348
|
-
* provider falls back to its own historical page size when this is omitted, and GitHub's is 15
|
|
349
|
-
* (`MAX_PR_PAGE_SIZE`), so a drain pays ~7x the round trips of the 100 its search actually allows.
|
|
350
|
-
*/
|
|
351
|
-
pageSize?: number;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface GetPullRequestsForUserInput extends GetPullRequestsForUserOptions {
|
|
355
|
-
userId: string;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export interface GetPullRequestsAssociatedWithUserInput extends GetPullRequestsForUserOptions {
|
|
359
|
-
username: string;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export interface GetPullRequestsForRepoInput extends GetPullRequestsOptions {
|
|
363
|
-
repo: GetRepoInput;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export interface GetPullRequestsForReposInput extends GetPullRequestsOptions {
|
|
367
|
-
repos: GetRepoInput[];
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export interface GetPullRequestsForRepoIdsInput extends GetPullRequestsOptions {
|
|
371
|
-
repoIds: (string | number)[];
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export interface GetIssuesOptions {
|
|
375
|
-
authorLogin?: string;
|
|
376
|
-
assigneeLogins?: string[];
|
|
377
|
-
mentionLogin?: string;
|
|
378
|
-
// Issue states to include; when omitted the provider returns its default (open only).
|
|
379
|
-
states?: GitIssueState[];
|
|
380
|
-
cursor?: string; // stringified JSON object of type { type: 'cursor' | 'page'; value: string | number } | {}
|
|
381
|
-
baseUrl?: string;
|
|
382
|
-
// 1-based page to request from numbered-page providers; takes precedence over a page-typed cursor.
|
|
383
|
-
page?: number;
|
|
384
|
-
// Items to request per page (numbered-page providers, plus GitHub's maxPageSize).
|
|
385
|
-
pageSize?: number;
|
|
386
|
-
/**
|
|
387
|
-
* How the provider should order the result, as `field:direction`.
|
|
388
|
-
*
|
|
389
|
-
* Passed through to the SDK verbatim — the translation to each provider's own vocabulary lives THERE, next to
|
|
390
|
-
* the capability map it validates against, so that the table this facade publishes and the table that does the
|
|
391
|
-
* translating can't drift apart across two repositories. A key the provider can't express raises the SDK's
|
|
392
|
-
* `UnsupportedSortError`, which is why the facade validates against `supportedIssueSorts` first: reaching that
|
|
393
|
-
* error means this table has outrun the SDK's.
|
|
394
|
-
*
|
|
395
|
-
* Always supplied by the facade's reads, never omitted. Omitting it would delegate the order to each provider's
|
|
396
|
-
* own default, which is the incoherence across providers the SDK deliberately preserves and this layer
|
|
397
|
-
* deliberately does not.
|
|
398
|
-
*/
|
|
399
|
-
sort?: IssueSorting;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export interface GetIssuesForRepoInput extends GetIssuesOptions {
|
|
403
|
-
repo: GetRepoInput;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export interface GetIssuesForReposInput extends GetIssuesOptions {
|
|
407
|
-
repos: GetRepoInput[];
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export interface GetIssuesForRepoIdsInput extends GetIssuesOptions {
|
|
411
|
-
repoIds: (string | number)[];
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
export interface GetIssuesForProjectInput extends GetIssuesOptions {
|
|
415
|
-
project: string;
|
|
416
|
-
resourceId: string;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
export interface GetIssuesForAzureProjectInput extends GetIssuesOptions {
|
|
420
|
-
namespace: string;
|
|
421
|
-
project: string;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export interface GetReposOptions {
|
|
425
|
-
cursor?: string; // stringified JSON object of type { type: 'cursor' | 'page'; value: string | number } | {}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export interface GetReposForAzureProjectInput {
|
|
429
|
-
namespace: string;
|
|
430
|
-
project: string;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export interface PageInfo {
|
|
434
|
-
hasNextPage: boolean;
|
|
435
|
-
endCursor?: string | null;
|
|
436
|
-
nextPage?: number | null;
|
|
437
|
-
// Numbered-page providers (Bitbucket, Bitbucket Server, Azure DevOps) additionally report these.
|
|
438
|
-
currentPage?: number | null;
|
|
439
|
-
totalPages?: number | null;
|
|
440
|
-
totalCount?: number | null;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export type GetRepoFn = (
|
|
444
|
-
input: ProviderRepoInput,
|
|
445
|
-
options?: EnterpriseOptions,
|
|
446
|
-
) => Promise<{ data: ProviderRepository }>;
|
|
447
|
-
export type GetRepoOfProjectFn = (
|
|
448
|
-
input: ProviderRepoInput & { project: string },
|
|
449
|
-
options?: EnterpriseOptions,
|
|
450
|
-
) => Promise<{ data: ProviderRepository }>;
|
|
451
|
-
|
|
452
|
-
export type GetPullRequestsForReposFn = (
|
|
453
|
-
input: (GetPullRequestsForReposInput | GetPullRequestsForRepoIdsInput) & PagingInput,
|
|
454
|
-
options?: EnterpriseOptions,
|
|
455
|
-
// `metadata` carries SDK collection completeness/failures for multi-repo fan-outs (Bitbucket, Azure DevOps,
|
|
456
|
-
// Bitbucket Server); `pageInfo` is present for the cursor-based aggregate (GitHub). Both are optional so
|
|
457
|
-
// each provider only sets what it actually reports.
|
|
458
|
-
) => Promise<{ data: ProviderPullRequest[]; pageInfo?: PageInfo; metadata?: CollectionMetadata }>;
|
|
459
|
-
|
|
460
|
-
export type GetPullRequestsForRepoFn = (
|
|
461
|
-
input: GetPullRequestsForRepoInput & PagingInput,
|
|
462
|
-
options?: EnterpriseOptions,
|
|
463
|
-
) => Promise<{ data: ProviderPullRequest[]; pageInfo?: PageInfo }>;
|
|
464
|
-
|
|
465
|
-
export type GetPullRequestsForUserFn = (
|
|
466
|
-
input: GetPullRequestsForUserInput | GetPullRequestsAssociatedWithUserInput,
|
|
467
|
-
options?: EnterpriseOptions,
|
|
468
|
-
) => Promise<{ data: ProviderPullRequest[]; pageInfo?: PageInfo }>;
|
|
469
|
-
|
|
470
|
-
export type GetPullRequestsForAzureProjectsFn = (
|
|
471
|
-
input: {
|
|
472
|
-
projects: { namespace: string; project: string }[];
|
|
473
|
-
authorLogin?: string;
|
|
474
|
-
assigneeLogins?: string[];
|
|
475
|
-
reviewerId?: string;
|
|
476
|
-
states?: GitPullRequestState[];
|
|
477
|
-
repo?: ProviderRepoInput;
|
|
478
|
-
},
|
|
479
|
-
options?: EnterpriseOptions,
|
|
480
|
-
// Aggregate multi-project fan-out: no `pageInfo` (call getPullRequestsForAzureProject for that), but SDK
|
|
481
|
-
// collection metadata reports per-project completeness/failures.
|
|
482
|
-
) => Promise<{ data: ProviderPullRequest[]; metadata?: CollectionMetadata }>;
|
|
483
|
-
|
|
484
|
-
/** Single Azure project PR read, paginated by number (unlike the aggregate {@link GetPullRequestsForAzureProjectsFn}). */
|
|
485
|
-
export type GetPullRequestsForAzureProjectFn = (
|
|
486
|
-
input: {
|
|
487
|
-
namespace: string;
|
|
488
|
-
project: string;
|
|
489
|
-
authorLogin?: string;
|
|
490
|
-
assigneeLogins?: string[];
|
|
491
|
-
reviewerId?: string;
|
|
492
|
-
states?: GitPullRequestState[];
|
|
493
|
-
repo?: ProviderRepoInput;
|
|
494
|
-
} & PagingInput,
|
|
495
|
-
options?: EnterpriseOptions,
|
|
496
|
-
) => Promise<{ data: ProviderPullRequest[]; pageInfo: { hasNextPage: boolean; nextPage: number | null } }>;
|
|
497
|
-
|
|
498
|
-
export type MergePullRequestFn =
|
|
499
|
-
| ((
|
|
500
|
-
input: {
|
|
501
|
-
pullRequest: {
|
|
502
|
-
headRef: {
|
|
503
|
-
oid: string | null;
|
|
504
|
-
} | null;
|
|
505
|
-
version?: number; // Used by BitbucketServer
|
|
506
|
-
} & SetPullRequestInput;
|
|
507
|
-
mergeStrategy?: GitMergeStrategy;
|
|
508
|
-
},
|
|
509
|
-
options?: EnterpriseOptions,
|
|
510
|
-
) => Promise<void>)
|
|
511
|
-
| ((
|
|
512
|
-
input: {
|
|
513
|
-
pullRequest: {
|
|
514
|
-
headRef: {
|
|
515
|
-
oid: string | null;
|
|
516
|
-
} | null;
|
|
517
|
-
} & SetPullRequestInput;
|
|
518
|
-
mergeStrategy?: GitMergeStrategy.Squash;
|
|
519
|
-
},
|
|
520
|
-
options?: EnterpriseOptions,
|
|
521
|
-
) => Promise<void>)
|
|
522
|
-
| ((
|
|
523
|
-
input: {
|
|
524
|
-
pullRequest: {
|
|
525
|
-
headRef: {
|
|
526
|
-
oid: string;
|
|
527
|
-
};
|
|
528
|
-
} & AzureSetPullRequestInput;
|
|
529
|
-
mergeStrategy?:
|
|
530
|
-
| GitMergeStrategy.MergeCommit
|
|
531
|
-
| GitMergeStrategy.Rebase
|
|
532
|
-
| GitMergeStrategy.RebaseThenMergeCommit
|
|
533
|
-
| GitMergeStrategy.Squash;
|
|
534
|
-
},
|
|
535
|
-
options?: EnterpriseOptions,
|
|
536
|
-
) => Promise<void>);
|
|
537
|
-
|
|
538
|
-
export type GetIssueFn = (
|
|
539
|
-
input:
|
|
540
|
-
| { resourceId: string; number: string } // jira
|
|
541
|
-
| { namespace: string; name: string; number: string }, // gitlab
|
|
542
|
-
options?: EnterpriseOptions,
|
|
543
|
-
) => Promise<{ data: ProviderIssue }>;
|
|
544
|
-
|
|
545
|
-
export type GetIssuesForReposFn = (
|
|
546
|
-
input: (GetIssuesForReposInput | GetIssuesForRepoIdsInput) & PagingInput,
|
|
547
|
-
options?: EnterpriseOptions,
|
|
548
|
-
// GitHub's multi-repo issue search reports its 1,000-result cap — and, when it recovers past it by
|
|
549
|
-
// partitioning, what that recovery could not reach — through `metadata`. Documented on the contract for
|
|
550
|
-
// the reader; `getPagedResult` accepts and forwards `metadata` from any provider fn regardless.
|
|
551
|
-
) => Promise<{ data: ProviderIssue[]; pageInfo?: PageInfo; metadata?: CollectionMetadata }>;
|
|
552
|
-
|
|
553
|
-
export type GetIssuesForCurrentUserInput = PagingInput & {
|
|
554
|
-
// GitLab's account-wide REST read (`GET /issues`): `scope` controls breadth ('assigned_to_me' vs 'all') and
|
|
555
|
-
// the username fields independently narrow a broad read to a specific assignee or author. Other providers
|
|
556
|
-
// (Linear) ignore these and page purely off the cursor.
|
|
557
|
-
scope?: 'assigned_to_me' | 'all';
|
|
558
|
-
assigneeUsername?: string;
|
|
559
|
-
authorUsername?: string;
|
|
560
|
-
pageSize?: number;
|
|
561
|
-
/** See {@link GetIssuesOptions.sort}. */
|
|
562
|
-
sort?: IssueSorting;
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
export type GetIssuesForCurrentUserFn = (
|
|
566
|
-
input: GetIssuesForCurrentUserInput,
|
|
567
|
-
options?: EnterpriseOptions,
|
|
568
|
-
) => Promise<{ data: ProviderIssue[]; pageInfo?: PageInfo }>;
|
|
569
|
-
|
|
570
|
-
export type GetIssuesForRepoFn = (
|
|
571
|
-
input: GetIssuesForRepoInput & PagingInput,
|
|
572
|
-
options?: EnterpriseOptions,
|
|
573
|
-
) => Promise<{ data: ProviderIssue[]; pageInfo?: PageInfo }>;
|
|
574
|
-
|
|
575
|
-
export type GetIssuesForAzureProjectFn = (
|
|
576
|
-
input: GetIssuesForAzureProjectInput & PagingInput,
|
|
577
|
-
options?: EnterpriseOptions,
|
|
578
|
-
) => Promise<{ data: ProviderIssue[]; pageInfo?: PageInfo }>;
|
|
579
|
-
|
|
580
|
-
export type GetReposForAzureProjectFn = (
|
|
581
|
-
input: GetReposForAzureProjectInput & PagingInput,
|
|
582
|
-
options?: EnterpriseOptions,
|
|
583
|
-
) => Promise<{ data: ProviderRepository[]; pageInfo?: PageInfo }>;
|
|
584
|
-
|
|
585
|
-
export type GetOrgsForCurrentUserFn = (
|
|
586
|
-
input?: CursorPageInput,
|
|
587
|
-
options?: EnterpriseOptions,
|
|
588
|
-
) => Promise<{ data: ProviderGitHubOrganization[]; pageInfo?: PageInfo }>;
|
|
589
|
-
export type GetReposForOrgFn = (
|
|
590
|
-
input: { orgName: string } & PagingInput,
|
|
591
|
-
options?: EnterpriseOptions,
|
|
592
|
-
) => Promise<{ data: ProviderRepository[]; pageInfo?: PageInfo }>;
|
|
593
|
-
export type GetReposForWorkspaceFn = (
|
|
594
|
-
input: { workspace: string } & PagingInput,
|
|
595
|
-
options?: EnterpriseOptions,
|
|
596
|
-
) => Promise<{ data: ProviderRepository[]; pageInfo?: PageInfo }>;
|
|
597
|
-
export type GetReposForCurrentUserFn = (
|
|
598
|
-
// `affiliations` narrows GitHub's `/user/repos` read (owner/collaborator/organization_member);
|
|
599
|
-
// GitLab's equivalent read ignores it.
|
|
600
|
-
input: PagingInput & { affiliations?: ('owner' | 'collaborator' | 'organization_member')[] },
|
|
601
|
-
options?: EnterpriseOptions,
|
|
602
|
-
) => Promise<{ data: ProviderRepository[]; pageInfo?: PageInfo }>;
|
|
603
|
-
export type GetGroupsForCurrentUserFn = (
|
|
604
|
-
input?: { topLevelOnly?: boolean } & PagingInput,
|
|
605
|
-
options?: EnterpriseOptions,
|
|
606
|
-
) => Promise<{ data: ProviderGitLabGroup[]; pageInfo?: PageInfo }>;
|
|
607
|
-
|
|
608
|
-
export type GetCurrentUserFn = (
|
|
609
|
-
input: Record<string, never>,
|
|
610
|
-
options?: EnterpriseOptions,
|
|
611
|
-
) => Promise<{ data: ProviderAccount }>;
|
|
612
|
-
export type GetCurrentUserForInstanceFn = (
|
|
613
|
-
input: { namespace: string },
|
|
614
|
-
options?: EnterpriseOptions,
|
|
615
|
-
) => Promise<{ data: ProviderAccount }>;
|
|
616
|
-
export type GetCurrentUserForResourceFn = (
|
|
617
|
-
input: { resourceId: string },
|
|
618
|
-
options?: EnterpriseOptions,
|
|
619
|
-
) => Promise<{ data: ProviderAccount }>;
|
|
620
|
-
|
|
621
|
-
export type GetJiraResourcesForCurrentUserFn = (options?: EnterpriseOptions) => Promise<{ data: JiraResource[] }>;
|
|
622
|
-
export type GetLinearOrganizationFn = (options?: EnterpriseOptions) => Promise<{ data: LinearOrganization }>;
|
|
623
|
-
export type GetLinearTeamsForCurrentUserFn = (options?: EnterpriseOptions) => Promise<{ data: LinearTeam[] }>;
|
|
624
|
-
export type GetLinearIssuesFn = (
|
|
625
|
-
input: { teams?: string[]; projects?: string[]; labels?: string[] } & PagingInput,
|
|
626
|
-
options?: EnterpriseOptions,
|
|
627
|
-
) => Promise<{ data: ProviderIssue[]; pageInfo?: PageInfo }>;
|
|
628
|
-
/**
|
|
629
|
-
* Linear's current-user (viewer) query. Its raw `@linear/sdk` User isn't a `ProviderAccount` (no
|
|
630
|
-
* username/avatar/url), so it's typed with the minimal fields the viewer query actually returns rather than
|
|
631
|
-
* importing `@linear/sdk` (which is bundled in the SDK dist and not a resolvable top-level dependency).
|
|
632
|
-
*/
|
|
633
|
-
export type GetLinearCurrentUserFn = (
|
|
634
|
-
options?: EnterpriseOptions,
|
|
635
|
-
) => Promise<{ data: { id: string; name?: string | null; email?: string | null; displayName?: string | null } }>;
|
|
636
|
-
export type GetJiraProjectsForResourcesFn = (
|
|
637
|
-
input: { resourceIds: string[] },
|
|
638
|
-
options?: EnterpriseOptions,
|
|
639
|
-
// Fan-out across resources: preserves successful resources' projects and reports per-resource failures in
|
|
640
|
-
// SDK collection metadata instead of throwing when a single resource fails.
|
|
641
|
-
) => Promise<{ data: JiraProject[]; metadata?: CollectionMetadata }>;
|
|
642
|
-
export type GetJiraProjectsForResourceFn = (
|
|
643
|
-
input: { resourceId: string } & CursorPageInput,
|
|
644
|
-
options?: EnterpriseOptions,
|
|
645
|
-
) => Promise<{ data: JiraProject[]; pageInfo?: PageInfo; metadata?: CollectionMetadata }>;
|
|
646
|
-
export type GetGitLabPullRequestsForUserAssociationFn = (
|
|
647
|
-
input: {
|
|
648
|
-
username: string;
|
|
649
|
-
association: 'assigned' | 'authored' | 'reviewRequested';
|
|
650
|
-
includeFromArchivedRepos?: boolean;
|
|
651
|
-
labelNames?: string[];
|
|
652
|
-
repo?: ProviderRepoInput;
|
|
653
|
-
states?: GitPullRequestState[];
|
|
654
|
-
pageSize?: number;
|
|
655
|
-
} & CursorPageInput,
|
|
656
|
-
options?: EnterpriseOptions,
|
|
657
|
-
) => Promise<{ data: ProviderPullRequest[]; pageInfo?: PageInfo }>;
|
|
658
|
-
export type GetAzureResourcesForUserFn = (
|
|
659
|
-
input: { userId: string },
|
|
660
|
-
options?: EnterpriseOptions,
|
|
661
|
-
) => Promise<{ data: AzureOrganization[] }>;
|
|
662
|
-
export type GetAzureProjectsForResourceFn = (
|
|
663
|
-
input: { namespace: string; cursor?: string },
|
|
664
|
-
options?: EnterpriseOptions,
|
|
665
|
-
) => Promise<{ data: AzureProject[]; pageInfo?: PageInfo }>;
|
|
666
|
-
export type GetBitbucketResourcesForCurrentUserFn = (
|
|
667
|
-
input: { page?: number },
|
|
668
|
-
options?: EnterpriseOptions,
|
|
669
|
-
) => Promise<{ data: BitbucketWorkspaceStub[]; pageInfo?: PageInfo }>;
|
|
670
|
-
export type GetBitbucketPullRequestsAuthoredByUserForWorkspaceFn = (
|
|
671
|
-
input: {
|
|
672
|
-
userId: string;
|
|
673
|
-
workspaceSlug: string;
|
|
674
|
-
states?: GitPullRequestState[];
|
|
675
|
-
} & NumberedPageInput,
|
|
676
|
-
options?: EnterpriseOptions,
|
|
677
|
-
) => Promise<{
|
|
678
|
-
pageInfo: {
|
|
679
|
-
hasNextPage: boolean;
|
|
680
|
-
nextPage: number | null;
|
|
681
|
-
};
|
|
682
|
-
data: GitPullRequest[];
|
|
683
|
-
}>;
|
|
684
|
-
export type GetBitbucketServerPullRequestsForCurrentUserFn = (
|
|
685
|
-
input: { states?: GitPullRequestState[] } & NumberedPageInput,
|
|
686
|
-
options?: EnterpriseOptions,
|
|
687
|
-
) => Promise<{
|
|
688
|
-
pageInfo: {
|
|
689
|
-
hasNextPage: boolean;
|
|
690
|
-
nextPage: number | null;
|
|
691
|
-
};
|
|
692
|
-
data: GitPullRequest[];
|
|
693
|
-
}>;
|
|
694
|
-
export type GetIssuesForProjectFn = Jira['getIssuesForProject'];
|
|
695
|
-
// Derived from the client method rather than hand-declared, as its project-scoped sibling above already is: the
|
|
696
|
-
// hand-written shape named only `resourceId`, so every other field the SDK accepts (the cursor, the sort, the
|
|
697
|
-
// transitions switch) was invisible to the type system and had to be smuggled through `getPagedResult`'s `any`.
|
|
698
|
-
export type GetIssuesForResourceForCurrentUserFn = Jira['getIssuesForResourceForCurrentUser'];
|
|
699
|
-
|
|
700
|
-
// Trello reads (issues-capable provider). The Trello client is keyed by an `appKey` (the Trello app key from
|
|
701
|
-
// the cloud token exchange) alongside the OAuth token, so these mirror the client method shapes directly.
|
|
702
|
-
export type GetTrelloCurrentUserFn = Trello['getCurrentUser'];
|
|
703
|
-
export type GetTrelloBoardsForCurrentUserFn = Trello['getBoardsForCurrentUser'];
|
|
704
|
-
export type GetTrelloListsForBoardFn = Trello['getListsForTrelloBoard'];
|
|
705
|
-
export type GetTrelloAccountForIdFn = Trello['getAccountForId'];
|
|
706
|
-
export type GetTrelloIssuesForBoardFn = Trello['getIssuesForBoard'];
|
|
707
|
-
export type GetTrelloLabelsForBoardFn = Trello['getLabelsForBoard'];
|
|
708
|
-
|
|
709
|
-
export interface ProviderInfo extends ProviderMetadata {
|
|
710
|
-
provider: GitHub | GitLab | Bitbucket | BitbucketServer | Jira | Linear | Trello | AzureDevOps;
|
|
711
|
-
getRepoFn?: GetRepoFn;
|
|
712
|
-
getRepoOfProjectFn?: GetRepoOfProjectFn;
|
|
713
|
-
getPullRequestsForReposFn?: GetPullRequestsForReposFn;
|
|
714
|
-
getPullRequestsForRepoFn?: GetPullRequestsForRepoFn;
|
|
715
|
-
getPullRequestsForUserFn?: GetPullRequestsForUserFn;
|
|
716
|
-
getGitLabPullRequestsForUserAssociationFn?: GetGitLabPullRequestsForUserAssociationFn;
|
|
717
|
-
getPullRequestsForAzureProjectsFn?: GetPullRequestsForAzureProjectsFn;
|
|
718
|
-
getPullRequestsForAzureProjectFn?: GetPullRequestsForAzureProjectFn;
|
|
719
|
-
getIssueFn?: GetIssueFn;
|
|
720
|
-
getIssuesForReposFn?: GetIssuesForReposFn;
|
|
721
|
-
getIssuesForCurrentUserFn?: GetIssuesForCurrentUserFn;
|
|
722
|
-
getIssuesForRepoFn?: GetIssuesForRepoFn;
|
|
723
|
-
getIssuesForAzureProjectFn?: GetIssuesForAzureProjectFn;
|
|
724
|
-
getCurrentUserFn?: GetCurrentUserFn;
|
|
725
|
-
getCurrentUserForInstanceFn?: GetCurrentUserForInstanceFn;
|
|
726
|
-
getCurrentUserForResourceFn?: GetCurrentUserForResourceFn;
|
|
727
|
-
getJiraResourcesForCurrentUserFn?: GetJiraResourcesForCurrentUserFn;
|
|
728
|
-
getLinearOrganizationFn?: GetLinearOrganizationFn;
|
|
729
|
-
getLinearTeamsForCurrentUserFn?: GetLinearTeamsForCurrentUserFn;
|
|
730
|
-
getLinearIssuesFn?: GetLinearIssuesFn;
|
|
731
|
-
getLinearCurrentUserFn?: GetLinearCurrentUserFn;
|
|
732
|
-
getAzureResourcesForUserFn?: GetAzureResourcesForUserFn;
|
|
733
|
-
getBitbucketResourcesForCurrentUserFn?: GetBitbucketResourcesForCurrentUserFn;
|
|
734
|
-
getBitbucketPullRequestsAuthoredByUserForWorkspaceFn?: GetBitbucketPullRequestsAuthoredByUserForWorkspaceFn;
|
|
735
|
-
getBitbucketServerPullRequestsForCurrentUserFn?: GetBitbucketServerPullRequestsForCurrentUserFn;
|
|
736
|
-
getJiraProjectsForResourcesFn?: GetJiraProjectsForResourcesFn;
|
|
737
|
-
getJiraProjectsForResourceFn?: GetJiraProjectsForResourceFn;
|
|
738
|
-
getAzureProjectsForResourceFn?: GetAzureProjectsForResourceFn;
|
|
739
|
-
getIssuesForProjectFn?: GetIssuesForProjectFn;
|
|
740
|
-
getReposForAzureProjectFn?: GetReposForAzureProjectFn;
|
|
741
|
-
getIssuesForResourceForCurrentUserFn?: GetIssuesForResourceForCurrentUserFn;
|
|
742
|
-
mergePullRequestFn?: MergePullRequestFn;
|
|
743
|
-
getOrgsForCurrentUserFn?: GetOrgsForCurrentUserFn;
|
|
744
|
-
getReposForOrgFn?: GetReposForOrgFn;
|
|
745
|
-
getReposForWorkspaceFn?: GetReposForWorkspaceFn;
|
|
746
|
-
getReposForCurrentUserFn?: GetReposForCurrentUserFn;
|
|
747
|
-
getGroupsForCurrentUserFn?: GetGroupsForCurrentUserFn;
|
|
748
|
-
getTrelloCurrentUserFn?: GetTrelloCurrentUserFn;
|
|
749
|
-
getTrelloBoardsForCurrentUserFn?: GetTrelloBoardsForCurrentUserFn;
|
|
750
|
-
getTrelloListsForBoardFn?: GetTrelloListsForBoardFn;
|
|
751
|
-
getTrelloAccountForIdFn?: GetTrelloAccountForIdFn;
|
|
752
|
-
getTrelloIssuesForBoardFn?: GetTrelloIssuesForBoardFn;
|
|
753
|
-
getTrelloLabelsForBoardFn?: GetTrelloLabelsForBoardFn;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
export interface ProviderMetadata {
|
|
757
|
-
domain: string;
|
|
758
|
-
id: IntegrationIds;
|
|
759
|
-
name: string;
|
|
760
|
-
type: IntegrationType;
|
|
761
|
-
/** Key for the `gl-provider-<iconKey>` glicon. Cloud self-managed variants reuse the base
|
|
762
|
-
* `'github-enterprise'`/`'gitlab-self-hosted'` icon (no enum member exists for those anymore). */
|
|
763
|
-
iconKey: string;
|
|
764
|
-
issuesPagingMode?: PagingMode;
|
|
765
|
-
pullRequestsPagingMode?: PagingMode;
|
|
766
|
-
scopes: string[];
|
|
767
|
-
supportedPullRequestFilters?: PullRequestFilter[];
|
|
768
|
-
/**
|
|
769
|
-
* Relationship filters the ACCOUNT-WIDE pull-request read can express as an exact OR union.
|
|
770
|
-
* This is independent from `supportedPullRequestFilters`, which describes repo-scoped reads.
|
|
771
|
-
*/
|
|
772
|
-
supportedAccountWidePullRequestFilters?: PullRequestFilter[];
|
|
773
|
-
/**
|
|
774
|
-
* What the filtered pull-request search can express server-side. Absent means the provider has
|
|
775
|
-
* no such search and the facade refuses it rather than returning an unfiltered page.
|
|
776
|
-
*/
|
|
777
|
-
supportedPullRequestSearch?: PullRequestSearchCapabilities;
|
|
778
|
-
/**
|
|
779
|
-
* Maximum results the provider will serve for one pull-request search facet. Matches beyond it are unreachable
|
|
780
|
-
* and are reported as a succeeded omission carrying this limit plus the provider's pre-ceiling facet count.
|
|
781
|
-
*/
|
|
782
|
-
pullRequestSearchResultLimit?: number;
|
|
783
|
-
/** Filters the REPO-scoped issue read can express. */
|
|
784
|
-
supportedIssueFilters?: IssueFilter[];
|
|
785
|
-
/**
|
|
786
|
-
* Filters the ACCOUNT-WIDE issue read can express, which is NOT the same set as
|
|
787
|
-
* {@link ProviderMetadata.supportedIssueFilters}: the two reads are different provider queries.
|
|
788
|
-
*
|
|
789
|
-
* Unfiltered, each provider's account-wide read is that provider's own definition of "my issues" — GitHub/GHE
|
|
790
|
-
* union authored + assigned + mentioned, Azure drains assigned + authored, and GitLab reads assigned-to-me.
|
|
791
|
-
* A consumer replacing a narrower tool (`gk`'s `assignee:@me`) must select the `Assignee` filter wherever the
|
|
792
|
-
* provider's default is wider.
|
|
793
|
-
*
|
|
794
|
-
* A filter listed here narrows that read server-side. Absent/empty means the read can't be narrowed at all,
|
|
795
|
-
* so the facade refuses a filtered request rather than serving the unnarrowed union as if it had been
|
|
796
|
-
* filtered. GitLab lists `Assignee` and `Author` because the SDK's account-wide input exposes both username
|
|
797
|
-
* axes; it omits `Mention` because that REST read has no first-class mention filter.
|
|
798
|
-
*/
|
|
799
|
-
supportedAccountWideIssueFilters?: IssueFilter[];
|
|
800
|
-
/**
|
|
801
|
-
* Sort keys the REPO-scoped issue read can express server-side — and, for an issue tracker (Jira/Linear/Trello),
|
|
802
|
-
* its project-scoped read, which is the only issue surface a tracker has.
|
|
803
|
-
*
|
|
804
|
-
* Absent/empty means the read can't be ordered at all, so a request carrying `sort` is refused rather than
|
|
805
|
-
* served in whatever order the provider felt like. Present, it is a promise: every key here reaches the
|
|
806
|
-
* provider query.
|
|
807
|
-
*
|
|
808
|
-
* A key listed here is expressible on ONE provider query, which is what this read is when it is given ONE
|
|
809
|
-
* scope. Given several (GitLab across repositories, Azure across projects, a tracker across projects) it merges
|
|
810
|
-
* their results here and can only honor a key a normalized issue carries, so it additionally refuses
|
|
811
|
-
* `priority`/`dueDate`/`resolved` — see `getIssueComparator`. That depends on the caller's scope count rather
|
|
812
|
-
* than on the provider, which is why it is a runtime refusal and not a fourth table: encoding it here would
|
|
813
|
-
* under-report the single-scope read, which really does support those keys.
|
|
814
|
-
*/
|
|
815
|
-
supportedIssueSorts?: IssueSorting[];
|
|
816
|
-
/**
|
|
817
|
-
* Sort keys the ACCOUNT-WIDE issue read can express server-side, which is NOT the same set as
|
|
818
|
-
* {@link ProviderMetadata.supportedIssueSorts} — for GitLab the two reads are different APIs (GraphQL vs REST)
|
|
819
|
-
* with genuinely different vocabularies, not one narrowed twice.
|
|
820
|
-
*
|
|
821
|
-
* Absent means the account-wide read can't be ordered (or doesn't exist). An issue tracker leaves this empty
|
|
822
|
-
* and reports under `supportedIssueSorts`, so reading a tracker's capability from here under-reports it.
|
|
823
|
-
*
|
|
824
|
-
* Unlike {@link ProviderMetadata.supportedIssueSorts} this needs no companion runtime refusal, because every
|
|
825
|
-
* provider's account-wide read is a union of several queries with no scope count for a caller to reduce: it
|
|
826
|
-
* ALWAYS merges. So the keys a merge can't order by are simply absent here — the table states what the read can
|
|
827
|
-
* honor, which is what makes intersecting against it sufficient.
|
|
828
|
-
*/
|
|
829
|
-
supportedAccountWideIssueSorts?: IssueSorting[];
|
|
830
|
-
/**
|
|
831
|
-
* What the provider's FILTERED issue search (`searchIssuesPage`, and the `countIssues` probe over the same
|
|
832
|
-
* criteria) can express server-side. A third, wider surface than either filter set above: it is not bound to
|
|
833
|
-
* the user at all, so it takes relationships those reads have no way to name (`any-assignee`, `unassigned`),
|
|
834
|
-
* plus free text and issue attributes.
|
|
835
|
-
*
|
|
836
|
-
* Absent means the provider has NO filtered issue search and the read is refused. Present, it is a promise:
|
|
837
|
-
* every field declared here reaches the provider query, so a consumer that intersects against it never has a
|
|
838
|
-
* read refused, and a criterion is never silently ignored.
|
|
839
|
-
*/
|
|
840
|
-
supportedIssueSearch?: IssueSearchCapabilities;
|
|
841
|
-
/**
|
|
842
|
-
* The maximum number of results the provider's filtered issue search will serve for ONE query, however it is
|
|
843
|
-
* paged. Matches past it are UNREACHABLE, not merely unfetched, which is why a read that hits this reports an
|
|
844
|
-
* omission with `recovery: 'none'` and the total match count rather than offering a "load more".
|
|
845
|
-
*
|
|
846
|
-
* Absent means the provider declares no ceiling, in which case a truncated read falls back to generic wording
|
|
847
|
-
* instead of quoting a limit that was never published.
|
|
848
|
-
*/
|
|
849
|
-
issueSearchResultLimit?: number;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
export type Providers = Record<IntegrationIds, ProviderInfo>;
|
|
853
|
-
export type ProvidersMetadata = Record<IntegrationIds, ProviderMetadata>;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* GitHub and GitHub Enterprise express every criterion as a search qualifier on the same GraphQL `search` field,
|
|
857
|
-
* so the two share one declaration — a GHE instance running the same search syntax has the same capability, and
|
|
858
|
-
* two copies of this table would be free to drift.
|
|
859
|
-
*
|
|
860
|
-
* Every entry is a claim the implementation must keep: `searchIssuesPage` emits a qualifier for each of these,
|
|
861
|
-
* and a test asserts that (see the `issueSearch` capability tests) so the table can't quietly outrun the code.
|
|
862
|
-
*/
|
|
863
|
-
const githubIssueSearchCapabilities: IssueSearchCapabilities = {
|
|
864
|
-
// `author:@me` / `assignee:@me` / `mentions:@me` / `assignee:*` / `no:assignee`, each its own aliased search.
|
|
865
|
-
relationships: ['authored', 'assigned', 'mentioned', 'any-assignee', 'unassigned'],
|
|
866
|
-
text: true,
|
|
867
|
-
labels: true,
|
|
868
|
-
milestone: true,
|
|
869
|
-
updatedAfter: true,
|
|
870
|
-
createdAfter: true,
|
|
871
|
-
// `-linked:pr`.
|
|
872
|
-
withoutLinkedPullRequest: true,
|
|
873
|
-
// `is:open` / `is:closed`, or neither for all states.
|
|
874
|
-
states: true,
|
|
875
|
-
// `sort:created-desc`, `sort:updated`, `sort:comments-asc`, … — see `githubIssueSorts`.
|
|
876
|
-
sorts: githubIssueSorts,
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* The ordering vocabulary of GitHub's filtered PR search: `created` and `updated`, both directions.
|
|
881
|
-
*
|
|
882
|
-
* Hand-declared rather than derived from `@gitkraken/provider-apis` (which has no PR-sort surface), and narrower
|
|
883
|
-
* than the issue set on purpose: the merged relationship × state facets can only be re-ordered by a field a
|
|
884
|
-
* `PullRequestShape` carries (see `getPullRequestComparator`), and GitHub PRs have no priority and no relevance
|
|
885
|
-
* that orders stably under the result ceiling. A parity test pins this to `gitHubPullRequestSortQualifiers`' keys
|
|
886
|
-
* so the capability can't outrun the emitter.
|
|
887
|
-
*/
|
|
888
|
-
const githubPullRequestSorts: PullRequestSorting[] = ['updated:desc', 'updated:asc', 'created:desc', 'created:asc'];
|
|
889
|
-
|
|
890
|
-
/** GitHub and GHE use the same filtered pull-request search syntax and result ceiling. */
|
|
891
|
-
const githubPullRequestSearchCapabilities: PullRequestSearchCapabilities = {
|
|
892
|
-
relationships: [
|
|
893
|
-
PullRequestFilter.Author,
|
|
894
|
-
PullRequestFilter.Assignee,
|
|
895
|
-
PullRequestFilter.ReviewRequested,
|
|
896
|
-
PullRequestFilter.Reviewed,
|
|
897
|
-
PullRequestFilter.Mention,
|
|
898
|
-
],
|
|
899
|
-
states: ['open', 'closed', 'merged', 'all'],
|
|
900
|
-
text: true,
|
|
901
|
-
updatedAfter: true,
|
|
902
|
-
createdAfter: true,
|
|
903
|
-
includeArchived: true,
|
|
904
|
-
draft: true,
|
|
905
|
-
repositoryScope: true,
|
|
906
|
-
organizationScope: true,
|
|
907
|
-
// `sort:updated`, `sort:updated-asc`, `sort:created-desc`, `sort:created-asc` — see `githubPullRequestSorts`.
|
|
908
|
-
sorts: githubPullRequestSorts,
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
export const providersMetadata: ProvidersMetadata = {
|
|
912
|
-
[GitCloudHostIntegrationId.GitHub]: {
|
|
913
|
-
domain: 'github.com',
|
|
914
|
-
id: GitCloudHostIntegrationId.GitHub,
|
|
915
|
-
name: 'GitHub',
|
|
916
|
-
type: 'git',
|
|
917
|
-
iconKey: GitCloudHostIntegrationId.GitHub,
|
|
918
|
-
issuesPagingMode: PagingMode.Repos,
|
|
919
|
-
pullRequestsPagingMode: PagingMode.Repos,
|
|
920
|
-
// Use 'username' property on account for PR filters
|
|
921
|
-
supportedPullRequestFilters: [
|
|
922
|
-
PullRequestFilter.Author,
|
|
923
|
-
PullRequestFilter.Assignee,
|
|
924
|
-
PullRequestFilter.ReviewRequested,
|
|
925
|
-
PullRequestFilter.Mention,
|
|
926
|
-
],
|
|
927
|
-
supportedAccountWidePullRequestFilters: [
|
|
928
|
-
PullRequestFilter.Author,
|
|
929
|
-
PullRequestFilter.Assignee,
|
|
930
|
-
PullRequestFilter.ReviewRequested,
|
|
931
|
-
PullRequestFilter.Reviewed,
|
|
932
|
-
PullRequestFilter.Mention,
|
|
933
|
-
],
|
|
934
|
-
supportedPullRequestSearch: githubPullRequestSearchCapabilities,
|
|
935
|
-
pullRequestSearchResultLimit: githubSearchResultLimit,
|
|
936
|
-
// Use 'username' property on account for issue filters
|
|
937
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
938
|
-
// The account-wide read is three independent searches (`author:@me`, `assignee:@me`, `mentions:@me`) behind
|
|
939
|
-
// one composite cursor, so any subset of them is expressible.
|
|
940
|
-
supportedAccountWideIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
941
|
-
// One `search` field serves all three issue reads (repo-scoped, account-wide, filtered search), so the same
|
|
942
|
-
// qualifiers are expressible on each — the account-wide one narrowed to what its three-alias merge can order.
|
|
943
|
-
supportedIssueSorts: githubIssueSorts,
|
|
944
|
-
supportedAccountWideIssueSorts: githubAccountWideIssueSorts,
|
|
945
|
-
supportedIssueSearch: githubIssueSearchCapabilities,
|
|
946
|
-
issueSearchResultLimit: githubSearchResultLimit,
|
|
947
|
-
scopes: ['repo', 'read:user', 'user:email'],
|
|
948
|
-
},
|
|
949
|
-
[GitSelfManagedHostIntegrationId.CloudGitHubEnterprise]: {
|
|
950
|
-
domain: '',
|
|
951
|
-
id: GitSelfManagedHostIntegrationId.CloudGitHubEnterprise,
|
|
952
|
-
name: 'GitHub Enterprise',
|
|
953
|
-
type: 'git',
|
|
954
|
-
iconKey: 'github-enterprise',
|
|
955
|
-
issuesPagingMode: PagingMode.Repos,
|
|
956
|
-
pullRequestsPagingMode: PagingMode.Repos,
|
|
957
|
-
// Use 'username' property on account for PR filters
|
|
958
|
-
supportedPullRequestFilters: [
|
|
959
|
-
PullRequestFilter.Author,
|
|
960
|
-
PullRequestFilter.Assignee,
|
|
961
|
-
PullRequestFilter.ReviewRequested,
|
|
962
|
-
PullRequestFilter.Mention,
|
|
963
|
-
],
|
|
964
|
-
supportedAccountWidePullRequestFilters: [
|
|
965
|
-
PullRequestFilter.Author,
|
|
966
|
-
PullRequestFilter.Assignee,
|
|
967
|
-
PullRequestFilter.ReviewRequested,
|
|
968
|
-
PullRequestFilter.Reviewed,
|
|
969
|
-
PullRequestFilter.Mention,
|
|
970
|
-
],
|
|
971
|
-
supportedPullRequestSearch: githubPullRequestSearchCapabilities,
|
|
972
|
-
pullRequestSearchResultLimit: githubSearchResultLimit,
|
|
973
|
-
// Use 'username' property on account for issue filters
|
|
974
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
975
|
-
// The account-wide read is three independent searches (`author:@me`, `assignee:@me`, `mentions:@me`) behind
|
|
976
|
-
// one composite cursor, so any subset of them is expressible.
|
|
977
|
-
supportedAccountWideIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
978
|
-
// One `search` field serves all three issue reads (repo-scoped, account-wide, filtered search), so the same
|
|
979
|
-
// qualifiers are expressible on each — the account-wide one narrowed to what its three-alias merge can order.
|
|
980
|
-
supportedIssueSorts: githubIssueSorts,
|
|
981
|
-
supportedAccountWideIssueSorts: githubAccountWideIssueSorts,
|
|
982
|
-
supportedIssueSearch: githubIssueSearchCapabilities,
|
|
983
|
-
issueSearchResultLimit: githubSearchResultLimit,
|
|
984
|
-
scopes: ['repo', 'read:user', 'user:email'],
|
|
985
|
-
},
|
|
986
|
-
[GitCloudHostIntegrationId.GitLab]: {
|
|
987
|
-
domain: 'gitlab.com',
|
|
988
|
-
id: GitCloudHostIntegrationId.GitLab,
|
|
989
|
-
name: 'GitLab',
|
|
990
|
-
type: 'git',
|
|
991
|
-
iconKey: GitCloudHostIntegrationId.GitLab,
|
|
992
|
-
issuesPagingMode: PagingMode.Repo,
|
|
993
|
-
pullRequestsPagingMode: PagingMode.Repo,
|
|
994
|
-
// Use 'username' property on account for PR filters
|
|
995
|
-
supportedPullRequestFilters: [
|
|
996
|
-
PullRequestFilter.Author,
|
|
997
|
-
PullRequestFilter.Assignee,
|
|
998
|
-
PullRequestFilter.ReviewRequested,
|
|
999
|
-
],
|
|
1000
|
-
supportedAccountWidePullRequestFilters: [
|
|
1001
|
-
PullRequestFilter.Author,
|
|
1002
|
-
PullRequestFilter.Assignee,
|
|
1003
|
-
PullRequestFilter.ReviewRequested,
|
|
1004
|
-
],
|
|
1005
|
-
// Use 'username' property on account for issue filters
|
|
1006
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee],
|
|
1007
|
-
// The account-wide read drains one `scope=assigned_to_me` pass and one `scope=all` + `authorUsername` pass,
|
|
1008
|
-
// unioned, so either axis is expressible on its own. Mention is absent because GitLab's REST issue read has
|
|
1009
|
-
// no first-class mention filter to narrow with.
|
|
1010
|
-
supportedAccountWideIssueFilters: [IssueFilter.Assignee, IssueFilter.Author],
|
|
1011
|
-
// Two different surfaces, not one narrowed twice: the repository-scoped read is GraphQL and the
|
|
1012
|
-
// account-wide one is REST, and REST has neither `title` nor `closed_at`.
|
|
1013
|
-
supportedIssueSorts: gitlabIssueSorts,
|
|
1014
|
-
supportedAccountWideIssueSorts: gitlabAccountWideIssueSorts,
|
|
1015
|
-
scopes: ['api', 'read_user', 'read_repository'],
|
|
1016
|
-
},
|
|
1017
|
-
[GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted]: {
|
|
1018
|
-
domain: '',
|
|
1019
|
-
id: GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted,
|
|
1020
|
-
name: 'GitLab Self-Hosted',
|
|
1021
|
-
type: 'git',
|
|
1022
|
-
iconKey: 'gitlab-self-hosted',
|
|
1023
|
-
issuesPagingMode: PagingMode.Repo,
|
|
1024
|
-
pullRequestsPagingMode: PagingMode.Repo,
|
|
1025
|
-
// Use 'username' property on account for PR filters
|
|
1026
|
-
supportedPullRequestFilters: [
|
|
1027
|
-
PullRequestFilter.Author,
|
|
1028
|
-
PullRequestFilter.Assignee,
|
|
1029
|
-
PullRequestFilter.ReviewRequested,
|
|
1030
|
-
],
|
|
1031
|
-
supportedAccountWidePullRequestFilters: [
|
|
1032
|
-
PullRequestFilter.Author,
|
|
1033
|
-
PullRequestFilter.Assignee,
|
|
1034
|
-
PullRequestFilter.ReviewRequested,
|
|
1035
|
-
],
|
|
1036
|
-
// Use 'username' property on account for issue filters
|
|
1037
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee],
|
|
1038
|
-
// The account-wide read drains one `scope=assigned_to_me` pass and one `scope=all` + `authorUsername` pass,
|
|
1039
|
-
// unioned, so either axis is expressible on its own. Mention is absent because GitLab's REST issue read has
|
|
1040
|
-
// no first-class mention filter to narrow with.
|
|
1041
|
-
supportedAccountWideIssueFilters: [IssueFilter.Assignee, IssueFilter.Author],
|
|
1042
|
-
// Two different surfaces, not one narrowed twice: the repository-scoped read is GraphQL and the
|
|
1043
|
-
// account-wide one is REST, and REST has neither `title` nor `closed_at`.
|
|
1044
|
-
supportedIssueSorts: gitlabIssueSorts,
|
|
1045
|
-
supportedAccountWideIssueSorts: gitlabAccountWideIssueSorts,
|
|
1046
|
-
scopes: ['api', 'read_user', 'read_repository'],
|
|
1047
|
-
},
|
|
1048
|
-
[GitCloudHostIntegrationId.Bitbucket]: {
|
|
1049
|
-
domain: 'bitbucket.org',
|
|
1050
|
-
id: GitCloudHostIntegrationId.Bitbucket,
|
|
1051
|
-
name: 'Bitbucket',
|
|
1052
|
-
type: 'git',
|
|
1053
|
-
iconKey: GitCloudHostIntegrationId.Bitbucket,
|
|
1054
|
-
pullRequestsPagingMode: PagingMode.Repo,
|
|
1055
|
-
// Use 'id' property on account for PR filters (reviewer filter keyed by account id / reviewerId)
|
|
1056
|
-
supportedPullRequestFilters: [PullRequestFilter.Author, PullRequestFilter.ReviewRequested],
|
|
1057
|
-
supportedAccountWidePullRequestFilters: [PullRequestFilter.Author, PullRequestFilter.ReviewRequested],
|
|
1058
|
-
scopes: ['account:read', 'repository:read', 'pullrequest:read', 'issue:read'],
|
|
1059
|
-
},
|
|
1060
|
-
[GitSelfManagedHostIntegrationId.BitbucketServer]: {
|
|
1061
|
-
domain: '',
|
|
1062
|
-
id: GitSelfManagedHostIntegrationId.BitbucketServer,
|
|
1063
|
-
name: 'Bitbucket Data Center',
|
|
1064
|
-
type: 'git',
|
|
1065
|
-
iconKey: GitSelfManagedHostIntegrationId.BitbucketServer,
|
|
1066
|
-
supportedPullRequestFilters: [PullRequestFilter.Author, PullRequestFilter.ReviewRequested],
|
|
1067
|
-
supportedAccountWidePullRequestFilters: [PullRequestFilter.Author, PullRequestFilter.ReviewRequested],
|
|
1068
|
-
scopes: ['Project (Read)', 'Repository (Write)'],
|
|
1069
|
-
},
|
|
1070
|
-
[GitCloudHostIntegrationId.AzureDevOps]: {
|
|
1071
|
-
domain: 'dev.azure.com',
|
|
1072
|
-
id: GitCloudHostIntegrationId.AzureDevOps,
|
|
1073
|
-
name: 'Azure DevOps',
|
|
1074
|
-
type: 'git',
|
|
1075
|
-
iconKey: GitCloudHostIntegrationId.AzureDevOps,
|
|
1076
|
-
issuesPagingMode: PagingMode.Project,
|
|
1077
|
-
pullRequestsPagingMode: PagingMode.Repo,
|
|
1078
|
-
// Use 'id' property on account for PR filters (reviewer filter keyed by account id / reviewerId)
|
|
1079
|
-
supportedPullRequestFilters: [
|
|
1080
|
-
PullRequestFilter.Author,
|
|
1081
|
-
PullRequestFilter.Assignee,
|
|
1082
|
-
PullRequestFilter.ReviewRequested,
|
|
1083
|
-
],
|
|
1084
|
-
supportedAccountWidePullRequestFilters: [
|
|
1085
|
-
PullRequestFilter.Author,
|
|
1086
|
-
PullRequestFilter.Assignee,
|
|
1087
|
-
PullRequestFilter.ReviewRequested,
|
|
1088
|
-
],
|
|
1089
|
-
// Use 'name' property on account for issue filters
|
|
1090
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
1091
|
-
// The account-wide read drains one (project × assignee) and one (project × author) query per project, so
|
|
1092
|
-
// either axis is expressible on its own. There is no mention query to narrow to.
|
|
1093
|
-
supportedAccountWideIssueFilters: [IssueFilter.Author, IssueFilter.Assignee],
|
|
1094
|
-
// Both reads emit the same WIQL, but the account-wide one drains every (project x relationship) query and
|
|
1095
|
-
// merges the results, so it can only honor keys a normalized issue carries — `resolved` and `priority` are
|
|
1096
|
-
// dropped from that surface for the same reason they are dropped from GitLab's.
|
|
1097
|
-
supportedIssueSorts: azureIssueSorts,
|
|
1098
|
-
supportedAccountWideIssueSorts: azureAccountWideIssueSorts,
|
|
1099
|
-
scopes: ['vso.code', 'vso.identity', 'vso.project', 'vso.profile', 'vso.work'],
|
|
1100
|
-
},
|
|
1101
|
-
[GitSelfManagedHostIntegrationId.AzureDevOpsServer]: {
|
|
1102
|
-
domain: '',
|
|
1103
|
-
id: GitSelfManagedHostIntegrationId.AzureDevOpsServer,
|
|
1104
|
-
name: 'Azure DevOps Server',
|
|
1105
|
-
type: 'git',
|
|
1106
|
-
iconKey: GitCloudHostIntegrationId.AzureDevOps,
|
|
1107
|
-
issuesPagingMode: PagingMode.Project,
|
|
1108
|
-
pullRequestsPagingMode: PagingMode.Repo,
|
|
1109
|
-
// Use 'id' property on account for PR filters (reviewer filter keyed by account id / reviewerId)
|
|
1110
|
-
supportedPullRequestFilters: [
|
|
1111
|
-
PullRequestFilter.Author,
|
|
1112
|
-
PullRequestFilter.Assignee,
|
|
1113
|
-
PullRequestFilter.ReviewRequested,
|
|
1114
|
-
],
|
|
1115
|
-
supportedAccountWidePullRequestFilters: [
|
|
1116
|
-
PullRequestFilter.Author,
|
|
1117
|
-
PullRequestFilter.Assignee,
|
|
1118
|
-
PullRequestFilter.ReviewRequested,
|
|
1119
|
-
],
|
|
1120
|
-
// Use 'name' property on account for issue filters
|
|
1121
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
1122
|
-
// The account-wide read drains one (project × assignee) and one (project × author) query per project, so
|
|
1123
|
-
// either axis is expressible on its own. There is no mention query to narrow to.
|
|
1124
|
-
supportedAccountWideIssueFilters: [IssueFilter.Author, IssueFilter.Assignee],
|
|
1125
|
-
// Both reads emit the same WIQL, but the account-wide one drains every (project x relationship) query and
|
|
1126
|
-
// merges the results, so it can only honor keys a normalized issue carries — `resolved` and `priority` are
|
|
1127
|
-
// dropped from that surface for the same reason they are dropped from GitLab's.
|
|
1128
|
-
supportedIssueSorts: azureIssueSorts,
|
|
1129
|
-
supportedAccountWideIssueSorts: azureAccountWideIssueSorts,
|
|
1130
|
-
scopes: ['vso.code', 'vso.identity', 'vso.project', 'vso.profile', 'vso.work'],
|
|
1131
|
-
},
|
|
1132
|
-
[IssuesCloudHostIntegrationId.Jira]: {
|
|
1133
|
-
domain: 'atlassian.net',
|
|
1134
|
-
id: IssuesCloudHostIntegrationId.Jira,
|
|
1135
|
-
name: 'Jira',
|
|
1136
|
-
type: 'issues',
|
|
1137
|
-
iconKey: IssuesCloudHostIntegrationId.Jira,
|
|
1138
|
-
scopes: [
|
|
1139
|
-
'read:status:jira',
|
|
1140
|
-
'read:application-role:jira',
|
|
1141
|
-
'write:attachment:jira',
|
|
1142
|
-
'read:comment:jira',
|
|
1143
|
-
'read:project-category:jira',
|
|
1144
|
-
'read:project:jira',
|
|
1145
|
-
'read:issue.vote:jira',
|
|
1146
|
-
'read:field-configuration:jira',
|
|
1147
|
-
'write:issue:jira',
|
|
1148
|
-
'read:issue-security-level:jira',
|
|
1149
|
-
'write:issue.property:jira',
|
|
1150
|
-
'read:issue.changelog:jira',
|
|
1151
|
-
'read:avatar:jira',
|
|
1152
|
-
'read:issue-meta:jira',
|
|
1153
|
-
'read:permission:jira',
|
|
1154
|
-
'offline_access',
|
|
1155
|
-
'read:issue:jira',
|
|
1156
|
-
'read:me',
|
|
1157
|
-
'read:audit-log:jira',
|
|
1158
|
-
'read:project.component:jira',
|
|
1159
|
-
'read:group:jira',
|
|
1160
|
-
'read:project-role:jira',
|
|
1161
|
-
'write:comment:jira',
|
|
1162
|
-
'read:label:jira',
|
|
1163
|
-
'write:comment.property:jira',
|
|
1164
|
-
'read:issue-details:jira',
|
|
1165
|
-
'read:issue-type-hierarchy:jira',
|
|
1166
|
-
'read:issue.transition:jira',
|
|
1167
|
-
'read:user:jira',
|
|
1168
|
-
'read:field:jira',
|
|
1169
|
-
'read:issue-type:jira',
|
|
1170
|
-
'read:project.property:jira',
|
|
1171
|
-
'read:comment.property:jira',
|
|
1172
|
-
'read:project-version:jira',
|
|
1173
|
-
],
|
|
1174
|
-
supportedIssueFilters: [IssueFilter.Author, IssueFilter.Assignee, IssueFilter.Mention],
|
|
1175
|
-
// A tracker's issues live under resource -> project, so it has no account-wide surface to declare: its
|
|
1176
|
-
// capability is reported under `issues`, which is what `listIssueTrackerIssuesPage` validates against.
|
|
1177
|
-
supportedIssueSorts: jiraIssueSorts,
|
|
1178
|
-
},
|
|
1179
|
-
[IssuesCloudHostIntegrationId.Linear]: {
|
|
1180
|
-
domain: 'linear.app',
|
|
1181
|
-
id: IssuesCloudHostIntegrationId.Linear,
|
|
1182
|
-
name: 'Linear',
|
|
1183
|
-
type: 'issues',
|
|
1184
|
-
iconKey: IssuesCloudHostIntegrationId.Linear,
|
|
1185
|
-
scopes: [],
|
|
1186
|
-
// Linear scopes "my issues" client-side by the viewer's assignee id; author/mention aren't supported.
|
|
1187
|
-
supportedIssueFilters: [IssueFilter.Assignee],
|
|
1188
|
-
// Both directions, and one table for both reads: they are the same root `issues` query taking the same
|
|
1189
|
-
// `sort` argument, so there is no account-wide narrowing to declare.
|
|
1190
|
-
supportedIssueSorts: linearIssueSorts,
|
|
1191
|
-
},
|
|
1192
|
-
[IssuesCloudHostIntegrationId.Trello]: {
|
|
1193
|
-
domain: 'trello.com',
|
|
1194
|
-
id: IssuesCloudHostIntegrationId.Trello,
|
|
1195
|
-
name: 'Trello',
|
|
1196
|
-
type: 'issues',
|
|
1197
|
-
iconKey: IssuesCloudHostIntegrationId.Trello,
|
|
1198
|
-
scopes: [],
|
|
1199
|
-
// Trello cards are filtered by the assignee (member) only; author/mention have no Trello equivalent.
|
|
1200
|
-
supportedIssueFilters: [IssueFilter.Assignee],
|
|
1201
|
-
// `sort:edited` / `sort:-edited`. Trello's other search sorts (`created`, `due`) have no card-order effect.
|
|
1202
|
-
supportedIssueSorts: trelloIssueSorts,
|
|
1203
|
-
},
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
export function getReasonsForUserIssue(issue: ProviderIssue, userLogin: string): string[] {
|
|
1207
|
-
const reasons: string[] = [];
|
|
1208
|
-
let isAuthor = false;
|
|
1209
|
-
let isAssignee = false;
|
|
1210
|
-
if (issue.author?.username === userLogin || issue.author?.name === userLogin) {
|
|
1211
|
-
reasons.push('authored');
|
|
1212
|
-
isAuthor = true;
|
|
1213
|
-
}
|
|
1214
|
-
if (issue.assignees?.some(assignee => assignee.username === userLogin || assignee.name === userLogin)) {
|
|
1215
|
-
reasons.push('assigned');
|
|
1216
|
-
isAssignee = true;
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
// TODO: Impossible to denote all issues we are mentioned on given their properties. for now just
|
|
1220
|
-
// assume we are mentioned on any of our issues we are not the author or assignee on
|
|
1221
|
-
if (!isAuthor && !isAssignee) {
|
|
1222
|
-
reasons.push('mentioned');
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
return reasons;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
function toIssueIdentifier(value: string | number): string {
|
|
1229
|
-
return String(value);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
function toIssueProviderState(
|
|
1233
|
-
state: ProviderIssue['state'],
|
|
1234
|
-
reliableStateCategory = true,
|
|
1235
|
-
): IssueProviderState | undefined {
|
|
1236
|
-
return state == null
|
|
1237
|
-
? undefined
|
|
1238
|
-
: {
|
|
1239
|
-
id: state.id,
|
|
1240
|
-
name: state.name,
|
|
1241
|
-
color: state.color ?? undefined,
|
|
1242
|
-
category: reliableStateCategory ? state.category : undefined,
|
|
1243
|
-
};
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
export function toIssueShape(
|
|
1247
|
-
issue: ProviderIssue,
|
|
1248
|
-
provider: ProviderReference,
|
|
1249
|
-
options?: { reliableStateCategory?: boolean },
|
|
1250
|
-
): IssueShape | undefined {
|
|
1251
|
-
// TODO: Add some protections/baselines rather than killing the transformation here
|
|
1252
|
-
// `author` is intentionally not required: some providers have no per-item creator (e.g. Trello cards,
|
|
1253
|
-
// which the SDK maps with `author: null`), and dropping every such item would discard the whole board.
|
|
1254
|
-
// Fall back to an empty author instead so these issues still surface.
|
|
1255
|
-
if (issue.updatedDate == null || issue.url == null) return undefined;
|
|
1256
|
-
|
|
1257
|
-
// Jira SDK results derive this category from a localized display name and default unknown names to DONE.
|
|
1258
|
-
// Only the direct point read opts in because it maps Jira's stable status-category key itself.
|
|
1259
|
-
const reliableStateCategory =
|
|
1260
|
-
provider.id !== IssuesCloudHostIntegrationId.Jira || options?.reliableStateCategory === true;
|
|
1261
|
-
const closed = issue.closedDate != null || (issue.state?.category === 'DONE' && reliableStateCategory);
|
|
1262
|
-
|
|
1263
|
-
return {
|
|
1264
|
-
type: 'issue',
|
|
1265
|
-
provider: provider,
|
|
1266
|
-
// `id` is the provider's display number/key (GitHub number, Jira/Linear key, Trello idShort), NOT a
|
|
1267
|
-
// globally-unique id: it's rendered to users as `#{id}`, used to build branch names, and passed back
|
|
1268
|
-
// to the provider as the `getIssue`/cache lookup key, all of which expect the number. `nodeId` is the
|
|
1269
|
-
// provider-native stable id, but its uniqueness scope is provider-specific (Azure work-item ids are
|
|
1270
|
-
// organization-scoped), so cross-scope consumers must include provider/domain/container identity too.
|
|
1271
|
-
// provider-apis declares this as a string, but some providers (notably
|
|
1272
|
-
// Azure's broadened work-item path) return a number at runtime. Keep the
|
|
1273
|
-
// public IssueShape contract truthful for consumers that use string APIs.
|
|
1274
|
-
id: toIssueIdentifier(issue.number),
|
|
1275
|
-
nodeId: issue.graphQLId ?? issue.id,
|
|
1276
|
-
title: issue.title,
|
|
1277
|
-
url: issue.url,
|
|
1278
|
-
createdDate: issue.createdDate,
|
|
1279
|
-
updatedDate: issue.updatedDate,
|
|
1280
|
-
closedDate: issue.closedDate ?? undefined,
|
|
1281
|
-
closed: closed,
|
|
1282
|
-
state: closed ? 'closed' : 'opened',
|
|
1283
|
-
providerState: toIssueProviderState(issue.state, reliableStateCategory),
|
|
1284
|
-
author: {
|
|
1285
|
-
id: issue.author?.id ?? '',
|
|
1286
|
-
// An absent name stays absent, matching {@link fromProviderAccount}; see `IssueMember.name`.
|
|
1287
|
-
name: issue.author?.name ?? undefined,
|
|
1288
|
-
avatarUrl: issue.author?.avatarUrl ?? undefined,
|
|
1289
|
-
url: issue.author?.url ?? undefined,
|
|
1290
|
-
},
|
|
1291
|
-
assignees:
|
|
1292
|
-
issue.assignees?.map(assignee => ({
|
|
1293
|
-
id: assignee.id ?? '',
|
|
1294
|
-
name: assignee.name ?? undefined,
|
|
1295
|
-
avatarUrl: assignee.avatarUrl ?? undefined,
|
|
1296
|
-
url: assignee.url ?? undefined,
|
|
1297
|
-
})) ?? [],
|
|
1298
|
-
project:
|
|
1299
|
-
issue.project?.id && issue.project.resourceId && issue.project.namespace
|
|
1300
|
-
? {
|
|
1301
|
-
id: issue.project.id,
|
|
1302
|
-
name: issue.project.name,
|
|
1303
|
-
resourceId: issue.project.resourceId,
|
|
1304
|
-
resourceName: issue.project.namespace,
|
|
1305
|
-
}
|
|
1306
|
-
: undefined,
|
|
1307
|
-
repository:
|
|
1308
|
-
issue.repository?.owner?.login != null
|
|
1309
|
-
? {
|
|
1310
|
-
owner: issue.repository.owner.login,
|
|
1311
|
-
repo: issue.repository.name,
|
|
1312
|
-
id: issue.repository.id,
|
|
1313
|
-
}
|
|
1314
|
-
: undefined,
|
|
1315
|
-
labels: issue.labels.map(label => ({ color: label.color ?? undefined, name: label.name })),
|
|
1316
|
-
commentsCount: issue.commentCount ?? undefined,
|
|
1317
|
-
thumbsUpCount: issue.upvoteCount ?? undefined,
|
|
1318
|
-
body: issue.description ?? undefined,
|
|
1319
|
-
bodyFormat: provider.id === IssuesCloudHostIntegrationId.Jira ? 'jira-wiki' : undefined,
|
|
1320
|
-
issueType: issue.type ?? undefined,
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Maps a raw provider-apis {@link ProviderRepository} to the GitLens-owned {@link ProviderRepositoryShape}
|
|
1326
|
-
* the ProviderBackend `listRepos` facade surfaces, so consumers don't depend on the SDK repo type. The SDK's
|
|
1327
|
-
* nullable fields (`webUrl`/`httpsUrl`/`sshUrl`/`defaultBranch`) collapse to `undefined`, matching the
|
|
1328
|
-
* `?? undefined` convention in {@link toIssueShape}/{@link toAccount}.
|
|
1329
|
-
*/
|
|
1330
|
-
export function toProviderRepositoryShape(repo: ProviderRepository): ProviderRepositoryShape {
|
|
1331
|
-
return {
|
|
1332
|
-
id: repo.id,
|
|
1333
|
-
namespace: repo.namespace,
|
|
1334
|
-
name: repo.name,
|
|
1335
|
-
project: repo.project ?? undefined,
|
|
1336
|
-
url: repo.webUrl ?? undefined,
|
|
1337
|
-
cloneUrlHttps: repo.httpsUrl ?? undefined,
|
|
1338
|
-
cloneUrlSsh: repo.sshUrl ?? undefined,
|
|
1339
|
-
defaultBranch: repo.defaultBranch?.name ?? undefined,
|
|
1340
|
-
};
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
export function issueFilterToReason(filter: IssueFilter): 'authored' | 'assigned' | 'mentioned' {
|
|
1344
|
-
switch (filter) {
|
|
1345
|
-
case IssueFilter.Author:
|
|
1346
|
-
return 'authored';
|
|
1347
|
-
case IssueFilter.Assignee:
|
|
1348
|
-
return 'assigned';
|
|
1349
|
-
case IssueFilter.Mention:
|
|
1350
|
-
return 'mentioned';
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
export function toAccount(account: ProviderAccount, provider: ProviderReference): UserAccount {
|
|
1355
|
-
return {
|
|
1356
|
-
provider: provider,
|
|
1357
|
-
id: account.id,
|
|
1358
|
-
name: account.name ?? undefined,
|
|
1359
|
-
email: account.email ?? undefined,
|
|
1360
|
-
avatarUrl: account.avatarUrl ?? undefined,
|
|
1361
|
-
username: account.username ?? undefined,
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
export const toProviderBuildStatusState = {
|
|
1366
|
-
[PullRequestStatusCheckRollupState.Success]: GitBuildStatusState.Success,
|
|
1367
|
-
[PullRequestStatusCheckRollupState.Failed]: GitBuildStatusState.Failed,
|
|
1368
|
-
[PullRequestStatusCheckRollupState.Pending]: GitBuildStatusState.Pending,
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
export const fromProviderBuildStatusState = {
|
|
1372
|
-
[GitBuildStatusState.Success]: PullRequestStatusCheckRollupState.Success,
|
|
1373
|
-
[GitBuildStatusState.Failed]: PullRequestStatusCheckRollupState.Failed,
|
|
1374
|
-
[GitBuildStatusState.Pending]: PullRequestStatusCheckRollupState.Pending,
|
|
1375
|
-
[GitBuildStatusState.ActionRequired]: PullRequestStatusCheckRollupState.Failed,
|
|
1376
|
-
// TODO: The rest of these are defaulted because we don't have a matching state for them
|
|
1377
|
-
[GitBuildStatusState.Error]: undefined,
|
|
1378
|
-
[GitBuildStatusState.Cancelled]: undefined,
|
|
1379
|
-
[GitBuildStatusState.OptionalActionRequired]: undefined,
|
|
1380
|
-
[GitBuildStatusState.Skipped]: undefined,
|
|
1381
|
-
[GitBuildStatusState.Running]: undefined,
|
|
1382
|
-
[GitBuildStatusState.Warning]: undefined,
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
/** Rolls every check context up into one state, the way a provider's own rollup does: failed, errored, or
|
|
1386
|
-
* action-required fails; else pending or running is pending; else success — reading only the first context
|
|
1387
|
-
* would call a pull request passing on the strength of whichever check happens to come back first. States
|
|
1388
|
-
* carrying no verdict (cancelled, skipped, optional action required, warning) don't vote. Reads the raw
|
|
1389
|
-
* state rather than `fromProviderBuildStatusState`, which drops errored and running to `undefined` and
|
|
1390
|
-
* would let a lone success outvote a check still in flight. */
|
|
1391
|
-
function toStatusCheckRollupState(
|
|
1392
|
-
statuses: GitBuildStatus[] | null | undefined,
|
|
1393
|
-
): PullRequestStatusCheckRollupState | undefined {
|
|
1394
|
-
if (!statuses?.length) return undefined;
|
|
1395
|
-
|
|
1396
|
-
let rollup: PullRequestStatusCheckRollupState | undefined;
|
|
1397
|
-
for (const { state } of statuses) {
|
|
1398
|
-
switch (state) {
|
|
1399
|
-
case GitBuildStatusState.Failed:
|
|
1400
|
-
case GitBuildStatusState.Error:
|
|
1401
|
-
case GitBuildStatusState.ActionRequired:
|
|
1402
|
-
return PullRequestStatusCheckRollupState.Failed;
|
|
1403
|
-
case GitBuildStatusState.Pending:
|
|
1404
|
-
case GitBuildStatusState.Running:
|
|
1405
|
-
rollup = PullRequestStatusCheckRollupState.Pending;
|
|
1406
|
-
break;
|
|
1407
|
-
case GitBuildStatusState.Success:
|
|
1408
|
-
rollup ??= PullRequestStatusCheckRollupState.Success;
|
|
1409
|
-
break;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
return rollup;
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
export const toProviderPullRequestMergeableState = {
|
|
1416
|
-
[PullRequestMergeableState.Mergeable]: GitPullRequestMergeableState.Mergeable,
|
|
1417
|
-
[PullRequestMergeableState.Conflicting]: GitPullRequestMergeableState.Conflicts,
|
|
1418
|
-
[PullRequestMergeableState.Unknown]: GitPullRequestMergeableState.Unknown,
|
|
1419
|
-
[PullRequestMergeableState.FailingChecks]: GitPullRequestMergeableState.FailingChecks,
|
|
1420
|
-
[PullRequestMergeableState.BlockedByPolicy]: GitPullRequestMergeableState.Blocked,
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
export const fromProviderPullRequestMergeableState = {
|
|
1424
|
-
[GitPullRequestMergeableState.Mergeable]: PullRequestMergeableState.Mergeable,
|
|
1425
|
-
[GitPullRequestMergeableState.Conflicts]: PullRequestMergeableState.Conflicting,
|
|
1426
|
-
[GitPullRequestMergeableState.Blocked]: PullRequestMergeableState.BlockedByPolicy,
|
|
1427
|
-
[GitPullRequestMergeableState.FailingChecks]: PullRequestMergeableState.FailingChecks,
|
|
1428
|
-
[GitPullRequestMergeableState.Unknown]: PullRequestMergeableState.Unknown,
|
|
1429
|
-
[GitPullRequestMergeableState.Behind]: PullRequestMergeableState.Unknown,
|
|
1430
|
-
[GitPullRequestMergeableState.UnknownAndBlocked]: PullRequestMergeableState.Unknown,
|
|
1431
|
-
[GitPullRequestMergeableState.Unstable]: PullRequestMergeableState.Unknown,
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
export function toProviderPullRequestState(state: PullRequestState): GitPullRequestState {
|
|
1435
|
-
return state === 'opened'
|
|
1436
|
-
? GitPullRequestState.Open
|
|
1437
|
-
: state === 'closed'
|
|
1438
|
-
? GitPullRequestState.Closed
|
|
1439
|
-
: GitPullRequestState.Merged;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
export function fromProviderPullRequestState(state: GitPullRequestState): PullRequestState {
|
|
1443
|
-
return state === GitPullRequestState.Open ? 'opened' : state === GitPullRequestState.Closed ? 'closed' : 'merged';
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
type PullRequestStateInput = PullRequestState | PullRequestStateFilter;
|
|
1447
|
-
|
|
1448
|
-
function toProviderPullRequestStatesCore(state: PullRequestStateInput): GitPullRequestState[] {
|
|
1449
|
-
switch (state) {
|
|
1450
|
-
case 'open':
|
|
1451
|
-
case 'opened':
|
|
1452
|
-
return [GitPullRequestState.Open];
|
|
1453
|
-
case 'closed':
|
|
1454
|
-
return [GitPullRequestState.Closed];
|
|
1455
|
-
case 'merged':
|
|
1456
|
-
return [GitPullRequestState.Merged];
|
|
1457
|
-
case 'all':
|
|
1458
|
-
return [GitPullRequestState.Open, GitPullRequestState.Closed, GitPullRequestState.Merged];
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
/** Maps PR include/state filters to the SDK's `states` input. `undefined`/omitted preserves the open-only default. */
|
|
1463
|
-
export function toProviderPullRequestStates(
|
|
1464
|
-
state: PullRequestStateInput | PullRequestStateInput[] | undefined,
|
|
1465
|
-
): GitPullRequestState[] | undefined {
|
|
1466
|
-
if (state == null) return undefined;
|
|
1467
|
-
|
|
1468
|
-
const states = (Array.isArray(state) ? state : [state]).flatMap(s => toProviderPullRequestStatesCore(s));
|
|
1469
|
-
return states.length > 0 ? [...new Set(states)] : undefined;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
/** Maps an issue state filter to the SDK's `states` input. `undefined`/omitted preserves the open-only default. */
|
|
1473
|
-
export function toProviderIssueStates(state: IssueStateFilter | undefined): GitIssueState[] | undefined {
|
|
1474
|
-
switch (state) {
|
|
1475
|
-
case 'open':
|
|
1476
|
-
return [GitIssueState.Open];
|
|
1477
|
-
case 'closed':
|
|
1478
|
-
return [GitIssueState.Closed];
|
|
1479
|
-
case 'all':
|
|
1480
|
-
return [GitIssueState.Open, GitIssueState.Closed];
|
|
1481
|
-
default:
|
|
1482
|
-
return undefined;
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
/**
|
|
1487
|
-
* Resolves a normalized {@link ProviderScope} to the provider-appropriate read inputs, dispatching on the
|
|
1488
|
-
* provider's {@link PagingMode} (the authoritative per-provider scoping selector). Project-mode providers
|
|
1489
|
-
* (Azure issues, Jira) produce `projectInputs` from `org` + `project`; repo/repos-mode providers produce a
|
|
1490
|
-
* repo `GetRepoInput[]` from `scope.repos` (carrying `project` where relevant, e.g. Azure). This is the
|
|
1491
|
-
* single public entry point consumers can use instead of hand-building the three underlying representations.
|
|
1492
|
-
*/
|
|
1493
|
-
export function resolveProviderScope(
|
|
1494
|
-
scope: ProviderScope,
|
|
1495
|
-
pagingMode: PagingMode | undefined,
|
|
1496
|
-
): { reposInput?: GetRepoInput[]; projectInputs?: { namespace: string; project: string }[] } {
|
|
1497
|
-
if (pagingMode === PagingMode.Project) {
|
|
1498
|
-
if (scope.org != null && scope.project != null) {
|
|
1499
|
-
return { projectInputs: [{ namespace: scope.org, project: scope.project }] };
|
|
1500
|
-
}
|
|
1501
|
-
return {};
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
const reposInput = scope.repos?.map(r => ({ namespace: r.owner, name: r.name, project: scope.project }));
|
|
1505
|
-
return { reposInput: reposInput };
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
export function providerPullRequestMatchesSearch(pr: ProviderPullRequest, search: string): boolean {
|
|
1509
|
-
const term = search.trim().toLowerCase();
|
|
1510
|
-
if (term.length === 0) return true;
|
|
1511
|
-
|
|
1512
|
-
return pr.title.toLowerCase().includes(term) || (pr.description?.toLowerCase().includes(term) ?? false);
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
function toProviderRemoteInfo(ref: PullRequestRef | undefined): GitRepositoryRemoteInfo | null {
|
|
1516
|
-
// Match the SDK convention: only populate remoteInfo when both clone URLs are known.
|
|
1517
|
-
return ref?.cloneHttps && ref?.cloneSsh ? { cloneUrlHTTPS: ref.cloneHttps, cloneUrlSSH: ref.cloneSsh } : null;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export function toProviderPullRequest(pr: PullRequest): ProviderPullRequest {
|
|
1521
|
-
const prReviews = [...(pr.reviewRequests ?? []), ...(pr.latestReviews ?? [])];
|
|
1522
|
-
return {
|
|
1523
|
-
id: pr.id,
|
|
1524
|
-
graphQLId: pr.nodeId,
|
|
1525
|
-
number: pr.number ?? Number.parseInt(pr.id, 10),
|
|
1526
|
-
title: pr.title,
|
|
1527
|
-
description: pr.body ?? null,
|
|
1528
|
-
url: pr.url,
|
|
1529
|
-
state: toProviderPullRequestState(pr.state),
|
|
1530
|
-
isCrossRepository: pr.refs?.isCrossRepository ?? false,
|
|
1531
|
-
isDraft: pr.isDraft ?? false,
|
|
1532
|
-
createdDate: pr.createdDate,
|
|
1533
|
-
updatedDate: pr.updatedDate,
|
|
1534
|
-
closedDate: pr.closedDate ?? null,
|
|
1535
|
-
mergedDate: pr.mergedDate ?? null,
|
|
1536
|
-
commentCount: pr.commentsCount ?? null,
|
|
1537
|
-
upvoteCount: pr.thumbsUpCount ?? null,
|
|
1538
|
-
commitCount: pr.commitCount ?? null,
|
|
1539
|
-
fileCount: null,
|
|
1540
|
-
additions: pr.additions ?? null,
|
|
1541
|
-
deletions: pr.deletions ?? null,
|
|
1542
|
-
author: toProviderAccount(pr.author),
|
|
1543
|
-
assignees: pr.assignees?.map(toProviderAccount) ?? null,
|
|
1544
|
-
baseRef:
|
|
1545
|
-
pr.refs?.base == null
|
|
1546
|
-
? null
|
|
1547
|
-
: {
|
|
1548
|
-
name: pr.refs.base.branch,
|
|
1549
|
-
oid: pr.refs.base.sha,
|
|
1550
|
-
},
|
|
1551
|
-
headRef:
|
|
1552
|
-
pr.refs?.head == null
|
|
1553
|
-
? null
|
|
1554
|
-
: {
|
|
1555
|
-
name: pr.refs.head.branch,
|
|
1556
|
-
oid: pr.refs.head.sha,
|
|
1557
|
-
},
|
|
1558
|
-
// `null` when the source carried no review data at all, rather than the empty array a lite read would
|
|
1559
|
-
// otherwise produce: `toCompletedReviews`/`toReviewRequests` map `null` back to `undefined`, which is what
|
|
1560
|
-
// lets a consumer tell "nobody has reviewed this" from "this read never fetched reviews" (see
|
|
1561
|
-
// `PullRequestShape.latestReviews`). An empty array from a full projection stays an empty array.
|
|
1562
|
-
reviews: pr.reviewRequests == null && pr.latestReviews == null ? null : toProviderReviews(prReviews),
|
|
1563
|
-
reviewDecision: toProviderReviewDecision(pr.reviewDecision, prReviews),
|
|
1564
|
-
repository:
|
|
1565
|
-
pr.repository != null
|
|
1566
|
-
? {
|
|
1567
|
-
id: pr.repository.id ?? '',
|
|
1568
|
-
name: pr.repository.repo,
|
|
1569
|
-
owner: {
|
|
1570
|
-
login: pr.repository.owner,
|
|
1571
|
-
},
|
|
1572
|
-
remoteInfo: toProviderRemoteInfo(pr.refs?.base),
|
|
1573
|
-
}
|
|
1574
|
-
: {
|
|
1575
|
-
id: '',
|
|
1576
|
-
name: '',
|
|
1577
|
-
owner: {
|
|
1578
|
-
login: '',
|
|
1579
|
-
},
|
|
1580
|
-
remoteInfo: null,
|
|
1581
|
-
},
|
|
1582
|
-
headRepository:
|
|
1583
|
-
pr.refs?.head != null
|
|
1584
|
-
? {
|
|
1585
|
-
id: pr.refs.head.repo,
|
|
1586
|
-
name: pr.refs.head.repo,
|
|
1587
|
-
owner: {
|
|
1588
|
-
login: pr.refs.head.owner,
|
|
1589
|
-
},
|
|
1590
|
-
remoteInfo: toProviderRemoteInfo(pr.refs.head),
|
|
1591
|
-
isFork: pr.refs.head.isFork,
|
|
1592
|
-
}
|
|
1593
|
-
: null,
|
|
1594
|
-
headCommit:
|
|
1595
|
-
pr.statusCheckRollupState != null
|
|
1596
|
-
? {
|
|
1597
|
-
buildStatuses: [
|
|
1598
|
-
{
|
|
1599
|
-
completedAt: null,
|
|
1600
|
-
description: '',
|
|
1601
|
-
name: '',
|
|
1602
|
-
state: toProviderBuildStatusState[pr.statusCheckRollupState],
|
|
1603
|
-
startedAt: null,
|
|
1604
|
-
stage: null,
|
|
1605
|
-
url: '',
|
|
1606
|
-
},
|
|
1607
|
-
],
|
|
1608
|
-
}
|
|
1609
|
-
: null,
|
|
1610
|
-
permissions:
|
|
1611
|
-
pr.viewerCanUpdate == null
|
|
1612
|
-
? null
|
|
1613
|
-
: {
|
|
1614
|
-
canMerge:
|
|
1615
|
-
pr.viewerCanUpdate === true &&
|
|
1616
|
-
pr.repository.accessLevel != null &&
|
|
1617
|
-
pr.repository.accessLevel >= RepositoryAccessLevel.Write,
|
|
1618
|
-
canMergeAndBypassProtections:
|
|
1619
|
-
pr.viewerCanUpdate === true &&
|
|
1620
|
-
pr.repository.accessLevel != null &&
|
|
1621
|
-
pr.repository.accessLevel >= RepositoryAccessLevel.Admin,
|
|
1622
|
-
},
|
|
1623
|
-
mergeableState: pr.mergeableState
|
|
1624
|
-
? toProviderPullRequestMergeableState[pr.mergeableState]
|
|
1625
|
-
: GitPullRequestMergeableState.Unknown,
|
|
1626
|
-
};
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
export function fromProviderPullRequest(
|
|
1630
|
-
pr: ProviderPullRequest,
|
|
1631
|
-
provider: Provider,
|
|
1632
|
-
options?: { project?: IssueProject; currentAccountId?: string },
|
|
1633
|
-
): PullRequest {
|
|
1634
|
-
const repository = pr.repository;
|
|
1635
|
-
const repositoryName = repository?.name ?? '';
|
|
1636
|
-
const repositoryOwner = repository?.owner?.login ?? '';
|
|
1637
|
-
const repositoryRemoteInfo = repository?.remoteInfo;
|
|
1638
|
-
const headRepository = pr.headRepository;
|
|
1639
|
-
const headRepositoryRemoteInfo = headRepository?.remoteInfo;
|
|
1640
|
-
|
|
1641
|
-
return new PullRequest(
|
|
1642
|
-
provider,
|
|
1643
|
-
fromProviderAccount(pr.author),
|
|
1644
|
-
pr.id,
|
|
1645
|
-
pr.graphQLId || pr.id,
|
|
1646
|
-
pr.title,
|
|
1647
|
-
pr.url ?? '',
|
|
1648
|
-
{
|
|
1649
|
-
owner: repositoryOwner,
|
|
1650
|
-
repo: repositoryName,
|
|
1651
|
-
// This has to be here until we can take this information from ProviderPullRequest:
|
|
1652
|
-
accessLevel: RepositoryAccessLevel.Write,
|
|
1653
|
-
id: repository?.id ?? '',
|
|
1654
|
-
},
|
|
1655
|
-
fromProviderPullRequestState(pr.state),
|
|
1656
|
-
pr.createdDate,
|
|
1657
|
-
pr.updatedDate,
|
|
1658
|
-
pr.closedDate ?? undefined,
|
|
1659
|
-
pr.mergedDate ?? undefined,
|
|
1660
|
-
pr.mergeableState ? fromProviderPullRequestMergeableState[pr.mergeableState] : undefined,
|
|
1661
|
-
pr.permissions?.canMerge || pr.permissions?.canMergeAndBypassProtections ? true : undefined,
|
|
1662
|
-
{
|
|
1663
|
-
base: {
|
|
1664
|
-
branch: pr.baseRef?.name ?? '',
|
|
1665
|
-
sha: pr.baseRef?.oid ?? '',
|
|
1666
|
-
repo: repositoryName,
|
|
1667
|
-
owner: repositoryOwner,
|
|
1668
|
-
exists: pr.baseRef != null,
|
|
1669
|
-
url: repositoryRemoteInfo?.cloneUrlHTTPS
|
|
1670
|
-
? repositoryRemoteInfo.cloneUrlHTTPS.replace(gitSuffixRegex, '')
|
|
1671
|
-
: '',
|
|
1672
|
-
cloneHttps: repositoryRemoteInfo?.cloneUrlHTTPS || undefined,
|
|
1673
|
-
cloneSsh: repositoryRemoteInfo?.cloneUrlSSH || undefined,
|
|
1674
|
-
},
|
|
1675
|
-
head: {
|
|
1676
|
-
branch: pr.headRef?.name ?? '',
|
|
1677
|
-
sha: pr.headRef?.oid ?? '',
|
|
1678
|
-
repo: headRepository?.name ?? '',
|
|
1679
|
-
owner: headRepository?.owner?.login ?? '',
|
|
1680
|
-
exists: pr.headRef != null,
|
|
1681
|
-
url: headRepositoryRemoteInfo?.cloneUrlHTTPS
|
|
1682
|
-
? headRepositoryRemoteInfo.cloneUrlHTTPS.replace(gitSuffixRegex, '')
|
|
1683
|
-
: '',
|
|
1684
|
-
cloneHttps: headRepositoryRemoteInfo?.cloneUrlHTTPS || undefined,
|
|
1685
|
-
cloneSsh: headRepositoryRemoteInfo?.cloneUrlSSH || undefined,
|
|
1686
|
-
isFork: headRepository?.isFork,
|
|
1687
|
-
},
|
|
1688
|
-
isCrossRepository: pr.isCrossRepository,
|
|
1689
|
-
},
|
|
1690
|
-
pr.isDraft,
|
|
1691
|
-
pr.additions ?? undefined,
|
|
1692
|
-
pr.deletions ?? undefined,
|
|
1693
|
-
pr.commentCount ?? undefined,
|
|
1694
|
-
pr.upvoteCount ?? undefined,
|
|
1695
|
-
pr.reviewDecision ? fromPullRequestReviewDecision[pr.reviewDecision] : undefined,
|
|
1696
|
-
toReviewRequests(pr.reviews),
|
|
1697
|
-
toCompletedReviews(pr.reviews),
|
|
1698
|
-
pr.assignees?.map(fromProviderAccount) ?? undefined,
|
|
1699
|
-
toStatusCheckRollupState(pr.headCommit?.buildStatuses),
|
|
1700
|
-
options?.project,
|
|
1701
|
-
pr.version,
|
|
1702
|
-
pr.commitCount ?? undefined,
|
|
1703
|
-
undefined, // stack — GK's proxy type has no stack concept; membership is joined host-side
|
|
1704
|
-
pr.fileCount ?? undefined,
|
|
1705
|
-
pr.description ?? undefined,
|
|
1706
|
-
pr.number,
|
|
1707
|
-
options?.currentAccountId != null ? pr.author?.id === options.currentAccountId : undefined,
|
|
1708
|
-
);
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
export function fromProviderIssue(
|
|
1712
|
-
issue: ProviderIssue,
|
|
1713
|
-
integration: Integration,
|
|
1714
|
-
options?: { project?: IssueProject },
|
|
1715
|
-
): Issue {
|
|
1716
|
-
const identifier = toIssueIdentifier(issue.number);
|
|
1717
|
-
const closed = issue.closedDate != null || issue.state?.category === 'DONE';
|
|
1718
|
-
return new Issue(
|
|
1719
|
-
integration,
|
|
1720
|
-
identifier,
|
|
1721
|
-
issue.graphQLId ?? issue.id,
|
|
1722
|
-
issue.title,
|
|
1723
|
-
issue.url ?? '',
|
|
1724
|
-
issue.createdDate,
|
|
1725
|
-
issue.updatedDate ?? issue.closedDate ?? issue.createdDate,
|
|
1726
|
-
closed,
|
|
1727
|
-
closed ? 'closed' : 'opened',
|
|
1728
|
-
fromProviderAccount(issue.author),
|
|
1729
|
-
issue.assignees?.map(fromProviderAccount) ?? undefined,
|
|
1730
|
-
issue.repository != null
|
|
1731
|
-
? {
|
|
1732
|
-
owner: issue.repository.owner.login ?? '',
|
|
1733
|
-
repo: issue.repository.name,
|
|
1734
|
-
id: issue.repository.id,
|
|
1735
|
-
}
|
|
1736
|
-
: undefined,
|
|
1737
|
-
issue.closedDate ?? undefined,
|
|
1738
|
-
issue.labels?.map(label => ({ name: label.name, color: label.color ?? undefined })),
|
|
1739
|
-
issue.commentCount ?? undefined,
|
|
1740
|
-
issue.upvoteCount ?? undefined,
|
|
1741
|
-
issue.description ?? undefined,
|
|
1742
|
-
options?.project != null
|
|
1743
|
-
? {
|
|
1744
|
-
id: options.project.id,
|
|
1745
|
-
name: options.project.name,
|
|
1746
|
-
resourceId: options.project.resourceId,
|
|
1747
|
-
resourceName: options.project.resourceName,
|
|
1748
|
-
}
|
|
1749
|
-
: issue.project?.id && issue.project?.resourceId && issue.project?.namespace
|
|
1750
|
-
? {
|
|
1751
|
-
id: issue.project.id,
|
|
1752
|
-
name: issue.project.name,
|
|
1753
|
-
resourceId: issue.project.resourceId,
|
|
1754
|
-
resourceName: issue.project.namespace,
|
|
1755
|
-
}
|
|
1756
|
-
: undefined,
|
|
1757
|
-
identifier,
|
|
1758
|
-
issue.type ?? undefined,
|
|
1759
|
-
toIssueProviderState(issue.state, integration.id !== IssuesCloudHostIntegrationId.Jira),
|
|
1760
|
-
integration.id === IssuesCloudHostIntegrationId.Jira ? 'jira-wiki' : undefined,
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
export function toProviderPullRequestWithUniqueId(pr: PullRequest): PullRequestWithUniqueID {
|
|
1765
|
-
const { reviews, ...providerPr } = toProviderPullRequest(pr);
|
|
1766
|
-
return {
|
|
1767
|
-
...providerPr,
|
|
1768
|
-
// The SDK boundary: `getActionablePullRequests` categorizes by review state and only knows
|
|
1769
|
-
// provider-apis' own vocabulary, so the locally-added dismissed state is dropped here rather than
|
|
1770
|
-
// handed over as a value it would fall through on. Our own projection keeps it — see
|
|
1771
|
-
// `providerPullRequestReviewStateDismissed`. `commitOid` rides along on the surviving reviews: it is an
|
|
1772
|
-
// extra property the SDK ignores, not a value it could misread.
|
|
1773
|
-
reviews:
|
|
1774
|
-
reviews?.filter(
|
|
1775
|
-
(r): r is ProviderPullRequestReview & { state: GitPullRequestReviewState } =>
|
|
1776
|
-
r.state !== providerPullRequestReviewStateDismissed,
|
|
1777
|
-
) ?? null,
|
|
1778
|
-
uuid: EntityIdentifierUtils.encode(getEntityIdentifierInput(pr)),
|
|
1779
|
-
};
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
export type ProviderActionablePullRequest = ActionablePullRequest;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* Built on the SDK's `GitPullRequest`, NOT the local {@link ProviderPullRequest} widening: this is handed to
|
|
1786
|
-
* `getActionablePullRequests`, which categorizes by review state and only knows provider-apis' vocabulary.
|
|
1787
|
-
* {@link toProviderPullRequestWithUniqueId} is what narrows `reviews` down to it.
|
|
1788
|
-
*/
|
|
1789
|
-
export type EnrichablePullRequest = GitPullRequest & {
|
|
1790
|
-
uuid: string;
|
|
1791
|
-
type: 'pullrequest';
|
|
1792
|
-
provider: ProviderReference;
|
|
1793
|
-
enrichable: EnrichableItem;
|
|
1794
|
-
repoIdentity: PullRequestRepositoryIdentityDescriptor;
|
|
1795
|
-
refs?: PullRequestRefs;
|
|
1796
|
-
underlyingPullRequest: PullRequest;
|
|
1797
|
-
};
|
|
1798
|
-
|
|
1799
|
-
export const getActionablePullRequests = GitProviderUtils.getActionablePullRequests;
|
|
1800
|
-
|
|
1801
|
-
export type GitConfigEntityIdentifier = AnyEntityIdentifierInput & {
|
|
1802
|
-
metadata: {
|
|
1803
|
-
id: string;
|
|
1804
|
-
owner: { key: string; name: string; id: string | undefined; owner: string | undefined };
|
|
1805
|
-
createdDate: string;
|
|
1806
|
-
isCloudEnterprise?: boolean;
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
|
|
1810
|
-
export function isGitHubDotCom(domain: string | null | undefined): boolean {
|
|
1811
|
-
return equalsIgnoreCase(domain, 'github.com');
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export function isGitLabDotCom(domain: string | null | undefined): boolean {
|
|
1815
|
-
return equalsIgnoreCase(domain, 'gitlab.com');
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
// Anchor the `visualstudio.com` alternative on a label boundary (`^` or `.`) rather than `\b`: `\b` treats a
|
|
1819
|
-
// hyphen as a word boundary, so `\bvisualstudio\.com$` matched attacker-controlled hosts like
|
|
1820
|
-
// `evil-visualstudio.com` and classified them as Azure cloud, changing their auth/URL handling.
|
|
1821
|
-
const azureCloudDomainRegex = /^dev\.azure\.com$|(?:^|\.)visualstudio\.com$/i;
|
|
1822
|
-
export function isAzureCloudDomain(domain: string | undefined): boolean {
|
|
1823
|
-
return domain != null && azureCloudDomainRegex.test(domain);
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
const bitbucketCloudDomainRegex = /^bitbucket\.org$/i;
|
|
1827
|
-
export function isBitbucketCloudDomain(domain: string | undefined): boolean {
|
|
1828
|
-
return domain != null && bitbucketCloudDomainRegex.test(domain);
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
export function supportsCodeSuggest(provider: ProviderReference): boolean {
|
|
1832
|
-
return isGitHubDotCom(provider.domain);
|
|
1833
|
-
}
|