@gitkraken/core-gitlens 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/README.md +9 -2
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/decorate.js +9 -0
- package/dist/_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js +57 -0
- package/dist/git/cache.d.ts +297 -297
- package/dist/git/cache.js +948 -1276
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts +202 -197
- package/dist/git/context.js +12 -8
- package/dist/git/context.js.map +1 -1
- package/dist/git/errors.d.ts +268 -281
- package/dist/git/errors.js +928 -706
- package/dist/git/errors.js.map +1 -1
- package/dist/git/features.d.ts +3 -2
- package/dist/git/features.js +34 -55
- package/dist/git/features.js.map +1 -1
- package/dist/git/gitHealth.d.ts +88 -81
- package/dist/git/gitHealth.js +259 -329
- package/dist/git/gitHealth.js.map +1 -1
- package/dist/git/models/author.d.ts +12 -10
- package/dist/git/models/author.js +0 -2
- package/dist/git/models/autolink.d.ts +36 -37
- package/dist/git/models/autolink.js +0 -2
- package/dist/git/models/blame.d.ts +25 -23
- package/dist/git/models/blame.js +0 -2
- package/dist/git/models/branch.d.ts +74 -72
- package/dist/git/models/branch.js +132 -171
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts +135 -133
- package/dist/git/models/commit.js +381 -484
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts +30 -29
- package/dist/git/models/contributor.js +56 -64
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts +5 -3
- package/dist/git/models/defaultBranch.js +0 -2
- package/dist/git/models/diff.d.ts +49 -47
- package/dist/git/models/diff.js +0 -2
- package/dist/git/models/file.d.ts +20 -18
- package/dist/git/models/file.js +0 -2
- package/dist/git/models/fileChange.d.ts +45 -43
- package/dist/git/models/fileChange.js +60 -66
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +25 -23
- package/dist/git/models/fileStatus.js +30 -26
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +328 -320
- package/dist/git/models/graph.js +31 -27
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts +37 -35
- package/dist/git/models/graphSearch.js +0 -2
- package/dist/git/models/graphSession.d.ts +158 -66
- package/dist/git/models/graphSession.js +72 -1
- package/dist/git/models/graphSession.js.map +1 -1
- package/dist/git/models/issue.d.ts +171 -150
- package/dist/git/models/issue.js +86 -88
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts +16 -14
- package/dist/git/models/issueOrPullRequest.js +0 -2
- package/dist/git/models/lineRange.d.ts +6 -4
- package/dist/git/models/lineRange.js +0 -2
- package/dist/git/models/log.d.ts +18 -16
- package/dist/git/models/log.js +0 -2
- package/dist/git/models/mergeConflicts.d.ts +17 -15
- package/dist/git/models/mergeConflicts.js +0 -2
- package/dist/git/models/patch.d.ts +14 -12
- package/dist/git/models/patch.js +0 -2
- package/dist/git/models/pausedOperationStatus.d.ts +42 -40
- package/dist/git/models/pausedOperationStatus.js +0 -2
- package/dist/git/models/pullRequest.d.ts +238 -236
- package/dist/git/models/pullRequest.js +151 -163
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts +30 -28
- package/dist/git/models/rebase.js +0 -2
- package/dist/git/models/reference.d.ts +57 -55
- package/dist/git/models/reference.js +0 -2
- package/dist/git/models/reflog.d.ts +29 -27
- package/dist/git/models/reflog.js +63 -82
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts +34 -32
- package/dist/git/models/remote.js +74 -95
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts +86 -84
- package/dist/git/models/remoteProvider.js +145 -150
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts +58 -56
- package/dist/git/models/remoteResource.js +15 -12
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +144 -142
- package/dist/git/models/repository.js +358 -406
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts +8 -6
- package/dist/git/models/repositoryChangeEvent.js +26 -24
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts +50 -46
- package/dist/git/models/repositoryIdentities.js +7 -5
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts +9 -7
- package/dist/git/models/repositoryMetadata.js +0 -2
- package/dist/git/models/resourceDescriptor.d.ts +11 -9
- package/dist/git/models/resourceDescriptor.js +0 -2
- package/dist/git/models/revision.d.ts +2 -0
- package/dist/git/models/revision.js +8 -5
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts +48 -47
- package/dist/git/models/search.js +53 -49
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts +5 -3
- package/dist/git/models/shortlog.js +0 -2
- package/dist/git/models/signature.d.ts +28 -26
- package/dist/git/models/signature.js +0 -2
- package/dist/git/models/staging.d.ts +18 -16
- package/dist/git/models/staging.js +0 -2
- package/dist/git/models/stash.d.ts +5 -3
- package/dist/git/models/stash.js +0 -2
- package/dist/git/models/status.d.ts +51 -49
- package/dist/git/models/status.js +172 -205
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts +35 -34
- package/dist/git/models/statusFile.js +112 -125
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +34 -32
- package/dist/git/models/tag.js +64 -77
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts +8 -6
- package/dist/git/models/tree.js +0 -2
- package/dist/git/models/user.d.ts +6 -4
- package/dist/git/models/user.js +0 -2
- package/dist/git/models/worktree.d.ts +50 -48
- package/dist/git/models/worktree.js +102 -133
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts +7 -5
- package/dist/git/parsers/diffParser.js +438 -587
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts +3 -1
- package/dist/git/parsers/rebaseTodoParser.js +165 -208
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts +12 -10
- package/dist/git/providers/blame.js +0 -2
- package/dist/git/providers/branches.d.ts +96 -94
- package/dist/git/providers/branches.js +0 -2
- package/dist/git/providers/commits.d.ts +105 -104
- package/dist/git/providers/commits.js +0 -2
- package/dist/git/providers/config.d.ts +80 -78
- package/dist/git/providers/config.js +0 -2
- package/dist/git/providers/contributors.d.ts +23 -21
- package/dist/git/providers/contributors.js +0 -2
- package/dist/git/providers/diff.d.ts +68 -66
- package/dist/git/providers/diff.js +0 -2
- package/dist/git/providers/graph.d.ts +73 -62
- package/dist/git/providers/graph.js +0 -2
- package/dist/git/providers/maintenance.d.ts +180 -178
- package/dist/git/providers/maintenance.js +0 -20
- package/dist/git/providers/operations.d.ts +114 -112
- package/dist/git/providers/operations.js +0 -2
- package/dist/git/providers/patch.d.ts +26 -24
- package/dist/git/providers/patch.js +0 -2
- package/dist/git/providers/pausedOperations.d.ts +19 -17
- package/dist/git/providers/pausedOperations.js +0 -2
- package/dist/git/providers/provider.d.ts +52 -50
- package/dist/git/providers/provider.js +0 -2
- package/dist/git/providers/refs.d.ts +42 -40
- package/dist/git/providers/refs.js +0 -2
- package/dist/git/providers/remotes.d.ts +24 -22
- package/dist/git/providers/remotes.js +0 -2
- package/dist/git/providers/revision.d.ts +25 -23
- package/dist/git/providers/revision.js +0 -2
- package/dist/git/providers/shared/remotes.d.ts +24 -22
- package/dist/git/providers/shared/remotes.js +52 -77
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts +37 -35
- package/dist/git/providers/staging.js +0 -2
- package/dist/git/providers/stash.d.ts +38 -36
- package/dist/git/providers/stash.js +0 -2
- package/dist/git/providers/status.d.ts +32 -30
- package/dist/git/providers/status.js +0 -2
- package/dist/git/providers/tags.d.ts +20 -18
- package/dist/git/providers/tags.js +0 -2
- package/dist/git/providers/types.d.ts +19 -17
- package/dist/git/providers/types.js +0 -2
- package/dist/git/providers/worktrees.d.ts +26 -24
- package/dist/git/providers/worktrees.js +0 -2
- package/dist/git/remotes/azure-devops.d.ts +46 -45
- package/dist/git/remotes/azure-devops.js +252 -257
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts +30 -29
- package/dist/git/remotes/bitbucket-server.js +141 -142
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts +27 -26
- package/dist/git/remotes/bitbucket.js +114 -111
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts +26 -25
- package/dist/git/remotes/custom.js +130 -130
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts +29 -28
- package/dist/git/remotes/gerrit.js +140 -143
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts +28 -27
- package/dist/git/remotes/gitea.js +141 -145
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts +35 -34
- package/dist/git/remotes/github.js +196 -190
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts +31 -30
- package/dist/git/remotes/gitlab.js +245 -227
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts +16 -14
- package/dist/git/remotes/google-source.js +33 -31
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts +16 -14
- package/dist/git/remotes/matcher.js +141 -124
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/repositoryService.d.ts +47 -47
- package/dist/git/repositoryService.js +47 -44
- package/dist/git/repositoryService.js.map +1 -1
- package/dist/git/run.types.d.ts +91 -76
- package/dist/git/run.types.js +0 -2
- package/dist/git/service.d.ts +73 -71
- package/dist/git/service.js +286 -302
- package/dist/git/service.js.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts +4 -2
- package/dist/git/utils/autolink.utils.js +103 -139
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts +22 -20
- package/dist/git/utils/blame.utils.js +196 -230
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts +7 -9
- package/dist/git/utils/branch.utils.js +89 -115
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts +10 -16
- package/dist/git/utils/commit.utils.js +28 -47
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/config.utils.d.ts +2 -0
- package/dist/git/utils/config.utils.js +14 -5
- package/dist/git/utils/config.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts +16 -13
- package/dist/git/utils/conflictResolution.utils.js +116 -113
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +10 -8
- package/dist/git/utils/contributor.utils.js +47 -69
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts +2 -0
- package/dist/git/utils/fetch.utils.js +33 -44
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +22 -21
- package/dist/git/utils/fileStatus.utils.js +59 -45
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +19 -1
- package/dist/git/utils/graph.utils.js +60 -35
- package/dist/git/utils/graph.utils.js.map +1 -1
- package/dist/git/utils/issue.utils.d.ts +3 -1
- package/dist/git/utils/issue.utils.js +154 -158
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -1
- package/dist/git/utils/issueOrPullRequest.utils.js +23 -20
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts +4 -1
- package/dist/git/utils/mergeConflicts.utils.js +28 -15
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +7 -42
- package/dist/git/utils/pausedOperationStatus.utils.js +83 -146
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts +7 -5
- package/dist/git/utils/pullRequest.utils.js +180 -187
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +6 -6
- package/dist/git/utils/reachability.utils.js +120 -147
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts +3 -1
- package/dist/git/utils/rebase.utils.js +87 -71
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts +33 -32
- package/dist/git/utils/reference.utils.js +152 -179
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts +5 -3
- package/dist/git/utils/remote.utils.js +77 -116
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts +3 -1
- package/dist/git/utils/repository.utils.js +12 -11
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts +3 -1
- package/dist/git/utils/resourceDescriptor.utils.js +8 -14
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts +11 -10
- package/dist/git/utils/revision.utils.js +69 -83
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts +5 -3
- package/dist/git/utils/search.utils.js +383 -522
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts +22 -20
- package/dist/git/utils/sorting.js +133 -227
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +2 -0
- package/dist/git/utils/sshKey.utils.js +10 -15
- package/dist/git/utils/sshKey.utils.js.map +1 -1
- package/dist/git/utils/status.utils.d.ts +20 -15
- package/dist/git/utils/status.utils.js +93 -79
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts +6 -4
- package/dist/git/utils/statusFile.utils.js +71 -72
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts +4 -2
- package/dist/git/utils/tag.utils.js +10 -8
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts +5 -2
- package/dist/git/utils/tooltip.utils.js +49 -24
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts +9 -7
- package/dist/git/utils/uriAuthority.js +19 -16
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts +3 -1
- package/dist/git/utils/user.utils.js +6 -10
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts +5 -3
- package/dist/git/utils/worktree.utils.js +14 -12
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts +38 -36
- package/dist/git/watching/changeEvent.js +60 -67
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts +3 -1
- package/dist/git/watching/classifyChange.js +50 -79
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts +43 -41
- package/dist/git/watching/gitIgnoreFilter.js +92 -107
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts +22 -20
- package/dist/git/watching/initWatcher.js +58 -57
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts +8 -7
- package/dist/git/watching/provider.js +0 -2
- package/dist/git/watching/watchGroup.d.ts +29 -28
- package/dist/git/watching/watchGroup.js +105 -137
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +70 -68
- package/dist/git/watching/watchService.js +275 -339
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +112 -111
- package/dist/git/watching/watchSession.js +260 -314
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts +4 -2
- package/dist/git/watching/watcherPatterns.js +21 -24
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts +117 -114
- package/dist/git-cli/cliGitProvider.js +261 -283
- package/dist/git-cli/cliGitProvider.js.map +1 -1
- package/dist/git-cli/exec/eventLoopMonitor.d.ts +26 -0
- package/dist/git-cli/exec/eventLoopMonitor.js +61 -0
- package/dist/git-cli/exec/eventLoopMonitor.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +3 -4
- package/dist/git-cli/exec/exec.errors.d.ts +2 -2
- package/dist/git-cli/exec/exec.errors.js +2 -2
- package/dist/git-cli/exec/exec.js +3 -3
- package/dist/git-cli/exec/exec.types.d.ts +2 -2
- package/dist/git-cli/exec/exec.types.js +0 -2
- package/dist/git-cli/exec/features.d.ts +2 -3
- package/dist/git-cli/exec/features.js +2 -2
- package/dist/git-cli/exec/git.d.ts +224 -205
- package/dist/git-cli/exec/git.js +834 -1042
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts +51 -48
- package/dist/git-cli/exec/gitQueue.js +225 -260
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts +8 -6
- package/dist/git-cli/exec/locator.js +95 -121
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts +22 -20
- package/dist/git-cli/parsers/blameParser.js +238 -332
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts +3 -1
- package/dist/git-cli/parsers/indexParser.js +146 -221
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +103 -110
- package/dist/git-cli/parsers/logParser.js +998 -1199
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +5 -3
- package/dist/git-cli/parsers/mergeTreeParser.js +28 -72
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts +5 -4
- package/dist/git-cli/parsers/refParser.js +92 -137
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts +7 -6
- package/dist/git-cli/parsers/reflogParser.js +100 -173
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -2
- package/dist/git-cli/parsers/remoteParser.js +74 -126
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -2
- package/dist/git-cli/parsers/shortlogParser.js +44 -49
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts +3 -1
- package/dist/git-cli/parsers/signatureParser.js +82 -124
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +5 -3
- package/dist/git-cli/parsers/sshSignatureParser.js +55 -64
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -1
- package/dist/git-cli/parsers/statusParser.d.ts +4 -2
- package/dist/git-cli/parsers/statusParser.js +148 -205
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts +3 -1
- package/dist/git-cli/parsers/treeParser.js +57 -108
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts +4 -3
- package/dist/git-cli/parsers/worktreeParser.js +76 -132
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts +25 -23
- package/dist/git-cli/providers/blame.js +404 -413
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +117 -116
- package/dist/git-cli/providers/branches.js +1132 -1468
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -2
- package/dist/git-cli/providers/commitFilesetUtils.js +36 -18
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +58 -56
- package/dist/git-cli/providers/commits.js +1084 -1423
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts +129 -127
- package/dist/git-cli/providers/config.js +612 -831
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts +29 -28
- package/dist/git-cli/providers/contributors.js +246 -351
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts +97 -94
- package/dist/git-cli/providers/diff.js +638 -845
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +66 -68
- package/dist/git-cli/providers/graph.js +1400 -1848
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/maintenance.d.ts +305 -303
- package/dist/git-cli/providers/maintenance.js +1526 -2078
- package/dist/git-cli/providers/maintenance.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts +96 -94
- package/dist/git-cli/providers/operations.js +664 -724
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts +37 -35
- package/dist/git-cli/providers/patch.js +206 -307
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts +30 -28
- package/dist/git-cli/providers/pausedOperations.js +475 -506
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts +50 -48
- package/dist/git-cli/providers/refs.js +335 -479
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts +23 -21
- package/dist/git-cli/providers/remotes.js +71 -92
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +27 -25
- package/dist/git-cli/providers/revision.js +288 -304
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts +31 -29
- package/dist/git-cli/providers/staging.js +140 -189
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts +44 -42
- package/dist/git-cli/providers/stash.js +288 -387
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +61 -59
- package/dist/git-cli/providers/status.js +332 -453
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts +31 -29
- package/dist/git-cli/providers/tags.js +158 -215
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +35 -33
- package/dist/git-cli/providers/worktrees.js +178 -203
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts +28 -26
- package/dist/git-cli/service.js +38 -40
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/discovery.d.ts +19 -17
- package/dist/ipc/discovery.js +104 -128
- package/dist/ipc/discovery.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts +16 -14
- package/dist/ipc/ipcServer.js +139 -160
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/agentCapabilities.d.ts +50 -37
- package/dist/plus/agents/agentCapabilities.js +138 -173
- package/dist/plus/agents/agentCapabilities.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +153 -151
- package/dist/plus/agents/providers/claudeCodeTranscript.js +605 -679
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts +237 -240
- package/dist/plus/agents/providers/gkAgentProvider.js +2162 -3334
- package/dist/plus/agents/providers/gkAgentProvider.js.map +1 -1
- package/dist/plus/agents/sanitizePrompt.d.ts +2 -0
- package/dist/plus/agents/sanitizePrompt.js +58 -91
- package/dist/plus/agents/sanitizePrompt.js.map +1 -1
- package/dist/plus/agents/stateMachine.d.ts +7 -5
- package/dist/plus/agents/stateMachine.js +135 -163
- package/dist/plus/agents/stateMachine.js.map +1 -1
- package/dist/plus/agents/types.d.ts +333 -336
- package/dist/plus/agents/types.js +48 -48
- package/dist/plus/agents/types.js.map +1 -1
- package/dist/plus/ai/constants.d.ts +3 -1
- package/dist/plus/ai/constants.js +88 -84
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts +22 -18
- package/dist/plus/ai/errors.js +158 -138
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts +11 -9
- package/dist/plus/ai/models/conversation.js +30 -26
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +29 -27
- package/dist/plus/ai/models/model.js +663 -471
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +56 -55
- package/dist/plus/ai/models/promptTemplates.js +0 -2
- package/dist/plus/ai/models/provider.d.ts +79 -77
- package/dist/plus/ai/models/provider.js +0 -2
- package/dist/plus/ai/models/results.d.ts +27 -21
- package/dist/plus/ai/models/results.js +0 -2
- package/dist/plus/ai/prompts.d.ts +4 -2
- package/dist/plus/ai/prompts.js +301 -190
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +33 -32
- package/dist/plus/ai/providers/anthropicProvider.js +484 -381
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -16
- package/dist/plus/ai/providers/azureProvider.js +53 -53
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts +23 -20
- package/dist/plus/ai/providers/context.js +0 -2
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +17 -15
- package/dist/plus/ai/providers/deepSeekProvider.js +45 -39
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/geminiProvider.js +316 -230
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +22 -20
- package/dist/plus/ai/providers/gitkrakenProvider.js +165 -260
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +16 -14
- package/dist/plus/ai/providers/huggingFaceProvider.js +45 -46
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts +22 -20
- package/dist/plus/ai/providers/mistralProvider.js +263 -195
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts +26 -24
- package/dist/plus/ai/providers/ollamaProvider.js +156 -189
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +18 -16
- package/dist/plus/ai/providers/openAICompatibleProvider.js +50 -50
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +187 -185
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +356 -475
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts +20 -19
- package/dist/plus/ai/providers/openRouterProvider.js +60 -65
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts +17 -15
- package/dist/plus/ai/providers/openaiProvider.js +35 -34
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts +4 -2
- package/dist/plus/ai/providers/responseFormatCache.js +21 -17
- package/dist/plus/ai/providers/responseFormatCache.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts +16 -14
- package/dist/plus/ai/providers/xaiProvider.js +61 -46
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts +4 -2
- package/dist/plus/ai/utils/ai.utils.js +50 -77
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +7 -5
- package/dist/plus/ai/utils/results.utils.js +235 -269
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +3 -2
- package/dist/plus/ai/utils/truncation.utils.js +242 -205
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts +58 -56
- package/dist/plus/git-github/api/config.js +15 -11
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +500 -497
- package/dist/plus/git-github/api/github.js +2326 -3121
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts +5 -3
- package/dist/plus/git-github/api/github.utils.js +24 -19
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts +5 -3
- package/dist/plus/git-github/api/issueSearchQuery.js +204 -221
- package/dist/plus/git-github/api/issueSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts +6 -5
- package/dist/plus/git-github/api/pullRequestSearchQuery.js +89 -116
- package/dist/plus/git-github/api/pullRequestSearchQuery.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts +10 -8
- package/dist/plus/git-github/api/token.js +0 -2
- package/dist/plus/git-github/api/tokenUtils.d.ts +4 -2
- package/dist/plus/git-github/api/tokenUtils.js +14 -10
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts +94 -92
- package/dist/plus/git-github/api/types.js +0 -2
- package/dist/plus/git-github/context.d.ts +65 -63
- package/dist/plus/git-github/context.js +13 -9
- package/dist/plus/git-github/context.js.map +1 -1
- package/dist/plus/git-github/models.d.ts +182 -182
- package/dist/plus/git-github/models.js +199 -265
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts +32 -31
- package/dist/plus/git-github/providers/github/blame.js +137 -150
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +42 -40
- package/dist/plus/git-github/providers/github/branches.js +199 -274
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts +35 -33
- package/dist/plus/git-github/providers/github/commits.js +527 -606
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts +10 -8
- package/dist/plus/git-github/providers/github/config.js +35 -45
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts +25 -24
- package/dist/plus/git-github/providers/github/contributors.js +174 -216
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts +34 -32
- package/dist/plus/git-github/providers/github/diff.js +154 -194
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +33 -31
- package/dist/plus/git-github/providers/github/graph.js +400 -452
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts +33 -31
- package/dist/plus/git-github/providers/github/refs.js +97 -131
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts +8 -6
- package/dist/plus/git-github/providers/github/remotes.js +30 -35
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts +13 -11
- package/dist/plus/git-github/providers/github/revision.js +106 -129
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts +24 -22
- package/dist/plus/git-github/providers/github/status.js +49 -47
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts +21 -19
- package/dist/plus/git-github/providers/github/tags.js +78 -103
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +67 -64
- package/dist/plus/git-github/providers/githubGitProvider.js +131 -128
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts +46 -44
- package/dist/plus/git-github/providers/githubProvider.js +0 -2
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +29 -27
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +173 -208
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +126 -107
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +399 -497
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +73 -72
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +153 -232
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts +61 -59
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +100 -124
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +14 -12
- package/dist/plus/integrations/authentication/manualTokenProvider.js +26 -51
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +102 -85
- package/dist/plus/integrations/authentication/models.js +55 -54
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts +19 -17
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js +53 -51
- package/dist/plus/integrations/authentication/rejectedTokenTracker.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +12 -10
- package/dist/plus/integrations/collectionMetadata.js +204 -254
- package/dist/plus/integrations/collectionMetadata.js.map +1 -1
- package/dist/plus/integrations/constants.d.ts +60 -34
- package/dist/plus/integrations/constants.js +157 -132
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +253 -252
- package/dist/plus/integrations/context.js +0 -2
- package/dist/plus/integrations/errors.d.ts +26 -25
- package/dist/plus/integrations/errors.js +116 -140
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +36 -40
- package/dist/plus/integrations/index.js +46 -57
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +445 -440
- package/dist/plus/integrations/integrationService.js +1054 -1324
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +33 -31
- package/dist/plus/integrations/lite.js +84 -122
- package/dist/plus/integrations/lite.js.map +1 -1
- package/dist/plus/integrations/manager.d.ts +592 -580
- package/dist/plus/integrations/manager.js +0 -2
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +420 -415
- package/dist/plus/integrations/models/gitHostIntegration.js +1180 -1293
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +200 -190
- package/dist/plus/integrations/models/integration.js +577 -722
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issueCache.d.ts +15 -13
- package/dist/plus/integrations/models/issueCache.js +9 -7
- package/dist/plus/integrations/models/issueCache.js.map +1 -1
- package/dist/plus/integrations/models/issueReads.d.ts +108 -85
- package/dist/plus/integrations/models/issueReads.js +0 -2
- package/dist/plus/integrations/models/issuesIntegration.d.ts +72 -71
- package/dist/plus/integrations/models/issuesIntegration.js +160 -186
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts +9 -7
- package/dist/plus/integrations/models/pullRequestReads.js +0 -2
- package/dist/plus/integrations/providerFilters.d.ts +8 -20
- package/dist/plus/integrations/providerFilters.js +11 -7
- package/dist/plus/integrations/providerFilters.js.map +1 -1
- package/dist/plus/integrations/providers/accounts.d.ts +7 -5
- package/dist/plus/integrations/providers/accounts.js +21 -31
- package/dist/plus/integrations/providers/accounts.js.map +1 -1
- package/dist/plus/integrations/providers/apiClients.d.ts +13 -10
- package/dist/plus/integrations/providers/apiClients.js +51 -36
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +31 -29
- package/dist/plus/integrations/providers/apiConfig.js +18 -16
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts +69 -67
- package/dist/plus/integrations/providers/azure/azure.js +452 -577
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +228 -226
- package/dist/plus/integrations/providers/azure/models.js +223 -251
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +132 -131
- package/dist/plus/integrations/providers/azureDevOps.js +773 -931
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +50 -48
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +417 -585
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts +179 -179
- package/dist/plus/integrations/providers/bitbucket/models.js +96 -144
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +111 -109
- package/dist/plus/integrations/providers/bitbucket-server/models.js +102 -121
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +79 -79
- package/dist/plus/integrations/providers/bitbucket-server.js +205 -241
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +80 -79
- package/dist/plus/integrations/providers/bitbucket.js +390 -477
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts +5 -3
- package/dist/plus/integrations/providers/github/github.js +38 -45
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts +8 -5
- package/dist/plus/integrations/providers/github/github.utils.js +7 -4
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts +2 -3
- package/dist/plus/integrations/providers/github/models.js +2 -2
- package/dist/plus/integrations/providers/github.d.ts +174 -172
- package/dist/plus/integrations/providers/github.js +431 -523
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +67 -66
- package/dist/plus/integrations/providers/gitlab/gitlab.js +546 -757
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +7 -5
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +45 -46
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +109 -107
- package/dist/plus/integrations/providers/gitlab/models.js +74 -89
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +115 -114
- package/dist/plus/integrations/providers/gitlab.js +440 -528
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts +3 -1
- package/dist/plus/integrations/providers/issueSorts.js +66 -62
- package/dist/plus/integrations/providers/issueSorts.js.map +1 -1
- package/dist/plus/integrations/providers/jira-server.d.ts +90 -0
- package/dist/plus/integrations/providers/jira-server.js +322 -0
- package/dist/plus/integrations/providers/jira-server.js.map +1 -0
- package/dist/plus/integrations/providers/jira.d.ts +41 -39
- package/dist/plus/integrations/providers/jira.js +378 -440
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts +3 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.js +85 -89
- package/dist/plus/integrations/providers/jiraIssueByKey.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +63 -62
- package/dist/plus/integrations/providers/linear.js +315 -358
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +514 -503
- package/dist/plus/integrations/providers/models.js +816 -865
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts +35 -2
- package/dist/plus/integrations/providers/providerErrors.js +120 -81
- package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +299 -271
- package/dist/plus/integrations/providers/providersApi.js +1048 -1001
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts +21 -21
- package/dist/plus/integrations/providers/pullRequestReviews.js +64 -90
- package/dist/plus/integrations/providers/pullRequestReviews.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +35 -34
- package/dist/plus/integrations/providers/trello.js +136 -143
- package/dist/plus/integrations/providers/trello.js.map +1 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +4 -2
- package/dist/plus/integrations/providers/utils/providerPaging.js +131 -156
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -1
- package/dist/plus/integrations/providers/utils.d.ts +51 -50
- package/dist/plus/integrations/providers/utils.js +185 -296
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/broaden.d.ts +10 -8
- package/dist/plus/integrations/reads/broaden.js +320 -439
- package/dist/plus/integrations/reads/broaden.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +47 -45
- package/dist/plus/integrations/reads/context.js +0 -2
- package/dist/plus/integrations/reads/counts.d.ts +74 -72
- package/dist/plus/integrations/reads/counts.js +233 -314
- package/dist/plus/integrations/reads/counts.js.map +1 -1
- package/dist/plus/integrations/reads/cursors.d.ts +26 -24
- package/dist/plus/integrations/reads/cursors.js +80 -115
- package/dist/plus/integrations/reads/cursors.js.map +1 -1
- package/dist/plus/integrations/reads/drains.d.ts +24 -23
- package/dist/plus/integrations/reads/drains.js +225 -298
- package/dist/plus/integrations/reads/drains.js.map +1 -1
- package/dist/plus/integrations/reads/filters.d.ts +84 -80
- package/dist/plus/integrations/reads/filters.js +326 -414
- package/dist/plus/integrations/reads/filters.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts +14 -12
- package/dist/plus/integrations/reads/hierarchy.js +248 -332
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +11 -9
- package/dist/plus/integrations/reads/hierarchy.utils.js +109 -108
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts +28 -26
- package/dist/plus/integrations/reads/issueBatch.js +83 -85
- package/dist/plus/integrations/reads/issueBatch.js.map +1 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts +42 -33
- package/dist/plus/integrations/reads/issueTracker.js +265 -386
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
- package/dist/plus/integrations/reads/issues.d.ts +50 -47
- package/dist/plus/integrations/reads/issues.js +202 -331
- package/dist/plus/integrations/reads/issues.js.map +1 -1
- package/dist/plus/integrations/reads/ordering.d.ts +32 -30
- package/dist/plus/integrations/reads/ordering.js +47 -43
- package/dist/plus/integrations/reads/ordering.js.map +1 -1
- package/dist/plus/integrations/reads/paging.d.ts +59 -57
- package/dist/plus/integrations/reads/paging.js +244 -261
- package/dist/plus/integrations/reads/paging.js.map +1 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts +37 -35
- package/dist/plus/integrations/reads/pullRequests.js +95 -148
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts +15 -13
- package/dist/plus/integrations/reads/resolveRepository.js +147 -231
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts +29 -27
- package/dist/plus/integrations/reads/searchIssues.js +104 -153
- package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts +20 -18
- package/dist/plus/integrations/reads/searchPullRequests.js +91 -113
- package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
- package/dist/plus/integrations/reads/sweeps.d.ts +6 -4
- package/dist/plus/integrations/reads/sweeps.js +143 -178
- package/dist/plus/integrations/reads/sweeps.js.map +1 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts +24 -16
- package/dist/plus/integrations/reads/trackerIssue.js +52 -49
- package/dist/plus/integrations/reads/trackerIssue.js.map +1 -1
- package/dist/plus/integrations/reads/warnings.d.ts +10 -7
- package/dist/plus/integrations/reads/warnings.js +264 -291
- package/dist/plus/integrations/reads/warnings.js.map +1 -1
- package/dist/plus/integrations/results.d.ts +201 -199
- package/dist/plus/integrations/results.js +105 -119
- package/dist/plus/integrations/results.js.map +1 -1
- package/dist/plus/integrations/telemetry.d.ts +7 -5
- package/dist/plus/integrations/telemetry.js +9 -9
- package/dist/plus/integrations/telemetry.js.map +1 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts +21 -0
- package/dist/plus/integrations/utils/domain.utils.js +55 -22
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts +30 -6
- package/dist/plus/integrations/utils/integration.utils.js +154 -161
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts +9 -7
- package/dist/utils/array.js +110 -126
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/base64.js +2 -2
- package/dist/utils/brand.d.ts +4 -3
- package/dist/utils/brand.js +0 -2
- package/dist/utils/cancellation.d.ts +24 -24
- package/dist/utils/cancellation.js +152 -167
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts +31 -37
- package/dist/utils/charCode.js +41 -37
- package/dist/utils/charCode.js.map +1 -1
- package/dist/utils/coalescedRun.d.ts +10 -8
- package/dist/utils/coalescedRun.js +39 -41
- package/dist/utils/coalescedRun.js.map +1 -1
- package/dist/utils/color.d.ts +137 -135
- package/dist/utils/color.js +535 -660
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/counter.d.ts +5 -3
- package/dist/utils/counter.js +19 -17
- package/dist/utils/counter.js.map +1 -1
- package/dist/utils/crypto.d.ts +2 -2
- package/dist/utils/crypto.js +2 -2
- package/dist/utils/date.d.ts +10 -9
- package/dist/utils/date.js +312 -350
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.d.ts +45 -43
- package/dist/utils/debounce.js +175 -206
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts +3 -1
- package/dist/utils/decorators/debounce.js +16 -19
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts +13 -11
- package/dist/utils/decorators/gate.js +97 -124
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts +25 -24
- package/dist/utils/decorators/log.js +166 -227
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts +10 -8
- package/dist/utils/decorators/memoize.js +49 -57
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts +2 -0
- package/dist/utils/decorators/resolver.js +64 -75
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts +15 -14
- package/dist/utils/decorators/sequentialize.js +61 -80
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts +2 -0
- package/dist/utils/decorators/serializable.js +30 -39
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts +23 -21
- package/dist/utils/dedupedAsyncCache.js +63 -66
- package/dist/utils/dedupedAsyncCache.js.map +1 -1
- package/dist/utils/diff.d.ts +2 -0
- package/dist/utils/diff.js +41 -51
- package/dist/utils/diff.js.map +1 -1
- package/dist/utils/disposable.d.ts +15 -13
- package/dist/utils/disposable.js +71 -80
- package/dist/utils/disposable.js.map +1 -1
- package/dist/utils/dom.d.ts +45 -0
- package/dist/utils/dom.js +106 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/encoding.d.ts +2 -0
- package/dist/utils/encoding.js +7 -5
- package/dist/utils/encoding.js.map +1 -1
- package/dist/utils/env/browser/base64.d.ts +2 -0
- package/dist/utils/env/browser/base64.js +32 -34
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts +2 -0
- package/dist/utils/env/browser/crypto.js +17 -13
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.js +6 -2
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts +2 -0
- package/dist/utils/env/browser/hex.js +271 -29
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.js +17 -13
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts +3 -1
- package/dist/utils/env/browser/logScope.js +39 -43
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.js +211 -184
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts +3 -0
- package/dist/utils/env/browser/platform.js +11 -4
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts +2 -0
- package/dist/utils/env/node/base64.js +13 -11
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts +2 -0
- package/dist/utils/env/node/crypto.js +13 -9
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +66 -65
- package/dist/utils/env/node/exec.js +255 -267
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.js +7 -3
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts +2 -0
- package/dist/utils/env/node/hex.js +10 -6
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts +2 -2
- package/dist/utils/env/node/hrtime.js +2 -2
- package/dist/utils/env/node/logScope.d.ts +3 -1
- package/dist/utils/env/node/logScope.js +52 -42
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts +3 -0
- package/dist/utils/env/node/platform.js +11 -4
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/error.d.ts +8 -6
- package/dist/utils/error.js +16 -14
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/event.d.ts +27 -25
- package/dist/utils/event.js +141 -170
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts +15 -14
- package/dist/utils/formatter.js +96 -129
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/fs.d.ts +2 -2
- package/dist/utils/fs.js +2 -2
- package/dist/utils/function.d.ts +5 -6
- package/dist/utils/function.js +73 -90
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/fuzzy.d.ts +18 -16
- package/dist/utils/fuzzy.js +121 -127
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/gitRefs.d.ts +11 -0
- package/dist/utils/gitRefs.js +21 -0
- package/dist/utils/gitRefs.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +49 -47
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/hex.d.ts +2 -2
- package/dist/utils/hex.js +2 -2
- package/dist/utils/hostingServiceType.d.ts +8 -0
- package/dist/utils/hostingServiceType.js +0 -0
- package/dist/utils/hrtime.d.ts +4 -2
- package/dist/utils/hrtime.js +8 -5
- package/dist/utils/hrtime.js.map +1 -1
- package/dist/utils/iterable.d.ts +3 -1
- package/dist/utils/iterable.js +591 -616
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/keys/chord.d.ts +27 -25
- package/dist/utils/keys/chord.js +108 -122
- package/dist/utils/keys/chord.js.map +1 -1
- package/dist/utils/keys/keybinding.d.ts +98 -22
- package/dist/utils/keys/keybinding.js +151 -53
- package/dist/utils/keys/keybinding.js.map +1 -1
- package/dist/utils/keys/keymapDispatcher.d.ts +66 -0
- package/dist/utils/keys/keymapDispatcher.js +187 -0
- package/dist/utils/keys/keymapDispatcher.js.map +1 -0
- package/dist/utils/lazy.d.ts +14 -12
- package/dist/utils/lazy.js +35 -36
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/loggable.d.ts +3 -1
- package/dist/utils/loggable.js +6 -2
- package/dist/utils/loggable.js.map +1 -1
- package/dist/utils/logger.d.ts +48 -46
- package/dist/utils/logger.js +219 -304
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.d.ts +30 -28
- package/dist/utils/logger.scoped.js +133 -147
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts +34 -32
- package/dist/utils/lruMap.js +97 -101
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/markdown.d.ts +5 -3
- package/dist/utils/markdown.js +52 -88
- package/dist/utils/markdown.js.map +1 -1
- package/dist/utils/mru.d.ts +13 -11
- package/dist/utils/mru.js +57 -62
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.d.ts +9 -34
- package/dist/utils/object.js +132 -191
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +36 -34
- package/dist/utils/paging.js +42 -45
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.d.ts +4 -1
- package/dist/utils/path.js +129 -162
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/pausedOperation.d.ts +42 -0
- package/dist/utils/pausedOperation.js +62 -0
- package/dist/utils/pausedOperation.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -2
- package/dist/utils/platform.js +2 -2
- package/dist/utils/plural.d.ts +21 -0
- package/dist/utils/plural.js +136 -0
- package/dist/utils/plural.js.map +1 -0
- package/dist/utils/promise.d.ts +19 -18
- package/dist/utils/promise.js +323 -360
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +331 -330
- package/dist/utils/promiseCache.js +602 -717
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/resourceUsage.d.ts +2 -0
- package/dist/utils/resourceUsage.js +0 -2
- package/dist/utils/searchTree.d.ts +51 -49
- package/dist/utils/searchTree.js +306 -396
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts +33 -32
- package/dist/utils/stopwatch.js +67 -81
- package/dist/utils/stopwatch.js.map +1 -1
- package/dist/utils/string.d.ts +17 -24
- package/dist/utils/string.js +787 -803
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts +15 -14
- package/dist/utils/subscriptionManager.js +36 -33
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts +64 -62
- package/dist/utils/trie.js +438 -580
- package/dist/utils/trie.js.map +1 -1
- package/dist/utils/types.d.ts +8 -16
- package/dist/utils/types.js +0 -2
- package/dist/utils/uri.d.ts +27 -25
- package/dist/utils/uri.js +42 -42
- package/dist/utils/uri.js.map +1 -1
- package/dist/utils/validation.d.ts +13 -12
- package/dist/utils/validation.js +17 -23
- package/dist/utils/validation.js.map +1 -1
- package/dist/utils/version.d.ts +6 -5
- package/dist/utils/version.js +77 -104
- package/dist/utils/version.js.map +1 -1
- package/docs/integrations.md +70 -26
- package/package.json +18 -8
- package/dist/git/cache.d.ts.map +0 -1
- package/dist/git/context.d.ts.map +0 -1
- package/dist/git/errors.d.ts.map +0 -1
- package/dist/git/features.d.ts.map +0 -1
- package/dist/git/gitHealth.d.ts.map +0 -1
- package/dist/git/models/author.d.ts.map +0 -1
- package/dist/git/models/author.js.map +0 -1
- package/dist/git/models/autolink.d.ts.map +0 -1
- package/dist/git/models/autolink.js.map +0 -1
- package/dist/git/models/blame.d.ts.map +0 -1
- package/dist/git/models/blame.js.map +0 -1
- package/dist/git/models/branch.d.ts.map +0 -1
- package/dist/git/models/commit.d.ts.map +0 -1
- package/dist/git/models/contributor.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.d.ts.map +0 -1
- package/dist/git/models/defaultBranch.js.map +0 -1
- package/dist/git/models/diff.d.ts.map +0 -1
- package/dist/git/models/diff.js.map +0 -1
- package/dist/git/models/file.d.ts.map +0 -1
- package/dist/git/models/file.js.map +0 -1
- package/dist/git/models/fileChange.d.ts.map +0 -1
- package/dist/git/models/fileStatus.d.ts.map +0 -1
- package/dist/git/models/graph.d.ts.map +0 -1
- package/dist/git/models/graphSearch.d.ts.map +0 -1
- package/dist/git/models/graphSearch.js.map +0 -1
- package/dist/git/models/graphSession.d.ts.map +0 -1
- package/dist/git/models/issue.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +0 -1
- package/dist/git/models/issueOrPullRequest.js.map +0 -1
- package/dist/git/models/lineRange.d.ts.map +0 -1
- package/dist/git/models/lineRange.js.map +0 -1
- package/dist/git/models/log.d.ts.map +0 -1
- package/dist/git/models/log.js.map +0 -1
- package/dist/git/models/mergeConflicts.d.ts.map +0 -1
- package/dist/git/models/mergeConflicts.js.map +0 -1
- package/dist/git/models/patch.d.ts.map +0 -1
- package/dist/git/models/patch.js.map +0 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +0 -1
- package/dist/git/models/pausedOperationStatus.js.map +0 -1
- package/dist/git/models/pullRequest.d.ts.map +0 -1
- package/dist/git/models/rebase.d.ts.map +0 -1
- package/dist/git/models/rebase.js.map +0 -1
- package/dist/git/models/reference.d.ts.map +0 -1
- package/dist/git/models/reference.js.map +0 -1
- package/dist/git/models/reflog.d.ts.map +0 -1
- package/dist/git/models/remote.d.ts.map +0 -1
- package/dist/git/models/remoteProvider.d.ts.map +0 -1
- package/dist/git/models/remoteResource.d.ts.map +0 -1
- package/dist/git/models/repository.d.ts.map +0 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +0 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +0 -1
- package/dist/git/models/repositoryMetadata.js.map +0 -1
- package/dist/git/models/resourceDescriptor.d.ts.map +0 -1
- package/dist/git/models/resourceDescriptor.js.map +0 -1
- package/dist/git/models/revision.d.ts.map +0 -1
- package/dist/git/models/search.d.ts.map +0 -1
- package/dist/git/models/shortlog.d.ts.map +0 -1
- package/dist/git/models/shortlog.js.map +0 -1
- package/dist/git/models/signature.d.ts.map +0 -1
- package/dist/git/models/signature.js.map +0 -1
- package/dist/git/models/staging.d.ts.map +0 -1
- package/dist/git/models/staging.js.map +0 -1
- package/dist/git/models/stash.d.ts.map +0 -1
- package/dist/git/models/stash.js.map +0 -1
- package/dist/git/models/status.d.ts.map +0 -1
- package/dist/git/models/statusFile.d.ts.map +0 -1
- package/dist/git/models/tag.d.ts.map +0 -1
- package/dist/git/models/tree.d.ts.map +0 -1
- package/dist/git/models/tree.js.map +0 -1
- package/dist/git/models/user.d.ts.map +0 -1
- package/dist/git/models/user.js.map +0 -1
- package/dist/git/models/worktree.d.ts.map +0 -1
- package/dist/git/parsers/diffParser.d.ts.map +0 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +0 -1
- package/dist/git/providers/blame.d.ts.map +0 -1
- package/dist/git/providers/blame.js.map +0 -1
- package/dist/git/providers/branches.d.ts.map +0 -1
- package/dist/git/providers/branches.js.map +0 -1
- package/dist/git/providers/commits.d.ts.map +0 -1
- package/dist/git/providers/commits.js.map +0 -1
- package/dist/git/providers/config.d.ts.map +0 -1
- package/dist/git/providers/config.js.map +0 -1
- package/dist/git/providers/contributors.d.ts.map +0 -1
- package/dist/git/providers/contributors.js.map +0 -1
- package/dist/git/providers/diff.d.ts.map +0 -1
- package/dist/git/providers/diff.js.map +0 -1
- package/dist/git/providers/graph.d.ts.map +0 -1
- package/dist/git/providers/graph.js.map +0 -1
- package/dist/git/providers/maintenance.d.ts.map +0 -1
- package/dist/git/providers/maintenance.js.map +0 -1
- package/dist/git/providers/operations.d.ts.map +0 -1
- package/dist/git/providers/operations.js.map +0 -1
- package/dist/git/providers/patch.d.ts.map +0 -1
- package/dist/git/providers/patch.js.map +0 -1
- package/dist/git/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git/providers/pausedOperations.js.map +0 -1
- package/dist/git/providers/provider.d.ts.map +0 -1
- package/dist/git/providers/provider.js.map +0 -1
- package/dist/git/providers/refs.d.ts.map +0 -1
- package/dist/git/providers/refs.js.map +0 -1
- package/dist/git/providers/remotes.d.ts.map +0 -1
- package/dist/git/providers/remotes.js.map +0 -1
- package/dist/git/providers/revision.d.ts.map +0 -1
- package/dist/git/providers/revision.js.map +0 -1
- package/dist/git/providers/shared/remotes.d.ts.map +0 -1
- package/dist/git/providers/staging.d.ts.map +0 -1
- package/dist/git/providers/staging.js.map +0 -1
- package/dist/git/providers/stash.d.ts.map +0 -1
- package/dist/git/providers/stash.js.map +0 -1
- package/dist/git/providers/status.d.ts.map +0 -1
- package/dist/git/providers/status.js.map +0 -1
- package/dist/git/providers/tags.d.ts.map +0 -1
- package/dist/git/providers/tags.js.map +0 -1
- package/dist/git/providers/types.d.ts.map +0 -1
- package/dist/git/providers/types.js.map +0 -1
- package/dist/git/providers/worktrees.d.ts.map +0 -1
- package/dist/git/providers/worktrees.js.map +0 -1
- package/dist/git/remotes/azure-devops.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +0 -1
- package/dist/git/remotes/bitbucket.d.ts.map +0 -1
- package/dist/git/remotes/custom.d.ts.map +0 -1
- package/dist/git/remotes/gerrit.d.ts.map +0 -1
- package/dist/git/remotes/gitea.d.ts.map +0 -1
- package/dist/git/remotes/github.d.ts.map +0 -1
- package/dist/git/remotes/gitlab.d.ts.map +0 -1
- package/dist/git/remotes/google-source.d.ts.map +0 -1
- package/dist/git/remotes/matcher.d.ts.map +0 -1
- package/dist/git/repositoryService.d.ts.map +0 -1
- package/dist/git/run.types.d.ts.map +0 -1
- package/dist/git/run.types.js.map +0 -1
- package/dist/git/service.d.ts.map +0 -1
- package/dist/git/utils/autolink.utils.d.ts.map +0 -1
- package/dist/git/utils/blame.utils.d.ts.map +0 -1
- package/dist/git/utils/branch.utils.d.ts.map +0 -1
- package/dist/git/utils/commit.utils.d.ts.map +0 -1
- package/dist/git/utils/config.utils.d.ts.map +0 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +0 -1
- package/dist/git/utils/contributor.utils.d.ts.map +0 -1
- package/dist/git/utils/fetch.utils.d.ts.map +0 -1
- package/dist/git/utils/fileStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/graph.utils.d.ts.map +0 -1
- package/dist/git/utils/issue.utils.d.ts.map +0 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +0 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +0 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +0 -1
- package/dist/git/utils/reachability.utils.d.ts.map +0 -1
- package/dist/git/utils/rebase.utils.d.ts.map +0 -1
- package/dist/git/utils/reference.utils.d.ts.map +0 -1
- package/dist/git/utils/remote.utils.d.ts.map +0 -1
- package/dist/git/utils/repository.utils.d.ts.map +0 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +0 -1
- package/dist/git/utils/revision.utils.d.ts.map +0 -1
- package/dist/git/utils/search.utils.d.ts.map +0 -1
- package/dist/git/utils/sorting.d.ts.map +0 -1
- package/dist/git/utils/sshKey.utils.d.ts.map +0 -1
- package/dist/git/utils/status.utils.d.ts.map +0 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +0 -1
- package/dist/git/utils/tag.utils.d.ts.map +0 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +0 -1
- package/dist/git/utils/uriAuthority.d.ts.map +0 -1
- package/dist/git/utils/user.utils.d.ts.map +0 -1
- package/dist/git/utils/worktree.utils.d.ts.map +0 -1
- package/dist/git/watching/changeEvent.d.ts.map +0 -1
- package/dist/git/watching/classifyChange.d.ts.map +0 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +0 -1
- package/dist/git/watching/initWatcher.d.ts.map +0 -1
- package/dist/git/watching/provider.d.ts.map +0 -1
- package/dist/git/watching/provider.js.map +0 -1
- package/dist/git/watching/watchGroup.d.ts.map +0 -1
- package/dist/git/watching/watchService.d.ts.map +0 -1
- package/dist/git/watching/watchSession.d.ts.map +0 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +0 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.errors.js.map +0 -1
- package/dist/git-cli/exec/exec.js.map +0 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +0 -1
- package/dist/git-cli/exec/exec.types.js.map +0 -1
- package/dist/git-cli/exec/features.d.ts.map +0 -1
- package/dist/git-cli/exec/features.js.map +0 -1
- package/dist/git-cli/exec/git.d.ts.map +0 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +0 -1
- package/dist/git-cli/exec/locator.d.ts.map +0 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/statusParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +0 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +0 -1
- package/dist/git-cli/providers/blame.d.ts.map +0 -1
- package/dist/git-cli/providers/branches.d.ts.map +0 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +0 -1
- package/dist/git-cli/providers/commits.d.ts.map +0 -1
- package/dist/git-cli/providers/config.d.ts.map +0 -1
- package/dist/git-cli/providers/contributors.d.ts.map +0 -1
- package/dist/git-cli/providers/diff.d.ts.map +0 -1
- package/dist/git-cli/providers/graph.d.ts.map +0 -1
- package/dist/git-cli/providers/maintenance.d.ts.map +0 -1
- package/dist/git-cli/providers/operations.d.ts.map +0 -1
- package/dist/git-cli/providers/patch.d.ts.map +0 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +0 -1
- package/dist/git-cli/providers/refs.d.ts.map +0 -1
- package/dist/git-cli/providers/remotes.d.ts.map +0 -1
- package/dist/git-cli/providers/revision.d.ts.map +0 -1
- package/dist/git-cli/providers/staging.d.ts.map +0 -1
- package/dist/git-cli/providers/stash.d.ts.map +0 -1
- package/dist/git-cli/providers/status.d.ts.map +0 -1
- package/dist/git-cli/providers/tags.d.ts.map +0 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +0 -1
- package/dist/git-cli/service.d.ts.map +0 -1
- package/dist/ipc/discovery.d.ts.map +0 -1
- package/dist/ipc/ipcServer.d.ts.map +0 -1
- package/dist/plus/agents/agentCapabilities.d.ts.map +0 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +0 -1
- package/dist/plus/agents/providers/gkAgentProvider.d.ts.map +0 -1
- package/dist/plus/agents/sanitizePrompt.d.ts.map +0 -1
- package/dist/plus/agents/stateMachine.d.ts.map +0 -1
- package/dist/plus/agents/types.d.ts.map +0 -1
- package/dist/plus/ai/constants.d.ts.map +0 -1
- package/dist/plus/ai/errors.d.ts.map +0 -1
- package/dist/plus/ai/models/conversation.d.ts.map +0 -1
- package/dist/plus/ai/models/model.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.d.ts.map +0 -1
- package/dist/plus/ai/models/promptTemplates.js.map +0 -1
- package/dist/plus/ai/models/provider.d.ts.map +0 -1
- package/dist/plus/ai/models/provider.js.map +0 -1
- package/dist/plus/ai/models/results.d.ts.map +0 -1
- package/dist/plus/ai/models/results.js.map +0 -1
- package/dist/plus/ai/prompts.d.ts.map +0 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.d.ts.map +0 -1
- package/dist/plus/ai/providers/context.js.map +0 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +0 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/responseFormatCache.d.ts.map +0 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +0 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/results.utils.d.ts.map +0 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/config.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.d.ts.map +0 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +0 -1
- package/dist/plus/git-github/api/issueSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/pullRequestSearchQuery.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.d.ts.map +0 -1
- package/dist/plus/git-github/api/token.js.map +0 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.d.ts.map +0 -1
- package/dist/plus/git-github/api/types.js.map +0 -1
- package/dist/plus/git-github/context.d.ts.map +0 -1
- package/dist/plus/git-github/models.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +0 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +0 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +0 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/models.d.ts.map +0 -1
- package/dist/plus/integrations/authentication/rejectedTokenTracker.d.ts.map +0 -1
- package/dist/plus/integrations/collectionMetadata.d.ts.map +0 -1
- package/dist/plus/integrations/constants.d.ts.map +0 -1
- package/dist/plus/integrations/context.d.ts.map +0 -1
- package/dist/plus/integrations/context.js.map +0 -1
- package/dist/plus/integrations/errors.d.ts.map +0 -1
- package/dist/plus/integrations/index.d.ts.map +0 -1
- package/dist/plus/integrations/integrationService.d.ts.map +0 -1
- package/dist/plus/integrations/lite.d.ts.map +0 -1
- package/dist/plus/integrations/manager.d.ts.map +0 -1
- package/dist/plus/integrations/manager.js.map +0 -1
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/integration.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueCache.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/issueReads.js.map +0 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.d.ts.map +0 -1
- package/dist/plus/integrations/models/pullRequestReads.js.map +0 -1
- package/dist/plus/integrations/providerFilters.d.ts.map +0 -1
- package/dist/plus/integrations/providers/accounts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiClients.d.ts.map +0 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azure/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +0 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/github/models.js.map +0 -1
- package/dist/plus/integrations/providers/github.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/gitlab.d.ts.map +0 -1
- package/dist/plus/integrations/providers/issueSorts.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jira.d.ts.map +0 -1
- package/dist/plus/integrations/providers/jiraIssueByKey.d.ts.map +0 -1
- package/dist/plus/integrations/providers/linear.d.ts.map +0 -1
- package/dist/plus/integrations/providers/models.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providerErrors.d.ts.map +0 -1
- package/dist/plus/integrations/providers/providersApi.d.ts.map +0 -1
- package/dist/plus/integrations/providers/pullRequestReviews.d.ts.map +0 -1
- package/dist/plus/integrations/providers/trello.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +0 -1
- package/dist/plus/integrations/providers/utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/broaden.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.d.ts.map +0 -1
- package/dist/plus/integrations/reads/context.js.map +0 -1
- package/dist/plus/integrations/reads/counts.d.ts.map +0 -1
- package/dist/plus/integrations/reads/cursors.d.ts.map +0 -1
- package/dist/plus/integrations/reads/drains.d.ts.map +0 -1
- package/dist/plus/integrations/reads/filters.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +0 -1
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueBatch.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +0 -1
- package/dist/plus/integrations/reads/issues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/ordering.d.ts.map +0 -1
- package/dist/plus/integrations/reads/paging.d.ts.map +0 -1
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchIssues.d.ts.map +0 -1
- package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +0 -1
- package/dist/plus/integrations/reads/sweeps.d.ts.map +0 -1
- package/dist/plus/integrations/reads/trackerIssue.d.ts.map +0 -1
- package/dist/plus/integrations/reads/warnings.d.ts.map +0 -1
- package/dist/plus/integrations/results.d.ts.map +0 -1
- package/dist/plus/integrations/telemetry.d.ts.map +0 -1
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +0 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +0 -1
- package/dist/utils/array.d.ts.map +0 -1
- package/dist/utils/base64.d.ts.map +0 -1
- package/dist/utils/base64.js.map +0 -1
- package/dist/utils/brand.d.ts.map +0 -1
- package/dist/utils/brand.js.map +0 -1
- package/dist/utils/cancellation.d.ts.map +0 -1
- package/dist/utils/charCode.d.ts.map +0 -1
- package/dist/utils/coalescedRun.d.ts.map +0 -1
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/counter.d.ts.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/debounce.d.ts.map +0 -1
- package/dist/utils/decorators/gate.d.ts.map +0 -1
- package/dist/utils/decorators/log.d.ts.map +0 -1
- package/dist/utils/decorators/memoize.d.ts.map +0 -1
- package/dist/utils/decorators/resolver.d.ts.map +0 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +0 -1
- package/dist/utils/decorators/serializable.d.ts.map +0 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +0 -1
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/disposable.d.ts.map +0 -1
- package/dist/utils/encoding.d.ts.map +0 -1
- package/dist/utils/env/browser/base64.d.ts.map +0 -1
- package/dist/utils/env/browser/crypto.d.ts.map +0 -1
- package/dist/utils/env/browser/fs.d.ts.map +0 -1
- package/dist/utils/env/browser/hex.d.ts.map +0 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +0 -1
- package/dist/utils/env/browser/logScope.d.ts.map +0 -1
- package/dist/utils/env/browser/md5.d.ts.map +0 -1
- package/dist/utils/env/browser/platform.d.ts.map +0 -1
- package/dist/utils/env/node/base64.d.ts.map +0 -1
- package/dist/utils/env/node/crypto.d.ts.map +0 -1
- package/dist/utils/env/node/exec.d.ts.map +0 -1
- package/dist/utils/env/node/fs.d.ts.map +0 -1
- package/dist/utils/env/node/hex.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.d.ts.map +0 -1
- package/dist/utils/env/node/hrtime.js.map +0 -1
- package/dist/utils/env/node/logScope.d.ts.map +0 -1
- package/dist/utils/env/node/platform.d.ts.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/event.d.ts.map +0 -1
- package/dist/utils/formatter.d.ts.map +0 -1
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/function.d.ts.map +0 -1
- package/dist/utils/fuzzy.d.ts.map +0 -1
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hex.d.ts.map +0 -1
- package/dist/utils/hex.js.map +0 -1
- package/dist/utils/hrtime.d.ts.map +0 -1
- package/dist/utils/iterable.d.ts.map +0 -1
- package/dist/utils/keys/chord.d.ts.map +0 -1
- package/dist/utils/keys/keybinding.d.ts.map +0 -1
- package/dist/utils/lazy.d.ts.map +0 -1
- package/dist/utils/loggable.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.scoped.d.ts.map +0 -1
- package/dist/utils/lruMap.d.ts.map +0 -1
- package/dist/utils/markdown.d.ts.map +0 -1
- package/dist/utils/mru.d.ts.map +0 -1
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/paging.d.ts.map +0 -1
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/promise.d.ts.map +0 -1
- package/dist/utils/promiseCache.d.ts.map +0 -1
- package/dist/utils/resourceUsage.d.ts.map +0 -1
- package/dist/utils/resourceUsage.js.map +0 -1
- package/dist/utils/searchTree.d.ts.map +0 -1
- package/dist/utils/stopwatch.d.ts.map +0 -1
- package/dist/utils/string.d.ts.map +0 -1
- package/dist/utils/subscriptionManager.d.ts.map +0 -1
- package/dist/utils/trie.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js.map +0 -1
- package/dist/utils/uri.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/version.d.ts.map +0 -1
- package/src/git/cache.ts +0 -1859
- package/src/git/context.ts +0 -301
- package/src/git/errors.ts +0 -1168
- package/src/git/features.ts +0 -98
- package/src/git/gitHealth.ts +0 -522
- package/src/git/models/author.ts +0 -19
- package/src/git/models/autolink.ts +0 -59
- package/src/git/models/blame.ts +0 -46
- package/src/git/models/branch.ts +0 -237
- package/src/git/models/commit.ts +0 -673
- package/src/git/models/contributor.ts +0 -84
- package/src/git/models/defaultBranch.ts +0 -6
- package/src/git/models/diff.ts +0 -74
- package/src/git/models/file.ts +0 -29
- package/src/git/models/fileChange.ts +0 -82
- package/src/git/models/fileStatus.ts +0 -36
- package/src/git/models/graph.ts +0 -444
- package/src/git/models/graphSearch.ts +0 -53
- package/src/git/models/graphSession.ts +0 -102
- package/src/git/models/issue.ts +0 -273
- package/src/git/models/issueOrPullRequest.ts +0 -20
- package/src/git/models/lineRange.ts +0 -7
- package/src/git/models/log.ts +0 -21
- package/src/git/models/mergeConflicts.ts +0 -19
- package/src/git/models/patch.ts +0 -25
- package/src/git/models/pausedOperationStatus.ts +0 -63
- package/src/git/models/pullRequest.ts +0 -357
- package/src/git/models/rebase.ts +0 -60
- package/src/git/models/reference.ts +0 -80
- package/src/git/models/reflog.ts +0 -88
- package/src/git/models/remote.ts +0 -100
- package/src/git/models/remoteProvider.ts +0 -291
- package/src/git/models/remoteResource.ts +0 -87
- package/src/git/models/repository.ts +0 -510
- package/src/git/models/repositoryChangeEvent.ts +0 -30
- package/src/git/models/repositoryIdentities.ts +0 -99
- package/src/git/models/repositoryMetadata.ts +0 -12
- package/src/git/models/resourceDescriptor.ts +0 -28
- package/src/git/models/revision.ts +0 -12
- package/src/git/models/search.ts +0 -138
- package/src/git/models/shortlog.ts +0 -6
- package/src/git/models/signature.ts +0 -45
- package/src/git/models/staging.ts +0 -27
- package/src/git/models/stash.ts +0 -6
- package/src/git/models/status.ts +0 -246
- package/src/git/models/statusFile.ts +0 -131
- package/src/git/models/tag.ts +0 -76
- package/src/git/models/tree.ts +0 -10
- package/src/git/models/user.ts +0 -7
- package/src/git/models/worktree.ts +0 -160
- package/src/git/parsers/diffParser.ts +0 -648
- package/src/git/parsers/rebaseTodoParser.ts +0 -169
- package/src/git/providers/blame.ts +0 -40
- package/src/git/providers/branches.ts +0 -143
- package/src/git/providers/commits.ts +0 -174
- package/src/git/providers/config.ts +0 -167
- package/src/git/providers/contributors.ts +0 -34
- package/src/git/providers/diff.ts +0 -133
- package/src/git/providers/graph.ts +0 -95
- package/src/git/providers/maintenance.ts +0 -224
- package/src/git/providers/operations.ts +0 -164
- package/src/git/providers/patch.ts +0 -31
- package/src/git/providers/pausedOperations.ts +0 -23
- package/src/git/providers/provider.ts +0 -64
- package/src/git/providers/refs.ts +0 -68
- package/src/git/providers/remotes.ts +0 -33
- package/src/git/providers/revision.ts +0 -32
- package/src/git/providers/shared/remotes.ts +0 -95
- package/src/git/providers/staging.ts +0 -36
- package/src/git/providers/stash.ts +0 -51
- package/src/git/providers/status.ts +0 -48
- package/src/git/providers/tags.ts +0 -29
- package/src/git/providers/types.ts +0 -33
- package/src/git/providers/worktrees.ts +0 -37
- package/src/git/remotes/azure-devops.ts +0 -361
- package/src/git/remotes/bitbucket-server.ts +0 -189
- package/src/git/remotes/bitbucket.ts +0 -142
- package/src/git/remotes/custom.ts +0 -162
- package/src/git/remotes/gerrit.ts +0 -186
- package/src/git/remotes/gitea.ts +0 -184
- package/src/git/remotes/github.ts +0 -236
- package/src/git/remotes/gitlab.ts +0 -270
- package/src/git/remotes/google-source.ts +0 -51
- package/src/git/remotes/matcher.ts +0 -215
- package/src/git/repositoryService.ts +0 -180
- package/src/git/run.types.ts +0 -156
- package/src/git/service.ts +0 -369
- package/src/git/utils/autolink.utils.ts +0 -202
- package/src/git/utils/blame.utils.ts +0 -298
- package/src/git/utils/branch.utils.ts +0 -165
- package/src/git/utils/commit.utils.ts +0 -89
- package/src/git/utils/config.utils.ts +0 -8
- package/src/git/utils/conflictResolution.utils.ts +0 -157
- package/src/git/utils/contributor.utils.ts +0 -105
- package/src/git/utils/fetch.utils.ts +0 -48
- package/src/git/utils/fileStatus.utils.ts +0 -62
- package/src/git/utils/graph.utils.ts +0 -46
- package/src/git/utils/issue.utils.ts +0 -187
- package/src/git/utils/issueOrPullRequest.utils.ts +0 -23
- package/src/git/utils/mergeConflicts.utils.ts +0 -21
- package/src/git/utils/pausedOperationStatus.utils.ts +0 -184
- package/src/git/utils/pullRequest.utils.ts +0 -244
- package/src/git/utils/reachability.utils.ts +0 -180
- package/src/git/utils/rebase.utils.ts +0 -128
- package/src/git/utils/reference.utils.ts +0 -267
- package/src/git/utils/remote.utils.ts +0 -146
- package/src/git/utils/repository.utils.ts +0 -18
- package/src/git/utils/resourceDescriptor.utils.ts +0 -26
- package/src/git/utils/revision.utils.ts +0 -149
- package/src/git/utils/search.utils.ts +0 -624
- package/src/git/utils/sorting.ts +0 -329
- package/src/git/utils/sshKey.utils.ts +0 -30
- package/src/git/utils/status.utils.ts +0 -115
- package/src/git/utils/statusFile.utils.ts +0 -182
- package/src/git/utils/tag.utils.ts +0 -17
- package/src/git/utils/tooltip.utils.ts +0 -37
- package/src/git/utils/uriAuthority.ts +0 -34
- package/src/git/utils/user.utils.ts +0 -20
- package/src/git/utils/worktree.utils.ts +0 -21
- package/src/git/watching/changeEvent.ts +0 -95
- package/src/git/watching/classifyChange.ts +0 -104
- package/src/git/watching/gitIgnoreFilter.ts +0 -134
- package/src/git/watching/initWatcher.ts +0 -81
- package/src/git/watching/provider.ts +0 -24
- package/src/git/watching/watchGroup.ts +0 -185
- package/src/git/watching/watchService.ts +0 -430
- package/src/git/watching/watchSession.ts +0 -439
- package/src/git/watching/watcherPatterns.ts +0 -51
- package/src/git-cli/cliGitProvider.ts +0 -461
- package/src/git-cli/exec/exec.errors.ts +0 -1
- package/src/git-cli/exec/exec.ts +0 -11
- package/src/git-cli/exec/exec.types.ts +0 -8
- package/src/git-cli/exec/features.ts +0 -2
- package/src/git-cli/exec/git.ts +0 -1371
- package/src/git-cli/exec/gitQueue.ts +0 -326
- package/src/git-cli/exec/locator.ts +0 -157
- package/src/git-cli/parsers/blameParser.ts +0 -374
- package/src/git-cli/parsers/indexParser.ts +0 -192
- package/src/git-cli/parsers/logParser.ts +0 -1365
- package/src/git-cli/parsers/mergeTreeParser.ts +0 -22
- package/src/git-cli/parsers/refParser.ts +0 -110
- package/src/git-cli/parsers/reflogParser.ts +0 -153
- package/src/git-cli/parsers/remoteParser.ts +0 -95
- package/src/git-cli/parsers/shortlogParser.ts +0 -59
- package/src/git-cli/parsers/signatureParser.ts +0 -162
- package/src/git-cli/parsers/sshSignatureParser.ts +0 -85
- package/src/git-cli/parsers/statusParser.ts +0 -209
- package/src/git-cli/parsers/treeParser.ts +0 -61
- package/src/git-cli/parsers/worktreeParser.ts +0 -111
- package/src/git-cli/providers/blame.ts +0 -598
- package/src/git-cli/providers/branches.ts +0 -1931
- package/src/git-cli/providers/commitFilesetUtils.ts +0 -45
- package/src/git-cli/providers/commits.ts +0 -1856
- package/src/git-cli/providers/config.ts +0 -1025
- package/src/git-cli/providers/contributors.ts +0 -360
- package/src/git-cli/providers/diff.ts +0 -1172
- package/src/git-cli/providers/graph.ts +0 -2237
- package/src/git-cli/providers/maintenance.ts +0 -2599
- package/src/git-cli/providers/operations.ts +0 -1016
- package/src/git-cli/providers/patch.ts +0 -305
- package/src/git-cli/providers/pausedOperations.ts +0 -670
- package/src/git-cli/providers/refs.ts +0 -486
- package/src/git-cli/providers/remotes.ts +0 -115
- package/src/git-cli/providers/revision.ts +0 -383
- package/src/git-cli/providers/staging.ts +0 -210
- package/src/git-cli/providers/stash.ts +0 -577
- package/src/git-cli/providers/status.ts +0 -568
- package/src/git-cli/providers/tags.ts +0 -224
- package/src/git-cli/providers/worktrees.ts +0 -285
- package/src/git-cli/service.ts +0 -82
- package/src/ipc/discovery.ts +0 -186
- package/src/ipc/ipcServer.ts +0 -171
- package/src/plus/agents/agentCapabilities.ts +0 -286
- package/src/plus/agents/providers/claudeCodeTranscript.ts +0 -867
- package/src/plus/agents/providers/gkAgentProvider.ts +0 -4036
- package/src/plus/agents/sanitizePrompt.ts +0 -109
- package/src/plus/agents/stateMachine.ts +0 -197
- package/src/plus/agents/types.ts +0 -500
- package/src/plus/ai/constants.ts +0 -121
- package/src/plus/ai/errors.ts +0 -152
- package/src/plus/ai/models/conversation.ts +0 -35
- package/src/plus/ai/models/model.ts +0 -528
- package/src/plus/ai/models/promptTemplates.ts +0 -171
- package/src/plus/ai/models/provider.ts +0 -125
- package/src/plus/ai/models/results.ts +0 -31
- package/src/plus/ai/prompts.ts +0 -849
- package/src/plus/ai/providers/anthropicProvider.ts +0 -458
- package/src/plus/ai/providers/azureProvider.ts +0 -74
- package/src/plus/ai/providers/context.ts +0 -29
- package/src/plus/ai/providers/deepSeekProvider.ts +0 -46
- package/src/plus/ai/providers/geminiProvider.ts +0 -245
- package/src/plus/ai/providers/gitkrakenProvider.ts +0 -347
- package/src/plus/ai/providers/huggingFaceProvider.ts +0 -64
- package/src/plus/ai/providers/mistralProvider.ts +0 -243
- package/src/plus/ai/providers/ollamaProvider.ts +0 -292
- package/src/plus/ai/providers/openAICompatibleProvider.ts +0 -64
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +0 -654
- package/src/plus/ai/providers/openRouterProvider.ts +0 -101
- package/src/plus/ai/providers/openaiProvider.ts +0 -47
- package/src/plus/ai/providers/responseFormatCache.ts +0 -39
- package/src/plus/ai/providers/xaiProvider.ts +0 -54
- package/src/plus/ai/utils/ai.utils.ts +0 -95
- package/src/plus/ai/utils/results.utils.ts +0 -407
- package/src/plus/ai/utils/truncation.utils.ts +0 -296
- package/src/plus/git-github/api/config.ts +0 -91
- package/src/plus/git-github/api/github.ts +0 -5462
- package/src/plus/git-github/api/github.utils.ts +0 -36
- package/src/plus/git-github/api/issueSearchQuery.ts +0 -273
- package/src/plus/git-github/api/pullRequestSearchQuery.ts +0 -154
- package/src/plus/git-github/api/token.ts +0 -15
- package/src/plus/git-github/api/tokenUtils.ts +0 -15
- package/src/plus/git-github/api/types.ts +0 -197
- package/src/plus/git-github/context.ts +0 -107
- package/src/plus/git-github/models.ts +0 -623
- package/src/plus/git-github/providers/github/blame.ts +0 -225
- package/src/plus/git-github/providers/github/branches.ts +0 -401
- package/src/plus/git-github/providers/github/commits.ts +0 -929
- package/src/plus/git-github/providers/github/config.ts +0 -47
- package/src/plus/git-github/providers/github/contributors.ts +0 -313
- package/src/plus/git-github/providers/github/diff.ts +0 -281
- package/src/plus/git-github/providers/github/graph.ts +0 -635
- package/src/plus/git-github/providers/github/refs.ts +0 -172
- package/src/plus/git-github/providers/github/remotes.ts +0 -44
- package/src/plus/git-github/providers/github/revision.ts +0 -140
- package/src/plus/git-github/providers/github/status.ts +0 -69
- package/src/plus/git-github/providers/github/tags.ts +0 -148
- package/src/plus/git-github/providers/githubGitProvider.ts +0 -168
- package/src/plus/git-github/providers/githubProvider.ts +0 -65
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +0 -292
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +0 -656
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +0 -385
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +0 -148
- package/src/plus/integrations/authentication/manualTokenProvider.ts +0 -79
- package/src/plus/integrations/authentication/models.ts +0 -202
- package/src/plus/integrations/authentication/rejectedTokenTracker.ts +0 -56
- package/src/plus/integrations/collectionMetadata.ts +0 -325
- package/src/plus/integrations/constants.ts +0 -190
- package/src/plus/integrations/context.ts +0 -386
- package/src/plus/integrations/errors.ts +0 -188
- package/src/plus/integrations/index.ts +0 -231
- package/src/plus/integrations/integrationService.ts +0 -2003
- package/src/plus/integrations/lite.ts +0 -233
- package/src/plus/integrations/manager.ts +0 -728
- package/src/plus/integrations/models/gitHostIntegration.ts +0 -1862
- package/src/plus/integrations/models/integration.ts +0 -1005
- package/src/plus/integrations/models/issueCache.ts +0 -29
- package/src/plus/integrations/models/issueReads.ts +0 -152
- package/src/plus/integrations/models/issuesIntegration.ts +0 -248
- package/src/plus/integrations/models/pullRequestReads.ts +0 -18
- package/src/plus/integrations/providerFilters.ts +0 -36
- package/src/plus/integrations/providers/accounts.ts +0 -38
- package/src/plus/integrations/providers/apiClients.ts +0 -69
- package/src/plus/integrations/providers/apiConfig.ts +0 -71
- package/src/plus/integrations/providers/azure/azure.ts +0 -953
- package/src/plus/integrations/providers/azure/models.ts +0 -723
- package/src/plus/integrations/providers/azureDevOps.ts +0 -1355
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +0 -904
- package/src/plus/integrations/providers/bitbucket/models.ts +0 -446
- package/src/plus/integrations/providers/bitbucket-server/models.ts +0 -283
- package/src/plus/integrations/providers/bitbucket-server.ts +0 -445
- package/src/plus/integrations/providers/bitbucket.ts +0 -793
- package/src/plus/integrations/providers/github/github.ts +0 -64
- package/src/plus/integrations/providers/github/github.utils.ts +0 -23
- package/src/plus/integrations/providers/github/models.ts +0 -29
- package/src/plus/integrations/providers/github.ts +0 -940
- package/src/plus/integrations/providers/gitlab/gitlab.ts +0 -1320
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +0 -80
- package/src/plus/integrations/providers/gitlab/models.ts +0 -271
- package/src/plus/integrations/providers/gitlab.ts +0 -841
- package/src/plus/integrations/providers/issueSorts.ts +0 -89
- package/src/plus/integrations/providers/jira.ts +0 -596
- package/src/plus/integrations/providers/jiraIssueByKey.ts +0 -155
- package/src/plus/integrations/providers/linear.ts +0 -484
- package/src/plus/integrations/providers/models.ts +0 -1833
- package/src/plus/integrations/providers/providerErrors.ts +0 -115
- package/src/plus/integrations/providers/providersApi.ts +0 -1881
- package/src/plus/integrations/providers/pullRequestReviews.ts +0 -122
- package/src/plus/integrations/providers/trello.ts +0 -208
- package/src/plus/integrations/providers/utils/providerPaging.ts +0 -212
- package/src/plus/integrations/providers/utils.ts +0 -419
- package/src/plus/integrations/reads/broaden.ts +0 -704
- package/src/plus/integrations/reads/context.ts +0 -99
- package/src/plus/integrations/reads/counts.ts +0 -610
- package/src/plus/integrations/reads/cursors.ts +0 -224
- package/src/plus/integrations/reads/drains.ts +0 -420
- package/src/plus/integrations/reads/filters.ts +0 -614
- package/src/plus/integrations/reads/hierarchy.ts +0 -486
- package/src/plus/integrations/reads/hierarchy.utils.ts +0 -155
- package/src/plus/integrations/reads/issueBatch.ts +0 -197
- package/src/plus/integrations/reads/issueTracker.ts +0 -556
- package/src/plus/integrations/reads/issues.ts +0 -600
- package/src/plus/integrations/reads/ordering.ts +0 -124
- package/src/plus/integrations/reads/paging.ts +0 -379
- package/src/plus/integrations/reads/pullRequests.ts +0 -260
- package/src/plus/integrations/reads/resolveRepository.ts +0 -275
- package/src/plus/integrations/reads/searchIssues.ts +0 -274
- package/src/plus/integrations/reads/searchPullRequests.ts +0 -235
- package/src/plus/integrations/reads/sweeps.ts +0 -266
- package/src/plus/integrations/reads/trackerIssue.ts +0 -105
- package/src/plus/integrations/reads/warnings.ts +0 -535
- package/src/plus/integrations/results.ts +0 -443
- package/src/plus/integrations/telemetry.ts +0 -29
- package/src/plus/integrations/utils/domain.utils.ts +0 -26
- package/src/plus/integrations/utils/integration.utils.ts +0 -215
- package/src/utils/array.ts +0 -194
- package/src/utils/base64.ts +0 -1
- package/src/utils/brand.ts +0 -7
- package/src/utils/cancellation.ts +0 -199
- package/src/utils/charCode.ts +0 -38
- package/src/utils/coalescedRun.ts +0 -45
- package/src/utils/color.ts +0 -817
- package/src/utils/counter.ts +0 -21
- package/src/utils/crypto.ts +0 -1
- package/src/utils/date.ts +0 -474
- package/src/utils/debounce.ts +0 -303
- package/src/utils/decorators/debounce.ts +0 -31
- package/src/utils/decorators/gate.ts +0 -167
- package/src/utils/decorators/log.ts +0 -320
- package/src/utils/decorators/memoize.ts +0 -98
- package/src/utils/decorators/resolver.ts +0 -95
- package/src/utils/decorators/sequentialize.ts +0 -118
- package/src/utils/decorators/serializable.ts +0 -43
- package/src/utils/dedupedAsyncCache.ts +0 -74
- package/src/utils/diff.ts +0 -61
- package/src/utils/disposable.ts +0 -156
- package/src/utils/encoding.ts +0 -8
- package/src/utils/env/browser/base64.ts +0 -50
- package/src/utils/env/browser/crypto.ts +0 -21
- package/src/utils/env/browser/fs.ts +0 -3
- package/src/utils/env/browser/hex.ts +0 -41
- package/src/utils/env/browser/hrtime.ts +0 -14
- package/src/utils/env/browser/logScope.ts +0 -57
- package/src/utils/env/browser/md5.ts +0 -217
- package/src/utils/env/browser/platform.ts +0 -10
- package/src/utils/env/node/base64.ts +0 -19
- package/src/utils/env/node/crypto.ts +0 -17
- package/src/utils/env/node/exec.ts +0 -488
- package/src/utils/env/node/fs.ts +0 -5
- package/src/utils/env/node/hex.ts +0 -11
- package/src/utils/env/node/hrtime.ts +0 -1
- package/src/utils/env/node/logScope.ts +0 -63
- package/src/utils/env/node/platform.ts +0 -5
- package/src/utils/error.ts +0 -18
- package/src/utils/event.ts +0 -230
- package/src/utils/formatter.ts +0 -198
- package/src/utils/fs.ts +0 -1
- package/src/utils/function.ts +0 -141
- package/src/utils/fuzzy.ts +0 -185
- package/src/utils/hash.ts +0 -60
- package/src/utils/hex.ts +0 -1
- package/src/utils/hrtime.ts +0 -8
- package/src/utils/iterable.ts +0 -797
- package/src/utils/keys/chord.ts +0 -184
- package/src/utils/keys/keybinding.ts +0 -116
- package/src/utils/lazy.ts +0 -39
- package/src/utils/loggable.ts +0 -7
- package/src/utils/logger.scoped.ts +0 -237
- package/src/utils/logger.ts +0 -403
- package/src/utils/lruMap.ts +0 -112
- package/src/utils/markdown.ts +0 -115
- package/src/utils/mru.ts +0 -68
- package/src/utils/object.ts +0 -278
- package/src/utils/paging.ts +0 -97
- package/src/utils/path.ts +0 -204
- package/src/utils/platform.ts +0 -1
- package/src/utils/promise.ts +0 -657
- package/src/utils/promiseCache.ts +0 -908
- package/src/utils/resourceUsage.ts +0 -5
- package/src/utils/searchTree.ts +0 -444
- package/src/utils/stopwatch.ts +0 -125
- package/src/utils/string.ts +0 -1003
- package/src/utils/subscriptionManager.ts +0 -40
- package/src/utils/trie.ts +0 -740
- package/src/utils/types.ts +0 -31
- package/src/utils/uri.ts +0 -118
- package/src/utils/validation.ts +0 -38
- package/src/utils/version.ts +0 -128
|
@@ -1,1433 +1,1094 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return function (env) {
|
|
31
|
-
function fail(e) {
|
|
32
|
-
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
33
|
-
env.hasError = true;
|
|
34
|
-
}
|
|
35
|
-
var r, s = 0;
|
|
36
|
-
function next() {
|
|
37
|
-
while (r = env.stack.pop()) {
|
|
38
|
-
try {
|
|
39
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
40
|
-
if (r.dispose) {
|
|
41
|
-
var result = r.dispose.call(r.value);
|
|
42
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
43
|
-
}
|
|
44
|
-
else s |= 1;
|
|
45
|
-
}
|
|
46
|
-
catch (e) {
|
|
47
|
-
fail(e);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
51
|
-
if (env.hasError) throw env.error;
|
|
52
|
-
}
|
|
53
|
-
return next();
|
|
54
|
-
};
|
|
55
|
-
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
56
|
-
var e = new Error(message);
|
|
57
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
58
|
-
});
|
|
59
|
-
import { GitCommit, GitCommitIdentity } from '../../git/models/commit.js';
|
|
60
|
-
import { GitFileChange } from '../../git/models/fileChange.js';
|
|
61
|
-
import { createUncommittedChangesCommit } from '../../git/utils/commit.utils.js';
|
|
62
|
-
import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from '../../git/utils/revision.utils.js';
|
|
63
|
-
import { parseSearchQueryGitCommand } from '../../git/utils/search.utils.js';
|
|
64
|
-
import { compareReachableRefs } from '../../git/utils/sorting.js';
|
|
65
|
-
import { isUserMatch } from '../../git/utils/user.utils.js';
|
|
66
|
-
import { chunk as chunkArray } from '../../utils/array.js';
|
|
67
|
-
import { CancellationError, isCancellationError } from '../../utils/cancellation.js';
|
|
68
|
-
import { debug, trace } from '../../utils/decorators/log.js';
|
|
69
|
-
import { createDisposable } from '../../utils/disposable.js';
|
|
70
|
-
import { filterMap, findLast, first, join, last, some } from '../../utils/iterable.js';
|
|
71
|
-
import { getScopedLogger } from '../../utils/logger.scoped.js';
|
|
72
|
-
import { isFolderGlob, normalizePath, splitPath, stripFolderGlob } from '../../utils/path.js';
|
|
73
|
-
import { maybeStopWatch } from '../../utils/stopwatch.js';
|
|
74
|
-
import { escapeRegex, iterateByDelimiter } from '../../utils/string.js';
|
|
75
|
-
import { fileUri, joinUriPath, toFsPath } from '../../utils/uri.js';
|
|
76
|
-
import { gitConfigsLog, gitConfigsLogWithFiles, GitErrors } from '../exec/git.js';
|
|
77
|
-
import { getCommitsLogParser, getShaAndDatesLogParser, getShaAndFilesAndStatsLogParser, getShaLogParser, } from '../parsers/logParser.js';
|
|
78
|
-
import { getReflogParser, parseGitRefLog } from '../parsers/reflogParser.js';
|
|
79
|
-
import { parseSignatureOutput, signatureFormat } from '../parsers/signatureParser.js';
|
|
80
|
-
import { extractCommitterFromCommitObject, extractSshPublicKeyFromCommitObject, } from '../parsers/sshSignatureParser.js';
|
|
81
|
-
import { createCommitFileset } from './commitFilesetUtils.js';
|
|
82
|
-
import { convertStashesToStdin } from './stash.js';
|
|
83
|
-
const emptyPromise = Promise.resolve(undefined);
|
|
84
|
-
const reflogCommands = ['merge', 'pull'];
|
|
1
|
+
import { filterMap, findLast, first, join, last, some } from "../../utils/iterable.js";
|
|
2
|
+
import { chunk } from "../../utils/array.js";
|
|
3
|
+
import { CancellationError, isCancellationError } from "../../utils/cancellation.js";
|
|
4
|
+
import { escapeRegex, iterateByDelimiter } from "../../utils/string.js";
|
|
5
|
+
import { getScopedLogger } from "../../utils/logger.scoped.js";
|
|
6
|
+
import { debug, trace } from "../../utils/decorators/log.js";
|
|
7
|
+
import { fileUri, joinUriPath, toFsPath } from "../../utils/uri.js";
|
|
8
|
+
import { isFolderGlob, normalizePath, splitPath, stripFolderGlob } from "../../utils/path.js";
|
|
9
|
+
import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from "../../git/utils/revision.utils.js";
|
|
10
|
+
import __decorate from "../../_virtual/@oxc-project+runtime/helpers/esm/decorate.js";
|
|
11
|
+
import { createDisposable } from "../../utils/disposable.js";
|
|
12
|
+
import { GitErrors, gitConfigsLog, gitConfigsLogWithFiles } from "../exec/git.js";
|
|
13
|
+
import { GitFileChange } from "../../git/models/fileChange.js";
|
|
14
|
+
import { createUncommittedChangesCommit } from "../../git/utils/commit.utils.js";
|
|
15
|
+
import { GitCommit, GitCommitIdentity } from "../../git/models/commit.js";
|
|
16
|
+
import { isUserMatch } from "../../git/utils/user.utils.js";
|
|
17
|
+
import { maybeStopWatch } from "../../utils/stopwatch.js";
|
|
18
|
+
import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
|
|
19
|
+
import { compareReachableRefs } from "../../git/utils/sorting.js";
|
|
20
|
+
import { parseSearchQueryGitCommand } from "../../git/utils/search.utils.js";
|
|
21
|
+
import { getCommitsLogParser, getShaAndDatesLogParser, getShaAndFilesAndStatsLogParser, getShaLogParser } from "../parsers/logParser.js";
|
|
22
|
+
import { getReflogParser, parseGitRefLog } from "../parsers/reflogParser.js";
|
|
23
|
+
import { parseSignatureOutput, signatureFormat } from "../parsers/signatureParser.js";
|
|
24
|
+
import { extractCommitterFromCommitObject, extractSshPublicKeyFromCommitObject } from "../parsers/sshSignatureParser.js";
|
|
25
|
+
import { createCommitFileset } from "./commitFilesetUtils.js";
|
|
26
|
+
import { convertStashesToStdin } from "./stash.js";
|
|
27
|
+
//#region ../git-cli/src/providers/commits.ts
|
|
28
|
+
const emptyPromise = Promise.resolve(void 0);
|
|
29
|
+
const reflogCommands = ["merge", "pull"];
|
|
85
30
|
/** Keeps `filterUnpublishedShas` well inside Windows' ~32K command-line cap (40 hex chars + separator each). */
|
|
86
31
|
const maxShasPerRevListSpawn = 500;
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
if (!resolvedShas.size) {
|
|
1013
|
-
return {
|
|
1014
|
-
search: search,
|
|
1015
|
-
log: {
|
|
1016
|
-
repoPath: repoPath,
|
|
1017
|
-
commits: new Map(),
|
|
1018
|
-
sha: undefined,
|
|
1019
|
-
searchFilters: filters,
|
|
1020
|
-
count: 0,
|
|
1021
|
-
limit: options?.limit ?? cfg?.search?.maxItems ?? 0,
|
|
1022
|
-
hasMore: false,
|
|
1023
|
-
},
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
if (resolvedShas?.size) {
|
|
1028
|
-
stdin = join(resolvedShas, '\n');
|
|
1029
|
-
args.push('--no-walk');
|
|
1030
|
-
}
|
|
1031
|
-
else if (!filters.refs) {
|
|
1032
|
-
// Don't include stashes when using ref: filter, as they would add unrelated commits
|
|
1033
|
-
// There *HAS* to be a better way to get git log to return stashes, but this is the best we've found
|
|
1034
|
-
const converted = convertStashesToStdin(await this.provider.stash?.getStash(repoPath, undefined, cancellation));
|
|
1035
|
-
stashes = converted.stashes;
|
|
1036
|
-
// `--all` already surfaces refs/stash's tip on its own, so when merges-only there's no need
|
|
1037
|
-
// to walk the rest of the stash stack via stdin -- parseCommits still excludes any stash
|
|
1038
|
-
// sha that slips through via refs/stash
|
|
1039
|
-
stdin = mergesOnly ? undefined : converted.stdin;
|
|
1040
|
-
}
|
|
1041
|
-
else if (mergesOnly) {
|
|
1042
|
-
// `ref:` skips walking stashes into the results (they're unrelated to the ref), but a
|
|
1043
|
-
// stash's tip can still leak in via `--merges` if the ref reaches refs/stash -- fetch
|
|
1044
|
-
// stashes here purely so parseCommits can exclude them, without widening the walk via
|
|
1045
|
-
// stdin
|
|
1046
|
-
stashes = convertStashesToStdin(await this.provider.stash?.getStash(repoPath, undefined, cancellation)).stashes;
|
|
1047
|
-
}
|
|
1048
|
-
if (stdin) {
|
|
1049
|
-
args.push('--stdin');
|
|
1050
|
-
}
|
|
1051
|
-
const limit = options?.limit ?? cfg?.search?.maxItems ?? 0;
|
|
1052
|
-
if (limit && !shas?.size) {
|
|
1053
|
-
args.push(`-n${limit + 1}`);
|
|
1054
|
-
}
|
|
1055
|
-
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
1056
|
-
if (ordering) {
|
|
1057
|
-
args.push(`--${ordering}-order`);
|
|
1058
|
-
}
|
|
1059
|
-
if (options?.skip) {
|
|
1060
|
-
args.push(`--skip=${options.skip}`);
|
|
1061
|
-
}
|
|
1062
|
-
// Add the search args, but skip any shas (as they are already included in the stdin)
|
|
1063
|
-
for (const arg of searchArgs) {
|
|
1064
|
-
if (shas?.has(arg) || args.includes(arg))
|
|
1065
|
-
continue;
|
|
1066
|
-
args.push(arg);
|
|
1067
|
-
}
|
|
1068
|
-
const pathspec = files?.join(' ');
|
|
1069
|
-
const { commits, count, countStashChildCommits } = await parseCommits(parser, this.git.stream({
|
|
1070
|
-
cwd: repoPath,
|
|
1071
|
-
cancellation: cancellation,
|
|
1072
|
-
configs: ['-C', repoPath, ...gitConfigsLog],
|
|
1073
|
-
stdin: stdin,
|
|
1074
|
-
}, ...args, '--', ...files), repoPath, pathspec, limit, stashes, currentUser, filters, mergesOnly);
|
|
1075
|
-
const log = {
|
|
1076
|
-
repoPath: repoPath,
|
|
1077
|
-
commits: commits,
|
|
1078
|
-
sha: undefined,
|
|
1079
|
-
searchFilters: filters,
|
|
1080
|
-
count: commits.size,
|
|
1081
|
-
limit: limit,
|
|
1082
|
-
hasMore: count - countStashChildCommits > commits.size,
|
|
1083
|
-
query: (limit) => this.searchCommits(repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
1084
|
-
};
|
|
1085
|
-
if (log.hasMore) {
|
|
1086
|
-
const searchCommitsCore = (log) => {
|
|
1087
|
-
return async (limit) => {
|
|
1088
|
-
limit = limit ?? 0;
|
|
1089
|
-
const moreLog = (await this.searchCommits(log.repoPath, search, {
|
|
1090
|
-
...options,
|
|
1091
|
-
limit: limit,
|
|
1092
|
-
skip: log.count,
|
|
1093
|
-
})).log;
|
|
1094
|
-
// If we can't find any more, assume we have everything
|
|
1095
|
-
if (moreLog == null)
|
|
1096
|
-
return { ...log, hasMore: false, more: undefined };
|
|
1097
|
-
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
1098
|
-
const mergedLog = {
|
|
1099
|
-
repoPath: log.repoPath,
|
|
1100
|
-
commits: commits,
|
|
1101
|
-
sha: log.sha,
|
|
1102
|
-
searchFilters: filters,
|
|
1103
|
-
count: commits.size,
|
|
1104
|
-
limit: (log.limit ?? 0) + limit,
|
|
1105
|
-
hasMore: moreLog.hasMore,
|
|
1106
|
-
query: (limit) => this.searchCommits(log.repoPath, search, { ...options, limit: limit }).then(r => r.log),
|
|
1107
|
-
};
|
|
1108
|
-
if (mergedLog.hasMore) {
|
|
1109
|
-
mergedLog.more = searchCommitsCore(mergedLog);
|
|
1110
|
-
}
|
|
1111
|
-
return mergedLog;
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
log.more = searchCommitsCore(log);
|
|
1115
|
-
}
|
|
1116
|
-
return { search: search, log: log };
|
|
1117
|
-
}
|
|
1118
|
-
catch (ex) {
|
|
1119
|
-
scope?.error(ex);
|
|
1120
|
-
if (isCancellationError(ex))
|
|
1121
|
-
throw ex;
|
|
1122
|
-
return { search: search, log: undefined };
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
async getCommitSignature(repoPath, sha) {
|
|
1126
|
-
const scope = getScopedLogger();
|
|
1127
|
-
try {
|
|
1128
|
-
const result = await this.git.run({
|
|
1129
|
-
cwd: repoPath,
|
|
1130
|
-
errors: 'ignore',
|
|
1131
|
-
caching: {
|
|
1132
|
-
cache: this.cache.gitResults,
|
|
1133
|
-
options: { accessTTL: isSha(sha) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
1134
|
-
},
|
|
1135
|
-
configs: gitConfigsLog,
|
|
1136
|
-
}, 'log', `--format=${signatureFormat}`, '-1', sha);
|
|
1137
|
-
if (!result.stdout)
|
|
1138
|
-
return undefined;
|
|
1139
|
-
return parseSignatureOutput(result.stdout);
|
|
1140
|
-
}
|
|
1141
|
-
catch (ex) {
|
|
1142
|
-
scope?.error(ex);
|
|
1143
|
-
return undefined;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
async isCommitSigned(repoPath, sha) {
|
|
1147
|
-
const scope = getScopedLogger();
|
|
1148
|
-
try {
|
|
1149
|
-
const result = await this.git.run({
|
|
1150
|
-
cwd: repoPath,
|
|
1151
|
-
errors: 'ignore',
|
|
1152
|
-
caching: {
|
|
1153
|
-
cache: this.cache.gitResults,
|
|
1154
|
-
options: { accessTTL: isSha(sha) ? 5 * 60 * 1000 : 60 * 1000 },
|
|
1155
|
-
},
|
|
1156
|
-
}, 'cat-file', 'commit', sha);
|
|
1157
|
-
return /^gpgsig(-sha256)? /m.test(result.stdout);
|
|
1158
|
-
}
|
|
1159
|
-
catch (ex) {
|
|
1160
|
-
scope?.error(ex);
|
|
1161
|
-
return false;
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
async getCommitsSshSigners(repoPath, shas) {
|
|
1165
|
-
const scope = getScopedLogger();
|
|
1166
|
-
const result = new Map();
|
|
1167
|
-
if (shas.length === 0)
|
|
1168
|
-
return result;
|
|
1169
|
-
try {
|
|
1170
|
-
// Read every commit object in a single `cat-file --batch` process (the SHAs are piped to stdin) rather than
|
|
1171
|
-
// spawning one `git` per commit — the embedded SSH signature and committer identity are then parsed from
|
|
1172
|
-
// each raw object, avoiding a separate (and far heavier) `git log` pass to enumerate identities.
|
|
1173
|
-
const data = await this.git.run({ cwd: repoPath, errors: 'ignore', stdin: `${shas.join('\n')}\n`, encoding: 'buffer' }, 'cat-file', '--batch');
|
|
1174
|
-
parseCatFileBatchForSshSigners(data.stdout, new Set(shas), result);
|
|
1175
|
-
}
|
|
1176
|
-
catch (ex) {
|
|
1177
|
-
scope?.error(ex);
|
|
1178
|
-
}
|
|
1179
|
-
return result;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
__decorate([
|
|
1183
|
-
debug()
|
|
1184
|
-
], CommitsGitSubProvider.prototype, "createUnreachableCommitFromTree", null);
|
|
1185
|
-
__decorate([
|
|
1186
|
-
debug()
|
|
1187
|
-
], CommitsGitSubProvider.prototype, "getCommit", null);
|
|
1188
|
-
__decorate([
|
|
1189
|
-
debug({ exit: true })
|
|
1190
|
-
], CommitsGitSubProvider.prototype, "getCommitCount", null);
|
|
1191
|
-
__decorate([
|
|
1192
|
-
debug({ exit: true })
|
|
1193
|
-
], CommitsGitSubProvider.prototype, "hasUnpublishedCommits", null);
|
|
1194
|
-
__decorate([
|
|
1195
|
-
debug({
|
|
1196
|
-
args: (repoPath, shas) => ({ repoPath: repoPath, shas: `${shas.length} value(s)` }),
|
|
1197
|
-
exit: r => `${r.size} unpublished`,
|
|
1198
|
-
})
|
|
1199
|
-
], CommitsGitSubProvider.prototype, "filterUnpublishedShas", null);
|
|
1200
|
-
__decorate([
|
|
1201
|
-
debug({ exit: true })
|
|
1202
|
-
], CommitsGitSubProvider.prototype, "getCommitDates", null);
|
|
1203
|
-
__decorate([
|
|
1204
|
-
debug()
|
|
1205
|
-
], CommitsGitSubProvider.prototype, "getCommitFiles", null);
|
|
1206
|
-
__decorate([
|
|
1207
|
-
debug()
|
|
1208
|
-
], CommitsGitSubProvider.prototype, "getCommitForFile", null);
|
|
1209
|
-
__decorate([
|
|
1210
|
-
debug()
|
|
1211
|
-
], CommitsGitSubProvider.prototype, "getCommitReachability", null);
|
|
1212
|
-
__decorate([
|
|
1213
|
-
debug()
|
|
1214
|
-
], CommitsGitSubProvider.prototype, "getIncomingActivity", null);
|
|
1215
|
-
__decorate([
|
|
1216
|
-
debug({ exit: true })
|
|
1217
|
-
], CommitsGitSubProvider.prototype, "getInitialCommitSha", null);
|
|
1218
|
-
__decorate([
|
|
1219
|
-
debug()
|
|
1220
|
-
], CommitsGitSubProvider.prototype, "getLeftRightCommitCount", null);
|
|
1221
|
-
__decorate([
|
|
1222
|
-
debug()
|
|
1223
|
-
], CommitsGitSubProvider.prototype, "getLog", null);
|
|
1224
|
-
__decorate([
|
|
1225
|
-
trace({ args: (repoPath, rev) => ({ repoPath: repoPath, rev: rev }), exit: true })
|
|
1226
|
-
], CommitsGitSubProvider.prototype, "getLogCore", null);
|
|
1227
|
-
__decorate([
|
|
1228
|
-
debug()
|
|
1229
|
-
], CommitsGitSubProvider.prototype, "getLogForPath", null);
|
|
1230
|
-
__decorate([
|
|
1231
|
-
debug()
|
|
1232
|
-
], CommitsGitSubProvider.prototype, "getLogShas", null);
|
|
1233
|
-
__decorate([
|
|
1234
|
-
debug()
|
|
1235
|
-
], CommitsGitSubProvider.prototype, "getOldestUnpushedShaForPath", null);
|
|
1236
|
-
__decorate([
|
|
1237
|
-
debug()
|
|
1238
|
-
], CommitsGitSubProvider.prototype, "hasCommitBeenPushed", null);
|
|
1239
|
-
__decorate([
|
|
1240
|
-
debug()
|
|
1241
|
-
], CommitsGitSubProvider.prototype, "isAncestorOf", null);
|
|
1242
|
-
__decorate([
|
|
1243
|
-
debug({
|
|
1244
|
-
args: (repoPath, s) => ({
|
|
1245
|
-
repoPath: repoPath,
|
|
1246
|
-
search: `[${s.matchAll ? 'A' : ''}${s.matchCase ? 'C' : ''}${s.matchRegex ? 'R' : ''}${s.matchWholeWord ? 'W' : ''}]: ${s.query.length > 500 ? `${s.query.substring(0, 500)}...` : s.query}`,
|
|
1247
|
-
}),
|
|
1248
|
-
})
|
|
1249
|
-
], CommitsGitSubProvider.prototype, "searchCommits", null);
|
|
1250
|
-
__decorate([
|
|
1251
|
-
debug()
|
|
1252
|
-
], CommitsGitSubProvider.prototype, "getCommitSignature", null);
|
|
1253
|
-
__decorate([
|
|
1254
|
-
debug()
|
|
1255
|
-
], CommitsGitSubProvider.prototype, "isCommitSigned", null);
|
|
1256
|
-
__decorate([
|
|
1257
|
-
debug()
|
|
1258
|
-
], CommitsGitSubProvider.prototype, "getCommitsSshSigners", null);
|
|
32
|
+
var CommitsGitSubProvider = class {
|
|
33
|
+
context;
|
|
34
|
+
git;
|
|
35
|
+
cache;
|
|
36
|
+
provider;
|
|
37
|
+
constructor(context, git, cache, provider) {
|
|
38
|
+
this.context = context;
|
|
39
|
+
this.git = git;
|
|
40
|
+
this.cache = cache;
|
|
41
|
+
this.provider = provider;
|
|
42
|
+
}
|
|
43
|
+
async createUnreachableCommitFromTree(repoPath, tree, parent, message, cancellation) {
|
|
44
|
+
return (await this.git.run({
|
|
45
|
+
cwd: repoPath,
|
|
46
|
+
cancellation,
|
|
47
|
+
errors: "throw"
|
|
48
|
+
}, "commit-tree", tree, "-p", parent, "-m", message)).stdout.trim();
|
|
49
|
+
}
|
|
50
|
+
async getCommit(repoPath, rev, cancellation) {
|
|
51
|
+
if (isUncommitted(rev, true)) return createUncommittedChangesCommit(repoPath, rev, /* @__PURE__ */ new Date(), await this.provider.config.getCurrentUser(repoPath));
|
|
52
|
+
const log = await this.getLogCore(repoPath, rev, { limit: 1 }, cancellation);
|
|
53
|
+
if (log == null) return void 0;
|
|
54
|
+
return log.commits.get(rev) ?? first(log.commits.values());
|
|
55
|
+
}
|
|
56
|
+
getCommitCount(repoPath, rev, cancellation) {
|
|
57
|
+
return this.cache.commitCount.getOrCreate(repoPath, rev, async (cacheable, signal) => {
|
|
58
|
+
const result = await this.git.run({
|
|
59
|
+
cwd: repoPath,
|
|
60
|
+
cancellation: signal ?? cancellation,
|
|
61
|
+
errors: "ignore"
|
|
62
|
+
}, "rev-list", "--count", rev, "--");
|
|
63
|
+
if (result.completion.status === "cancelled" || signal?.aborted) throw new CancellationError();
|
|
64
|
+
if (result.completion.status !== "exited" || result.exitCode !== 0) {
|
|
65
|
+
cacheable.invalidate();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const data = result.stdout.trim();
|
|
69
|
+
if (!data) return void 0;
|
|
70
|
+
const count = parseInt(data, 10);
|
|
71
|
+
return isNaN(count) ? void 0 : count;
|
|
72
|
+
}, { cancellation });
|
|
73
|
+
}
|
|
74
|
+
async hasUnpublishedCommits(repoPath, rev, cancellation) {
|
|
75
|
+
const result = await this.git.run({
|
|
76
|
+
cwd: repoPath,
|
|
77
|
+
cancellation,
|
|
78
|
+
errors: "ignore"
|
|
79
|
+
}, "rev-list", "--max-count=1", rev, "--not", "--remotes", "--");
|
|
80
|
+
if (result.completion.status === "cancelled" || cancellation?.aborted) throw new CancellationError();
|
|
81
|
+
return result.stdout.trim().length > 0;
|
|
82
|
+
}
|
|
83
|
+
async filterUnpublishedShas(repoPath, shas, options, cancellation) {
|
|
84
|
+
const unpublished = /* @__PURE__ */ new Set();
|
|
85
|
+
if (!shas.length) return unpublished;
|
|
86
|
+
for (const chunk$1 of chunk([...shas], maxShasPerRevListSpawn)) {
|
|
87
|
+
const result = await this.git.run({
|
|
88
|
+
cwd: repoPath,
|
|
89
|
+
cancellation,
|
|
90
|
+
...options?.priority != null ? { priority: options.priority } : void 0
|
|
91
|
+
}, "rev-list", ...chunk$1, "--not", "--remotes", "--");
|
|
92
|
+
if (result.completion.status !== "exited") throw result.completion.error;
|
|
93
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
94
|
+
const candidates = new Set(chunk$1);
|
|
95
|
+
for (const line of iterateByDelimiter(result.stdout, "\n")) {
|
|
96
|
+
const sha = line.trim();
|
|
97
|
+
if (sha.length && candidates.has(sha)) unpublished.add(sha);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return unpublished;
|
|
101
|
+
}
|
|
102
|
+
async getCommitDates(repoPath, rev, cancellation) {
|
|
103
|
+
const parser = getShaAndDatesLogParser();
|
|
104
|
+
const result = await this.git.run({
|
|
105
|
+
cwd: repoPath,
|
|
106
|
+
cancellation,
|
|
107
|
+
errors: "ignore",
|
|
108
|
+
caching: {
|
|
109
|
+
cache: this.cache.gitResults,
|
|
110
|
+
options: { accessTTL: isSha(rev) ? 3e5 : 6e4 }
|
|
111
|
+
}
|
|
112
|
+
}, "log", "-1", ...parser.arguments, rev);
|
|
113
|
+
if (result.completion.status === "cancelled" || cancellation?.aborted) return void 0;
|
|
114
|
+
for (const entry of parser.parse(result.stdout)) {
|
|
115
|
+
const authorSeconds = Number(entry.authorDate);
|
|
116
|
+
const committerSeconds = Number(entry.committerDate);
|
|
117
|
+
if (!Number.isFinite(authorSeconds) || !Number.isFinite(committerSeconds)) return void 0;
|
|
118
|
+
return {
|
|
119
|
+
authorDate: /* @__PURE__ */ new Date(authorSeconds * 1e3),
|
|
120
|
+
committerDate: /* @__PURE__ */ new Date(committerSeconds * 1e3)
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
async getCommitFiles(repoPath, rev, cancellation) {
|
|
125
|
+
const parser = getShaAndFilesAndStatsLogParser();
|
|
126
|
+
const result = await this.git.run({
|
|
127
|
+
cwd: repoPath,
|
|
128
|
+
cancellation,
|
|
129
|
+
configs: gitConfigsLog
|
|
130
|
+
}, "log", ...parser.arguments, "-n1", rev && !isUncommittedStaged(rev) ? rev : void 0, "--");
|
|
131
|
+
const repoUri = fileUri(normalizePath(repoPath));
|
|
132
|
+
return first(parser.parse(result.stdout))?.files.map((f) => new GitFileChange(repoPath, f.path, f.status, joinUriPath(repoUri, normalizePath(f.path)), f.originalPath, f.originalPath != null ? joinUriPath(repoUri, normalizePath(f.originalPath)) : void 0, void 0, {
|
|
133
|
+
additions: f.additions,
|
|
134
|
+
deletions: f.deletions,
|
|
135
|
+
changes: 0
|
|
136
|
+
}, void 0, void 0, f.mode, f.oid ? {
|
|
137
|
+
oid: f.oid,
|
|
138
|
+
previousOid: f.previousOid
|
|
139
|
+
} : void 0)) ?? [];
|
|
140
|
+
}
|
|
141
|
+
async getCommitForFile(repoPath, pathOrUri, rev, options, cancellation) {
|
|
142
|
+
const scope = getScopedLogger();
|
|
143
|
+
const [relativePath, root] = splitPath(toFsPath(pathOrUri), repoPath);
|
|
144
|
+
try {
|
|
145
|
+
const log = await this.getLogForPath(root, relativePath, rev, { limit: 1 }, cancellation);
|
|
146
|
+
if (log == null) return void 0;
|
|
147
|
+
let commit;
|
|
148
|
+
if (rev) {
|
|
149
|
+
commit = log.commits.get(rev);
|
|
150
|
+
if (commit == null && !options?.firstIfNotFound) {
|
|
151
|
+
if (isSha(rev) || isUncommitted(rev)) return void 0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return commit ?? first(log.commits.values());
|
|
155
|
+
} catch (ex) {
|
|
156
|
+
scope?.error(ex);
|
|
157
|
+
if (isCancellationError(ex)) throw ex;
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
getCommitReachability(repoPath, rev, cancellation) {
|
|
162
|
+
if (repoPath == null || isUncommitted(rev)) return Promise.resolve(void 0);
|
|
163
|
+
const scope = getScopedLogger();
|
|
164
|
+
const getCore = async (cacheable) => {
|
|
165
|
+
try {
|
|
166
|
+
const result = await this.git.run({
|
|
167
|
+
cwd: repoPath,
|
|
168
|
+
cancellation,
|
|
169
|
+
errors: "ignore"
|
|
170
|
+
}, "for-each-ref", "--contains", rev, "--format=%(HEAD)%(refname)", "--sort=-version:refname", "--sort=-committerdate", "--sort=-HEAD", "refs/heads/", "refs/remotes/", "refs/tags/");
|
|
171
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
172
|
+
const refs = [];
|
|
173
|
+
if (result?.stdout) {
|
|
174
|
+
const lines = result.stdout.split("\n");
|
|
175
|
+
for (let line of lines) {
|
|
176
|
+
line = line.trim();
|
|
177
|
+
if (!line) continue;
|
|
178
|
+
const isCurrent = line.startsWith("*");
|
|
179
|
+
const refname = isCurrent ? line.substring(1) : line;
|
|
180
|
+
if (refname.endsWith("/HEAD")) continue;
|
|
181
|
+
if (refname.startsWith("refs/heads/")) {
|
|
182
|
+
const name = refname.substring(11);
|
|
183
|
+
refs.push({
|
|
184
|
+
refType: "branch",
|
|
185
|
+
name,
|
|
186
|
+
remote: false,
|
|
187
|
+
current: isCurrent
|
|
188
|
+
});
|
|
189
|
+
} else if (refname.startsWith("refs/remotes/")) refs.push({
|
|
190
|
+
refType: "branch",
|
|
191
|
+
name: refname.substring(13),
|
|
192
|
+
remote: true
|
|
193
|
+
});
|
|
194
|
+
else if (refname.startsWith("refs/tags/")) refs.push({
|
|
195
|
+
refType: "tag",
|
|
196
|
+
name: refname.substring(10)
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
refs.sort(compareReachableRefs);
|
|
201
|
+
return { refs };
|
|
202
|
+
} catch (ex) {
|
|
203
|
+
cacheable?.invalidate();
|
|
204
|
+
if (isCancellationError(ex)) throw ex;
|
|
205
|
+
debugger;
|
|
206
|
+
scope?.error(ex);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
return this.cache.reachability.getOrCreate(repoPath, rev, getCore);
|
|
211
|
+
}
|
|
212
|
+
async getIncomingActivity(repoPath, options, cancellation) {
|
|
213
|
+
const scope = getScopedLogger();
|
|
214
|
+
const cfg = this.context.config;
|
|
215
|
+
const parser = getReflogParser();
|
|
216
|
+
const args = [
|
|
217
|
+
"--walk-reflogs",
|
|
218
|
+
...parser.arguments,
|
|
219
|
+
"--date=iso8601"
|
|
220
|
+
];
|
|
221
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
222
|
+
if (ordering) args.push(`--${ordering}-order`);
|
|
223
|
+
if (options?.all) args.push("--all");
|
|
224
|
+
const limit = (options?.limit ?? cfg?.commits.maxItems ?? 0) * 100;
|
|
225
|
+
if (limit) args.push(`-n${limit}`);
|
|
226
|
+
if (options?.skip) args.push(`--skip=${options.skip}`);
|
|
227
|
+
try {
|
|
228
|
+
const result = await this.git.run({
|
|
229
|
+
cwd: repoPath,
|
|
230
|
+
cancellation,
|
|
231
|
+
configs: gitConfigsLog,
|
|
232
|
+
priority: "background"
|
|
233
|
+
}, "log", ...args);
|
|
234
|
+
const reflog = parseGitRefLog(parser, result.stdout, repoPath, reflogCommands, limit, limit * 100);
|
|
235
|
+
if (reflog?.hasMore) reflog.more = this.getReflogMoreFn(reflog, options);
|
|
236
|
+
return reflog;
|
|
237
|
+
} catch (ex) {
|
|
238
|
+
scope?.error(ex);
|
|
239
|
+
if (isCancellationError(ex)) throw ex;
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
getReflogMoreFn(reflog, options) {
|
|
244
|
+
return async (limit) => {
|
|
245
|
+
limit = limit ?? 0;
|
|
246
|
+
const moreLog = await this.getIncomingActivity(reflog.repoPath, {
|
|
247
|
+
...options,
|
|
248
|
+
limit,
|
|
249
|
+
skip: reflog.total
|
|
250
|
+
});
|
|
251
|
+
if (moreLog == null) return {
|
|
252
|
+
...reflog,
|
|
253
|
+
hasMore: false,
|
|
254
|
+
more: void 0
|
|
255
|
+
};
|
|
256
|
+
const mergedLog = {
|
|
257
|
+
repoPath: reflog.repoPath,
|
|
258
|
+
records: [...reflog.records, ...moreLog.records],
|
|
259
|
+
count: reflog.count + moreLog.count,
|
|
260
|
+
total: reflog.total + moreLog.total,
|
|
261
|
+
limit: (reflog.limit ?? 0) + limit,
|
|
262
|
+
hasMore: moreLog.hasMore
|
|
263
|
+
};
|
|
264
|
+
if (mergedLog.hasMore) mergedLog.more = this.getReflogMoreFn(mergedLog, options);
|
|
265
|
+
return mergedLog;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
getInitialCommitSha(repoPath, cancellation) {
|
|
269
|
+
return this.cache.getInitialCommitSha(repoPath, async (commonPath) => {
|
|
270
|
+
try {
|
|
271
|
+
const result = await this.git.run({
|
|
272
|
+
cwd: commonPath,
|
|
273
|
+
cancellation,
|
|
274
|
+
errors: "ignore"
|
|
275
|
+
}, "rev-list", `--max-parents=0`, "HEAD", "--");
|
|
276
|
+
if (result.completion.status === "cancelled" || cancellation?.aborted) throw new CancellationError();
|
|
277
|
+
return result.stdout.trim().split("\n")?.[0];
|
|
278
|
+
} catch (ex) {
|
|
279
|
+
if (isCancellationError(ex)) throw ex;
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
async getLeftRightCommitCount(repoPath, range, options, cancellation) {
|
|
285
|
+
const authors = options?.authors?.length ? options.authors.map((a) => `--author=^${escapeRegex(a.name ?? "")} <${escapeRegex(a.email ?? "")}>$`) : [];
|
|
286
|
+
const run = async () => {
|
|
287
|
+
const result = await this.git.run({
|
|
288
|
+
cwd: repoPath,
|
|
289
|
+
cancellation,
|
|
290
|
+
errors: "ignore"
|
|
291
|
+
}, "rev-list", "--left-right", "--count", ...authors, options?.excludeMerges ? "--no-merges" : void 0, range, "--");
|
|
292
|
+
if (result.completion.status === "cancelled" || cancellation?.aborted) throw new CancellationError();
|
|
293
|
+
if (!result.stdout) return void 0;
|
|
294
|
+
const parts = result.stdout.split(" ");
|
|
295
|
+
if (parts.length !== 2) return void 0;
|
|
296
|
+
const [left, right] = parts;
|
|
297
|
+
const counts = {
|
|
298
|
+
left: parseInt(left, 10),
|
|
299
|
+
right: parseInt(right, 10)
|
|
300
|
+
};
|
|
301
|
+
if (isNaN(counts.left) || isNaN(counts.right)) return void 0;
|
|
302
|
+
return counts;
|
|
303
|
+
};
|
|
304
|
+
if (authors.length > 0) return run();
|
|
305
|
+
const cacheKey = `${range}\x1f${options?.excludeMerges ? "no-merges" : ""}`;
|
|
306
|
+
return this.cache.leftRightCommitCount.getOrCreate(repoPath, cacheKey, run);
|
|
307
|
+
}
|
|
308
|
+
async getLog(repoPath, rev, options, cancellation) {
|
|
309
|
+
return this.getLogCore(repoPath, rev, options, cancellation);
|
|
310
|
+
}
|
|
311
|
+
async getLogCore(repoPath, rev, options, cancellation, additionalArgs) {
|
|
312
|
+
const scope = getScopedLogger();
|
|
313
|
+
try {
|
|
314
|
+
const currentUserPromise = this.provider.config.getCurrentUser(repoPath);
|
|
315
|
+
const cfg = this.context.config;
|
|
316
|
+
const limit = options?.limit ?? cfg?.commits.maxItems ?? 0;
|
|
317
|
+
const isSingleCommit = limit === 1;
|
|
318
|
+
const includeFiles = (options?.includeFiles ?? cfg?.commits.includeFileDetails?.(repoPath) ?? true) || isSingleCommit || Boolean(options?.path?.pathspec);
|
|
319
|
+
const parser = getCommitsLogParser(includeFiles, Boolean(options?.path?.pathspec && options?.path?.range));
|
|
320
|
+
const args = ["log", ...parser.arguments];
|
|
321
|
+
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
322
|
+
args.push(`-M${similarityThreshold == null ? "" : `${similarityThreshold}%`}`, "--use-mailmap");
|
|
323
|
+
if (options?.all) {
|
|
324
|
+
args.push("--all");
|
|
325
|
+
if (options?.path?.pathspec) args.push("--single-worktree");
|
|
326
|
+
}
|
|
327
|
+
const merges = options?.merges ?? true;
|
|
328
|
+
if (merges) {
|
|
329
|
+
if (isSingleCommit) args.push("-m");
|
|
330
|
+
args.push(merges === "first-parent" ? "--first-parent" : "--no-min-parents");
|
|
331
|
+
} else args.push("--no-merges");
|
|
332
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
333
|
+
if (ordering) args.push(`--${ordering}-order`);
|
|
334
|
+
if (options?.authors?.length) args.push(...options.authors.map((a) => `--author=^${escapeRegex(a.name ?? "")} <${escapeRegex(a.email ?? "")}>$`));
|
|
335
|
+
let overrideHasMore;
|
|
336
|
+
if (options?.since) {
|
|
337
|
+
overrideHasMore = true;
|
|
338
|
+
args.push(`--since="${options.since}"`);
|
|
339
|
+
}
|
|
340
|
+
if (options?.until) {
|
|
341
|
+
overrideHasMore = true;
|
|
342
|
+
args.push(`--until="${options.until}"`);
|
|
343
|
+
}
|
|
344
|
+
if (additionalArgs?.length) args.push(...additionalArgs);
|
|
345
|
+
if (limit > 0) {
|
|
346
|
+
overrideHasMore = isSingleCommit ? false : void 0;
|
|
347
|
+
args.push(`-n${isSingleCommit ? 1 : limit + 1}`);
|
|
348
|
+
}
|
|
349
|
+
let stashes;
|
|
350
|
+
if (!isSingleCommit && options?.stashes) {
|
|
351
|
+
stashes = typeof options.stashes === "boolean" ? (await this.provider.stash?.getStash(repoPath, { reachableFrom: rev }, cancellation))?.stashes : options.stashes;
|
|
352
|
+
if (stashes?.size) rev ??= "HEAD";
|
|
353
|
+
}
|
|
354
|
+
if (rev && !isUncommittedStaged(rev)) args.push(rev);
|
|
355
|
+
let pathspec;
|
|
356
|
+
let pathspecRange;
|
|
357
|
+
if (options?.path?.pathspec) {
|
|
358
|
+
pathspec = options.path.pathspec;
|
|
359
|
+
const { filters, range, renames } = options.path;
|
|
360
|
+
if (filters?.length) args.push(`--diff-filter=${filters.join("")}`);
|
|
361
|
+
if (range != null) {
|
|
362
|
+
const [start, end] = getGitStartEnd(range);
|
|
363
|
+
pathspecRange = `${start},${end}`;
|
|
364
|
+
args.push(`-L ${pathspecRange}:${pathspec}`, "--");
|
|
365
|
+
} else {
|
|
366
|
+
if (renames !== false) args.push("--follow");
|
|
367
|
+
args.push("--", pathspec);
|
|
368
|
+
}
|
|
369
|
+
} else args.push("--");
|
|
370
|
+
const currentUser = await currentUserPromise.catch(() => void 0);
|
|
371
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
372
|
+
const isEagerPagedFileLog = includeFiles && !isSingleCommit && !options?.path?.pathspec;
|
|
373
|
+
const cmdOpts = {
|
|
374
|
+
cwd: repoPath,
|
|
375
|
+
cancellation,
|
|
376
|
+
configs: gitConfigsLogWithFiles,
|
|
377
|
+
...isSingleCommit && rev ? { caching: {
|
|
378
|
+
cache: this.cache.gitResults,
|
|
379
|
+
options: { accessTTL: isSha(rev) ? 3e5 : 6e4 }
|
|
380
|
+
} } : void 0,
|
|
381
|
+
...isEagerPagedFileLog ? { slownessCategory: "commitFiles" } : void 0
|
|
382
|
+
};
|
|
383
|
+
let { commits, count } = await parseCommits(parser, isSingleCommit ? this.git.run(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args), repoPath, pathspec, limit, void 0, currentUser);
|
|
384
|
+
if (rev == null && pathspec && !commits.size) {
|
|
385
|
+
const status = await this.provider.status?.getStatusForFile?.(repoPath, pathspec, void 0, cancellation);
|
|
386
|
+
if (status?.originalPath != null) {
|
|
387
|
+
pathspec = status.originalPath;
|
|
388
|
+
if (pathspecRange) {
|
|
389
|
+
const index = args.findIndex((a) => a.startsWith("-L "));
|
|
390
|
+
args.splice(index, 1, `-L ${pathspecRange}:${pathspec}`);
|
|
391
|
+
} else args.splice(args.length - 1, 1, pathspec);
|
|
392
|
+
({commits, count} = await parseCommits(parser, isSingleCommit ? this.git.run(cmdOpts, ...args) : this.git.stream(cmdOpts, ...args), repoPath, pathspec, limit, void 0, currentUser));
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if (stashes?.size) {
|
|
396
|
+
const stashesByParent = /* @__PURE__ */ new Map();
|
|
397
|
+
for (const stash of stashes.values()) {
|
|
398
|
+
const parentSha = stash.parents[0];
|
|
399
|
+
if (parentSha == null || !commits.has(parentSha)) continue;
|
|
400
|
+
const group = stashesByParent.get(parentSha);
|
|
401
|
+
if (group != null) group.push(stash);
|
|
402
|
+
else stashesByParent.set(parentSha, [stash]);
|
|
403
|
+
}
|
|
404
|
+
if (stashesByParent.size) {
|
|
405
|
+
const cap = limit > 0 ? limit + 1 : Number.POSITIVE_INFINITY;
|
|
406
|
+
const merged = /* @__PURE__ */ new Map();
|
|
407
|
+
outer: for (const c of commits.values()) {
|
|
408
|
+
const group = stashesByParent.get(c.sha);
|
|
409
|
+
if (group != null) for (const s of group) {
|
|
410
|
+
if (merged.size >= cap) break outer;
|
|
411
|
+
merged.set(s.sha, s);
|
|
412
|
+
}
|
|
413
|
+
if (merged.size >= cap) break;
|
|
414
|
+
merged.set(c.sha, c);
|
|
415
|
+
}
|
|
416
|
+
commits = merged;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const log = {
|
|
420
|
+
repoPath,
|
|
421
|
+
commits,
|
|
422
|
+
sha: isRevisionRange(rev) ? void 0 : rev,
|
|
423
|
+
count: commits.size,
|
|
424
|
+
limit,
|
|
425
|
+
hasMore: overrideHasMore ?? (limit > 0 && count > limit)
|
|
426
|
+
};
|
|
427
|
+
if (!isSingleCommit) {
|
|
428
|
+
log.query = (limit) => this.getLogCore(repoPath, rev, {
|
|
429
|
+
...options,
|
|
430
|
+
limit
|
|
431
|
+
}, void 0, additionalArgs);
|
|
432
|
+
if (log.hasMore) log.more = this.getLogCoreMoreFn(log, rev, options);
|
|
433
|
+
}
|
|
434
|
+
return log;
|
|
435
|
+
} catch (ex) {
|
|
436
|
+
if (isCancellationError(ex)) throw ex;
|
|
437
|
+
const pathspec = options?.path?.pathspec;
|
|
438
|
+
if (rev && pathspec && ex instanceof Error && GitErrors.badObject.test(ex.message)) {
|
|
439
|
+
if ((await this.provider.revision.getTreeEntryForRevision(repoPath, pathspec, "HEAD"))?.type === "commit") return this.getLogCore(repoPath, void 0, {
|
|
440
|
+
...options,
|
|
441
|
+
path: {
|
|
442
|
+
...options.path,
|
|
443
|
+
pathspec,
|
|
444
|
+
renames: false
|
|
445
|
+
}
|
|
446
|
+
}, cancellation, additionalArgs);
|
|
447
|
+
}
|
|
448
|
+
scope?.error(ex);
|
|
449
|
+
debugger;
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
getLogCoreMoreFn(log, rev, options) {
|
|
454
|
+
return async (limit) => {
|
|
455
|
+
const moreUntil = limit != null && typeof limit === "object" ? limit.until : void 0;
|
|
456
|
+
let moreLimit = typeof limit === "number" ? limit : void 0;
|
|
457
|
+
if (moreUntil && some(log.commits.values(), (c) => c.ref === moreUntil)) return log;
|
|
458
|
+
moreLimit = moreLimit ?? 0;
|
|
459
|
+
if (isRevisionRange(log.sha)) {
|
|
460
|
+
const moreLog = await this.getLogCore(log.repoPath, rev, {
|
|
461
|
+
...options,
|
|
462
|
+
limit: moreLimit === 0 ? 0 : (options?.limit ?? 0) + moreLimit
|
|
463
|
+
});
|
|
464
|
+
if (moreLog == null) return {
|
|
465
|
+
...log,
|
|
466
|
+
hasMore: false,
|
|
467
|
+
more: void 0
|
|
468
|
+
};
|
|
469
|
+
return moreLog;
|
|
470
|
+
}
|
|
471
|
+
const lastCommit = findLast(log.commits.values(), (c) => !GitCommit.isStash(c)) ?? last(log.commits.values());
|
|
472
|
+
const sha = lastCommit?.ref;
|
|
473
|
+
const lastCommitFile = lastCommit?.anyFiles?.[0];
|
|
474
|
+
if (options?.path?.pathspec && lastCommitFile != null) {
|
|
475
|
+
const path = lastCommitFile.originalPath ?? lastCommitFile.path;
|
|
476
|
+
if (path !== options.path.pathspec) options = {
|
|
477
|
+
...options,
|
|
478
|
+
path: {
|
|
479
|
+
...options.path,
|
|
480
|
+
pathspec: path
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
let timestamp;
|
|
485
|
+
if (options?.all) {
|
|
486
|
+
const date = lastCommit?.committer.date;
|
|
487
|
+
timestamp = date != null ? Math.ceil(date.getTime() / 1e3) + 1 : void 0;
|
|
488
|
+
}
|
|
489
|
+
let moreLogCount;
|
|
490
|
+
let queryLimit = moreUntil == null ? moreLimit : 0;
|
|
491
|
+
do {
|
|
492
|
+
const moreLog = await this.getLogCore(log.repoPath, timestamp ? rev : moreUntil == null ? `${sha}^` : `${moreUntil}^..${sha}^`, {
|
|
493
|
+
...options,
|
|
494
|
+
limit: queryLimit,
|
|
495
|
+
...timestamp ? { until: timestamp } : void 0
|
|
496
|
+
}, void 0, timestamp ? ["--boundary"] : void 0);
|
|
497
|
+
if (moreLog == null) return {
|
|
498
|
+
...log,
|
|
499
|
+
hasMore: false,
|
|
500
|
+
more: void 0
|
|
501
|
+
};
|
|
502
|
+
const currentCount = log.commits.size;
|
|
503
|
+
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
504
|
+
if (currentCount === commits.size && queryLimit !== 0) {
|
|
505
|
+
if (moreLogCount === moreLog.commits.size) return {
|
|
506
|
+
...log,
|
|
507
|
+
hasMore: false,
|
|
508
|
+
more: void 0
|
|
509
|
+
};
|
|
510
|
+
moreLogCount = moreLog.commits.size;
|
|
511
|
+
queryLimit = queryLimit * 2;
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
if (timestamp != null && sha != null && !moreLog.commits.has(sha)) debugger;
|
|
515
|
+
const mergedLog = {
|
|
516
|
+
repoPath: log.repoPath,
|
|
517
|
+
commits,
|
|
518
|
+
sha: log.sha,
|
|
519
|
+
count: commits.size,
|
|
520
|
+
limit: moreUntil == null ? (log.limit ?? 0) + moreLimit : void 0,
|
|
521
|
+
hasMore: moreUntil == null ? moreLog.hasMore : true,
|
|
522
|
+
startingCursor: sha,
|
|
523
|
+
endingCursor: moreLog.endingCursor,
|
|
524
|
+
pagedCommits: () => {
|
|
525
|
+
for (const sha of log.commits.keys()) moreLog.commits.delete(sha);
|
|
526
|
+
return moreLog.commits;
|
|
527
|
+
},
|
|
528
|
+
query: (limit) => this.getLogCore(log.repoPath, rev, {
|
|
529
|
+
...options,
|
|
530
|
+
limit
|
|
531
|
+
})
|
|
532
|
+
};
|
|
533
|
+
if (mergedLog.hasMore) mergedLog.more = this.getLogCoreMoreFn(mergedLog, rev, options);
|
|
534
|
+
return mergedLog;
|
|
535
|
+
} while (true);
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
async getLogForPath(repoPath, pathOrUri, rev, options, cancellation) {
|
|
539
|
+
if (repoPath == null) return void 0;
|
|
540
|
+
const scope = getScopedLogger();
|
|
541
|
+
let relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
542
|
+
if (repoPath != null && repoPath === relativePath) throw new Error(`Path cannot match the repository path; path=${relativePath}`);
|
|
543
|
+
const cfg = this.context.config;
|
|
544
|
+
options = {
|
|
545
|
+
...options,
|
|
546
|
+
all: options?.all ?? cfg?.fileHistory?.showAllBranches,
|
|
547
|
+
limit: options?.limit ?? cfg?.commits.maxItems ?? 0,
|
|
548
|
+
merges: options?.merges ?? cfg?.fileHistory?.showMergeCommits,
|
|
549
|
+
ordering: options?.ordering ?? cfg?.commits.ordering ?? void 0,
|
|
550
|
+
renames: options?.renames ?? cfg?.fileHistory?.followRenames,
|
|
551
|
+
similarityThreshold: options?.similarityThreshold ?? cfg?.commits.similarityThreshold
|
|
552
|
+
};
|
|
553
|
+
if (isFolderGlob(relativePath)) {
|
|
554
|
+
relativePath = stripFolderGlob(relativePath);
|
|
555
|
+
options.isFolder = true;
|
|
556
|
+
} else if (options.isFolder == null) {
|
|
557
|
+
const tree = await this.provider.revision.getTreeEntryForRevision(repoPath, relativePath, rev || "HEAD");
|
|
558
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
559
|
+
if (tree?.type === "commit") {
|
|
560
|
+
options.range = void 0;
|
|
561
|
+
options.renames = false;
|
|
562
|
+
} else options.isFolder = tree?.type === "tree";
|
|
563
|
+
}
|
|
564
|
+
let cacheKey;
|
|
565
|
+
if (!options.isFolder && options.authors == null && options.cursor == null && options.filters == null && options.range == null && options.since == null && options.until == null) {
|
|
566
|
+
let suffix = "log";
|
|
567
|
+
if (rev != null) suffix += `:${rev}`;
|
|
568
|
+
if (options.all) suffix += ":all";
|
|
569
|
+
if (options.limit) suffix += `:n${options.limit}`;
|
|
570
|
+
if (options.merges) suffix += `:merges=${options.merges}`;
|
|
571
|
+
if (options.ordering) suffix += `:ordering=${options.ordering}`;
|
|
572
|
+
if (options.renames) suffix += ":follow";
|
|
573
|
+
cacheKey = `${normalizePath(relativePath)}:${suffix}`;
|
|
574
|
+
}
|
|
575
|
+
if (cacheKey != null) {
|
|
576
|
+
const cached = this.cache.fileLog.get(repoPath, cacheKey);
|
|
577
|
+
if (cached != null) {
|
|
578
|
+
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
579
|
+
return cached;
|
|
580
|
+
}
|
|
581
|
+
if (rev != null || options.limit != null && options.limit !== 0) {
|
|
582
|
+
const baseKey = `${normalizePath(relativePath)}:log${options.renames ? ":follow" : ""}`;
|
|
583
|
+
const baseLog = this.cache.fileLog.get(repoPath, baseKey);
|
|
584
|
+
if (baseLog != null) {
|
|
585
|
+
if (rev == null) {
|
|
586
|
+
scope?.trace(`Cache hit: ~'${cacheKey}'`);
|
|
587
|
+
return baseLog;
|
|
588
|
+
}
|
|
589
|
+
scope?.trace(`Cache ?: '${cacheKey}'`);
|
|
590
|
+
const log = await baseLog;
|
|
591
|
+
if (log != null && !log.hasMore && log.commits.has(rev)) {
|
|
592
|
+
scope?.trace(`Cache hit: '${cacheKey}'`);
|
|
593
|
+
let skip = true;
|
|
594
|
+
let i = 0;
|
|
595
|
+
const limit = options.limit;
|
|
596
|
+
const commits = new Map(filterMap(log.commits.entries(), ([sha, c]) => {
|
|
597
|
+
if (skip) {
|
|
598
|
+
if (sha !== rev) return void 0;
|
|
599
|
+
skip = false;
|
|
600
|
+
}
|
|
601
|
+
i++;
|
|
602
|
+
if (limit != null && i > limit) return;
|
|
603
|
+
return [sha, c];
|
|
604
|
+
}));
|
|
605
|
+
const optsCopy = { ...options };
|
|
606
|
+
return {
|
|
607
|
+
...log,
|
|
608
|
+
limit: optsCopy.limit,
|
|
609
|
+
count: commits.size,
|
|
610
|
+
commits,
|
|
611
|
+
query: (limit) => this.getLogForPath(repoPath, pathOrUri, rev, {
|
|
612
|
+
...optsCopy,
|
|
613
|
+
limit
|
|
614
|
+
})
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
scope?.trace(`Cache miss: '${cacheKey}'`);
|
|
620
|
+
return this.cache.fileLog.getOrCreate(repoPath, cacheKey, (_cacheable, signal) => this.getLogForPathCore(repoPath, relativePath, rev, options, signal), { cancellation });
|
|
621
|
+
}
|
|
622
|
+
return this.getLogForPathCore(repoPath, relativePath, rev, options, cancellation);
|
|
623
|
+
}
|
|
624
|
+
async getLogForPathCore(repoPath, path, rev, options, cancellation) {
|
|
625
|
+
const scope = getScopedLogger();
|
|
626
|
+
const tracked = await this.provider.isTrackedWithDetails(path, repoPath, rev);
|
|
627
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
628
|
+
if (tracked == null) {
|
|
629
|
+
scope?.debug(`Skipping log; '${path}' is not tracked`);
|
|
630
|
+
return emptyPromise;
|
|
631
|
+
}
|
|
632
|
+
const relativePath = tracked.path;
|
|
633
|
+
const root = repoPath;
|
|
634
|
+
return await this.getLogCore(root, rev, {
|
|
635
|
+
all: options.all,
|
|
636
|
+
authors: options.authors,
|
|
637
|
+
cursor: options.cursor,
|
|
638
|
+
limit: options.limit,
|
|
639
|
+
merges: options.merges,
|
|
640
|
+
ordering: options.ordering,
|
|
641
|
+
since: options.since,
|
|
642
|
+
until: options.until,
|
|
643
|
+
path: {
|
|
644
|
+
pathspec: relativePath,
|
|
645
|
+
filters: options.filters,
|
|
646
|
+
range: options.range,
|
|
647
|
+
renames: options.renames
|
|
648
|
+
}
|
|
649
|
+
}, cancellation);
|
|
650
|
+
}
|
|
651
|
+
async getLogShas(repoPath, rev, options, cancellation) {
|
|
652
|
+
const scope = getScopedLogger();
|
|
653
|
+
const cfg = this.context.config;
|
|
654
|
+
options ??= {};
|
|
655
|
+
options.limit ??= cfg?.commits.maxItems ?? 0;
|
|
656
|
+
options.ordering ??= cfg?.commits.ordering ?? void 0;
|
|
657
|
+
options.similarityThreshold ??= cfg?.commits.similarityThreshold;
|
|
658
|
+
options.merges ??= true;
|
|
659
|
+
const getCore = async () => {
|
|
660
|
+
try {
|
|
661
|
+
const parser = getShaLogParser();
|
|
662
|
+
const args = [...parser.arguments];
|
|
663
|
+
if (options.all) args.push(`--all`);
|
|
664
|
+
if (options.ordering) args.push(`--${options.ordering}-order`);
|
|
665
|
+
if (options.limit) args.push(`-n${options.limit}`);
|
|
666
|
+
if (options.since) args.push(`--since="${options.since}"`);
|
|
667
|
+
if (options.merges) args.push(options.merges === "first-parent" ? "--first-parent" : "--no-min-parents");
|
|
668
|
+
else args.push("--no-merges");
|
|
669
|
+
if (options.reverse) args.push("--reverse");
|
|
670
|
+
if (options.authors?.length) {
|
|
671
|
+
if (!args.includes("--use-mailmap")) args.push("--use-mailmap");
|
|
672
|
+
args.push(...options.authors.map((a) => `--author=^${escapeRegex(a.name ?? "")} <${escapeRegex(a.email ?? "")}>$`));
|
|
673
|
+
}
|
|
674
|
+
const pathspec = options.pathOrUri != null ? this.provider.getRelativePath(options.pathOrUri, repoPath) : void 0;
|
|
675
|
+
if (pathspec) {
|
|
676
|
+
const similarityThreshold = options.similarityThreshold;
|
|
677
|
+
args.push(`-M${similarityThreshold == null ? "" : `${similarityThreshold}%`}`);
|
|
678
|
+
}
|
|
679
|
+
if (rev && !isUncommittedStaged(rev)) args.push(rev);
|
|
680
|
+
args.push("--");
|
|
681
|
+
if (pathspec) args.push(pathspec);
|
|
682
|
+
const result = await this.git.run({
|
|
683
|
+
cwd: repoPath,
|
|
684
|
+
cancellation,
|
|
685
|
+
configs: gitConfigsLog
|
|
686
|
+
}, "log", ...args);
|
|
687
|
+
return [...parser.parse(result.stdout)];
|
|
688
|
+
} catch (ex) {
|
|
689
|
+
scope?.error(ex);
|
|
690
|
+
if (isCancellationError(ex)) throw ex;
|
|
691
|
+
debugger;
|
|
692
|
+
return [];
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
if (!options.pathOrUri && !options.authors?.length && !options.reverse && !options.all) return this.cache.logShas.getOrCreate(repoPath, `${rev ?? ""}:${options.ordering ?? ""}:${options.limit}:${options.merges}:${options.since ?? ""}`, () => getCore());
|
|
696
|
+
return getCore();
|
|
697
|
+
}
|
|
698
|
+
async getOldestUnpushedShaForPath(repoPath, pathOrUri, cancellation) {
|
|
699
|
+
const scope = getScopedLogger();
|
|
700
|
+
try {
|
|
701
|
+
const relativePath = this.provider.getRelativePath(pathOrUri, repoPath);
|
|
702
|
+
const parser = getShaLogParser();
|
|
703
|
+
const result = await this.git.run({
|
|
704
|
+
cwd: repoPath,
|
|
705
|
+
cancellation,
|
|
706
|
+
configs: gitConfigsLog
|
|
707
|
+
}, "log", ...parser.arguments, "--follow", "--reverse", "@{u}..", "--", relativePath);
|
|
708
|
+
return first(parser.parse(result.stdout));
|
|
709
|
+
} catch (ex) {
|
|
710
|
+
scope?.error(ex);
|
|
711
|
+
if (isCancellationError(ex)) throw ex;
|
|
712
|
+
debugger;
|
|
713
|
+
return;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
async hasCommitBeenPushed(repoPath, rev, cancellation) {
|
|
717
|
+
if (repoPath == null) return false;
|
|
718
|
+
return this.isAncestorOf(repoPath, rev, "@{u}", cancellation);
|
|
719
|
+
}
|
|
720
|
+
async isAncestorOf(repoPath, rev1, rev2, cancellation) {
|
|
721
|
+
if (repoPath == null) return false;
|
|
722
|
+
const result = await this.git.run({
|
|
723
|
+
cwd: repoPath,
|
|
724
|
+
cancellation,
|
|
725
|
+
errors: "ignore"
|
|
726
|
+
}, "merge-base", "--is-ancestor", rev1, rev2);
|
|
727
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
728
|
+
return result.exitCode === 0;
|
|
729
|
+
}
|
|
730
|
+
async searchCommits(repoPath, search, options, cancellation) {
|
|
731
|
+
const scope = getScopedLogger();
|
|
732
|
+
search = {
|
|
733
|
+
matchAll: false,
|
|
734
|
+
matchCase: false,
|
|
735
|
+
matchRegex: true,
|
|
736
|
+
matchWholeWord: false,
|
|
737
|
+
...search
|
|
738
|
+
};
|
|
739
|
+
if (search.naturalLanguage && (typeof search.naturalLanguage !== "object" || !search.naturalLanguage.processedQuery)) search = await this.context.searchQuery?.preprocessQuery?.(search, options?.source) ?? search;
|
|
740
|
+
if (typeof search.naturalLanguage === "object" && search.naturalLanguage.error) return {
|
|
741
|
+
search,
|
|
742
|
+
log: void 0
|
|
743
|
+
};
|
|
744
|
+
try {
|
|
745
|
+
const cfg = this.context.config;
|
|
746
|
+
const currentUser = await this.provider.config.getCurrentUser(repoPath);
|
|
747
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
748
|
+
const parser = getCommitsLogParser(true);
|
|
749
|
+
const similarityThreshold = options?.similarityThreshold ?? cfg?.commits.similarityThreshold;
|
|
750
|
+
const args = [
|
|
751
|
+
"log",
|
|
752
|
+
...parser.arguments,
|
|
753
|
+
`-M${similarityThreshold == null ? "" : `${similarityThreshold}%`}`,
|
|
754
|
+
"--use-mailmap"
|
|
755
|
+
];
|
|
756
|
+
const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser);
|
|
757
|
+
const mergesOnly = searchArgs.includes("--merges");
|
|
758
|
+
let stashes;
|
|
759
|
+
let stdin;
|
|
760
|
+
let resolvedShas;
|
|
761
|
+
if (shas?.size) {
|
|
762
|
+
resolvedShas = await this.provider.revision.resolveShas(repoPath, shas, cancellation);
|
|
763
|
+
if (cancellation?.aborted) throw new CancellationError();
|
|
764
|
+
if (!resolvedShas.size) return {
|
|
765
|
+
search,
|
|
766
|
+
log: {
|
|
767
|
+
repoPath,
|
|
768
|
+
commits: /* @__PURE__ */ new Map(),
|
|
769
|
+
sha: void 0,
|
|
770
|
+
searchFilters: filters,
|
|
771
|
+
count: 0,
|
|
772
|
+
limit: options?.limit ?? cfg?.search?.maxItems ?? 0,
|
|
773
|
+
hasMore: false
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
if (resolvedShas?.size) {
|
|
778
|
+
stdin = join(resolvedShas, "\n");
|
|
779
|
+
args.push("--no-walk");
|
|
780
|
+
} else if (!filters.refs) {
|
|
781
|
+
const converted = convertStashesToStdin(await this.provider.stash?.getStash(repoPath, void 0, cancellation));
|
|
782
|
+
stashes = converted.stashes;
|
|
783
|
+
stdin = mergesOnly ? void 0 : converted.stdin;
|
|
784
|
+
} else if (mergesOnly) stashes = convertStashesToStdin(await this.provider.stash?.getStash(repoPath, void 0, cancellation)).stashes;
|
|
785
|
+
if (stdin) args.push("--stdin");
|
|
786
|
+
const limit = options?.limit ?? cfg?.search?.maxItems ?? 0;
|
|
787
|
+
if (limit && !shas?.size) args.push(`-n${limit + 1}`);
|
|
788
|
+
const ordering = options?.ordering ?? cfg?.commits.ordering;
|
|
789
|
+
if (ordering) args.push(`--${ordering}-order`);
|
|
790
|
+
if (options?.skip) args.push(`--skip=${options.skip}`);
|
|
791
|
+
for (const arg of searchArgs) {
|
|
792
|
+
if (shas?.has(arg) || args.includes(arg)) continue;
|
|
793
|
+
args.push(arg);
|
|
794
|
+
}
|
|
795
|
+
const pathspec = files?.join(" ");
|
|
796
|
+
const { commits, count, countStashChildCommits } = await parseCommits(parser, this.git.stream({
|
|
797
|
+
cwd: repoPath,
|
|
798
|
+
cancellation,
|
|
799
|
+
configs: [
|
|
800
|
+
"-C",
|
|
801
|
+
repoPath,
|
|
802
|
+
...gitConfigsLog
|
|
803
|
+
],
|
|
804
|
+
stdin
|
|
805
|
+
}, ...args, "--", ...files), repoPath, pathspec, limit, stashes, currentUser, filters, mergesOnly);
|
|
806
|
+
const log = {
|
|
807
|
+
repoPath,
|
|
808
|
+
commits,
|
|
809
|
+
sha: void 0,
|
|
810
|
+
searchFilters: filters,
|
|
811
|
+
count: commits.size,
|
|
812
|
+
limit,
|
|
813
|
+
hasMore: count - countStashChildCommits > commits.size,
|
|
814
|
+
query: (limit) => this.searchCommits(repoPath, search, {
|
|
815
|
+
...options,
|
|
816
|
+
limit
|
|
817
|
+
}).then((r) => r.log)
|
|
818
|
+
};
|
|
819
|
+
if (log.hasMore) {
|
|
820
|
+
const searchCommitsCore = (log) => {
|
|
821
|
+
return async (limit) => {
|
|
822
|
+
limit = limit ?? 0;
|
|
823
|
+
const moreLog = (await this.searchCommits(log.repoPath, search, {
|
|
824
|
+
...options,
|
|
825
|
+
limit,
|
|
826
|
+
skip: log.count
|
|
827
|
+
})).log;
|
|
828
|
+
if (moreLog == null) return {
|
|
829
|
+
...log,
|
|
830
|
+
hasMore: false,
|
|
831
|
+
more: void 0
|
|
832
|
+
};
|
|
833
|
+
const commits = new Map([...log.commits, ...moreLog.commits]);
|
|
834
|
+
const mergedLog = {
|
|
835
|
+
repoPath: log.repoPath,
|
|
836
|
+
commits,
|
|
837
|
+
sha: log.sha,
|
|
838
|
+
searchFilters: filters,
|
|
839
|
+
count: commits.size,
|
|
840
|
+
limit: (log.limit ?? 0) + limit,
|
|
841
|
+
hasMore: moreLog.hasMore,
|
|
842
|
+
query: (limit) => this.searchCommits(log.repoPath, search, {
|
|
843
|
+
...options,
|
|
844
|
+
limit
|
|
845
|
+
}).then((r) => r.log)
|
|
846
|
+
};
|
|
847
|
+
if (mergedLog.hasMore) mergedLog.more = searchCommitsCore(mergedLog);
|
|
848
|
+
return mergedLog;
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
log.more = searchCommitsCore(log);
|
|
852
|
+
}
|
|
853
|
+
return {
|
|
854
|
+
search,
|
|
855
|
+
log
|
|
856
|
+
};
|
|
857
|
+
} catch (ex) {
|
|
858
|
+
scope?.error(ex);
|
|
859
|
+
if (isCancellationError(ex)) throw ex;
|
|
860
|
+
return {
|
|
861
|
+
search,
|
|
862
|
+
log: void 0
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
async getCommitSignature(repoPath, sha) {
|
|
867
|
+
const scope = getScopedLogger();
|
|
868
|
+
try {
|
|
869
|
+
const result = await this.git.run({
|
|
870
|
+
cwd: repoPath,
|
|
871
|
+
errors: "ignore",
|
|
872
|
+
caching: {
|
|
873
|
+
cache: this.cache.gitResults,
|
|
874
|
+
options: { accessTTL: isSha(sha) ? 3e5 : 6e4 }
|
|
875
|
+
},
|
|
876
|
+
configs: gitConfigsLog
|
|
877
|
+
}, "log", `--format=${signatureFormat}`, "-1", sha);
|
|
878
|
+
if (!result.stdout) return void 0;
|
|
879
|
+
return parseSignatureOutput(result.stdout);
|
|
880
|
+
} catch (ex) {
|
|
881
|
+
scope?.error(ex);
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
async isCommitSigned(repoPath, sha) {
|
|
886
|
+
const scope = getScopedLogger();
|
|
887
|
+
try {
|
|
888
|
+
const result = await this.git.run({
|
|
889
|
+
cwd: repoPath,
|
|
890
|
+
errors: "ignore",
|
|
891
|
+
caching: {
|
|
892
|
+
cache: this.cache.gitResults,
|
|
893
|
+
options: { accessTTL: isSha(sha) ? 3e5 : 6e4 }
|
|
894
|
+
}
|
|
895
|
+
}, "cat-file", "commit", sha);
|
|
896
|
+
return /^gpgsig(-sha256)? /m.test(result.stdout);
|
|
897
|
+
} catch (ex) {
|
|
898
|
+
scope?.error(ex);
|
|
899
|
+
return false;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
async getCommitsSshSigners(repoPath, shas) {
|
|
903
|
+
const scope = getScopedLogger();
|
|
904
|
+
const result = /* @__PURE__ */ new Map();
|
|
905
|
+
if (shas.length === 0) return result;
|
|
906
|
+
try {
|
|
907
|
+
parseCatFileBatchForSshSigners((await this.git.run({
|
|
908
|
+
cwd: repoPath,
|
|
909
|
+
errors: "ignore",
|
|
910
|
+
stdin: `${shas.join("\n")}\n`,
|
|
911
|
+
encoding: "buffer"
|
|
912
|
+
}, "cat-file", "--batch")).stdout, new Set(shas), result);
|
|
913
|
+
} catch (ex) {
|
|
914
|
+
scope?.error(ex);
|
|
915
|
+
}
|
|
916
|
+
return result;
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "createUnreachableCommitFromTree", null);
|
|
920
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommit", null);
|
|
921
|
+
__decorate([debug({ exit: true })], CommitsGitSubProvider.prototype, "getCommitCount", null);
|
|
922
|
+
__decorate([debug({ exit: true })], CommitsGitSubProvider.prototype, "hasUnpublishedCommits", null);
|
|
923
|
+
__decorate([debug({
|
|
924
|
+
args: (repoPath, shas) => ({
|
|
925
|
+
repoPath,
|
|
926
|
+
shas: `${shas.length} value(s)`
|
|
927
|
+
}),
|
|
928
|
+
exit: (r) => `${r.size} unpublished`
|
|
929
|
+
})], CommitsGitSubProvider.prototype, "filterUnpublishedShas", null);
|
|
930
|
+
__decorate([debug({ exit: true })], CommitsGitSubProvider.prototype, "getCommitDates", null);
|
|
931
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommitFiles", null);
|
|
932
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommitForFile", null);
|
|
933
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommitReachability", null);
|
|
934
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getIncomingActivity", null);
|
|
935
|
+
__decorate([debug({ exit: true })], CommitsGitSubProvider.prototype, "getInitialCommitSha", null);
|
|
936
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getLeftRightCommitCount", null);
|
|
937
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getLog", null);
|
|
938
|
+
__decorate([trace({
|
|
939
|
+
args: (repoPath, rev) => ({
|
|
940
|
+
repoPath,
|
|
941
|
+
rev
|
|
942
|
+
}),
|
|
943
|
+
exit: true
|
|
944
|
+
})], CommitsGitSubProvider.prototype, "getLogCore", null);
|
|
945
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getLogForPath", null);
|
|
946
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getLogShas", null);
|
|
947
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getOldestUnpushedShaForPath", null);
|
|
948
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "hasCommitBeenPushed", null);
|
|
949
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "isAncestorOf", null);
|
|
950
|
+
__decorate([debug({ args: (repoPath, s) => ({
|
|
951
|
+
repoPath,
|
|
952
|
+
search: `[${s.matchAll ? "A" : ""}${s.matchCase ? "C" : ""}${s.matchRegex ? "R" : ""}${s.matchWholeWord ? "W" : ""}]: ${s.query.length > 500 ? `${s.query.substring(0, 500)}...` : s.query}`
|
|
953
|
+
}) })], CommitsGitSubProvider.prototype, "searchCommits", null);
|
|
954
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommitSignature", null);
|
|
955
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "isCommitSigned", null);
|
|
956
|
+
__decorate([debug()], CommitsGitSubProvider.prototype, "getCommitsSshSigners", null);
|
|
1259
957
|
/**
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
}
|
|
958
|
+
* Parses `git cat-file --batch` output, extracting the embedded SSH public key (if any) from each requested commit
|
|
959
|
+
* object. Each record is `<sha> <type> <size>` LF `<content>` LF (or `<sha> missing` LF), and the object's bytes are
|
|
960
|
+
* consumed using the header's `<size>` rather than scanned line-by-line — so a commit/tag body line that happens to
|
|
961
|
+
* look like an object header can never be misread as a boundary. Operates on the raw `Buffer` because `<size>` counts
|
|
962
|
+
* bytes, not decoded characters.
|
|
963
|
+
*
|
|
964
|
+
* Exported for unit testing.
|
|
965
|
+
*/
|
|
966
|
+
function parseCatFileBatchForSshSigners(stdout, requestedShas, out) {
|
|
967
|
+
const headerRegex = /^([0-9a-f]{40,64}) (commit|tag|blob|missing)(?: (\d+))?$/;
|
|
968
|
+
let offset = 0;
|
|
969
|
+
while (offset < stdout.length) {
|
|
970
|
+
const newline = stdout.indexOf(10, offset);
|
|
971
|
+
if (newline === -1) break;
|
|
972
|
+
const match = headerRegex.exec(stdout.toString("utf8", offset, newline));
|
|
973
|
+
offset = newline + 1;
|
|
974
|
+
if (match == null || match[2] === "missing") continue;
|
|
975
|
+
const sha = match[1];
|
|
976
|
+
const object = stdout.toString("utf8", offset, offset + Number(match[3]));
|
|
977
|
+
offset += Number(match[3]) + 1;
|
|
978
|
+
if (!requestedShas.has(sha)) continue;
|
|
979
|
+
const key = extractSshPublicKeyFromCommitObject(object);
|
|
980
|
+
if (key == null) continue;
|
|
981
|
+
const committer = extractCommitterFromCommitObject(object);
|
|
982
|
+
out.set(sha, {
|
|
983
|
+
key,
|
|
984
|
+
name: committer?.name,
|
|
985
|
+
email: committer?.email
|
|
986
|
+
});
|
|
987
|
+
}
|
|
1291
988
|
}
|
|
1292
989
|
function toCommit(c, repoPath, pathspec, currentUser) {
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
990
|
+
const message = c.message.trim();
|
|
991
|
+
const index = message.indexOf("\n");
|
|
992
|
+
const isCurrentAuthor = isUserMatch(currentUser, c.author, c.authorEmail) || void 0;
|
|
993
|
+
const isCurrentCommitter = isUserMatch(currentUser, c.committer, c.committerEmail) || void 0;
|
|
994
|
+
return new GitCommit(repoPath, c.sha, new GitCommitIdentity(c.author, c.authorEmail, /* @__PURE__ */ new Date(Number(c.authorDate) * 1e3), void 0, isCurrentAuthor), new GitCommitIdentity(c.committer, c.committerEmail, /* @__PURE__ */ new Date(Number(c.committerDate) * 1e3), void 0, isCurrentCommitter), index !== -1 ? message.substring(0, index) : message, c.parents?.split(" ") ?? [], message, createCommitFileset(c, repoPath, pathspec), c.stats, void 0, c.tips?.split(" "));
|
|
1298
995
|
}
|
|
1299
996
|
function getGitStartEnd(range) {
|
|
1300
|
-
|
|
1301
|
-
return [range.startLine, range.endLine];
|
|
997
|
+
return [range.startLine, range.endLine];
|
|
1302
998
|
}
|
|
1303
|
-
async function parseCommits(parser, resultOrStream, repoPath, pathspec, limit, stashes, currentUser, searchFilters,
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
countStashChildCommits++;
|
|
1395
|
-
}
|
|
1396
|
-
else if (allowFilteredFiles) {
|
|
1397
|
-
commits.set(stash.sha, stash.with({
|
|
1398
|
-
fileset: {
|
|
1399
|
-
...createCommitFileset(c, repoPath, pathspec),
|
|
1400
|
-
// Add the full stash files back into the fileset
|
|
1401
|
-
files: stash.fileset?.files,
|
|
1402
|
-
},
|
|
1403
|
-
}));
|
|
1404
|
-
}
|
|
1405
|
-
else {
|
|
1406
|
-
commits.set(stash.sha, stash);
|
|
1407
|
-
}
|
|
1408
|
-
continue;
|
|
1409
|
-
}
|
|
1410
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
else {
|
|
1414
|
-
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1415
|
-
if (tipsOnly && !c.tips)
|
|
1416
|
-
continue;
|
|
1417
|
-
count++;
|
|
1418
|
-
if (limit && count > limit)
|
|
1419
|
-
break;
|
|
1420
|
-
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
return { commits: commits, count: count, countStashChildCommits: countStashChildCommits };
|
|
1424
|
-
}
|
|
1425
|
-
catch (e_2) {
|
|
1426
|
-
env_1.error = e_2;
|
|
1427
|
-
env_1.hasError = true;
|
|
1428
|
-
}
|
|
1429
|
-
finally {
|
|
1430
|
-
__disposeResources(env_1);
|
|
1431
|
-
}
|
|
999
|
+
async function parseCommits(parser, resultOrStream, repoPath, pathspec, limit, stashes, currentUser, searchFilters, mergesOnly = false) {
|
|
1000
|
+
try {
|
|
1001
|
+
var _usingCtx$1 = _usingCtx();
|
|
1002
|
+
let count = 0;
|
|
1003
|
+
let countStashChildCommits = 0;
|
|
1004
|
+
const commits = /* @__PURE__ */ new Map();
|
|
1005
|
+
const tipsOnly = searchFilters?.type === "tip";
|
|
1006
|
+
if (resultOrStream instanceof Promise) try {
|
|
1007
|
+
var _usingCtx3 = _usingCtx();
|
|
1008
|
+
const scope = getScopedLogger();
|
|
1009
|
+
const result = await resultOrStream;
|
|
1010
|
+
const sw = _usingCtx3.u(maybeStopWatch(scope, { log: {
|
|
1011
|
+
onlyExit: true,
|
|
1012
|
+
level: "debug"
|
|
1013
|
+
} }));
|
|
1014
|
+
if (stashes?.size) {
|
|
1015
|
+
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1016
|
+
const stashesOnly = searchFilters?.type === "stash";
|
|
1017
|
+
for (const c of parser.parse(result.stdout)) {
|
|
1018
|
+
if (stashesOnly && !stashes?.has(c.sha)) continue;
|
|
1019
|
+
if (mergesOnly && stashes?.has(c.sha)) continue;
|
|
1020
|
+
if (tipsOnly && !c.tips) continue;
|
|
1021
|
+
count++;
|
|
1022
|
+
if (limit && count > limit) break;
|
|
1023
|
+
const stash = stashes?.get(c.sha);
|
|
1024
|
+
if (stash != null) {
|
|
1025
|
+
if (commits.has(stash.sha)) countStashChildCommits++;
|
|
1026
|
+
else if (allowFilteredFiles) commits.set(stash.sha, stash.with({ fileset: {
|
|
1027
|
+
...createCommitFileset(c, repoPath, pathspec),
|
|
1028
|
+
files: stash.fileset?.files
|
|
1029
|
+
} }));
|
|
1030
|
+
else commits.set(stash.sha, stash);
|
|
1031
|
+
continue;
|
|
1032
|
+
}
|
|
1033
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1034
|
+
}
|
|
1035
|
+
} else for (const c of parser.parse(result.stdout)) {
|
|
1036
|
+
if (tipsOnly && !c.tips) continue;
|
|
1037
|
+
count++;
|
|
1038
|
+
if (limit && count > limit) break;
|
|
1039
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1040
|
+
}
|
|
1041
|
+
sw?.stop({ suffix: ` created ${count} commits` });
|
|
1042
|
+
return {
|
|
1043
|
+
commits,
|
|
1044
|
+
count,
|
|
1045
|
+
countStashChildCommits
|
|
1046
|
+
};
|
|
1047
|
+
} catch (_) {
|
|
1048
|
+
_usingCtx3.e = _;
|
|
1049
|
+
} finally {
|
|
1050
|
+
_usingCtx3.d();
|
|
1051
|
+
}
|
|
1052
|
+
_usingCtx$1.u(createDisposable(() => void resultOrStream.return?.(void 0)));
|
|
1053
|
+
if (stashes?.size) {
|
|
1054
|
+
const allowFilteredFiles = searchFilters?.files ?? false;
|
|
1055
|
+
const stashesOnly = searchFilters?.type === "stash";
|
|
1056
|
+
for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1057
|
+
if (stashesOnly && !stashes?.has(c.sha)) continue;
|
|
1058
|
+
if (mergesOnly && stashes?.has(c.sha)) continue;
|
|
1059
|
+
if (tipsOnly && !c.tips) continue;
|
|
1060
|
+
count++;
|
|
1061
|
+
if (limit && count > limit) break;
|
|
1062
|
+
const stash = stashes?.get(c.sha);
|
|
1063
|
+
if (stash != null) {
|
|
1064
|
+
if (commits.has(stash.sha)) countStashChildCommits++;
|
|
1065
|
+
else if (allowFilteredFiles) commits.set(stash.sha, stash.with({ fileset: {
|
|
1066
|
+
...createCommitFileset(c, repoPath, pathspec),
|
|
1067
|
+
files: stash.fileset?.files
|
|
1068
|
+
} }));
|
|
1069
|
+
else commits.set(stash.sha, stash);
|
|
1070
|
+
continue;
|
|
1071
|
+
}
|
|
1072
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1073
|
+
}
|
|
1074
|
+
} else for await (const c of parser.parseAsync(resultOrStream)) {
|
|
1075
|
+
if (tipsOnly && !c.tips) continue;
|
|
1076
|
+
count++;
|
|
1077
|
+
if (limit && count > limit) break;
|
|
1078
|
+
commits.set(c.sha, toCommit(c, repoPath, pathspec, currentUser));
|
|
1079
|
+
}
|
|
1080
|
+
return {
|
|
1081
|
+
commits,
|
|
1082
|
+
count,
|
|
1083
|
+
countStashChildCommits
|
|
1084
|
+
};
|
|
1085
|
+
} catch (_) {
|
|
1086
|
+
_usingCtx$1.e = _;
|
|
1087
|
+
} finally {
|
|
1088
|
+
_usingCtx$1.d();
|
|
1089
|
+
}
|
|
1432
1090
|
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
export { CommitsGitSubProvider, parseCatFileBatchForSshSigners };
|
|
1093
|
+
|
|
1433
1094
|
//# sourceMappingURL=commits.js.map
|