@gitkraken/core-gitlens 0.5.116 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/README.md +9 -2
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/decorate.js +9 -0
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js +57 -0
- package/dist/git/cache.d.ts +297 -297
- package/dist/git/cache.js +948 -1276
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts +202 -197
- package/dist/git/context.js +12 -8
- package/dist/git/context.js.map +1 -1
- package/dist/git/errors.d.ts +268 -281
- package/dist/git/errors.js +928 -706
- package/dist/git/errors.js.map +1 -1
- package/dist/git/features.d.ts +3 -2
- package/dist/git/features.js +34 -55
- package/dist/git/features.js.map +1 -1
- package/dist/git/gitHealth.d.ts +88 -81
- package/dist/git/gitHealth.js +259 -329
- package/dist/git/gitHealth.js.map +1 -1
- package/dist/git/models/author.d.ts +12 -10
- package/dist/git/models/author.js +0 -2
- package/dist/git/models/autolink.d.ts +36 -37
- package/dist/git/models/autolink.js +0 -2
- package/dist/git/models/blame.d.ts +25 -23
- package/dist/git/models/blame.js +0 -2
- package/dist/git/models/branch.d.ts +74 -72
- package/dist/git/models/branch.js +132 -171
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts +135 -133
- package/dist/git/models/commit.js +381 -484
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts +30 -29
- package/dist/git/models/contributor.js +56 -64
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts +5 -3
- package/dist/git/models/defaultBranch.js +0 -2
- package/dist/git/models/diff.d.ts +49 -47
- package/dist/git/models/diff.js +0 -2
- package/dist/git/models/file.d.ts +20 -18
- package/dist/git/models/file.js +0 -2
- package/dist/git/models/fileChange.d.ts +45 -43
- package/dist/git/models/fileChange.js +60 -66
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +25 -23
- package/dist/git/models/fileStatus.js +30 -26
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +328 -320
- package/dist/git/models/graph.js +31 -27
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts +37 -35
- package/dist/git/models/graphSearch.js +0 -2
- package/dist/git/models/graphSession.d.ts +158 -66
- package/dist/git/models/graphSession.js +72 -1
- package/dist/git/models/graphSession.js.map +1 -1
- package/dist/git/models/issue.d.ts +174 -140
- package/dist/git/models/issue.js +86 -84
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +16 -14
- package/dist/git/models/issueOrPullRequest.js +0 -2
- package/dist/git/models/lineRange.d.ts +6 -4
- package/dist/git/models/lineRange.js +0 -2
- package/dist/git/models/log.d.ts +18 -16
- package/dist/git/models/log.js +0 -2
- package/dist/git/models/mergeConflicts.d.ts +17 -15
- package/dist/git/models/mergeConflicts.js +0 -2
- package/dist/git/models/patch.d.ts +14 -12
- package/dist/git/models/patch.js +0 -2
- package/dist/git/models/pausedOperationStatus.d.ts +42 -40
- package/dist/git/models/pausedOperationStatus.js +0 -2
- package/dist/git/models/pullRequest.d.ts +238 -230
- package/dist/git/models/pullRequest.js +151 -163
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts +30 -28
- package/dist/git/models/rebase.js +0 -2
- package/dist/git/models/reference.d.ts +57 -55
- package/dist/git/models/reference.js +0 -2
- package/dist/git/models/reflog.d.ts +29 -27
- package/dist/git/models/reflog.js +63 -82
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts +34 -32
- package/dist/git/models/remote.js +74 -95
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts +86 -84
- package/dist/git/models/remoteProvider.js +145 -150
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts +58 -56
- package/dist/git/models/remoteResource.js +15 -12
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +144 -142
- package/dist/git/models/repository.js +358 -406
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts +8 -6
- package/dist/git/models/repositoryChangeEvent.js +26 -24
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts +50 -46
- package/dist/git/models/repositoryIdentities.js +7 -5
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts +9 -7
- package/dist/git/models/repositoryMetadata.js +0 -2
- package/dist/git/models/resourceDescriptor.d.ts +11 -9
- package/dist/git/models/resourceDescriptor.js +0 -2
- package/dist/git/models/revision.d.ts +2 -0
- package/dist/git/models/revision.js +8 -5
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts +48 -47
- package/dist/git/models/search.js +53 -49
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts +5 -3
- package/dist/git/models/shortlog.js +0 -2
- package/dist/git/models/signature.d.ts +28 -26
- package/dist/git/models/signature.js +0 -2
- package/dist/git/models/staging.d.ts +18 -16
- package/dist/git/models/staging.js +0 -2
- package/dist/git/models/stash.d.ts +5 -3
- package/dist/git/models/stash.js +0 -2
- package/dist/git/models/status.d.ts +51 -49
- package/dist/git/models/status.js +172 -205
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts +35 -34
- package/dist/git/models/statusFile.js +112 -125
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +34 -32
- package/dist/git/models/tag.js +64 -77
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts +8 -6
- package/dist/git/models/tree.js +0 -2
- package/dist/git/models/user.d.ts +6 -4
- package/dist/git/models/user.js +0 -2
- package/dist/git/models/worktree.d.ts +50 -48
- package/dist/git/models/worktree.js +102 -133
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts +7 -5
- package/dist/git/parsers/diffParser.js +438 -587
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts +3 -1
- package/dist/git/parsers/rebaseTodoParser.js +165 -208
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts +12 -10
- package/dist/git/providers/blame.js +0 -2
- package/dist/git/providers/branches.d.ts +96 -94
- package/dist/git/providers/branches.js +0 -2
- package/dist/git/providers/commits.d.ts +105 -104
- package/dist/git/providers/commits.js +0 -2
- package/dist/git/providers/config.d.ts +80 -78
- package/dist/git/providers/config.js +0 -2
- package/dist/git/providers/contributors.d.ts +23 -21
- package/dist/git/providers/contributors.js +0 -2
- package/dist/git/providers/diff.d.ts +68 -66
- package/dist/git/providers/diff.js +0 -2
- package/dist/git/providers/graph.d.ts +73 -62
- package/dist/git/providers/graph.js +0 -2
- package/dist/git/providers/maintenance.d.ts +180 -178
- package/dist/git/providers/maintenance.js +0 -20
- package/dist/git/providers/operations.d.ts +114 -112
- package/dist/git/providers/operations.js +0 -2
- package/dist/git/providers/patch.d.ts +26 -24
- package/dist/git/providers/patch.js +0 -2
- package/dist/git/providers/pausedOperations.d.ts +19 -17
- package/dist/git/providers/pausedOperations.js +0 -2
- package/dist/git/providers/provider.d.ts +52 -50
- package/dist/git/providers/provider.js +0 -2
- package/dist/git/providers/refs.d.ts +42 -40
- package/dist/git/providers/refs.js +0 -2
- package/dist/git/providers/remotes.d.ts +24 -22
- package/dist/git/providers/remotes.js +0 -2
- package/dist/git/providers/revision.d.ts +25 -23
- package/dist/git/providers/revision.js +0 -2
- package/dist/git/providers/shared/remotes.d.ts +24 -22
- package/dist/git/providers/shared/remotes.js +52 -77
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts +37 -35
- package/dist/git/providers/staging.js +0 -2
- package/dist/git/providers/stash.d.ts +38 -36
- package/dist/git/providers/stash.js +0 -2
- package/dist/git/providers/status.d.ts +32 -30
- package/dist/git/providers/status.js +0 -2
- package/dist/git/providers/tags.d.ts +20 -18
- package/dist/git/providers/tags.js +0 -2
- package/dist/git/providers/types.d.ts +19 -17
- package/dist/git/providers/types.js +0 -2
- package/dist/git/providers/worktrees.d.ts +26 -24
- package/dist/git/providers/worktrees.js +0 -2
- package/dist/git/remotes/azure-devops.d.ts +49 -38
- package/dist/git/remotes/azure-devops.js +254 -224
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts +30 -29
- package/dist/git/remotes/bitbucket-server.js +141 -142
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts +27 -26
- package/dist/git/remotes/bitbucket.js +114 -111
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts +26 -25
- package/dist/git/remotes/custom.js +130 -130
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts +29 -28
- package/dist/git/remotes/gerrit.js +140 -143
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts +28 -27
- package/dist/git/remotes/gitea.js +141 -145
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts +35 -34
- package/dist/git/remotes/github.js +196 -190
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts +31 -30
- package/dist/git/remotes/gitlab.js +245 -227
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts +16 -14
- package/dist/git/remotes/google-source.js +33 -31
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts +16 -14
- package/dist/git/remotes/matcher.js +141 -124
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/repositoryService.d.ts +47 -47
- package/dist/git/repositoryService.js +47 -44
- package/dist/git/repositoryService.js.map +1 -1
- package/dist/git/run.types.d.ts +91 -76
- package/dist/git/run.types.js +0 -2
- package/dist/git/service.d.ts +73 -71
- package/dist/git/service.js +286 -302
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts +4 -2
- package/dist/git/utils/autolink.utils.js +103 -139
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts +22 -20
- package/dist/git/utils/blame.utils.js +196 -230
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts +7 -9
- package/dist/git/utils/branch.utils.js +89 -115
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts +10 -16
- package/dist/git/utils/commit.utils.js +28 -47
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/config.utils.d.ts +2 -0
- package/dist/git/utils/config.utils.js +14 -5
- package/dist/git/utils/config.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts +16 -13
- package/dist/git/utils/conflictResolution.utils.js +116 -113
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +10 -8
- package/dist/git/utils/contributor.utils.js +47 -69
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts +2 -0
- package/dist/git/utils/fetch.utils.js +33 -44
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +22 -21
- package/dist/git/utils/fileStatus.utils.js +59 -45
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +19 -1
- package/dist/git/utils/graph.utils.js +60 -35
- package/dist/git/utils/graph.utils.js.map +1 -1
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +154 -149
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +23 -20
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts +4 -1
- package/dist/git/utils/mergeConflicts.utils.js +28 -15
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +7 -42
- package/dist/git/utils/pausedOperationStatus.utils.js +83 -146
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +7 -5
- package/dist/git/utils/pullRequest.utils.js +180 -187
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +6 -6
- package/dist/git/utils/reachability.utils.js +120 -147
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts +3 -1
- package/dist/git/utils/rebase.utils.js +87 -71
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +33 -32
- package/dist/git/utils/reference.utils.js +152 -179
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts +5 -3
- package/dist/git/utils/remote.utils.js +77 -116
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts +3 -1
- package/dist/git/utils/repository.utils.js +12 -11
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts +3 -1
- package/dist/git/utils/resourceDescriptor.utils.js +8 -14
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts +11 -10
- package/dist/git/utils/revision.utils.js +69 -83
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts +5 -3
- package/dist/git/utils/search.utils.js +383 -522
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts +22 -20
- package/dist/git/utils/sorting.js +133 -227
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +2 -0
- package/dist/git/utils/sshKey.utils.js +10 -15
- package/dist/git/utils/sshKey.utils.js.map +1 -1
- package/dist/git/utils/status.utils.d.ts +20 -15
- package/dist/git/utils/status.utils.js +93 -79
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts +6 -4
- package/dist/git/utils/statusFile.utils.js +71 -72
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts +4 -2
- package/dist/git/utils/tag.utils.js +10 -8
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts +5 -2
- package/dist/git/utils/tooltip.utils.js +49 -24
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts +9 -7
- package/dist/git/utils/uriAuthority.js +19 -16
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts +3 -1
- package/dist/git/utils/user.utils.js +6 -10
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts +5 -3
- package/dist/git/utils/worktree.utils.js +14 -12
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts +38 -36
- package/dist/git/watching/changeEvent.js +60 -67
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts +3 -1
- package/dist/git/watching/classifyChange.js +50 -79
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +43 -41
- package/dist/git/watching/gitIgnoreFilter.js +92 -107
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts +22 -20
- package/dist/git/watching/initWatcher.js +58 -57
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts +8 -7
- package/dist/git/watching/provider.js +0 -2
- package/dist/git/watching/watchGroup.d.ts +29 -28
- package/dist/git/watching/watchGroup.js +105 -137
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +70 -68
- package/dist/git/watching/watchService.js +275 -339
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +112 -111
- package/dist/git/watching/watchSession.js +260 -314
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +4 -2
- package/dist/git/watching/watcherPatterns.js +21 -24
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +117 -114
- package/dist/git-cli/cliGitProvider.js +261 -283
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/eventLoopMonitor.d.ts +26 -0
- package/dist/git-cli/exec/eventLoopMonitor.js +61 -0
- package/dist/git-cli/exec/eventLoopMonitor.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +3 -4
- package/dist/git-cli/exec/exec.errors.d.ts +2 -2
- package/dist/git-cli/exec/exec.errors.js +2 -2
- package/dist/git-cli/exec/exec.js +3 -3
- package/dist/git-cli/exec/exec.types.d.ts +2 -2
- package/dist/git-cli/exec/exec.types.js +0 -2
- package/dist/git-cli/exec/features.d.ts +2 -3
- package/dist/git-cli/exec/features.js +2 -2
- package/dist/git-cli/exec/git.d.ts +224 -205
- package/dist/git-cli/exec/git.js +834 -1042
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts +51 -48
- package/dist/git-cli/exec/gitQueue.js +225 -260
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts +8 -6
- package/dist/git-cli/exec/locator.js +95 -121
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts +22 -20
- package/dist/git-cli/parsers/blameParser.js +238 -332
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts +3 -1
- package/dist/git-cli/parsers/indexParser.js +146 -221
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +103 -110
- package/dist/git-cli/parsers/logParser.js +998 -1199
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +5 -3
- package/dist/git-cli/parsers/mergeTreeParser.js +28 -72
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts +5 -4
- package/dist/git-cli/parsers/refParser.js +92 -137
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts +7 -6
- package/dist/git-cli/parsers/reflogParser.js +100 -173
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -2
- package/dist/git-cli/parsers/remoteParser.js +74 -126
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -2
- package/dist/git-cli/parsers/shortlogParser.js +44 -49
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts +3 -1
- package/dist/git-cli/parsers/signatureParser.js +82 -124
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +5 -3
- package/dist/git-cli/parsers/sshSignatureParser.js +55 -64
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +4 -2
- package/dist/git-cli/parsers/statusParser.js +148 -205
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts +3 -1
- package/dist/git-cli/parsers/treeParser.js +57 -108
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts +4 -3
- package/dist/git-cli/parsers/worktreeParser.js +76 -132
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts +25 -23
- package/dist/git-cli/providers/blame.js +404 -413
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +117 -116
- package/dist/git-cli/providers/branches.js +1132 -1468
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -2
- package/dist/git-cli/providers/commitFilesetUtils.js +36 -18
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +58 -56
- package/dist/git-cli/providers/commits.js +1084 -1423
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +129 -127
- package/dist/git-cli/providers/config.js +612 -831
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts +29 -28
- package/dist/git-cli/providers/contributors.js +246 -351
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts +97 -94
- package/dist/git-cli/providers/diff.js +638 -845
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +66 -68
- package/dist/git-cli/providers/graph.js +1400 -1848
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/maintenance.d.ts +305 -303
- package/dist/git-cli/providers/maintenance.js +1526 -2078
- package/dist/git-cli/providers/maintenance.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts +96 -94
- package/dist/git-cli/providers/operations.js +664 -724
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts +37 -35
- package/dist/git-cli/providers/patch.js +206 -307
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts +30 -28
- package/dist/git-cli/providers/pausedOperations.js +475 -506
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts +50 -48
- package/dist/git-cli/providers/refs.js +335 -479
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts +23 -21
- package/dist/git-cli/providers/remotes.js +71 -92
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +27 -25
- package/dist/git-cli/providers/revision.js +288 -304
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +31 -29
- package/dist/git-cli/providers/staging.js +140 -189
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts +44 -42
- package/dist/git-cli/providers/stash.js +288 -387
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +61 -59
- package/dist/git-cli/providers/status.js +332 -453
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts +31 -29
- package/dist/git-cli/providers/tags.js +158 -215
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +35 -33
- package/dist/git-cli/providers/worktrees.js +178 -203
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts +28 -26
- package/dist/git-cli/service.js +38 -40
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/discovery.d.ts +19 -17
- package/dist/ipc/discovery.js +104 -128
- package/dist/ipc/discovery.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts +16 -14
- package/dist/ipc/ipcServer.js +139 -160
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/agentCapabilities.d.ts +50 -37
- package/dist/plus/agents/agentCapabilities.js +138 -173
- package/dist/plus/agents/agentCapabilities.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +153 -151
- package/dist/plus/agents/providers/claudeCodeTranscript.js +605 -679
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts +237 -240
- package/dist/plus/agents/providers/gkAgentProvider.js +2162 -3334
- package/dist/plus/agents/providers/gkAgentProvider.js.map +1 -1
- package/dist/plus/agents/sanitizePrompt.d.ts +2 -0
- package/dist/plus/agents/sanitizePrompt.js +58 -91
- package/dist/plus/agents/sanitizePrompt.js.map +1 -1
- package/dist/plus/agents/stateMachine.d.ts +7 -5
- package/dist/plus/agents/stateMachine.js +135 -163
- package/dist/plus/agents/stateMachine.js.map +1 -1
- package/dist/plus/agents/types.d.ts +333 -336
- package/dist/plus/agents/types.js +48 -48
- package/dist/plus/agents/types.js.map +1 -1
- package/dist/plus/ai/constants.d.ts +3 -1
- package/dist/plus/ai/constants.js +88 -84
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts +22 -18
- package/dist/plus/ai/errors.js +158 -138
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts +11 -9
- package/dist/plus/ai/models/conversation.js +30 -26
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +29 -27
- package/dist/plus/ai/models/model.js +663 -471
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +56 -55
- package/dist/plus/ai/models/promptTemplates.js +0 -2
- package/dist/plus/ai/models/provider.d.ts +79 -77
- package/dist/plus/ai/models/provider.js +0 -2
- package/dist/plus/ai/models/results.d.ts +27 -21
- package/dist/plus/ai/models/results.js +0 -2
- package/dist/plus/ai/prompts.d.ts +4 -2
- package/dist/plus/ai/prompts.js +301 -190
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +33 -32
- package/dist/plus/ai/providers/anthropicProvider.js +484 -381
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -16
- package/dist/plus/ai/providers/azureProvider.js +53 -53
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts +23 -20
- package/dist/plus/ai/providers/context.js +0 -2
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +17 -15
- package/dist/plus/ai/providers/deepSeekProvider.js +45 -39
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/geminiProvider.js +316 -230
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +22 -20
- package/dist/plus/ai/providers/gitkrakenProvider.js +165 -260
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +16 -14
- package/dist/plus/ai/providers/huggingFaceProvider.js +45 -46
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts +22 -20
- package/dist/plus/ai/providers/mistralProvider.js +263 -195
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts +26 -24
- package/dist/plus/ai/providers/ollamaProvider.js +156 -189
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +18 -16
- package/dist/plus/ai/providers/openAICompatibleProvider.js +50 -50
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +187 -185
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +356 -475
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts +20 -19
- package/dist/plus/ai/providers/openRouterProvider.js +60 -65
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts +17 -15
- package/dist/plus/ai/providers/openaiProvider.js +35 -34
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts +4 -2
- package/dist/plus/ai/providers/responseFormatCache.js +21 -17
- package/dist/plus/ai/providers/responseFormatCache.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/xaiProvider.js +61 -46
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts +4 -2
- package/dist/plus/ai/utils/ai.utils.js +50 -77
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +7 -5
- package/dist/plus/ai/utils/results.utils.js +235 -269
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +3 -2
- package/dist/plus/ai/utils/truncation.utils.js +242 -205
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts +58 -56
- package/dist/plus/git-github/api/config.js +15 -11
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +500 -497
- package/dist/plus/git-github/api/github.js +2326 -3121
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts +5 -3
- package/dist/plus/git-github/api/github.utils.js +24 -19
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts +5 -3
- package/dist/plus/git-github/api/issueSearchQuery.js +204 -221
- package/dist/plus/git-github/api/issueSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts +6 -5
- package/dist/plus/git-github/api/pullRequestSearchQuery.js +89 -116
- package/dist/plus/git-github/api/pullRequestSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts +10 -8
- package/dist/plus/git-github/api/token.js +0 -2
- package/dist/plus/git-github/api/tokenUtils.d.ts +4 -2
- package/dist/plus/git-github/api/tokenUtils.js +14 -10
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts +94 -92
- package/dist/plus/git-github/api/types.js +0 -2
- package/dist/plus/git-github/context.d.ts +65 -63
- package/dist/plus/git-github/context.js +13 -9
- package/dist/plus/git-github/context.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +182 -182
- package/dist/plus/git-github/models.js +199 -265
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts +32 -31
- package/dist/plus/git-github/providers/github/blame.js +137 -150
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +42 -40
- package/dist/plus/git-github/providers/github/branches.js +199 -274
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts +35 -33
- package/dist/plus/git-github/providers/github/commits.js +527 -606
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts +10 -8
- package/dist/plus/git-github/providers/github/config.js +35 -45
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts +25 -24
- package/dist/plus/git-github/providers/github/contributors.js +174 -216
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts +34 -32
- package/dist/plus/git-github/providers/github/diff.js +154 -194
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +33 -31
- package/dist/plus/git-github/providers/github/graph.js +400 -452
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts +33 -31
- package/dist/plus/git-github/providers/github/refs.js +97 -131
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts +8 -6
- package/dist/plus/git-github/providers/github/remotes.js +30 -35
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +13 -11
- package/dist/plus/git-github/providers/github/revision.js +106 -129
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts +24 -22
- package/dist/plus/git-github/providers/github/status.js +49 -47
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts +21 -19
- package/dist/plus/git-github/providers/github/tags.js +78 -103
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +67 -64
- package/dist/plus/git-github/providers/githubGitProvider.js +131 -128
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts +46 -44
- package/dist/plus/git-github/providers/githubProvider.js +0 -2
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +29 -27
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +173 -208
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +126 -107
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +399 -497
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +73 -72
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +153 -232
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +61 -59
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +100 -124
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +14 -12
- package/dist/plus/integrations/authentication/manualTokenProvider.js +26 -51
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +102 -85
- package/dist/plus/integrations/authentication/models.js +55 -54
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +19 -17
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -51
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +12 -10
- package/dist/plus/integrations/collectionMetadata.js +204 -254
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/constants.d.ts +60 -34
- package/dist/plus/integrations/constants.js +157 -132
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +253 -252
- package/dist/plus/integrations/context.js +0 -2
- package/dist/plus/integrations/errors.d.ts +26 -25
- package/dist/plus/integrations/errors.js +116 -140
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +36 -40
- package/dist/plus/integrations/index.js +46 -57
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +445 -440
- package/dist/plus/integrations/integrationService.js +1054 -1324
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +33 -31
- package/dist/plus/integrations/lite.js +84 -122
- package/dist/plus/integrations/lite.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +592 -580
- package/dist/plus/integrations/manager.js +0 -2
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +420 -415
- package/dist/plus/integrations/models/gitHostIntegration.js +1180 -1293
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +200 -190
- package/dist/plus/integrations/models/integration.js +577 -722
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issueCache.d.ts +15 -13
- package/dist/plus/integrations/models/issueCache.js +9 -7
- package/dist/plus/integrations/models/issueCache.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +108 -85
- package/dist/plus/integrations/models/issueReads.js +0 -2
- package/dist/plus/integrations/models/issuesIntegration.d.ts +72 -71
- package/dist/plus/integrations/models/issuesIntegration.js +160 -186
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts +9 -7
- package/dist/plus/integrations/models/pullRequestReads.js +0 -2
- package/dist/plus/integrations/providerFilters.d.ts +8 -20
- package/dist/plus/integrations/providerFilters.js +11 -7
- package/dist/plus/integrations/providerFilters.js.map +1 -1
- package/dist/plus/integrations/providers/accounts.d.ts +7 -5
- package/dist/plus/integrations/providers/accounts.js +21 -31
- package/dist/plus/integrations/providers/accounts.js.map +1 -1
- package/dist/plus/integrations/providers/apiClients.d.ts +13 -10
- package/dist/plus/integrations/providers/apiClients.js +51 -36
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +31 -29
- package/dist/plus/integrations/providers/apiConfig.js +18 -16
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts +69 -54
- package/dist/plus/integrations/providers/azure/azure.js +453 -515
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +258 -229
- package/dist/plus/integrations/providers/azure/models.js +241 -203
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -130
- package/dist/plus/integrations/providers/azureDevOps.js +775 -921
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +50 -48
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +417 -585
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts +179 -179
- package/dist/plus/integrations/providers/bitbucket/models.js +96 -144
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +111 -109
- package/dist/plus/integrations/providers/bitbucket-server/models.js +102 -121
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +79 -79
- package/dist/plus/integrations/providers/bitbucket-server.js +205 -241
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +80 -79
- package/dist/plus/integrations/providers/bitbucket.js +390 -477
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts +5 -3
- package/dist/plus/integrations/providers/github/github.js +38 -45
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts +8 -5
- package/dist/plus/integrations/providers/github/github.utils.js +7 -4
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts +2 -3
- package/dist/plus/integrations/providers/github/models.js +2 -2
- package/dist/plus/integrations/providers/github.d.ts +174 -172
- package/dist/plus/integrations/providers/github.js +431 -523
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +67 -66
- package/dist/plus/integrations/providers/gitlab/gitlab.js +546 -757
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +45 -46
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +109 -107
- package/dist/plus/integrations/providers/gitlab/models.js +74 -89
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +115 -114
- package/dist/plus/integrations/providers/gitlab.js +440 -528
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +3 -1
- package/dist/plus/integrations/providers/issueSorts.js +66 -62
- package/dist/plus/integrations/providers/issueSorts.js.map +1 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +90 -0
- package/dist/plus/integrations/providers/jira-server.js +322 -0
- package/dist/plus/integrations/providers/jira-server.js.map +1 -0
- package/dist/plus/integrations/providers/jira.d.ts +41 -39
- package/dist/plus/integrations/providers/jira.js +378 -440
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +85 -89
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +63 -62
- package/dist/plus/integrations/providers/linear.js +315 -358
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +514 -503
- package/dist/plus/integrations/providers/models.js +818 -856
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts +35 -2
- package/dist/plus/integrations/providers/providerErrors.js +120 -81
- package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +299 -271
- package/dist/plus/integrations/providers/providersApi.js +1048 -1001
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts +21 -21
- package/dist/plus/integrations/providers/pullRequestReviews.js +64 -90
- package/dist/plus/integrations/providers/pullRequestReviews.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +35 -34
- package/dist/plus/integrations/providers/trello.js +136 -143
- package/dist/plus/integrations/providers/trello.js.map +1 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +4 -2
- package/dist/plus/integrations/providers/utils/providerPaging.js +131 -156
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -1
- package/dist/plus/integrations/providers/utils.d.ts +51 -50
- package/dist/plus/integrations/providers/utils.js +185 -296
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/broaden.d.ts +10 -8
- package/dist/plus/integrations/reads/broaden.js +320 -439
- package/dist/plus/integrations/reads/broaden.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +47 -45
- package/dist/plus/integrations/reads/context.js +0 -2
- package/dist/plus/integrations/reads/counts.d.ts +74 -72
- package/dist/plus/integrations/reads/counts.js +233 -314
- package/dist/plus/integrations/reads/counts.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +26 -24
- package/dist/plus/integrations/reads/cursors.js +80 -115
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +24 -23
- package/dist/plus/integrations/reads/drains.js +225 -298
- package/dist/plus/integrations/reads/drains.js.map +1 -1
- package/dist/plus/integrations/reads/filters.d.ts +84 -80
- package/dist/plus/integrations/reads/filters.js +326 -414
- package/dist/plus/integrations/reads/filters.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +14 -12
- package/dist/plus/integrations/reads/hierarchy.js +248 -332
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +11 -9
- package/dist/plus/integrations/reads/hierarchy.utils.js +109 -108
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts +28 -26
- package/dist/plus/integrations/reads/issueBatch.js +83 -85
- package/dist/plus/integrations/reads/issueBatch.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +42 -33
- package/dist/plus/integrations/reads/issueTracker.js +265 -386
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.d.ts +50 -47
- package/dist/plus/integrations/reads/issues.js +202 -331
- package/dist/plus/integrations/reads/issues.js.map +1 -1
- package/dist/plus/integrations/reads/ordering.d.ts +32 -30
- package/dist/plus/integrations/reads/ordering.js +47 -43
- package/dist/plus/integrations/reads/ordering.js.map +1 -1
- package/dist/plus/integrations/reads/paging.d.ts +59 -57
- package/dist/plus/integrations/reads/paging.js +244 -261
- package/dist/plus/integrations/reads/paging.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts +37 -35
- package/dist/plus/integrations/reads/pullRequests.js +95 -148
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts +15 -13
- package/dist/plus/integrations/reads/resolveRepository.js +147 -229
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts +29 -27
- package/dist/plus/integrations/reads/searchIssues.js +104 -153
- package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts +20 -18
- package/dist/plus/integrations/reads/searchPullRequests.js +91 -113
- package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/sweeps.d.ts +6 -4
- package/dist/plus/integrations/reads/sweeps.js +143 -178
- package/dist/plus/integrations/reads/sweeps.js.map +1 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts +24 -16
- package/dist/plus/integrations/reads/trackerIssue.js +52 -49
- package/dist/plus/integrations/reads/trackerIssue.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.d.ts +10 -7
- package/dist/plus/integrations/reads/warnings.js +264 -291
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +201 -199
- package/dist/plus/integrations/results.js +105 -119
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/telemetry.d.ts +7 -5
- package/dist/plus/integrations/telemetry.js +9 -9
- package/dist/plus/integrations/telemetry.js.map +1 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts +21 -0
- package/dist/plus/integrations/utils/domain.utils.js +55 -22
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +30 -6
- package/dist/plus/integrations/utils/integration.utils.js +154 -161
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts +9 -7
- package/dist/utils/array.js +110 -126
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/base64.js +2 -2
- package/dist/utils/brand.d.ts +4 -3
- package/dist/utils/brand.js +0 -2
- package/dist/utils/cancellation.d.ts +24 -24
- package/dist/utils/cancellation.js +152 -167
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts +31 -37
- package/dist/utils/charCode.js +41 -37
- package/dist/utils/charCode.js.map +1 -1
- package/dist/utils/coalescedRun.d.ts +10 -8
- package/dist/utils/coalescedRun.js +39 -41
- package/dist/utils/coalescedRun.js.map +1 -1
- package/dist/utils/color.d.ts +137 -135
- package/dist/utils/color.js +535 -660
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/counter.d.ts +5 -3
- package/dist/utils/counter.js +19 -17
- package/dist/utils/counter.js.map +1 -1
- package/dist/utils/crypto.d.ts +2 -2
- package/dist/utils/crypto.js +2 -2
- package/dist/utils/date.d.ts +10 -9
- package/dist/utils/date.js +312 -350
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.d.ts +45 -43
- package/dist/utils/debounce.js +175 -206
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts +3 -1
- package/dist/utils/decorators/debounce.js +16 -19
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts +13 -11
- package/dist/utils/decorators/gate.js +97 -124
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts +25 -24
- package/dist/utils/decorators/log.js +166 -227
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts +10 -8
- package/dist/utils/decorators/memoize.js +49 -57
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts +2 -0
- package/dist/utils/decorators/resolver.js +64 -75
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts +15 -14
- package/dist/utils/decorators/sequentialize.js +61 -80
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts +2 -0
- package/dist/utils/decorators/serializable.js +30 -39
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts +23 -21
- package/dist/utils/dedupedAsyncCache.js +63 -66
- package/dist/utils/dedupedAsyncCache.js.map +1 -1
- package/dist/utils/diff.d.ts +2 -0
- package/dist/utils/diff.js +41 -51
- package/dist/utils/diff.js.map +1 -1
- package/dist/utils/disposable.d.ts +15 -13
- package/dist/utils/disposable.js +71 -80
- package/dist/utils/disposable.js.map +1 -1
- package/dist/utils/dom.d.ts +45 -0
- package/dist/utils/dom.js +106 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/encoding.d.ts +2 -0
- package/dist/utils/encoding.js +7 -5
- package/dist/utils/encoding.js.map +1 -1
- package/dist/utils/env/browser/base64.d.ts +2 -0
- package/dist/utils/env/browser/base64.js +32 -34
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts +2 -0
- package/dist/utils/env/browser/crypto.js +17 -13
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.js +6 -2
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts +2 -0
- package/dist/utils/env/browser/hex.js +271 -29
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.js +17 -13
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts +3 -1
- package/dist/utils/env/browser/logScope.js +39 -43
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.js +211 -184
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts +3 -0
- package/dist/utils/env/browser/platform.js +11 -4
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts +2 -0
- package/dist/utils/env/node/base64.js +13 -11
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts +2 -0
- package/dist/utils/env/node/crypto.js +13 -9
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +66 -65
- package/dist/utils/env/node/exec.js +255 -267
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.js +7 -3
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts +2 -0
- package/dist/utils/env/node/hex.js +10 -6
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts +2 -2
- package/dist/utils/env/node/hrtime.js +2 -2
- package/dist/utils/env/node/logScope.d.ts +3 -1
- package/dist/utils/env/node/logScope.js +52 -42
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts +3 -0
- package/dist/utils/env/node/platform.js +11 -4
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/error.d.ts +8 -6
- package/dist/utils/error.js +16 -14
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/event.d.ts +27 -25
- package/dist/utils/event.js +141 -170
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts +15 -14
- package/dist/utils/formatter.js +96 -129
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/fs.d.ts +2 -2
- package/dist/utils/fs.js +2 -2
- package/dist/utils/function.d.ts +5 -6
- package/dist/utils/function.js +73 -90
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/fuzzy.d.ts +18 -16
- package/dist/utils/fuzzy.js +121 -127
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/gitRefs.d.ts +11 -0
- package/dist/utils/gitRefs.js +21 -0
- package/dist/utils/gitRefs.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +49 -47
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/hex.d.ts +2 -2
- package/dist/utils/hex.js +2 -2
- package/dist/utils/hostingServiceType.d.ts +8 -0
- package/dist/utils/hostingServiceType.js +0 -0
- package/dist/utils/hrtime.d.ts +4 -2
- package/dist/utils/hrtime.js +8 -5
- package/dist/utils/hrtime.js.map +1 -1
- package/dist/utils/iterable.d.ts +3 -1
- package/dist/utils/iterable.js +591 -616
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/keys/chord.d.ts +27 -25
- package/dist/utils/keys/chord.js +108 -122
- package/dist/utils/keys/chord.js.map +1 -1
- package/dist/utils/keys/keybinding.d.ts +98 -22
- package/dist/utils/keys/keybinding.js +151 -53
- package/dist/utils/keys/keybinding.js.map +1 -1
- package/dist/utils/keys/keymapDispatcher.d.ts +66 -0
- package/dist/utils/keys/keymapDispatcher.js +187 -0
- package/dist/utils/keys/keymapDispatcher.js.map +1 -0
- package/dist/utils/lazy.d.ts +14 -12
- package/dist/utils/lazy.js +35 -36
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/loggable.d.ts +3 -1
- package/dist/utils/loggable.js +6 -2
- package/dist/utils/loggable.js.map +1 -1
- package/dist/utils/logger.d.ts +48 -46
- package/dist/utils/logger.js +219 -304
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.d.ts +30 -28
- package/dist/utils/logger.scoped.js +133 -147
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts +34 -32
- package/dist/utils/lruMap.js +97 -101
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/markdown.d.ts +5 -3
- package/dist/utils/markdown.js +52 -88
- package/dist/utils/markdown.js.map +1 -1
- package/dist/utils/mru.d.ts +13 -11
- package/dist/utils/mru.js +57 -62
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.d.ts +9 -34
- package/dist/utils/object.js +132 -191
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +36 -34
- package/dist/utils/paging.js +42 -45
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.d.ts +4 -1
- package/dist/utils/path.js +129 -162
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/pausedOperation.d.ts +42 -0
- package/dist/utils/pausedOperation.js +62 -0
- package/dist/utils/pausedOperation.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/platform.js +2 -2
- package/dist/utils/plural.d.ts +21 -0
- package/dist/utils/plural.js +136 -0
- package/dist/utils/plural.js.map +1 -0
- package/dist/utils/promise.d.ts +19 -18
- package/dist/utils/promise.js +323 -360
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +331 -330
- package/dist/utils/promiseCache.js +602 -717
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/resourceUsage.d.ts +2 -0
- package/dist/utils/resourceUsage.js +0 -2
- package/dist/utils/searchTree.d.ts +51 -49
- package/dist/utils/searchTree.js +306 -396
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts +33 -32
- package/dist/utils/stopwatch.js +67 -81
- package/dist/utils/stopwatch.js.map +1 -1
- package/dist/utils/string.d.ts +17 -24
- package/dist/utils/string.js +787 -803
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts +15 -14
- package/dist/utils/subscriptionManager.js +36 -33
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts +64 -62
- package/dist/utils/trie.js +438 -580
- package/dist/utils/trie.js.map +1 -1
- package/dist/utils/types.d.ts +8 -16
- package/dist/utils/types.js +0 -2
- package/dist/utils/uri.d.ts +27 -25
- package/dist/utils/uri.js +42 -42
- package/dist/utils/uri.js.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.js +17 -23
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/version.d.ts +6 -5
- package/dist/utils/version.js +77 -104
- package/dist/utils/version.js.map +1 -1
- package/docs/integrations.md +101 -24
- package/docs/kepler-read-api-parity.md +15 -12
- package/package.json +18 -8
- package/dist/git/cache.d.ts.map +0 -1
- package/dist/git/context.d.ts.map +0 -1
- package/dist/git/errors.d.ts.map +0 -1
- package/dist/git/features.d.ts.map +0 -1
- package/dist/git/gitHealth.d.ts.map +0 -1
- package/dist/git/models/author.d.ts.map +0 -1
- package/dist/git/models/author.js.map +0 -1
- package/dist/git/models/autolink.d.ts.map +0 -1
- package/dist/git/models/autolink.js.map +0 -1
- package/dist/git/models/blame.d.ts.map +0 -1
- package/dist/git/models/blame.js.map +0 -1
- package/dist/git/models/branch.d.ts.map +0 -1
- package/dist/git/models/commit.d.ts.map +0 -1
- package/dist/git/models/contributor.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.js.map +0 -1
- package/dist/git/models/diff.d.ts.map +0 -1
- package/dist/git/models/diff.js.map +0 -1
- package/dist/git/models/file.d.ts.map +0 -1
- package/dist/git/models/file.js.map +0 -1
- package/dist/git/models/fileChange.d.ts.map +0 -1
- package/dist/git/models/fileStatus.d.ts.map +0 -1
- package/dist/git/models/graph.d.ts.map +0 -1
- package/dist/git/models/graphSearch.d.ts.map +0 -1
- package/dist/git/models/graphSearch.js.map +0 -1
- package/dist/git/models/graphSession.d.ts.map +0 -1
- package/dist/git/models/issue.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.js.map +0 -1
- package/dist/git/models/lineRange.d.ts.map +0 -1
- package/dist/git/models/lineRange.js.map +0 -1
- package/dist/git/models/log.d.ts.map +0 -1
- package/dist/git/models/log.js.map +0 -1
- package/dist/git/models/mergeConflicts.d.ts.map +0 -1
- package/dist/git/models/mergeConflicts.js.map +0 -1
- package/dist/git/models/patch.d.ts.map +0 -1
- package/dist/git/models/patch.js.map +0 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +0 -1
- package/dist/git/models/pausedOperationStatus.js.map +0 -1
- package/dist/git/models/pullRequest.d.ts.map +0 -1
- package/dist/git/models/rebase.d.ts.map +0 -1
- package/dist/git/models/rebase.js.map +0 -1
- package/dist/git/models/reference.d.ts.map +0 -1
- package/dist/git/models/reference.js.map +0 -1
- package/dist/git/models/reflog.d.ts.map +0 -1
- package/dist/git/models/remote.d.ts.map +0 -1
- package/dist/git/models/remoteProvider.d.ts.map +0 -1
- package/dist/git/models/remoteResource.d.ts.map +0 -1
- package/dist/git/models/repository.d.ts.map +0 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +0 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.js.map +0 -1
- package/dist/git/models/resourceDescriptor.d.ts.map +0 -1
- package/dist/git/models/resourceDescriptor.js.map +0 -1
- package/dist/git/models/revision.d.ts.map +0 -1
- package/dist/git/models/search.d.ts.map +0 -1
- package/dist/git/models/shortlog.d.ts.map +0 -1
- package/dist/git/models/shortlog.js.map +0 -1
- package/dist/git/models/signature.d.ts.map +0 -1
- package/dist/git/models/signature.js.map +0 -1
- package/dist/git/models/staging.d.ts.map +0 -1
- package/dist/git/models/staging.js.map +0 -1
- package/dist/git/models/stash.d.ts.map +0 -1
- package/dist/git/models/stash.js.map +0 -1
- package/dist/git/models/status.d.ts.map +0 -1
- package/dist/git/models/statusFile.d.ts.map +0 -1
- package/dist/git/models/tag.d.ts.map +0 -1
- package/dist/git/models/tree.d.ts.map +0 -1
- package/dist/git/models/tree.js.map +0 -1
- package/dist/git/models/user.d.ts.map +0 -1
- package/dist/git/models/user.js.map +0 -1
- package/dist/git/models/worktree.d.ts.map +0 -1
- package/dist/git/parsers/diffParser.d.ts.map +0 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +0 -1
- package/dist/git/providers/blame.d.ts.map +0 -1
- package/dist/git/providers/blame.js.map +0 -1
- package/dist/git/providers/branches.d.ts.map +0 -1
- package/dist/git/providers/branches.js.map +0 -1
- package/dist/git/providers/commits.d.ts.map +0 -1
- package/dist/git/providers/commits.js.map +0 -1
- package/dist/git/providers/config.d.ts.map +0 -1
- package/dist/git/providers/config.js.map +0 -1
- package/dist/git/providers/contributors.d.ts.map +0 -1
- package/dist/git/providers/contributors.js.map +0 -1
- package/dist/git/providers/diff.d.ts.map +0 -1
- package/dist/git/providers/diff.js.map +0 -1
- package/dist/git/providers/graph.d.ts.map +0 -1
- package/dist/git/providers/graph.js.map +0 -1
- package/dist/git/providers/maintenance.d.ts.map +0 -1
- package/dist/git/providers/maintenance.js.map +0 -1
- package/dist/git/providers/operations.d.ts.map +0 -1
- package/dist/git/providers/operations.js.map +0 -1
- package/dist/git/providers/patch.d.ts.map +0 -1
- package/dist/git/providers/patch.js.map +0 -1
- package/dist/git/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git/providers/pausedOperations.js.map +0 -1
- package/dist/git/providers/provider.d.ts.map +0 -1
- package/dist/git/providers/provider.js.map +0 -1
- package/dist/git/providers/refs.d.ts.map +0 -1
- package/dist/git/providers/refs.js.map +0 -1
- package/dist/git/providers/remotes.d.ts.map +0 -1
- package/dist/git/providers/remotes.js.map +0 -1
- package/dist/git/providers/revision.d.ts.map +0 -1
- package/dist/git/providers/revision.js.map +0 -1
- package/dist/git/providers/shared/remotes.d.ts.map +0 -1
- package/dist/git/providers/staging.d.ts.map +0 -1
- package/dist/git/providers/staging.js.map +0 -1
- package/dist/git/providers/stash.d.ts.map +0 -1
- package/dist/git/providers/stash.js.map +0 -1
- package/dist/git/providers/status.d.ts.map +0 -1
- package/dist/git/providers/status.js.map +0 -1
- package/dist/git/providers/tags.d.ts.map +0 -1
- package/dist/git/providers/tags.js.map +0 -1
- package/dist/git/providers/types.d.ts.map +0 -1
- package/dist/git/providers/types.js.map +0 -1
- package/dist/git/providers/worktrees.d.ts.map +0 -1
- package/dist/git/providers/worktrees.js.map +0 -1
- package/dist/git/remotes/azure-devops.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket.d.ts.map +0 -1
- package/dist/git/remotes/custom.d.ts.map +0 -1
- package/dist/git/remotes/gerrit.d.ts.map +0 -1
- package/dist/git/remotes/gitea.d.ts.map +0 -1
- package/dist/git/remotes/github.d.ts.map +0 -1
- package/dist/git/remotes/gitlab.d.ts.map +0 -1
- package/dist/git/remotes/google-source.d.ts.map +0 -1
- package/dist/git/remotes/matcher.d.ts.map +0 -1
- package/dist/git/repositoryService.d.ts.map +0 -1
- package/dist/git/run.types.d.ts.map +0 -1
- package/dist/git/run.types.js.map +0 -1
- package/dist/git/service.d.ts.map +0 -1
- package/dist/git/utils/autolink.utils.d.ts.map +0 -1
- package/dist/git/utils/blame.utils.d.ts.map +0 -1
- package/dist/git/utils/branch.utils.d.ts.map +0 -1
- package/dist/git/utils/commit.utils.d.ts.map +0 -1
- package/dist/git/utils/config.utils.d.ts.map +0 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +0 -1
- package/dist/git/utils/contributor.utils.d.ts.map +0 -1
- package/dist/git/utils/fetch.utils.d.ts.map +0 -1
- package/dist/git/utils/fileStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/graph.utils.d.ts.map +0 -1
- package/dist/git/utils/issue.utils.d.ts.map +0 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +0 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/reachability.utils.d.ts.map +0 -1
- package/dist/git/utils/rebase.utils.d.ts.map +0 -1
- package/dist/git/utils/reference.utils.d.ts.map +0 -1
- package/dist/git/utils/remote.utils.d.ts.map +0 -1
- package/dist/git/utils/repository.utils.d.ts.map +0 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +0 -1
- package/dist/git/utils/revision.utils.d.ts.map +0 -1
- package/dist/git/utils/search.utils.d.ts.map +0 -1
- package/dist/git/utils/sorting.d.ts.map +0 -1
- package/dist/git/utils/sshKey.utils.d.ts.map +0 -1
- package/dist/git/utils/status.utils.d.ts.map +0 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +0 -1
- package/dist/git/utils/tag.utils.d.ts.map +0 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +0 -1
- package/dist/git/utils/uriAuthority.d.ts.map +0 -1
- package/dist/git/utils/user.utils.d.ts.map +0 -1
- package/dist/git/utils/worktree.utils.d.ts.map +0 -1
- package/dist/git/watching/changeEvent.d.ts.map +0 -1
- package/dist/git/watching/classifyChange.d.ts.map +0 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +0 -1
- package/dist/git/watching/initWatcher.d.ts.map +0 -1
- package/dist/git/watching/provider.d.ts.map +0 -1
- package/dist/git/watching/provider.js.map +0 -1
- package/dist/git/watching/watchGroup.d.ts.map +0 -1
- package/dist/git/watching/watchService.d.ts.map +0 -1
- package/dist/git/watching/watchSession.d.ts.map +0 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +0 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.js.map +0 -1
- package/dist/git-cli/exec/exec.js.map +0 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.types.js.map +0 -1
- package/dist/git-cli/exec/features.d.ts.map +0 -1
- package/dist/git-cli/exec/features.js.map +0 -1
- package/dist/git-cli/exec/git.d.ts.map +0 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +0 -1
- package/dist/git-cli/exec/locator.d.ts.map +0 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/statusParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +0 -1
- package/dist/git-cli/providers/blame.d.ts.map +0 -1
- package/dist/git-cli/providers/branches.d.ts.map +0 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +0 -1
- package/dist/git-cli/providers/commits.d.ts.map +0 -1
- package/dist/git-cli/providers/config.d.ts.map +0 -1
- package/dist/git-cli/providers/contributors.d.ts.map +0 -1
- package/dist/git-cli/providers/diff.d.ts.map +0 -1
- package/dist/git-cli/providers/graph.d.ts.map +0 -1
- package/dist/git-cli/providers/maintenance.d.ts.map +0 -1
- package/dist/git-cli/providers/operations.d.ts.map +0 -1
- package/dist/git-cli/providers/patch.d.ts.map +0 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git-cli/providers/refs.d.ts.map +0 -1
- package/dist/git-cli/providers/remotes.d.ts.map +0 -1
- package/dist/git-cli/providers/revision.d.ts.map +0 -1
- package/dist/git-cli/providers/staging.d.ts.map +0 -1
- package/dist/git-cli/providers/stash.d.ts.map +0 -1
- package/dist/git-cli/providers/status.d.ts.map +0 -1
- package/dist/git-cli/providers/tags.d.ts.map +0 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +0 -1
- package/dist/git-cli/service.d.ts.map +0 -1
- package/dist/ipc/discovery.d.ts.map +0 -1
- package/dist/ipc/ipcServer.d.ts.map +0 -1
- package/dist/plus/agents/agentCapabilities.d.ts.map +0 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +0 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts.map +0 -1
- package/dist/plus/agents/sanitizePrompt.d.ts.map +0 -1
- package/dist/plus/agents/stateMachine.d.ts.map +0 -1
- package/dist/plus/agents/types.d.ts.map +0 -1
- package/dist/plus/ai/constants.d.ts.map +0 -1
- package/dist/plus/ai/errors.d.ts.map +0 -1
- package/dist/plus/ai/models/conversation.d.ts.map +0 -1
- package/dist/plus/ai/models/model.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.js.map +0 -1
- package/dist/plus/ai/models/provider.d.ts.map +0 -1
- package/dist/plus/ai/models/provider.js.map +0 -1
- package/dist/plus/ai/models/results.d.ts.map +0 -1
- package/dist/plus/ai/models/results.js.map +0 -1
- package/dist/plus/ai/prompts.d.ts.map +0 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.js.map +0 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +0 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts.map +0 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/results.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/config.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.js.map +0 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.js.map +0 -1
- package/dist/plus/git-github/context.d.ts.map +0 -1
- package/dist/plus/git-github/models.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +0 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/models.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +0 -1
- package/dist/plus/integrations/collectionMetadata.d.ts.map +0 -1
- package/dist/plus/integrations/constants.d.ts.map +0 -1
- package/dist/plus/integrations/context.d.ts.map +0 -1
- package/dist/plus/integrations/context.js.map +0 -1
- package/dist/plus/integrations/errors.d.ts.map +0 -1
- package/dist/plus/integrations/index.d.ts.map +0 -1
- package/dist/plus/integrations/integrationService.d.ts.map +0 -1
- package/dist/plus/integrations/lite.d.ts.map +0 -1
- package/dist/plus/integrations/manager.d.ts.map +0 -1
- package/dist/plus/integrations/manager.js.map +0 -1
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/integration.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueCache.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.js.map +0 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.js.map +0 -1
- package/dist/plus/integrations/providerFilters.d.ts.map +0 -1
- package/dist/plus/integrations/providers/accounts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiClients.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.js.map +0 -1
- package/dist/plus/integrations/providers/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jira.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts.map +0 -1
- package/dist/plus/integrations/providers/linear.d.ts.map +0 -1
- package/dist/plus/integrations/providers/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providersApi.d.ts.map +0 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts.map +0 -1
- package/dist/plus/integrations/providers/trello.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/broaden.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.js.map +0 -1
- package/dist/plus/integrations/reads/counts.d.ts.map +0 -1
- package/dist/plus/integrations/reads/cursors.d.ts.map +0 -1
- package/dist/plus/integrations/reads/drains.d.ts.map +0 -1
- package/dist/plus/integrations/reads/filters.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/ordering.d.ts.map +0 -1
- package/dist/plus/integrations/reads/paging.d.ts.map +0 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/sweeps.d.ts.map +0 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts.map +0 -1
- package/dist/plus/integrations/reads/warnings.d.ts.map +0 -1
- package/dist/plus/integrations/results.d.ts.map +0 -1
- package/dist/plus/integrations/telemetry.d.ts.map +0 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +0 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +0 -1
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/base64.d.ts.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/brand.d.ts.map +0 -1
- package/dist/utils/brand.js.map +0 -1
- package/dist/utils/cancellation.d.ts.map +0 -1
- package/dist/utils/charCode.d.ts.map +0 -1
- package/dist/utils/coalescedRun.d.ts.map +0 -1
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/counter.d.ts.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/gate.d.ts.map +0 -1
- package/dist/utils/decorators/log.d.ts.map +0 -1
- package/dist/utils/decorators/memoize.d.ts.map +0 -1
- package/dist/utils/decorators/resolver.d.ts.map +0 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +0 -1
- package/dist/utils/decorators/serializable.d.ts.map +0 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +0 -1
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/disposable.d.ts.map +0 -1
- package/dist/utils/encoding.d.ts.map +0 -1
- package/dist/utils/env/browser/base64.d.ts.map +0 -1
- package/dist/utils/env/browser/crypto.d.ts.map +0 -1
- package/dist/utils/env/browser/fs.d.ts.map +0 -1
- package/dist/utils/env/browser/hex.d.ts.map +0 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +0 -1
- package/dist/utils/env/browser/logScope.d.ts.map +0 -1
- package/dist/utils/env/browser/md5.d.ts.map +0 -1
- package/dist/utils/env/browser/platform.d.ts.map +0 -1
- package/dist/utils/env/node/base64.d.ts.map +0 -1
- package/dist/utils/env/node/crypto.d.ts.map +0 -1
- package/dist/utils/env/node/exec.d.ts.map +0 -1
- package/dist/utils/env/node/fs.d.ts.map +0 -1
- package/dist/utils/env/node/hex.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.js.map +0 -1
- package/dist/utils/env/node/logScope.d.ts.map +0 -1
- package/dist/utils/env/node/platform.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/formatter.d.ts.map +0 -1
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/function.d.ts.map +0 -1
- package/dist/utils/fuzzy.d.ts.map +0 -1
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/hrtime.d.ts.map +0 -1
- package/dist/utils/iterable.d.ts.map +0 -1
- package/dist/utils/keys/chord.d.ts.map +0 -1
- package/dist/utils/keys/keybinding.d.ts.map +0 -1
- package/dist/utils/lazy.d.ts.map +0 -1
- package/dist/utils/loggable.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.scoped.d.ts.map +0 -1
- package/dist/utils/lruMap.d.ts.map +0 -1
- package/dist/utils/markdown.d.ts.map +0 -1
- package/dist/utils/mru.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/paging.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/promise.d.ts.map +0 -1
- package/dist/utils/promiseCache.d.ts.map +0 -1
- package/dist/utils/resourceUsage.d.ts.map +0 -1
- package/dist/utils/resourceUsage.js.map +0 -1
- package/dist/utils/searchTree.d.ts.map +0 -1
- package/dist/utils/stopwatch.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/subscriptionManager.d.ts.map +0 -1
- package/dist/utils/trie.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/uri.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/src/git/cache.ts +0 -1859
- package/src/git/context.ts +0 -301
- package/src/git/errors.ts +0 -1168
- package/src/git/features.ts +0 -98
- package/src/git/gitHealth.ts +0 -522
- package/src/git/models/author.ts +0 -19
- package/src/git/models/autolink.ts +0 -59
- package/src/git/models/blame.ts +0 -46
- package/src/git/models/branch.ts +0 -237
- package/src/git/models/commit.ts +0 -673
- package/src/git/models/contributor.ts +0 -84
- package/src/git/models/defaultBranch.ts +0 -6
- package/src/git/models/diff.ts +0 -74
- package/src/git/models/file.ts +0 -29
- package/src/git/models/fileChange.ts +0 -82
- package/src/git/models/fileStatus.ts +0 -36
- package/src/git/models/graph.ts +0 -444
- package/src/git/models/graphSearch.ts +0 -53
- package/src/git/models/graphSession.ts +0 -102
- package/src/git/models/issue.ts +0 -258
- package/src/git/models/issueOrPullRequest.ts +0 -20
- package/src/git/models/lineRange.ts +0 -7
- package/src/git/models/log.ts +0 -21
- package/src/git/models/mergeConflicts.ts +0 -19
- package/src/git/models/patch.ts +0 -25
- package/src/git/models/pausedOperationStatus.ts +0 -63
- package/src/git/models/pullRequest.ts +0 -353
- package/src/git/models/rebase.ts +0 -60
- package/src/git/models/reference.ts +0 -80
- package/src/git/models/reflog.ts +0 -88
- package/src/git/models/remote.ts +0 -100
- package/src/git/models/remoteProvider.ts +0 -291
- package/src/git/models/remoteResource.ts +0 -87
- package/src/git/models/repository.ts +0 -510
- package/src/git/models/repositoryChangeEvent.ts +0 -30
- package/src/git/models/repositoryIdentities.ts +0 -99
- package/src/git/models/repositoryMetadata.ts +0 -12
- package/src/git/models/resourceDescriptor.ts +0 -28
- package/src/git/models/revision.ts +0 -12
- package/src/git/models/search.ts +0 -138
- package/src/git/models/shortlog.ts +0 -6
- package/src/git/models/signature.ts +0 -45
- package/src/git/models/staging.ts +0 -27
- package/src/git/models/stash.ts +0 -6
- package/src/git/models/status.ts +0 -246
- package/src/git/models/statusFile.ts +0 -131
- package/src/git/models/tag.ts +0 -76
- package/src/git/models/tree.ts +0 -10
- package/src/git/models/user.ts +0 -7
- package/src/git/models/worktree.ts +0 -160
- package/src/git/parsers/diffParser.ts +0 -648
- package/src/git/parsers/rebaseTodoParser.ts +0 -169
- package/src/git/providers/blame.ts +0 -40
- package/src/git/providers/branches.ts +0 -143
- package/src/git/providers/commits.ts +0 -174
- package/src/git/providers/config.ts +0 -167
- package/src/git/providers/contributors.ts +0 -34
- package/src/git/providers/diff.ts +0 -133
- package/src/git/providers/graph.ts +0 -95
- package/src/git/providers/maintenance.ts +0 -224
- package/src/git/providers/operations.ts +0 -164
- package/src/git/providers/patch.ts +0 -31
- package/src/git/providers/pausedOperations.ts +0 -23
- package/src/git/providers/provider.ts +0 -64
- package/src/git/providers/refs.ts +0 -68
- package/src/git/providers/remotes.ts +0 -33
- package/src/git/providers/revision.ts +0 -32
- package/src/git/providers/shared/remotes.ts +0 -95
- package/src/git/providers/staging.ts +0 -36
- package/src/git/providers/stash.ts +0 -51
- package/src/git/providers/status.ts +0 -48
- package/src/git/providers/tags.ts +0 -29
- package/src/git/providers/types.ts +0 -33
- package/src/git/providers/worktrees.ts +0 -37
- package/src/git/remotes/azure-devops.ts +0 -307
- package/src/git/remotes/bitbucket-server.ts +0 -189
- package/src/git/remotes/bitbucket.ts +0 -142
- package/src/git/remotes/custom.ts +0 -162
- package/src/git/remotes/gerrit.ts +0 -186
- package/src/git/remotes/gitea.ts +0 -184
- package/src/git/remotes/github.ts +0 -236
- package/src/git/remotes/gitlab.ts +0 -270
- package/src/git/remotes/google-source.ts +0 -51
- package/src/git/remotes/matcher.ts +0 -215
- package/src/git/repositoryService.ts +0 -180
- package/src/git/run.types.ts +0 -156
- package/src/git/service.ts +0 -369
- package/src/git/utils/autolink.utils.ts +0 -202
- package/src/git/utils/blame.utils.ts +0 -298
- package/src/git/utils/branch.utils.ts +0 -165
- package/src/git/utils/commit.utils.ts +0 -89
- package/src/git/utils/config.utils.ts +0 -8
- package/src/git/utils/conflictResolution.utils.ts +0 -157
- package/src/git/utils/contributor.utils.ts +0 -105
- package/src/git/utils/fetch.utils.ts +0 -48
- package/src/git/utils/fileStatus.utils.ts +0 -62
- package/src/git/utils/graph.utils.ts +0 -46
- package/src/git/utils/issue.utils.ts +0 -177
- package/src/git/utils/issueOrPullRequest.utils.ts +0 -23
- package/src/git/utils/mergeConflicts.utils.ts +0 -21
- package/src/git/utils/pausedOperationStatus.utils.ts +0 -184
- package/src/git/utils/pullRequest.utils.ts +0 -244
- package/src/git/utils/reachability.utils.ts +0 -180
- package/src/git/utils/rebase.utils.ts +0 -128
- package/src/git/utils/reference.utils.ts +0 -267
- package/src/git/utils/remote.utils.ts +0 -146
- package/src/git/utils/repository.utils.ts +0 -18
- package/src/git/utils/resourceDescriptor.utils.ts +0 -26
- package/src/git/utils/revision.utils.ts +0 -149
- package/src/git/utils/search.utils.ts +0 -624
- package/src/git/utils/sorting.ts +0 -329
- package/src/git/utils/sshKey.utils.ts +0 -30
- package/src/git/utils/status.utils.ts +0 -115
- package/src/git/utils/statusFile.utils.ts +0 -182
- package/src/git/utils/tag.utils.ts +0 -17
- package/src/git/utils/tooltip.utils.ts +0 -37
- package/src/git/utils/uriAuthority.ts +0 -34
- package/src/git/utils/user.utils.ts +0 -20
- package/src/git/utils/worktree.utils.ts +0 -21
- package/src/git/watching/changeEvent.ts +0 -95
- package/src/git/watching/classifyChange.ts +0 -104
- package/src/git/watching/gitIgnoreFilter.ts +0 -134
- package/src/git/watching/initWatcher.ts +0 -81
- package/src/git/watching/provider.ts +0 -24
- package/src/git/watching/watchGroup.ts +0 -185
- package/src/git/watching/watchService.ts +0 -430
- package/src/git/watching/watchSession.ts +0 -439
- package/src/git/watching/watcherPatterns.ts +0 -51
- package/src/git-cli/cliGitProvider.ts +0 -461
- package/src/git-cli/exec/exec.errors.ts +0 -1
- package/src/git-cli/exec/exec.ts +0 -11
- package/src/git-cli/exec/exec.types.ts +0 -8
- package/src/git-cli/exec/features.ts +0 -2
- package/src/git-cli/exec/git.ts +0 -1371
- package/src/git-cli/exec/gitQueue.ts +0 -326
- package/src/git-cli/exec/locator.ts +0 -157
- package/src/git-cli/parsers/blameParser.ts +0 -374
- package/src/git-cli/parsers/indexParser.ts +0 -192
- package/src/git-cli/parsers/logParser.ts +0 -1365
- package/src/git-cli/parsers/mergeTreeParser.ts +0 -22
- package/src/git-cli/parsers/refParser.ts +0 -110
- package/src/git-cli/parsers/reflogParser.ts +0 -153
- package/src/git-cli/parsers/remoteParser.ts +0 -95
- package/src/git-cli/parsers/shortlogParser.ts +0 -59
- package/src/git-cli/parsers/signatureParser.ts +0 -162
- package/src/git-cli/parsers/sshSignatureParser.ts +0 -85
- package/src/git-cli/parsers/statusParser.ts +0 -209
- package/src/git-cli/parsers/treeParser.ts +0 -61
- package/src/git-cli/parsers/worktreeParser.ts +0 -111
- package/src/git-cli/providers/blame.ts +0 -598
- package/src/git-cli/providers/branches.ts +0 -1931
- package/src/git-cli/providers/commitFilesetUtils.ts +0 -45
- package/src/git-cli/providers/commits.ts +0 -1856
- package/src/git-cli/providers/config.ts +0 -1025
- package/src/git-cli/providers/contributors.ts +0 -360
- package/src/git-cli/providers/diff.ts +0 -1172
- package/src/git-cli/providers/graph.ts +0 -2237
- package/src/git-cli/providers/maintenance.ts +0 -2599
- package/src/git-cli/providers/operations.ts +0 -1016
- package/src/git-cli/providers/patch.ts +0 -305
- package/src/git-cli/providers/pausedOperations.ts +0 -670
- package/src/git-cli/providers/refs.ts +0 -486
- package/src/git-cli/providers/remotes.ts +0 -115
- package/src/git-cli/providers/revision.ts +0 -383
- package/src/git-cli/providers/staging.ts +0 -210
- package/src/git-cli/providers/stash.ts +0 -577
- package/src/git-cli/providers/status.ts +0 -568
- package/src/git-cli/providers/tags.ts +0 -224
- package/src/git-cli/providers/worktrees.ts +0 -285
- package/src/git-cli/service.ts +0 -82
- package/src/ipc/discovery.ts +0 -186
- package/src/ipc/ipcServer.ts +0 -171
- package/src/plus/agents/agentCapabilities.ts +0 -286
- package/src/plus/agents/providers/claudeCodeTranscript.ts +0 -867
- package/src/plus/agents/providers/gkAgentProvider.ts +0 -4036
- package/src/plus/agents/sanitizePrompt.ts +0 -109
- package/src/plus/agents/stateMachine.ts +0 -197
- package/src/plus/agents/types.ts +0 -500
- package/src/plus/ai/constants.ts +0 -121
- package/src/plus/ai/errors.ts +0 -152
- package/src/plus/ai/models/conversation.ts +0 -35
- package/src/plus/ai/models/model.ts +0 -528
- package/src/plus/ai/models/promptTemplates.ts +0 -171
- package/src/plus/ai/models/provider.ts +0 -125
- package/src/plus/ai/models/results.ts +0 -31
- package/src/plus/ai/prompts.ts +0 -849
- package/src/plus/ai/providers/anthropicProvider.ts +0 -458
- package/src/plus/ai/providers/azureProvider.ts +0 -74
- package/src/plus/ai/providers/context.ts +0 -29
- package/src/plus/ai/providers/deepSeekProvider.ts +0 -46
- package/src/plus/ai/providers/geminiProvider.ts +0 -245
- package/src/plus/ai/providers/gitkrakenProvider.ts +0 -347
- package/src/plus/ai/providers/huggingFaceProvider.ts +0 -64
- package/src/plus/ai/providers/mistralProvider.ts +0 -243
- package/src/plus/ai/providers/ollamaProvider.ts +0 -292
- package/src/plus/ai/providers/openAICompatibleProvider.ts +0 -64
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +0 -654
- package/src/plus/ai/providers/openRouterProvider.ts +0 -101
- package/src/plus/ai/providers/openaiProvider.ts +0 -47
- package/src/plus/ai/providers/responseFormatCache.ts +0 -39
- package/src/plus/ai/providers/xaiProvider.ts +0 -54
- package/src/plus/ai/utils/ai.utils.ts +0 -95
- package/src/plus/ai/utils/results.utils.ts +0 -407
- package/src/plus/ai/utils/truncation.utils.ts +0 -296
- package/src/plus/git-github/api/config.ts +0 -91
- package/src/plus/git-github/api/github.ts +0 -5462
- package/src/plus/git-github/api/github.utils.ts +0 -36
- package/src/plus/git-github/api/issueSearchQuery.ts +0 -273
- package/src/plus/git-github/api/pullRequestSearchQuery.ts +0 -154
- package/src/plus/git-github/api/token.ts +0 -15
- package/src/plus/git-github/api/tokenUtils.ts +0 -15
- package/src/plus/git-github/api/types.ts +0 -197
- package/src/plus/git-github/context.ts +0 -107
- package/src/plus/git-github/models.ts +0 -623
- package/src/plus/git-github/providers/github/blame.ts +0 -225
- package/src/plus/git-github/providers/github/branches.ts +0 -401
- package/src/plus/git-github/providers/github/commits.ts +0 -929
- package/src/plus/git-github/providers/github/config.ts +0 -47
- package/src/plus/git-github/providers/github/contributors.ts +0 -313
- package/src/plus/git-github/providers/github/diff.ts +0 -281
- package/src/plus/git-github/providers/github/graph.ts +0 -635
- package/src/plus/git-github/providers/github/refs.ts +0 -172
- package/src/plus/git-github/providers/github/remotes.ts +0 -44
- package/src/plus/git-github/providers/github/revision.ts +0 -140
- package/src/plus/git-github/providers/github/status.ts +0 -69
- package/src/plus/git-github/providers/github/tags.ts +0 -148
- package/src/plus/git-github/providers/githubGitProvider.ts +0 -168
- package/src/plus/git-github/providers/githubProvider.ts +0 -65
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +0 -292
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +0 -656
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +0 -385
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +0 -148
- package/src/plus/integrations/authentication/manualTokenProvider.ts +0 -79
- package/src/plus/integrations/authentication/models.ts +0 -202
- package/src/plus/integrations/authentication/rejectedTokenTracker.ts +0 -56
- package/src/plus/integrations/collectionMetadata.ts +0 -325
- package/src/plus/integrations/constants.ts +0 -190
- package/src/plus/integrations/context.ts +0 -386
- package/src/plus/integrations/errors.ts +0 -188
- package/src/plus/integrations/index.ts +0 -231
- package/src/plus/integrations/integrationService.ts +0 -2003
- package/src/plus/integrations/lite.ts +0 -233
- package/src/plus/integrations/manager.ts +0 -728
- package/src/plus/integrations/models/gitHostIntegration.ts +0 -1862
- package/src/plus/integrations/models/integration.ts +0 -1005
- package/src/plus/integrations/models/issueCache.ts +0 -29
- package/src/plus/integrations/models/issueReads.ts +0 -152
- package/src/plus/integrations/models/issuesIntegration.ts +0 -248
- package/src/plus/integrations/models/pullRequestReads.ts +0 -18
- package/src/plus/integrations/providerFilters.ts +0 -36
- package/src/plus/integrations/providers/accounts.ts +0 -38
- package/src/plus/integrations/providers/apiClients.ts +0 -69
- package/src/plus/integrations/providers/apiConfig.ts +0 -71
- package/src/plus/integrations/providers/azure/azure.ts +0 -822
- package/src/plus/integrations/providers/azure/models.ts +0 -621
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1346
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +0 -904
- package/src/plus/integrations/providers/bitbucket/models.ts +0 -446
- package/src/plus/integrations/providers/bitbucket-server/models.ts +0 -283
- package/src/plus/integrations/providers/bitbucket-server.ts +0 -445
- package/src/plus/integrations/providers/bitbucket.ts +0 -793
- package/src/plus/integrations/providers/github/github.ts +0 -64
- package/src/plus/integrations/providers/github/github.utils.ts +0 -23
- package/src/plus/integrations/providers/github/models.ts +0 -29
- package/src/plus/integrations/providers/github.ts +0 -940
- package/src/plus/integrations/providers/gitlab/gitlab.ts +0 -1320
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +0 -80
- package/src/plus/integrations/providers/gitlab/models.ts +0 -271
- package/src/plus/integrations/providers/gitlab.ts +0 -841
- package/src/plus/integrations/providers/issueSorts.ts +0 -89
- package/src/plus/integrations/providers/jira.ts +0 -596
- package/src/plus/integrations/providers/jiraIssueByKey.ts +0 -155
- package/src/plus/integrations/providers/linear.ts +0 -484
- package/src/plus/integrations/providers/models.ts +0 -1816
- package/src/plus/integrations/providers/providerErrors.ts +0 -115
- package/src/plus/integrations/providers/providersApi.ts +0 -1881
- package/src/plus/integrations/providers/pullRequestReviews.ts +0 -122
- package/src/plus/integrations/providers/trello.ts +0 -208
- package/src/plus/integrations/providers/utils/providerPaging.ts +0 -212
- package/src/plus/integrations/providers/utils.ts +0 -419
- package/src/plus/integrations/reads/broaden.ts +0 -704
- package/src/plus/integrations/reads/context.ts +0 -99
- package/src/plus/integrations/reads/counts.ts +0 -610
- package/src/plus/integrations/reads/cursors.ts +0 -224
- package/src/plus/integrations/reads/drains.ts +0 -420
- package/src/plus/integrations/reads/filters.ts +0 -614
- package/src/plus/integrations/reads/hierarchy.ts +0 -486
- package/src/plus/integrations/reads/hierarchy.utils.ts +0 -155
- package/src/plus/integrations/reads/issueBatch.ts +0 -197
- package/src/plus/integrations/reads/issueTracker.ts +0 -556
- package/src/plus/integrations/reads/issues.ts +0 -600
- package/src/plus/integrations/reads/ordering.ts +0 -124
- package/src/plus/integrations/reads/paging.ts +0 -379
- package/src/plus/integrations/reads/pullRequests.ts +0 -260
- package/src/plus/integrations/reads/resolveRepository.ts +0 -272
- package/src/plus/integrations/reads/searchIssues.ts +0 -274
- package/src/plus/integrations/reads/searchPullRequests.ts +0 -235
- package/src/plus/integrations/reads/sweeps.ts +0 -266
- package/src/plus/integrations/reads/trackerIssue.ts +0 -105
- package/src/plus/integrations/reads/warnings.ts +0 -535
- package/src/plus/integrations/results.ts +0 -443
- package/src/plus/integrations/telemetry.ts +0 -29
- package/src/plus/integrations/utils/domain.utils.ts +0 -26
- package/src/plus/integrations/utils/integration.utils.ts +0 -215
- package/src/utils/array.ts +0 -194
- package/src/utils/base64.ts +0 -1
- package/src/utils/brand.ts +0 -7
- package/src/utils/cancellation.ts +0 -199
- package/src/utils/charCode.ts +0 -38
- package/src/utils/coalescedRun.ts +0 -45
- package/src/utils/color.ts +0 -817
- package/src/utils/counter.ts +0 -21
- package/src/utils/crypto.ts +0 -1
- package/src/utils/date.ts +0 -474
- package/src/utils/debounce.ts +0 -303
- package/src/utils/decorators/debounce.ts +0 -31
- package/src/utils/decorators/gate.ts +0 -167
- package/src/utils/decorators/log.ts +0 -320
- package/src/utils/decorators/memoize.ts +0 -98
- package/src/utils/decorators/resolver.ts +0 -95
- package/src/utils/decorators/sequentialize.ts +0 -118
- package/src/utils/decorators/serializable.ts +0 -43
- package/src/utils/dedupedAsyncCache.ts +0 -74
- package/src/utils/diff.ts +0 -61
- package/src/utils/disposable.ts +0 -156
- package/src/utils/encoding.ts +0 -8
- package/src/utils/env/browser/base64.ts +0 -50
- package/src/utils/env/browser/crypto.ts +0 -21
- package/src/utils/env/browser/fs.ts +0 -3
- package/src/utils/env/browser/hex.ts +0 -41
- package/src/utils/env/browser/hrtime.ts +0 -14
- package/src/utils/env/browser/logScope.ts +0 -57
- package/src/utils/env/browser/md5.ts +0 -217
- package/src/utils/env/browser/platform.ts +0 -10
- package/src/utils/env/node/base64.ts +0 -19
- package/src/utils/env/node/crypto.ts +0 -17
- package/src/utils/env/node/exec.ts +0 -488
- package/src/utils/env/node/fs.ts +0 -5
- package/src/utils/env/node/hex.ts +0 -11
- package/src/utils/env/node/hrtime.ts +0 -1
- package/src/utils/env/node/logScope.ts +0 -63
- package/src/utils/env/node/platform.ts +0 -5
- package/src/utils/error.ts +0 -18
- package/src/utils/event.ts +0 -230
- package/src/utils/formatter.ts +0 -198
- package/src/utils/fs.ts +0 -1
- package/src/utils/function.ts +0 -141
- package/src/utils/fuzzy.ts +0 -185
- package/src/utils/hash.ts +0 -60
- package/src/utils/hex.ts +0 -1
- package/src/utils/hrtime.ts +0 -8
- package/src/utils/iterable.ts +0 -797
- package/src/utils/keys/chord.ts +0 -184
- package/src/utils/keys/keybinding.ts +0 -116
- package/src/utils/lazy.ts +0 -39
- package/src/utils/loggable.ts +0 -7
- package/src/utils/logger.scoped.ts +0 -237
- package/src/utils/logger.ts +0 -403
- package/src/utils/lruMap.ts +0 -112
- package/src/utils/markdown.ts +0 -115
- package/src/utils/mru.ts +0 -68
- package/src/utils/object.ts +0 -278
- package/src/utils/paging.ts +0 -97
- package/src/utils/path.ts +0 -204
- package/src/utils/platform.ts +0 -1
- package/src/utils/promise.ts +0 -657
- package/src/utils/promiseCache.ts +0 -908
- package/src/utils/resourceUsage.ts +0 -5
- package/src/utils/searchTree.ts +0 -444
- package/src/utils/stopwatch.ts +0 -125
- package/src/utils/string.ts +0 -1003
- package/src/utils/subscriptionManager.ts +0 -40
- package/src/utils/trie.ts +0 -740
- package/src/utils/types.ts +0 -31
- package/src/utils/uri.ts +0 -118
- package/src/utils/validation.ts +0 -38
- package/src/utils/version.ts +0 -128
package/dist/git/errors.js
CHANGED
|
@@ -1,718 +1,940 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getNumericFormat } from "../utils/date.js";
|
|
2
|
+
import * as l10n from "@vscode/l10n";
|
|
3
|
+
//#region ../git/src/errors.ts
|
|
4
|
+
function formatEnglish(message, ...args) {
|
|
5
|
+
if (typeof message === "object") return formatEnglish(message.message, ...Array.isArray(message.args) ? message.args : [message.args]);
|
|
6
|
+
const values = args.length === 1 && typeof args[0] === "object" && args[0] != null ? args[0] : args;
|
|
7
|
+
return message.replace(/{([^}]+)}/g, (match, key) => {
|
|
8
|
+
const value = values[key];
|
|
9
|
+
return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? String(value) : match;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/** Renders the source (English) string with placeholders substituted, never a translation */
|
|
13
|
+
const english = { t: formatEnglish };
|
|
2
14
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
* stderr patterns git emits that are EXPECTED rather than exceptional — an empty repo, a path that doesn't
|
|
16
|
+
* exist at a revision, a branch with no upstream. The exec layer matches these to decide a command "warned"
|
|
17
|
+
* rather than failed.
|
|
18
|
+
*
|
|
19
|
+
* Matching one does NOT mean the empty output is a valid answer: `noCommits` on a fresh repo genuinely means
|
|
20
|
+
* "no commits", while `notARepository` means the read never happened. Callers must branch on which key
|
|
21
|
+
* matched — see `GitRunCompletion`. Pure patterns with no environment dependency, so this lives here rather
|
|
22
|
+
* than in the CLI provider, where the shared run contract couldn't reference it.
|
|
23
|
+
*/
|
|
24
|
+
const GitWarnings = {
|
|
25
|
+
notARepository: /Not a git repository/i,
|
|
26
|
+
outsideRepository: /is outside repository/i,
|
|
27
|
+
noPath: /no such path/i,
|
|
28
|
+
noCommits: /does not have any commits/i,
|
|
29
|
+
notFound: /Path '.*?' does not exist in/i,
|
|
30
|
+
foundButNotInRevision: /Path '.*?' exists on disk, but not in/i,
|
|
31
|
+
headNotABranch: /HEAD does not point to a branch/i,
|
|
32
|
+
noUpstream: /no upstream configured for branch '(.*?)'/i,
|
|
33
|
+
unknownRevision: /ambiguous argument '.*?': unknown revision or path not in the working tree|not stored as a remote-tracking branch/i,
|
|
34
|
+
mustRunInWorkTree: /this operation must be run in a work tree/i,
|
|
35
|
+
patchWithConflicts: /Applied patch to '.*?' with conflicts/i,
|
|
36
|
+
noRemoteRepositorySpecified: /No remote repository specified\./i,
|
|
37
|
+
remoteConnectionError: /Could not read from remote repository/i,
|
|
38
|
+
notAGitCommand: /'.+' is not a git command/i,
|
|
39
|
+
tipBehind: /tip of your current branch is behind/i
|
|
28
40
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
default:
|
|
238
|
-
return baseMessage;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
export class MergeError extends GitCommandError {
|
|
243
|
-
static is(ex, reason) {
|
|
244
|
-
return ex instanceof MergeError && (reason == null || ex.details.reason === reason);
|
|
245
|
-
}
|
|
246
|
-
constructor(details, original) {
|
|
247
|
-
super('Unable to merge', details, original);
|
|
248
|
-
}
|
|
249
|
-
buildErrorMessage(details) {
|
|
250
|
-
const baseMessage = `Unable to merge${details.ref ? ` '${details.ref}'` : ''}`;
|
|
251
|
-
switch (details.reason) {
|
|
252
|
-
case 'aborted':
|
|
253
|
-
return `Merge${details.ref ? ` of '${details.ref}'` : ''} was aborted`;
|
|
254
|
-
case 'alreadyInProgress':
|
|
255
|
-
return `${baseMessage} because a merge is already in progress`;
|
|
256
|
-
case 'conflicts':
|
|
257
|
-
return `${baseMessage} due to conflicts. Resolve the conflicts first and continue the merge`;
|
|
258
|
-
case 'uncommittedChanges':
|
|
259
|
-
return `${baseMessage} because there are uncommitted changes`;
|
|
260
|
-
case 'wouldOverwriteChanges':
|
|
261
|
-
return `${baseMessage} because some local changes would be overwritten`;
|
|
262
|
-
default:
|
|
263
|
-
return baseMessage;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
export class PausedOperationAbortError extends GitCommandError {
|
|
268
|
-
static is(ex, reason) {
|
|
269
|
-
return ex instanceof PausedOperationAbortError && (reason == null || ex.details.reason === reason);
|
|
270
|
-
}
|
|
271
|
-
constructor(details, original) {
|
|
272
|
-
super('Unable to abort operation', details, original);
|
|
273
|
-
}
|
|
274
|
-
buildErrorMessage(details) {
|
|
275
|
-
switch (details.reason) {
|
|
276
|
-
case 'nothingToAbort':
|
|
277
|
-
return `Cannot abort as there is no ${details.operation.type} operation in progress`;
|
|
278
|
-
default:
|
|
279
|
-
return `Unable to abort the ${details.operation.type} operation${this.original ? `: ${this.original.message}` : ''}`;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
export class PausedOperationContinueError extends GitCommandError {
|
|
284
|
-
static is(ex, reason) {
|
|
285
|
-
return ex instanceof PausedOperationContinueError && (reason == null || ex.details.reason === reason);
|
|
286
|
-
}
|
|
287
|
-
constructor(details, original) {
|
|
288
|
-
super('Unable to continue operation', details, original);
|
|
289
|
-
}
|
|
290
|
-
buildErrorMessage(details) {
|
|
291
|
-
switch (details.reason) {
|
|
292
|
-
case 'conflicts':
|
|
293
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as there are unresolved conflicts`;
|
|
294
|
-
case 'emptyCommit':
|
|
295
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as the previous commit is empty`;
|
|
296
|
-
case 'messageEditFailed':
|
|
297
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as a commit message needs to be edited and the editor could not be opened`;
|
|
298
|
-
case 'nothingToContinue':
|
|
299
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as there is no ${details.operation.type} in progress`;
|
|
300
|
-
case 'uncommittedChanges':
|
|
301
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as there are uncommitted changes`;
|
|
302
|
-
case 'unmergedFiles':
|
|
303
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as there are unmerged files`;
|
|
304
|
-
case 'unstagedChanges':
|
|
305
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as there are unstaged changes`;
|
|
306
|
-
case 'wouldOverwriteChanges':
|
|
307
|
-
return `Cannot ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation as some local changes would be overwritten`;
|
|
308
|
-
default:
|
|
309
|
-
return `Unable to ${details.skip ? 'skip' : 'continue'} the ${details.operation.type} operation${this.original ? `: ${this.original.message}` : ''}`;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
export class PullError extends GitCommandError {
|
|
314
|
-
static is(ex, reason) {
|
|
315
|
-
return ex instanceof PullError && (reason == null || ex.details.reason === reason);
|
|
316
|
-
}
|
|
317
|
-
constructor(details, original) {
|
|
318
|
-
super('Unable to pull', details, original);
|
|
319
|
-
}
|
|
320
|
-
buildErrorMessage(details) {
|
|
321
|
-
const baseMessage = 'Unable to pull';
|
|
322
|
-
switch (details.reason) {
|
|
323
|
-
case 'conflict':
|
|
324
|
-
return 'Unable to complete pull due to conflicts which must be resolved.';
|
|
325
|
-
case 'gitIdentity':
|
|
326
|
-
return `${baseMessage} because you have not yet set up your Git identity.`;
|
|
327
|
-
case 'rebaseMultipleBranches':
|
|
328
|
-
return `${baseMessage} because you are trying to rebase onto multiple branches.`;
|
|
329
|
-
case 'refLocked':
|
|
330
|
-
return `${baseMessage} because a local ref could not be updated.`;
|
|
331
|
-
case 'remoteConnectionFailed':
|
|
332
|
-
return `${baseMessage} because the remote repository could not be reached.`;
|
|
333
|
-
case 'tagConflict':
|
|
334
|
-
return `${baseMessage} because a local tag would be overwritten.`;
|
|
335
|
-
case 'uncommittedChanges':
|
|
336
|
-
return `${baseMessage} because you have uncommitted changes.`;
|
|
337
|
-
case 'unmergedFiles':
|
|
338
|
-
return `${baseMessage} because you have unmerged files.`;
|
|
339
|
-
case 'unstagedChanges':
|
|
340
|
-
return `${baseMessage} because you have unstaged changes.`;
|
|
341
|
-
case 'wouldOverwriteChanges':
|
|
342
|
-
return `${baseMessage} because local changes to some files would be overwritten.`;
|
|
343
|
-
default:
|
|
344
|
-
return baseMessage;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
export class PushError extends GitCommandError {
|
|
349
|
-
static is(ex, reason) {
|
|
350
|
-
return ex instanceof PushError && (reason == null || ex.details.reason === reason);
|
|
351
|
-
}
|
|
352
|
-
constructor(details, original) {
|
|
353
|
-
super('Unable to push', details, original);
|
|
354
|
-
}
|
|
355
|
-
buildErrorMessage(details) {
|
|
356
|
-
const baseMessage = `Unable to push${details.branch ? ` branch '${details.branch}'` : ''}${details.remote ? ` to ${details.remote}` : ''}`;
|
|
357
|
-
switch (details.reason) {
|
|
358
|
-
case 'noUpstream':
|
|
359
|
-
return `${baseMessage} because it has no upstream branch.`;
|
|
360
|
-
case 'permissionDenied':
|
|
361
|
-
return `${baseMessage} because you don't have permission to push to this remote repository.`;
|
|
362
|
-
case 'rejected':
|
|
363
|
-
return `${baseMessage} because some refs failed to push or the push was rejected. Try pulling first.`;
|
|
364
|
-
case 'rejectedRefDoesNotExist':
|
|
365
|
-
return `Unable to delete remote branch${details.branch ? ` '${details.branch}'` : ''}${details.remote ? ` from ${details.remote}` : ''}, the remote reference does not exist`;
|
|
366
|
-
case 'rejectedWithLease':
|
|
367
|
-
case 'rejectedWithLeaseIfIncludes':
|
|
368
|
-
return `Unable to force push${details.branch ? ` branch '${details.branch}'` : ''}${details.remote ? ` to ${details.remote}` : ''} because some refs failed to push or the push was rejected. The tip of the remote-tracking branch has been updated since the last checkout. Try pulling first.`;
|
|
369
|
-
case 'remoteAhead':
|
|
370
|
-
return `${baseMessage} because the remote contains work that you do not have locally. Try fetching first.`;
|
|
371
|
-
case 'remoteConnectionFailed':
|
|
372
|
-
return `${baseMessage} because the remote repository could not be reached.`;
|
|
373
|
-
case 'tipBehind':
|
|
374
|
-
return `${baseMessage} as it is behind its remote counterpart. Try pulling first.`;
|
|
375
|
-
default:
|
|
376
|
-
return baseMessage;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
export class RebaseError extends GitCommandError {
|
|
381
|
-
static is(ex, reason) {
|
|
382
|
-
return ex instanceof RebaseError && (reason == null || ex.details.reason === reason);
|
|
383
|
-
}
|
|
384
|
-
constructor(details, original) {
|
|
385
|
-
super('Unable to rebase', details, original);
|
|
386
|
-
}
|
|
387
|
-
buildErrorMessage(details) {
|
|
388
|
-
const baseMessage = `Unable to rebase${details.upstream ? ` onto '${details.upstream}'` : ''}`;
|
|
389
|
-
switch (details.reason) {
|
|
390
|
-
case 'aborted':
|
|
391
|
-
return `Rebase${details.upstream ? ` onto '${details.upstream}'` : ''} was aborted`;
|
|
392
|
-
case 'alreadyInProgress':
|
|
393
|
-
return `${baseMessage} because a rebase is already in progress`;
|
|
394
|
-
case 'conflicts':
|
|
395
|
-
return `${baseMessage} due to conflicts. Resolve the conflicts first and continue the rebase`;
|
|
396
|
-
case 'uncommittedChanges':
|
|
397
|
-
return `${baseMessage} because there are uncommitted changes`;
|
|
398
|
-
case 'wouldOverwriteChanges':
|
|
399
|
-
return `${baseMessage} because some local changes would be overwritten`;
|
|
400
|
-
default:
|
|
401
|
-
return baseMessage;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
export class ResetError extends GitCommandError {
|
|
406
|
-
static is(ex, reason) {
|
|
407
|
-
return ex instanceof ResetError && (reason == null || ex.details.reason === reason);
|
|
408
|
-
}
|
|
409
|
-
constructor(details, original) {
|
|
410
|
-
super('Unable to reset', details, original);
|
|
411
|
-
}
|
|
412
|
-
buildErrorMessage(details) {
|
|
413
|
-
const baseMessage = 'Unable to reset';
|
|
414
|
-
switch (details.reason) {
|
|
415
|
-
case 'ambiguousArgument':
|
|
416
|
-
return `${baseMessage} because the argument is ambiguous`;
|
|
417
|
-
case 'detachedHead':
|
|
418
|
-
return `${baseMessage} because you are in a detached HEAD state`;
|
|
419
|
-
case 'notUpToDate':
|
|
420
|
-
return `${baseMessage} because the index is not up to date (you may have unresolved merge conflicts)`;
|
|
421
|
-
case 'permissionDenied':
|
|
422
|
-
return `${baseMessage} because you don't have permission to modify affected files`;
|
|
423
|
-
case 'refLocked':
|
|
424
|
-
return `${baseMessage} because the ref is locked`;
|
|
425
|
-
case 'unmergedChanges':
|
|
426
|
-
return `${baseMessage} because there are unmerged changes`;
|
|
427
|
-
case 'wouldOverwriteChanges':
|
|
428
|
-
return `${baseMessage} because your local changes would be overwritten`;
|
|
429
|
-
default:
|
|
430
|
-
return baseMessage;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
export class RevertError extends GitCommandError {
|
|
435
|
-
static is(ex, reason) {
|
|
436
|
-
return ex instanceof RevertError && (reason == null || ex.details.reason === reason);
|
|
437
|
-
}
|
|
438
|
-
constructor(details, original) {
|
|
439
|
-
super('Unable to revert', details, original);
|
|
440
|
-
}
|
|
441
|
-
buildErrorMessage(details) {
|
|
442
|
-
const baseMessage = `Unable to revert${details.refs?.length ? ` ${details.refs.join(', ')}` : ''}`;
|
|
443
|
-
switch (details.reason) {
|
|
444
|
-
case 'aborted':
|
|
445
|
-
return `Revert${details.refs?.length ? ` of ${details.refs.join(', ')}` : ''} was aborted`;
|
|
446
|
-
case 'alreadyInProgress':
|
|
447
|
-
return `${baseMessage} because a revert is already in progress`;
|
|
448
|
-
case 'conflicts':
|
|
449
|
-
return `${baseMessage} due to conflicts. Resolve the conflicts first and continue the revert`;
|
|
450
|
-
case 'uncommittedChanges':
|
|
451
|
-
return `${baseMessage} because there are uncommitted changes`;
|
|
452
|
-
case 'wouldOverwriteChanges':
|
|
453
|
-
return `${baseMessage} because some local changes would be overwritten`;
|
|
454
|
-
default:
|
|
455
|
-
return baseMessage;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
export class StashApplyError extends GitCommandError {
|
|
460
|
-
static is(ex, reason) {
|
|
461
|
-
return ex instanceof StashApplyError && (reason == null || ex.details.reason === reason);
|
|
462
|
-
}
|
|
463
|
-
constructor(details, original) {
|
|
464
|
-
super('Unable to apply stash', details, original);
|
|
465
|
-
}
|
|
466
|
-
buildErrorMessage(details) {
|
|
467
|
-
switch (details.reason) {
|
|
468
|
-
case 'uncommittedChanges':
|
|
469
|
-
return 'Unable to apply stash. Your working tree changes would be overwritten. Please commit or stash your changes before trying again';
|
|
470
|
-
default:
|
|
471
|
-
return 'Unable to apply stash';
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
export class StashPushError extends GitCommandError {
|
|
476
|
-
static is(ex, reason) {
|
|
477
|
-
return ex instanceof StashPushError && (reason == null || ex.details.reason === reason);
|
|
478
|
-
}
|
|
479
|
-
constructor(details, original) {
|
|
480
|
-
super('Unable to stash', details, original);
|
|
481
|
-
}
|
|
482
|
-
buildErrorMessage(details) {
|
|
483
|
-
switch (details.reason) {
|
|
484
|
-
case 'conflictingStagedAndUnstagedLines':
|
|
485
|
-
return 'Changes were stashed, but the working tree cannot be updated because at least one file has staged and unstaged changes on the same line(s)';
|
|
486
|
-
case 'nothingToSave':
|
|
487
|
-
return 'No files to stash';
|
|
488
|
-
default:
|
|
489
|
-
return 'Unable to stash';
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
export class ShowError extends GitCommandError {
|
|
494
|
-
static is(ex, reason) {
|
|
495
|
-
return ex instanceof ShowError && (reason == null || ex.details.reason === reason);
|
|
496
|
-
}
|
|
497
|
-
constructor(details, original) {
|
|
498
|
-
super('Unable to show file', details, original);
|
|
499
|
-
}
|
|
500
|
-
buildErrorMessage(details) {
|
|
501
|
-
const baseMessage = `Unable to show${details.path ? ` '${details.path}'` : ' file'}${details.rev ? ` at revision '${details.rev}'` : ''}`;
|
|
502
|
-
switch (details.reason) {
|
|
503
|
-
case 'invalidObject':
|
|
504
|
-
return `${baseMessage} because the path is not a file`;
|
|
505
|
-
case 'invalidRevision':
|
|
506
|
-
return `${baseMessage} because the specified revision is invalid`;
|
|
507
|
-
case 'notFound':
|
|
508
|
-
return `${baseMessage} because the file does not exist`;
|
|
509
|
-
case 'notInRevision':
|
|
510
|
-
return `${baseMessage} because the file is not in the specified revision`;
|
|
511
|
-
default:
|
|
512
|
-
return baseMessage;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
export class TagError extends GitCommandError {
|
|
517
|
-
static is(ex, reason) {
|
|
518
|
-
return ex instanceof TagError && (reason == null || ex.details.reason === reason);
|
|
519
|
-
}
|
|
520
|
-
constructor(details, original) {
|
|
521
|
-
super('Unable to perform action on tag', details, original);
|
|
522
|
-
}
|
|
523
|
-
buildErrorMessage(details) {
|
|
524
|
-
let baseMessage;
|
|
525
|
-
if (details.action != null) {
|
|
526
|
-
baseMessage = `Unable to ${details.action} tag ${details.tag ? `'${details.tag}'` : ''}`;
|
|
527
|
-
}
|
|
528
|
-
else {
|
|
529
|
-
baseMessage = `Unable to perform action${details.tag ? ` with tag '${details.tag}'` : 'on tag'}`;
|
|
530
|
-
}
|
|
531
|
-
switch (details.reason) {
|
|
532
|
-
case 'alreadyExists':
|
|
533
|
-
return `${baseMessage} because it already exists`;
|
|
534
|
-
case 'invalidName':
|
|
535
|
-
return `${baseMessage} because the tag name is invalid`;
|
|
536
|
-
case 'notFound':
|
|
537
|
-
return `${baseMessage} because it does not exist`;
|
|
538
|
-
case 'permissionDenied':
|
|
539
|
-
return `${baseMessage} because you don't have permission to push to this remote repository.`;
|
|
540
|
-
case 'remoteRejected':
|
|
541
|
-
return `${baseMessage} because the remote repository rejected the push.`;
|
|
542
|
-
case 'tagConflict':
|
|
543
|
-
return `${baseMessage} because the remote already has a tag with that name. Use force to overwrite it.`;
|
|
544
|
-
default:
|
|
545
|
-
return baseMessage;
|
|
546
|
-
}
|
|
547
|
-
}
|
|
41
|
+
var GitCommandError = class GitCommandError extends Error {
|
|
42
|
+
static is(ex) {
|
|
43
|
+
return ex instanceof GitCommandError;
|
|
44
|
+
}
|
|
45
|
+
_details;
|
|
46
|
+
get details() {
|
|
47
|
+
return this._details;
|
|
48
|
+
}
|
|
49
|
+
set details(details) {
|
|
50
|
+
this._details = details;
|
|
51
|
+
this.message = this.buildErrorMessage(details, english);
|
|
52
|
+
}
|
|
53
|
+
/** The translated message for UI. `message` is always the English sentence so logs and stack traces stay searchable — see `getPresentableErrorMessage` */
|
|
54
|
+
get localizedMessage() {
|
|
55
|
+
return this.buildErrorMessage(this._details, l10n);
|
|
56
|
+
}
|
|
57
|
+
original;
|
|
58
|
+
constructor(details, original) {
|
|
59
|
+
super();
|
|
60
|
+
this.name = new.target.name;
|
|
61
|
+
this.original = original;
|
|
62
|
+
this.details = details;
|
|
63
|
+
Error.captureStackTrace?.(this, new.target);
|
|
64
|
+
}
|
|
65
|
+
update(changes) {
|
|
66
|
+
this.details = {
|
|
67
|
+
...this.details,
|
|
68
|
+
...changes
|
|
69
|
+
};
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var GitSearchError = class GitSearchError extends Error {
|
|
74
|
+
original;
|
|
75
|
+
reason;
|
|
76
|
+
detail;
|
|
77
|
+
static is(ex) {
|
|
78
|
+
return ex instanceof GitSearchError;
|
|
79
|
+
}
|
|
80
|
+
constructor(original, reason, detail) {
|
|
81
|
+
super(original.message);
|
|
82
|
+
this.original = original;
|
|
83
|
+
this.reason = reason;
|
|
84
|
+
this.detail = detail;
|
|
85
|
+
Error.captureStackTrace?.(this, new.target);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
var ApplyPatchCommitError = class ApplyPatchCommitError extends GitCommandError {
|
|
89
|
+
static is(ex, reason) {
|
|
90
|
+
return ex instanceof ApplyPatchCommitError && (reason == null || ex.details.reason === reason);
|
|
91
|
+
}
|
|
92
|
+
buildErrorMessage(details, l10n) {
|
|
93
|
+
switch (details.reason) {
|
|
94
|
+
case "applyFailed": return this.original instanceof CherryPickError ? l10n.t("Unable to apply patch. {0}", this.original.message) : l10n.t("Unable to apply patch");
|
|
95
|
+
case "appliedWithConflicts": return l10n.t("Patch applied with conflicts");
|
|
96
|
+
case "checkoutFailed": return this.original instanceof CheckoutError ? l10n.t("Unable to apply patch as we were unable to checkout the branch '{0}'. {1}", String(details.branch), this.original.message) : l10n.t("Unable to apply patch as we were unable to checkout the branch '{0}'", String(details.branch));
|
|
97
|
+
case "createWorktreeFailed": return this.original instanceof WorktreeCreateError ? l10n.t("Unable to apply patch as we were unable to create a worktree. {0}", this.original.message) : l10n.t("Unable to apply patch as we were unable to create a worktree");
|
|
98
|
+
case "stashFailed": return this.original instanceof StashPushError ? l10n.t("Unable to apply patch as we were unable to stash your working changes. {0}", this.original.message) : l10n.t("Unable to apply patch as we were unable to stash your working changes");
|
|
99
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to apply patch as some local changes would be overwritten");
|
|
100
|
+
default: return l10n.t("Unable to apply patch");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var CommitError = class CommitError extends GitCommandError {
|
|
105
|
+
static is(ex, reason) {
|
|
106
|
+
return ex instanceof CommitError && (reason == null || ex.details.reason === reason);
|
|
107
|
+
}
|
|
108
|
+
buildErrorMessage(details, l10n) {
|
|
109
|
+
const baseMessage = l10n.t("Unable to commit");
|
|
110
|
+
switch (details.reason) {
|
|
111
|
+
case "nothingToCommit": return l10n.t("Unable to commit because there are no staged changes");
|
|
112
|
+
case "conflicts": return l10n.t("Unable to commit because there are unresolved merge conflicts");
|
|
113
|
+
case "noUserNameConfigured": return l10n.t("Please configure your git user name and email before committing");
|
|
114
|
+
default: return baseMessage;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
var BlameIgnoreRevsFileError = class BlameIgnoreRevsFileError extends Error {
|
|
119
|
+
fileName;
|
|
120
|
+
original;
|
|
121
|
+
static is(ex) {
|
|
122
|
+
return ex instanceof BlameIgnoreRevsFileError;
|
|
123
|
+
}
|
|
124
|
+
constructor(fileName, original) {
|
|
125
|
+
super(l10n.t("Invalid blame.ignoreRevsFile: '{0}'", fileName));
|
|
126
|
+
this.fileName = fileName;
|
|
127
|
+
this.original = original;
|
|
128
|
+
Error.captureStackTrace?.(this, new.target);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var BlameIgnoreRevsFileBadRevisionError = class BlameIgnoreRevsFileBadRevisionError extends Error {
|
|
132
|
+
revision;
|
|
133
|
+
original;
|
|
134
|
+
static is(ex) {
|
|
135
|
+
return ex instanceof BlameIgnoreRevsFileBadRevisionError;
|
|
136
|
+
}
|
|
137
|
+
constructor(revision, original) {
|
|
138
|
+
super(l10n.t("Invalid revision in blame.ignoreRevsFile: '{0}'", revision));
|
|
139
|
+
this.revision = revision;
|
|
140
|
+
this.original = original;
|
|
141
|
+
Error.captureStackTrace?.(this, new.target);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
var BranchError = class BranchError extends GitCommandError {
|
|
145
|
+
static is(ex, reason) {
|
|
146
|
+
return ex instanceof BranchError && (reason == null || ex.details.reason === reason);
|
|
147
|
+
}
|
|
148
|
+
buildErrorMessage(details, l10n) {
|
|
149
|
+
const branch = details.branch;
|
|
150
|
+
const action = details.action;
|
|
151
|
+
if (!branch) switch (action) {
|
|
152
|
+
case "create": return getMissingBranchErrorMessage("create", details.reason, l10n);
|
|
153
|
+
case "delete": return getMissingBranchErrorMessage("delete", details.reason, l10n);
|
|
154
|
+
case "force delete": return getMissingBranchErrorMessage("force delete", details.reason, l10n);
|
|
155
|
+
case "rename": return getMissingBranchErrorMessage("rename", details.reason, l10n);
|
|
156
|
+
case "unset upstream of": return getMissingBranchErrorMessage("unset upstream of", details.reason, l10n);
|
|
157
|
+
default:
|
|
158
|
+
if (action?.startsWith("set upstream to '") && action.endsWith("' for")) return getMissingSetUpstreamBranchErrorMessage(action.slice(17, -5), details.reason, l10n);
|
|
159
|
+
return getGenericBranchErrorMessage(void 0, details.reason, l10n);
|
|
160
|
+
}
|
|
161
|
+
if (action?.startsWith("set upstream to '") && action.endsWith("' for")) {
|
|
162
|
+
const upstream = action.slice(17, -5);
|
|
163
|
+
switch (details.reason) {
|
|
164
|
+
case "alreadyExists": return l10n.t("Unable to set upstream to '{0}' for branch '{1}' because it already exists", upstream, branch);
|
|
165
|
+
case "notFullyMerged": return l10n.t("Unable to set upstream to '{0}' for branch '{1}' because it is not fully merged", upstream, branch);
|
|
166
|
+
case "invalidName": return l10n.t("Unable to set upstream to '{0}' for branch '{1}' because the branch name is invalid", upstream, branch);
|
|
167
|
+
case "noRemoteReference": return l10n.t("Unable to set upstream to '{0}' for branch '{1}' because the remote reference does not exist", upstream, branch);
|
|
168
|
+
default: return l10n.t("Unable to set upstream to '{0}' for branch '{1}'", upstream, branch);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
switch (action) {
|
|
172
|
+
case "create": switch (details.reason) {
|
|
173
|
+
case "alreadyExists": return l10n.t("Unable to create branch '{0}' because it already exists", branch);
|
|
174
|
+
case "notFullyMerged": return l10n.t("Unable to create branch '{0}' because it is not fully merged", branch);
|
|
175
|
+
case "invalidName": return l10n.t("Unable to create branch '{0}' because the branch name is invalid", branch);
|
|
176
|
+
case "noRemoteReference": return l10n.t("Unable to create branch '{0}' because the remote reference does not exist", branch);
|
|
177
|
+
default: return l10n.t("Unable to create branch '{0}'", branch);
|
|
178
|
+
}
|
|
179
|
+
case "delete": switch (details.reason) {
|
|
180
|
+
case "alreadyExists": return l10n.t("Unable to delete branch '{0}' because it already exists", branch);
|
|
181
|
+
case "notFullyMerged": return l10n.t("Unable to delete branch '{0}' because it is not fully merged", branch);
|
|
182
|
+
case "invalidName": return l10n.t("Unable to delete branch '{0}' because the branch name is invalid", branch);
|
|
183
|
+
case "noRemoteReference": return l10n.t("Unable to delete branch '{0}' because the remote reference does not exist", branch);
|
|
184
|
+
default: return l10n.t("Unable to delete branch '{0}'", branch);
|
|
185
|
+
}
|
|
186
|
+
case "force delete": switch (details.reason) {
|
|
187
|
+
case "alreadyExists": return l10n.t("Unable to force delete branch '{0}' because it already exists", branch);
|
|
188
|
+
case "notFullyMerged": return l10n.t("Unable to force delete branch '{0}' because it is not fully merged", branch);
|
|
189
|
+
case "invalidName": return l10n.t("Unable to force delete branch '{0}' because the branch name is invalid", branch);
|
|
190
|
+
case "noRemoteReference": return l10n.t("Unable to force delete branch '{0}' because the remote reference does not exist", branch);
|
|
191
|
+
default: return l10n.t("Unable to force delete branch '{0}'", branch);
|
|
192
|
+
}
|
|
193
|
+
case "rename": switch (details.reason) {
|
|
194
|
+
case "alreadyExists": return l10n.t("Unable to rename branch '{0}' because it already exists", branch);
|
|
195
|
+
case "notFullyMerged": return l10n.t("Unable to rename branch '{0}' because it is not fully merged", branch);
|
|
196
|
+
case "invalidName": return l10n.t("Unable to rename branch '{0}' because the branch name is invalid", branch);
|
|
197
|
+
case "noRemoteReference": return l10n.t("Unable to rename branch '{0}' because the remote reference does not exist", branch);
|
|
198
|
+
default: return l10n.t("Unable to rename branch '{0}'", branch);
|
|
199
|
+
}
|
|
200
|
+
case "unset upstream of": switch (details.reason) {
|
|
201
|
+
case "alreadyExists": return l10n.t("Unable to unset upstream of branch '{0}' because it already exists", branch);
|
|
202
|
+
case "notFullyMerged": return l10n.t("Unable to unset upstream of branch '{0}' because it is not fully merged", branch);
|
|
203
|
+
case "invalidName": return l10n.t("Unable to unset upstream of branch '{0}' because the branch name is invalid", branch);
|
|
204
|
+
case "noRemoteReference": return l10n.t("Unable to unset upstream of branch '{0}' because the remote reference does not exist", branch);
|
|
205
|
+
default: return l10n.t("Unable to unset upstream of branch '{0}'", branch);
|
|
206
|
+
}
|
|
207
|
+
default: return getGenericBranchErrorMessage(branch, details.reason, l10n);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
function getMissingBranchErrorMessage(action, reason, l10n) {
|
|
212
|
+
switch (action) {
|
|
213
|
+
case "create": switch (reason) {
|
|
214
|
+
case "alreadyExists": return l10n.t("Unable to create branch because it already exists");
|
|
215
|
+
case "notFullyMerged": return l10n.t("Unable to create branch because it is not fully merged");
|
|
216
|
+
case "invalidName": return l10n.t("Unable to create branch because the branch name is invalid");
|
|
217
|
+
case "noRemoteReference": return l10n.t("Unable to create branch because the remote reference does not exist");
|
|
218
|
+
default: return l10n.t("Unable to create branch");
|
|
219
|
+
}
|
|
220
|
+
case "delete": switch (reason) {
|
|
221
|
+
case "alreadyExists": return l10n.t("Unable to delete branch because it already exists");
|
|
222
|
+
case "notFullyMerged": return l10n.t("Unable to delete branch because it is not fully merged");
|
|
223
|
+
case "invalidName": return l10n.t("Unable to delete branch because the branch name is invalid");
|
|
224
|
+
case "noRemoteReference": return l10n.t("Unable to delete branch because the remote reference does not exist");
|
|
225
|
+
default: return l10n.t("Unable to delete branch");
|
|
226
|
+
}
|
|
227
|
+
case "force delete": switch (reason) {
|
|
228
|
+
case "alreadyExists": return l10n.t("Unable to force delete branch because it already exists");
|
|
229
|
+
case "notFullyMerged": return l10n.t("Unable to force delete branch because it is not fully merged");
|
|
230
|
+
case "invalidName": return l10n.t("Unable to force delete branch because the branch name is invalid");
|
|
231
|
+
case "noRemoteReference": return l10n.t("Unable to force delete branch because the remote reference does not exist");
|
|
232
|
+
default: return l10n.t("Unable to force delete branch");
|
|
233
|
+
}
|
|
234
|
+
case "rename": switch (reason) {
|
|
235
|
+
case "alreadyExists": return l10n.t("Unable to rename branch because it already exists");
|
|
236
|
+
case "notFullyMerged": return l10n.t("Unable to rename branch because it is not fully merged");
|
|
237
|
+
case "invalidName": return l10n.t("Unable to rename branch because the branch name is invalid");
|
|
238
|
+
case "noRemoteReference": return l10n.t("Unable to rename branch because the remote reference does not exist");
|
|
239
|
+
default: return l10n.t("Unable to rename branch");
|
|
240
|
+
}
|
|
241
|
+
case "unset upstream of": switch (reason) {
|
|
242
|
+
case "alreadyExists": return l10n.t("Unable to unset upstream of branch because it already exists");
|
|
243
|
+
case "notFullyMerged": return l10n.t("Unable to unset upstream of branch because it is not fully merged");
|
|
244
|
+
case "invalidName": return l10n.t("Unable to unset upstream of branch because the branch name is invalid");
|
|
245
|
+
case "noRemoteReference": return l10n.t("Unable to unset upstream of branch because the remote reference does not exist");
|
|
246
|
+
default: return l10n.t("Unable to unset upstream of branch");
|
|
247
|
+
}
|
|
248
|
+
}
|
|
548
249
|
}
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
250
|
+
function getMissingSetUpstreamBranchErrorMessage(upstream, reason, l10n) {
|
|
251
|
+
switch (reason) {
|
|
252
|
+
case "alreadyExists": return l10n.t("Unable to set upstream to '{0}' for branch because it already exists", upstream);
|
|
253
|
+
case "notFullyMerged": return l10n.t("Unable to set upstream to '{0}' for branch because it is not fully merged", upstream);
|
|
254
|
+
case "invalidName": return l10n.t("Unable to set upstream to '{0}' for branch because the branch name is invalid", upstream);
|
|
255
|
+
case "noRemoteReference": return l10n.t("Unable to set upstream to '{0}' for branch because the remote reference does not exist", upstream);
|
|
256
|
+
default: return l10n.t("Unable to set upstream to '{0}' for branch", upstream);
|
|
257
|
+
}
|
|
557
258
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
}
|
|
259
|
+
function getGenericBranchErrorMessage(branch, reason, l10n) {
|
|
260
|
+
if (branch) switch (reason) {
|
|
261
|
+
case "alreadyExists": return l10n.t("Unable to perform action with branch '{0}' because it already exists", branch);
|
|
262
|
+
case "notFullyMerged": return l10n.t("Unable to perform action with branch '{0}' because it is not fully merged", branch);
|
|
263
|
+
case "invalidName": return l10n.t("Unable to perform action with branch '{0}' because the branch name is invalid", branch);
|
|
264
|
+
case "noRemoteReference": return l10n.t("Unable to perform action with branch '{0}' because the remote reference does not exist", branch);
|
|
265
|
+
default: return l10n.t("Unable to perform action with branch '{0}'", branch);
|
|
266
|
+
}
|
|
267
|
+
switch (reason) {
|
|
268
|
+
case "alreadyExists": return l10n.t("Unable to perform action on branch because it already exists");
|
|
269
|
+
case "notFullyMerged": return l10n.t("Unable to perform action on branch because it is not fully merged");
|
|
270
|
+
case "invalidName": return l10n.t("Unable to perform action on branch because the branch name is invalid");
|
|
271
|
+
case "noRemoteReference": return l10n.t("Unable to perform action on branch because the remote reference does not exist");
|
|
272
|
+
default: return l10n.t("Unable to perform action on branch");
|
|
273
|
+
}
|
|
575
274
|
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
275
|
+
var CheckoutError = class CheckoutError extends GitCommandError {
|
|
276
|
+
static is(ex, reason) {
|
|
277
|
+
return ex instanceof CheckoutError && (reason == null || ex.details.reason === reason);
|
|
278
|
+
}
|
|
279
|
+
buildErrorMessage(details, l10n) {
|
|
280
|
+
switch (details.reason) {
|
|
281
|
+
case "invalidRef": return details.ref ? l10n.t("Unable to checkout '{0}' because the reference is invalid", details.ref) : l10n.t("Unable to checkout because the reference is invalid");
|
|
282
|
+
case "pathspecNotFound": return details.ref ? l10n.t("Unable to checkout '{0}' because the path or reference does not exist", details.ref) : l10n.t("Unable to checkout because the path or reference does not exist");
|
|
283
|
+
case "wouldOverwriteChanges": return details.ref ? l10n.t("Unable to checkout '{0}'. Your local changes would be overwritten. Please commit or stash your changes before switching branches.", details.ref) : l10n.t("Unable to checkout. Your local changes would be overwritten. Please commit or stash your changes before switching branches.");
|
|
284
|
+
default: return details.ref ? l10n.t("Unable to checkout '{0}'", details.ref) : l10n.t("Unable to checkout");
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
var CherryPickError = class CherryPickError extends GitCommandError {
|
|
289
|
+
static is(ex, reason) {
|
|
290
|
+
return ex instanceof CherryPickError && (reason == null || ex.details.reason === reason);
|
|
291
|
+
}
|
|
292
|
+
buildErrorMessage(details, l10n) {
|
|
293
|
+
if (details.revs?.length === 1) {
|
|
294
|
+
const rev = details.revs[0];
|
|
295
|
+
switch (details.reason) {
|
|
296
|
+
case "aborted": return l10n.t("Unable to cherry-pick commit '{0}' as it was aborted.", rev);
|
|
297
|
+
case "alreadyInProgress": return l10n.t("Unable to cherry-pick commit '{0}' as a cherry-pick is already in progress.", rev);
|
|
298
|
+
case "conflicts": return l10n.t("Unable to cherry-pick commit '{0}' due to conflicts.", rev);
|
|
299
|
+
case "emptyCommit": return l10n.t("Unable to cherry-pick commit '{0}' because it is an empty commit.", rev);
|
|
300
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to cherry-pick commit '{0}' as some local changes would be overwritten.", rev);
|
|
301
|
+
default: return l10n.t("Unable to cherry-pick commit '{0}'", rev);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (details.revs?.length) {
|
|
305
|
+
const count = getNumericFormat()(details.revs.length);
|
|
306
|
+
switch (details.reason) {
|
|
307
|
+
case "aborted": return l10n.t("Unable to cherry-pick {0} commits as it was aborted.", count);
|
|
308
|
+
case "alreadyInProgress": return l10n.t("Unable to cherry-pick {0} commits as a cherry-pick is already in progress.", count);
|
|
309
|
+
case "conflicts": return l10n.t("Unable to cherry-pick {0} commits due to conflicts.", count);
|
|
310
|
+
case "emptyCommit": return l10n.t("Unable to cherry-pick {0} commits because it is an empty commit.", count);
|
|
311
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to cherry-pick {0} commits as some local changes would be overwritten.", count);
|
|
312
|
+
default: return l10n.t("Unable to cherry-pick {0} commits", count);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
switch (details.reason) {
|
|
316
|
+
case "aborted": return l10n.t("Unable to cherry-pick as it was aborted.");
|
|
317
|
+
case "alreadyInProgress": return l10n.t("Unable to cherry-pick as a cherry-pick is already in progress.");
|
|
318
|
+
case "conflicts": return l10n.t("Unable to cherry-pick due to conflicts.");
|
|
319
|
+
case "emptyCommit": return l10n.t("Unable to cherry-pick because it is an empty commit.");
|
|
320
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to cherry-pick as some local changes would be overwritten.");
|
|
321
|
+
default: return l10n.t("Unable to cherry-pick");
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
var FetchError = class FetchError extends GitCommandError {
|
|
326
|
+
static is(ex, reason) {
|
|
327
|
+
return ex instanceof FetchError && (reason == null || ex.details.reason === reason);
|
|
328
|
+
}
|
|
329
|
+
buildErrorMessage(details, l10n) {
|
|
330
|
+
if (details.branch && details.remote) switch (details.reason) {
|
|
331
|
+
case "noFastForward": return l10n.t("Unable to fetch branch '{0}' from {1} as it cannot be fast-forwarded", details.branch, details.remote);
|
|
332
|
+
case "noRemote": return l10n.t("Unable to fetch branch '{0}' from {1} without a remote repository specified.", details.branch, details.remote);
|
|
333
|
+
case "remoteConnectionFailed": return l10n.t("Unable to fetch branch '{0}' from {1}. Could not connect to the remote repository.", details.branch, details.remote);
|
|
334
|
+
default: return l10n.t("Unable to fetch branch '{0}' from {1}", details.branch, details.remote);
|
|
335
|
+
}
|
|
336
|
+
if (details.branch) switch (details.reason) {
|
|
337
|
+
case "noFastForward": return l10n.t("Unable to fetch branch '{0}' as it cannot be fast-forwarded", details.branch);
|
|
338
|
+
case "noRemote": return l10n.t("Unable to fetch branch '{0}' without a remote repository specified.", details.branch);
|
|
339
|
+
case "remoteConnectionFailed": return l10n.t("Unable to fetch branch '{0}'. Could not connect to the remote repository.", details.branch);
|
|
340
|
+
default: return l10n.t("Unable to fetch branch '{0}'", details.branch);
|
|
341
|
+
}
|
|
342
|
+
if (details.remote) switch (details.reason) {
|
|
343
|
+
case "noFastForward": return l10n.t("Unable to fetch from {0} as it cannot be fast-forwarded", details.remote);
|
|
344
|
+
case "noRemote": return l10n.t("Unable to fetch from {0} without a remote repository specified.", details.remote);
|
|
345
|
+
case "remoteConnectionFailed": return l10n.t("Unable to fetch from {0}. Could not connect to the remote repository.", details.remote);
|
|
346
|
+
default: return l10n.t("Unable to fetch from {0}", details.remote);
|
|
347
|
+
}
|
|
348
|
+
switch (details.reason) {
|
|
349
|
+
case "noFastForward": return l10n.t("Unable to fetch as it cannot be fast-forwarded");
|
|
350
|
+
case "noRemote": return l10n.t("Unable to fetch without a remote repository specified.");
|
|
351
|
+
case "remoteConnectionFailed": return l10n.t("Unable to fetch. Could not connect to the remote repository.");
|
|
352
|
+
default: return l10n.t("Unable to fetch");
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
var MergeError = class MergeError extends GitCommandError {
|
|
357
|
+
static is(ex, reason) {
|
|
358
|
+
return ex instanceof MergeError && (reason == null || ex.details.reason === reason);
|
|
359
|
+
}
|
|
360
|
+
buildErrorMessage(details, l10n) {
|
|
361
|
+
if (details.ref) switch (details.reason) {
|
|
362
|
+
case "aborted": return l10n.t("Merge of '{0}' was aborted", details.ref);
|
|
363
|
+
case "alreadyInProgress": return l10n.t("Unable to merge '{0}' because a merge is already in progress", details.ref);
|
|
364
|
+
case "conflicts": return l10n.t("Unable to merge '{0}' due to conflicts. Resolve the conflicts first and continue the merge", details.ref);
|
|
365
|
+
case "uncommittedChanges": return l10n.t("Unable to merge '{0}' because there are uncommitted changes", details.ref);
|
|
366
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to merge '{0}' because some local changes would be overwritten", details.ref);
|
|
367
|
+
default: return l10n.t("Unable to merge '{0}'", details.ref);
|
|
368
|
+
}
|
|
369
|
+
switch (details.reason) {
|
|
370
|
+
case "aborted": return l10n.t("Merge was aborted");
|
|
371
|
+
case "alreadyInProgress": return l10n.t("Unable to merge because a merge is already in progress");
|
|
372
|
+
case "conflicts": return l10n.t("Unable to merge due to conflicts. Resolve the conflicts first and continue the merge");
|
|
373
|
+
case "uncommittedChanges": return l10n.t("Unable to merge because there are uncommitted changes");
|
|
374
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to merge because some local changes would be overwritten");
|
|
375
|
+
default: return l10n.t("Unable to merge");
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
var PausedOperationAbortError = class PausedOperationAbortError extends GitCommandError {
|
|
380
|
+
static is(ex, reason) {
|
|
381
|
+
return ex instanceof PausedOperationAbortError && (reason == null || ex.details.reason === reason);
|
|
382
|
+
}
|
|
383
|
+
buildErrorMessage(details, l10n) {
|
|
384
|
+
switch (details.operation.type) {
|
|
385
|
+
case "cherry-pick":
|
|
386
|
+
if (details.reason === "nothingToAbort") return l10n.t("Cannot abort as there is no cherry-pick operation in progress");
|
|
387
|
+
return this.original ? l10n.t("Unable to abort the cherry-pick operation: {0}", this.original.message) : l10n.t("Unable to abort the cherry-pick operation");
|
|
388
|
+
case "merge":
|
|
389
|
+
if (details.reason === "nothingToAbort") return l10n.t("Cannot abort as there is no merge operation in progress");
|
|
390
|
+
return this.original ? l10n.t("Unable to abort the merge operation: {0}", this.original.message) : l10n.t("Unable to abort the merge operation");
|
|
391
|
+
case "rebase":
|
|
392
|
+
if (details.reason === "nothingToAbort") return l10n.t("Cannot abort as there is no rebase operation in progress");
|
|
393
|
+
return this.original ? l10n.t("Unable to abort the rebase operation: {0}", this.original.message) : l10n.t("Unable to abort the rebase operation");
|
|
394
|
+
case "revert":
|
|
395
|
+
if (details.reason === "nothingToAbort") return l10n.t("Cannot abort as there is no revert operation in progress");
|
|
396
|
+
return this.original ? l10n.t("Unable to abort the revert operation: {0}", this.original.message) : l10n.t("Unable to abort the revert operation");
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
var PausedOperationContinueError = class PausedOperationContinueError extends GitCommandError {
|
|
401
|
+
static is(ex, reason) {
|
|
402
|
+
return ex instanceof PausedOperationContinueError && (reason == null || ex.details.reason === reason);
|
|
403
|
+
}
|
|
404
|
+
buildErrorMessage(details, l10n) {
|
|
405
|
+
switch (details.operation.type) {
|
|
406
|
+
case "cherry-pick": return getCherryPickContinueErrorMessage(details.reason, details.skip ?? false, this.original, l10n);
|
|
407
|
+
case "merge": return getMergeContinueErrorMessage(details.reason, details.skip ?? false, this.original, l10n);
|
|
408
|
+
case "rebase": return getRebaseContinueErrorMessage(details.reason, details.skip ?? false, this.original, l10n);
|
|
409
|
+
case "revert": return getRevertContinueErrorMessage(details.reason, details.skip ?? false, this.original, l10n);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
function getCherryPickContinueErrorMessage(reason, skip, original, l10n) {
|
|
414
|
+
if (skip) switch (reason) {
|
|
415
|
+
case "conflicts": return l10n.t("Cannot skip the cherry-pick operation as there are unresolved conflicts");
|
|
416
|
+
case "emptyCommit": return l10n.t("Cannot skip the cherry-pick operation as the previous commit is empty");
|
|
417
|
+
case "messageEditFailed": return l10n.t("Cannot skip the cherry-pick operation as a commit message needs to be edited and the editor could not be opened");
|
|
418
|
+
case "nothingToContinue": return l10n.t("Cannot skip the cherry-pick operation as there is no cherry-pick in progress");
|
|
419
|
+
case "uncommittedChanges": return l10n.t("Cannot skip the cherry-pick operation as there are uncommitted changes");
|
|
420
|
+
case "unmergedFiles": return l10n.t("Cannot skip the cherry-pick operation as there are unmerged files");
|
|
421
|
+
case "unstagedChanges": return l10n.t("Cannot skip the cherry-pick operation as there are unstaged changes");
|
|
422
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot skip the cherry-pick operation as some local changes would be overwritten");
|
|
423
|
+
default: return original ? l10n.t("Unable to skip the cherry-pick operation: {0}", original.message) : l10n.t("Unable to skip the cherry-pick operation");
|
|
424
|
+
}
|
|
425
|
+
switch (reason) {
|
|
426
|
+
case "conflicts": return l10n.t("Cannot continue the cherry-pick operation as there are unresolved conflicts");
|
|
427
|
+
case "emptyCommit": return l10n.t("Cannot continue the cherry-pick operation as the previous commit is empty");
|
|
428
|
+
case "messageEditFailed": return l10n.t("Cannot continue the cherry-pick operation as a commit message needs to be edited and the editor could not be opened");
|
|
429
|
+
case "nothingToContinue": return l10n.t("Cannot continue the cherry-pick operation as there is no cherry-pick in progress");
|
|
430
|
+
case "uncommittedChanges": return l10n.t("Cannot continue the cherry-pick operation as there are uncommitted changes");
|
|
431
|
+
case "unmergedFiles": return l10n.t("Cannot continue the cherry-pick operation as there are unmerged files");
|
|
432
|
+
case "unstagedChanges": return l10n.t("Cannot continue the cherry-pick operation as there are unstaged changes");
|
|
433
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot continue the cherry-pick operation as some local changes would be overwritten");
|
|
434
|
+
default: return original ? l10n.t("Unable to continue the cherry-pick operation: {0}", original.message) : l10n.t("Unable to continue the cherry-pick operation");
|
|
435
|
+
}
|
|
597
436
|
}
|
|
598
|
-
|
|
599
|
-
(
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
let message;
|
|
622
|
-
let reason;
|
|
623
|
-
if (messageOrReason == null) {
|
|
624
|
-
message = `Unable to get required authentication session for '${id}'`;
|
|
625
|
-
}
|
|
626
|
-
else if (typeof messageOrReason === 'string') {
|
|
627
|
-
message = messageOrReason;
|
|
628
|
-
reason = undefined;
|
|
629
|
-
}
|
|
630
|
-
else {
|
|
631
|
-
reason = messageOrReason;
|
|
632
|
-
switch (reason) {
|
|
633
|
-
case AuthenticationErrorReason.UserDidNotConsent:
|
|
634
|
-
message = `'${id}' authentication is required for this operation`;
|
|
635
|
-
break;
|
|
636
|
-
case AuthenticationErrorReason.Unauthorized:
|
|
637
|
-
message = `Your '${id}' credentials are either invalid or expired`;
|
|
638
|
-
break;
|
|
639
|
-
case AuthenticationErrorReason.Forbidden:
|
|
640
|
-
message = `Your '${id}' credentials do not have the required access`;
|
|
641
|
-
break;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
super(message);
|
|
645
|
-
this.id = id;
|
|
646
|
-
this.original = original;
|
|
647
|
-
this.reason = reason;
|
|
648
|
-
this.authInfo = authInfo;
|
|
649
|
-
Error.captureStackTrace?.(this, new.target);
|
|
650
|
-
}
|
|
651
|
-
static is(ex) {
|
|
652
|
-
return ex instanceof AuthenticationError;
|
|
653
|
-
}
|
|
654
|
-
toString() {
|
|
655
|
-
return `${super.toString()} ${this.authInfo}`;
|
|
656
|
-
}
|
|
437
|
+
function getMergeContinueErrorMessage(reason, skip, original, l10n) {
|
|
438
|
+
if (skip) switch (reason) {
|
|
439
|
+
case "conflicts": return l10n.t("Cannot skip the merge operation as there are unresolved conflicts");
|
|
440
|
+
case "emptyCommit": return l10n.t("Cannot skip the merge operation as the previous commit is empty");
|
|
441
|
+
case "messageEditFailed": return l10n.t("Cannot skip the merge operation as a commit message needs to be edited and the editor could not be opened");
|
|
442
|
+
case "nothingToContinue": return l10n.t("Cannot skip the merge operation as there is no merge in progress");
|
|
443
|
+
case "uncommittedChanges": return l10n.t("Cannot skip the merge operation as there are uncommitted changes");
|
|
444
|
+
case "unmergedFiles": return l10n.t("Cannot skip the merge operation as there are unmerged files");
|
|
445
|
+
case "unstagedChanges": return l10n.t("Cannot skip the merge operation as there are unstaged changes");
|
|
446
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot skip the merge operation as some local changes would be overwritten");
|
|
447
|
+
default: return original ? l10n.t("Unable to skip the merge operation: {0}", original.message) : l10n.t("Unable to skip the merge operation");
|
|
448
|
+
}
|
|
449
|
+
switch (reason) {
|
|
450
|
+
case "conflicts": return l10n.t("Cannot continue the merge operation as there are unresolved conflicts");
|
|
451
|
+
case "emptyCommit": return l10n.t("Cannot continue the merge operation as the previous commit is empty");
|
|
452
|
+
case "messageEditFailed": return l10n.t("Cannot continue the merge operation as a commit message needs to be edited and the editor could not be opened");
|
|
453
|
+
case "nothingToContinue": return l10n.t("Cannot continue the merge operation as there is no merge in progress");
|
|
454
|
+
case "uncommittedChanges": return l10n.t("Cannot continue the merge operation as there are uncommitted changes");
|
|
455
|
+
case "unmergedFiles": return l10n.t("Cannot continue the merge operation as there are unmerged files");
|
|
456
|
+
case "unstagedChanges": return l10n.t("Cannot continue the merge operation as there are unstaged changes");
|
|
457
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot continue the merge operation as some local changes would be overwritten");
|
|
458
|
+
default: return original ? l10n.t("Unable to continue the merge operation: {0}", original.message) : l10n.t("Unable to continue the merge operation");
|
|
459
|
+
}
|
|
657
460
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
461
|
+
function getRebaseContinueErrorMessage(reason, skip, original, l10n) {
|
|
462
|
+
if (skip) switch (reason) {
|
|
463
|
+
case "conflicts": return l10n.t("Cannot skip the rebase operation as there are unresolved conflicts");
|
|
464
|
+
case "emptyCommit": return l10n.t("Cannot skip the rebase operation as the previous commit is empty");
|
|
465
|
+
case "messageEditFailed": return l10n.t("Cannot skip the rebase operation as a commit message needs to be edited and the editor could not be opened");
|
|
466
|
+
case "nothingToContinue": return l10n.t("Cannot skip the rebase operation as there is no rebase in progress");
|
|
467
|
+
case "uncommittedChanges": return l10n.t("Cannot skip the rebase operation as there are uncommitted changes");
|
|
468
|
+
case "unmergedFiles": return l10n.t("Cannot skip the rebase operation as there are unmerged files");
|
|
469
|
+
case "unstagedChanges": return l10n.t("Cannot skip the rebase operation as there are unstaged changes");
|
|
470
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot skip the rebase operation as some local changes would be overwritten");
|
|
471
|
+
default: return original ? l10n.t("Unable to skip the rebase operation: {0}", original.message) : l10n.t("Unable to skip the rebase operation");
|
|
472
|
+
}
|
|
473
|
+
switch (reason) {
|
|
474
|
+
case "conflicts": return l10n.t("Cannot continue the rebase operation as there are unresolved conflicts");
|
|
475
|
+
case "emptyCommit": return l10n.t("Cannot continue the rebase operation as the previous commit is empty");
|
|
476
|
+
case "messageEditFailed": return l10n.t("Cannot continue the rebase operation as a commit message needs to be edited and the editor could not be opened");
|
|
477
|
+
case "nothingToContinue": return l10n.t("Cannot continue the rebase operation as there is no rebase in progress");
|
|
478
|
+
case "uncommittedChanges": return l10n.t("Cannot continue the rebase operation as there are uncommitted changes");
|
|
479
|
+
case "unmergedFiles": return l10n.t("Cannot continue the rebase operation as there are unmerged files");
|
|
480
|
+
case "unstagedChanges": return l10n.t("Cannot continue the rebase operation as there are unstaged changes");
|
|
481
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot continue the rebase operation as some local changes would be overwritten");
|
|
482
|
+
default: return original ? l10n.t("Unable to continue the rebase operation: {0}", original.message) : l10n.t("Unable to continue the rebase operation");
|
|
483
|
+
}
|
|
668
484
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
485
|
+
function getRevertContinueErrorMessage(reason, skip, original, l10n) {
|
|
486
|
+
if (skip) switch (reason) {
|
|
487
|
+
case "conflicts": return l10n.t("Cannot skip the revert operation as there are unresolved conflicts");
|
|
488
|
+
case "emptyCommit": return l10n.t("Cannot skip the revert operation as the previous commit is empty");
|
|
489
|
+
case "messageEditFailed": return l10n.t("Cannot skip the revert operation as a commit message needs to be edited and the editor could not be opened");
|
|
490
|
+
case "nothingToContinue": return l10n.t("Cannot skip the revert operation as there is no revert in progress");
|
|
491
|
+
case "uncommittedChanges": return l10n.t("Cannot skip the revert operation as there are uncommitted changes");
|
|
492
|
+
case "unmergedFiles": return l10n.t("Cannot skip the revert operation as there are unmerged files");
|
|
493
|
+
case "unstagedChanges": return l10n.t("Cannot skip the revert operation as there are unstaged changes");
|
|
494
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot skip the revert operation as some local changes would be overwritten");
|
|
495
|
+
default: return original ? l10n.t("Unable to skip the revert operation: {0}", original.message) : l10n.t("Unable to skip the revert operation");
|
|
496
|
+
}
|
|
497
|
+
switch (reason) {
|
|
498
|
+
case "conflicts": return l10n.t("Cannot continue the revert operation as there are unresolved conflicts");
|
|
499
|
+
case "emptyCommit": return l10n.t("Cannot continue the revert operation as the previous commit is empty");
|
|
500
|
+
case "messageEditFailed": return l10n.t("Cannot continue the revert operation as a commit message needs to be edited and the editor could not be opened");
|
|
501
|
+
case "nothingToContinue": return l10n.t("Cannot continue the revert operation as there is no revert in progress");
|
|
502
|
+
case "uncommittedChanges": return l10n.t("Cannot continue the revert operation as there are uncommitted changes");
|
|
503
|
+
case "unmergedFiles": return l10n.t("Cannot continue the revert operation as there are unmerged files");
|
|
504
|
+
case "unstagedChanges": return l10n.t("Cannot continue the revert operation as there are unstaged changes");
|
|
505
|
+
case "wouldOverwriteChanges": return l10n.t("Cannot continue the revert operation as some local changes would be overwritten");
|
|
506
|
+
default: return original ? l10n.t("Unable to continue the revert operation: {0}", original.message) : l10n.t("Unable to continue the revert operation");
|
|
507
|
+
}
|
|
679
508
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
509
|
+
var PullError = class PullError extends GitCommandError {
|
|
510
|
+
static is(ex, reason) {
|
|
511
|
+
return ex instanceof PullError && (reason == null || ex.details.reason === reason);
|
|
512
|
+
}
|
|
513
|
+
buildErrorMessage(details, l10n) {
|
|
514
|
+
switch (details.reason) {
|
|
515
|
+
case "conflict": return l10n.t("Unable to complete pull due to conflicts which must be resolved.");
|
|
516
|
+
case "gitIdentity": return l10n.t("Unable to pull because you have not yet set up your Git identity.");
|
|
517
|
+
case "rebaseMultipleBranches": return l10n.t("Unable to pull because you are trying to rebase onto multiple branches.");
|
|
518
|
+
case "refLocked": return l10n.t("Unable to pull because a local ref could not be updated.");
|
|
519
|
+
case "remoteConnectionFailed": return l10n.t("Unable to pull because the remote repository could not be reached.");
|
|
520
|
+
case "tagConflict": return l10n.t("Unable to pull because a local tag would be overwritten.");
|
|
521
|
+
case "uncommittedChanges": return l10n.t("Unable to pull because you have uncommitted changes.");
|
|
522
|
+
case "unmergedFiles": return l10n.t("Unable to pull because you have unmerged files.");
|
|
523
|
+
case "unstagedChanges": return l10n.t("Unable to pull because you have unstaged changes.");
|
|
524
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to pull because local changes to some files would be overwritten.");
|
|
525
|
+
default: return l10n.t("Unable to pull");
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
var PushError = class PushError extends GitCommandError {
|
|
530
|
+
static is(ex, reason) {
|
|
531
|
+
return ex instanceof PushError && (reason == null || ex.details.reason === reason);
|
|
532
|
+
}
|
|
533
|
+
buildErrorMessage(details, l10n) {
|
|
534
|
+
if (details.branch && details.remote) switch (details.reason) {
|
|
535
|
+
case "noUpstream": return l10n.t("Unable to push branch '{0}' to {1} because it has no upstream branch.", details.branch, details.remote);
|
|
536
|
+
case "permissionDenied": return l10n.t("Unable to push branch '{0}' to {1} because you don't have permission to push to this remote repository.", details.branch, details.remote);
|
|
537
|
+
case "rejected": return l10n.t("Unable to push branch '{0}' to {1} because some refs failed to push or the push was rejected. Try pulling first.", details.branch, details.remote);
|
|
538
|
+
case "rejectedRefDoesNotExist": return l10n.t("Unable to delete remote branch '{0}' from {1}, the remote reference does not exist", details.branch, details.remote);
|
|
539
|
+
case "rejectedWithLease":
|
|
540
|
+
case "rejectedWithLeaseIfIncludes": return l10n.t("Unable to force push branch '{0}' to {1} because some refs failed to push or the push was rejected. The tip of the remote-tracking branch has been updated since the last checkout. Try pulling first.", details.branch, details.remote);
|
|
541
|
+
case "remoteAhead": return l10n.t("Unable to push branch '{0}' to {1} because the remote contains work that you do not have locally. Try fetching first.", details.branch, details.remote);
|
|
542
|
+
case "remoteConnectionFailed": return l10n.t("Unable to push branch '{0}' to {1} because the remote repository could not be reached.", details.branch, details.remote);
|
|
543
|
+
case "tipBehind": return l10n.t("Unable to push branch '{0}' to {1} as it is behind its remote counterpart. Try pulling first.", details.branch, details.remote);
|
|
544
|
+
default: return l10n.t("Unable to push branch '{0}' to {1}", details.branch, details.remote);
|
|
545
|
+
}
|
|
546
|
+
if (details.branch) switch (details.reason) {
|
|
547
|
+
case "noUpstream": return l10n.t("Unable to push branch '{0}' because it has no upstream branch.", details.branch);
|
|
548
|
+
case "permissionDenied": return l10n.t("Unable to push branch '{0}' because you don't have permission to push to this remote repository.", details.branch);
|
|
549
|
+
case "rejected": return l10n.t("Unable to push branch '{0}' because some refs failed to push or the push was rejected. Try pulling first.", details.branch);
|
|
550
|
+
case "rejectedRefDoesNotExist": return l10n.t("Unable to delete remote branch '{0}', the remote reference does not exist", details.branch);
|
|
551
|
+
case "rejectedWithLease":
|
|
552
|
+
case "rejectedWithLeaseIfIncludes": return l10n.t("Unable to force push branch '{0}' because some refs failed to push or the push was rejected. The tip of the remote-tracking branch has been updated since the last checkout. Try pulling first.", details.branch);
|
|
553
|
+
case "remoteAhead": return l10n.t("Unable to push branch '{0}' because the remote contains work that you do not have locally. Try fetching first.", details.branch);
|
|
554
|
+
case "remoteConnectionFailed": return l10n.t("Unable to push branch '{0}' because the remote repository could not be reached.", details.branch);
|
|
555
|
+
case "tipBehind": return l10n.t("Unable to push branch '{0}' as it is behind its remote counterpart. Try pulling first.", details.branch);
|
|
556
|
+
default: return l10n.t("Unable to push branch '{0}'", details.branch);
|
|
557
|
+
}
|
|
558
|
+
if (details.remote) switch (details.reason) {
|
|
559
|
+
case "noUpstream": return l10n.t("Unable to push to {0} because it has no upstream branch.", details.remote);
|
|
560
|
+
case "permissionDenied": return l10n.t("Unable to push to {0} because you don't have permission to push to this remote repository.", details.remote);
|
|
561
|
+
case "rejected": return l10n.t("Unable to push to {0} because some refs failed to push or the push was rejected. Try pulling first.", details.remote);
|
|
562
|
+
case "rejectedRefDoesNotExist": return l10n.t("Unable to delete remote branch from {0}, the remote reference does not exist", details.remote);
|
|
563
|
+
case "rejectedWithLease":
|
|
564
|
+
case "rejectedWithLeaseIfIncludes": return l10n.t("Unable to force push to {0} because some refs failed to push or the push was rejected. The tip of the remote-tracking branch has been updated since the last checkout. Try pulling first.", details.remote);
|
|
565
|
+
case "remoteAhead": return l10n.t("Unable to push to {0} because the remote contains work that you do not have locally. Try fetching first.", details.remote);
|
|
566
|
+
case "remoteConnectionFailed": return l10n.t("Unable to push to {0} because the remote repository could not be reached.", details.remote);
|
|
567
|
+
case "tipBehind": return l10n.t("Unable to push to {0} as it is behind its remote counterpart. Try pulling first.", details.remote);
|
|
568
|
+
default: return l10n.t("Unable to push to {0}", details.remote);
|
|
569
|
+
}
|
|
570
|
+
switch (details.reason) {
|
|
571
|
+
case "noUpstream": return l10n.t("Unable to push because it has no upstream branch.");
|
|
572
|
+
case "permissionDenied": return l10n.t("Unable to push because you don't have permission to push to this remote repository.");
|
|
573
|
+
case "rejected": return l10n.t("Unable to push because some refs failed to push or the push was rejected. Try pulling first.");
|
|
574
|
+
case "rejectedRefDoesNotExist": return l10n.t("Unable to delete remote branch, the remote reference does not exist");
|
|
575
|
+
case "rejectedWithLease":
|
|
576
|
+
case "rejectedWithLeaseIfIncludes": return l10n.t("Unable to force push because some refs failed to push or the push was rejected. The tip of the remote-tracking branch has been updated since the last checkout. Try pulling first.");
|
|
577
|
+
case "remoteAhead": return l10n.t("Unable to push because the remote contains work that you do not have locally. Try fetching first.");
|
|
578
|
+
case "remoteConnectionFailed": return l10n.t("Unable to push because the remote repository could not be reached.");
|
|
579
|
+
case "tipBehind": return l10n.t("Unable to push as it is behind its remote counterpart. Try pulling first.");
|
|
580
|
+
default: return l10n.t("Unable to push");
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
var RebaseError = class RebaseError extends GitCommandError {
|
|
585
|
+
static is(ex, reason) {
|
|
586
|
+
return ex instanceof RebaseError && (reason == null || ex.details.reason === reason);
|
|
587
|
+
}
|
|
588
|
+
buildErrorMessage(details, l10n) {
|
|
589
|
+
if (details.upstream) switch (details.reason) {
|
|
590
|
+
case "aborted": return l10n.t("Rebase onto '{0}' was aborted", details.upstream);
|
|
591
|
+
case "alreadyInProgress": return l10n.t("Unable to rebase onto '{0}' because a rebase is already in progress", details.upstream);
|
|
592
|
+
case "conflicts": return l10n.t("Unable to rebase onto '{0}' due to conflicts. Resolve the conflicts first and continue the rebase", details.upstream);
|
|
593
|
+
case "uncommittedChanges": return l10n.t("Unable to rebase onto '{0}' because there are uncommitted changes", details.upstream);
|
|
594
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to rebase onto '{0}' because some local changes would be overwritten", details.upstream);
|
|
595
|
+
default: return l10n.t("Unable to rebase onto '{0}'", details.upstream);
|
|
596
|
+
}
|
|
597
|
+
switch (details.reason) {
|
|
598
|
+
case "aborted": return l10n.t("Rebase was aborted");
|
|
599
|
+
case "alreadyInProgress": return l10n.t("Unable to rebase because a rebase is already in progress");
|
|
600
|
+
case "conflicts": return l10n.t("Unable to rebase due to conflicts. Resolve the conflicts first and continue the rebase");
|
|
601
|
+
case "uncommittedChanges": return l10n.t("Unable to rebase because there are uncommitted changes");
|
|
602
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to rebase because some local changes would be overwritten");
|
|
603
|
+
default: return l10n.t("Unable to rebase");
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
var ResetError = class ResetError extends GitCommandError {
|
|
608
|
+
static is(ex, reason) {
|
|
609
|
+
return ex instanceof ResetError && (reason == null || ex.details.reason === reason);
|
|
610
|
+
}
|
|
611
|
+
buildErrorMessage(details, l10n) {
|
|
612
|
+
switch (details.reason) {
|
|
613
|
+
case "ambiguousArgument": return l10n.t("Unable to reset because the argument is ambiguous");
|
|
614
|
+
case "detachedHead": return l10n.t("Unable to reset because you are in a detached HEAD state");
|
|
615
|
+
case "notUpToDate": return l10n.t("Unable to reset because the index is not up to date (you may have unresolved merge conflicts)");
|
|
616
|
+
case "permissionDenied": return l10n.t("Unable to reset because you don't have permission to modify affected files");
|
|
617
|
+
case "refLocked": return l10n.t("Unable to reset because the ref is locked");
|
|
618
|
+
case "unmergedChanges": return l10n.t("Unable to reset because there are unmerged changes");
|
|
619
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to reset because your local changes would be overwritten");
|
|
620
|
+
default: return l10n.t("Unable to reset");
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
var RevertError = class RevertError extends GitCommandError {
|
|
625
|
+
static is(ex, reason) {
|
|
626
|
+
return ex instanceof RevertError && (reason == null || ex.details.reason === reason);
|
|
627
|
+
}
|
|
628
|
+
buildErrorMessage(details, l10n) {
|
|
629
|
+
if (details.refs?.length) {
|
|
630
|
+
const refs = details.refs.join(", ");
|
|
631
|
+
switch (details.reason) {
|
|
632
|
+
case "aborted": return l10n.t("Revert of {0} was aborted", refs);
|
|
633
|
+
case "alreadyInProgress": return l10n.t("Unable to revert {0} because a revert is already in progress", refs);
|
|
634
|
+
case "conflicts": return l10n.t("Unable to revert {0} due to conflicts. Resolve the conflicts first and continue the revert", refs);
|
|
635
|
+
case "uncommittedChanges": return l10n.t("Unable to revert {0} because there are uncommitted changes", refs);
|
|
636
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to revert {0} because some local changes would be overwritten", refs);
|
|
637
|
+
default: return l10n.t("Unable to revert {0}", refs);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
switch (details.reason) {
|
|
641
|
+
case "aborted": return l10n.t("Revert was aborted");
|
|
642
|
+
case "alreadyInProgress": return l10n.t("Unable to revert because a revert is already in progress");
|
|
643
|
+
case "conflicts": return l10n.t("Unable to revert due to conflicts. Resolve the conflicts first and continue the revert");
|
|
644
|
+
case "uncommittedChanges": return l10n.t("Unable to revert because there are uncommitted changes");
|
|
645
|
+
case "wouldOverwriteChanges": return l10n.t("Unable to revert because some local changes would be overwritten");
|
|
646
|
+
default: return l10n.t("Unable to revert");
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
var StashApplyError = class StashApplyError extends GitCommandError {
|
|
651
|
+
static is(ex, reason) {
|
|
652
|
+
return ex instanceof StashApplyError && (reason == null || ex.details.reason === reason);
|
|
653
|
+
}
|
|
654
|
+
buildErrorMessage(details, l10n) {
|
|
655
|
+
switch (details.reason) {
|
|
656
|
+
case "uncommittedChanges": return l10n.t("Unable to apply stash. Your working tree changes would be overwritten. Please commit or stash your changes before trying again");
|
|
657
|
+
default: return l10n.t("Unable to apply stash");
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
var StashPushError = class StashPushError extends GitCommandError {
|
|
662
|
+
static is(ex, reason) {
|
|
663
|
+
return ex instanceof StashPushError && (reason == null || ex.details.reason === reason);
|
|
664
|
+
}
|
|
665
|
+
buildErrorMessage(details, l10n) {
|
|
666
|
+
switch (details.reason) {
|
|
667
|
+
case "conflictingStagedAndUnstagedLines": return l10n.t("Changes were stashed, but the working tree cannot be updated because at least one file has staged and unstaged changes on the same line(s)");
|
|
668
|
+
case "nothingToSave": return l10n.t("No files to stash");
|
|
669
|
+
default: return l10n.t("Unable to stash");
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
var ShowError = class ShowError extends GitCommandError {
|
|
674
|
+
static is(ex, reason) {
|
|
675
|
+
return ex instanceof ShowError && (reason == null || ex.details.reason === reason);
|
|
676
|
+
}
|
|
677
|
+
buildErrorMessage(details, l10n) {
|
|
678
|
+
if (details.path && details.rev) switch (details.reason) {
|
|
679
|
+
case "invalidObject": return l10n.t("Unable to show '{0}' at revision '{1}' because the path is not a file", details.path, details.rev);
|
|
680
|
+
case "invalidRevision": return l10n.t("Unable to show '{0}' at revision '{1}' because the specified revision is invalid", details.path, details.rev);
|
|
681
|
+
case "notFound": return l10n.t("Unable to show '{0}' at revision '{1}' because the file does not exist", details.path, details.rev);
|
|
682
|
+
case "notInRevision": return l10n.t("Unable to show '{0}' at revision '{1}' because the file is not in the specified revision", details.path, details.rev);
|
|
683
|
+
default: return l10n.t("Unable to show '{0}' at revision '{1}'", details.path, details.rev);
|
|
684
|
+
}
|
|
685
|
+
if (details.path) switch (details.reason) {
|
|
686
|
+
case "invalidObject": return l10n.t("Unable to show '{0}' because the path is not a file", details.path);
|
|
687
|
+
case "invalidRevision": return l10n.t("Unable to show '{0}' because the specified revision is invalid", details.path);
|
|
688
|
+
case "notFound": return l10n.t("Unable to show '{0}' because the file does not exist", details.path);
|
|
689
|
+
case "notInRevision": return l10n.t("Unable to show '{0}' because the file is not in the specified revision", details.path);
|
|
690
|
+
default: return l10n.t("Unable to show '{0}'", details.path);
|
|
691
|
+
}
|
|
692
|
+
if (details.rev) switch (details.reason) {
|
|
693
|
+
case "invalidObject": return l10n.t("Unable to show file at revision '{0}' because the path is not a file", details.rev);
|
|
694
|
+
case "invalidRevision": return l10n.t("Unable to show file at revision '{0}' because the specified revision is invalid", details.rev);
|
|
695
|
+
case "notFound": return l10n.t("Unable to show file at revision '{0}' because the file does not exist", details.rev);
|
|
696
|
+
case "notInRevision": return l10n.t("Unable to show file at revision '{0}' because the file is not in the specified revision", details.rev);
|
|
697
|
+
default: return l10n.t("Unable to show file at revision '{0}'", details.rev);
|
|
698
|
+
}
|
|
699
|
+
switch (details.reason) {
|
|
700
|
+
case "invalidObject": return l10n.t("Unable to show file because the path is not a file");
|
|
701
|
+
case "invalidRevision": return l10n.t("Unable to show file because the specified revision is invalid");
|
|
702
|
+
case "notFound": return l10n.t("Unable to show file because the file does not exist");
|
|
703
|
+
case "notInRevision": return l10n.t("Unable to show file because the file is not in the specified revision");
|
|
704
|
+
default: return l10n.t("Unable to show file");
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
};
|
|
708
|
+
var TagError = class TagError extends GitCommandError {
|
|
709
|
+
static is(ex, reason) {
|
|
710
|
+
return ex instanceof TagError && (reason == null || ex.details.reason === reason);
|
|
711
|
+
}
|
|
712
|
+
buildErrorMessage(details, l10n) {
|
|
713
|
+
const tag = details.tag;
|
|
714
|
+
const action = details.action;
|
|
715
|
+
if (!tag) return getMissingTagErrorMessage(action, details.reason, l10n);
|
|
716
|
+
switch (action) {
|
|
717
|
+
case "create": switch (details.reason) {
|
|
718
|
+
case "alreadyExists": return l10n.t("Unable to create tag '{0}' because it already exists", tag);
|
|
719
|
+
case "invalidName": return l10n.t("Unable to create tag '{0}' because the tag name is invalid", tag);
|
|
720
|
+
case "notFound": return l10n.t("Unable to create tag '{0}' because it does not exist", tag);
|
|
721
|
+
case "permissionDenied": return l10n.t("Unable to create tag '{0}' because you don't have permission to push to this remote repository.", tag);
|
|
722
|
+
case "remoteRejected": return l10n.t("Unable to create tag '{0}' because the remote repository rejected the push.", tag);
|
|
723
|
+
case "tagConflict": return l10n.t("Unable to create tag '{0}' because the remote already has a tag with that name. Use force to overwrite it.", tag);
|
|
724
|
+
default: return l10n.t("Unable to create tag '{0}'", tag);
|
|
725
|
+
}
|
|
726
|
+
case "delete": switch (details.reason) {
|
|
727
|
+
case "alreadyExists": return l10n.t("Unable to delete tag '{0}' because it already exists", tag);
|
|
728
|
+
case "invalidName": return l10n.t("Unable to delete tag '{0}' because the tag name is invalid", tag);
|
|
729
|
+
case "notFound": return l10n.t("Unable to delete tag '{0}' because it does not exist", tag);
|
|
730
|
+
case "permissionDenied": return l10n.t("Unable to delete tag '{0}' because you don't have permission to push to this remote repository.", tag);
|
|
731
|
+
case "remoteRejected": return l10n.t("Unable to delete tag '{0}' because the remote repository rejected the push.", tag);
|
|
732
|
+
case "tagConflict": return l10n.t("Unable to delete tag '{0}' because the remote already has a tag with that name. Use force to overwrite it.", tag);
|
|
733
|
+
default: return l10n.t("Unable to delete tag '{0}'", tag);
|
|
734
|
+
}
|
|
735
|
+
case "push": switch (details.reason) {
|
|
736
|
+
case "alreadyExists": return l10n.t("Unable to push tag '{0}' because it already exists", tag);
|
|
737
|
+
case "invalidName": return l10n.t("Unable to push tag '{0}' because the tag name is invalid", tag);
|
|
738
|
+
case "notFound": return l10n.t("Unable to push tag '{0}' because it does not exist", tag);
|
|
739
|
+
case "permissionDenied": return l10n.t("Unable to push tag '{0}' because you don't have permission to push to this remote repository.", tag);
|
|
740
|
+
case "remoteRejected": return l10n.t("Unable to push tag '{0}' because the remote repository rejected the push.", tag);
|
|
741
|
+
case "tagConflict": return l10n.t("Unable to push tag '{0}' because the remote already has a tag with that name. Use force to overwrite it.", tag);
|
|
742
|
+
default: return l10n.t("Unable to push tag '{0}'", tag);
|
|
743
|
+
}
|
|
744
|
+
default: return getGenericTagErrorMessage(tag, details.reason, l10n);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
function getMissingTagErrorMessage(action, reason, l10n) {
|
|
749
|
+
switch (action) {
|
|
750
|
+
case "create": switch (reason) {
|
|
751
|
+
case "alreadyExists": return l10n.t("Unable to create tag because it already exists");
|
|
752
|
+
case "invalidName": return l10n.t("Unable to create tag because the tag name is invalid");
|
|
753
|
+
case "notFound": return l10n.t("Unable to create tag because it does not exist");
|
|
754
|
+
case "permissionDenied": return l10n.t("Unable to create tag because you don't have permission to push to this remote repository.");
|
|
755
|
+
case "remoteRejected": return l10n.t("Unable to create tag because the remote repository rejected the push.");
|
|
756
|
+
case "tagConflict": return l10n.t("Unable to create tag because the remote already has a tag with that name. Use force to overwrite it.");
|
|
757
|
+
default: return l10n.t("Unable to create tag");
|
|
758
|
+
}
|
|
759
|
+
case "delete": switch (reason) {
|
|
760
|
+
case "alreadyExists": return l10n.t("Unable to delete tag because it already exists");
|
|
761
|
+
case "invalidName": return l10n.t("Unable to delete tag because the tag name is invalid");
|
|
762
|
+
case "notFound": return l10n.t("Unable to delete tag because it does not exist");
|
|
763
|
+
case "permissionDenied": return l10n.t("Unable to delete tag because you don't have permission to push to this remote repository.");
|
|
764
|
+
case "remoteRejected": return l10n.t("Unable to delete tag because the remote repository rejected the push.");
|
|
765
|
+
case "tagConflict": return l10n.t("Unable to delete tag because the remote already has a tag with that name. Use force to overwrite it.");
|
|
766
|
+
default: return l10n.t("Unable to delete tag");
|
|
767
|
+
}
|
|
768
|
+
case "push": switch (reason) {
|
|
769
|
+
case "alreadyExists": return l10n.t("Unable to push tag because it already exists");
|
|
770
|
+
case "invalidName": return l10n.t("Unable to push tag because the tag name is invalid");
|
|
771
|
+
case "notFound": return l10n.t("Unable to push tag because it does not exist");
|
|
772
|
+
case "permissionDenied": return l10n.t("Unable to push tag because you don't have permission to push to this remote repository.");
|
|
773
|
+
case "remoteRejected": return l10n.t("Unable to push tag because the remote repository rejected the push.");
|
|
774
|
+
case "tagConflict": return l10n.t("Unable to push tag because the remote already has a tag with that name. Use force to overwrite it.");
|
|
775
|
+
default: return l10n.t("Unable to push tag");
|
|
776
|
+
}
|
|
777
|
+
default: switch (reason) {
|
|
778
|
+
case "alreadyExists": return l10n.t("Unable to perform action on tag because it already exists");
|
|
779
|
+
case "invalidName": return l10n.t("Unable to perform action on tag because the tag name is invalid");
|
|
780
|
+
case "notFound": return l10n.t("Unable to perform action on tag because it does not exist");
|
|
781
|
+
case "permissionDenied": return l10n.t("Unable to perform action on tag because you don't have permission to push to this remote repository.");
|
|
782
|
+
case "remoteRejected": return l10n.t("Unable to perform action on tag because the remote repository rejected the push.");
|
|
783
|
+
case "tagConflict": return l10n.t("Unable to perform action on tag because the remote already has a tag with that name. Use force to overwrite it.");
|
|
784
|
+
default: return l10n.t("Unable to perform action on tag");
|
|
785
|
+
}
|
|
786
|
+
}
|
|
694
787
|
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
case 'noKey':
|
|
706
|
-
return `${baseMessage} because no signing key is configured`;
|
|
707
|
-
case 'gpgNotFound':
|
|
708
|
-
return `${baseMessage} because GPG program was not found`;
|
|
709
|
-
case 'sshNotFound':
|
|
710
|
-
return `${baseMessage} because SSH program was not found`;
|
|
711
|
-
case 'passphraseFailed':
|
|
712
|
-
return `${baseMessage} because GPG passphrase failed or was cancelled`;
|
|
713
|
-
default:
|
|
714
|
-
return baseMessage;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
788
|
+
function getGenericTagErrorMessage(tag, reason, l10n) {
|
|
789
|
+
switch (reason) {
|
|
790
|
+
case "alreadyExists": return l10n.t("Unable to perform action with tag '{0}' because it already exists", tag);
|
|
791
|
+
case "invalidName": return l10n.t("Unable to perform action with tag '{0}' because the tag name is invalid", tag);
|
|
792
|
+
case "notFound": return l10n.t("Unable to perform action with tag '{0}' because it does not exist", tag);
|
|
793
|
+
case "permissionDenied": return l10n.t("Unable to perform action with tag '{0}' because you don't have permission to push to this remote repository.", tag);
|
|
794
|
+
case "remoteRejected": return l10n.t("Unable to perform action with tag '{0}' because the remote repository rejected the push.", tag);
|
|
795
|
+
case "tagConflict": return l10n.t("Unable to perform action with tag '{0}' because the remote already has a tag with that name. Use force to overwrite it.", tag);
|
|
796
|
+
default: return l10n.t("Unable to perform action with tag '{0}'", tag);
|
|
797
|
+
}
|
|
717
798
|
}
|
|
799
|
+
var WorkspaceUntrustedError = class WorkspaceUntrustedError extends Error {
|
|
800
|
+
static is(ex) {
|
|
801
|
+
return ex instanceof WorkspaceUntrustedError;
|
|
802
|
+
}
|
|
803
|
+
constructor() {
|
|
804
|
+
super(l10n.t("Unable to perform Git operations because the current workspace is untrusted"));
|
|
805
|
+
Error.captureStackTrace?.(this, new.target);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
var WorktreeCreateError = class WorktreeCreateError extends GitCommandError {
|
|
809
|
+
static is(ex, reason) {
|
|
810
|
+
return ex instanceof WorktreeCreateError && (reason == null || ex.details.reason === reason);
|
|
811
|
+
}
|
|
812
|
+
buildErrorMessage(details, l10n) {
|
|
813
|
+
switch (details.reason) {
|
|
814
|
+
case "alreadyCheckedOut": return l10n.t("Unable to create worktree because it is already checked out");
|
|
815
|
+
case "alreadyExists": return l10n.t("Unable to create worktree because it already exists");
|
|
816
|
+
default: return l10n.t("Unable to create worktree");
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
var WorktreeDeleteError = class WorktreeDeleteError extends GitCommandError {
|
|
821
|
+
static is(ex, reason) {
|
|
822
|
+
return ex instanceof WorktreeDeleteError && (reason == null || ex.details.reason === reason);
|
|
823
|
+
}
|
|
824
|
+
buildErrorMessage(details, l10n) {
|
|
825
|
+
switch (details.reason) {
|
|
826
|
+
case "defaultWorkingTree": return l10n.t("Cannot delete worktree because it is the default working tree");
|
|
827
|
+
case "directoryNotEmpty": return l10n.t("Unable to delete worktree because the directory is not empty");
|
|
828
|
+
case "locked": return l10n.t("Unable to delete worktree because it is locked");
|
|
829
|
+
case "uncommittedChanges": return l10n.t("Unable to delete worktree because there are uncommitted changes");
|
|
830
|
+
default: return l10n.t("Unable to delete worktree");
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
let AuthenticationErrorReason = /* @__PURE__ */ function(AuthenticationErrorReason) {
|
|
835
|
+
AuthenticationErrorReason[AuthenticationErrorReason["UserDidNotConsent"] = 1] = "UserDidNotConsent";
|
|
836
|
+
AuthenticationErrorReason[AuthenticationErrorReason["Unauthorized"] = 2] = "Unauthorized";
|
|
837
|
+
AuthenticationErrorReason[AuthenticationErrorReason["Forbidden"] = 3] = "Forbidden";
|
|
838
|
+
return AuthenticationErrorReason;
|
|
839
|
+
}({});
|
|
840
|
+
var AuthenticationError = class AuthenticationError extends Error {
|
|
841
|
+
id;
|
|
842
|
+
original;
|
|
843
|
+
reason;
|
|
844
|
+
authInfo;
|
|
845
|
+
constructor(info, messageOrReason, original) {
|
|
846
|
+
const { providerId: id, type, cloud, scopes, expiresAt } = info;
|
|
847
|
+
const authInfo = `(token details: ${[
|
|
848
|
+
cloud ? "cloud" : "self-managed",
|
|
849
|
+
type,
|
|
850
|
+
info.microHash,
|
|
851
|
+
expiresAt && `expiresAt=${isNaN(expiresAt.getTime()) ? expiresAt.toString() : expiresAt.toISOString()}`,
|
|
852
|
+
scopes && `[${scopes.join(",")}]`
|
|
853
|
+
].filter((v) => v).join(", ")})`;
|
|
854
|
+
let message;
|
|
855
|
+
let reason;
|
|
856
|
+
if (messageOrReason == null) message = l10n.t("Unable to get required authentication session for '{0}'", id);
|
|
857
|
+
else if (typeof messageOrReason === "string") {
|
|
858
|
+
message = messageOrReason;
|
|
859
|
+
reason = void 0;
|
|
860
|
+
} else {
|
|
861
|
+
reason = messageOrReason;
|
|
862
|
+
switch (reason) {
|
|
863
|
+
case 1:
|
|
864
|
+
message = l10n.t("'{0}' authentication is required for this operation", id);
|
|
865
|
+
break;
|
|
866
|
+
case 2:
|
|
867
|
+
message = l10n.t("Your '{0}' credentials are either invalid or expired", id);
|
|
868
|
+
break;
|
|
869
|
+
case 3: message = l10n.t("Your '{0}' credentials do not have the required access", id);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
super(message);
|
|
873
|
+
this.id = id;
|
|
874
|
+
this.original = original;
|
|
875
|
+
this.reason = reason;
|
|
876
|
+
this.authInfo = authInfo;
|
|
877
|
+
Error.captureStackTrace?.(this, new.target);
|
|
878
|
+
}
|
|
879
|
+
static is(ex) {
|
|
880
|
+
return ex instanceof AuthenticationError;
|
|
881
|
+
}
|
|
882
|
+
toString() {
|
|
883
|
+
return `${super.toString()} ${this.authInfo}`;
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
var RequestClientError = class RequestClientError extends Error {
|
|
887
|
+
original;
|
|
888
|
+
static is(ex) {
|
|
889
|
+
return ex instanceof RequestClientError;
|
|
890
|
+
}
|
|
891
|
+
constructor(original) {
|
|
892
|
+
super(original.message);
|
|
893
|
+
this.original = original;
|
|
894
|
+
Error.captureStackTrace?.(this, new.target);
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
var RequestNotFoundError = class RequestNotFoundError extends Error {
|
|
898
|
+
original;
|
|
899
|
+
static is(ex) {
|
|
900
|
+
return ex instanceof RequestNotFoundError;
|
|
901
|
+
}
|
|
902
|
+
constructor(original) {
|
|
903
|
+
super(original.message);
|
|
904
|
+
this.original = original;
|
|
905
|
+
Error.captureStackTrace?.(this, new.target);
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
var RequestRateLimitError = class RequestRateLimitError extends Error {
|
|
909
|
+
original;
|
|
910
|
+
token;
|
|
911
|
+
resetAt;
|
|
912
|
+
static is(ex) {
|
|
913
|
+
return ex instanceof RequestRateLimitError;
|
|
914
|
+
}
|
|
915
|
+
constructor(original, token, resetAt) {
|
|
916
|
+
super(original.message);
|
|
917
|
+
this.original = original;
|
|
918
|
+
this.token = token;
|
|
919
|
+
this.resetAt = resetAt;
|
|
920
|
+
Error.captureStackTrace?.(this, new.target);
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
var SigningError = class SigningError extends GitCommandError {
|
|
924
|
+
static is(ex, reason) {
|
|
925
|
+
return ex instanceof SigningError && (reason == null || ex.details.reason === reason);
|
|
926
|
+
}
|
|
927
|
+
buildErrorMessage(details, l10n) {
|
|
928
|
+
switch (details.reason) {
|
|
929
|
+
case "noKey": return l10n.t("Unable to sign commit because no signing key is configured");
|
|
930
|
+
case "gpgNotFound": return l10n.t("Unable to sign commit because GPG program was not found");
|
|
931
|
+
case "sshNotFound": return l10n.t("Unable to sign commit because SSH program was not found");
|
|
932
|
+
case "passphraseFailed": return l10n.t("Unable to sign commit because GPG passphrase failed or was cancelled");
|
|
933
|
+
default: return l10n.t("Unable to sign commit");
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
//#endregion
|
|
938
|
+
export { ApplyPatchCommitError, AuthenticationError, AuthenticationErrorReason, BlameIgnoreRevsFileBadRevisionError, BlameIgnoreRevsFileError, BranchError, CheckoutError, CherryPickError, CommitError, FetchError, GitCommandError, GitSearchError, GitWarnings, MergeError, PausedOperationAbortError, PausedOperationContinueError, PullError, PushError, RebaseError, RequestClientError, RequestNotFoundError, RequestRateLimitError, ResetError, RevertError, ShowError, SigningError, StashApplyError, StashPushError, TagError, WorkspaceUntrustedError, WorktreeCreateError, WorktreeDeleteError };
|
|
939
|
+
|
|
718
940
|
//# sourceMappingURL=errors.js.map
|