@gitkraken/core-gitlens 0.5.116 → 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 +32 -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 +174 -140
- package/dist/git/models/issue.js +86 -84
- 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 -230
- 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 +49 -38
- package/dist/git/remotes/azure-devops.js +254 -224
- 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 -149
- 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 -54
- package/dist/plus/integrations/providers/azure/azure.js +453 -515
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +258 -229
- package/dist/plus/integrations/providers/azure/models.js +241 -203
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -130
- package/dist/plus/integrations/providers/azureDevOps.js +775 -921
- 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 +818 -856
- 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 -229
- 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 +101 -24
- package/docs/kepler-read-api-parity.md +15 -12
- 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 -258
- 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 -353
- 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 -307
- 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 -177
- 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 -822
- package/src/plus/integrations/providers/azure/models.ts +0 -621
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1346
- 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 -1816
- 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 -272
- 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,1346 +0,0 @@
|
|
|
1
|
-
import type { CollectionMetadata, CollectionScope, CollectionScopeFailure } from '@gitkraken/provider-apis';
|
|
2
|
-
import type { Account, UnidentifiedAuthor } from '../../../git/models/author.js';
|
|
3
|
-
import type { DefaultBranch } from '../../../git/models/defaultBranch.js';
|
|
4
|
-
import type { Issue, IssueShape } from '../../../git/models/issue.js';
|
|
5
|
-
import type { IssueOrPullRequest, IssueOrPullRequestType } from '../../../git/models/issueOrPullRequest.js';
|
|
6
|
-
import type {
|
|
7
|
-
PullRequest,
|
|
8
|
-
PullRequestMergeMethod,
|
|
9
|
-
PullRequestState,
|
|
10
|
-
PullRequestStateFilter,
|
|
11
|
-
} from '../../../git/models/pullRequest.js';
|
|
12
|
-
import type { RepositoryMetadata } from '../../../git/models/repositoryMetadata.js';
|
|
13
|
-
import type { ResourceDescriptor } from '../../../git/models/resourceDescriptor.js';
|
|
14
|
-
import { base64 } from '../../../utils/base64.js';
|
|
15
|
-
import { CancellationError } from '../../../utils/cancellation.js';
|
|
16
|
-
import type { Emitter } from '../../../utils/event.js';
|
|
17
|
-
import { mapSettledBounded } from '../../../utils/promise.js';
|
|
18
|
-
import type { IntegrationAuthenticationProviderDescriptor } from '../authentication/integrationAuthenticationProvider.js';
|
|
19
|
-
import type { IntegrationAuthenticationService } from '../authentication/integrationAuthenticationService.js';
|
|
20
|
-
import type {
|
|
21
|
-
AuthenticationSessionLike as AuthenticationSession,
|
|
22
|
-
ProviderAuthenticationSession,
|
|
23
|
-
TokenWithInfo,
|
|
24
|
-
} from '../authentication/models.js';
|
|
25
|
-
import { toTokenWithInfo } from '../authentication/models.js';
|
|
26
|
-
import { toCollectionScopeFailure } from '../collectionMetadata.js';
|
|
27
|
-
import { GitCloudHostIntegrationId, GitSelfManagedHostIntegrationId, providerFanOutConcurrency } from '../constants.js';
|
|
28
|
-
import type { IntegrationServiceContext } from '../context.js';
|
|
29
|
-
import type { IntegrationConnectionChangeEvent } from '../integrationService.js';
|
|
30
|
-
import type { SearchMyPullRequestsOptions, SearchPullRequestsOptions } from '../models/gitHostIntegration.js';
|
|
31
|
-
import { GitHostIntegration } from '../models/gitHostIntegration.js';
|
|
32
|
-
import type { AccountWideIssuesResult, IntegrationKey, SearchMyIssuesOptions } from '../models/integration.js';
|
|
33
|
-
import type {
|
|
34
|
-
AzureOrganizationDescriptor,
|
|
35
|
-
AzureProjectDescriptor,
|
|
36
|
-
AzureProjectInputDescriptor,
|
|
37
|
-
AzureRemoteRepositoryDescriptor,
|
|
38
|
-
AzureRepositoryDescriptor,
|
|
39
|
-
} from './azure/models.js';
|
|
40
|
-
import type {
|
|
41
|
-
ProviderApiCollectionResult,
|
|
42
|
-
ProviderApiPagedResult,
|
|
43
|
-
ProviderHierarchyResult,
|
|
44
|
-
ProviderOrganization,
|
|
45
|
-
ProviderPullRequest,
|
|
46
|
-
ProviderRepoInput,
|
|
47
|
-
ProviderRepository,
|
|
48
|
-
} from './models.js';
|
|
49
|
-
import {
|
|
50
|
-
fromProviderIssue,
|
|
51
|
-
fromProviderPullRequest,
|
|
52
|
-
getProviderPullRequestIdentity,
|
|
53
|
-
IssueFilter,
|
|
54
|
-
providerPullRequestMatchesSearch,
|
|
55
|
-
providersMetadata,
|
|
56
|
-
PullRequestFilter,
|
|
57
|
-
toProviderPullRequestStates,
|
|
58
|
-
} from './models.js';
|
|
59
|
-
import type { ProvidersApi } from './providersApi.js';
|
|
60
|
-
import {
|
|
61
|
-
collectProviderPagedResult,
|
|
62
|
-
flatSettledResultsOrThrow,
|
|
63
|
-
mergeCollectionMetadata,
|
|
64
|
-
} from './utils/providerPaging.js';
|
|
65
|
-
|
|
66
|
-
function getAzureRepositoryIdentity(repo: Pick<AzureRepositoryDescriptor, 'owner' | 'name' | 'project'>): {
|
|
67
|
-
resourceName: string;
|
|
68
|
-
projectName?: string;
|
|
69
|
-
repositoryName: string;
|
|
70
|
-
} {
|
|
71
|
-
const match = /^([^/]+)\/_git\/([^/]+)$/i.exec(repo.name);
|
|
72
|
-
return {
|
|
73
|
-
resourceName: repo.owner,
|
|
74
|
-
projectName: repo.project ?? match?.[1],
|
|
75
|
-
repositoryName: match?.[2] ?? repo.name,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Matches an org/project descriptor against a caller-supplied name, mirroring the facade's own
|
|
81
|
-
* key/id/name comparison so `listIssuesPage({ org, project })` narrows on the same identifiers a consumer
|
|
82
|
-
* already got back from `listOrgs`/`listProjects`.
|
|
83
|
-
*/
|
|
84
|
-
function azureResourceMatches(resource: { key?: string; id?: string; name?: string }, value: string): boolean {
|
|
85
|
-
return resource.key === value || resource.id === value || resource.name === value;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export abstract class AzureDevOpsIntegrationBase<
|
|
89
|
-
TIntegrationId extends GitCloudHostIntegrationId.AzureDevOps | GitSelfManagedHostIntegrationId.AzureDevOpsServer,
|
|
90
|
-
TRepositoryDescriptor extends AzureRepositoryDescriptor = AzureRepositoryDescriptor,
|
|
91
|
-
> extends GitHostIntegration<TIntegrationId, TRepositoryDescriptor> {
|
|
92
|
-
protected abstract get apiBaseUrl(): string;
|
|
93
|
-
protected getApiOptions(
|
|
94
|
-
session: ProviderAuthenticationSession,
|
|
95
|
-
doNotConvertToPat: boolean = false,
|
|
96
|
-
): {
|
|
97
|
-
tokenWithInfo: TokenWithInfo<TIntegrationId>;
|
|
98
|
-
options: { isPAT: boolean; baseUrl?: string };
|
|
99
|
-
} {
|
|
100
|
-
const usePat = !doNotConvertToPat;
|
|
101
|
-
const accessToken = usePat ? convertTokentoPAT(session.accessToken) : session.accessToken;
|
|
102
|
-
const tokenWithInfo = toTokenWithInfo<TIntegrationId>(this.id, session, accessToken);
|
|
103
|
-
return {
|
|
104
|
-
tokenWithInfo: tokenWithInfo,
|
|
105
|
-
options: { isPAT: usePat },
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
private _accounts: Map<string, Account | undefined> | undefined;
|
|
110
|
-
protected override async getProviderCurrentAccount(
|
|
111
|
-
session: ProviderAuthenticationSession,
|
|
112
|
-
): Promise<Account | undefined> {
|
|
113
|
-
const { accessToken } = session;
|
|
114
|
-
this._accounts ??= new Map<string, Account | undefined>();
|
|
115
|
-
|
|
116
|
-
const cachedAccount = this._accounts.get(accessToken);
|
|
117
|
-
if (cachedAccount == null) {
|
|
118
|
-
const user = await this._requestForCurrentUser(session);
|
|
119
|
-
this._accounts.set(accessToken, user);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return this._accounts.get(accessToken);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
protected async _requestForCurrentUser(session: ProviderAuthenticationSession): Promise<Account | undefined> {
|
|
126
|
-
const api = await this.getProvidersApi();
|
|
127
|
-
const { tokenWithInfo, options } = this.getApiOptions(session, true);
|
|
128
|
-
const user = await api.getCurrentUser(tokenWithInfo, options);
|
|
129
|
-
return user
|
|
130
|
-
? {
|
|
131
|
-
provider: this,
|
|
132
|
-
id: user.id,
|
|
133
|
-
name: user.name ?? undefined,
|
|
134
|
-
email: user.email ?? undefined,
|
|
135
|
-
avatarUrl: user.avatarUrl ?? undefined,
|
|
136
|
-
username: user.username ?? undefined,
|
|
137
|
-
}
|
|
138
|
-
: undefined;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
private _organizations: Map<string, AzureOrganizationDescriptor[] | undefined> | undefined;
|
|
142
|
-
private async getProviderResourcesForUser(
|
|
143
|
-
session: ProviderAuthenticationSession,
|
|
144
|
-
force: boolean = false,
|
|
145
|
-
): Promise<AzureOrganizationDescriptor[] | undefined> {
|
|
146
|
-
this._organizations ??= new Map<string, AzureOrganizationDescriptor[] | undefined>();
|
|
147
|
-
const { accessToken } = session;
|
|
148
|
-
const cachedResources = this._organizations.get(accessToken);
|
|
149
|
-
|
|
150
|
-
if (cachedResources == null || force) {
|
|
151
|
-
const api = await this.getProvidersApi();
|
|
152
|
-
const account = await this.getProviderCurrentAccount(session);
|
|
153
|
-
if (account?.id == null) return undefined;
|
|
154
|
-
|
|
155
|
-
const { tokenWithInfo, options } = this.getApiOptions(session);
|
|
156
|
-
const resources = await api.getAzureResourcesForUser(tokenWithInfo, account.id, options);
|
|
157
|
-
this._organizations.set(
|
|
158
|
-
accessToken,
|
|
159
|
-
resources != null ? resources.map(r => ({ ...r, key: r.id })) : undefined,
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
return this._organizations.get(accessToken);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
private _projects: Map<string, AzureProjectDescriptor[] | undefined> | undefined;
|
|
167
|
-
/**
|
|
168
|
-
* Discovers (and caches) each resource's projects. Only resources whose drain completed cleanly are cached;
|
|
169
|
-
* a rejected or backstop-truncated drain is left uncached (retried next call). When `failures` is supplied,
|
|
170
|
-
* a rejected resource is recorded there as a structured {@link CollectionScopeFailure} so an account-wide
|
|
171
|
-
* caller can surface the incomplete project set (a whole org's PRs/issues silently missing otherwise) as a
|
|
172
|
-
* scope-aware warning + `fetchFailed` rather than an all-pages success over a hole.
|
|
173
|
-
*/
|
|
174
|
-
private async getProviderProjectsForResources(
|
|
175
|
-
session: ProviderAuthenticationSession,
|
|
176
|
-
resources: AzureOrganizationDescriptor[],
|
|
177
|
-
force: boolean = false,
|
|
178
|
-
failures?: CollectionScopeFailure[],
|
|
179
|
-
): Promise<ProviderApiCollectionResult<AzureProjectDescriptor>> {
|
|
180
|
-
this._projects ??= new Map<string, AzureProjectDescriptor[] | undefined>();
|
|
181
|
-
const { accessToken } = session;
|
|
182
|
-
|
|
183
|
-
let resourcesWithoutProjects = [];
|
|
184
|
-
if (force) {
|
|
185
|
-
resourcesWithoutProjects = resources;
|
|
186
|
-
} else {
|
|
187
|
-
for (const resource of resources) {
|
|
188
|
-
const resourceKey = `${accessToken}:${resource.id}`;
|
|
189
|
-
const cachedProjects = this._projects.get(resourceKey);
|
|
190
|
-
if (cachedProjects == null) {
|
|
191
|
-
resourcesWithoutProjects.push(resource);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
const allProjects: AzureProjectDescriptor[] = [];
|
|
197
|
-
let resultMetadata: CollectionMetadata | undefined;
|
|
198
|
-
|
|
199
|
-
if (resourcesWithoutProjects.length > 0) {
|
|
200
|
-
const api = await this.getProvidersApi();
|
|
201
|
-
const { tokenWithInfo, options } = this.getApiOptions(session);
|
|
202
|
-
// The projects API is paginated; a single call would drop every project past the first page (and
|
|
203
|
-
// with it their repos and PRs). Drain all pages per resource, threading the returned cursor.
|
|
204
|
-
// Per-resource (not a shared flatSettled) so a resource whose drain was truncated (hit the paging
|
|
205
|
-
// backstop) or rejected is NOT cached — caching a partial list here would make every later repo/PR/
|
|
206
|
-
// issue read for that org silently inherit an incomplete project set. Leaving it uncached means the
|
|
207
|
-
// next call retries it. The scope is passed so a page-level failure preserves the prefix already
|
|
208
|
-
// fetched and records a structured failure instead of re-throwing.
|
|
209
|
-
const drains = await Promise.allSettled(
|
|
210
|
-
resourcesWithoutProjects.map(async resource => ({
|
|
211
|
-
resource: resource,
|
|
212
|
-
result: await collectProviderPagedResult(
|
|
213
|
-
cursor =>
|
|
214
|
-
api.getAzureProjectsForResource(tokenWithInfo, resource.name, {
|
|
215
|
-
...options,
|
|
216
|
-
cursor: cursor,
|
|
217
|
-
}),
|
|
218
|
-
20,
|
|
219
|
-
{ providerId: this.id, resourceId: resource.id },
|
|
220
|
-
),
|
|
221
|
-
})),
|
|
222
|
-
);
|
|
223
|
-
|
|
224
|
-
// `allSettled` preserves order, so `drains[i]` is `resourcesWithoutProjects[i]`.
|
|
225
|
-
drains.forEach((drain, i) => {
|
|
226
|
-
// A rejected resource drain contributes nothing and is left uncached (retried next call). Record
|
|
227
|
-
// it as a structured failure so an account-wide caller can warn on the org whose projects (and
|
|
228
|
-
// thus PRs/issues) are missing, instead of silently narrowing the read.
|
|
229
|
-
if (drain.status !== 'fulfilled') {
|
|
230
|
-
const resource = resourcesWithoutProjects[i];
|
|
231
|
-
const failure = toCollectionScopeFailure(
|
|
232
|
-
{ providerId: this.id, resourceId: resource.id },
|
|
233
|
-
drain.reason,
|
|
234
|
-
);
|
|
235
|
-
failures?.push(failure);
|
|
236
|
-
resultMetadata = mergeCollectionMetadata(resultMetadata, {
|
|
237
|
-
completeness: 'partial',
|
|
238
|
-
failures: [failure],
|
|
239
|
-
});
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
const { resource, result } = drain.value;
|
|
244
|
-
const projects = result.values
|
|
245
|
-
.filter(p => p.namespace === resource.name)
|
|
246
|
-
.map(p => ({
|
|
247
|
-
id: p.id,
|
|
248
|
-
name: p.name,
|
|
249
|
-
resourceId: resource.id,
|
|
250
|
-
resourceName: resource.name,
|
|
251
|
-
key: p.id,
|
|
252
|
-
}));
|
|
253
|
-
|
|
254
|
-
if (result.metadata != null) {
|
|
255
|
-
resultMetadata = mergeCollectionMetadata(resultMetadata, result.metadata);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
const metadataIncomplete = result.metadata != null && result.metadata.completeness !== 'complete';
|
|
259
|
-
if (result.truncated || metadataIncomplete) {
|
|
260
|
-
// A truncated drain is an incomplete project set; include its partial values in the current
|
|
261
|
-
// result but don't cache it as if complete. Add a structured failure for the truncation unless
|
|
262
|
-
// the drain already recorded a page-level failure for this resource.
|
|
263
|
-
if (
|
|
264
|
-
result.truncated &&
|
|
265
|
-
!result.metadata?.failures?.some(
|
|
266
|
-
f => f.scope?.resourceId === resource.id && f.kind !== 'unknown',
|
|
267
|
-
)
|
|
268
|
-
) {
|
|
269
|
-
const failure = toCollectionScopeFailure(
|
|
270
|
-
{ providerId: this.id, resourceId: resource.id },
|
|
271
|
-
new Error('Project discovery was truncated before all pages were read'),
|
|
272
|
-
);
|
|
273
|
-
failures?.push(failure);
|
|
274
|
-
resultMetadata = mergeCollectionMetadata(resultMetadata, {
|
|
275
|
-
completeness: 'partial',
|
|
276
|
-
failures: [failure],
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
allProjects.push(...projects);
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
this._projects!.set(`${accessToken}:${resource.id}`, projects);
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
const cachedProjects = resources.reduce<AzureProjectDescriptor[]>((projects, resource) => {
|
|
288
|
-
const resourceProjects = this._projects!.get(`${accessToken}:${resource.id}`);
|
|
289
|
-
if (resourceProjects != null) {
|
|
290
|
-
projects.push(...resourceProjects);
|
|
291
|
-
}
|
|
292
|
-
return projects;
|
|
293
|
-
}, []);
|
|
294
|
-
allProjects.push(...cachedProjects);
|
|
295
|
-
|
|
296
|
-
const projectsByIdentity = new Map<string, AzureProjectDescriptor>();
|
|
297
|
-
for (const project of allProjects) {
|
|
298
|
-
const identity = `${project.resourceId}:${project.id}`;
|
|
299
|
-
if (!projectsByIdentity.has(identity)) {
|
|
300
|
-
projectsByIdentity.set(identity, project);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const values = [...projectsByIdentity.values()];
|
|
304
|
-
return resultMetadata != null ? { values: values, metadata: resultMetadata } : { values: values };
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
private async getRepoDescriptorsForProjects(
|
|
308
|
-
session: ProviderAuthenticationSession,
|
|
309
|
-
projects: AzureProjectDescriptor[],
|
|
310
|
-
): Promise<Map<string, AzureRemoteRepositoryDescriptor[] | undefined>> {
|
|
311
|
-
const descriptors = new Map<string, AzureRemoteRepositoryDescriptor[] | undefined>();
|
|
312
|
-
if (projects.length === 0) return descriptors;
|
|
313
|
-
|
|
314
|
-
const api = await this.getProvidersApi();
|
|
315
|
-
const { tokenWithInfo, options } = this.getApiOptions(session);
|
|
316
|
-
await Promise.all(
|
|
317
|
-
projects.map(async project => {
|
|
318
|
-
const repos = (
|
|
319
|
-
await api.getReposForAzureProject(tokenWithInfo, project.resourceName, project.name, options)
|
|
320
|
-
)?.values;
|
|
321
|
-
if (repos != null && repos.length > 0) {
|
|
322
|
-
descriptors.set(
|
|
323
|
-
project.id,
|
|
324
|
-
repos.map(r => ({
|
|
325
|
-
id: r.id,
|
|
326
|
-
nodeId: r.graphQLId ?? undefined,
|
|
327
|
-
resourceName: project.resourceName,
|
|
328
|
-
name: r.name,
|
|
329
|
-
projectName: project.name,
|
|
330
|
-
url: r.webUrl ?? undefined,
|
|
331
|
-
cloneUrlHttps: r.httpsUrl ?? undefined,
|
|
332
|
-
cloneUrlSsh: r.sshUrl ?? undefined,
|
|
333
|
-
key: r.id,
|
|
334
|
-
})),
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
}),
|
|
338
|
-
);
|
|
339
|
-
|
|
340
|
-
return descriptors;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
protected override async getProviderOrganizationsForUser(
|
|
344
|
-
session: ProviderAuthenticationSession,
|
|
345
|
-
): Promise<ProviderHierarchyResult<ProviderOrganization> | undefined> {
|
|
346
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
347
|
-
if (orgs == null) return undefined;
|
|
348
|
-
|
|
349
|
-
return {
|
|
350
|
-
values: orgs.map(o => ({
|
|
351
|
-
id: o.id,
|
|
352
|
-
providerId: this.id,
|
|
353
|
-
name: o.name,
|
|
354
|
-
url: `${this.apiBaseUrl}/${o.name}`,
|
|
355
|
-
})),
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
protected override async getProviderProjectsForOrg(
|
|
360
|
-
session: ProviderAuthenticationSession,
|
|
361
|
-
org?: string,
|
|
362
|
-
): Promise<ProviderHierarchyResult<ProviderOrganization> | undefined> {
|
|
363
|
-
// Azure is the one git host with a project tier: repos live under org (resource) → project. Enumerate
|
|
364
|
-
// the user's orgs (optionally scoped to `org`), read their projects, and surface each as an org-shaped
|
|
365
|
-
// entry so the ProviderBackend facade can list them uniformly.
|
|
366
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
367
|
-
if (orgs == null) return undefined;
|
|
368
|
-
if (orgs.length === 0) {
|
|
369
|
-
return { values: [], paging: { cursor: '{}', more: false } };
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
const scopedOrgs = org != null ? orgs.filter(o => o.name === org || o.id === org) : orgs;
|
|
373
|
-
if (scopedOrgs.length === 0) return { values: [] };
|
|
374
|
-
|
|
375
|
-
const projects = await this.getProviderProjectsForResources(session, scopedOrgs);
|
|
376
|
-
if (projects.values.length === 0 && projects.metadata == null) return { values: [] };
|
|
377
|
-
|
|
378
|
-
return {
|
|
379
|
-
values: projects.values.map(p => ({
|
|
380
|
-
id: p.id,
|
|
381
|
-
providerId: this.id,
|
|
382
|
-
name: p.name,
|
|
383
|
-
org: p.resourceName,
|
|
384
|
-
url: `${this.apiBaseUrl}/${p.resourceName}/${p.name}`,
|
|
385
|
-
})),
|
|
386
|
-
...(projects.metadata != null ? { metadata: projects.metadata } : {}),
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* With `options.project`, returns one page of that project's repos (follow `paging.cursor` to page).
|
|
392
|
-
* Without a project it fans out across every project under `org` and returns them all at once — there's
|
|
393
|
-
* no single cursor to page a parallel merge — skipping any project that fails to list rather than
|
|
394
|
-
* failing the whole org. If any successful project drain hits the defensive page backstop, the merged
|
|
395
|
-
* result is marked `truncated` without exposing a synthetic cursor.
|
|
396
|
-
*/
|
|
397
|
-
protected override async getProviderRepositoriesForOrg(
|
|
398
|
-
session: ProviderAuthenticationSession,
|
|
399
|
-
org: string,
|
|
400
|
-
options?: { project?: string; cursor?: string },
|
|
401
|
-
): Promise<ProviderHierarchyResult<ProviderRepository> | undefined> {
|
|
402
|
-
const api = await this.getProvidersApi();
|
|
403
|
-
const { tokenWithInfo, options: apiOptions } = this.getApiOptions(session);
|
|
404
|
-
|
|
405
|
-
if (options?.project) {
|
|
406
|
-
return api.getReposForAzureProject(tokenWithInfo, org, options.project, {
|
|
407
|
-
...apiOptions,
|
|
408
|
-
cursor: options.cursor,
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
const orgDescriptor = (await this.getProviderResourcesForUser(session))?.find(o => o.name === org);
|
|
413
|
-
if (orgDescriptor == null) return undefined;
|
|
414
|
-
|
|
415
|
-
const discoveryFailures: CollectionScopeFailure[] = [];
|
|
416
|
-
const projects = await this.getProviderProjectsForResources(session, [orgDescriptor], false, discoveryFailures);
|
|
417
|
-
// An empty result is only proven-empty when discovery itself succeeded; a rejected project-discovery
|
|
418
|
-
// leaves the repo set unknowable, so surface the discovery metadata rather than publishing a hole as a
|
|
419
|
-
// complete list.
|
|
420
|
-
if (projects.values.length === 0) {
|
|
421
|
-
return { values: [], metadata: projects.metadata };
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
let repoMetadata: CollectionMetadata | undefined;
|
|
425
|
-
const results = await Promise.allSettled(
|
|
426
|
-
projects.values.map(p =>
|
|
427
|
-
collectProviderPagedResult(
|
|
428
|
-
cursor =>
|
|
429
|
-
api.getReposForAzureProject(tokenWithInfo, org, p.name, { ...apiOptions, cursor: cursor }),
|
|
430
|
-
20,
|
|
431
|
-
{ providerId: this.id, resourceId: org, projectId: p.name },
|
|
432
|
-
),
|
|
433
|
-
),
|
|
434
|
-
);
|
|
435
|
-
|
|
436
|
-
const values: ProviderRepository[] = [];
|
|
437
|
-
let truncated = false;
|
|
438
|
-
for (const result of results) {
|
|
439
|
-
// With a per-project scope, collectProviderPagedResult catches page-level failures itself and returns
|
|
440
|
-
// them as metadata rather than rejecting. A rejected promise here is an unexpected internal error.
|
|
441
|
-
if (result.status !== 'fulfilled') {
|
|
442
|
-
truncated = true;
|
|
443
|
-
continue;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
values.push(...result.value.values);
|
|
447
|
-
if (result.value.metadata != null) {
|
|
448
|
-
repoMetadata = mergeCollectionMetadata(repoMetadata, result.value.metadata);
|
|
449
|
-
}
|
|
450
|
-
truncated ||= result.value.truncated === true;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
const metadata = mergeCollectionMetadata(repoMetadata, projects.metadata);
|
|
454
|
-
return {
|
|
455
|
-
values: values,
|
|
456
|
-
...(metadata != null ? { metadata: metadata } : {}),
|
|
457
|
-
...(truncated || (metadata != null && metadata.completeness !== 'complete') ? { truncated: true } : {}),
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
protected override async mergeProviderPullRequest(
|
|
462
|
-
session: ProviderAuthenticationSession,
|
|
463
|
-
pr: PullRequest,
|
|
464
|
-
options?: {
|
|
465
|
-
mergeMethod?: PullRequestMergeMethod;
|
|
466
|
-
},
|
|
467
|
-
): Promise<boolean> {
|
|
468
|
-
const api = await this.getProvidersApi();
|
|
469
|
-
if (pr.refs == null || pr.project == null) return false;
|
|
470
|
-
|
|
471
|
-
const { tokenWithInfo, options: apiOptions } = this.getApiOptions(session);
|
|
472
|
-
|
|
473
|
-
try {
|
|
474
|
-
const merged = await api.mergePullRequest(tokenWithInfo, pr, {
|
|
475
|
-
...options,
|
|
476
|
-
...apiOptions,
|
|
477
|
-
});
|
|
478
|
-
return merged;
|
|
479
|
-
} catch (ex) {
|
|
480
|
-
this.showMergeErrorMessage(ex);
|
|
481
|
-
return false;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
protected showMergeErrorMessage(ex: Error): void {
|
|
486
|
-
this.ctx.hooks?.ui?.onError?.(
|
|
487
|
-
`${ex.message}. Check branch policies, and ensure you have the necessary permissions to merge the pull request.`,
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
protected override async getProviderAccountForCommit(
|
|
492
|
-
session: ProviderAuthenticationSession,
|
|
493
|
-
repo: AzureRepositoryDescriptor,
|
|
494
|
-
rev: string,
|
|
495
|
-
options?: {
|
|
496
|
-
avatarSize?: number;
|
|
497
|
-
},
|
|
498
|
-
): Promise<UnidentifiedAuthor | undefined> {
|
|
499
|
-
return (await this.authenticationService.apis.azure)?.getAccountForCommit(
|
|
500
|
-
this,
|
|
501
|
-
toTokenWithInfo(this.id, session),
|
|
502
|
-
repo.owner,
|
|
503
|
-
repo.name,
|
|
504
|
-
rev,
|
|
505
|
-
this.apiBaseUrl,
|
|
506
|
-
options,
|
|
507
|
-
);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
protected override async getProviderAccountForEmail(
|
|
511
|
-
_session: AuthenticationSession,
|
|
512
|
-
_repo: AzureRepositoryDescriptor,
|
|
513
|
-
_email: string,
|
|
514
|
-
_options?: {
|
|
515
|
-
avatarSize?: number;
|
|
516
|
-
},
|
|
517
|
-
): Promise<Account | undefined> {
|
|
518
|
-
return Promise.resolve(undefined);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
protected override async getProviderDefaultBranch(
|
|
522
|
-
session: ProviderAuthenticationSession,
|
|
523
|
-
repo: AzureRepositoryDescriptor,
|
|
524
|
-
cancellation?: AbortSignal,
|
|
525
|
-
): Promise<DefaultBranch | undefined> {
|
|
526
|
-
return (await this.authenticationService.apis.azure)?.getDefaultBranch(
|
|
527
|
-
this,
|
|
528
|
-
toTokenWithInfo(this.id, session),
|
|
529
|
-
repo.owner,
|
|
530
|
-
repo.name,
|
|
531
|
-
{ baseUrl: this.apiBaseUrl },
|
|
532
|
-
cancellation,
|
|
533
|
-
);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
protected override async getProviderLinkedIssueOrPullRequest(
|
|
537
|
-
session: ProviderAuthenticationSession,
|
|
538
|
-
repo: AzureRepositoryDescriptor,
|
|
539
|
-
{ id }: { id: string; key: string },
|
|
540
|
-
type: undefined | IssueOrPullRequestType,
|
|
541
|
-
): Promise<IssueOrPullRequest | undefined> {
|
|
542
|
-
return (await this.authenticationService.apis.azure)?.getIssueOrPullRequest(
|
|
543
|
-
this,
|
|
544
|
-
toTokenWithInfo(this.id, session),
|
|
545
|
-
repo.owner,
|
|
546
|
-
repo.name,
|
|
547
|
-
id,
|
|
548
|
-
{
|
|
549
|
-
baseUrl: this.apiBaseUrl,
|
|
550
|
-
type: type,
|
|
551
|
-
},
|
|
552
|
-
);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
protected override async getProviderIssue(
|
|
556
|
-
session: ProviderAuthenticationSession,
|
|
557
|
-
project: AzureProjectInputDescriptor,
|
|
558
|
-
id: string,
|
|
559
|
-
): Promise<Issue | undefined> {
|
|
560
|
-
const user = await this.getProviderCurrentAccount(session);
|
|
561
|
-
if (user?.username == null) return undefined;
|
|
562
|
-
|
|
563
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
564
|
-
if (orgs == null || orgs.length === 0) return undefined;
|
|
565
|
-
|
|
566
|
-
const projects = await this.getProviderProjectsForResources(session, orgs);
|
|
567
|
-
if (projects.values.length === 0) return undefined;
|
|
568
|
-
|
|
569
|
-
const matchingProject = projects.values.find(p => p.resourceName === project.owner && p.name === project.name);
|
|
570
|
-
if (matchingProject == null) return undefined;
|
|
571
|
-
|
|
572
|
-
return (await this.authenticationService.apis.azure)?.getIssue(
|
|
573
|
-
this,
|
|
574
|
-
toTokenWithInfo(this.id, session),
|
|
575
|
-
matchingProject,
|
|
576
|
-
id,
|
|
577
|
-
{
|
|
578
|
-
baseUrl: this.apiBaseUrl,
|
|
579
|
-
},
|
|
580
|
-
);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
protected override async getProviderPullRequestForBranch(
|
|
584
|
-
session: ProviderAuthenticationSession,
|
|
585
|
-
repo: AzureRepositoryDescriptor,
|
|
586
|
-
branch: string,
|
|
587
|
-
_options?: {
|
|
588
|
-
avatarSize?: number;
|
|
589
|
-
include?: PullRequestState[];
|
|
590
|
-
},
|
|
591
|
-
): Promise<PullRequest | undefined> {
|
|
592
|
-
return (await this.authenticationService.apis.azure)?.getPullRequestForBranch(
|
|
593
|
-
this,
|
|
594
|
-
toTokenWithInfo(this.id, session),
|
|
595
|
-
repo.owner,
|
|
596
|
-
repo.name,
|
|
597
|
-
branch,
|
|
598
|
-
{
|
|
599
|
-
baseUrl: this.apiBaseUrl,
|
|
600
|
-
},
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
protected override async getProviderPullRequestForCommit(
|
|
605
|
-
session: ProviderAuthenticationSession,
|
|
606
|
-
repo: AzureRepositoryDescriptor,
|
|
607
|
-
rev: string,
|
|
608
|
-
): Promise<PullRequest | undefined> {
|
|
609
|
-
return (await this.authenticationService.apis.azure)?.getPullRequestForCommit(
|
|
610
|
-
this,
|
|
611
|
-
toTokenWithInfo(this.id, session),
|
|
612
|
-
repo.owner,
|
|
613
|
-
repo.name,
|
|
614
|
-
rev,
|
|
615
|
-
this.apiBaseUrl,
|
|
616
|
-
);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
public override async getRepoInfo(repo: {
|
|
620
|
-
owner: string;
|
|
621
|
-
name: string;
|
|
622
|
-
project?: string;
|
|
623
|
-
connectionId?: string;
|
|
624
|
-
}): Promise<ProviderRepository | undefined> {
|
|
625
|
-
const identity = getAzureRepositoryIdentity(repo);
|
|
626
|
-
if (identity.projectName == null) return undefined;
|
|
627
|
-
|
|
628
|
-
const api = await this.getProvidersApi();
|
|
629
|
-
// `connectionId` targets a specific account (multi-account); omitted reads the primary.
|
|
630
|
-
const session = await this.resolveReadSession(repo.connectionId, undefined);
|
|
631
|
-
if (session == null) return undefined;
|
|
632
|
-
|
|
633
|
-
const { tokenWithInfo, options } = this.getApiOptions(session);
|
|
634
|
-
return api.getRepo(
|
|
635
|
-
tokenWithInfo,
|
|
636
|
-
identity.resourceName,
|
|
637
|
-
identity.repositoryName,
|
|
638
|
-
identity.projectName,
|
|
639
|
-
options,
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
protected override async getProviderRepositoryMetadata(
|
|
644
|
-
session: ProviderAuthenticationSession,
|
|
645
|
-
repo: AzureRepositoryDescriptor,
|
|
646
|
-
cancellation?: AbortSignal,
|
|
647
|
-
): Promise<RepositoryMetadata | undefined> {
|
|
648
|
-
return (await this.authenticationService.apis.azure)?.getRepositoryMetadata(
|
|
649
|
-
this,
|
|
650
|
-
toTokenWithInfo(this.id, session),
|
|
651
|
-
repo.owner,
|
|
652
|
-
repo.name,
|
|
653
|
-
{ baseUrl: this.apiBaseUrl },
|
|
654
|
-
cancellation,
|
|
655
|
-
);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
protected override async searchProviderMyPullRequests(
|
|
659
|
-
session: ProviderAuthenticationSession,
|
|
660
|
-
repos?: AzureRepositoryDescriptor[],
|
|
661
|
-
_cancellation?: AbortSignal,
|
|
662
|
-
options?: SearchMyPullRequestsOptions,
|
|
663
|
-
): Promise<PullRequest[] | undefined> {
|
|
664
|
-
const api = await this.getProvidersApi();
|
|
665
|
-
if (repos != null) {
|
|
666
|
-
// TODO: implement repos version
|
|
667
|
-
return undefined;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
const states = toProviderPullRequestStates(options?.state);
|
|
671
|
-
|
|
672
|
-
const user = await this.getProviderCurrentAccount(session);
|
|
673
|
-
// Azure filters key on the identity GUID (account id), not the display name — see
|
|
674
|
-
// getProviderMyPullRequestsForUser and the repo-scoped path in gitHostIntegration.ts.
|
|
675
|
-
if (user?.id == null) return undefined;
|
|
676
|
-
|
|
677
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
678
|
-
if (orgs == null || orgs.length === 0) return undefined;
|
|
679
|
-
|
|
680
|
-
const projects = await this.getProviderProjectsForResources(session, orgs);
|
|
681
|
-
if (projects.values.length === 0) return undefined;
|
|
682
|
-
|
|
683
|
-
const repoDescriptors = [
|
|
684
|
-
...((await this.getRepoDescriptorsForProjects(session, projects.values)) ?? new Map()).values(),
|
|
685
|
-
]
|
|
686
|
-
.filter(r => r != null)
|
|
687
|
-
.flat();
|
|
688
|
-
|
|
689
|
-
const { tokenWithInfo, options: apiOptions } = this.getApiOptions(session);
|
|
690
|
-
const projectInputs = projects.values.map(p => ({ namespace: p.resourceName, project: p.name }));
|
|
691
|
-
// Legacy array-returning path (Launchpad/focus view): unwrap `.values` from the SDK collection result.
|
|
692
|
-
// The metadata (partial/failures) isn't surfaced here because this path's return type has no warning
|
|
693
|
-
// channel; the metadata-aware ProviderBackend surface is getProviderMyPullRequestsForUser above.
|
|
694
|
-
const assignedPrs = (
|
|
695
|
-
await api.getPullRequestsForAzureProjects(tokenWithInfo, projectInputs, {
|
|
696
|
-
...apiOptions,
|
|
697
|
-
assigneeLogins: [user.id],
|
|
698
|
-
states: states,
|
|
699
|
-
})
|
|
700
|
-
).values.map(pr => this.fromAzureProviderPullRequest(pr, repoDescriptors, projects.values));
|
|
701
|
-
const authoredPrs = (
|
|
702
|
-
await api.getPullRequestsForAzureProjects(tokenWithInfo, projectInputs, {
|
|
703
|
-
...apiOptions,
|
|
704
|
-
authorLogin: user.id,
|
|
705
|
-
states: states,
|
|
706
|
-
})
|
|
707
|
-
).values.map(pr => this.fromAzureProviderPullRequest(pr, repoDescriptors, projects.values));
|
|
708
|
-
const prsById = new Map<string, PullRequest>();
|
|
709
|
-
for (const pr of authoredPrs) {
|
|
710
|
-
prsById.set(pr.id, pr);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
for (const pr of assignedPrs) {
|
|
714
|
-
const existing = prsById.get(pr.id);
|
|
715
|
-
if (existing == null) {
|
|
716
|
-
prsById.set(pr.id, pr);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
return [...prsById.values()];
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
protected override async getProviderMyPullRequestsForUser(
|
|
724
|
-
session: ProviderAuthenticationSession,
|
|
725
|
-
options?: { state?: PullRequestStateFilter[]; cursor?: string; filters?: PullRequestFilter[] },
|
|
726
|
-
): Promise<ProviderApiPagedResult<ProviderPullRequest> | undefined> {
|
|
727
|
-
const api = await this.getProvidersApi();
|
|
728
|
-
const user = await this.getProviderCurrentAccount(session);
|
|
729
|
-
// Azure routes authorLogin/assigneeLogins to `searchCriteria.creatorId`/`reviewerId`, which require the
|
|
730
|
-
// identity GUID (account id), not the display name — matching the repo-scoped path in
|
|
731
|
-
// gitHostIntegration.ts. Using `username` here would match nothing and return zero PRs.
|
|
732
|
-
if (user?.id == null) return undefined;
|
|
733
|
-
|
|
734
|
-
// Azure PRs are org + project scoped: enumerate the user's orgs and their projects, then read authored
|
|
735
|
-
// and assigned PRs across all of them. Return the raw provider shape (not the normalized model) so the
|
|
736
|
-
// ProviderBackend surface stays uniform with the other providers.
|
|
737
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
738
|
-
if (orgs == null || orgs.length === 0) return undefined;
|
|
739
|
-
|
|
740
|
-
// Structured per-scope failures from BOTH project discovery (a whole org dropped) and the per-project PR
|
|
741
|
-
// drains, so the facade warns on the failed scope + sets `fetchFailed` instead of silently narrowing.
|
|
742
|
-
const failures: CollectionScopeFailure[] = [];
|
|
743
|
-
const projects = await this.getProviderProjectsForResources(session, orgs, false, failures);
|
|
744
|
-
if (projects.values.length === 0) {
|
|
745
|
-
// Project discovery itself was incomplete (e.g. a truncated org); surface the metadata so the facade
|
|
746
|
-
// can warn and set fetchFailed rather than reporting an empty account.
|
|
747
|
-
const incomplete = projects.metadata != null && projects.metadata.completeness !== 'complete';
|
|
748
|
-
return {
|
|
749
|
-
values: [],
|
|
750
|
-
paging: { cursor: '{}', more: false, truncated: incomplete || undefined },
|
|
751
|
-
...(projects.metadata != null ? { metadata: projects.metadata } : {}),
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
const { tokenWithInfo, options: apiOptions } = this.getApiOptions(session);
|
|
756
|
-
const states = toProviderPullRequestStates(options?.state);
|
|
757
|
-
const maxPagesPerProject = 20;
|
|
758
|
-
|
|
759
|
-
// Drain each project fully (numbered pages) for both the authored and assigned reads. Azure has no
|
|
760
|
-
// single cross-project cursor, so the aggregate is one page; `truncated` is set only if a project hit
|
|
761
|
-
// the backstop with more pages remaining.
|
|
762
|
-
let truncated = projects.metadata != null && projects.metadata.completeness !== 'complete';
|
|
763
|
-
// Drain one project's numbered pages, returning its PRs and any per-page failure. Returns per-project
|
|
764
|
-
// (not mutating shared state) so the fan-out below can be settled independently: one project's read
|
|
765
|
-
// failure must not discard every other project's already-drained PRs.
|
|
766
|
-
const drainProject = async (
|
|
767
|
-
project: { namespace: string; project: string },
|
|
768
|
-
scope: CollectionScope,
|
|
769
|
-
filter: { authorLogin?: string; assigneeLogins?: string[]; reviewerId?: string },
|
|
770
|
-
): Promise<{ prs: ProviderPullRequest[]; projectIdentity: string; failure?: CollectionScopeFailure }> => {
|
|
771
|
-
const collected: ProviderPullRequest[] = [];
|
|
772
|
-
const projectIdentity = `${project.namespace}/${project.project}`;
|
|
773
|
-
let page: number | undefined;
|
|
774
|
-
for (let i = 0; i < maxPagesPerProject; i++) {
|
|
775
|
-
try {
|
|
776
|
-
const result = await api.getPullRequestsForAzureProject(tokenWithInfo, project, {
|
|
777
|
-
...apiOptions,
|
|
778
|
-
...filter,
|
|
779
|
-
states: states,
|
|
780
|
-
page: page,
|
|
781
|
-
});
|
|
782
|
-
if (result == null) {
|
|
783
|
-
if (page == null) break;
|
|
784
|
-
|
|
785
|
-
truncated = true;
|
|
786
|
-
return {
|
|
787
|
-
prs: collected,
|
|
788
|
-
projectIdentity: projectIdentity,
|
|
789
|
-
failure: toCollectionScopeFailure(
|
|
790
|
-
scope,
|
|
791
|
-
new Error('Azure DevOps returned no page after advertising a continuation'),
|
|
792
|
-
),
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
collected.push(...result.data);
|
|
797
|
-
if (!result.hasMore) break;
|
|
798
|
-
if (result.nextPage == null || result.nextPage === page) {
|
|
799
|
-
truncated = true;
|
|
800
|
-
return {
|
|
801
|
-
prs: collected,
|
|
802
|
-
projectIdentity: projectIdentity,
|
|
803
|
-
failure: toCollectionScopeFailure(
|
|
804
|
-
scope,
|
|
805
|
-
new Error('Azure DevOps returned no advancing pull request continuation'),
|
|
806
|
-
),
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
page = result.nextPage;
|
|
811
|
-
if (i === maxPagesPerProject - 1) {
|
|
812
|
-
truncated = true;
|
|
813
|
-
}
|
|
814
|
-
} catch (ex) {
|
|
815
|
-
// A page failure after the first page leaves the already-drained prefix intact; record the
|
|
816
|
-
// failure at the project scope instead of re-throwing and discarding the prefix.
|
|
817
|
-
truncated = true;
|
|
818
|
-
return {
|
|
819
|
-
prs: collected,
|
|
820
|
-
projectIdentity: projectIdentity,
|
|
821
|
-
failure: toCollectionScopeFailure(scope, ex),
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
return { prs: collected, projectIdentity: projectIdentity };
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
// Settle per-project failures instead of rejecting the whole sweep. `drainProject` already catches its own
|
|
829
|
-
// page-level failures, so the structured failure (attributed to that project) is preserved rather than
|
|
830
|
-
// re-thrown — re-throwing an auth/rate-limit rejection would discard every other project's already-drained
|
|
831
|
-
// PRs. Auth/rate-limit stay actionable through the failure's kind (the facade maps it to an `auth`/`rate-limit`
|
|
832
|
-
// warning + `fetchFailed`), matching the SDK's model. `failures` was declared above so project-discovery
|
|
833
|
-
// failures and per-project drain failures share it.
|
|
834
|
-
const requested = options?.filters?.length ? new Set(options.filters) : undefined;
|
|
835
|
-
const wantAuthored = requested == null || requested.has(PullRequestFilter.Author);
|
|
836
|
-
// Azure has no assignee concept distinct from reviewer. Both neutral relationships map to reviewerId.
|
|
837
|
-
const wantReviewed =
|
|
838
|
-
requested == null ||
|
|
839
|
-
requested.has(PullRequestFilter.Assignee) ||
|
|
840
|
-
requested.has(PullRequestFilter.ReviewRequested);
|
|
841
|
-
const outcomes = await Promise.all(
|
|
842
|
-
projects.values.flatMap(p => {
|
|
843
|
-
const project = { namespace: p.resourceName, project: p.name };
|
|
844
|
-
const scope = { providerId: this.id, resourceId: p.resourceId, projectId: p.name };
|
|
845
|
-
const drains = [];
|
|
846
|
-
if (wantAuthored) {
|
|
847
|
-
drains.push(drainProject(project, scope, { authorLogin: user.id }));
|
|
848
|
-
}
|
|
849
|
-
if (wantReviewed) {
|
|
850
|
-
drains.push(drainProject(project, scope, { reviewerId: user.id }));
|
|
851
|
-
}
|
|
852
|
-
return drains;
|
|
853
|
-
}),
|
|
854
|
-
);
|
|
855
|
-
|
|
856
|
-
// Azure's `pullRequestId` is not account-global. Prefer repository + PR id, then the org-qualified URL.
|
|
857
|
-
// If neither is available, preserve the row instead of collapsing unrelated repositories by numeric id.
|
|
858
|
-
const prsByIdentity = new Map<string, ProviderPullRequest>();
|
|
859
|
-
for (const outcome of outcomes) {
|
|
860
|
-
if (outcome.failure != null) {
|
|
861
|
-
failures.push(outcome.failure);
|
|
862
|
-
}
|
|
863
|
-
for (const pr of outcome.prs) {
|
|
864
|
-
const key =
|
|
865
|
-
getProviderPullRequestIdentity(pr) ?? `project:${outcome.projectIdentity}:pull-request:${pr.id}`;
|
|
866
|
-
if (!prsByIdentity.has(key)) {
|
|
867
|
-
prsByIdentity.set(key, pr);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
const metadata: CollectionMetadata | undefined = mergeCollectionMetadata(
|
|
873
|
-
failures.length > 0 ? { completeness: 'partial', failures: failures } : undefined,
|
|
874
|
-
projects.metadata,
|
|
875
|
-
);
|
|
876
|
-
|
|
877
|
-
return {
|
|
878
|
-
values: [...prsByIdentity.values()],
|
|
879
|
-
paging: { cursor: '{}', more: false, truncated: truncated || undefined },
|
|
880
|
-
metadata: metadata,
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
protected override async searchProviderPullRequests(
|
|
885
|
-
session: ProviderAuthenticationSession,
|
|
886
|
-
searchQuery: string,
|
|
887
|
-
repos?: AzureRepositoryDescriptor[],
|
|
888
|
-
cancellation?: AbortSignal,
|
|
889
|
-
options?: SearchPullRequestsOptions,
|
|
890
|
-
): Promise<PullRequest[] | undefined> {
|
|
891
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
892
|
-
|
|
893
|
-
const orgs = await this.getProviderResourcesForUser(session);
|
|
894
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
895
|
-
if (orgs == null || orgs.length === 0) return undefined;
|
|
896
|
-
|
|
897
|
-
// `getProviderProjectsForResources` returns a collection result ({ values, metadata }); this search
|
|
898
|
-
// path only needs the resolved projects, so read `.values`.
|
|
899
|
-
const projects = (await this.getProviderProjectsForResources(session, orgs)).values;
|
|
900
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
901
|
-
if (projects.length === 0) return undefined;
|
|
902
|
-
|
|
903
|
-
const repoDescriptorsByProject = await this.getRepoDescriptorsForProjects(session, projects);
|
|
904
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
905
|
-
|
|
906
|
-
const repoDescriptors = [...repoDescriptorsByProject.values()].filter(r => r != null).flat();
|
|
907
|
-
const requestedRepos = repos?.map(getAzureRepositoryIdentity);
|
|
908
|
-
const repoInputs =
|
|
909
|
-
requestedRepos == null
|
|
910
|
-
? undefined
|
|
911
|
-
: repoDescriptors.filter(r =>
|
|
912
|
-
requestedRepos.some(
|
|
913
|
-
repo =>
|
|
914
|
-
repo.resourceName === r.resourceName &&
|
|
915
|
-
repo.repositoryName === r.name &&
|
|
916
|
-
(repo.projectName == null || repo.projectName === r.projectName),
|
|
917
|
-
),
|
|
918
|
-
);
|
|
919
|
-
if (repoInputs?.length === 0) return [];
|
|
920
|
-
|
|
921
|
-
const api = await this.getProvidersApi();
|
|
922
|
-
const { tokenWithInfo, options: apiOptions } = this.getApiOptions(session);
|
|
923
|
-
const states = toProviderPullRequestStates(options?.include);
|
|
924
|
-
const searchScopes: { project: { namespace: string; project: string }; repo?: ProviderRepoInput }[] =
|
|
925
|
-
repoInputs != null
|
|
926
|
-
? repoInputs.flatMap(repo =>
|
|
927
|
-
repo.projectName == null
|
|
928
|
-
? []
|
|
929
|
-
: [
|
|
930
|
-
{
|
|
931
|
-
project: { namespace: repo.resourceName, project: repo.projectName },
|
|
932
|
-
repo: {
|
|
933
|
-
id: repo.id,
|
|
934
|
-
name: repo.name,
|
|
935
|
-
namespace: repo.resourceName,
|
|
936
|
-
project: repo.projectName,
|
|
937
|
-
},
|
|
938
|
-
},
|
|
939
|
-
],
|
|
940
|
-
)
|
|
941
|
-
: projects.map(project => ({
|
|
942
|
-
project: { namespace: project.resourceName, project: project.name },
|
|
943
|
-
}));
|
|
944
|
-
|
|
945
|
-
const providerPullRequests = flatSettledResultsOrThrow(
|
|
946
|
-
await mapSettledBounded(searchScopes, providerFanOutConcurrency, async scope => {
|
|
947
|
-
const values: ProviderPullRequest[] = [];
|
|
948
|
-
let page: number | undefined;
|
|
949
|
-
for (let i = 0; i < 20; i++) {
|
|
950
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
951
|
-
|
|
952
|
-
const result = await api.getPullRequestsForAzureProject(tokenWithInfo, scope.project, {
|
|
953
|
-
...apiOptions,
|
|
954
|
-
page: page,
|
|
955
|
-
repo: scope.repo,
|
|
956
|
-
states: states,
|
|
957
|
-
});
|
|
958
|
-
if (result == null) break;
|
|
959
|
-
|
|
960
|
-
values.push(...result.data);
|
|
961
|
-
if (!result.hasMore || result.nextPage == null) break;
|
|
962
|
-
|
|
963
|
-
page = result.nextPage;
|
|
964
|
-
}
|
|
965
|
-
return values;
|
|
966
|
-
}),
|
|
967
|
-
);
|
|
968
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
969
|
-
|
|
970
|
-
return [...new Map(providerPullRequests.map(pr => [pr.url ?? `${pr.repository.id}:${pr.id}`, pr])).values()]
|
|
971
|
-
.filter(pr => providerPullRequestMatchesSearch(pr, searchQuery))
|
|
972
|
-
.map(pr => this.fromAzureProviderPullRequest(pr, repoDescriptors, projects));
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
protected override async searchProviderMyIssues(
|
|
976
|
-
session: ProviderAuthenticationSession,
|
|
977
|
-
repos?: AzureRepositoryDescriptor[],
|
|
978
|
-
): Promise<IssueShape[] | undefined> {
|
|
979
|
-
return (await this.searchProviderMyIssuesWithTruncation(session, repos))?.values;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Account-wide "my issues" for Azure = the user's authored + assigned work items across every project of
|
|
984
|
-
* every org. Azure's issue read is numbered-page, so each (project × filter) read is drained to exhaustion
|
|
985
|
-
* (bounded by a defensive per-read backstop). Unlike a silent `flatSettled`, a project read that was
|
|
986
|
-
* truncated by the backstop or rejected outright is recorded as `truncated`, so the facade reports an
|
|
987
|
-
* incomplete read instead of publishing a partial list as complete.
|
|
988
|
-
*
|
|
989
|
-
* `searchOptions.org`/`.project` narrow the fan-out server-side (each drain is already a per-project read,
|
|
990
|
-
* so scoping just selects which projects to drain). Without this there was no way to ask for "work items in
|
|
991
|
-
* project P": a consumer had to filter the account-wide page client-side, which desynchronizes the filtered
|
|
992
|
-
* `items` from the `hasMore`/`currentPage` of the pre-filter read — a project-less page reads as "no issues"
|
|
993
|
-
* while `hasMore` is still true.
|
|
994
|
-
*/
|
|
995
|
-
protected override async searchProviderMyIssuesWithTruncation(
|
|
996
|
-
session: ProviderAuthenticationSession,
|
|
997
|
-
_resources?: ResourceDescriptor[],
|
|
998
|
-
_cancellation?: AbortSignal,
|
|
999
|
-
searchOptions?: SearchMyIssuesOptions,
|
|
1000
|
-
): Promise<AccountWideIssuesResult | undefined> {
|
|
1001
|
-
const api = await this.getProvidersApi();
|
|
1002
|
-
|
|
1003
|
-
const user = await this.getProviderCurrentAccount(session);
|
|
1004
|
-
if (user?.username == null) return undefined;
|
|
1005
|
-
|
|
1006
|
-
const allOrgs = await this.getProviderResourcesForUser(session);
|
|
1007
|
-
if (allOrgs == null) return undefined;
|
|
1008
|
-
if (allOrgs.length === 0) return { values: [], truncated: false };
|
|
1009
|
-
|
|
1010
|
-
// Scope by org first so project discovery only fans out over the requested account. An org filter that
|
|
1011
|
-
// matches nothing is an empty-but-successful read, not an unsupported one: returning `undefined` here
|
|
1012
|
-
// would be reported as "account-wide issue search is not supported by this provider".
|
|
1013
|
-
const orgs =
|
|
1014
|
-
searchOptions?.org != null ? allOrgs.filter(o => azureResourceMatches(o, searchOptions.org!)) : allOrgs;
|
|
1015
|
-
if (orgs.length === 0) return { values: [], truncated: false };
|
|
1016
|
-
|
|
1017
|
-
// Structured per-scope failures from BOTH project discovery (a whole org dropped) and the per-project
|
|
1018
|
-
// issue drains, so the facade warns on the failed scope + sets `fetchFailed` instead of narrowing silently.
|
|
1019
|
-
const failures: CollectionScopeFailure[] = [];
|
|
1020
|
-
const discovered = await this.getProviderProjectsForResources(session, orgs, false, failures);
|
|
1021
|
-
const projects =
|
|
1022
|
-
searchOptions?.project != null
|
|
1023
|
-
? {
|
|
1024
|
-
...discovered,
|
|
1025
|
-
values: discovered.values.filter(p => azureResourceMatches(p, searchOptions.project!)),
|
|
1026
|
-
}
|
|
1027
|
-
: discovered;
|
|
1028
|
-
if (projects.values.length === 0) {
|
|
1029
|
-
// An explicitly-scoped read that found no matching project is an empty SUCCESS: `undefined` here is
|
|
1030
|
-
// reported as "account-wide issue search is not supported by this provider", which would send the
|
|
1031
|
-
// consumer down a repo-scoped fallback for what is simply an empty scope. Only an incomplete discovery
|
|
1032
|
-
// (which may itself have dropped the requested project) is truncated, and its metadata is forwarded so
|
|
1033
|
-
// the facade still warns on the failed scope.
|
|
1034
|
-
return projects.metadata != null
|
|
1035
|
-
? {
|
|
1036
|
-
values: [],
|
|
1037
|
-
truncated: projects.metadata.completeness !== 'complete',
|
|
1038
|
-
metadata: projects.metadata,
|
|
1039
|
-
}
|
|
1040
|
-
: { values: [], truncated: false };
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
const { tokenWithInfo, options } = this.getApiOptions(session);
|
|
1044
|
-
|
|
1045
|
-
// Drain one (project × filter) read fully, threading the provider's paging cursor. The scope is passed so
|
|
1046
|
-
// a page-level failure preserves the already-drained prefix and records a structured failure instead of
|
|
1047
|
-
// re-throwing.
|
|
1048
|
-
const drain = async (
|
|
1049
|
-
p: AzureProjectDescriptor,
|
|
1050
|
-
filter: { assigneeLogins?: string[]; authorLogin?: string },
|
|
1051
|
-
): Promise<{
|
|
1052
|
-
issues: IssueShape[];
|
|
1053
|
-
projectKey: string;
|
|
1054
|
-
truncated: boolean;
|
|
1055
|
-
metadata?: CollectionMetadata;
|
|
1056
|
-
}> => {
|
|
1057
|
-
const result = await collectProviderPagedResult(
|
|
1058
|
-
cursor =>
|
|
1059
|
-
api.getIssuesForAzureProject(tokenWithInfo, p.resourceName, p.name, {
|
|
1060
|
-
...options,
|
|
1061
|
-
...filter,
|
|
1062
|
-
cursor: cursor,
|
|
1063
|
-
sort: searchOptions?.sort,
|
|
1064
|
-
}),
|
|
1065
|
-
20,
|
|
1066
|
-
{ providerId: this.id, resourceId: p.resourceId, projectId: p.name },
|
|
1067
|
-
);
|
|
1068
|
-
return {
|
|
1069
|
-
issues: result.values.map(i => fromProviderIssue(i, this, { project: p })),
|
|
1070
|
-
// Azure work-item ids are organization-scoped. Include both org and project so the
|
|
1071
|
-
// assigned/authored passes dedupe the same item without collapsing another org's item.
|
|
1072
|
-
projectKey: `${p.resourceId}:${p.id}`,
|
|
1073
|
-
truncated: result.truncated ?? false,
|
|
1074
|
-
metadata: result.metadata,
|
|
1075
|
-
};
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
// `includeAllAssignees` broadens to every issue in each project (any assignee, any author), so a single
|
|
1079
|
-
// unfiltered drain per project replaces the assigned+authored pair — an unfiltered assignee drain already
|
|
1080
|
-
// subsumes the authored one.
|
|
1081
|
-
//
|
|
1082
|
-
// `filters` narrows the other way: unfiltered, "my issues" here is assigned ∪ authored, which is wider than
|
|
1083
|
-
// `assignee:@me`. Selecting the drains is the only correct place to narrow — dropping authored-only items
|
|
1084
|
-
// from the returned page would leave them counted in the per-project paging that produced it.
|
|
1085
|
-
const filters = searchOptions?.filters;
|
|
1086
|
-
const wantAssigned = !filters?.length || filters.includes(IssueFilter.Assignee);
|
|
1087
|
-
const wantAuthored = !filters?.length || filters.includes(IssueFilter.Author);
|
|
1088
|
-
const outcomes = await Promise.all(
|
|
1089
|
-
projects.values.flatMap(p => {
|
|
1090
|
-
if (searchOptions?.includeAllAssignees) return [drain(p, {})];
|
|
1091
|
-
|
|
1092
|
-
const drains = [];
|
|
1093
|
-
if (wantAssigned) {
|
|
1094
|
-
drains.push(drain(p, { assigneeLogins: [user.username!] }));
|
|
1095
|
-
}
|
|
1096
|
-
if (wantAuthored) {
|
|
1097
|
-
drains.push(drain(p, { authorLogin: user.username! }));
|
|
1098
|
-
}
|
|
1099
|
-
return drains;
|
|
1100
|
-
}),
|
|
1101
|
-
);
|
|
1102
|
-
|
|
1103
|
-
const issuesById = new Map<string, IssueShape>();
|
|
1104
|
-
let truncated = projects.metadata != null && projects.metadata.completeness !== 'complete';
|
|
1105
|
-
let drainMetadata: CollectionMetadata | undefined;
|
|
1106
|
-
for (const outcome of outcomes) {
|
|
1107
|
-
if (outcome.truncated) {
|
|
1108
|
-
truncated = true;
|
|
1109
|
-
}
|
|
1110
|
-
if (outcome.metadata != null) {
|
|
1111
|
-
drainMetadata = mergeCollectionMetadata(drainMetadata, outcome.metadata);
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
for (const issue of outcome.issues) {
|
|
1115
|
-
const key = `${outcome.projectKey}:${issue.nodeId ?? issue.id}`;
|
|
1116
|
-
if (!issuesById.has(key)) {
|
|
1117
|
-
issuesById.set(key, issue);
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
const metadata: CollectionMetadata | undefined = mergeCollectionMetadata(
|
|
1123
|
-
failures.length > 0 ? { completeness: 'partial', failures: failures } : undefined,
|
|
1124
|
-
mergeCollectionMetadata(drainMetadata, projects.metadata),
|
|
1125
|
-
);
|
|
1126
|
-
|
|
1127
|
-
return { values: [...issuesById.values()], truncated: truncated, metadata: metadata };
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
protected override async providerOnConnect(): Promise<void> {
|
|
1131
|
-
if (this._session == null) return;
|
|
1132
|
-
|
|
1133
|
-
const canHydrateStoredProjects = (metadata: CollectionMetadata | undefined): boolean =>
|
|
1134
|
-
metadata == null || metadata.completeness === 'complete';
|
|
1135
|
-
|
|
1136
|
-
const storedAccount = this.ctx.storage.get(`azure:${this._session.accessToken}:account`);
|
|
1137
|
-
const storedOrganizations = this.ctx.storage.get(`azure:${this._session.accessToken}:organizations`);
|
|
1138
|
-
const storedProjects = this.ctx.storage.get(`azure:${this._session.accessToken}:projects`);
|
|
1139
|
-
let account: Account | undefined = storedAccount?.data ? { ...storedAccount.data, provider: this } : undefined;
|
|
1140
|
-
|
|
1141
|
-
let organizations = storedOrganizations?.data?.map((o: AzureOrganizationDescriptor) => ({ ...o }));
|
|
1142
|
-
|
|
1143
|
-
const storedProjectsData = storedProjects?.data as
|
|
1144
|
-
| ProviderApiCollectionResult<AzureProjectDescriptor>
|
|
1145
|
-
| AzureProjectDescriptor[]
|
|
1146
|
-
| undefined;
|
|
1147
|
-
let projects: ProviderApiCollectionResult<AzureProjectDescriptor> | undefined;
|
|
1148
|
-
if (!Array.isArray(storedProjectsData) && Array.isArray(storedProjectsData?.values)) {
|
|
1149
|
-
const hydrated = {
|
|
1150
|
-
values: storedProjectsData.values.map((p: AzureProjectDescriptor) => ({ ...p })),
|
|
1151
|
-
...(storedProjectsData.metadata != null ? { metadata: storedProjectsData.metadata } : {}),
|
|
1152
|
-
};
|
|
1153
|
-
if (canHydrateStoredProjects(hydrated.metadata)) {
|
|
1154
|
-
projects = hydrated;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
if (storedAccount == null) {
|
|
1159
|
-
account = await this.getProviderCurrentAccount(this._session);
|
|
1160
|
-
if (account != null) {
|
|
1161
|
-
// Clear all other stored organizations and projects and accounts when our session changes
|
|
1162
|
-
await this.ctx.storage.deleteWithPrefix('azure');
|
|
1163
|
-
await this.ctx.storage.store(`azure:${this._session.accessToken}:account`, {
|
|
1164
|
-
v: 1,
|
|
1165
|
-
timestamp: Date.now(),
|
|
1166
|
-
data: {
|
|
1167
|
-
id: account.id,
|
|
1168
|
-
name: account.name,
|
|
1169
|
-
email: account.email,
|
|
1170
|
-
avatarUrl: account.avatarUrl,
|
|
1171
|
-
username: account.username,
|
|
1172
|
-
},
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
this._accounts ??= new Map<string, Account | undefined>();
|
|
1178
|
-
this._accounts.set(this._session.accessToken, account);
|
|
1179
|
-
|
|
1180
|
-
if (storedOrganizations == null) {
|
|
1181
|
-
organizations = await this.getProviderResourcesForUser(this._session, true);
|
|
1182
|
-
await this.ctx.storage.store(`azure:${this._session.accessToken}:organizations`, {
|
|
1183
|
-
v: 1,
|
|
1184
|
-
timestamp: Date.now(),
|
|
1185
|
-
data: organizations,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
this._organizations ??= new Map<string, AzureOrganizationDescriptor[] | undefined>();
|
|
1190
|
-
this._organizations.set(this._session.accessToken, organizations);
|
|
1191
|
-
|
|
1192
|
-
if (projects == null && organizations?.length) {
|
|
1193
|
-
projects = await this.getProviderProjectsForResources(this._session, organizations);
|
|
1194
|
-
if (projects != null && canHydrateStoredProjects(projects.metadata)) {
|
|
1195
|
-
await this.ctx.storage.store(`azure:${this._session.accessToken}:projects`, {
|
|
1196
|
-
v: 2,
|
|
1197
|
-
timestamp: Date.now(),
|
|
1198
|
-
data: projects,
|
|
1199
|
-
});
|
|
1200
|
-
} else {
|
|
1201
|
-
await this.ctx.storage.delete(`azure:${this._session.accessToken}:projects`);
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
this._projects ??= new Map<string, AzureProjectDescriptor[] | undefined>();
|
|
1206
|
-
if (projects != null && canHydrateStoredProjects(projects.metadata)) {
|
|
1207
|
-
for (const project of projects.values) {
|
|
1208
|
-
const projectKey = `${this._session.accessToken}:${project.resourceId}`;
|
|
1209
|
-
const projects = this._projects.get(projectKey);
|
|
1210
|
-
if (projects == null) {
|
|
1211
|
-
this._projects.set(projectKey, [project]);
|
|
1212
|
-
} else if (!projects.some(p => p.id === project.id)) {
|
|
1213
|
-
projects.push(project);
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
protected override providerOnDisconnect(): void {
|
|
1220
|
-
this._organizations = undefined;
|
|
1221
|
-
this._projects = undefined;
|
|
1222
|
-
this._accounts = undefined;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
protected fromAzureProviderPullRequest(
|
|
1226
|
-
azurePullRequest: ProviderPullRequest,
|
|
1227
|
-
repoDescriptors: AzureRemoteRepositoryDescriptor[],
|
|
1228
|
-
projectDescriptors: AzureProjectDescriptor[],
|
|
1229
|
-
): PullRequest {
|
|
1230
|
-
const baseRepoDescriptor = repoDescriptors.find(r => r.id === azurePullRequest.repository.id);
|
|
1231
|
-
const headRepoDescriptor =
|
|
1232
|
-
azurePullRequest.headRepository != null
|
|
1233
|
-
? repoDescriptors.find(r => r.id === azurePullRequest.headRepository!.id)
|
|
1234
|
-
: undefined;
|
|
1235
|
-
let project: AzureProjectDescriptor | undefined;
|
|
1236
|
-
if (baseRepoDescriptor != null) {
|
|
1237
|
-
azurePullRequest.repository.remoteInfo = {
|
|
1238
|
-
...azurePullRequest.repository.remoteInfo,
|
|
1239
|
-
cloneUrlHTTPS: baseRepoDescriptor.cloneUrlHttps ?? '',
|
|
1240
|
-
cloneUrlSSH: baseRepoDescriptor.cloneUrlSsh ?? '',
|
|
1241
|
-
};
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
if (headRepoDescriptor != null) {
|
|
1245
|
-
azurePullRequest.headRepository = {
|
|
1246
|
-
...azurePullRequest.headRepository,
|
|
1247
|
-
id: azurePullRequest.headRepository?.id ?? headRepoDescriptor.id,
|
|
1248
|
-
name: azurePullRequest.headRepository?.name ?? headRepoDescriptor.name,
|
|
1249
|
-
owner: {
|
|
1250
|
-
login: azurePullRequest.headRepository?.owner.login ?? headRepoDescriptor.resourceName,
|
|
1251
|
-
},
|
|
1252
|
-
remoteInfo: {
|
|
1253
|
-
...azurePullRequest.headRepository?.remoteInfo,
|
|
1254
|
-
cloneUrlHTTPS: headRepoDescriptor.cloneUrlHttps ?? '',
|
|
1255
|
-
cloneUrlSSH: headRepoDescriptor.cloneUrlSsh ?? '',
|
|
1256
|
-
},
|
|
1257
|
-
};
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
if (baseRepoDescriptor?.projectName != null) {
|
|
1261
|
-
project = projectDescriptors.find(
|
|
1262
|
-
p => p.resourceName === baseRepoDescriptor.resourceName && p.name === baseRepoDescriptor.projectName,
|
|
1263
|
-
);
|
|
1264
|
-
}
|
|
1265
|
-
return fromProviderPullRequest(azurePullRequest, this, { project: project });
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
const cloudMetadata = providersMetadata[GitCloudHostIntegrationId.AzureDevOps];
|
|
1270
|
-
const cloudAuthProvider = Object.freeze({ id: cloudMetadata.id, scopes: cloudMetadata.scopes });
|
|
1271
|
-
|
|
1272
|
-
export class AzureDevOpsIntegration extends AzureDevOpsIntegrationBase<GitCloudHostIntegrationId.AzureDevOps> {
|
|
1273
|
-
readonly authProvider: IntegrationAuthenticationProviderDescriptor = cloudAuthProvider;
|
|
1274
|
-
readonly id = GitCloudHostIntegrationId.AzureDevOps;
|
|
1275
|
-
protected readonly key = this.id;
|
|
1276
|
-
readonly name: string = 'Azure DevOps';
|
|
1277
|
-
get domain(): string {
|
|
1278
|
-
return cloudMetadata.domain;
|
|
1279
|
-
}
|
|
1280
|
-
protected override get apiBaseUrl(): string {
|
|
1281
|
-
return 'https://dev.azure.com';
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
const serverMetadata = providersMetadata[GitSelfManagedHostIntegrationId.AzureDevOpsServer];
|
|
1286
|
-
const serverAuthProvider = Object.freeze({ id: serverMetadata.id, scopes: serverMetadata.scopes });
|
|
1287
|
-
|
|
1288
|
-
export class AzureDevOpsServerIntegration extends AzureDevOpsIntegrationBase<GitSelfManagedHostIntegrationId.AzureDevOpsServer> {
|
|
1289
|
-
readonly authProvider: IntegrationAuthenticationProviderDescriptor = serverAuthProvider;
|
|
1290
|
-
readonly id = GitSelfManagedHostIntegrationId.AzureDevOpsServer;
|
|
1291
|
-
protected readonly key: IntegrationKey<GitSelfManagedHostIntegrationId.AzureDevOpsServer>;
|
|
1292
|
-
readonly name: string = 'Azure DevOps Server';
|
|
1293
|
-
|
|
1294
|
-
constructor(
|
|
1295
|
-
ctx: IntegrationServiceContext,
|
|
1296
|
-
authenticationService: IntegrationAuthenticationService,
|
|
1297
|
-
getProvidersApi: () => Promise<ProvidersApi>,
|
|
1298
|
-
didChangeConnection: Emitter<IntegrationConnectionChangeEvent>,
|
|
1299
|
-
readonly domain: string,
|
|
1300
|
-
) {
|
|
1301
|
-
super(ctx, authenticationService, getProvidersApi, didChangeConnection);
|
|
1302
|
-
this.key = `${this.id}:${this.domain}`;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
protected override get apiBaseUrl(): string {
|
|
1306
|
-
const protocol = this._session?.protocol ?? 'https:';
|
|
1307
|
-
return `${protocol}//${this.domain}`;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
protected override getApiOptions(
|
|
1311
|
-
session: ProviderAuthenticationSession,
|
|
1312
|
-
doNotConvertToPat: boolean = false,
|
|
1313
|
-
): {
|
|
1314
|
-
tokenWithInfo: TokenWithInfo<GitSelfManagedHostIntegrationId.AzureDevOpsServer>;
|
|
1315
|
-
options: { isPAT: boolean; baseUrl?: string };
|
|
1316
|
-
} {
|
|
1317
|
-
const { options, ...rest } = super.getApiOptions(session, doNotConvertToPat);
|
|
1318
|
-
return {
|
|
1319
|
-
...rest,
|
|
1320
|
-
options: { ...options, baseUrl: this.apiBaseUrl },
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
protected override async _requestForCurrentUser(
|
|
1325
|
-
session: ProviderAuthenticationSession,
|
|
1326
|
-
): Promise<Account | undefined> {
|
|
1327
|
-
const azure = await this.authenticationService.apis.azure;
|
|
1328
|
-
const user = azure
|
|
1329
|
-
? await azure.getCurrentUserOnServer(this, toTokenWithInfo(this.id, session), this.apiBaseUrl)
|
|
1330
|
-
: undefined;
|
|
1331
|
-
return user
|
|
1332
|
-
? {
|
|
1333
|
-
provider: this,
|
|
1334
|
-
id: user.id,
|
|
1335
|
-
name: user.name ?? undefined,
|
|
1336
|
-
email: user.email ?? undefined,
|
|
1337
|
-
avatarUrl: user.avatarUrl ?? undefined,
|
|
1338
|
-
username: user.username ?? undefined,
|
|
1339
|
-
}
|
|
1340
|
-
: undefined;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
export function convertTokentoPAT(accessToken: string): string {
|
|
1345
|
-
return base64(`PAT:${accessToken}`);
|
|
1346
|
-
}
|