@gitkraken/core-gitlens 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/README.md +9 -2
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/decorate.js +9 -0
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js +57 -0
- package/dist/git/cache.d.ts +297 -297
- package/dist/git/cache.js +948 -1276
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts +202 -197
- package/dist/git/context.js +12 -8
- package/dist/git/context.js.map +1 -1
- package/dist/git/errors.d.ts +268 -281
- package/dist/git/errors.js +928 -706
- package/dist/git/errors.js.map +1 -1
- package/dist/git/features.d.ts +3 -2
- package/dist/git/features.js +34 -55
- package/dist/git/features.js.map +1 -1
- package/dist/git/gitHealth.d.ts +88 -81
- package/dist/git/gitHealth.js +259 -329
- package/dist/git/gitHealth.js.map +1 -1
- package/dist/git/models/author.d.ts +12 -10
- package/dist/git/models/author.js +0 -2
- package/dist/git/models/autolink.d.ts +36 -37
- package/dist/git/models/autolink.js +0 -2
- package/dist/git/models/blame.d.ts +25 -23
- package/dist/git/models/blame.js +0 -2
- package/dist/git/models/branch.d.ts +74 -72
- package/dist/git/models/branch.js +132 -171
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts +135 -133
- package/dist/git/models/commit.js +381 -484
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts +30 -29
- package/dist/git/models/contributor.js +56 -64
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts +5 -3
- package/dist/git/models/defaultBranch.js +0 -2
- package/dist/git/models/diff.d.ts +49 -47
- package/dist/git/models/diff.js +0 -2
- package/dist/git/models/file.d.ts +20 -18
- package/dist/git/models/file.js +0 -2
- package/dist/git/models/fileChange.d.ts +45 -43
- package/dist/git/models/fileChange.js +60 -66
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +25 -23
- package/dist/git/models/fileStatus.js +30 -26
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +328 -320
- package/dist/git/models/graph.js +31 -27
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts +37 -35
- package/dist/git/models/graphSearch.js +0 -2
- package/dist/git/models/graphSession.d.ts +158 -66
- package/dist/git/models/graphSession.js +72 -1
- package/dist/git/models/graphSession.js.map +1 -1
- package/dist/git/models/issue.d.ts +171 -150
- package/dist/git/models/issue.js +86 -88
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +16 -14
- package/dist/git/models/issueOrPullRequest.js +0 -2
- package/dist/git/models/lineRange.d.ts +6 -4
- package/dist/git/models/lineRange.js +0 -2
- package/dist/git/models/log.d.ts +18 -16
- package/dist/git/models/log.js +0 -2
- package/dist/git/models/mergeConflicts.d.ts +17 -15
- package/dist/git/models/mergeConflicts.js +0 -2
- package/dist/git/models/patch.d.ts +14 -12
- package/dist/git/models/patch.js +0 -2
- package/dist/git/models/pausedOperationStatus.d.ts +42 -40
- package/dist/git/models/pausedOperationStatus.js +0 -2
- package/dist/git/models/pullRequest.d.ts +238 -236
- package/dist/git/models/pullRequest.js +151 -163
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts +30 -28
- package/dist/git/models/rebase.js +0 -2
- package/dist/git/models/reference.d.ts +57 -55
- package/dist/git/models/reference.js +0 -2
- package/dist/git/models/reflog.d.ts +29 -27
- package/dist/git/models/reflog.js +63 -82
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts +34 -32
- package/dist/git/models/remote.js +74 -95
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts +86 -84
- package/dist/git/models/remoteProvider.js +145 -150
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts +58 -56
- package/dist/git/models/remoteResource.js +15 -12
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +144 -142
- package/dist/git/models/repository.js +358 -406
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts +8 -6
- package/dist/git/models/repositoryChangeEvent.js +26 -24
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts +50 -46
- package/dist/git/models/repositoryIdentities.js +7 -5
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts +9 -7
- package/dist/git/models/repositoryMetadata.js +0 -2
- package/dist/git/models/resourceDescriptor.d.ts +11 -9
- package/dist/git/models/resourceDescriptor.js +0 -2
- package/dist/git/models/revision.d.ts +2 -0
- package/dist/git/models/revision.js +8 -5
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts +48 -47
- package/dist/git/models/search.js +53 -49
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts +5 -3
- package/dist/git/models/shortlog.js +0 -2
- package/dist/git/models/signature.d.ts +28 -26
- package/dist/git/models/signature.js +0 -2
- package/dist/git/models/staging.d.ts +18 -16
- package/dist/git/models/staging.js +0 -2
- package/dist/git/models/stash.d.ts +5 -3
- package/dist/git/models/stash.js +0 -2
- package/dist/git/models/status.d.ts +51 -49
- package/dist/git/models/status.js +172 -205
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts +35 -34
- package/dist/git/models/statusFile.js +112 -125
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +34 -32
- package/dist/git/models/tag.js +64 -77
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts +8 -6
- package/dist/git/models/tree.js +0 -2
- package/dist/git/models/user.d.ts +6 -4
- package/dist/git/models/user.js +0 -2
- package/dist/git/models/worktree.d.ts +50 -48
- package/dist/git/models/worktree.js +102 -133
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts +7 -5
- package/dist/git/parsers/diffParser.js +438 -587
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts +3 -1
- package/dist/git/parsers/rebaseTodoParser.js +165 -208
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts +12 -10
- package/dist/git/providers/blame.js +0 -2
- package/dist/git/providers/branches.d.ts +96 -94
- package/dist/git/providers/branches.js +0 -2
- package/dist/git/providers/commits.d.ts +105 -104
- package/dist/git/providers/commits.js +0 -2
- package/dist/git/providers/config.d.ts +80 -78
- package/dist/git/providers/config.js +0 -2
- package/dist/git/providers/contributors.d.ts +23 -21
- package/dist/git/providers/contributors.js +0 -2
- package/dist/git/providers/diff.d.ts +68 -66
- package/dist/git/providers/diff.js +0 -2
- package/dist/git/providers/graph.d.ts +73 -62
- package/dist/git/providers/graph.js +0 -2
- package/dist/git/providers/maintenance.d.ts +180 -178
- package/dist/git/providers/maintenance.js +0 -20
- package/dist/git/providers/operations.d.ts +114 -112
- package/dist/git/providers/operations.js +0 -2
- package/dist/git/providers/patch.d.ts +26 -24
- package/dist/git/providers/patch.js +0 -2
- package/dist/git/providers/pausedOperations.d.ts +19 -17
- package/dist/git/providers/pausedOperations.js +0 -2
- package/dist/git/providers/provider.d.ts +52 -50
- package/dist/git/providers/provider.js +0 -2
- package/dist/git/providers/refs.d.ts +42 -40
- package/dist/git/providers/refs.js +0 -2
- package/dist/git/providers/remotes.d.ts +24 -22
- package/dist/git/providers/remotes.js +0 -2
- package/dist/git/providers/revision.d.ts +25 -23
- package/dist/git/providers/revision.js +0 -2
- package/dist/git/providers/shared/remotes.d.ts +24 -22
- package/dist/git/providers/shared/remotes.js +52 -77
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts +37 -35
- package/dist/git/providers/staging.js +0 -2
- package/dist/git/providers/stash.d.ts +38 -36
- package/dist/git/providers/stash.js +0 -2
- package/dist/git/providers/status.d.ts +32 -30
- package/dist/git/providers/status.js +0 -2
- package/dist/git/providers/tags.d.ts +20 -18
- package/dist/git/providers/tags.js +0 -2
- package/dist/git/providers/types.d.ts +19 -17
- package/dist/git/providers/types.js +0 -2
- package/dist/git/providers/worktrees.d.ts +26 -24
- package/dist/git/providers/worktrees.js +0 -2
- package/dist/git/remotes/azure-devops.d.ts +46 -45
- package/dist/git/remotes/azure-devops.js +252 -257
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts +30 -29
- package/dist/git/remotes/bitbucket-server.js +141 -142
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts +27 -26
- package/dist/git/remotes/bitbucket.js +114 -111
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts +26 -25
- package/dist/git/remotes/custom.js +130 -130
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts +29 -28
- package/dist/git/remotes/gerrit.js +140 -143
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts +28 -27
- package/dist/git/remotes/gitea.js +141 -145
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts +35 -34
- package/dist/git/remotes/github.js +196 -190
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts +31 -30
- package/dist/git/remotes/gitlab.js +245 -227
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts +16 -14
- package/dist/git/remotes/google-source.js +33 -31
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts +16 -14
- package/dist/git/remotes/matcher.js +141 -124
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/repositoryService.d.ts +47 -47
- package/dist/git/repositoryService.js +47 -44
- package/dist/git/repositoryService.js.map +1 -1
- package/dist/git/run.types.d.ts +91 -76
- package/dist/git/run.types.js +0 -2
- package/dist/git/service.d.ts +73 -71
- package/dist/git/service.js +286 -302
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts +4 -2
- package/dist/git/utils/autolink.utils.js +103 -139
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts +22 -20
- package/dist/git/utils/blame.utils.js +196 -230
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts +7 -9
- package/dist/git/utils/branch.utils.js +89 -115
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts +10 -16
- package/dist/git/utils/commit.utils.js +28 -47
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/config.utils.d.ts +2 -0
- package/dist/git/utils/config.utils.js +14 -5
- package/dist/git/utils/config.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts +16 -13
- package/dist/git/utils/conflictResolution.utils.js +116 -113
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +10 -8
- package/dist/git/utils/contributor.utils.js +47 -69
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts +2 -0
- package/dist/git/utils/fetch.utils.js +33 -44
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +22 -21
- package/dist/git/utils/fileStatus.utils.js +59 -45
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +19 -1
- package/dist/git/utils/graph.utils.js +60 -35
- package/dist/git/utils/graph.utils.js.map +1 -1
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +154 -158
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +23 -20
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts +4 -1
- package/dist/git/utils/mergeConflicts.utils.js +28 -15
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +7 -42
- package/dist/git/utils/pausedOperationStatus.utils.js +83 -146
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +7 -5
- package/dist/git/utils/pullRequest.utils.js +180 -187
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +6 -6
- package/dist/git/utils/reachability.utils.js +120 -147
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts +3 -1
- package/dist/git/utils/rebase.utils.js +87 -71
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +33 -32
- package/dist/git/utils/reference.utils.js +152 -179
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts +5 -3
- package/dist/git/utils/remote.utils.js +77 -116
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts +3 -1
- package/dist/git/utils/repository.utils.js +12 -11
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts +3 -1
- package/dist/git/utils/resourceDescriptor.utils.js +8 -14
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts +11 -10
- package/dist/git/utils/revision.utils.js +69 -83
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts +5 -3
- package/dist/git/utils/search.utils.js +383 -522
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts +22 -20
- package/dist/git/utils/sorting.js +133 -227
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +2 -0
- package/dist/git/utils/sshKey.utils.js +10 -15
- package/dist/git/utils/sshKey.utils.js.map +1 -1
- package/dist/git/utils/status.utils.d.ts +20 -15
- package/dist/git/utils/status.utils.js +93 -79
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts +6 -4
- package/dist/git/utils/statusFile.utils.js +71 -72
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts +4 -2
- package/dist/git/utils/tag.utils.js +10 -8
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts +5 -2
- package/dist/git/utils/tooltip.utils.js +49 -24
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts +9 -7
- package/dist/git/utils/uriAuthority.js +19 -16
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts +3 -1
- package/dist/git/utils/user.utils.js +6 -10
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts +5 -3
- package/dist/git/utils/worktree.utils.js +14 -12
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts +38 -36
- package/dist/git/watching/changeEvent.js +60 -67
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts +3 -1
- package/dist/git/watching/classifyChange.js +50 -79
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +43 -41
- package/dist/git/watching/gitIgnoreFilter.js +92 -107
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts +22 -20
- package/dist/git/watching/initWatcher.js +58 -57
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts +8 -7
- package/dist/git/watching/provider.js +0 -2
- package/dist/git/watching/watchGroup.d.ts +29 -28
- package/dist/git/watching/watchGroup.js +105 -137
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +70 -68
- package/dist/git/watching/watchService.js +275 -339
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +112 -111
- package/dist/git/watching/watchSession.js +260 -314
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +4 -2
- package/dist/git/watching/watcherPatterns.js +21 -24
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +117 -114
- package/dist/git-cli/cliGitProvider.js +261 -283
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/eventLoopMonitor.d.ts +26 -0
- package/dist/git-cli/exec/eventLoopMonitor.js +61 -0
- package/dist/git-cli/exec/eventLoopMonitor.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +3 -4
- package/dist/git-cli/exec/exec.errors.d.ts +2 -2
- package/dist/git-cli/exec/exec.errors.js +2 -2
- package/dist/git-cli/exec/exec.js +3 -3
- package/dist/git-cli/exec/exec.types.d.ts +2 -2
- package/dist/git-cli/exec/exec.types.js +0 -2
- package/dist/git-cli/exec/features.d.ts +2 -3
- package/dist/git-cli/exec/features.js +2 -2
- package/dist/git-cli/exec/git.d.ts +224 -205
- package/dist/git-cli/exec/git.js +834 -1042
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts +51 -48
- package/dist/git-cli/exec/gitQueue.js +225 -260
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts +8 -6
- package/dist/git-cli/exec/locator.js +95 -121
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts +22 -20
- package/dist/git-cli/parsers/blameParser.js +238 -332
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts +3 -1
- package/dist/git-cli/parsers/indexParser.js +146 -221
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +103 -110
- package/dist/git-cli/parsers/logParser.js +998 -1199
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +5 -3
- package/dist/git-cli/parsers/mergeTreeParser.js +28 -72
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts +5 -4
- package/dist/git-cli/parsers/refParser.js +92 -137
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts +7 -6
- package/dist/git-cli/parsers/reflogParser.js +100 -173
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -2
- package/dist/git-cli/parsers/remoteParser.js +74 -126
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -2
- package/dist/git-cli/parsers/shortlogParser.js +44 -49
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts +3 -1
- package/dist/git-cli/parsers/signatureParser.js +82 -124
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +5 -3
- package/dist/git-cli/parsers/sshSignatureParser.js +55 -64
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +4 -2
- package/dist/git-cli/parsers/statusParser.js +148 -205
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts +3 -1
- package/dist/git-cli/parsers/treeParser.js +57 -108
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts +4 -3
- package/dist/git-cli/parsers/worktreeParser.js +76 -132
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts +25 -23
- package/dist/git-cli/providers/blame.js +404 -413
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +117 -116
- package/dist/git-cli/providers/branches.js +1132 -1468
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -2
- package/dist/git-cli/providers/commitFilesetUtils.js +36 -18
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +58 -56
- package/dist/git-cli/providers/commits.js +1084 -1423
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +129 -127
- package/dist/git-cli/providers/config.js +612 -831
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts +29 -28
- package/dist/git-cli/providers/contributors.js +246 -351
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts +97 -94
- package/dist/git-cli/providers/diff.js +638 -845
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +66 -68
- package/dist/git-cli/providers/graph.js +1400 -1848
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/maintenance.d.ts +305 -303
- package/dist/git-cli/providers/maintenance.js +1526 -2078
- package/dist/git-cli/providers/maintenance.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts +96 -94
- package/dist/git-cli/providers/operations.js +664 -724
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts +37 -35
- package/dist/git-cli/providers/patch.js +206 -307
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts +30 -28
- package/dist/git-cli/providers/pausedOperations.js +475 -506
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts +50 -48
- package/dist/git-cli/providers/refs.js +335 -479
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts +23 -21
- package/dist/git-cli/providers/remotes.js +71 -92
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +27 -25
- package/dist/git-cli/providers/revision.js +288 -304
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +31 -29
- package/dist/git-cli/providers/staging.js +140 -189
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts +44 -42
- package/dist/git-cli/providers/stash.js +288 -387
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +61 -59
- package/dist/git-cli/providers/status.js +332 -453
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts +31 -29
- package/dist/git-cli/providers/tags.js +158 -215
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +35 -33
- package/dist/git-cli/providers/worktrees.js +178 -203
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts +28 -26
- package/dist/git-cli/service.js +38 -40
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/discovery.d.ts +19 -17
- package/dist/ipc/discovery.js +104 -128
- package/dist/ipc/discovery.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts +16 -14
- package/dist/ipc/ipcServer.js +139 -160
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/agentCapabilities.d.ts +50 -37
- package/dist/plus/agents/agentCapabilities.js +138 -173
- package/dist/plus/agents/agentCapabilities.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +153 -151
- package/dist/plus/agents/providers/claudeCodeTranscript.js +605 -679
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts +237 -240
- package/dist/plus/agents/providers/gkAgentProvider.js +2162 -3334
- package/dist/plus/agents/providers/gkAgentProvider.js.map +1 -1
- package/dist/plus/agents/sanitizePrompt.d.ts +2 -0
- package/dist/plus/agents/sanitizePrompt.js +58 -91
- package/dist/plus/agents/sanitizePrompt.js.map +1 -1
- package/dist/plus/agents/stateMachine.d.ts +7 -5
- package/dist/plus/agents/stateMachine.js +135 -163
- package/dist/plus/agents/stateMachine.js.map +1 -1
- package/dist/plus/agents/types.d.ts +333 -336
- package/dist/plus/agents/types.js +48 -48
- package/dist/plus/agents/types.js.map +1 -1
- package/dist/plus/ai/constants.d.ts +3 -1
- package/dist/plus/ai/constants.js +88 -84
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts +22 -18
- package/dist/plus/ai/errors.js +158 -138
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts +11 -9
- package/dist/plus/ai/models/conversation.js +30 -26
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +29 -27
- package/dist/plus/ai/models/model.js +663 -471
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +56 -55
- package/dist/plus/ai/models/promptTemplates.js +0 -2
- package/dist/plus/ai/models/provider.d.ts +79 -77
- package/dist/plus/ai/models/provider.js +0 -2
- package/dist/plus/ai/models/results.d.ts +27 -21
- package/dist/plus/ai/models/results.js +0 -2
- package/dist/plus/ai/prompts.d.ts +4 -2
- package/dist/plus/ai/prompts.js +301 -190
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +33 -32
- package/dist/plus/ai/providers/anthropicProvider.js +484 -381
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -16
- package/dist/plus/ai/providers/azureProvider.js +53 -53
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts +23 -20
- package/dist/plus/ai/providers/context.js +0 -2
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +17 -15
- package/dist/plus/ai/providers/deepSeekProvider.js +45 -39
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/geminiProvider.js +316 -230
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +22 -20
- package/dist/plus/ai/providers/gitkrakenProvider.js +165 -260
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +16 -14
- package/dist/plus/ai/providers/huggingFaceProvider.js +45 -46
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts +22 -20
- package/dist/plus/ai/providers/mistralProvider.js +263 -195
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts +26 -24
- package/dist/plus/ai/providers/ollamaProvider.js +156 -189
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +18 -16
- package/dist/plus/ai/providers/openAICompatibleProvider.js +50 -50
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +187 -185
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +356 -475
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts +20 -19
- package/dist/plus/ai/providers/openRouterProvider.js +60 -65
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts +17 -15
- package/dist/plus/ai/providers/openaiProvider.js +35 -34
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts +4 -2
- package/dist/plus/ai/providers/responseFormatCache.js +21 -17
- package/dist/plus/ai/providers/responseFormatCache.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/xaiProvider.js +61 -46
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts +4 -2
- package/dist/plus/ai/utils/ai.utils.js +50 -77
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +7 -5
- package/dist/plus/ai/utils/results.utils.js +235 -269
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +3 -2
- package/dist/plus/ai/utils/truncation.utils.js +242 -205
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts +58 -56
- package/dist/plus/git-github/api/config.js +15 -11
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +500 -497
- package/dist/plus/git-github/api/github.js +2326 -3121
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts +5 -3
- package/dist/plus/git-github/api/github.utils.js +24 -19
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts +5 -3
- package/dist/plus/git-github/api/issueSearchQuery.js +204 -221
- package/dist/plus/git-github/api/issueSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts +6 -5
- package/dist/plus/git-github/api/pullRequestSearchQuery.js +89 -116
- package/dist/plus/git-github/api/pullRequestSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts +10 -8
- package/dist/plus/git-github/api/token.js +0 -2
- package/dist/plus/git-github/api/tokenUtils.d.ts +4 -2
- package/dist/plus/git-github/api/tokenUtils.js +14 -10
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts +94 -92
- package/dist/plus/git-github/api/types.js +0 -2
- package/dist/plus/git-github/context.d.ts +65 -63
- package/dist/plus/git-github/context.js +13 -9
- package/dist/plus/git-github/context.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +182 -182
- package/dist/plus/git-github/models.js +199 -265
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts +32 -31
- package/dist/plus/git-github/providers/github/blame.js +137 -150
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +42 -40
- package/dist/plus/git-github/providers/github/branches.js +199 -274
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts +35 -33
- package/dist/plus/git-github/providers/github/commits.js +527 -606
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts +10 -8
- package/dist/plus/git-github/providers/github/config.js +35 -45
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts +25 -24
- package/dist/plus/git-github/providers/github/contributors.js +174 -216
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts +34 -32
- package/dist/plus/git-github/providers/github/diff.js +154 -194
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +33 -31
- package/dist/plus/git-github/providers/github/graph.js +400 -452
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts +33 -31
- package/dist/plus/git-github/providers/github/refs.js +97 -131
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts +8 -6
- package/dist/plus/git-github/providers/github/remotes.js +30 -35
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +13 -11
- package/dist/plus/git-github/providers/github/revision.js +106 -129
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts +24 -22
- package/dist/plus/git-github/providers/github/status.js +49 -47
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts +21 -19
- package/dist/plus/git-github/providers/github/tags.js +78 -103
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +67 -64
- package/dist/plus/git-github/providers/githubGitProvider.js +131 -128
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts +46 -44
- package/dist/plus/git-github/providers/githubProvider.js +0 -2
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +29 -27
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +173 -208
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +126 -107
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +399 -497
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +73 -72
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +153 -232
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +61 -59
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +100 -124
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +14 -12
- package/dist/plus/integrations/authentication/manualTokenProvider.js +26 -51
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +102 -85
- package/dist/plus/integrations/authentication/models.js +55 -54
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +19 -17
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -51
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +12 -10
- package/dist/plus/integrations/collectionMetadata.js +204 -254
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/constants.d.ts +60 -34
- package/dist/plus/integrations/constants.js +157 -132
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +253 -252
- package/dist/plus/integrations/context.js +0 -2
- package/dist/plus/integrations/errors.d.ts +26 -25
- package/dist/plus/integrations/errors.js +116 -140
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +36 -40
- package/dist/plus/integrations/index.js +46 -57
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +445 -440
- package/dist/plus/integrations/integrationService.js +1054 -1324
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +33 -31
- package/dist/plus/integrations/lite.js +84 -122
- package/dist/plus/integrations/lite.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +592 -580
- package/dist/plus/integrations/manager.js +0 -2
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +420 -415
- package/dist/plus/integrations/models/gitHostIntegration.js +1180 -1293
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +200 -190
- package/dist/plus/integrations/models/integration.js +577 -722
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issueCache.d.ts +15 -13
- package/dist/plus/integrations/models/issueCache.js +9 -7
- package/dist/plus/integrations/models/issueCache.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +108 -85
- package/dist/plus/integrations/models/issueReads.js +0 -2
- package/dist/plus/integrations/models/issuesIntegration.d.ts +72 -71
- package/dist/plus/integrations/models/issuesIntegration.js +160 -186
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts +9 -7
- package/dist/plus/integrations/models/pullRequestReads.js +0 -2
- package/dist/plus/integrations/providerFilters.d.ts +8 -20
- package/dist/plus/integrations/providerFilters.js +11 -7
- package/dist/plus/integrations/providerFilters.js.map +1 -1
- package/dist/plus/integrations/providers/accounts.d.ts +7 -5
- package/dist/plus/integrations/providers/accounts.js +21 -31
- package/dist/plus/integrations/providers/accounts.js.map +1 -1
- package/dist/plus/integrations/providers/apiClients.d.ts +13 -10
- package/dist/plus/integrations/providers/apiClients.js +51 -36
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +31 -29
- package/dist/plus/integrations/providers/apiConfig.js +18 -16
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts +69 -67
- package/dist/plus/integrations/providers/azure/azure.js +452 -577
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +228 -226
- package/dist/plus/integrations/providers/azure/models.js +223 -251
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -131
- package/dist/plus/integrations/providers/azureDevOps.js +773 -931
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +50 -48
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +417 -585
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts +179 -179
- package/dist/plus/integrations/providers/bitbucket/models.js +96 -144
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +111 -109
- package/dist/plus/integrations/providers/bitbucket-server/models.js +102 -121
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +79 -79
- package/dist/plus/integrations/providers/bitbucket-server.js +205 -241
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +80 -79
- package/dist/plus/integrations/providers/bitbucket.js +390 -477
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts +5 -3
- package/dist/plus/integrations/providers/github/github.js +38 -45
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts +8 -5
- package/dist/plus/integrations/providers/github/github.utils.js +7 -4
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts +2 -3
- package/dist/plus/integrations/providers/github/models.js +2 -2
- package/dist/plus/integrations/providers/github.d.ts +174 -172
- package/dist/plus/integrations/providers/github.js +431 -523
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +67 -66
- package/dist/plus/integrations/providers/gitlab/gitlab.js +546 -757
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +45 -46
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +109 -107
- package/dist/plus/integrations/providers/gitlab/models.js +74 -89
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +115 -114
- package/dist/plus/integrations/providers/gitlab.js +440 -528
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +3 -1
- package/dist/plus/integrations/providers/issueSorts.js +66 -62
- package/dist/plus/integrations/providers/issueSorts.js.map +1 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +90 -0
- package/dist/plus/integrations/providers/jira-server.js +322 -0
- package/dist/plus/integrations/providers/jira-server.js.map +1 -0
- package/dist/plus/integrations/providers/jira.d.ts +41 -39
- package/dist/plus/integrations/providers/jira.js +378 -440
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +85 -89
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +63 -62
- package/dist/plus/integrations/providers/linear.js +315 -358
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +514 -503
- package/dist/plus/integrations/providers/models.js +816 -865
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts +35 -2
- package/dist/plus/integrations/providers/providerErrors.js +120 -81
- package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +299 -271
- package/dist/plus/integrations/providers/providersApi.js +1048 -1001
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts +21 -21
- package/dist/plus/integrations/providers/pullRequestReviews.js +64 -90
- package/dist/plus/integrations/providers/pullRequestReviews.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +35 -34
- package/dist/plus/integrations/providers/trello.js +136 -143
- package/dist/plus/integrations/providers/trello.js.map +1 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +4 -2
- package/dist/plus/integrations/providers/utils/providerPaging.js +131 -156
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -1
- package/dist/plus/integrations/providers/utils.d.ts +51 -50
- package/dist/plus/integrations/providers/utils.js +185 -296
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/broaden.d.ts +10 -8
- package/dist/plus/integrations/reads/broaden.js +320 -439
- package/dist/plus/integrations/reads/broaden.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +47 -45
- package/dist/plus/integrations/reads/context.js +0 -2
- package/dist/plus/integrations/reads/counts.d.ts +74 -72
- package/dist/plus/integrations/reads/counts.js +233 -314
- package/dist/plus/integrations/reads/counts.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +26 -24
- package/dist/plus/integrations/reads/cursors.js +80 -115
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +24 -23
- package/dist/plus/integrations/reads/drains.js +225 -298
- package/dist/plus/integrations/reads/drains.js.map +1 -1
- package/dist/plus/integrations/reads/filters.d.ts +84 -80
- package/dist/plus/integrations/reads/filters.js +326 -414
- package/dist/plus/integrations/reads/filters.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +14 -12
- package/dist/plus/integrations/reads/hierarchy.js +248 -332
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +11 -9
- package/dist/plus/integrations/reads/hierarchy.utils.js +109 -108
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts +28 -26
- package/dist/plus/integrations/reads/issueBatch.js +83 -85
- package/dist/plus/integrations/reads/issueBatch.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +42 -33
- package/dist/plus/integrations/reads/issueTracker.js +265 -386
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.d.ts +50 -47
- package/dist/plus/integrations/reads/issues.js +202 -331
- package/dist/plus/integrations/reads/issues.js.map +1 -1
- package/dist/plus/integrations/reads/ordering.d.ts +32 -30
- package/dist/plus/integrations/reads/ordering.js +47 -43
- package/dist/plus/integrations/reads/ordering.js.map +1 -1
- package/dist/plus/integrations/reads/paging.d.ts +59 -57
- package/dist/plus/integrations/reads/paging.js +244 -261
- package/dist/plus/integrations/reads/paging.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts +37 -35
- package/dist/plus/integrations/reads/pullRequests.js +95 -148
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts +15 -13
- package/dist/plus/integrations/reads/resolveRepository.js +147 -231
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts +29 -27
- package/dist/plus/integrations/reads/searchIssues.js +104 -153
- package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts +20 -18
- package/dist/plus/integrations/reads/searchPullRequests.js +91 -113
- package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/sweeps.d.ts +6 -4
- package/dist/plus/integrations/reads/sweeps.js +143 -178
- package/dist/plus/integrations/reads/sweeps.js.map +1 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts +24 -16
- package/dist/plus/integrations/reads/trackerIssue.js +52 -49
- package/dist/plus/integrations/reads/trackerIssue.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.d.ts +10 -7
- package/dist/plus/integrations/reads/warnings.js +264 -291
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +201 -199
- package/dist/plus/integrations/results.js +105 -119
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/telemetry.d.ts +7 -5
- package/dist/plus/integrations/telemetry.js +9 -9
- package/dist/plus/integrations/telemetry.js.map +1 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts +21 -0
- package/dist/plus/integrations/utils/domain.utils.js +55 -22
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +30 -6
- package/dist/plus/integrations/utils/integration.utils.js +154 -161
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts +9 -7
- package/dist/utils/array.js +110 -126
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/base64.js +2 -2
- package/dist/utils/brand.d.ts +4 -3
- package/dist/utils/brand.js +0 -2
- package/dist/utils/cancellation.d.ts +24 -24
- package/dist/utils/cancellation.js +152 -167
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts +31 -37
- package/dist/utils/charCode.js +41 -37
- package/dist/utils/charCode.js.map +1 -1
- package/dist/utils/coalescedRun.d.ts +10 -8
- package/dist/utils/coalescedRun.js +39 -41
- package/dist/utils/coalescedRun.js.map +1 -1
- package/dist/utils/color.d.ts +137 -135
- package/dist/utils/color.js +535 -660
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/counter.d.ts +5 -3
- package/dist/utils/counter.js +19 -17
- package/dist/utils/counter.js.map +1 -1
- package/dist/utils/crypto.d.ts +2 -2
- package/dist/utils/crypto.js +2 -2
- package/dist/utils/date.d.ts +10 -9
- package/dist/utils/date.js +312 -350
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.d.ts +45 -43
- package/dist/utils/debounce.js +175 -206
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts +3 -1
- package/dist/utils/decorators/debounce.js +16 -19
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts +13 -11
- package/dist/utils/decorators/gate.js +97 -124
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts +25 -24
- package/dist/utils/decorators/log.js +166 -227
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts +10 -8
- package/dist/utils/decorators/memoize.js +49 -57
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts +2 -0
- package/dist/utils/decorators/resolver.js +64 -75
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts +15 -14
- package/dist/utils/decorators/sequentialize.js +61 -80
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts +2 -0
- package/dist/utils/decorators/serializable.js +30 -39
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts +23 -21
- package/dist/utils/dedupedAsyncCache.js +63 -66
- package/dist/utils/dedupedAsyncCache.js.map +1 -1
- package/dist/utils/diff.d.ts +2 -0
- package/dist/utils/diff.js +41 -51
- package/dist/utils/diff.js.map +1 -1
- package/dist/utils/disposable.d.ts +15 -13
- package/dist/utils/disposable.js +71 -80
- package/dist/utils/disposable.js.map +1 -1
- package/dist/utils/dom.d.ts +45 -0
- package/dist/utils/dom.js +106 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/encoding.d.ts +2 -0
- package/dist/utils/encoding.js +7 -5
- package/dist/utils/encoding.js.map +1 -1
- package/dist/utils/env/browser/base64.d.ts +2 -0
- package/dist/utils/env/browser/base64.js +32 -34
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts +2 -0
- package/dist/utils/env/browser/crypto.js +17 -13
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.js +6 -2
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts +2 -0
- package/dist/utils/env/browser/hex.js +271 -29
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.js +17 -13
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts +3 -1
- package/dist/utils/env/browser/logScope.js +39 -43
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.js +211 -184
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts +3 -0
- package/dist/utils/env/browser/platform.js +11 -4
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts +2 -0
- package/dist/utils/env/node/base64.js +13 -11
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts +2 -0
- package/dist/utils/env/node/crypto.js +13 -9
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +66 -65
- package/dist/utils/env/node/exec.js +255 -267
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.js +7 -3
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts +2 -0
- package/dist/utils/env/node/hex.js +10 -6
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts +2 -2
- package/dist/utils/env/node/hrtime.js +2 -2
- package/dist/utils/env/node/logScope.d.ts +3 -1
- package/dist/utils/env/node/logScope.js +52 -42
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts +3 -0
- package/dist/utils/env/node/platform.js +11 -4
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/error.d.ts +8 -6
- package/dist/utils/error.js +16 -14
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/event.d.ts +27 -25
- package/dist/utils/event.js +141 -170
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts +15 -14
- package/dist/utils/formatter.js +96 -129
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/fs.d.ts +2 -2
- package/dist/utils/fs.js +2 -2
- package/dist/utils/function.d.ts +5 -6
- package/dist/utils/function.js +73 -90
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/fuzzy.d.ts +18 -16
- package/dist/utils/fuzzy.js +121 -127
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/gitRefs.d.ts +11 -0
- package/dist/utils/gitRefs.js +21 -0
- package/dist/utils/gitRefs.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +49 -47
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/hex.d.ts +2 -2
- package/dist/utils/hex.js +2 -2
- package/dist/utils/hostingServiceType.d.ts +8 -0
- package/dist/utils/hostingServiceType.js +0 -0
- package/dist/utils/hrtime.d.ts +4 -2
- package/dist/utils/hrtime.js +8 -5
- package/dist/utils/hrtime.js.map +1 -1
- package/dist/utils/iterable.d.ts +3 -1
- package/dist/utils/iterable.js +591 -616
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/keys/chord.d.ts +27 -25
- package/dist/utils/keys/chord.js +108 -122
- package/dist/utils/keys/chord.js.map +1 -1
- package/dist/utils/keys/keybinding.d.ts +98 -22
- package/dist/utils/keys/keybinding.js +151 -53
- package/dist/utils/keys/keybinding.js.map +1 -1
- package/dist/utils/keys/keymapDispatcher.d.ts +66 -0
- package/dist/utils/keys/keymapDispatcher.js +187 -0
- package/dist/utils/keys/keymapDispatcher.js.map +1 -0
- package/dist/utils/lazy.d.ts +14 -12
- package/dist/utils/lazy.js +35 -36
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/loggable.d.ts +3 -1
- package/dist/utils/loggable.js +6 -2
- package/dist/utils/loggable.js.map +1 -1
- package/dist/utils/logger.d.ts +48 -46
- package/dist/utils/logger.js +219 -304
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.d.ts +30 -28
- package/dist/utils/logger.scoped.js +133 -147
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts +34 -32
- package/dist/utils/lruMap.js +97 -101
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/markdown.d.ts +5 -3
- package/dist/utils/markdown.js +52 -88
- package/dist/utils/markdown.js.map +1 -1
- package/dist/utils/mru.d.ts +13 -11
- package/dist/utils/mru.js +57 -62
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.d.ts +9 -34
- package/dist/utils/object.js +132 -191
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +36 -34
- package/dist/utils/paging.js +42 -45
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.d.ts +4 -1
- package/dist/utils/path.js +129 -162
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/pausedOperation.d.ts +42 -0
- package/dist/utils/pausedOperation.js +62 -0
- package/dist/utils/pausedOperation.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/platform.js +2 -2
- package/dist/utils/plural.d.ts +21 -0
- package/dist/utils/plural.js +136 -0
- package/dist/utils/plural.js.map +1 -0
- package/dist/utils/promise.d.ts +19 -18
- package/dist/utils/promise.js +323 -360
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +331 -330
- package/dist/utils/promiseCache.js +602 -717
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/resourceUsage.d.ts +2 -0
- package/dist/utils/resourceUsage.js +0 -2
- package/dist/utils/searchTree.d.ts +51 -49
- package/dist/utils/searchTree.js +306 -396
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts +33 -32
- package/dist/utils/stopwatch.js +67 -81
- package/dist/utils/stopwatch.js.map +1 -1
- package/dist/utils/string.d.ts +17 -24
- package/dist/utils/string.js +787 -803
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts +15 -14
- package/dist/utils/subscriptionManager.js +36 -33
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts +64 -62
- package/dist/utils/trie.js +438 -580
- package/dist/utils/trie.js.map +1 -1
- package/dist/utils/types.d.ts +8 -16
- package/dist/utils/types.js +0 -2
- package/dist/utils/uri.d.ts +27 -25
- package/dist/utils/uri.js +42 -42
- package/dist/utils/uri.js.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.js +17 -23
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/version.d.ts +6 -5
- package/dist/utils/version.js +77 -104
- package/dist/utils/version.js.map +1 -1
- package/docs/integrations.md +70 -26
- package/package.json +18 -8
- package/dist/git/cache.d.ts.map +0 -1
- package/dist/git/context.d.ts.map +0 -1
- package/dist/git/errors.d.ts.map +0 -1
- package/dist/git/features.d.ts.map +0 -1
- package/dist/git/gitHealth.d.ts.map +0 -1
- package/dist/git/models/author.d.ts.map +0 -1
- package/dist/git/models/author.js.map +0 -1
- package/dist/git/models/autolink.d.ts.map +0 -1
- package/dist/git/models/autolink.js.map +0 -1
- package/dist/git/models/blame.d.ts.map +0 -1
- package/dist/git/models/blame.js.map +0 -1
- package/dist/git/models/branch.d.ts.map +0 -1
- package/dist/git/models/commit.d.ts.map +0 -1
- package/dist/git/models/contributor.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.js.map +0 -1
- package/dist/git/models/diff.d.ts.map +0 -1
- package/dist/git/models/diff.js.map +0 -1
- package/dist/git/models/file.d.ts.map +0 -1
- package/dist/git/models/file.js.map +0 -1
- package/dist/git/models/fileChange.d.ts.map +0 -1
- package/dist/git/models/fileStatus.d.ts.map +0 -1
- package/dist/git/models/graph.d.ts.map +0 -1
- package/dist/git/models/graphSearch.d.ts.map +0 -1
- package/dist/git/models/graphSearch.js.map +0 -1
- package/dist/git/models/graphSession.d.ts.map +0 -1
- package/dist/git/models/issue.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.js.map +0 -1
- package/dist/git/models/lineRange.d.ts.map +0 -1
- package/dist/git/models/lineRange.js.map +0 -1
- package/dist/git/models/log.d.ts.map +0 -1
- package/dist/git/models/log.js.map +0 -1
- package/dist/git/models/mergeConflicts.d.ts.map +0 -1
- package/dist/git/models/mergeConflicts.js.map +0 -1
- package/dist/git/models/patch.d.ts.map +0 -1
- package/dist/git/models/patch.js.map +0 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +0 -1
- package/dist/git/models/pausedOperationStatus.js.map +0 -1
- package/dist/git/models/pullRequest.d.ts.map +0 -1
- package/dist/git/models/rebase.d.ts.map +0 -1
- package/dist/git/models/rebase.js.map +0 -1
- package/dist/git/models/reference.d.ts.map +0 -1
- package/dist/git/models/reference.js.map +0 -1
- package/dist/git/models/reflog.d.ts.map +0 -1
- package/dist/git/models/remote.d.ts.map +0 -1
- package/dist/git/models/remoteProvider.d.ts.map +0 -1
- package/dist/git/models/remoteResource.d.ts.map +0 -1
- package/dist/git/models/repository.d.ts.map +0 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +0 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.js.map +0 -1
- package/dist/git/models/resourceDescriptor.d.ts.map +0 -1
- package/dist/git/models/resourceDescriptor.js.map +0 -1
- package/dist/git/models/revision.d.ts.map +0 -1
- package/dist/git/models/search.d.ts.map +0 -1
- package/dist/git/models/shortlog.d.ts.map +0 -1
- package/dist/git/models/shortlog.js.map +0 -1
- package/dist/git/models/signature.d.ts.map +0 -1
- package/dist/git/models/signature.js.map +0 -1
- package/dist/git/models/staging.d.ts.map +0 -1
- package/dist/git/models/staging.js.map +0 -1
- package/dist/git/models/stash.d.ts.map +0 -1
- package/dist/git/models/stash.js.map +0 -1
- package/dist/git/models/status.d.ts.map +0 -1
- package/dist/git/models/statusFile.d.ts.map +0 -1
- package/dist/git/models/tag.d.ts.map +0 -1
- package/dist/git/models/tree.d.ts.map +0 -1
- package/dist/git/models/tree.js.map +0 -1
- package/dist/git/models/user.d.ts.map +0 -1
- package/dist/git/models/user.js.map +0 -1
- package/dist/git/models/worktree.d.ts.map +0 -1
- package/dist/git/parsers/diffParser.d.ts.map +0 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +0 -1
- package/dist/git/providers/blame.d.ts.map +0 -1
- package/dist/git/providers/blame.js.map +0 -1
- package/dist/git/providers/branches.d.ts.map +0 -1
- package/dist/git/providers/branches.js.map +0 -1
- package/dist/git/providers/commits.d.ts.map +0 -1
- package/dist/git/providers/commits.js.map +0 -1
- package/dist/git/providers/config.d.ts.map +0 -1
- package/dist/git/providers/config.js.map +0 -1
- package/dist/git/providers/contributors.d.ts.map +0 -1
- package/dist/git/providers/contributors.js.map +0 -1
- package/dist/git/providers/diff.d.ts.map +0 -1
- package/dist/git/providers/diff.js.map +0 -1
- package/dist/git/providers/graph.d.ts.map +0 -1
- package/dist/git/providers/graph.js.map +0 -1
- package/dist/git/providers/maintenance.d.ts.map +0 -1
- package/dist/git/providers/maintenance.js.map +0 -1
- package/dist/git/providers/operations.d.ts.map +0 -1
- package/dist/git/providers/operations.js.map +0 -1
- package/dist/git/providers/patch.d.ts.map +0 -1
- package/dist/git/providers/patch.js.map +0 -1
- package/dist/git/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git/providers/pausedOperations.js.map +0 -1
- package/dist/git/providers/provider.d.ts.map +0 -1
- package/dist/git/providers/provider.js.map +0 -1
- package/dist/git/providers/refs.d.ts.map +0 -1
- package/dist/git/providers/refs.js.map +0 -1
- package/dist/git/providers/remotes.d.ts.map +0 -1
- package/dist/git/providers/remotes.js.map +0 -1
- package/dist/git/providers/revision.d.ts.map +0 -1
- package/dist/git/providers/revision.js.map +0 -1
- package/dist/git/providers/shared/remotes.d.ts.map +0 -1
- package/dist/git/providers/staging.d.ts.map +0 -1
- package/dist/git/providers/staging.js.map +0 -1
- package/dist/git/providers/stash.d.ts.map +0 -1
- package/dist/git/providers/stash.js.map +0 -1
- package/dist/git/providers/status.d.ts.map +0 -1
- package/dist/git/providers/status.js.map +0 -1
- package/dist/git/providers/tags.d.ts.map +0 -1
- package/dist/git/providers/tags.js.map +0 -1
- package/dist/git/providers/types.d.ts.map +0 -1
- package/dist/git/providers/types.js.map +0 -1
- package/dist/git/providers/worktrees.d.ts.map +0 -1
- package/dist/git/providers/worktrees.js.map +0 -1
- package/dist/git/remotes/azure-devops.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket.d.ts.map +0 -1
- package/dist/git/remotes/custom.d.ts.map +0 -1
- package/dist/git/remotes/gerrit.d.ts.map +0 -1
- package/dist/git/remotes/gitea.d.ts.map +0 -1
- package/dist/git/remotes/github.d.ts.map +0 -1
- package/dist/git/remotes/gitlab.d.ts.map +0 -1
- package/dist/git/remotes/google-source.d.ts.map +0 -1
- package/dist/git/remotes/matcher.d.ts.map +0 -1
- package/dist/git/repositoryService.d.ts.map +0 -1
- package/dist/git/run.types.d.ts.map +0 -1
- package/dist/git/run.types.js.map +0 -1
- package/dist/git/service.d.ts.map +0 -1
- package/dist/git/utils/autolink.utils.d.ts.map +0 -1
- package/dist/git/utils/blame.utils.d.ts.map +0 -1
- package/dist/git/utils/branch.utils.d.ts.map +0 -1
- package/dist/git/utils/commit.utils.d.ts.map +0 -1
- package/dist/git/utils/config.utils.d.ts.map +0 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +0 -1
- package/dist/git/utils/contributor.utils.d.ts.map +0 -1
- package/dist/git/utils/fetch.utils.d.ts.map +0 -1
- package/dist/git/utils/fileStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/graph.utils.d.ts.map +0 -1
- package/dist/git/utils/issue.utils.d.ts.map +0 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +0 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/reachability.utils.d.ts.map +0 -1
- package/dist/git/utils/rebase.utils.d.ts.map +0 -1
- package/dist/git/utils/reference.utils.d.ts.map +0 -1
- package/dist/git/utils/remote.utils.d.ts.map +0 -1
- package/dist/git/utils/repository.utils.d.ts.map +0 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +0 -1
- package/dist/git/utils/revision.utils.d.ts.map +0 -1
- package/dist/git/utils/search.utils.d.ts.map +0 -1
- package/dist/git/utils/sorting.d.ts.map +0 -1
- package/dist/git/utils/sshKey.utils.d.ts.map +0 -1
- package/dist/git/utils/status.utils.d.ts.map +0 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +0 -1
- package/dist/git/utils/tag.utils.d.ts.map +0 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +0 -1
- package/dist/git/utils/uriAuthority.d.ts.map +0 -1
- package/dist/git/utils/user.utils.d.ts.map +0 -1
- package/dist/git/utils/worktree.utils.d.ts.map +0 -1
- package/dist/git/watching/changeEvent.d.ts.map +0 -1
- package/dist/git/watching/classifyChange.d.ts.map +0 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +0 -1
- package/dist/git/watching/initWatcher.d.ts.map +0 -1
- package/dist/git/watching/provider.d.ts.map +0 -1
- package/dist/git/watching/provider.js.map +0 -1
- package/dist/git/watching/watchGroup.d.ts.map +0 -1
- package/dist/git/watching/watchService.d.ts.map +0 -1
- package/dist/git/watching/watchSession.d.ts.map +0 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +0 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.js.map +0 -1
- package/dist/git-cli/exec/exec.js.map +0 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.types.js.map +0 -1
- package/dist/git-cli/exec/features.d.ts.map +0 -1
- package/dist/git-cli/exec/features.js.map +0 -1
- package/dist/git-cli/exec/git.d.ts.map +0 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +0 -1
- package/dist/git-cli/exec/locator.d.ts.map +0 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/statusParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +0 -1
- package/dist/git-cli/providers/blame.d.ts.map +0 -1
- package/dist/git-cli/providers/branches.d.ts.map +0 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +0 -1
- package/dist/git-cli/providers/commits.d.ts.map +0 -1
- package/dist/git-cli/providers/config.d.ts.map +0 -1
- package/dist/git-cli/providers/contributors.d.ts.map +0 -1
- package/dist/git-cli/providers/diff.d.ts.map +0 -1
- package/dist/git-cli/providers/graph.d.ts.map +0 -1
- package/dist/git-cli/providers/maintenance.d.ts.map +0 -1
- package/dist/git-cli/providers/operations.d.ts.map +0 -1
- package/dist/git-cli/providers/patch.d.ts.map +0 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git-cli/providers/refs.d.ts.map +0 -1
- package/dist/git-cli/providers/remotes.d.ts.map +0 -1
- package/dist/git-cli/providers/revision.d.ts.map +0 -1
- package/dist/git-cli/providers/staging.d.ts.map +0 -1
- package/dist/git-cli/providers/stash.d.ts.map +0 -1
- package/dist/git-cli/providers/status.d.ts.map +0 -1
- package/dist/git-cli/providers/tags.d.ts.map +0 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +0 -1
- package/dist/git-cli/service.d.ts.map +0 -1
- package/dist/ipc/discovery.d.ts.map +0 -1
- package/dist/ipc/ipcServer.d.ts.map +0 -1
- package/dist/plus/agents/agentCapabilities.d.ts.map +0 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +0 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts.map +0 -1
- package/dist/plus/agents/sanitizePrompt.d.ts.map +0 -1
- package/dist/plus/agents/stateMachine.d.ts.map +0 -1
- package/dist/plus/agents/types.d.ts.map +0 -1
- package/dist/plus/ai/constants.d.ts.map +0 -1
- package/dist/plus/ai/errors.d.ts.map +0 -1
- package/dist/plus/ai/models/conversation.d.ts.map +0 -1
- package/dist/plus/ai/models/model.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.js.map +0 -1
- package/dist/plus/ai/models/provider.d.ts.map +0 -1
- package/dist/plus/ai/models/provider.js.map +0 -1
- package/dist/plus/ai/models/results.d.ts.map +0 -1
- package/dist/plus/ai/models/results.js.map +0 -1
- package/dist/plus/ai/prompts.d.ts.map +0 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.js.map +0 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +0 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts.map +0 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/results.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/config.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.js.map +0 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.js.map +0 -1
- package/dist/plus/git-github/context.d.ts.map +0 -1
- package/dist/plus/git-github/models.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +0 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/models.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +0 -1
- package/dist/plus/integrations/collectionMetadata.d.ts.map +0 -1
- package/dist/plus/integrations/constants.d.ts.map +0 -1
- package/dist/plus/integrations/context.d.ts.map +0 -1
- package/dist/plus/integrations/context.js.map +0 -1
- package/dist/plus/integrations/errors.d.ts.map +0 -1
- package/dist/plus/integrations/index.d.ts.map +0 -1
- package/dist/plus/integrations/integrationService.d.ts.map +0 -1
- package/dist/plus/integrations/lite.d.ts.map +0 -1
- package/dist/plus/integrations/manager.d.ts.map +0 -1
- package/dist/plus/integrations/manager.js.map +0 -1
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/integration.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueCache.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.js.map +0 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.js.map +0 -1
- package/dist/plus/integrations/providerFilters.d.ts.map +0 -1
- package/dist/plus/integrations/providers/accounts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiClients.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.js.map +0 -1
- package/dist/plus/integrations/providers/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jira.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts.map +0 -1
- package/dist/plus/integrations/providers/linear.d.ts.map +0 -1
- package/dist/plus/integrations/providers/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providersApi.d.ts.map +0 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts.map +0 -1
- package/dist/plus/integrations/providers/trello.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/broaden.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.js.map +0 -1
- package/dist/plus/integrations/reads/counts.d.ts.map +0 -1
- package/dist/plus/integrations/reads/cursors.d.ts.map +0 -1
- package/dist/plus/integrations/reads/drains.d.ts.map +0 -1
- package/dist/plus/integrations/reads/filters.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/ordering.d.ts.map +0 -1
- package/dist/plus/integrations/reads/paging.d.ts.map +0 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/sweeps.d.ts.map +0 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts.map +0 -1
- package/dist/plus/integrations/reads/warnings.d.ts.map +0 -1
- package/dist/plus/integrations/results.d.ts.map +0 -1
- package/dist/plus/integrations/telemetry.d.ts.map +0 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +0 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +0 -1
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/base64.d.ts.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/brand.d.ts.map +0 -1
- package/dist/utils/brand.js.map +0 -1
- package/dist/utils/cancellation.d.ts.map +0 -1
- package/dist/utils/charCode.d.ts.map +0 -1
- package/dist/utils/coalescedRun.d.ts.map +0 -1
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/counter.d.ts.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/gate.d.ts.map +0 -1
- package/dist/utils/decorators/log.d.ts.map +0 -1
- package/dist/utils/decorators/memoize.d.ts.map +0 -1
- package/dist/utils/decorators/resolver.d.ts.map +0 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +0 -1
- package/dist/utils/decorators/serializable.d.ts.map +0 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +0 -1
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/disposable.d.ts.map +0 -1
- package/dist/utils/encoding.d.ts.map +0 -1
- package/dist/utils/env/browser/base64.d.ts.map +0 -1
- package/dist/utils/env/browser/crypto.d.ts.map +0 -1
- package/dist/utils/env/browser/fs.d.ts.map +0 -1
- package/dist/utils/env/browser/hex.d.ts.map +0 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +0 -1
- package/dist/utils/env/browser/logScope.d.ts.map +0 -1
- package/dist/utils/env/browser/md5.d.ts.map +0 -1
- package/dist/utils/env/browser/platform.d.ts.map +0 -1
- package/dist/utils/env/node/base64.d.ts.map +0 -1
- package/dist/utils/env/node/crypto.d.ts.map +0 -1
- package/dist/utils/env/node/exec.d.ts.map +0 -1
- package/dist/utils/env/node/fs.d.ts.map +0 -1
- package/dist/utils/env/node/hex.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.js.map +0 -1
- package/dist/utils/env/node/logScope.d.ts.map +0 -1
- package/dist/utils/env/node/platform.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/formatter.d.ts.map +0 -1
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/function.d.ts.map +0 -1
- package/dist/utils/fuzzy.d.ts.map +0 -1
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/hrtime.d.ts.map +0 -1
- package/dist/utils/iterable.d.ts.map +0 -1
- package/dist/utils/keys/chord.d.ts.map +0 -1
- package/dist/utils/keys/keybinding.d.ts.map +0 -1
- package/dist/utils/lazy.d.ts.map +0 -1
- package/dist/utils/loggable.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.scoped.d.ts.map +0 -1
- package/dist/utils/lruMap.d.ts.map +0 -1
- package/dist/utils/markdown.d.ts.map +0 -1
- package/dist/utils/mru.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/paging.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/promise.d.ts.map +0 -1
- package/dist/utils/promiseCache.d.ts.map +0 -1
- package/dist/utils/resourceUsage.d.ts.map +0 -1
- package/dist/utils/resourceUsage.js.map +0 -1
- package/dist/utils/searchTree.d.ts.map +0 -1
- package/dist/utils/stopwatch.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/subscriptionManager.d.ts.map +0 -1
- package/dist/utils/trie.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/uri.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/src/git/cache.ts +0 -1859
- package/src/git/context.ts +0 -301
- package/src/git/errors.ts +0 -1168
- package/src/git/features.ts +0 -98
- package/src/git/gitHealth.ts +0 -522
- package/src/git/models/author.ts +0 -19
- package/src/git/models/autolink.ts +0 -59
- package/src/git/models/blame.ts +0 -46
- package/src/git/models/branch.ts +0 -237
- package/src/git/models/commit.ts +0 -673
- package/src/git/models/contributor.ts +0 -84
- package/src/git/models/defaultBranch.ts +0 -6
- package/src/git/models/diff.ts +0 -74
- package/src/git/models/file.ts +0 -29
- package/src/git/models/fileChange.ts +0 -82
- package/src/git/models/fileStatus.ts +0 -36
- package/src/git/models/graph.ts +0 -444
- package/src/git/models/graphSearch.ts +0 -53
- package/src/git/models/graphSession.ts +0 -102
- package/src/git/models/issue.ts +0 -273
- package/src/git/models/issueOrPullRequest.ts +0 -20
- package/src/git/models/lineRange.ts +0 -7
- package/src/git/models/log.ts +0 -21
- package/src/git/models/mergeConflicts.ts +0 -19
- package/src/git/models/patch.ts +0 -25
- package/src/git/models/pausedOperationStatus.ts +0 -63
- package/src/git/models/pullRequest.ts +0 -357
- package/src/git/models/rebase.ts +0 -60
- package/src/git/models/reference.ts +0 -80
- package/src/git/models/reflog.ts +0 -88
- package/src/git/models/remote.ts +0 -100
- package/src/git/models/remoteProvider.ts +0 -291
- package/src/git/models/remoteResource.ts +0 -87
- package/src/git/models/repository.ts +0 -510
- package/src/git/models/repositoryChangeEvent.ts +0 -30
- package/src/git/models/repositoryIdentities.ts +0 -99
- package/src/git/models/repositoryMetadata.ts +0 -12
- package/src/git/models/resourceDescriptor.ts +0 -28
- package/src/git/models/revision.ts +0 -12
- package/src/git/models/search.ts +0 -138
- package/src/git/models/shortlog.ts +0 -6
- package/src/git/models/signature.ts +0 -45
- package/src/git/models/staging.ts +0 -27
- package/src/git/models/stash.ts +0 -6
- package/src/git/models/status.ts +0 -246
- package/src/git/models/statusFile.ts +0 -131
- package/src/git/models/tag.ts +0 -76
- package/src/git/models/tree.ts +0 -10
- package/src/git/models/user.ts +0 -7
- package/src/git/models/worktree.ts +0 -160
- package/src/git/parsers/diffParser.ts +0 -648
- package/src/git/parsers/rebaseTodoParser.ts +0 -169
- package/src/git/providers/blame.ts +0 -40
- package/src/git/providers/branches.ts +0 -143
- package/src/git/providers/commits.ts +0 -174
- package/src/git/providers/config.ts +0 -167
- package/src/git/providers/contributors.ts +0 -34
- package/src/git/providers/diff.ts +0 -133
- package/src/git/providers/graph.ts +0 -95
- package/src/git/providers/maintenance.ts +0 -224
- package/src/git/providers/operations.ts +0 -164
- package/src/git/providers/patch.ts +0 -31
- package/src/git/providers/pausedOperations.ts +0 -23
- package/src/git/providers/provider.ts +0 -64
- package/src/git/providers/refs.ts +0 -68
- package/src/git/providers/remotes.ts +0 -33
- package/src/git/providers/revision.ts +0 -32
- package/src/git/providers/shared/remotes.ts +0 -95
- package/src/git/providers/staging.ts +0 -36
- package/src/git/providers/stash.ts +0 -51
- package/src/git/providers/status.ts +0 -48
- package/src/git/providers/tags.ts +0 -29
- package/src/git/providers/types.ts +0 -33
- package/src/git/providers/worktrees.ts +0 -37
- package/src/git/remotes/azure-devops.ts +0 -361
- package/src/git/remotes/bitbucket-server.ts +0 -189
- package/src/git/remotes/bitbucket.ts +0 -142
- package/src/git/remotes/custom.ts +0 -162
- package/src/git/remotes/gerrit.ts +0 -186
- package/src/git/remotes/gitea.ts +0 -184
- package/src/git/remotes/github.ts +0 -236
- package/src/git/remotes/gitlab.ts +0 -270
- package/src/git/remotes/google-source.ts +0 -51
- package/src/git/remotes/matcher.ts +0 -215
- package/src/git/repositoryService.ts +0 -180
- package/src/git/run.types.ts +0 -156
- package/src/git/service.ts +0 -369
- package/src/git/utils/autolink.utils.ts +0 -202
- package/src/git/utils/blame.utils.ts +0 -298
- package/src/git/utils/branch.utils.ts +0 -165
- package/src/git/utils/commit.utils.ts +0 -89
- package/src/git/utils/config.utils.ts +0 -8
- package/src/git/utils/conflictResolution.utils.ts +0 -157
- package/src/git/utils/contributor.utils.ts +0 -105
- package/src/git/utils/fetch.utils.ts +0 -48
- package/src/git/utils/fileStatus.utils.ts +0 -62
- package/src/git/utils/graph.utils.ts +0 -46
- package/src/git/utils/issue.utils.ts +0 -187
- package/src/git/utils/issueOrPullRequest.utils.ts +0 -23
- package/src/git/utils/mergeConflicts.utils.ts +0 -21
- package/src/git/utils/pausedOperationStatus.utils.ts +0 -184
- package/src/git/utils/pullRequest.utils.ts +0 -244
- package/src/git/utils/reachability.utils.ts +0 -180
- package/src/git/utils/rebase.utils.ts +0 -128
- package/src/git/utils/reference.utils.ts +0 -267
- package/src/git/utils/remote.utils.ts +0 -146
- package/src/git/utils/repository.utils.ts +0 -18
- package/src/git/utils/resourceDescriptor.utils.ts +0 -26
- package/src/git/utils/revision.utils.ts +0 -149
- package/src/git/utils/search.utils.ts +0 -624
- package/src/git/utils/sorting.ts +0 -329
- package/src/git/utils/sshKey.utils.ts +0 -30
- package/src/git/utils/status.utils.ts +0 -115
- package/src/git/utils/statusFile.utils.ts +0 -182
- package/src/git/utils/tag.utils.ts +0 -17
- package/src/git/utils/tooltip.utils.ts +0 -37
- package/src/git/utils/uriAuthority.ts +0 -34
- package/src/git/utils/user.utils.ts +0 -20
- package/src/git/utils/worktree.utils.ts +0 -21
- package/src/git/watching/changeEvent.ts +0 -95
- package/src/git/watching/classifyChange.ts +0 -104
- package/src/git/watching/gitIgnoreFilter.ts +0 -134
- package/src/git/watching/initWatcher.ts +0 -81
- package/src/git/watching/provider.ts +0 -24
- package/src/git/watching/watchGroup.ts +0 -185
- package/src/git/watching/watchService.ts +0 -430
- package/src/git/watching/watchSession.ts +0 -439
- package/src/git/watching/watcherPatterns.ts +0 -51
- package/src/git-cli/cliGitProvider.ts +0 -461
- package/src/git-cli/exec/exec.errors.ts +0 -1
- package/src/git-cli/exec/exec.ts +0 -11
- package/src/git-cli/exec/exec.types.ts +0 -8
- package/src/git-cli/exec/features.ts +0 -2
- package/src/git-cli/exec/git.ts +0 -1371
- package/src/git-cli/exec/gitQueue.ts +0 -326
- package/src/git-cli/exec/locator.ts +0 -157
- package/src/git-cli/parsers/blameParser.ts +0 -374
- package/src/git-cli/parsers/indexParser.ts +0 -192
- package/src/git-cli/parsers/logParser.ts +0 -1365
- package/src/git-cli/parsers/mergeTreeParser.ts +0 -22
- package/src/git-cli/parsers/refParser.ts +0 -110
- package/src/git-cli/parsers/reflogParser.ts +0 -153
- package/src/git-cli/parsers/remoteParser.ts +0 -95
- package/src/git-cli/parsers/shortlogParser.ts +0 -59
- package/src/git-cli/parsers/signatureParser.ts +0 -162
- package/src/git-cli/parsers/sshSignatureParser.ts +0 -85
- package/src/git-cli/parsers/statusParser.ts +0 -209
- package/src/git-cli/parsers/treeParser.ts +0 -61
- package/src/git-cli/parsers/worktreeParser.ts +0 -111
- package/src/git-cli/providers/blame.ts +0 -598
- package/src/git-cli/providers/branches.ts +0 -1931
- package/src/git-cli/providers/commitFilesetUtils.ts +0 -45
- package/src/git-cli/providers/commits.ts +0 -1856
- package/src/git-cli/providers/config.ts +0 -1025
- package/src/git-cli/providers/contributors.ts +0 -360
- package/src/git-cli/providers/diff.ts +0 -1172
- package/src/git-cli/providers/graph.ts +0 -2237
- package/src/git-cli/providers/maintenance.ts +0 -2599
- package/src/git-cli/providers/operations.ts +0 -1016
- package/src/git-cli/providers/patch.ts +0 -305
- package/src/git-cli/providers/pausedOperations.ts +0 -670
- package/src/git-cli/providers/refs.ts +0 -486
- package/src/git-cli/providers/remotes.ts +0 -115
- package/src/git-cli/providers/revision.ts +0 -383
- package/src/git-cli/providers/staging.ts +0 -210
- package/src/git-cli/providers/stash.ts +0 -577
- package/src/git-cli/providers/status.ts +0 -568
- package/src/git-cli/providers/tags.ts +0 -224
- package/src/git-cli/providers/worktrees.ts +0 -285
- package/src/git-cli/service.ts +0 -82
- package/src/ipc/discovery.ts +0 -186
- package/src/ipc/ipcServer.ts +0 -171
- package/src/plus/agents/agentCapabilities.ts +0 -286
- package/src/plus/agents/providers/claudeCodeTranscript.ts +0 -867
- package/src/plus/agents/providers/gkAgentProvider.ts +0 -4036
- package/src/plus/agents/sanitizePrompt.ts +0 -109
- package/src/plus/agents/stateMachine.ts +0 -197
- package/src/plus/agents/types.ts +0 -500
- package/src/plus/ai/constants.ts +0 -121
- package/src/plus/ai/errors.ts +0 -152
- package/src/plus/ai/models/conversation.ts +0 -35
- package/src/plus/ai/models/model.ts +0 -528
- package/src/plus/ai/models/promptTemplates.ts +0 -171
- package/src/plus/ai/models/provider.ts +0 -125
- package/src/plus/ai/models/results.ts +0 -31
- package/src/plus/ai/prompts.ts +0 -849
- package/src/plus/ai/providers/anthropicProvider.ts +0 -458
- package/src/plus/ai/providers/azureProvider.ts +0 -74
- package/src/plus/ai/providers/context.ts +0 -29
- package/src/plus/ai/providers/deepSeekProvider.ts +0 -46
- package/src/plus/ai/providers/geminiProvider.ts +0 -245
- package/src/plus/ai/providers/gitkrakenProvider.ts +0 -347
- package/src/plus/ai/providers/huggingFaceProvider.ts +0 -64
- package/src/plus/ai/providers/mistralProvider.ts +0 -243
- package/src/plus/ai/providers/ollamaProvider.ts +0 -292
- package/src/plus/ai/providers/openAICompatibleProvider.ts +0 -64
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +0 -654
- package/src/plus/ai/providers/openRouterProvider.ts +0 -101
- package/src/plus/ai/providers/openaiProvider.ts +0 -47
- package/src/plus/ai/providers/responseFormatCache.ts +0 -39
- package/src/plus/ai/providers/xaiProvider.ts +0 -54
- package/src/plus/ai/utils/ai.utils.ts +0 -95
- package/src/plus/ai/utils/results.utils.ts +0 -407
- package/src/plus/ai/utils/truncation.utils.ts +0 -296
- package/src/plus/git-github/api/config.ts +0 -91
- package/src/plus/git-github/api/github.ts +0 -5462
- package/src/plus/git-github/api/github.utils.ts +0 -36
- package/src/plus/git-github/api/issueSearchQuery.ts +0 -273
- package/src/plus/git-github/api/pullRequestSearchQuery.ts +0 -154
- package/src/plus/git-github/api/token.ts +0 -15
- package/src/plus/git-github/api/tokenUtils.ts +0 -15
- package/src/plus/git-github/api/types.ts +0 -197
- package/src/plus/git-github/context.ts +0 -107
- package/src/plus/git-github/models.ts +0 -623
- package/src/plus/git-github/providers/github/blame.ts +0 -225
- package/src/plus/git-github/providers/github/branches.ts +0 -401
- package/src/plus/git-github/providers/github/commits.ts +0 -929
- package/src/plus/git-github/providers/github/config.ts +0 -47
- package/src/plus/git-github/providers/github/contributors.ts +0 -313
- package/src/plus/git-github/providers/github/diff.ts +0 -281
- package/src/plus/git-github/providers/github/graph.ts +0 -635
- package/src/plus/git-github/providers/github/refs.ts +0 -172
- package/src/plus/git-github/providers/github/remotes.ts +0 -44
- package/src/plus/git-github/providers/github/revision.ts +0 -140
- package/src/plus/git-github/providers/github/status.ts +0 -69
- package/src/plus/git-github/providers/github/tags.ts +0 -148
- package/src/plus/git-github/providers/githubGitProvider.ts +0 -168
- package/src/plus/git-github/providers/githubProvider.ts +0 -65
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +0 -292
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +0 -656
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +0 -385
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +0 -148
- package/src/plus/integrations/authentication/manualTokenProvider.ts +0 -79
- package/src/plus/integrations/authentication/models.ts +0 -202
- package/src/plus/integrations/authentication/rejectedTokenTracker.ts +0 -56
- package/src/plus/integrations/collectionMetadata.ts +0 -325
- package/src/plus/integrations/constants.ts +0 -190
- package/src/plus/integrations/context.ts +0 -386
- package/src/plus/integrations/errors.ts +0 -188
- package/src/plus/integrations/index.ts +0 -231
- package/src/plus/integrations/integrationService.ts +0 -2003
- package/src/plus/integrations/lite.ts +0 -233
- package/src/plus/integrations/manager.ts +0 -728
- package/src/plus/integrations/models/gitHostIntegration.ts +0 -1862
- package/src/plus/integrations/models/integration.ts +0 -1005
- package/src/plus/integrations/models/issueCache.ts +0 -29
- package/src/plus/integrations/models/issueReads.ts +0 -152
- package/src/plus/integrations/models/issuesIntegration.ts +0 -248
- package/src/plus/integrations/models/pullRequestReads.ts +0 -18
- package/src/plus/integrations/providerFilters.ts +0 -36
- package/src/plus/integrations/providers/accounts.ts +0 -38
- package/src/plus/integrations/providers/apiClients.ts +0 -69
- package/src/plus/integrations/providers/apiConfig.ts +0 -71
- package/src/plus/integrations/providers/azure/azure.ts +0 -953
- package/src/plus/integrations/providers/azure/models.ts +0 -723
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1355
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +0 -904
- package/src/plus/integrations/providers/bitbucket/models.ts +0 -446
- package/src/plus/integrations/providers/bitbucket-server/models.ts +0 -283
- package/src/plus/integrations/providers/bitbucket-server.ts +0 -445
- package/src/plus/integrations/providers/bitbucket.ts +0 -793
- package/src/plus/integrations/providers/github/github.ts +0 -64
- package/src/plus/integrations/providers/github/github.utils.ts +0 -23
- package/src/plus/integrations/providers/github/models.ts +0 -29
- package/src/plus/integrations/providers/github.ts +0 -940
- package/src/plus/integrations/providers/gitlab/gitlab.ts +0 -1320
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +0 -80
- package/src/plus/integrations/providers/gitlab/models.ts +0 -271
- package/src/plus/integrations/providers/gitlab.ts +0 -841
- package/src/plus/integrations/providers/issueSorts.ts +0 -89
- package/src/plus/integrations/providers/jira.ts +0 -596
- package/src/plus/integrations/providers/jiraIssueByKey.ts +0 -155
- package/src/plus/integrations/providers/linear.ts +0 -484
- package/src/plus/integrations/providers/models.ts +0 -1833
- package/src/plus/integrations/providers/providerErrors.ts +0 -115
- package/src/plus/integrations/providers/providersApi.ts +0 -1881
- package/src/plus/integrations/providers/pullRequestReviews.ts +0 -122
- package/src/plus/integrations/providers/trello.ts +0 -208
- package/src/plus/integrations/providers/utils/providerPaging.ts +0 -212
- package/src/plus/integrations/providers/utils.ts +0 -419
- package/src/plus/integrations/reads/broaden.ts +0 -704
- package/src/plus/integrations/reads/context.ts +0 -99
- package/src/plus/integrations/reads/counts.ts +0 -610
- package/src/plus/integrations/reads/cursors.ts +0 -224
- package/src/plus/integrations/reads/drains.ts +0 -420
- package/src/plus/integrations/reads/filters.ts +0 -614
- package/src/plus/integrations/reads/hierarchy.ts +0 -486
- package/src/plus/integrations/reads/hierarchy.utils.ts +0 -155
- package/src/plus/integrations/reads/issueBatch.ts +0 -197
- package/src/plus/integrations/reads/issueTracker.ts +0 -556
- package/src/plus/integrations/reads/issues.ts +0 -600
- package/src/plus/integrations/reads/ordering.ts +0 -124
- package/src/plus/integrations/reads/paging.ts +0 -379
- package/src/plus/integrations/reads/pullRequests.ts +0 -260
- package/src/plus/integrations/reads/resolveRepository.ts +0 -275
- package/src/plus/integrations/reads/searchIssues.ts +0 -274
- package/src/plus/integrations/reads/searchPullRequests.ts +0 -235
- package/src/plus/integrations/reads/sweeps.ts +0 -266
- package/src/plus/integrations/reads/trackerIssue.ts +0 -105
- package/src/plus/integrations/reads/warnings.ts +0 -535
- package/src/plus/integrations/results.ts +0 -443
- package/src/plus/integrations/telemetry.ts +0 -29
- package/src/plus/integrations/utils/domain.utils.ts +0 -26
- package/src/plus/integrations/utils/integration.utils.ts +0 -215
- package/src/utils/array.ts +0 -194
- package/src/utils/base64.ts +0 -1
- package/src/utils/brand.ts +0 -7
- package/src/utils/cancellation.ts +0 -199
- package/src/utils/charCode.ts +0 -38
- package/src/utils/coalescedRun.ts +0 -45
- package/src/utils/color.ts +0 -817
- package/src/utils/counter.ts +0 -21
- package/src/utils/crypto.ts +0 -1
- package/src/utils/date.ts +0 -474
- package/src/utils/debounce.ts +0 -303
- package/src/utils/decorators/debounce.ts +0 -31
- package/src/utils/decorators/gate.ts +0 -167
- package/src/utils/decorators/log.ts +0 -320
- package/src/utils/decorators/memoize.ts +0 -98
- package/src/utils/decorators/resolver.ts +0 -95
- package/src/utils/decorators/sequentialize.ts +0 -118
- package/src/utils/decorators/serializable.ts +0 -43
- package/src/utils/dedupedAsyncCache.ts +0 -74
- package/src/utils/diff.ts +0 -61
- package/src/utils/disposable.ts +0 -156
- package/src/utils/encoding.ts +0 -8
- package/src/utils/env/browser/base64.ts +0 -50
- package/src/utils/env/browser/crypto.ts +0 -21
- package/src/utils/env/browser/fs.ts +0 -3
- package/src/utils/env/browser/hex.ts +0 -41
- package/src/utils/env/browser/hrtime.ts +0 -14
- package/src/utils/env/browser/logScope.ts +0 -57
- package/src/utils/env/browser/md5.ts +0 -217
- package/src/utils/env/browser/platform.ts +0 -10
- package/src/utils/env/node/base64.ts +0 -19
- package/src/utils/env/node/crypto.ts +0 -17
- package/src/utils/env/node/exec.ts +0 -488
- package/src/utils/env/node/fs.ts +0 -5
- package/src/utils/env/node/hex.ts +0 -11
- package/src/utils/env/node/hrtime.ts +0 -1
- package/src/utils/env/node/logScope.ts +0 -63
- package/src/utils/env/node/platform.ts +0 -5
- package/src/utils/error.ts +0 -18
- package/src/utils/event.ts +0 -230
- package/src/utils/formatter.ts +0 -198
- package/src/utils/fs.ts +0 -1
- package/src/utils/function.ts +0 -141
- package/src/utils/fuzzy.ts +0 -185
- package/src/utils/hash.ts +0 -60
- package/src/utils/hex.ts +0 -1
- package/src/utils/hrtime.ts +0 -8
- package/src/utils/iterable.ts +0 -797
- package/src/utils/keys/chord.ts +0 -184
- package/src/utils/keys/keybinding.ts +0 -116
- package/src/utils/lazy.ts +0 -39
- package/src/utils/loggable.ts +0 -7
- package/src/utils/logger.scoped.ts +0 -237
- package/src/utils/logger.ts +0 -403
- package/src/utils/lruMap.ts +0 -112
- package/src/utils/markdown.ts +0 -115
- package/src/utils/mru.ts +0 -68
- package/src/utils/object.ts +0 -278
- package/src/utils/paging.ts +0 -97
- package/src/utils/path.ts +0 -204
- package/src/utils/platform.ts +0 -1
- package/src/utils/promise.ts +0 -657
- package/src/utils/promiseCache.ts +0 -908
- package/src/utils/resourceUsage.ts +0 -5
- package/src/utils/searchTree.ts +0 -444
- package/src/utils/stopwatch.ts +0 -125
- package/src/utils/string.ts +0 -1003
- package/src/utils/subscriptionManager.ts +0 -40
- package/src/utils/trie.ts +0 -740
- package/src/utils/types.ts +0 -31
- package/src/utils/uri.ts +0 -118
- package/src/utils/validation.ts +0 -38
- package/src/utils/version.ts +0 -128
|
@@ -1,1320 +0,0 @@
|
|
|
1
|
-
import type { Account } from '../../../../git/models/author.js';
|
|
2
|
-
import type { DefaultBranch } from '../../../../git/models/defaultBranch.js';
|
|
3
|
-
import type { IssueOrPullRequest } from '../../../../git/models/issueOrPullRequest.js';
|
|
4
|
-
import { PullRequest } from '../../../../git/models/pullRequest.js';
|
|
5
|
-
import type { PullRequestState } from '../../../../git/models/pullRequest.js';
|
|
6
|
-
import type { Provider } from '../../../../git/models/remoteProvider.js';
|
|
7
|
-
import type { RepositoryMetadata } from '../../../../git/models/repositoryMetadata.js';
|
|
8
|
-
import { CancellationError } from '../../../../utils/cancellation.js';
|
|
9
|
-
import { trace } from '../../../../utils/decorators/log.js';
|
|
10
|
-
import type { Disposable } from '../../../../utils/disposable.js';
|
|
11
|
-
import { Logger } from '../../../../utils/logger.js';
|
|
12
|
-
import type { ScopedLogger } from '../../../../utils/logger.scoped.js';
|
|
13
|
-
import { getScopedLogger } from '../../../../utils/logger.scoped.js';
|
|
14
|
-
import { maybeStopWatch } from '../../../../utils/stopwatch.js';
|
|
15
|
-
import { equalsIgnoreCase } from '../../../../utils/string.js';
|
|
16
|
-
import { joinUriPath, parseUri } from '../../../../utils/uri.js';
|
|
17
|
-
import type { TokenWithInfo } from '../../authentication/models.js';
|
|
18
|
-
import type { IntegrationServiceContext } from '../../context.js';
|
|
19
|
-
import {
|
|
20
|
-
AuthenticationError,
|
|
21
|
-
AuthenticationErrorReason,
|
|
22
|
-
isRateLimitResponse,
|
|
23
|
-
ProviderFetchError,
|
|
24
|
-
RequestClientError,
|
|
25
|
-
RequestNotFoundError,
|
|
26
|
-
toRateLimitError,
|
|
27
|
-
} from '../../errors.js';
|
|
28
|
-
import type { ProviderApiConfig } from '../apiConfig.js';
|
|
29
|
-
import { baseProviderApiConfig } from '../apiConfig.js';
|
|
30
|
-
import { selectGitLabUserForCommit } from './gitlab.utils.js';
|
|
31
|
-
import type {
|
|
32
|
-
GitLabCommit,
|
|
33
|
-
GitLabIssue,
|
|
34
|
-
GitLabMergeRequest,
|
|
35
|
-
GitLabMergeRequestFull,
|
|
36
|
-
GitLabMergeRequestREST,
|
|
37
|
-
GitLabMergeRequestState,
|
|
38
|
-
GitLabProjectREST,
|
|
39
|
-
GitLabSshKey,
|
|
40
|
-
GitLabUser,
|
|
41
|
-
} from './models.js';
|
|
42
|
-
import {
|
|
43
|
-
fromGitLabMergeRequest,
|
|
44
|
-
fromGitLabMergeRequestREST,
|
|
45
|
-
fromGitLabMergeRequestState,
|
|
46
|
-
toGitLabMergeRequestState,
|
|
47
|
-
} from './models.js';
|
|
48
|
-
|
|
49
|
-
// drop it as soon as we switch to @gitkraken/providers-api
|
|
50
|
-
const gitlabUserIdPrefix = 'gid://gitlab/User/';
|
|
51
|
-
const gitlabMergeRequestIdPrefix = 'gid://gitlab/MergeRequest/';
|
|
52
|
-
|
|
53
|
-
function buildGitLabUserId(id: string | number | undefined): string | undefined {
|
|
54
|
-
return typeof id === 'string' && id?.startsWith(gitlabUserIdPrefix)
|
|
55
|
-
? id.substring(gitlabUserIdPrefix.length)
|
|
56
|
-
: String(id);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export class GitLabApi implements Disposable {
|
|
60
|
-
private readonly _disposable: Disposable | undefined;
|
|
61
|
-
private _projectIds = new Map<string, Promise<string | undefined>>();
|
|
62
|
-
|
|
63
|
-
constructor(private readonly config: ProviderApiConfig) {
|
|
64
|
-
this._disposable = config.onConfigChanged?.(() => this.resetCaches());
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
dispose(): void {
|
|
68
|
-
this._disposable?.dispose();
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private resetCaches(): void {
|
|
72
|
-
this._projectIds.clear();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@trace({
|
|
76
|
-
args: (provider, token, owner, repo, rev) => ({
|
|
77
|
-
provider: provider.name,
|
|
78
|
-
token: `<token:${token.microHash}>`,
|
|
79
|
-
owner: owner,
|
|
80
|
-
repo: repo,
|
|
81
|
-
rev: rev,
|
|
82
|
-
}),
|
|
83
|
-
})
|
|
84
|
-
async getAccountForCommit(
|
|
85
|
-
provider: Provider,
|
|
86
|
-
token: TokenWithInfo,
|
|
87
|
-
owner: string,
|
|
88
|
-
repo: string,
|
|
89
|
-
rev: string,
|
|
90
|
-
options?: {
|
|
91
|
-
baseUrl?: string;
|
|
92
|
-
avatarSize?: number;
|
|
93
|
-
},
|
|
94
|
-
cancellation?: AbortSignal,
|
|
95
|
-
): Promise<Account | undefined> {
|
|
96
|
-
const scope = getScopedLogger();
|
|
97
|
-
|
|
98
|
-
const projectId = await this.getProjectId(provider, token, owner, repo, options?.baseUrl, cancellation);
|
|
99
|
-
if (!projectId) return undefined;
|
|
100
|
-
|
|
101
|
-
try {
|
|
102
|
-
const commit = await this.request<GitLabCommit>(
|
|
103
|
-
provider,
|
|
104
|
-
token,
|
|
105
|
-
options?.baseUrl,
|
|
106
|
-
`v4/projects/${projectId}/repository/commits/${rev}?stats=false`,
|
|
107
|
-
{
|
|
108
|
-
method: 'GET',
|
|
109
|
-
// ...options,
|
|
110
|
-
},
|
|
111
|
-
cancellation,
|
|
112
|
-
scope,
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
let users = await this.findUser(provider, token, commit.author_name, options, cancellation);
|
|
116
|
-
let user = selectGitLabUserForCommit(users, commit.author_name, commit.author_email);
|
|
117
|
-
|
|
118
|
-
// If the name search was ambiguous (multiple users share the name), try an email-scoped search to
|
|
119
|
-
// disambiguate before giving up — otherwise we'd show a stranger's avatar (see #2205)
|
|
120
|
-
if (user == null && commit.author_email) {
|
|
121
|
-
const exactNameMatches = users.filter(u => equalsIgnoreCase(u.name, commit.author_name)).length;
|
|
122
|
-
if (exactNameMatches > 1) {
|
|
123
|
-
users = await this.findUser(provider, token, commit.author_email, options, cancellation);
|
|
124
|
-
user = selectGitLabUserForCommit(users, commit.author_name, commit.author_email);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (user == null) return undefined;
|
|
129
|
-
|
|
130
|
-
// If the avatarUrl is a relative URL, make it absolute using the webUrl (assuming the webUrl is the root URL with the username tacked on)
|
|
131
|
-
if (user.avatarUrl && !/^([a-zA-Z][\w+.-]+):/.test(user.avatarUrl)) {
|
|
132
|
-
user.avatarUrl = joinUriPath(parseUri(user.webUrl), '..', user.avatarUrl).toString();
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return {
|
|
136
|
-
provider: provider,
|
|
137
|
-
id: String(user.id),
|
|
138
|
-
name: user.name || undefined,
|
|
139
|
-
email: commit.author_email || undefined,
|
|
140
|
-
avatarUrl: user.avatarUrl || undefined,
|
|
141
|
-
username: user.username || undefined,
|
|
142
|
-
};
|
|
143
|
-
} catch (ex) {
|
|
144
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
145
|
-
|
|
146
|
-
throw this.handleException(ex, provider, scope);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@trace({
|
|
151
|
-
args: (provider, token, _owner, _repo, email) => ({
|
|
152
|
-
provider: provider.name,
|
|
153
|
-
token: `<token:${token.microHash}>`,
|
|
154
|
-
email: email,
|
|
155
|
-
}),
|
|
156
|
-
})
|
|
157
|
-
async getAccountForEmail(
|
|
158
|
-
provider: Provider,
|
|
159
|
-
token: TokenWithInfo,
|
|
160
|
-
_owner: string,
|
|
161
|
-
_repo: string,
|
|
162
|
-
email: string,
|
|
163
|
-
options?: {
|
|
164
|
-
baseUrl?: string;
|
|
165
|
-
avatarSize?: number;
|
|
166
|
-
},
|
|
167
|
-
): Promise<Account | undefined> {
|
|
168
|
-
const scope = getScopedLogger();
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const [user] = await this.findUser(provider, token, email, options);
|
|
172
|
-
if (user == null) return undefined;
|
|
173
|
-
|
|
174
|
-
return {
|
|
175
|
-
provider: provider,
|
|
176
|
-
id: String(user.id),
|
|
177
|
-
name: user.name || undefined,
|
|
178
|
-
email: user.publicEmail || undefined,
|
|
179
|
-
avatarUrl: user.avatarUrl || undefined,
|
|
180
|
-
username: user.username || undefined,
|
|
181
|
-
};
|
|
182
|
-
} catch (ex) {
|
|
183
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
184
|
-
|
|
185
|
-
throw this.handleException(ex, provider, scope);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@trace({
|
|
190
|
-
args: (provider, token, userId) => ({
|
|
191
|
-
provider: provider.name,
|
|
192
|
-
token: `<token:${token.microHash}>`,
|
|
193
|
-
userId: userId,
|
|
194
|
-
}),
|
|
195
|
-
})
|
|
196
|
-
async getUserSigningKeys(
|
|
197
|
-
provider: Provider,
|
|
198
|
-
token: TokenWithInfo,
|
|
199
|
-
userId: string | number,
|
|
200
|
-
options?: { baseUrl?: string },
|
|
201
|
-
cancellation?: AbortSignal,
|
|
202
|
-
): Promise<GitLabSshKey[]> {
|
|
203
|
-
const scope = getScopedLogger();
|
|
204
|
-
|
|
205
|
-
// SSH keys are public, so this works for any user with the current token (covered by the `read_user` scope).
|
|
206
|
-
try {
|
|
207
|
-
const keys = await this.request<GitLabSshKey[]>(
|
|
208
|
-
provider,
|
|
209
|
-
token,
|
|
210
|
-
options?.baseUrl,
|
|
211
|
-
`v4/users/${userId}/keys`,
|
|
212
|
-
{ method: 'GET' },
|
|
213
|
-
cancellation,
|
|
214
|
-
scope,
|
|
215
|
-
);
|
|
216
|
-
// Exclude auth-only keys — only signing-capable keys belong in an allowed_signers file.
|
|
217
|
-
return keys?.filter(k => k.usage_type === 'signing' || k.usage_type === 'auth_and_signing') ?? [];
|
|
218
|
-
} catch (ex) {
|
|
219
|
-
if (ex instanceof RequestNotFoundError) return [];
|
|
220
|
-
|
|
221
|
-
this.handleException(ex, provider, scope);
|
|
222
|
-
return [];
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@trace({
|
|
227
|
-
args: (provider, token, owner, repo) => ({
|
|
228
|
-
provider: provider.name,
|
|
229
|
-
token: `<token:${token.microHash}>`,
|
|
230
|
-
owner: owner,
|
|
231
|
-
repo: repo,
|
|
232
|
-
}),
|
|
233
|
-
})
|
|
234
|
-
async getDefaultBranch(
|
|
235
|
-
provider: Provider,
|
|
236
|
-
token: TokenWithInfo,
|
|
237
|
-
owner: string,
|
|
238
|
-
repo: string,
|
|
239
|
-
options?: {
|
|
240
|
-
baseUrl?: string;
|
|
241
|
-
},
|
|
242
|
-
cancellation?: AbortSignal,
|
|
243
|
-
): Promise<DefaultBranch | undefined> {
|
|
244
|
-
const scope = getScopedLogger();
|
|
245
|
-
|
|
246
|
-
interface QueryResult {
|
|
247
|
-
data: {
|
|
248
|
-
project:
|
|
249
|
-
| {
|
|
250
|
-
repository: { rootRef: string } | null | undefined;
|
|
251
|
-
}
|
|
252
|
-
| null
|
|
253
|
-
| undefined;
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
try {
|
|
258
|
-
const query = `query getDefaultBranch(
|
|
259
|
-
$fullPath: ID!
|
|
260
|
-
) {
|
|
261
|
-
project(fullPath: $fullPath) {
|
|
262
|
-
repository {
|
|
263
|
-
rootRef
|
|
264
|
-
}
|
|
265
|
-
}`;
|
|
266
|
-
|
|
267
|
-
const rsp = await this.graphql<QueryResult>(
|
|
268
|
-
provider,
|
|
269
|
-
token,
|
|
270
|
-
options?.baseUrl,
|
|
271
|
-
query,
|
|
272
|
-
{
|
|
273
|
-
fullPath: `${owner}/${repo}`,
|
|
274
|
-
},
|
|
275
|
-
cancellation,
|
|
276
|
-
scope,
|
|
277
|
-
);
|
|
278
|
-
|
|
279
|
-
const defaultBranch = rsp?.data?.project?.repository?.rootRef ?? undefined;
|
|
280
|
-
if (defaultBranch == null) return undefined;
|
|
281
|
-
|
|
282
|
-
return {
|
|
283
|
-
provider: provider,
|
|
284
|
-
name: defaultBranch,
|
|
285
|
-
};
|
|
286
|
-
} catch (ex) {
|
|
287
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
288
|
-
|
|
289
|
-
throw this.handleException(ex, provider, scope);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@trace({
|
|
294
|
-
args: (provider, token, owner, repo, number) => ({
|
|
295
|
-
provider: provider.name,
|
|
296
|
-
token: `<token:${token.microHash}>`,
|
|
297
|
-
owner: owner,
|
|
298
|
-
repo: repo,
|
|
299
|
-
number: number,
|
|
300
|
-
}),
|
|
301
|
-
})
|
|
302
|
-
async getIssueOrPullRequest(
|
|
303
|
-
provider: Provider,
|
|
304
|
-
token: TokenWithInfo,
|
|
305
|
-
owner: string,
|
|
306
|
-
repo: string,
|
|
307
|
-
number: number,
|
|
308
|
-
options?: {
|
|
309
|
-
baseUrl?: string;
|
|
310
|
-
},
|
|
311
|
-
cancellation?: AbortSignal,
|
|
312
|
-
): Promise<IssueOrPullRequest | undefined> {
|
|
313
|
-
const scope = getScopedLogger();
|
|
314
|
-
|
|
315
|
-
interface QueryResult {
|
|
316
|
-
data: {
|
|
317
|
-
project: {
|
|
318
|
-
mergeRequest: GitLabMergeRequest | null;
|
|
319
|
-
issue: GitLabIssue | null;
|
|
320
|
-
} | null;
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
try {
|
|
325
|
-
const query = `query getIssueOrMergeRequest(
|
|
326
|
-
$fullPath: ID!
|
|
327
|
-
$iid: String!
|
|
328
|
-
) {
|
|
329
|
-
project(fullPath: $fullPath) {
|
|
330
|
-
mergeRequest(iid: $iid) {
|
|
331
|
-
author {
|
|
332
|
-
id
|
|
333
|
-
name
|
|
334
|
-
avatarUrl
|
|
335
|
-
webUrl
|
|
336
|
-
}
|
|
337
|
-
iid
|
|
338
|
-
title
|
|
339
|
-
description
|
|
340
|
-
state
|
|
341
|
-
createdAt
|
|
342
|
-
updatedAt
|
|
343
|
-
mergedAt
|
|
344
|
-
webUrl
|
|
345
|
-
}
|
|
346
|
-
issue(iid: $iid) {
|
|
347
|
-
author {
|
|
348
|
-
id
|
|
349
|
-
name
|
|
350
|
-
avatarUrl
|
|
351
|
-
webUrl
|
|
352
|
-
}
|
|
353
|
-
iid
|
|
354
|
-
title
|
|
355
|
-
description
|
|
356
|
-
state
|
|
357
|
-
createdAt
|
|
358
|
-
updatedAt
|
|
359
|
-
closedAt
|
|
360
|
-
webUrl
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}`;
|
|
364
|
-
|
|
365
|
-
const rsp = await this.graphql<QueryResult>(
|
|
366
|
-
provider,
|
|
367
|
-
token,
|
|
368
|
-
options?.baseUrl,
|
|
369
|
-
query,
|
|
370
|
-
{
|
|
371
|
-
fullPath: `${owner}/${repo}`,
|
|
372
|
-
iid: String(number),
|
|
373
|
-
},
|
|
374
|
-
cancellation,
|
|
375
|
-
scope,
|
|
376
|
-
);
|
|
377
|
-
|
|
378
|
-
if (rsp?.data?.project?.issue != null) {
|
|
379
|
-
const issue = rsp.data.project.issue;
|
|
380
|
-
return {
|
|
381
|
-
provider: provider,
|
|
382
|
-
type: 'issue',
|
|
383
|
-
id: issue.iid,
|
|
384
|
-
nodeId: undefined,
|
|
385
|
-
createdDate: new Date(issue.createdAt),
|
|
386
|
-
updatedDate: new Date(issue.updatedAt),
|
|
387
|
-
title: issue.title,
|
|
388
|
-
closed: issue.state === 'closed',
|
|
389
|
-
closedDate: issue.closedAt == null ? undefined : new Date(issue.closedAt),
|
|
390
|
-
url: issue.webUrl,
|
|
391
|
-
state: issue.state === 'locked' ? 'closed' : issue.state,
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
if (rsp?.data?.project?.mergeRequest != null) {
|
|
396
|
-
const mergeRequest = rsp.data.project.mergeRequest;
|
|
397
|
-
return {
|
|
398
|
-
provider: provider,
|
|
399
|
-
type: 'pullrequest',
|
|
400
|
-
id: mergeRequest.iid,
|
|
401
|
-
nodeId: undefined,
|
|
402
|
-
createdDate: new Date(mergeRequest.createdAt),
|
|
403
|
-
updatedDate: new Date(mergeRequest.updatedAt),
|
|
404
|
-
title: mergeRequest.title,
|
|
405
|
-
closed: mergeRequest.state === 'closed',
|
|
406
|
-
// TODO@eamodio this isn't right, but GitLab doesn't seem to provide a closedAt on merge requests in GraphQL
|
|
407
|
-
closedDate: mergeRequest.state === 'closed' ? new Date(mergeRequest.updatedAt) : undefined,
|
|
408
|
-
url: mergeRequest.webUrl,
|
|
409
|
-
state: mergeRequest.state === 'locked' ? 'closed' : mergeRequest.state,
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
return undefined;
|
|
414
|
-
} catch (ex) {
|
|
415
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
416
|
-
|
|
417
|
-
throw this.handleException(ex, provider, scope);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
@trace({
|
|
422
|
-
args: (provider, token, owner, repo, branch) => ({
|
|
423
|
-
provider: provider.name,
|
|
424
|
-
token: `<token:${token.microHash}>`,
|
|
425
|
-
owner: owner,
|
|
426
|
-
repo: repo,
|
|
427
|
-
branch: branch,
|
|
428
|
-
}),
|
|
429
|
-
})
|
|
430
|
-
async getPullRequestForBranch(
|
|
431
|
-
provider: Provider,
|
|
432
|
-
token: TokenWithInfo,
|
|
433
|
-
owner: string,
|
|
434
|
-
repo: string,
|
|
435
|
-
branch: string,
|
|
436
|
-
options?: {
|
|
437
|
-
baseUrl?: string;
|
|
438
|
-
avatarSize?: number;
|
|
439
|
-
include?: GitLabMergeRequestState[];
|
|
440
|
-
},
|
|
441
|
-
cancellation?: AbortSignal,
|
|
442
|
-
): Promise<PullRequest | undefined> {
|
|
443
|
-
const scope = getScopedLogger();
|
|
444
|
-
|
|
445
|
-
interface QueryResult {
|
|
446
|
-
data: {
|
|
447
|
-
project: {
|
|
448
|
-
mergeRequests?: {
|
|
449
|
-
nodes: GitLabMergeRequest[];
|
|
450
|
-
} | null;
|
|
451
|
-
opened?: {
|
|
452
|
-
nodes: GitLabMergeRequest[];
|
|
453
|
-
} | null;
|
|
454
|
-
closed?: {
|
|
455
|
-
nodes: GitLabMergeRequest[];
|
|
456
|
-
} | null;
|
|
457
|
-
merged?: {
|
|
458
|
-
nodes: GitLabMergeRequest[];
|
|
459
|
-
} | null;
|
|
460
|
-
} | null;
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
try {
|
|
465
|
-
const fragment = `
|
|
466
|
-
nodes {
|
|
467
|
-
iid
|
|
468
|
-
author {
|
|
469
|
-
id
|
|
470
|
-
name
|
|
471
|
-
avatarUrl
|
|
472
|
-
webUrl
|
|
473
|
-
}
|
|
474
|
-
title
|
|
475
|
-
description
|
|
476
|
-
state
|
|
477
|
-
createdAt
|
|
478
|
-
updatedAt
|
|
479
|
-
mergedAt
|
|
480
|
-
webUrl
|
|
481
|
-
}`;
|
|
482
|
-
|
|
483
|
-
const query = `query getMergeRequestForBranch(
|
|
484
|
-
$fullPath: ID!
|
|
485
|
-
$branches: [String!]
|
|
486
|
-
) {
|
|
487
|
-
project(fullPath: $fullPath) {
|
|
488
|
-
${
|
|
489
|
-
options?.include == null
|
|
490
|
-
? `mergeRequests(sourceBranches: $branches sort: UPDATED_DESC first: 1) {
|
|
491
|
-
${fragment}
|
|
492
|
-
}`
|
|
493
|
-
: ''
|
|
494
|
-
}
|
|
495
|
-
${
|
|
496
|
-
options?.include?.includes('opened')
|
|
497
|
-
? `opened: mergeRequests(sourceBranches: $branches state: opened sort: UPDATED_DESC first: 1) {
|
|
498
|
-
${fragment}
|
|
499
|
-
}`
|
|
500
|
-
: ''
|
|
501
|
-
}
|
|
502
|
-
${
|
|
503
|
-
options?.include?.includes('merged')
|
|
504
|
-
? `merged: mergeRequests(sourceBranches: $branches state: merged sort: UPDATED_DESC first: 1) {
|
|
505
|
-
${fragment}
|
|
506
|
-
}`
|
|
507
|
-
: ''
|
|
508
|
-
}
|
|
509
|
-
${
|
|
510
|
-
options?.include?.includes('closed')
|
|
511
|
-
? `closed: mergeRequests(sourceBranches: $branches state: closed sort: UPDATED_DESC first: 1) {
|
|
512
|
-
${fragment}
|
|
513
|
-
}`
|
|
514
|
-
: ''
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}`;
|
|
518
|
-
|
|
519
|
-
const rsp = await this.graphql<QueryResult>(
|
|
520
|
-
provider,
|
|
521
|
-
token,
|
|
522
|
-
options?.baseUrl,
|
|
523
|
-
query,
|
|
524
|
-
{
|
|
525
|
-
fullPath: `${owner}/${repo}`,
|
|
526
|
-
branches: [branch],
|
|
527
|
-
state: options?.include,
|
|
528
|
-
},
|
|
529
|
-
cancellation,
|
|
530
|
-
scope,
|
|
531
|
-
);
|
|
532
|
-
|
|
533
|
-
let pr: GitLabMergeRequest | undefined;
|
|
534
|
-
|
|
535
|
-
if (options?.include == null) {
|
|
536
|
-
pr = rsp?.data?.project?.mergeRequests?.nodes?.[0];
|
|
537
|
-
} else {
|
|
538
|
-
for (const state of options.include) {
|
|
539
|
-
let mr;
|
|
540
|
-
if (state === 'opened') {
|
|
541
|
-
mr = rsp?.data?.project?.opened?.nodes?.[0];
|
|
542
|
-
} else if (state === 'merged') {
|
|
543
|
-
mr = rsp?.data?.project?.merged?.nodes?.[0];
|
|
544
|
-
} else if (state === 'closed') {
|
|
545
|
-
mr = rsp?.data?.project?.closed?.nodes?.[0];
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
if (mr != null && (pr == null || new Date(mr.updatedAt) > new Date(pr.updatedAt))) {
|
|
549
|
-
pr = mr;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if (pr == null) return undefined;
|
|
555
|
-
|
|
556
|
-
return new PullRequest(
|
|
557
|
-
provider,
|
|
558
|
-
{
|
|
559
|
-
id: buildGitLabUserId(pr.author?.id) ?? '',
|
|
560
|
-
// An absent author stays absent: no `'Unknown'` name a consumer can't tell from a real one, and no
|
|
561
|
-
// `''` url/avatar that passes a presence check and renders as a link to nowhere. Matches
|
|
562
|
-
// `fromProviderAccount`/`toIssueShape`.
|
|
563
|
-
name: pr.author?.name ?? undefined,
|
|
564
|
-
avatarUrl: pr.author?.avatarUrl ?? undefined,
|
|
565
|
-
url: pr.author?.webUrl ?? undefined,
|
|
566
|
-
},
|
|
567
|
-
// oxlint-disable-next-line typescript/no-unnecessary-type-conversion
|
|
568
|
-
String(pr.iid),
|
|
569
|
-
undefined,
|
|
570
|
-
pr.title,
|
|
571
|
-
pr.webUrl,
|
|
572
|
-
{ owner: owner, repo: repo },
|
|
573
|
-
fromGitLabMergeRequestState(pr.state),
|
|
574
|
-
new Date(pr.createdAt),
|
|
575
|
-
new Date(pr.updatedAt),
|
|
576
|
-
// TODO@eamodio this isn't right, but GitLab doesn't seem to provide a closedAt on merge requests in GraphQL
|
|
577
|
-
pr.state !== 'closed' ? undefined : new Date(pr.updatedAt),
|
|
578
|
-
pr.mergedAt == null ? undefined : new Date(pr.mergedAt),
|
|
579
|
-
);
|
|
580
|
-
} catch (ex) {
|
|
581
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
582
|
-
|
|
583
|
-
throw this.handleException(ex, provider, scope);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
@trace({
|
|
588
|
-
args: (provider, token, owner, repo, rev) => ({
|
|
589
|
-
provider: provider.name,
|
|
590
|
-
token: `<token:${token.microHash}>`,
|
|
591
|
-
owner: owner,
|
|
592
|
-
repo: repo,
|
|
593
|
-
rev: rev,
|
|
594
|
-
}),
|
|
595
|
-
})
|
|
596
|
-
async getPullRequestForCommit(
|
|
597
|
-
provider: Provider,
|
|
598
|
-
token: TokenWithInfo,
|
|
599
|
-
owner: string,
|
|
600
|
-
repo: string,
|
|
601
|
-
rev: string,
|
|
602
|
-
options?: {
|
|
603
|
-
baseUrl?: string;
|
|
604
|
-
avatarSize?: number;
|
|
605
|
-
},
|
|
606
|
-
cancellation?: AbortSignal,
|
|
607
|
-
): Promise<PullRequest | undefined> {
|
|
608
|
-
const scope = getScopedLogger();
|
|
609
|
-
|
|
610
|
-
const projectId = await this.getProjectId(provider, token, owner, repo, options?.baseUrl, cancellation);
|
|
611
|
-
if (!projectId) return undefined;
|
|
612
|
-
|
|
613
|
-
try {
|
|
614
|
-
const mrs = await this.request<GitLabMergeRequestREST[]>(
|
|
615
|
-
provider,
|
|
616
|
-
token,
|
|
617
|
-
options?.baseUrl,
|
|
618
|
-
`v4/projects/${projectId}/repository/commits/${rev}/merge_requests`,
|
|
619
|
-
{
|
|
620
|
-
method: 'GET',
|
|
621
|
-
// ...options,
|
|
622
|
-
},
|
|
623
|
-
cancellation,
|
|
624
|
-
scope,
|
|
625
|
-
);
|
|
626
|
-
if (mrs == null || mrs.length === 0) return undefined;
|
|
627
|
-
|
|
628
|
-
if (mrs.length > 1) {
|
|
629
|
-
mrs.sort(
|
|
630
|
-
(a, b) =>
|
|
631
|
-
(a.state === 'opened' ? -1 : 1) - (b.state === 'opened' ? -1 : 1) ||
|
|
632
|
-
new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime(),
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
return fromGitLabMergeRequestREST(mrs[0], provider, { owner: owner, repo: repo });
|
|
637
|
-
} catch (ex) {
|
|
638
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
639
|
-
|
|
640
|
-
throw this.handleException(ex, provider, scope);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
@trace({
|
|
645
|
-
args: (provider, token, owner, repo, id) => ({
|
|
646
|
-
provider: provider.name,
|
|
647
|
-
token: `<token:${token.microHash}>`,
|
|
648
|
-
owner: owner,
|
|
649
|
-
repo: repo,
|
|
650
|
-
id: id,
|
|
651
|
-
}),
|
|
652
|
-
})
|
|
653
|
-
async getPullRequest(
|
|
654
|
-
provider: Provider,
|
|
655
|
-
token: TokenWithInfo,
|
|
656
|
-
owner: string,
|
|
657
|
-
repo: string,
|
|
658
|
-
id: number,
|
|
659
|
-
options?: {
|
|
660
|
-
baseUrl?: string;
|
|
661
|
-
},
|
|
662
|
-
cancellation?: AbortSignal,
|
|
663
|
-
): Promise<PullRequest | undefined> {
|
|
664
|
-
const scope = getScopedLogger();
|
|
665
|
-
|
|
666
|
-
interface QueryResult {
|
|
667
|
-
data: {
|
|
668
|
-
project: {
|
|
669
|
-
mergeRequest: GitLabMergeRequestFull | null;
|
|
670
|
-
} | null;
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
try {
|
|
675
|
-
const query = `query getMergeRequest(
|
|
676
|
-
$fullPath: ID!
|
|
677
|
-
$iid: String!
|
|
678
|
-
) {
|
|
679
|
-
project(fullPath: $fullPath) {
|
|
680
|
-
mergeRequest(iid: $iid) {
|
|
681
|
-
id,
|
|
682
|
-
iid
|
|
683
|
-
state,
|
|
684
|
-
author {
|
|
685
|
-
id
|
|
686
|
-
name
|
|
687
|
-
avatarUrl
|
|
688
|
-
webUrl
|
|
689
|
-
}
|
|
690
|
-
diffRefs {
|
|
691
|
-
baseSha
|
|
692
|
-
headSha
|
|
693
|
-
}
|
|
694
|
-
title
|
|
695
|
-
description
|
|
696
|
-
webUrl
|
|
697
|
-
createdAt
|
|
698
|
-
updatedAt
|
|
699
|
-
mergedAt
|
|
700
|
-
targetBranch
|
|
701
|
-
sourceBranch
|
|
702
|
-
project {
|
|
703
|
-
id
|
|
704
|
-
fullPath
|
|
705
|
-
webUrl
|
|
706
|
-
}
|
|
707
|
-
sourceProject {
|
|
708
|
-
id
|
|
709
|
-
fullPath
|
|
710
|
-
webUrl
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}`;
|
|
715
|
-
|
|
716
|
-
const rsp = await this.graphql<QueryResult>(
|
|
717
|
-
provider,
|
|
718
|
-
token,
|
|
719
|
-
options?.baseUrl,
|
|
720
|
-
query,
|
|
721
|
-
{
|
|
722
|
-
fullPath: `${owner}/${repo}`,
|
|
723
|
-
iid: String(id),
|
|
724
|
-
},
|
|
725
|
-
cancellation,
|
|
726
|
-
scope,
|
|
727
|
-
);
|
|
728
|
-
|
|
729
|
-
if (rsp?.data?.project?.mergeRequest == null) return undefined;
|
|
730
|
-
|
|
731
|
-
const pr = rsp.data.project.mergeRequest;
|
|
732
|
-
return fromGitLabMergeRequest(pr, provider);
|
|
733
|
-
} catch (ex) {
|
|
734
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
735
|
-
|
|
736
|
-
throw this.handleException(ex, provider, scope);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
@trace({
|
|
741
|
-
args: (provider, token, owner, repo) => ({
|
|
742
|
-
provider: provider.name,
|
|
743
|
-
token: `<token:${token.microHash}>`,
|
|
744
|
-
owner: owner,
|
|
745
|
-
repo: repo,
|
|
746
|
-
}),
|
|
747
|
-
})
|
|
748
|
-
async getRepositoryMetadata(
|
|
749
|
-
provider: Provider,
|
|
750
|
-
token: TokenWithInfo,
|
|
751
|
-
owner: string,
|
|
752
|
-
repo: string,
|
|
753
|
-
options?: {
|
|
754
|
-
baseUrl?: string;
|
|
755
|
-
},
|
|
756
|
-
cancellation?: AbortSignal,
|
|
757
|
-
): Promise<RepositoryMetadata | undefined> {
|
|
758
|
-
const scope = getScopedLogger();
|
|
759
|
-
|
|
760
|
-
const projectId = await this.getProjectId(provider, token, owner, repo, options?.baseUrl, cancellation);
|
|
761
|
-
if (!projectId) return undefined;
|
|
762
|
-
|
|
763
|
-
try {
|
|
764
|
-
const proj = await this.request<GitLabProjectREST>(
|
|
765
|
-
provider,
|
|
766
|
-
token,
|
|
767
|
-
options?.baseUrl,
|
|
768
|
-
`v4/projects/${projectId}`,
|
|
769
|
-
{
|
|
770
|
-
method: 'GET',
|
|
771
|
-
// ...options,
|
|
772
|
-
},
|
|
773
|
-
cancellation,
|
|
774
|
-
scope,
|
|
775
|
-
);
|
|
776
|
-
if (proj == null) return undefined;
|
|
777
|
-
|
|
778
|
-
return {
|
|
779
|
-
provider: provider,
|
|
780
|
-
owner: proj.namespace.full_path,
|
|
781
|
-
name: proj.path,
|
|
782
|
-
isFork: proj.forked_from_project != null,
|
|
783
|
-
parent:
|
|
784
|
-
proj.forked_from_project != null
|
|
785
|
-
? {
|
|
786
|
-
owner: proj.forked_from_project.namespace.full_path,
|
|
787
|
-
name: proj.forked_from_project.path,
|
|
788
|
-
}
|
|
789
|
-
: undefined,
|
|
790
|
-
} satisfies RepositoryMetadata;
|
|
791
|
-
} catch (ex) {
|
|
792
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
793
|
-
|
|
794
|
-
throw this.handleException(ex, provider, scope);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
@trace({ args: (provider, token) => ({ provider: provider.name, token: `<token:${token.microHash}>` }) })
|
|
799
|
-
async searchPullRequests(
|
|
800
|
-
provider: Provider,
|
|
801
|
-
token: TokenWithInfo,
|
|
802
|
-
options?: {
|
|
803
|
-
search?: string;
|
|
804
|
-
user?: string;
|
|
805
|
-
repos?: string[];
|
|
806
|
-
baseUrl?: string;
|
|
807
|
-
avatarSize?: number;
|
|
808
|
-
include?: PullRequestState[];
|
|
809
|
-
},
|
|
810
|
-
cancellation?: AbortSignal,
|
|
811
|
-
): Promise<PullRequest[]> {
|
|
812
|
-
const scope = getScopedLogger();
|
|
813
|
-
const search = options?.search;
|
|
814
|
-
if (!search) {
|
|
815
|
-
return [];
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
try {
|
|
819
|
-
const perPageLimit = 20; // with bigger amount we exceed the max GraphQL complexity in the next query
|
|
820
|
-
const include = options?.include?.length ? options.include : undefined;
|
|
821
|
-
// GitLab's search API takes a single `state` value, so push it server-side when exactly one state is
|
|
822
|
-
// requested; that keeps the requested state from being crowded out of the `perPageLimit` slice. For
|
|
823
|
-
// multiple states there's no single-value qualifier, so those are filtered client-side below.
|
|
824
|
-
let searchPath = `v4/search/?scope=merge_requests&search=${encodeURIComponent(search)}&per_page=${perPageLimit}`;
|
|
825
|
-
if (include?.length === 1) {
|
|
826
|
-
searchPath += `&state=${encodeURIComponent(toGitLabMergeRequestState(include[0]))}`;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
let restPRs: GitLabMergeRequestREST[];
|
|
830
|
-
if (include == null) {
|
|
831
|
-
// Unfiltered search returns the first page as-is (as it did before state filtering existed).
|
|
832
|
-
restPRs = await this.request<GitLabMergeRequestREST[]>(
|
|
833
|
-
provider,
|
|
834
|
-
token,
|
|
835
|
-
options?.baseUrl,
|
|
836
|
-
searchPath,
|
|
837
|
-
{ method: 'GET' },
|
|
838
|
-
cancellation,
|
|
839
|
-
scope,
|
|
840
|
-
);
|
|
841
|
-
} else {
|
|
842
|
-
// The search API returns MRs of all states in relevance order, so the requested state(s) may not
|
|
843
|
-
// appear on the first page. Server-side `&state=` narrows the single-state case when honored, but it
|
|
844
|
-
// can't express multiple states, so page through the results and accumulate matches until we fill the
|
|
845
|
-
// detail-query cap (`perPageLimit`) or exhaust the search results. This keeps correctness whether
|
|
846
|
-
// or not `&state=` takes effect. Bounded by `maxSearchPages` like the other paged provider drains in
|
|
847
|
-
// this package so a large, low-match result set can't fan out into an unbounded request loop.
|
|
848
|
-
const maxSearchPages = 20;
|
|
849
|
-
const matches: GitLabMergeRequestREST[] = [];
|
|
850
|
-
for (let page = 1; page <= maxSearchPages; page++) {
|
|
851
|
-
const pagePRs = await this.request<GitLabMergeRequestREST[]>(
|
|
852
|
-
provider,
|
|
853
|
-
token,
|
|
854
|
-
options?.baseUrl,
|
|
855
|
-
`${searchPath}&page=${page}`,
|
|
856
|
-
{ method: 'GET' },
|
|
857
|
-
cancellation,
|
|
858
|
-
scope,
|
|
859
|
-
);
|
|
860
|
-
for (const pr of pagePRs) {
|
|
861
|
-
if (include.includes(fromGitLabMergeRequestState(pr.state))) {
|
|
862
|
-
matches.push(pr);
|
|
863
|
-
if (matches.length >= perPageLimit) break;
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
// Stop once we've filled the cap or hit the last (partial or empty) page.
|
|
867
|
-
if (matches.length >= perPageLimit || pagePRs.length < perPageLimit) break;
|
|
868
|
-
}
|
|
869
|
-
restPRs = matches;
|
|
870
|
-
}
|
|
871
|
-
if (restPRs.length === 0) {
|
|
872
|
-
return [];
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
interface QueryResult {
|
|
876
|
-
data: Record<`mergeRequest_${number}`, GitLabMergeRequestFull>;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
const queryArgs = restPRs.map((_, i) => `$id_${i}: MergeRequestID!`).join('\n');
|
|
880
|
-
const queryFields = restPRs
|
|
881
|
-
.map((_, i) => `mergeRequest_${i}: mergeRequest(id: $id_${i}) { ...mergeRequestFields }`)
|
|
882
|
-
.join('\n');
|
|
883
|
-
// Set of fields includes only additional fields that are not included in GitLabMergeRequestREST.
|
|
884
|
-
// It's limited as much as possible to reduce complexity of the query.
|
|
885
|
-
const queryMrFields = `fragment mergeRequestFields on MergeRequest {
|
|
886
|
-
diffRefs {
|
|
887
|
-
baseSha
|
|
888
|
-
headSha
|
|
889
|
-
}
|
|
890
|
-
project {
|
|
891
|
-
id
|
|
892
|
-
fullPath
|
|
893
|
-
webUrl
|
|
894
|
-
}
|
|
895
|
-
sourceProject {
|
|
896
|
-
id
|
|
897
|
-
fullPath
|
|
898
|
-
webUrl
|
|
899
|
-
}
|
|
900
|
-
}`;
|
|
901
|
-
const query = `query getMergeRequests (${queryArgs}) {${queryFields}} ${queryMrFields}`;
|
|
902
|
-
|
|
903
|
-
const params = restPRs.reduce<Record<`id_${number}`, string>>((ids, gitlabRestPr, i) => {
|
|
904
|
-
ids[`id_${i}`] = `${gitlabMergeRequestIdPrefix}${gitlabRestPr.id}`;
|
|
905
|
-
return ids;
|
|
906
|
-
}, {});
|
|
907
|
-
const rsp = await this.graphql<QueryResult>(
|
|
908
|
-
provider,
|
|
909
|
-
token,
|
|
910
|
-
options?.baseUrl,
|
|
911
|
-
query,
|
|
912
|
-
params,
|
|
913
|
-
cancellation,
|
|
914
|
-
scope,
|
|
915
|
-
);
|
|
916
|
-
if (rsp?.data != null) {
|
|
917
|
-
const resultPRs = restPRs.reduce<PullRequest[]>((accum, restPR, i) => {
|
|
918
|
-
const graphQlPR = rsp.data[`mergeRequest_${i}`];
|
|
919
|
-
if (graphQlPR == null) {
|
|
920
|
-
return accum;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
const fullPr: GitLabMergeRequestFull = {
|
|
924
|
-
...graphQlPR,
|
|
925
|
-
iid: String(restPR.iid),
|
|
926
|
-
id: String(restPR.id),
|
|
927
|
-
state: restPR.state,
|
|
928
|
-
// An absent REST author stays absent (`null`, as GitLab's own shape expresses it) rather than a
|
|
929
|
-
// synthesized `'Unknown'` stub: `fromGitLabMergeRequest` collapses `null` to an absent
|
|
930
|
-
// `PullRequestMember.name`, whereas a placeholder here would launder into a real-looking name.
|
|
931
|
-
author:
|
|
932
|
-
restPR.author != null
|
|
933
|
-
? {
|
|
934
|
-
id: buildGitLabUserId(restPR.author.id) ?? '',
|
|
935
|
-
name: restPR.author.name,
|
|
936
|
-
avatarUrl: restPR.author.avatar_url ?? null,
|
|
937
|
-
webUrl: restPR.author.web_url,
|
|
938
|
-
}
|
|
939
|
-
: null,
|
|
940
|
-
title: restPR.title,
|
|
941
|
-
description: restPR.description,
|
|
942
|
-
webUrl: restPR.web_url,
|
|
943
|
-
createdAt: restPR.created_at,
|
|
944
|
-
updatedAt: restPR.updated_at,
|
|
945
|
-
mergedAt: restPR.merged_at,
|
|
946
|
-
sourceBranch: restPR.source_branch,
|
|
947
|
-
targetBranch: restPR.target_branch,
|
|
948
|
-
};
|
|
949
|
-
accum.push(fromGitLabMergeRequest(fullPr, provider));
|
|
950
|
-
return accum;
|
|
951
|
-
}, []);
|
|
952
|
-
return resultPRs;
|
|
953
|
-
}
|
|
954
|
-
return [];
|
|
955
|
-
} catch (ex) {
|
|
956
|
-
if (ex instanceof RequestNotFoundError) return [];
|
|
957
|
-
|
|
958
|
-
throw this.handleException(ex, provider, scope);
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
private async findUser(
|
|
963
|
-
provider: Provider,
|
|
964
|
-
token: TokenWithInfo,
|
|
965
|
-
search: string,
|
|
966
|
-
options?: {
|
|
967
|
-
baseUrl?: string;
|
|
968
|
-
avatarSize?: number;
|
|
969
|
-
},
|
|
970
|
-
cancellation?: AbortSignal,
|
|
971
|
-
): Promise<GitLabUser[]> {
|
|
972
|
-
const scope = getScopedLogger();
|
|
973
|
-
|
|
974
|
-
interface QueryResult {
|
|
975
|
-
data: {
|
|
976
|
-
users: {
|
|
977
|
-
nodes: {
|
|
978
|
-
id: string;
|
|
979
|
-
name: string;
|
|
980
|
-
username: string;
|
|
981
|
-
publicEmail?: string;
|
|
982
|
-
state: string;
|
|
983
|
-
avatarUrl: string;
|
|
984
|
-
webUrl: string;
|
|
985
|
-
}[];
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
try {
|
|
991
|
-
const query = `query findUser(
|
|
992
|
-
$search: String!
|
|
993
|
-
) {
|
|
994
|
-
users(search: $search) {
|
|
995
|
-
nodes {
|
|
996
|
-
id
|
|
997
|
-
name
|
|
998
|
-
username,
|
|
999
|
-
publicEmail,
|
|
1000
|
-
state
|
|
1001
|
-
avatarUrl
|
|
1002
|
-
webUrl
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
}`;
|
|
1006
|
-
const rsp = await this.graphql<QueryResult>(
|
|
1007
|
-
provider,
|
|
1008
|
-
token,
|
|
1009
|
-
options?.baseUrl,
|
|
1010
|
-
query,
|
|
1011
|
-
{
|
|
1012
|
-
search: search,
|
|
1013
|
-
},
|
|
1014
|
-
cancellation,
|
|
1015
|
-
scope,
|
|
1016
|
-
);
|
|
1017
|
-
|
|
1018
|
-
const matches = rsp?.data?.users?.nodes;
|
|
1019
|
-
if (matches == null || matches.length === 0) return [];
|
|
1020
|
-
|
|
1021
|
-
const users: GitLabUser[] = [];
|
|
1022
|
-
|
|
1023
|
-
for (const user of matches) {
|
|
1024
|
-
const match = /gid:\/\/gitlab\/User\/([0-9]+)\b/.exec(user.id);
|
|
1025
|
-
if (match == null) continue;
|
|
1026
|
-
|
|
1027
|
-
users.push({
|
|
1028
|
-
id: parseInt(match[1], 10),
|
|
1029
|
-
name: user.name,
|
|
1030
|
-
username: user.username,
|
|
1031
|
-
publicEmail: user.publicEmail || undefined,
|
|
1032
|
-
state: user.state,
|
|
1033
|
-
avatarUrl: user.avatarUrl,
|
|
1034
|
-
webUrl: user.webUrl,
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
return users;
|
|
1039
|
-
} catch (ex) {
|
|
1040
|
-
if (ex instanceof RequestNotFoundError) return [];
|
|
1041
|
-
|
|
1042
|
-
this.handleException(ex, provider, scope);
|
|
1043
|
-
return [];
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
getProjectId(
|
|
1048
|
-
provider: Provider,
|
|
1049
|
-
token: TokenWithInfo,
|
|
1050
|
-
group: string,
|
|
1051
|
-
repo: string,
|
|
1052
|
-
baseUrl: string | undefined,
|
|
1053
|
-
cancellation: AbortSignal | undefined,
|
|
1054
|
-
): Promise<string | undefined> {
|
|
1055
|
-
const { accessToken } = token;
|
|
1056
|
-
const key = `${accessToken}|${group}/${repo}`;
|
|
1057
|
-
|
|
1058
|
-
let projectId = this._projectIds.get(key);
|
|
1059
|
-
if (projectId == null) {
|
|
1060
|
-
projectId = this.getProjectIdCore(provider, token, group, repo, baseUrl, cancellation);
|
|
1061
|
-
this._projectIds.set(key, projectId);
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
return projectId;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
private async getProjectIdCore(
|
|
1068
|
-
provider: Provider,
|
|
1069
|
-
token: TokenWithInfo,
|
|
1070
|
-
group: string,
|
|
1071
|
-
repo: string,
|
|
1072
|
-
baseUrl: string | undefined,
|
|
1073
|
-
cancellation: AbortSignal | undefined,
|
|
1074
|
-
): Promise<string | undefined> {
|
|
1075
|
-
const scope = getScopedLogger();
|
|
1076
|
-
|
|
1077
|
-
interface QueryResult {
|
|
1078
|
-
data: { project: { id: string } };
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
try {
|
|
1082
|
-
const query = `query getProjectId(
|
|
1083
|
-
$fullPath: ID!
|
|
1084
|
-
) {
|
|
1085
|
-
project(fullPath: $fullPath) {
|
|
1086
|
-
id
|
|
1087
|
-
}
|
|
1088
|
-
}`;
|
|
1089
|
-
const rsp = await this.graphql<QueryResult>(
|
|
1090
|
-
provider,
|
|
1091
|
-
token,
|
|
1092
|
-
baseUrl,
|
|
1093
|
-
query,
|
|
1094
|
-
{
|
|
1095
|
-
fullPath: `${group}/${repo}`,
|
|
1096
|
-
},
|
|
1097
|
-
cancellation,
|
|
1098
|
-
scope,
|
|
1099
|
-
);
|
|
1100
|
-
|
|
1101
|
-
const gid = rsp?.data?.project?.id;
|
|
1102
|
-
if (gid == null) return undefined;
|
|
1103
|
-
|
|
1104
|
-
const match = /gid:\/\/gitlab\/Project\/([0-9]+)\b/.exec(gid);
|
|
1105
|
-
if (match == null) return undefined;
|
|
1106
|
-
|
|
1107
|
-
const projectId = match[1];
|
|
1108
|
-
|
|
1109
|
-
scope?.addExitInfo(`projectId=${projectId}`);
|
|
1110
|
-
return projectId;
|
|
1111
|
-
} catch (ex) {
|
|
1112
|
-
if (ex instanceof RequestNotFoundError) return undefined;
|
|
1113
|
-
|
|
1114
|
-
this.handleException(ex, provider, scope);
|
|
1115
|
-
return undefined;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
private async graphql<T extends object>(
|
|
1120
|
-
provider: Provider,
|
|
1121
|
-
token: TokenWithInfo,
|
|
1122
|
-
baseUrl: string | undefined,
|
|
1123
|
-
query: string,
|
|
1124
|
-
variables: Record<string, any>,
|
|
1125
|
-
cancellation: AbortSignal | undefined,
|
|
1126
|
-
scope: ScopedLogger | undefined,
|
|
1127
|
-
): Promise<T | undefined> {
|
|
1128
|
-
const { accessToken } = token;
|
|
1129
|
-
let rsp: Response;
|
|
1130
|
-
try {
|
|
1131
|
-
const sw = maybeStopWatch(`[GITLAB] POST ${baseUrl}`, { log: { onlyExit: true } });
|
|
1132
|
-
|
|
1133
|
-
try {
|
|
1134
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1135
|
-
|
|
1136
|
-
rsp = await this.config.wrapForForcedInsecureSSL(provider.getIgnoreSSLErrors(), () =>
|
|
1137
|
-
this.config.fetch(`${baseUrl ?? 'https://gitlab.com/api'}/graphql`, {
|
|
1138
|
-
method: 'POST',
|
|
1139
|
-
headers: { Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/json' },
|
|
1140
|
-
signal: cancellation,
|
|
1141
|
-
body: JSON.stringify({ query: query, variables: variables }),
|
|
1142
|
-
}),
|
|
1143
|
-
);
|
|
1144
|
-
|
|
1145
|
-
if (rsp.ok) {
|
|
1146
|
-
const data = (await rsp.json()) as T | { errors: { message: string }[] };
|
|
1147
|
-
|
|
1148
|
-
if ('errors' in data) throw new ProviderFetchError('GitLab', rsp, data.errors);
|
|
1149
|
-
return data;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
// Reads the body so the 403 branch below can tell a throttled request from a permission failure.
|
|
1153
|
-
throw await ProviderFetchError.fromResponse('GitLab', rsp);
|
|
1154
|
-
} finally {
|
|
1155
|
-
const match = /(^[^({\n]+)/.exec(query);
|
|
1156
|
-
const message = ` ${match?.[1].trim() ?? query}`;
|
|
1157
|
-
|
|
1158
|
-
sw?.stop({ message: message });
|
|
1159
|
-
}
|
|
1160
|
-
} catch (ex) {
|
|
1161
|
-
if (ex instanceof ProviderFetchError || ex.name === 'AbortError') {
|
|
1162
|
-
this.handleRequestError(provider, token, ex, scope);
|
|
1163
|
-
} else if (Logger.isDebugging) {
|
|
1164
|
-
this.config.onError?.(`GitLab request failed: ${ex.message}`);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
throw ex;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
private async request<T>(
|
|
1172
|
-
provider: Provider,
|
|
1173
|
-
token: TokenWithInfo,
|
|
1174
|
-
baseUrl: string | undefined,
|
|
1175
|
-
route: string,
|
|
1176
|
-
options: { method: RequestInit['method'] } & Record<string, unknown>,
|
|
1177
|
-
cancellation: AbortSignal | undefined,
|
|
1178
|
-
scope: ScopedLogger | undefined,
|
|
1179
|
-
): Promise<T> {
|
|
1180
|
-
const { accessToken } = token;
|
|
1181
|
-
const url = `${baseUrl ?? 'https://gitlab.com/api'}/${route}`;
|
|
1182
|
-
|
|
1183
|
-
let rsp: Response;
|
|
1184
|
-
try {
|
|
1185
|
-
const sw = maybeStopWatch(`[GITLAB] ${options?.method ?? 'GET'} ${url}`, { log: { onlyExit: true } });
|
|
1186
|
-
|
|
1187
|
-
try {
|
|
1188
|
-
if (cancellation?.aborted) throw new CancellationError();
|
|
1189
|
-
|
|
1190
|
-
rsp = await this.config.wrapForForcedInsecureSSL(provider.getIgnoreSSLErrors(), () =>
|
|
1191
|
-
this.config.fetch(url, {
|
|
1192
|
-
headers: { Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/json' },
|
|
1193
|
-
signal: cancellation,
|
|
1194
|
-
...options,
|
|
1195
|
-
}),
|
|
1196
|
-
);
|
|
1197
|
-
|
|
1198
|
-
if (rsp.ok) {
|
|
1199
|
-
return (await rsp.json()) as T;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
// Reads the body so the 403 branch below can tell a throttled request from a permission failure.
|
|
1203
|
-
throw await ProviderFetchError.fromResponse('GitLab', rsp);
|
|
1204
|
-
} finally {
|
|
1205
|
-
sw?.stop();
|
|
1206
|
-
}
|
|
1207
|
-
} catch (ex) {
|
|
1208
|
-
if (ex instanceof ProviderFetchError || ex.name === 'AbortError') {
|
|
1209
|
-
this.handleRequestError(provider, token, ex, scope);
|
|
1210
|
-
} else if (Logger.isDebugging) {
|
|
1211
|
-
this.config.onError?.(`GitLab request failed: ${ex.message}`);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
throw ex;
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
private handleRequestError(
|
|
1219
|
-
provider: Provider | undefined,
|
|
1220
|
-
token: TokenWithInfo,
|
|
1221
|
-
ex: ProviderFetchError | (Error & { name: 'AbortError' }),
|
|
1222
|
-
scope: ScopedLogger | undefined,
|
|
1223
|
-
): void {
|
|
1224
|
-
if (ex.name === 'AbortError' || !(ex instanceof ProviderFetchError)) throw new CancellationError(ex);
|
|
1225
|
-
|
|
1226
|
-
const { accessToken, ...tokenInfo } = token;
|
|
1227
|
-
switch (ex.status) {
|
|
1228
|
-
case 404: // Not found
|
|
1229
|
-
case 410: // Gone
|
|
1230
|
-
case 422: // Unprocessable Entity
|
|
1231
|
-
throw new RequestNotFoundError(ex);
|
|
1232
|
-
case 429: // Too Many Requests
|
|
1233
|
-
throw toRateLimitError(ex, accessToken);
|
|
1234
|
-
case 401: // Unauthorized
|
|
1235
|
-
throw new AuthenticationError(tokenInfo, AuthenticationErrorReason.Unauthorized, ex);
|
|
1236
|
-
case 403: // Forbidden
|
|
1237
|
-
// GitLab returns 403 for both a permission failure and a throttled request, so the message is the
|
|
1238
|
-
// discriminant (see `isRateLimitResponse`, shared with Bitbucket/Azure).
|
|
1239
|
-
if (isRateLimitResponse(ex)) throw toRateLimitError(ex, accessToken);
|
|
1240
|
-
|
|
1241
|
-
throw new AuthenticationError(tokenInfo, AuthenticationErrorReason.Forbidden, ex);
|
|
1242
|
-
case 500: // Internal Server Error
|
|
1243
|
-
scope?.error(ex);
|
|
1244
|
-
if (ex.response != null) {
|
|
1245
|
-
provider?.trackRequestException();
|
|
1246
|
-
this.config.onRequestFailed?.(
|
|
1247
|
-
`${provider?.name ?? 'GitLab'} failed to respond and might be experiencing issues.${
|
|
1248
|
-
provider == null || provider.id === 'gitlab'
|
|
1249
|
-
? ' Please visit the [GitLab status page](https://status.gitlab.com) for more information.'
|
|
1250
|
-
: ''
|
|
1251
|
-
}`,
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
return;
|
|
1255
|
-
case 502: // Bad Gateway
|
|
1256
|
-
scope?.error(ex);
|
|
1257
|
-
// GitHub seems to return this status code for timeouts
|
|
1258
|
-
if (ex.message.includes('timeout')) {
|
|
1259
|
-
provider?.trackRequestException();
|
|
1260
|
-
this.config.onRequestTimedOut?.(provider?.name ?? 'GitLab');
|
|
1261
|
-
return;
|
|
1262
|
-
}
|
|
1263
|
-
break;
|
|
1264
|
-
default:
|
|
1265
|
-
if (ex.status >= 400 && ex.status < 500) throw new RequestClientError(ex);
|
|
1266
|
-
break;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
scope?.error(ex);
|
|
1270
|
-
if (Logger.isDebugging) {
|
|
1271
|
-
this.config.onError?.(`GitLab request failed: ${(ex.response as any)?.errors?.[0]?.message ?? ex.message}`);
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
private handleException(ex: Error, provider: Provider, scope: ScopedLogger | undefined): Error {
|
|
1276
|
-
scope?.error(ex);
|
|
1277
|
-
// debugger;
|
|
1278
|
-
|
|
1279
|
-
if (ex instanceof AuthenticationError) {
|
|
1280
|
-
void this.showAuthenticationErrorMessage(ex, provider);
|
|
1281
|
-
}
|
|
1282
|
-
return ex;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
private async showAuthenticationErrorMessage(ex: AuthenticationError, provider: Provider) {
|
|
1286
|
-
if (ex.reason === AuthenticationErrorReason.Unauthorized || ex.reason === AuthenticationErrorReason.Forbidden) {
|
|
1287
|
-
const reauthenticate = await this.config.onReauthenticationRequired?.(
|
|
1288
|
-
`${ex.message}. Would you like to try reauthenticating${
|
|
1289
|
-
ex.reason === AuthenticationErrorReason.Forbidden ? ' to provide additional access' : ''
|
|
1290
|
-
}?`,
|
|
1291
|
-
);
|
|
1292
|
-
|
|
1293
|
-
if (reauthenticate) {
|
|
1294
|
-
await provider.reauthenticate();
|
|
1295
|
-
this.resetCaches();
|
|
1296
|
-
}
|
|
1297
|
-
} else {
|
|
1298
|
-
this.config.onError?.(ex.message);
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
/** Wires a {@link GitLabApi} from the full runtime context, mapping `ctx` down to the narrow config. */
|
|
1304
|
-
export function createGitLabApi(ctx: IntegrationServiceContext): GitLabApi {
|
|
1305
|
-
const config: ProviderApiConfig = {
|
|
1306
|
-
...baseProviderApiConfig(ctx),
|
|
1307
|
-
// Self-hosted GitLab keys its API base off `remotes`, so reset on both HTTP proxy and remotes changes.
|
|
1308
|
-
onConfigChanged: listener =>
|
|
1309
|
-
ctx.config.onDidChange(e => {
|
|
1310
|
-
if (e.httpProxy || e.remotes) {
|
|
1311
|
-
listener();
|
|
1312
|
-
}
|
|
1313
|
-
}),
|
|
1314
|
-
onReauthenticationRequired: message =>
|
|
1315
|
-
ctx.hooks?.onReauthenticationRequired?.(message) ?? Promise.resolve(false),
|
|
1316
|
-
onRequestTimedOut: providerName => ctx.hooks?.ui?.onRequestTimedOut?.(providerName),
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
return new GitLabApi(config);
|
|
1320
|
-
}
|