@gitkraken/core-gitlens 0.1.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 +16 -0
- package/LICENSE +30 -0
- package/LICENSE.plus +40 -0
- package/README.md +54 -0
- package/dist/git/cache.d.ts +140 -0
- package/dist/git/cache.d.ts.map +1 -0
- package/dist/git/cache.js +765 -0
- package/dist/git/cache.js.map +1 -0
- package/dist/git/context.d.ts +238 -0
- package/dist/git/context.d.ts.map +1 -0
- package/dist/git/context.js +11 -0
- package/dist/git/context.js.map +1 -0
- package/dist/git/errors.d.ts +419 -0
- package/dist/git/errors.d.ts.map +1 -0
- package/dist/git/errors.js +681 -0
- package/dist/git/errors.js.map +1 -0
- package/dist/git/exec.types.d.ts +66 -0
- package/dist/git/exec.types.d.ts.map +1 -0
- package/dist/git/exec.types.js +2 -0
- package/dist/git/exec.types.js.map +1 -0
- package/dist/git/features.d.ts +8 -0
- package/dist/git/features.d.ts.map +1 -0
- package/dist/git/features.js +18 -0
- package/dist/git/features.js.map +1 -0
- package/dist/git/models/author.d.ts +17 -0
- package/dist/git/models/author.d.ts.map +1 -0
- package/dist/git/models/author.js +2 -0
- package/dist/git/models/author.js.map +1 -0
- package/dist/git/models/autolink.d.ts +51 -0
- package/dist/git/models/autolink.d.ts.map +1 -0
- package/dist/git/models/autolink.js +2 -0
- package/dist/git/models/autolink.js.map +1 -0
- package/dist/git/models/blame.d.ts +41 -0
- package/dist/git/models/blame.d.ts.map +1 -0
- package/dist/git/models/blame.js +2 -0
- package/dist/git/models/blame.js.map +1 -0
- package/dist/git/models/branch.d.ts +85 -0
- package/dist/git/models/branch.d.ts.map +1 -0
- package/dist/git/models/branch.js +174 -0
- package/dist/git/models/branch.js.map +1 -0
- package/dist/git/models/commit.d.ts +163 -0
- package/dist/git/models/commit.d.ts.map +1 -0
- package/dist/git/models/commit.js +496 -0
- package/dist/git/models/commit.js.map +1 -0
- package/dist/git/models/contributor.d.ts +40 -0
- package/dist/git/models/contributor.d.ts.map +1 -0
- package/dist/git/models/contributor.js +67 -0
- package/dist/git/models/contributor.js.map +1 -0
- package/dist/git/models/defaultBranch.d.ts +6 -0
- package/dist/git/models/defaultBranch.d.ts.map +1 -0
- package/dist/git/models/defaultBranch.js +2 -0
- package/dist/git/models/defaultBranch.js.map +1 -0
- package/dist/git/models/diff.d.ts +73 -0
- package/dist/git/models/diff.d.ts.map +1 -0
- package/dist/git/models/diff.js +2 -0
- package/dist/git/models/diff.js.map +1 -0
- package/dist/git/models/file.d.ts +23 -0
- package/dist/git/models/file.d.ts.map +1 -0
- package/dist/git/models/file.js +2 -0
- package/dist/git/models/file.js.map +1 -0
- package/dist/git/models/fileChange.d.ts +50 -0
- package/dist/git/models/fileChange.d.ts.map +1 -0
- package/dist/git/models/fileChange.js +69 -0
- package/dist/git/models/fileChange.js.map +1 -0
- package/dist/git/models/fileStatus.d.ts +33 -0
- package/dist/git/models/fileStatus.d.ts.map +1 -0
- package/dist/git/models/fileStatus.js +29 -0
- package/dist/git/models/fileStatus.js.map +1 -0
- package/dist/git/models/graph.d.ts +171 -0
- package/dist/git/models/graph.d.ts.map +1 -0
- package/dist/git/models/graph.js +2 -0
- package/dist/git/models/graph.js.map +1 -0
- package/dist/git/models/graphSearch.d.ts +48 -0
- package/dist/git/models/graphSearch.d.ts.map +1 -0
- package/dist/git/models/graphSearch.js +2 -0
- package/dist/git/models/graphSearch.js.map +1 -0
- package/dist/git/models/issue.d.ts +69 -0
- package/dist/git/models/issue.d.ts.map +1 -0
- package/dist/git/models/issue.js +68 -0
- package/dist/git/models/issue.js.map +1 -0
- package/dist/git/models/issueOrPullRequest.d.ts +19 -0
- package/dist/git/models/issueOrPullRequest.d.ts.map +1 -0
- package/dist/git/models/issueOrPullRequest.js +2 -0
- package/dist/git/models/issueOrPullRequest.js.map +1 -0
- package/dist/git/models/lineRange.d.ts +8 -0
- package/dist/git/models/lineRange.d.ts.map +1 -0
- package/dist/git/models/lineRange.js +2 -0
- package/dist/git/models/lineRange.js.map +1 -0
- package/dist/git/models/log.d.ts +19 -0
- package/dist/git/models/log.d.ts.map +1 -0
- package/dist/git/models/log.js +2 -0
- package/dist/git/models/log.js.map +1 -0
- package/dist/git/models/mergeConflicts.d.ts +23 -0
- package/dist/git/models/mergeConflicts.d.ts.map +1 -0
- package/dist/git/models/mergeConflicts.js +2 -0
- package/dist/git/models/mergeConflicts.js.map +1 -0
- package/dist/git/models/patch.d.ts +22 -0
- package/dist/git/models/patch.d.ts.map +1 -0
- package/dist/git/models/patch.js +2 -0
- package/dist/git/models/patch.js.map +1 -0
- package/dist/git/models/pausedOperationStatus.d.ts +52 -0
- package/dist/git/models/pausedOperationStatus.d.ts.map +1 -0
- package/dist/git/models/pausedOperationStatus.js +2 -0
- package/dist/git/models/pausedOperationStatus.js.map +1 -0
- package/dist/git/models/pullRequest.d.ts +125 -0
- package/dist/git/models/pullRequest.d.ts.map +1 -0
- package/dist/git/models/pullRequest.js +127 -0
- package/dist/git/models/pullRequest.js.map +1 -0
- package/dist/git/models/rebase.d.ts +51 -0
- package/dist/git/models/rebase.d.ts.map +1 -0
- package/dist/git/models/rebase.js +2 -0
- package/dist/git/models/rebase.js.map +1 -0
- package/dist/git/models/reference.d.ts +48 -0
- package/dist/git/models/reference.d.ts.map +1 -0
- package/dist/git/models/reference.js +2 -0
- package/dist/git/models/reference.js.map +1 -0
- package/dist/git/models/reflog.d.ts +33 -0
- package/dist/git/models/reflog.d.ts.map +1 -0
- package/dist/git/models/reflog.js +85 -0
- package/dist/git/models/reflog.js.map +1 -0
- package/dist/git/models/remote.d.ts +37 -0
- package/dist/git/models/remote.d.ts.map +1 -0
- package/dist/git/models/remote.js +98 -0
- package/dist/git/models/remote.js.map +1 -0
- package/dist/git/models/remoteProvider.d.ts +112 -0
- package/dist/git/models/remoteProvider.d.ts.map +1 -0
- package/dist/git/models/remoteProvider.js +154 -0
- package/dist/git/models/remoteProvider.js.map +1 -0
- package/dist/git/models/remoteResource.d.ts +78 -0
- package/dist/git/models/remoteResource.d.ts.map +1 -0
- package/dist/git/models/remoteResource.js +13 -0
- package/dist/git/models/remoteResource.js.map +1 -0
- package/dist/git/models/repository.d.ts +106 -0
- package/dist/git/models/repository.d.ts.map +1 -0
- package/dist/git/models/repository.js +324 -0
- package/dist/git/models/repository.js.map +1 -0
- package/dist/git/models/repositoryChangeEvent.d.ts +17 -0
- package/dist/git/models/repositoryChangeEvent.d.ts.map +1 -0
- package/dist/git/models/repositoryChangeEvent.js +26 -0
- package/dist/git/models/repositoryChangeEvent.js.map +1 -0
- package/dist/git/models/repositoryIdentities.d.ts +72 -0
- package/dist/git/models/repositoryIdentities.d.ts.map +1 -0
- package/dist/git/models/repositoryIdentities.js +7 -0
- package/dist/git/models/repositoryIdentities.js.map +1 -0
- package/dist/git/models/repositoryMetadata.d.ts +12 -0
- package/dist/git/models/repositoryMetadata.d.ts.map +1 -0
- package/dist/git/models/repositoryMetadata.js +2 -0
- package/dist/git/models/repositoryMetadata.js.map +1 -0
- package/dist/git/models/resourceDescriptor.d.ts +12 -0
- package/dist/git/models/resourceDescriptor.d.ts.map +1 -0
- package/dist/git/models/resourceDescriptor.js +2 -0
- package/dist/git/models/resourceDescriptor.js.map +1 -0
- package/dist/git/models/revision.d.ts +7 -0
- package/dist/git/models/revision.d.ts.map +1 -0
- package/dist/git/models/revision.js +6 -0
- package/dist/git/models/revision.js.map +1 -0
- package/dist/git/models/search.d.ts +66 -0
- package/dist/git/models/search.d.ts.map +1 -0
- package/dist/git/models/search.js +48 -0
- package/dist/git/models/search.js.map +1 -0
- package/dist/git/models/shortlog.d.ts +6 -0
- package/dist/git/models/shortlog.d.ts.map +1 -0
- package/dist/git/models/shortlog.js +2 -0
- package/dist/git/models/shortlog.js.map +1 -0
- package/dist/git/models/signature.d.ts +26 -0
- package/dist/git/models/signature.d.ts.map +1 -0
- package/dist/git/models/signature.js +2 -0
- package/dist/git/models/signature.js.map +1 -0
- package/dist/git/models/staging.d.ts +24 -0
- package/dist/git/models/staging.d.ts.map +1 -0
- package/dist/git/models/staging.js +2 -0
- package/dist/git/models/staging.js.map +1 -0
- package/dist/git/models/stash.d.ts +6 -0
- package/dist/git/models/stash.d.ts.map +1 -0
- package/dist/git/models/stash.js +2 -0
- package/dist/git/models/stash.js.map +1 -0
- package/dist/git/models/status.d.ts +55 -0
- package/dist/git/models/status.d.ts.map +1 -0
- package/dist/git/models/status.js +208 -0
- package/dist/git/models/status.js.map +1 -0
- package/dist/git/models/statusFile.d.ts +28 -0
- package/dist/git/models/statusFile.d.ts.map +1 -0
- package/dist/git/models/statusFile.js +114 -0
- package/dist/git/models/statusFile.js.map +1 -0
- package/dist/git/models/tag.d.ts +26 -0
- package/dist/git/models/tag.d.ts.map +1 -0
- package/dist/git/models/tag.js +73 -0
- package/dist/git/models/tag.js.map +1 -0
- package/dist/git/models/tree.d.ts +10 -0
- package/dist/git/models/tree.d.ts.map +1 -0
- package/dist/git/models/tree.js +2 -0
- package/dist/git/models/tree.js.map +1 -0
- package/dist/git/models/user.d.ts +7 -0
- package/dist/git/models/user.d.ts.map +1 -0
- package/dist/git/models/user.js +2 -0
- package/dist/git/models/user.js.map +1 -0
- package/dist/git/models/worktree.d.ts +51 -0
- package/dist/git/models/worktree.d.ts.map +1 -0
- package/dist/git/models/worktree.js +136 -0
- package/dist/git/models/worktree.js.map +1 -0
- package/dist/git/parsers/diffParser.d.ts +45 -0
- package/dist/git/parsers/diffParser.d.ts.map +1 -0
- package/dist/git/parsers/diffParser.js +628 -0
- package/dist/git/parsers/diffParser.js.map +1 -0
- package/dist/git/parsers/rebaseTodoParser.d.ts +15 -0
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +1 -0
- package/dist/git/parsers/rebaseTodoParser.js +215 -0
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -0
- package/dist/git/providers/blame.d.ts +15 -0
- package/dist/git/providers/blame.d.ts.map +1 -0
- package/dist/git/providers/blame.js +2 -0
- package/dist/git/providers/blame.js.map +1 -0
- package/dist/git/providers/branches.d.ts +80 -0
- package/dist/git/providers/branches.d.ts.map +1 -0
- package/dist/git/providers/branches.js +2 -0
- package/dist/git/providers/branches.js.map +1 -0
- package/dist/git/providers/commits.d.ts +102 -0
- package/dist/git/providers/commits.d.ts.map +1 -0
- package/dist/git/providers/commits.js +2 -0
- package/dist/git/providers/commits.js.map +1 -0
- package/dist/git/providers/config.d.ts +64 -0
- package/dist/git/providers/config.d.ts.map +1 -0
- package/dist/git/providers/config.js +2 -0
- package/dist/git/providers/config.js.map +1 -0
- package/dist/git/providers/contributors.d.ts +26 -0
- package/dist/git/providers/contributors.d.ts.map +1 -0
- package/dist/git/providers/contributors.js +2 -0
- package/dist/git/providers/contributors.js.map +1 -0
- package/dist/git/providers/diff.d.ts +73 -0
- package/dist/git/providers/diff.d.ts.map +1 -0
- package/dist/git/providers/diff.js +2 -0
- package/dist/git/providers/diff.js.map +1 -0
- package/dist/git/providers/graph.d.ts +20 -0
- package/dist/git/providers/graph.d.ts.map +1 -0
- package/dist/git/providers/graph.js +2 -0
- package/dist/git/providers/graph.js.map +1 -0
- package/dist/git/providers/operations.d.ts +65 -0
- package/dist/git/providers/operations.d.ts.map +1 -0
- package/dist/git/providers/operations.js +2 -0
- package/dist/git/providers/operations.js.map +1 -0
- package/dist/git/providers/patch.d.ts +27 -0
- package/dist/git/providers/patch.d.ts.map +1 -0
- package/dist/git/providers/patch.js +2 -0
- package/dist/git/providers/patch.js.map +1 -0
- package/dist/git/providers/pausedOperations.d.ts +11 -0
- package/dist/git/providers/pausedOperations.d.ts.map +1 -0
- package/dist/git/providers/pausedOperations.js +2 -0
- package/dist/git/providers/pausedOperations.js.map +1 -0
- package/dist/git/providers/provider.d.ts +57 -0
- package/dist/git/providers/provider.d.ts.map +1 -0
- package/dist/git/providers/provider.js +2 -0
- package/dist/git/providers/provider.js.map +1 -0
- package/dist/git/providers/refs.d.ts +22 -0
- package/dist/git/providers/refs.d.ts.map +1 -0
- package/dist/git/providers/refs.js +2 -0
- package/dist/git/providers/refs.js.map +1 -0
- package/dist/git/providers/remotes.d.ts +25 -0
- package/dist/git/providers/remotes.d.ts.map +1 -0
- package/dist/git/providers/remotes.js +2 -0
- package/dist/git/providers/remotes.js.map +1 -0
- package/dist/git/providers/revision.d.ts +28 -0
- package/dist/git/providers/revision.d.ts.map +1 -0
- package/dist/git/providers/revision.js +2 -0
- package/dist/git/providers/revision.js.map +1 -0
- package/dist/git/providers/shared/remotes.d.ts +25 -0
- package/dist/git/providers/shared/remotes.d.ts.map +1 -0
- package/dist/git/providers/shared/remotes.js +79 -0
- package/dist/git/providers/shared/remotes.js.map +1 -0
- package/dist/git/providers/staging.d.ts +22 -0
- package/dist/git/providers/staging.d.ts.map +1 -0
- package/dist/git/providers/staging.js +2 -0
- package/dist/git/providers/staging.js.map +1 -0
- package/dist/git/providers/stash.d.ts +41 -0
- package/dist/git/providers/stash.d.ts.map +1 -0
- package/dist/git/providers/stash.js +2 -0
- package/dist/git/providers/stash.js.map +1 -0
- package/dist/git/providers/status.d.ts +30 -0
- package/dist/git/providers/status.d.ts.map +1 -0
- package/dist/git/providers/status.js +2 -0
- package/dist/git/providers/status.js.map +1 -0
- package/dist/git/providers/tags.d.ts +18 -0
- package/dist/git/providers/tags.d.ts.map +1 -0
- package/dist/git/providers/tags.js +2 -0
- package/dist/git/providers/tags.js.map +1 -0
- package/dist/git/providers/types.d.ts +28 -0
- package/dist/git/providers/types.d.ts.map +1 -0
- package/dist/git/providers/types.js +2 -0
- package/dist/git/providers/types.js.map +1 -0
- package/dist/git/providers/worktrees.d.ts +23 -0
- package/dist/git/providers/worktrees.d.ts.map +1 -0
- package/dist/git/providers/worktrees.js +2 -0
- package/dist/git/providers/worktrees.js.map +1 -0
- package/dist/git/remotes/azure-devops.d.ts +43 -0
- package/dist/git/remotes/azure-devops.d.ts.map +1 -0
- package/dist/git/remotes/azure-devops.js +248 -0
- package/dist/git/remotes/azure-devops.js.map +1 -0
- package/dist/git/remotes/bitbucket-server.d.ts +32 -0
- package/dist/git/remotes/bitbucket-server.d.ts.map +1 -0
- package/dist/git/remotes/bitbucket-server.js +145 -0
- package/dist/git/remotes/bitbucket-server.js.map +1 -0
- package/dist/git/remotes/bitbucket.d.ts +29 -0
- package/dist/git/remotes/bitbucket.d.ts.map +1 -0
- package/dist/git/remotes/bitbucket.js +114 -0
- package/dist/git/remotes/bitbucket.js.map +1 -0
- package/dist/git/remotes/custom.d.ts +26 -0
- package/dist/git/remotes/custom.d.ts.map +1 -0
- package/dist/git/remotes/custom.js +111 -0
- package/dist/git/remotes/custom.js.map +1 -0
- package/dist/git/remotes/gerrit.d.ts +31 -0
- package/dist/git/remotes/gerrit.d.ts.map +1 -0
- package/dist/git/remotes/gerrit.js +146 -0
- package/dist/git/remotes/gerrit.js.map +1 -0
- package/dist/git/remotes/gitea.d.ts +30 -0
- package/dist/git/remotes/gitea.d.ts.map +1 -0
- package/dist/git/remotes/gitea.js +148 -0
- package/dist/git/remotes/gitea.js.map +1 -0
- package/dist/git/remotes/github.d.ts +41 -0
- package/dist/git/remotes/github.d.ts.map +1 -0
- package/dist/git/remotes/github.js +198 -0
- package/dist/git/remotes/github.js.map +1 -0
- package/dist/git/remotes/gitlab.d.ts +35 -0
- package/dist/git/remotes/gitlab.d.ts.map +1 -0
- package/dist/git/remotes/gitlab.js +232 -0
- package/dist/git/remotes/gitlab.js.map +1 -0
- package/dist/git/remotes/google-source.d.ts +17 -0
- package/dist/git/remotes/google-source.d.ts.map +1 -0
- package/dist/git/remotes/google-source.js +32 -0
- package/dist/git/remotes/google-source.js.map +1 -0
- package/dist/git/remotes/matcher.d.ts +35 -0
- package/dist/git/remotes/matcher.d.ts.map +1 -0
- package/dist/git/remotes/matcher.js +140 -0
- package/dist/git/remotes/matcher.js.map +1 -0
- package/dist/git/repositoryService.d.ts +127 -0
- package/dist/git/repositoryService.d.ts.map +1 -0
- package/dist/git/repositoryService.js +54 -0
- package/dist/git/repositoryService.js.map +1 -0
- package/dist/git/service.d.ts +112 -0
- package/dist/git/service.d.ts.map +1 -0
- package/dist/git/service.js +303 -0
- package/dist/git/service.js.map +1 -0
- package/dist/git/utils/autolink.utils.d.ts +13 -0
- package/dist/git/utils/autolink.utils.d.ts.map +1 -0
- package/dist/git/utils/autolink.utils.js +147 -0
- package/dist/git/utils/autolink.utils.js.map +1 -0
- package/dist/git/utils/blame.utils.d.ts +47 -0
- package/dist/git/utils/blame.utils.d.ts.map +1 -0
- package/dist/git/utils/blame.utils.js +239 -0
- package/dist/git/utils/blame.utils.js.map +1 -0
- package/dist/git/utils/branch.utils.d.ts +22 -0
- package/dist/git/utils/branch.utils.d.ts.map +1 -0
- package/dist/git/utils/branch.utils.js +122 -0
- package/dist/git/utils/branch.utils.js.map +1 -0
- package/dist/git/utils/commit.utils.d.ts +26 -0
- package/dist/git/utils/commit.utils.d.ts.map +1 -0
- package/dist/git/utils/commit.utils.js +54 -0
- package/dist/git/utils/commit.utils.js.map +1 -0
- package/dist/git/utils/contributor.utils.d.ts +15 -0
- package/dist/git/utils/contributor.utils.d.ts.map +1 -0
- package/dist/git/utils/contributor.utils.js +55 -0
- package/dist/git/utils/contributor.utils.js.map +1 -0
- package/dist/git/utils/fetch.utils.d.ts +20 -0
- package/dist/git/utils/fetch.utils.d.ts.map +1 -0
- package/dist/git/utils/fetch.utils.js +47 -0
- package/dist/git/utils/fetch.utils.js.map +1 -0
- package/dist/git/utils/fileStatus.utils.d.ts +24 -0
- package/dist/git/utils/fileStatus.utils.d.ts.map +1 -0
- package/dist/git/utils/fileStatus.utils.js +45 -0
- package/dist/git/utils/fileStatus.utils.js.map +1 -0
- package/dist/git/utils/issue.utils.d.ts +4 -0
- package/dist/git/utils/issue.utils.d.ts.map +1 -0
- package/dist/git/utils/issue.utils.js +76 -0
- package/dist/git/utils/issue.utils.js.map +1 -0
- package/dist/git/utils/issueOrPullRequest.utils.d.ts +3 -0
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +1 -0
- package/dist/git/utils/issueOrPullRequest.utils.js +22 -0
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -0
- package/dist/git/utils/mergeConflicts.utils.d.ts +3 -0
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +1 -0
- package/dist/git/utils/mergeConflicts.utils.js +19 -0
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -0
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +58 -0
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +1 -0
- package/dist/git/utils/pausedOperationStatus.utils.js +133 -0
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -0
- package/dist/git/utils/pullRequest.utils.d.ts +12 -0
- package/dist/git/utils/pullRequest.utils.d.ts.map +1 -0
- package/dist/git/utils/pullRequest.utils.js +124 -0
- package/dist/git/utils/pullRequest.utils.js.map +1 -0
- package/dist/git/utils/rebase.utils.d.ts +19 -0
- package/dist/git/utils/rebase.utils.d.ts.map +1 -0
- package/dist/git/utils/rebase.utils.js +93 -0
- package/dist/git/utils/rebase.utils.js.map +1 -0
- package/dist/git/utils/reference.utils.d.ts +56 -0
- package/dist/git/utils/reference.utils.d.ts.map +1 -0
- package/dist/git/utils/reference.utils.js +191 -0
- package/dist/git/utils/reference.utils.js.map +1 -0
- package/dist/git/utils/remote.utils.d.ts +17 -0
- package/dist/git/utils/remote.utils.d.ts.map +1 -0
- package/dist/git/utils/remote.utils.js +124 -0
- package/dist/git/utils/remote.utils.js.map +1 -0
- package/dist/git/utils/repository.utils.d.ts +5 -0
- package/dist/git/utils/repository.utils.d.ts.map +1 -0
- package/dist/git/utils/repository.utils.js +15 -0
- package/dist/git/utils/repository.utils.js.map +1 -0
- package/dist/git/utils/resourceDescriptor.utils.d.ts +4 -0
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +1 -0
- package/dist/git/utils/resourceDescriptor.utils.js +17 -0
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -0
- package/dist/git/utils/revision.utils.d.ts +36 -0
- package/dist/git/utils/revision.utils.d.ts.map +1 -0
- package/dist/git/utils/revision.utils.js +114 -0
- package/dist/git/utils/revision.utils.js.map +1 -0
- package/dist/git/utils/search.utils.d.ts +15 -0
- package/dist/git/utils/search.utils.d.ts.map +1 -0
- package/dist/git/utils/search.utils.js +422 -0
- package/dist/git/utils/search.utils.js.map +1 -0
- package/dist/git/utils/sorting.d.ts +34 -0
- package/dist/git/utils/sorting.d.ts.map +1 -0
- package/dist/git/utils/sorting.js +203 -0
- package/dist/git/utils/sorting.js.map +1 -0
- package/dist/git/utils/status.utils.d.ts +20 -0
- package/dist/git/utils/status.utils.d.ts.map +1 -0
- package/dist/git/utils/status.utils.js +82 -0
- package/dist/git/utils/status.utils.js.map +1 -0
- package/dist/git/utils/statusFile.utils.d.ts +8 -0
- package/dist/git/utils/statusFile.utils.d.ts.map +1 -0
- package/dist/git/utils/statusFile.utils.js +76 -0
- package/dist/git/utils/statusFile.utils.js.map +1 -0
- package/dist/git/utils/tag.utils.d.ts +7 -0
- package/dist/git/utils/tag.utils.d.ts.map +1 -0
- package/dist/git/utils/tag.utils.js +13 -0
- package/dist/git/utils/tag.utils.js.map +1 -0
- package/dist/git/utils/tooltip.utils.d.ts +14 -0
- package/dist/git/utils/tooltip.utils.d.ts.map +1 -0
- package/dist/git/utils/tooltip.utils.js +29 -0
- package/dist/git/utils/tooltip.utils.js.map +1 -0
- package/dist/git/utils/uriAuthority.d.ts +16 -0
- package/dist/git/utils/uriAuthority.d.ts.map +1 -0
- package/dist/git/utils/uriAuthority.js +20 -0
- package/dist/git/utils/uriAuthority.js.map +1 -0
- package/dist/git/utils/user.utils.d.ts +3 -0
- package/dist/git/utils/user.utils.d.ts.map +1 -0
- package/dist/git/utils/user.utils.js +12 -0
- package/dist/git/utils/user.utils.js.map +1 -0
- package/dist/git/utils/worktree.utils.d.ts +7 -0
- package/dist/git/utils/worktree.utils.d.ts.map +1 -0
- package/dist/git/utils/worktree.utils.js +15 -0
- package/dist/git/utils/worktree.utils.js.map +1 -0
- package/dist/git/watching/changeEvent.d.ts +47 -0
- package/dist/git/watching/changeEvent.d.ts.map +1 -0
- package/dist/git/watching/changeEvent.js +69 -0
- package/dist/git/watching/changeEvent.js.map +1 -0
- package/dist/git/watching/classifyChange.d.ts +16 -0
- package/dist/git/watching/classifyChange.d.ts.map +1 -0
- package/dist/git/watching/classifyChange.js +61 -0
- package/dist/git/watching/classifyChange.js.map +1 -0
- package/dist/git/watching/gitIgnoreFilter.d.ts +58 -0
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +1 -0
- package/dist/git/watching/gitIgnoreFilter.js +109 -0
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -0
- package/dist/git/watching/initWatcher.d.ts +33 -0
- package/dist/git/watching/initWatcher.d.ts.map +1 -0
- package/dist/git/watching/initWatcher.js +59 -0
- package/dist/git/watching/initWatcher.js.map +1 -0
- package/dist/git/watching/provider.d.ts +23 -0
- package/dist/git/watching/provider.d.ts.map +1 -0
- package/dist/git/watching/provider.js +2 -0
- package/dist/git/watching/provider.js.map +1 -0
- package/dist/git/watching/watchGroup.d.ts +54 -0
- package/dist/git/watching/watchGroup.d.ts.map +1 -0
- package/dist/git/watching/watchGroup.js +139 -0
- package/dist/git/watching/watchGroup.js.map +1 -0
- package/dist/git/watching/watchService.d.ts +79 -0
- package/dist/git/watching/watchService.d.ts.map +1 -0
- package/dist/git/watching/watchService.js +282 -0
- package/dist/git/watching/watchService.js.map +1 -0
- package/dist/git/watching/watchSession.d.ts +118 -0
- package/dist/git/watching/watchSession.d.ts.map +1 -0
- package/dist/git/watching/watchSession.js +274 -0
- package/dist/git/watching/watchSession.js.map +1 -0
- package/dist/git/watching/watcherPatterns.d.ts +21 -0
- package/dist/git/watching/watcherPatterns.d.ts.map +1 -0
- package/dist/git/watching/watcherPatterns.js +36 -0
- package/dist/git/watching/watcherPatterns.js.map +1 -0
- package/dist/git-cli/cliGitProvider.d.ts +133 -0
- package/dist/git-cli/cliGitProvider.d.ts.map +1 -0
- package/dist/git-cli/cliGitProvider.js +273 -0
- package/dist/git-cli/cliGitProvider.js.map +1 -0
- package/dist/git-cli/exec/exec.d.ts +4 -0
- package/dist/git-cli/exec/exec.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.errors.d.ts +2 -0
- package/dist/git-cli/exec/exec.errors.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.errors.js +2 -0
- package/dist/git-cli/exec/exec.errors.js.map +1 -0
- package/dist/git-cli/exec/exec.js +3 -0
- package/dist/git-cli/exec/exec.js.map +1 -0
- package/dist/git-cli/exec/exec.types.d.ts +2 -0
- package/dist/git-cli/exec/exec.types.d.ts.map +1 -0
- package/dist/git-cli/exec/exec.types.js +2 -0
- package/dist/git-cli/exec/exec.types.js.map +1 -0
- package/dist/git-cli/exec/features.d.ts +3 -0
- package/dist/git-cli/exec/features.d.ts.map +1 -0
- package/dist/git-cli/exec/features.js +2 -0
- package/dist/git-cli/exec/features.js.map +1 -0
- package/dist/git-cli/exec/git.d.ts +228 -0
- package/dist/git-cli/exec/git.d.ts.map +1 -0
- package/dist/git-cli/exec/git.js +823 -0
- package/dist/git-cli/exec/git.js.map +1 -0
- package/dist/git-cli/exec/gitQueue.d.ts +68 -0
- package/dist/git-cli/exec/gitQueue.d.ts.map +1 -0
- package/dist/git-cli/exec/gitQueue.js +207 -0
- package/dist/git-cli/exec/gitQueue.js.map +1 -0
- package/dist/git-cli/exec/locator.d.ts +14 -0
- package/dist/git-cli/exec/locator.d.ts.map +1 -0
- package/dist/git-cli/exec/locator.js +133 -0
- package/dist/git-cli/exec/locator.js.map +1 -0
- package/dist/git-cli/parsers/blameParser.d.ts +30 -0
- package/dist/git-cli/parsers/blameParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/blameParser.js +339 -0
- package/dist/git-cli/parsers/blameParser.js.map +1 -0
- package/dist/git-cli/parsers/indexParser.d.ts +4 -0
- package/dist/git-cli/parsers/indexParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/indexParser.js +226 -0
- package/dist/git-cli/parsers/indexParser.js.map +1 -0
- package/dist/git-cli/parsers/logParser.d.ts +178 -0
- package/dist/git-cli/parsers/logParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/logParser.js +1166 -0
- package/dist/git-cli/parsers/logParser.js.map +1 -0
- package/dist/git-cli/parsers/mergeTreeParser.d.ts +7 -0
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/mergeTreeParser.js +74 -0
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -0
- package/dist/git-cli/parsers/refParser.d.ts +34 -0
- package/dist/git-cli/parsers/refParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/refParser.js +148 -0
- package/dist/git-cli/parsers/refParser.js.map +1 -0
- package/dist/git-cli/parsers/reflogParser.d.ts +12 -0
- package/dist/git-cli/parsers/reflogParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/reflogParser.js +181 -0
- package/dist/git-cli/parsers/reflogParser.js.map +1 -0
- package/dist/git-cli/parsers/remoteParser.d.ts +4 -0
- package/dist/git-cli/parsers/remoteParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/remoteParser.js +128 -0
- package/dist/git-cli/parsers/remoteParser.js.map +1 -0
- package/dist/git-cli/parsers/shortlogParser.d.ts +4 -0
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/shortlogParser.js +51 -0
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -0
- package/dist/git-cli/parsers/signatureParser.d.ts +21 -0
- package/dist/git-cli/parsers/signatureParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/signatureParser.js +139 -0
- package/dist/git-cli/parsers/signatureParser.js.map +1 -0
- package/dist/git-cli/parsers/statusParser.d.ts +4 -0
- package/dist/git-cli/parsers/statusParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/statusParser.js +216 -0
- package/dist/git-cli/parsers/statusParser.js.map +1 -0
- package/dist/git-cli/parsers/treeParser.d.ts +3 -0
- package/dist/git-cli/parsers/treeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/treeParser.js +110 -0
- package/dist/git-cli/parsers/treeParser.js.map +1 -0
- package/dist/git-cli/parsers/worktreeParser.d.ts +5 -0
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/worktreeParser.js +136 -0
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -0
- package/dist/git-cli/providers/blame.d.ts +26 -0
- package/dist/git-cli/providers/blame.d.ts.map +1 -0
- package/dist/git-cli/providers/blame.js +426 -0
- package/dist/git-cli/providers/blame.js.map +1 -0
- package/dist/git-cli/providers/branches.d.ts +87 -0
- package/dist/git-cli/providers/branches.d.ts.map +1 -0
- package/dist/git-cli/providers/branches.js +1153 -0
- package/dist/git-cli/providers/branches.js.map +1 -0
- package/dist/git-cli/providers/commitFilesetUtils.d.ts +4 -0
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +1 -0
- package/dist/git-cli/providers/commitFilesetUtils.js +20 -0
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -0
- package/dist/git-cli/providers/commits.d.ts +49 -0
- package/dist/git-cli/providers/commits.d.ts.map +1 -0
- package/dist/git-cli/providers/commits.js +1151 -0
- package/dist/git-cli/providers/commits.js.map +1 -0
- package/dist/git-cli/providers/config.d.ts +74 -0
- package/dist/git-cli/providers/config.d.ts.map +1 -0
- package/dist/git-cli/providers/config.js +588 -0
- package/dist/git-cli/providers/config.js.map +1 -0
- package/dist/git-cli/providers/contributors.d.ts +31 -0
- package/dist/git-cli/providers/contributors.d.ts.map +1 -0
- package/dist/git-cli/providers/contributors.js +350 -0
- package/dist/git-cli/providers/contributors.js.map +1 -0
- package/dist/git-cli/providers/diff.d.ts +99 -0
- package/dist/git-cli/providers/diff.d.ts.map +1 -0
- package/dist/git-cli/providers/diff.js +786 -0
- package/dist/git-cli/providers/diff.js.map +1 -0
- package/dist/git-cli/providers/graph.d.ts +31 -0
- package/dist/git-cli/providers/graph.d.ts.map +1 -0
- package/dist/git-cli/providers/graph.js +703 -0
- package/dist/git-cli/providers/graph.js.map +1 -0
- package/dist/git-cli/providers/operations.d.ts +75 -0
- package/dist/git-cli/providers/operations.d.ts.map +1 -0
- package/dist/git-cli/providers/operations.js +564 -0
- package/dist/git-cli/providers/operations.js.map +1 -0
- package/dist/git-cli/providers/patch.d.ts +38 -0
- package/dist/git-cli/providers/patch.d.ts.map +1 -0
- package/dist/git-cli/providers/patch.js +324 -0
- package/dist/git-cli/providers/patch.js.map +1 -0
- package/dist/git-cli/providers/pausedOperations.d.ts +22 -0
- package/dist/git-cli/providers/pausedOperations.d.ts.map +1 -0
- package/dist/git-cli/providers/pausedOperations.js +411 -0
- package/dist/git-cli/providers/pausedOperations.js.map +1 -0
- package/dist/git-cli/providers/refs.d.ts +32 -0
- package/dist/git-cli/providers/refs.d.ts.map +1 -0
- package/dist/git-cli/providers/refs.js +149 -0
- package/dist/git-cli/providers/refs.js.map +1 -0
- package/dist/git-cli/providers/remotes.d.ts +24 -0
- package/dist/git-cli/providers/remotes.d.ts.map +1 -0
- package/dist/git-cli/providers/remotes.js +94 -0
- package/dist/git-cli/providers/remotes.js.map +1 -0
- package/dist/git-cli/providers/revision.d.ts +27 -0
- package/dist/git-cli/providers/revision.d.ts.map +1 -0
- package/dist/git-cli/providers/revision.js +269 -0
- package/dist/git-cli/providers/revision.js.map +1 -0
- package/dist/git-cli/providers/staging.d.ts +24 -0
- package/dist/git-cli/providers/staging.d.ts.map +1 -0
- package/dist/git-cli/providers/staging.js +138 -0
- package/dist/git-cli/providers/staging.js.map +1 -0
- package/dist/git-cli/providers/stash.d.ts +55 -0
- package/dist/git-cli/providers/stash.d.ts.map +1 -0
- package/dist/git-cli/providers/stash.js +430 -0
- package/dist/git-cli/providers/stash.js.map +1 -0
- package/dist/git-cli/providers/status.d.ts +38 -0
- package/dist/git-cli/providers/status.d.ts.map +1 -0
- package/dist/git-cli/providers/status.js +352 -0
- package/dist/git-cli/providers/status.js.map +1 -0
- package/dist/git-cli/providers/tags.d.ts +29 -0
- package/dist/git-cli/providers/tags.d.ts.map +1 -0
- package/dist/git-cli/providers/tags.js +190 -0
- package/dist/git-cli/providers/tags.js.map +1 -0
- package/dist/git-cli/providers/worktrees.d.ts +33 -0
- package/dist/git-cli/providers/worktrees.d.ts.map +1 -0
- package/dist/git-cli/providers/worktrees.js +175 -0
- package/dist/git-cli/providers/worktrees.js.map +1 -0
- package/dist/git-cli/service.d.ts +52 -0
- package/dist/git-cli/service.d.ts.map +1 -0
- package/dist/git-cli/service.js +35 -0
- package/dist/git-cli/service.js.map +1 -0
- package/dist/plus/ai/constants.d.ts +21 -0
- package/dist/plus/ai/constants.d.ts.map +1 -0
- package/dist/plus/ai/constants.js +99 -0
- package/dist/plus/ai/constants.js.map +1 -0
- package/dist/plus/ai/errors.d.ts +25 -0
- package/dist/plus/ai/errors.d.ts.map +1 -0
- package/dist/plus/ai/errors.js +76 -0
- package/dist/plus/ai/errors.js.map +1 -0
- package/dist/plus/ai/models/conversation.d.ts +12 -0
- package/dist/plus/ai/models/conversation.d.ts.map +1 -0
- package/dist/plus/ai/models/conversation.js +27 -0
- package/dist/plus/ai/models/conversation.js.map +1 -0
- package/dist/plus/ai/models/model.d.ts +34 -0
- package/dist/plus/ai/models/model.d.ts.map +1 -0
- package/dist/plus/ai/models/model.js +379 -0
- package/dist/plus/ai/models/model.js.map +1 -0
- package/dist/plus/ai/models/promptTemplates.d.ts +74 -0
- package/dist/plus/ai/models/promptTemplates.d.ts.map +1 -0
- package/dist/plus/ai/models/promptTemplates.js +2 -0
- package/dist/plus/ai/models/promptTemplates.js.map +1 -0
- package/dist/plus/ai/models/provider.d.ts +46 -0
- package/dist/plus/ai/models/provider.d.ts.map +1 -0
- package/dist/plus/ai/models/provider.js +2 -0
- package/dist/plus/ai/models/provider.js.map +1 -0
- package/dist/plus/ai/models/results.d.ts +5 -0
- package/dist/plus/ai/models/results.d.ts.map +1 -0
- package/dist/plus/ai/models/results.js +2 -0
- package/dist/plus/ai/models/results.js.map +1 -0
- package/dist/plus/ai/prompts.d.ts +13 -0
- package/dist/plus/ai/prompts.d.ts.map +1 -0
- package/dist/plus/ai/prompts.js +517 -0
- package/dist/plus/ai/prompts.js.map +1 -0
- package/dist/plus/ai/providers/anthropicProvider.d.ts +21 -0
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/anthropicProvider.js +257 -0
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -0
- package/dist/plus/ai/providers/azureProvider.d.ts +18 -0
- package/dist/plus/ai/providers/azureProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/azureProvider.js +54 -0
- package/dist/plus/ai/providers/azureProvider.js.map +1 -0
- package/dist/plus/ai/providers/context.d.ts +23 -0
- package/dist/plus/ai/providers/context.d.ts.map +1 -0
- package/dist/plus/ai/providers/context.js +2 -0
- package/dist/plus/ai/providers/context.js.map +1 -0
- package/dist/plus/ai/providers/deepSeekProvider.d.ts +15 -0
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/deepSeekProvider.js +35 -0
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -0
- package/dist/plus/ai/providers/geminiProvider.d.ts +15 -0
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/geminiProvider.js +195 -0
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -0
- package/dist/plus/ai/providers/githubModelsProvider.d.ts +19 -0
- package/dist/plus/ai/providers/githubModelsProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/githubModelsProvider.js +51 -0
- package/dist/plus/ai/providers/githubModelsProvider.js.map +1 -0
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts +18 -0
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/gitkrakenProvider.js +151 -0
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -0
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +15 -0
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/huggingFaceProvider.js +39 -0
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -0
- package/dist/plus/ai/providers/mistralProvider.d.ts +20 -0
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/mistralProvider.js +118 -0
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -0
- package/dist/plus/ai/providers/ollamaProvider.d.ts +25 -0
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/ollamaProvider.js +155 -0
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts +17 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.js +47 -0
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +39 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +1 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +218 -0
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -0
- package/dist/plus/ai/providers/openRouterProvider.d.ts +17 -0
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openRouterProvider.js +57 -0
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -0
- package/dist/plus/ai/providers/openaiProvider.d.ts +16 -0
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/openaiProvider.js +34 -0
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -0
- package/dist/plus/ai/providers/xaiProvider.d.ts +15 -0
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +1 -0
- package/dist/plus/ai/providers/xaiProvider.js +27 -0
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -0
- package/dist/plus/ai/utils/ai.utils.d.ts +18 -0
- package/dist/plus/ai/utils/ai.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/ai.utils.js +70 -0
- package/dist/plus/ai/utils/ai.utils.js.map +1 -0
- package/dist/plus/ai/utils/results.utils.d.ts +9 -0
- package/dist/plus/ai/utils/results.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/results.utils.js +44 -0
- package/dist/plus/ai/utils/results.utils.js.map +1 -0
- package/dist/plus/ai/utils/truncation.utils.d.ts +13 -0
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +1 -0
- package/dist/plus/ai/utils/truncation.utils.js +228 -0
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -0
- package/dist/plus/git-github/api/config.d.ts +66 -0
- package/dist/plus/git-github/api/config.d.ts.map +1 -0
- package/dist/plus/git-github/api/config.js +2 -0
- package/dist/plus/git-github/api/config.js.map +1 -0
- package/dist/plus/git-github/api/github.d.ts +178 -0
- package/dist/plus/git-github/api/github.d.ts.map +1 -0
- package/dist/plus/git-github/api/github.js +2360 -0
- package/dist/plus/git-github/api/github.js.map +1 -0
- package/dist/plus/git-github/api/github.utils.d.ts +9 -0
- package/dist/plus/git-github/api/github.utils.d.ts.map +1 -0
- package/dist/plus/git-github/api/github.utils.js +22 -0
- package/dist/plus/git-github/api/github.utils.js.map +1 -0
- package/dist/plus/git-github/api/token.d.ts +16 -0
- package/dist/plus/git-github/api/token.d.ts.map +1 -0
- package/dist/plus/git-github/api/token.js +2 -0
- package/dist/plus/git-github/api/token.js.map +1 -0
- package/dist/plus/git-github/api/tokenUtils.d.ts +7 -0
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +1 -0
- package/dist/plus/git-github/api/tokenUtils.js +13 -0
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -0
- package/dist/plus/git-github/api/types.d.ts +100 -0
- package/dist/plus/git-github/api/types.d.ts.map +1 -0
- package/dist/plus/git-github/api/types.js +2 -0
- package/dist/plus/git-github/api/types.js.map +1 -0
- package/dist/plus/git-github/context.d.ts +102 -0
- package/dist/plus/git-github/context.d.ts.map +1 -0
- package/dist/plus/git-github/context.js +12 -0
- package/dist/plus/git-github/context.js.map +1 -0
- package/dist/plus/git-github/models.d.ts +204 -0
- package/dist/plus/git-github/models.d.ts.map +1 -0
- package/dist/plus/git-github/models.js +229 -0
- package/dist/plus/git-github/models.js.map +1 -0
- package/dist/plus/git-github/providers/github/blame.d.ts +34 -0
- package/dist/plus/git-github/providers/github/blame.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/blame.js +155 -0
- package/dist/plus/git-github/providers/github/blame.js.map +1 -0
- package/dist/plus/git-github/providers/github/branches.d.ts +38 -0
- package/dist/plus/git-github/providers/github/branches.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/branches.js +234 -0
- package/dist/plus/git-github/providers/github/branches.js.map +1 -0
- package/dist/plus/git-github/providers/github/commits.d.ts +36 -0
- package/dist/plus/git-github/providers/github/commits.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/commits.js +560 -0
- package/dist/plus/git-github/providers/github/commits.js.map +1 -0
- package/dist/plus/git-github/providers/github/config.d.ts +11 -0
- package/dist/plus/git-github/providers/github/config.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/config.js +47 -0
- package/dist/plus/git-github/providers/github/config.js.map +1 -0
- package/dist/plus/git-github/providers/github/contributors.d.ts +27 -0
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/contributors.js +218 -0
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -0
- package/dist/plus/git-github/providers/github/diff.d.ts +33 -0
- package/dist/plus/git-github/providers/github/diff.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/diff.js +184 -0
- package/dist/plus/git-github/providers/github/diff.js.map +1 -0
- package/dist/plus/git-github/providers/github/graph.d.ts +25 -0
- package/dist/plus/git-github/providers/github/graph.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/graph.js +372 -0
- package/dist/plus/git-github/providers/github/graph.js.map +1 -0
- package/dist/plus/git-github/providers/github/refs.d.ts +26 -0
- package/dist/plus/git-github/providers/github/refs.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/refs.js +108 -0
- package/dist/plus/git-github/providers/github/refs.js.map +1 -0
- package/dist/plus/git-github/providers/github/remotes.d.ts +9 -0
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/remotes.js +37 -0
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -0
- package/dist/plus/git-github/providers/github/revision.d.ts +14 -0
- package/dist/plus/git-github/providers/github/revision.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/revision.js +132 -0
- package/dist/plus/git-github/providers/github/revision.js.map +1 -0
- package/dist/plus/git-github/providers/github/status.d.ts +21 -0
- package/dist/plus/git-github/providers/github/status.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/status.js +49 -0
- package/dist/plus/git-github/providers/github/status.js.map +1 -0
- package/dist/plus/git-github/providers/github/tags.d.ts +22 -0
- package/dist/plus/git-github/providers/github/tags.d.ts.map +1 -0
- package/dist/plus/git-github/providers/github/tags.js +104 -0
- package/dist/plus/git-github/providers/github/tags.js.map +1 -0
- package/dist/plus/git-github/providers/githubGitProvider.d.ts +85 -0
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +1 -0
- package/dist/plus/git-github/providers/githubGitProvider.js +130 -0
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -0
- package/dist/plus/git-github/providers/githubProvider.d.ts +55 -0
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +1 -0
- package/dist/plus/git-github/providers/githubProvider.js +2 -0
- package/dist/plus/git-github/providers/githubProvider.js.map +1 -0
- package/dist/utils/array.d.ts +27 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/array.js +142 -0
- package/dist/utils/array.js.map +1 -0
- package/dist/utils/base64.d.ts +2 -0
- package/dist/utils/base64.d.ts.map +1 -0
- package/dist/utils/base64.js +2 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/brand.d.ts +11 -0
- package/dist/utils/brand.d.ts.map +1 -0
- package/dist/utils/brand.js +2 -0
- package/dist/utils/brand.js.map +1 -0
- package/dist/utils/cancellation.d.ts +54 -0
- package/dist/utils/cancellation.d.ts.map +1 -0
- package/dist/utils/cancellation.js +133 -0
- package/dist/utils/cancellation.js.map +1 -0
- package/dist/utils/charCode.d.ts +39 -0
- package/dist/utils/charCode.d.ts.map +1 -0
- package/dist/utils/charCode.js +39 -0
- package/dist/utils/charCode.js.map +1 -0
- package/dist/utils/color.d.ts +177 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/color.js +693 -0
- package/dist/utils/color.js.map +1 -0
- package/dist/utils/counter.d.ts +7 -0
- package/dist/utils/counter.d.ts.map +1 -0
- package/dist/utils/counter.js +19 -0
- package/dist/utils/counter.js.map +1 -0
- package/dist/utils/crypto.d.ts +2 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/crypto.js +2 -0
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/date.d.ts +20 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +313 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/debounce.d.ts +108 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/debounce.js +209 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/decorators/debounce.d.ts +3 -0
- package/dist/utils/decorators/debounce.d.ts.map +1 -0
- package/dist/utils/decorators/debounce.js +21 -0
- package/dist/utils/decorators/debounce.js.map +1 -0
- package/dist/utils/decorators/gate.d.ts +15 -0
- package/dist/utils/decorators/gate.d.ts.map +1 -0
- package/dist/utils/decorators/gate.js +129 -0
- package/dist/utils/decorators/gate.js.map +1 -0
- package/dist/utils/decorators/log.d.ts +46 -0
- package/dist/utils/decorators/log.d.ts.map +1 -0
- package/dist/utils/decorators/log.js +238 -0
- package/dist/utils/decorators/log.js.map +1 -0
- package/dist/utils/decorators/memoize.d.ts +17 -0
- package/dist/utils/decorators/memoize.d.ts.map +1 -0
- package/dist/utils/decorators/memoize.js +63 -0
- package/dist/utils/decorators/memoize.js.map +1 -0
- package/dist/utils/decorators/resolver.d.ts +12 -0
- package/dist/utils/decorators/resolver.d.ts.map +1 -0
- package/dist/utils/decorators/resolver.js +85 -0
- package/dist/utils/decorators/resolver.js.map +1 -0
- package/dist/utils/decorators/sequentialize.d.ts +29 -0
- package/dist/utils/decorators/sequentialize.d.ts.map +1 -0
- package/dist/utils/decorators/sequentialize.js +81 -0
- package/dist/utils/decorators/sequentialize.js.map +1 -0
- package/dist/utils/decorators/serializable.d.ts +13 -0
- package/dist/utils/decorators/serializable.d.ts.map +1 -0
- package/dist/utils/decorators/serializable.js +42 -0
- package/dist/utils/decorators/serializable.js.map +1 -0
- package/dist/utils/disposable.d.ts +40 -0
- package/dist/utils/disposable.d.ts.map +1 -0
- package/dist/utils/disposable.js +87 -0
- package/dist/utils/disposable.js.map +1 -0
- package/dist/utils/encoding.d.ts +3 -0
- package/dist/utils/encoding.d.ts.map +1 -0
- package/dist/utils/encoding.js +7 -0
- package/dist/utils/encoding.js.map +1 -0
- package/dist/utils/env/browser/base64.d.ts +9 -0
- package/dist/utils/env/browser/base64.d.ts.map +1 -0
- package/dist/utils/env/browser/base64.js +42 -0
- package/dist/utils/env/browser/base64.js.map +1 -0
- package/dist/utils/env/browser/crypto.d.ts +5 -0
- package/dist/utils/env/browser/crypto.d.ts.map +1 -0
- package/dist/utils/env/browser/crypto.js +18 -0
- package/dist/utils/env/browser/crypto.js.map +1 -0
- package/dist/utils/env/browser/fs.d.ts +2 -0
- package/dist/utils/env/browser/fs.d.ts.map +1 -0
- package/dist/utils/env/browser/fs.js +4 -0
- package/dist/utils/env/browser/fs.js.map +1 -0
- package/dist/utils/env/browser/hex.d.ts +4 -0
- package/dist/utils/env/browser/hex.d.ts.map +1 -0
- package/dist/utils/env/browser/hex.js +38 -0
- package/dist/utils/env/browser/hex.js.map +1 -0
- package/dist/utils/env/browser/hrtime.d.ts +2 -0
- package/dist/utils/env/browser/hrtime.d.ts.map +1 -0
- package/dist/utils/env/browser/hrtime.js +15 -0
- package/dist/utils/env/browser/hrtime.js.map +1 -0
- package/dist/utils/env/browser/logScope.d.ts +25 -0
- package/dist/utils/env/browser/logScope.d.ts.map +1 -0
- package/dist/utils/env/browser/logScope.js +53 -0
- package/dist/utils/env/browser/logScope.js.map +1 -0
- package/dist/utils/env/browser/md5.d.ts +2 -0
- package/dist/utils/env/browser/md5.d.ts.map +1 -0
- package/dist/utils/env/browser/md5.js +199 -0
- package/dist/utils/env/browser/md5.js.map +1 -0
- package/dist/utils/env/browser/platform.d.ts +4 -0
- package/dist/utils/env/browser/platform.d.ts.map +1 -0
- package/dist/utils/env/browser/platform.js +6 -0
- package/dist/utils/env/browser/platform.js.map +1 -0
- package/dist/utils/env/node/base64.d.ts +9 -0
- package/dist/utils/env/node/base64.d.ts.map +1 -0
- package/dist/utils/env/node/base64.js +14 -0
- package/dist/utils/env/node/base64.js.map +1 -0
- package/dist/utils/env/node/crypto.d.ts +5 -0
- package/dist/utils/env/node/crypto.d.ts.map +1 -0
- package/dist/utils/env/node/crypto.js +14 -0
- package/dist/utils/env/node/crypto.js.map +1 -0
- package/dist/utils/env/node/exec.d.ts +89 -0
- package/dist/utils/env/node/exec.d.ts.map +1 -0
- package/dist/utils/env/node/exec.js +277 -0
- package/dist/utils/env/node/exec.js.map +1 -0
- package/dist/utils/env/node/fs.d.ts +2 -0
- package/dist/utils/env/node/fs.d.ts.map +1 -0
- package/dist/utils/env/node/fs.js +5 -0
- package/dist/utils/env/node/fs.js.map +1 -0
- package/dist/utils/env/node/hex.d.ts +4 -0
- package/dist/utils/env/node/hex.d.ts.map +1 -0
- package/dist/utils/env/node/hex.js +10 -0
- package/dist/utils/env/node/hex.js.map +1 -0
- package/dist/utils/env/node/hrtime.d.ts +2 -0
- package/dist/utils/env/node/hrtime.d.ts.map +1 -0
- package/dist/utils/env/node/hrtime.js +2 -0
- package/dist/utils/env/node/hrtime.js.map +1 -0
- package/dist/utils/env/node/logScope.d.ts +34 -0
- package/dist/utils/env/node/logScope.d.ts.map +1 -0
- package/dist/utils/env/node/logScope.js +52 -0
- package/dist/utils/env/node/logScope.js.map +1 -0
- package/dist/utils/env/node/platform.d.ts +4 -0
- package/dist/utils/env/node/platform.d.ts.map +1 -0
- package/dist/utils/env/node/platform.js +5 -0
- package/dist/utils/env/node/platform.js.map +1 -0
- package/dist/utils/error.d.ts +18 -0
- package/dist/utils/error.d.ts.map +1 -0
- package/dist/utils/error.js +19 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/event.d.ts +59 -0
- package/dist/utils/event.d.ts.map +1 -0
- package/dist/utils/event.js +183 -0
- package/dist/utils/event.js.map +1 -0
- package/dist/utils/formatter.d.ts +21 -0
- package/dist/utils/formatter.d.ts.map +1 -0
- package/dist/utils/formatter.js +139 -0
- package/dist/utils/formatter.js.map +1 -0
- package/dist/utils/fs.d.ts +2 -0
- package/dist/utils/fs.d.ts.map +1 -0
- package/dist/utils/fs.js +2 -0
- package/dist/utils/fs.js.map +1 -0
- package/dist/utils/function.d.ts +24 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/function.js +103 -0
- package/dist/utils/function.js.map +1 -0
- package/dist/utils/fuzzy.d.ts +68 -0
- package/dist/utils/fuzzy.d.ts.map +1 -0
- package/dist/utils/fuzzy.js +134 -0
- package/dist/utils/fuzzy.js.map +1 -0
- package/dist/utils/hash.d.ts +32 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +53 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/hex.d.ts +2 -0
- package/dist/utils/hex.d.ts.map +1 -0
- package/dist/utils/hex.js +2 -0
- package/dist/utils/hex.js.map +1 -0
- package/dist/utils/hrtime.d.ts +4 -0
- package/dist/utils/hrtime.d.ts.map +1 -0
- package/dist/utils/hrtime.js +7 -0
- package/dist/utils/hrtime.js.map +1 -0
- package/dist/utils/iterable.d.ts +65 -0
- package/dist/utils/iterable.d.ts.map +1 -0
- package/dist/utils/iterable.js +635 -0
- package/dist/utils/iterable.js.map +1 -0
- package/dist/utils/lazy.d.ts +18 -0
- package/dist/utils/lazy.d.ts.map +1 -0
- package/dist/utils/lazy.js +40 -0
- package/dist/utils/lazy.js.map +1 -0
- package/dist/utils/loggable.d.ts +5 -0
- package/dist/utils/loggable.d.ts.map +1 -0
- package/dist/utils/loggable.js +4 -0
- package/dist/utils/loggable.js.map +1 -0
- package/dist/utils/logger.d.ts +63 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +316 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/logger.scoped.d.ts +56 -0
- package/dist/utils/logger.scoped.d.ts.map +1 -0
- package/dist/utils/logger.scoped.js +166 -0
- package/dist/utils/logger.scoped.js.map +1 -0
- package/dist/utils/markdown.d.ts +9 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.js +100 -0
- package/dist/utils/markdown.js.map +1 -0
- package/dist/utils/mru.d.ts +14 -0
- package/dist/utils/mru.d.ts.map +1 -0
- package/dist/utils/mru.js +63 -0
- package/dist/utils/mru.js.map +1 -0
- package/dist/utils/object.d.ts +62 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.js +151 -0
- package/dist/utils/object.js.map +1 -0
- package/dist/utils/paging.d.ts +19 -0
- package/dist/utils/paging.d.ts.map +1 -0
- package/dist/utils/paging.js +32 -0
- package/dist/utils/paging.js.map +1 -0
- package/dist/utils/path.d.ts +17 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +156 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/platform.d.ts +2 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +2 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/promise.d.ts +61 -0
- package/dist/utils/promise.d.ts.map +1 -0
- package/dist/utils/promise.js +337 -0
- package/dist/utils/promise.js.map +1 -0
- package/dist/utils/promiseCache.d.ts +337 -0
- package/dist/utils/promiseCache.d.ts.map +1 -0
- package/dist/utils/promiseCache.js +634 -0
- package/dist/utils/promiseCache.js.map +1 -0
- package/dist/utils/searchTree.d.ts +58 -0
- package/dist/utils/searchTree.d.ts.map +1 -0
- package/dist/utils/searchTree.js +394 -0
- package/dist/utils/searchTree.js.map +1 -0
- package/dist/utils/stopwatch.d.ts +41 -0
- package/dist/utils/stopwatch.d.ts.map +1 -0
- package/dist/utils/stopwatch.js +83 -0
- package/dist/utils/stopwatch.js.map +1 -0
- package/dist/utils/string.d.ts +91 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/string.js +803 -0
- package/dist/utils/string.js.map +1 -0
- package/dist/utils/subscriptionManager.d.ts +18 -0
- package/dist/utils/subscriptionManager.d.ts.map +1 -0
- package/dist/utils/subscriptionManager.js +34 -0
- package/dist/utils/subscriptionManager.js.map +1 -0
- package/dist/utils/trie.d.ts +76 -0
- package/dist/utils/trie.d.ts.map +1 -0
- package/dist/utils/trie.js +584 -0
- package/dist/utils/trie.js.map +1 -0
- package/dist/utils/types.d.ts +21 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/uri.d.ts +69 -0
- package/dist/utils/uri.d.ts.map +1 -0
- package/dist/utils/uri.js +66 -0
- package/dist/utils/uri.js.map +1 -0
- package/dist/utils/validation.d.ts +14 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +26 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils/version.d.ts +15 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +66 -0
- package/dist/utils/version.js.map +1 -0
- package/package.json +161 -0
- package/src/git/cache.ts +1152 -0
- package/src/git/context.ts +248 -0
- package/src/git/errors.ts +1121 -0
- package/src/git/exec.types.ts +78 -0
- package/src/git/features.ts +45 -0
- package/src/git/models/author.ts +19 -0
- package/src/git/models/autolink.ts +59 -0
- package/src/git/models/blame.ts +46 -0
- package/src/git/models/branch.ts +236 -0
- package/src/git/models/commit.ts +688 -0
- package/src/git/models/contributor.ts +84 -0
- package/src/git/models/defaultBranch.ts +6 -0
- package/src/git/models/diff.ts +74 -0
- package/src/git/models/file.ts +29 -0
- package/src/git/models/fileChange.ts +82 -0
- package/src/git/models/fileStatus.ts +35 -0
- package/src/git/models/graph.ts +184 -0
- package/src/git/models/graphSearch.ts +53 -0
- package/src/git/models/issue.ts +88 -0
- package/src/git/models/issueOrPullRequest.ts +20 -0
- package/src/git/models/lineRange.ts +7 -0
- package/src/git/models/log.ts +21 -0
- package/src/git/models/mergeConflicts.ts +18 -0
- package/src/git/models/patch.ts +25 -0
- package/src/git/models/pausedOperationStatus.ts +63 -0
- package/src/git/models/pullRequest.ts +161 -0
- package/src/git/models/rebase.ts +60 -0
- package/src/git/models/reference.ts +47 -0
- package/src/git/models/reflog.ts +88 -0
- package/src/git/models/remote.ts +99 -0
- package/src/git/models/remoteProvider.ts +290 -0
- package/src/git/models/remoteResource.ts +87 -0
- package/src/git/models/repository.ts +417 -0
- package/src/git/models/repositoryChangeEvent.ts +30 -0
- package/src/git/models/repositoryIdentities.ts +99 -0
- package/src/git/models/repositoryMetadata.ts +12 -0
- package/src/git/models/resourceDescriptor.ts +11 -0
- package/src/git/models/revision.ts +12 -0
- package/src/git/models/search.ts +123 -0
- package/src/git/models/shortlog.ts +6 -0
- package/src/git/models/signature.ts +29 -0
- package/src/git/models/staging.ts +27 -0
- package/src/git/models/stash.ts +6 -0
- package/src/git/models/status.ts +246 -0
- package/src/git/models/statusFile.ts +116 -0
- package/src/git/models/tag.ts +71 -0
- package/src/git/models/tree.ts +10 -0
- package/src/git/models/user.ts +7 -0
- package/src/git/models/worktree.ts +152 -0
- package/src/git/parsers/diffParser.ts +660 -0
- package/src/git/parsers/rebaseTodoParser.ts +169 -0
- package/src/git/providers/blame.ts +40 -0
- package/src/git/providers/branches.ts +111 -0
- package/src/git/providers/commits.ts +147 -0
- package/src/git/providers/config.ts +104 -0
- package/src/git/providers/contributors.ts +34 -0
- package/src/git/providers/diff.ts +127 -0
- package/src/git/providers/graph.ts +30 -0
- package/src/git/providers/operations.ts +82 -0
- package/src/git/providers/patch.ts +31 -0
- package/src/git/providers/pausedOperations.ts +10 -0
- package/src/git/providers/provider.ts +62 -0
- package/src/git/providers/refs.ts +39 -0
- package/src/git/providers/remotes.ts +33 -0
- package/src/git/providers/revision.ts +28 -0
- package/src/git/providers/shared/remotes.ts +95 -0
- package/src/git/providers/staging.ts +22 -0
- package/src/git/providers/stash.ts +51 -0
- package/src/git/providers/status.ts +42 -0
- package/src/git/providers/tags.ts +28 -0
- package/src/git/providers/types.ts +33 -0
- package/src/git/providers/worktrees.ts +23 -0
- package/src/git/remotes/azure-devops.ts +309 -0
- package/src/git/remotes/bitbucket-server.ts +191 -0
- package/src/git/remotes/bitbucket.ts +144 -0
- package/src/git/remotes/custom.ts +139 -0
- package/src/git/remotes/gerrit.ts +188 -0
- package/src/git/remotes/gitea.ts +186 -0
- package/src/git/remotes/github.ts +238 -0
- package/src/git/remotes/gitlab.ts +272 -0
- package/src/git/remotes/google-source.ts +51 -0
- package/src/git/remotes/matcher.ts +215 -0
- package/src/git/repositoryService.ts +179 -0
- package/src/git/service.ts +365 -0
- package/src/git/utils/autolink.utils.ts +201 -0
- package/src/git/utils/blame.utils.ts +296 -0
- package/src/git/utils/branch.utils.ts +154 -0
- package/src/git/utils/commit.utils.ts +89 -0
- package/src/git/utils/contributor.utils.ts +81 -0
- package/src/git/utils/fetch.utils.ts +48 -0
- package/src/git/utils/fileStatus.utils.ts +49 -0
- package/src/git/utils/issue.utils.ts +81 -0
- package/src/git/utils/issueOrPullRequest.utils.ts +23 -0
- package/src/git/utils/mergeConflicts.utils.ts +21 -0
- package/src/git/utils/pausedOperationStatus.utils.ts +156 -0
- package/src/git/utils/pullRequest.utils.ts +149 -0
- package/src/git/utils/rebase.utils.ts +128 -0
- package/src/git/utils/reference.utils.ts +267 -0
- package/src/git/utils/remote.utils.ts +140 -0
- package/src/git/utils/repository.utils.ts +18 -0
- package/src/git/utils/resourceDescriptor.utils.ts +26 -0
- package/src/git/utils/revision.utils.ts +149 -0
- package/src/git/utils/search.utils.ts +498 -0
- package/src/git/utils/sorting.ts +291 -0
- package/src/git/utils/status.utils.ts +114 -0
- package/src/git/utils/statusFile.utils.ts +182 -0
- package/src/git/utils/tag.utils.ts +17 -0
- package/src/git/utils/tooltip.utils.ts +37 -0
- package/src/git/utils/uriAuthority.ts +34 -0
- package/src/git/utils/user.utils.ts +20 -0
- package/src/git/utils/worktree.utils.ts +21 -0
- package/src/git/watching/changeEvent.ts +90 -0
- package/src/git/watching/classifyChange.ts +81 -0
- package/src/git/watching/gitIgnoreFilter.ts +134 -0
- package/src/git/watching/initWatcher.ts +79 -0
- package/src/git/watching/provider.ts +24 -0
- package/src/git/watching/watchGroup.ts +182 -0
- package/src/git/watching/watchService.ts +350 -0
- package/src/git/watching/watchSession.ts +370 -0
- package/src/git/watching/watcherPatterns.ts +51 -0
- package/src/git-cli/cliGitProvider.ts +436 -0
- package/src/git-cli/exec/exec.errors.ts +1 -0
- package/src/git-cli/exec/exec.ts +11 -0
- package/src/git-cli/exec/exec.types.ts +8 -0
- package/src/git-cli/exec/features.ts +2 -0
- package/src/git-cli/exec/git.ts +1092 -0
- package/src/git-cli/exec/gitQueue.ts +251 -0
- package/src/git-cli/exec/locator.ts +157 -0
- package/src/git-cli/parsers/blameParser.ts +373 -0
- package/src/git-cli/parsers/indexParser.ts +192 -0
- package/src/git-cli/parsers/logParser.ts +1275 -0
- package/src/git-cli/parsers/mergeTreeParser.ts +22 -0
- package/src/git-cli/parsers/refParser.ts +111 -0
- package/src/git-cli/parsers/reflogParser.ts +153 -0
- package/src/git-cli/parsers/remoteParser.ts +95 -0
- package/src/git-cli/parsers/shortlogParser.ts +59 -0
- package/src/git-cli/parsers/signatureParser.ts +162 -0
- package/src/git-cli/parsers/statusParser.ts +209 -0
- package/src/git-cli/parsers/treeParser.ts +61 -0
- package/src/git-cli/parsers/worktreeParser.ts +113 -0
- package/src/git-cli/providers/blame.ts +602 -0
- package/src/git-cli/providers/branches.ts +1491 -0
- package/src/git-cli/providers/commitFilesetUtils.ts +45 -0
- package/src/git-cli/providers/commits.ts +1517 -0
- package/src/git-cli/providers/config.ts +724 -0
- package/src/git-cli/providers/contributors.ts +361 -0
- package/src/git-cli/providers/diff.ts +1084 -0
- package/src/git-cli/providers/graph.ts +799 -0
- package/src/git-cli/providers/operations.ts +776 -0
- package/src/git-cli/providers/patch.ts +326 -0
- package/src/git-cli/providers/pausedOperations.ts +538 -0
- package/src/git-cli/providers/refs.ts +193 -0
- package/src/git-cli/providers/remotes.ts +115 -0
- package/src/git-cli/providers/revision.ts +334 -0
- package/src/git-cli/providers/staging.ts +160 -0
- package/src/git-cli/providers/stash.ts +626 -0
- package/src/git-cli/providers/status.ts +373 -0
- package/src/git-cli/providers/tags.ts +188 -0
- package/src/git-cli/providers/worktrees.ts +229 -0
- package/src/git-cli/service.ts +74 -0
- package/src/plus/ai/constants.ts +121 -0
- package/src/plus/ai/errors.ts +82 -0
- package/src/plus/ai/models/conversation.ts +35 -0
- package/src/plus/ai/models/model.ts +425 -0
- package/src/plus/ai/models/promptTemplates.ts +122 -0
- package/src/plus/ai/models/provider.ts +52 -0
- package/src/plus/ai/models/results.ts +1 -0
- package/src/plus/ai/prompts.ts +528 -0
- package/src/plus/ai/providers/anthropicProvider.ts +308 -0
- package/src/plus/ai/providers/azureProvider.ts +74 -0
- package/src/plus/ai/providers/context.ts +29 -0
- package/src/plus/ai/providers/deepSeekProvider.ts +40 -0
- package/src/plus/ai/providers/geminiProvider.ts +207 -0
- package/src/plus/ai/providers/githubModelsProvider.ts +92 -0
- package/src/plus/ai/providers/gitkrakenProvider.ts +218 -0
- package/src/plus/ai/providers/huggingFaceProvider.ts +51 -0
- package/src/plus/ai/providers/mistralProvider.ts +160 -0
- package/src/plus/ai/providers/ollamaProvider.ts +241 -0
- package/src/plus/ai/providers/openAICompatibleProvider.ts +59 -0
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +279 -0
- package/src/plus/ai/providers/openRouterProvider.ts +84 -0
- package/src/plus/ai/providers/openaiProvider.ts +46 -0
- package/src/plus/ai/providers/xaiProvider.ts +32 -0
- package/src/plus/ai/utils/ai.utils.ts +79 -0
- package/src/plus/ai/utils/results.utils.ts +50 -0
- package/src/plus/ai/utils/truncation.utils.ts +295 -0
- package/src/plus/git-github/api/config.ts +78 -0
- package/src/plus/git-github/api/github.ts +3424 -0
- package/src/plus/git-github/api/github.utils.ts +36 -0
- package/src/plus/git-github/api/token.ts +15 -0
- package/src/plus/git-github/api/tokenUtils.ts +15 -0
- package/src/plus/git-github/api/types.ts +182 -0
- package/src/plus/git-github/context.ts +107 -0
- package/src/plus/git-github/models.ts +524 -0
- package/src/plus/git-github/providers/github/blame.ts +222 -0
- package/src/plus/git-github/providers/github/branches.ts +356 -0
- package/src/plus/git-github/providers/github/commits.ts +858 -0
- package/src/plus/git-github/providers/github/config.ts +47 -0
- package/src/plus/git-github/providers/github/contributors.ts +313 -0
- package/src/plus/git-github/providers/github/diff.ts +267 -0
- package/src/plus/git-github/providers/github/graph.ts +511 -0
- package/src/plus/git-github/providers/github/refs.ts +137 -0
- package/src/plus/git-github/providers/github/remotes.ts +44 -0
- package/src/plus/git-github/providers/github/revision.ts +141 -0
- package/src/plus/git-github/providers/github/status.ts +63 -0
- package/src/plus/git-github/providers/github/tags.ts +147 -0
- package/src/plus/git-github/providers/githubGitProvider.ts +167 -0
- package/src/plus/git-github/providers/githubProvider.ts +65 -0
- package/src/utils/array.ts +194 -0
- package/src/utils/base64.ts +1 -0
- package/src/utils/brand.ts +9 -0
- package/src/utils/cancellation.ts +150 -0
- package/src/utils/charCode.ts +38 -0
- package/src/utils/color.ts +815 -0
- package/src/utils/counter.ts +21 -0
- package/src/utils/crypto.ts +1 -0
- package/src/utils/date.ts +394 -0
- package/src/utils/debounce.ts +303 -0
- package/src/utils/decorators/debounce.ts +31 -0
- package/src/utils/decorators/gate.ts +167 -0
- package/src/utils/decorators/log.ts +320 -0
- package/src/utils/decorators/memoize.ts +98 -0
- package/src/utils/decorators/resolver.ts +95 -0
- package/src/utils/decorators/sequentialize.ts +116 -0
- package/src/utils/decorators/serializable.ts +42 -0
- package/src/utils/disposable.ts +141 -0
- package/src/utils/encoding.ts +8 -0
- package/src/utils/env/browser/base64.ts +50 -0
- package/src/utils/env/browser/crypto.ts +21 -0
- package/src/utils/env/browser/fs.ts +3 -0
- package/src/utils/env/browser/hex.ts +41 -0
- package/src/utils/env/browser/hrtime.ts +14 -0
- package/src/utils/env/browser/logScope.ts +57 -0
- package/src/utils/env/browser/md5.ts +217 -0
- package/src/utils/env/browser/platform.ts +10 -0
- package/src/utils/env/node/base64.ts +17 -0
- package/src/utils/env/node/crypto.ts +17 -0
- package/src/utils/env/node/exec.ts +471 -0
- package/src/utils/env/node/fs.ts +5 -0
- package/src/utils/env/node/hex.ts +11 -0
- package/src/utils/env/node/hrtime.ts +1 -0
- package/src/utils/env/node/logScope.ts +63 -0
- package/src/utils/env/node/platform.ts +5 -0
- package/src/utils/error.ts +17 -0
- package/src/utils/event.ts +236 -0
- package/src/utils/formatter.ts +205 -0
- package/src/utils/fs.ts +1 -0
- package/src/utils/function.ts +141 -0
- package/src/utils/fuzzy.ts +185 -0
- package/src/utils/hash.ts +60 -0
- package/src/utils/hex.ts +1 -0
- package/src/utils/hrtime.ts +8 -0
- package/src/utils/iterable.ts +787 -0
- package/src/utils/lazy.ts +39 -0
- package/src/utils/loggable.ts +7 -0
- package/src/utils/logger.scoped.ts +237 -0
- package/src/utils/logger.ts +402 -0
- package/src/utils/markdown.ts +114 -0
- package/src/utils/mru.ts +66 -0
- package/src/utils/object.ts +227 -0
- package/src/utils/paging.ts +51 -0
- package/src/utils/path.ts +189 -0
- package/src/utils/platform.ts +1 -0
- package/src/utils/promise.ts +590 -0
- package/src/utils/promiseCache.ts +803 -0
- package/src/utils/searchTree.ts +442 -0
- package/src/utils/stopwatch.ts +125 -0
- package/src/utils/string.ts +964 -0
- package/src/utils/subscriptionManager.ts +40 -0
- package/src/utils/trie.ts +739 -0
- package/src/utils/types.ts +31 -0
- package/src/utils/uri.ts +117 -0
- package/src/utils/validation.ts +38 -0
- package/src/utils/version.ts +79 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { exhaustiveArray } from '../utils/array.js';
|
|
8
|
+
import { raceWithSignal } from '../utils/cancellation.js';
|
|
9
|
+
import { debug } from '../utils/decorators/log.js';
|
|
10
|
+
import { invalidateMemoized } from '../utils/decorators/memoize.js';
|
|
11
|
+
import { normalizePath } from '../utils/path.js';
|
|
12
|
+
import { PromiseCache, PromiseMap, RepoPromiseCacheMap } from '../utils/promiseCache.js';
|
|
13
|
+
import { getCommonRepositoryPath, getRepositoryOrWorktreePath } from './utils/repository.utils.js';
|
|
14
|
+
const uriScopedCachedGitTypes = ['blame', 'diff', 'fileLog'];
|
|
15
|
+
export function areUriScopedCachedGitTypes(types) {
|
|
16
|
+
return types.every(t => uriScopedCachedGitTypes.includes(t));
|
|
17
|
+
}
|
|
18
|
+
/** Compile-time enforced: adding a key to SharedCaches without listing it here is a type error */
|
|
19
|
+
const sharedCacheKeys = new Set(exhaustiveArray()([
|
|
20
|
+
'branches',
|
|
21
|
+
'configKeys',
|
|
22
|
+
'configPatterns',
|
|
23
|
+
'contributors',
|
|
24
|
+
'contributorsLite',
|
|
25
|
+
'contributorsStats',
|
|
26
|
+
'defaultBranchName',
|
|
27
|
+
'gitResults',
|
|
28
|
+
'gkConfigKeys',
|
|
29
|
+
'gkConfigPatterns',
|
|
30
|
+
'initialCommitSha',
|
|
31
|
+
'logShas',
|
|
32
|
+
'remotes',
|
|
33
|
+
'sharedBranches',
|
|
34
|
+
'stashes',
|
|
35
|
+
'tags',
|
|
36
|
+
'worktrees',
|
|
37
|
+
]));
|
|
38
|
+
function createEmptyCaches() {
|
|
39
|
+
return {
|
|
40
|
+
bestRemotes: undefined,
|
|
41
|
+
blame: undefined,
|
|
42
|
+
branch: undefined,
|
|
43
|
+
branches: undefined,
|
|
44
|
+
fileExistence: undefined,
|
|
45
|
+
ignoreRevsFile: undefined,
|
|
46
|
+
leftRightCommitCount: undefined,
|
|
47
|
+
configKeys: undefined,
|
|
48
|
+
configPatterns: undefined,
|
|
49
|
+
conflictDetection: undefined,
|
|
50
|
+
diff: undefined,
|
|
51
|
+
fileLog: undefined,
|
|
52
|
+
contributors: undefined,
|
|
53
|
+
contributorsLite: undefined,
|
|
54
|
+
contributorsStats: undefined,
|
|
55
|
+
currentBranchReference: undefined,
|
|
56
|
+
currentUser: undefined,
|
|
57
|
+
defaultBranchName: undefined,
|
|
58
|
+
gitDir: undefined,
|
|
59
|
+
gitIgnore: undefined,
|
|
60
|
+
gitResults: undefined,
|
|
61
|
+
gkConfigKeys: undefined,
|
|
62
|
+
gkConfigPatterns: undefined,
|
|
63
|
+
initialCommitSha: undefined,
|
|
64
|
+
lastFetched: undefined,
|
|
65
|
+
logShas: undefined,
|
|
66
|
+
pausedOperationStatus: undefined,
|
|
67
|
+
resolvedRevisions: undefined,
|
|
68
|
+
reachability: undefined,
|
|
69
|
+
remotes: undefined,
|
|
70
|
+
sharedBranches: undefined,
|
|
71
|
+
stashes: undefined,
|
|
72
|
+
tags: undefined,
|
|
73
|
+
trackedPaths: undefined,
|
|
74
|
+
worktrees: undefined,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export class Cache {
|
|
78
|
+
_caches = createEmptyCaches();
|
|
79
|
+
_commonPathRegistry = new Map();
|
|
80
|
+
/** Reverse index: commonPath → set of worktree repoPaths that share it */
|
|
81
|
+
_worktreesByCommonPath = new Map();
|
|
82
|
+
[Symbol.dispose]() {
|
|
83
|
+
this.dispose();
|
|
84
|
+
}
|
|
85
|
+
dispose() {
|
|
86
|
+
this.reset();
|
|
87
|
+
}
|
|
88
|
+
get bestRemotes() {
|
|
89
|
+
return (this._caches.bestRemotes ??= new PromiseMap());
|
|
90
|
+
}
|
|
91
|
+
get blame() {
|
|
92
|
+
return (this._caches.blame ??= new RepoPromiseCacheMap({
|
|
93
|
+
createTTL: 1000 * 60 * 10, // 10 minutes
|
|
94
|
+
capacity: 50,
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
get diff() {
|
|
98
|
+
return (this._caches.diff ??= new RepoPromiseCacheMap({
|
|
99
|
+
createTTL: 1000 * 60 * 10, // 10 minutes
|
|
100
|
+
capacity: 50,
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
get fileLog() {
|
|
104
|
+
return (this._caches.fileLog ??= new RepoPromiseCacheMap({
|
|
105
|
+
createTTL: 1000 * 60 * 10, // 10 minutes
|
|
106
|
+
capacity: 50,
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
get branch() {
|
|
110
|
+
return (this._caches.branch ??= new PromiseMap());
|
|
111
|
+
}
|
|
112
|
+
get branches() {
|
|
113
|
+
return (this._caches.branches ??= new PromiseMap());
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Internal cache for raw shared branch data (keyed by commonPath)
|
|
117
|
+
* Separate from branches cache because branches need to be mapped for each worktree
|
|
118
|
+
*/
|
|
119
|
+
get sharedBranches() {
|
|
120
|
+
return (this._caches.sharedBranches ??= new PromiseMap());
|
|
121
|
+
}
|
|
122
|
+
get configKeys() {
|
|
123
|
+
return (this._caches.configKeys ??= new RepoPromiseCacheMap({
|
|
124
|
+
createTTL: 1000 * 30, // 30 seconds - ensures global config changes are picked up
|
|
125
|
+
}));
|
|
126
|
+
}
|
|
127
|
+
get configPatterns() {
|
|
128
|
+
return (this._caches.configPatterns ??= new RepoPromiseCacheMap({
|
|
129
|
+
createTTL: 1000 * 30, // 30 seconds - ensures global config changes are picked up
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
get gkConfigKeys() {
|
|
133
|
+
return (this._caches.gkConfigKeys ??= new RepoPromiseCacheMap());
|
|
134
|
+
}
|
|
135
|
+
get gkConfigPatterns() {
|
|
136
|
+
return (this._caches.gkConfigPatterns ??= new RepoPromiseCacheMap());
|
|
137
|
+
}
|
|
138
|
+
get currentBranchReference() {
|
|
139
|
+
return (this._caches.currentBranchReference ??= new PromiseCache());
|
|
140
|
+
}
|
|
141
|
+
setCurrentBranchReferenceIfAbsent(worktreePath, reference) {
|
|
142
|
+
if (this.currentBranchReference.get(worktreePath) == null) {
|
|
143
|
+
this.currentBranchReference.set(worktreePath, Promise.resolve(reference));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
get conflictDetection() {
|
|
147
|
+
return (this._caches.conflictDetection ??= new RepoPromiseCacheMap({
|
|
148
|
+
createTTL: 1000 * 30, // 30 seconds
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
get contributors() {
|
|
152
|
+
return (this._caches.contributors ??= new RepoPromiseCacheMap({
|
|
153
|
+
accessTTL: 1000 * 60 * 60, // 60 minutes
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
get contributorsLite() {
|
|
157
|
+
return (this._caches.contributorsLite ??= new RepoPromiseCacheMap({
|
|
158
|
+
accessTTL: 1000 * 60 * 60, // 60 minutes
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
get contributorsStats() {
|
|
162
|
+
return (this._caches.contributorsStats ??= new RepoPromiseCacheMap({
|
|
163
|
+
accessTTL: 1000 * 60 * 60, // 60 minutes
|
|
164
|
+
}));
|
|
165
|
+
}
|
|
166
|
+
get currentUser() {
|
|
167
|
+
return (this._caches.currentUser ??= new Map());
|
|
168
|
+
}
|
|
169
|
+
get defaultBranchName() {
|
|
170
|
+
return (this._caches.defaultBranchName ??= new RepoPromiseCacheMap());
|
|
171
|
+
}
|
|
172
|
+
get gitDir() {
|
|
173
|
+
return (this._caches.gitDir ??= new Map());
|
|
174
|
+
}
|
|
175
|
+
get gitIgnore() {
|
|
176
|
+
return (this._caches.gitIgnore ??= new Map());
|
|
177
|
+
}
|
|
178
|
+
get gitResults() {
|
|
179
|
+
return (this._caches.gitResults ??= new RepoPromiseCacheMap({ capacity: 200 }));
|
|
180
|
+
}
|
|
181
|
+
get initialCommitSha() {
|
|
182
|
+
return (this._caches.initialCommitSha ??= new PromiseMap());
|
|
183
|
+
}
|
|
184
|
+
get lastFetched() {
|
|
185
|
+
return (this._caches.lastFetched ??= new PromiseCache({
|
|
186
|
+
createTTL: 1000 * 30, // 30 seconds
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
get leftRightCommitCount() {
|
|
190
|
+
return (this._caches.leftRightCommitCount ??= new RepoPromiseCacheMap({
|
|
191
|
+
createTTL: 1000 * 60 * 5, // 5 minutes max age — invalidated sooner on branch/remote changes
|
|
192
|
+
capacity: 50, // Limit to 50 ref-pairs per repo
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
getLeftRightCommitCount(repoPath, key, factory) {
|
|
196
|
+
const cached = this.leftRightCommitCount.get(repoPath, key);
|
|
197
|
+
if (cached != null)
|
|
198
|
+
return cached;
|
|
199
|
+
const factoryPromise = Promise.resolve(factory());
|
|
200
|
+
this.leftRightCommitCount.set(repoPath, key, factoryPromise);
|
|
201
|
+
return factoryPromise;
|
|
202
|
+
}
|
|
203
|
+
get logShas() {
|
|
204
|
+
return (this._caches.logShas ??= new RepoPromiseCacheMap({
|
|
205
|
+
createTTL: 1000 * 60 * 5, // 5 minutes max age
|
|
206
|
+
accessTTL: 1000 * 30, // 30 seconds if not accessed
|
|
207
|
+
capacity: 5, // Limit to 5 different ranges per repo
|
|
208
|
+
}));
|
|
209
|
+
}
|
|
210
|
+
get pausedOperationStatus() {
|
|
211
|
+
return (this._caches.pausedOperationStatus ??= new PromiseMap());
|
|
212
|
+
}
|
|
213
|
+
get resolvedRevisions() {
|
|
214
|
+
return (this._caches.resolvedRevisions ??= new RepoPromiseCacheMap({
|
|
215
|
+
capacity: 100,
|
|
216
|
+
}));
|
|
217
|
+
}
|
|
218
|
+
get reachability() {
|
|
219
|
+
return (this._caches.reachability ??= new RepoPromiseCacheMap({
|
|
220
|
+
accessTTL: 1000 * 60 * 60, // 60 minutes
|
|
221
|
+
capacity: 25, // Limit to 25 commits per repo
|
|
222
|
+
}));
|
|
223
|
+
}
|
|
224
|
+
get remotes() {
|
|
225
|
+
return (this._caches.remotes ??= new PromiseMap());
|
|
226
|
+
}
|
|
227
|
+
get stashes() {
|
|
228
|
+
return (this._caches.stashes ??= new PromiseMap());
|
|
229
|
+
}
|
|
230
|
+
get tags() {
|
|
231
|
+
return (this._caches.tags ??= new PromiseMap());
|
|
232
|
+
}
|
|
233
|
+
get fileExistence() {
|
|
234
|
+
return (this._caches.fileExistence ??= new RepoPromiseCacheMap({
|
|
235
|
+
createTTL: 1000 * 10, // 10 seconds
|
|
236
|
+
capacity: 100,
|
|
237
|
+
expireOnError: true,
|
|
238
|
+
}));
|
|
239
|
+
}
|
|
240
|
+
// Key: repoPath (not the ignoreRevsFile path) so that per-repo cache resets (clearCaches with repoPath)
|
|
241
|
+
// correctly evict the entry. The actual file path is used inside the factory closure in blame.ts.
|
|
242
|
+
get ignoreRevsFile() {
|
|
243
|
+
return (this._caches.ignoreRevsFile ??= new PromiseCache({
|
|
244
|
+
accessTTL: 1000 * 60 * 60 * 2, // 2 hours
|
|
245
|
+
expireOnError: true,
|
|
246
|
+
}));
|
|
247
|
+
}
|
|
248
|
+
get trackedPaths() {
|
|
249
|
+
return (this._caches.trackedPaths ??= new RepoPromiseCacheMap({
|
|
250
|
+
createTTL: 1000 * 60, // 60 seconds
|
|
251
|
+
accessTTL: 1000 * 30, // 30 seconds idle
|
|
252
|
+
capacity: 200,
|
|
253
|
+
}));
|
|
254
|
+
}
|
|
255
|
+
get worktrees() {
|
|
256
|
+
return (this._caches.worktrees ??= new PromiseMap());
|
|
257
|
+
}
|
|
258
|
+
clearCaches(repoPath, ...types) {
|
|
259
|
+
const keysToClear = new Set();
|
|
260
|
+
if (!types.length) {
|
|
261
|
+
// Clear all caches
|
|
262
|
+
for (const key of Object.keys(this._caches)) {
|
|
263
|
+
keysToClear.add(key);
|
|
264
|
+
}
|
|
265
|
+
invalidateMemoized('providers');
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
// Clear specific cache types
|
|
269
|
+
if (types.includes('blame')) {
|
|
270
|
+
keysToClear.add('blame');
|
|
271
|
+
}
|
|
272
|
+
if (types.includes('diff')) {
|
|
273
|
+
keysToClear.add('diff');
|
|
274
|
+
}
|
|
275
|
+
if (types.includes('fileLog')) {
|
|
276
|
+
keysToClear.add('fileLog');
|
|
277
|
+
}
|
|
278
|
+
// Per-worktree branch caches (current branch / HEAD sensitive)
|
|
279
|
+
if (types.includes('branch') || types.includes('branches')) {
|
|
280
|
+
keysToClear.add('branch');
|
|
281
|
+
keysToClear.add('conflictDetection');
|
|
282
|
+
keysToClear.add('currentBranchReference');
|
|
283
|
+
keysToClear.add('leftRightCommitCount');
|
|
284
|
+
keysToClear.add('reachability');
|
|
285
|
+
keysToClear.add('resolvedRevisions');
|
|
286
|
+
}
|
|
287
|
+
// Shared branch caches (branch list, metadata)
|
|
288
|
+
if (types.includes('branches')) {
|
|
289
|
+
keysToClear.add('branches');
|
|
290
|
+
keysToClear.add('sharedBranches');
|
|
291
|
+
keysToClear.add('defaultBranchName');
|
|
292
|
+
keysToClear.add('initialCommitSha');
|
|
293
|
+
keysToClear.add('logShas');
|
|
294
|
+
}
|
|
295
|
+
if (types.includes('config')) {
|
|
296
|
+
keysToClear.add('configKeys');
|
|
297
|
+
keysToClear.add('configPatterns');
|
|
298
|
+
keysToClear.add('currentBranchReference');
|
|
299
|
+
keysToClear.add('currentUser');
|
|
300
|
+
keysToClear.add('gitDir');
|
|
301
|
+
}
|
|
302
|
+
if (types.includes('contributors')) {
|
|
303
|
+
keysToClear.add('contributors');
|
|
304
|
+
keysToClear.add('contributorsLite');
|
|
305
|
+
keysToClear.add('contributorsStats');
|
|
306
|
+
}
|
|
307
|
+
if (types.includes('gitignore')) {
|
|
308
|
+
keysToClear.add('gitIgnore');
|
|
309
|
+
}
|
|
310
|
+
if (types.includes('gkConfig')) {
|
|
311
|
+
keysToClear.add('gkConfigKeys');
|
|
312
|
+
keysToClear.add('gkConfigPatterns');
|
|
313
|
+
}
|
|
314
|
+
if (types.includes('providers')) {
|
|
315
|
+
keysToClear.add('remotes');
|
|
316
|
+
keysToClear.add('bestRemotes');
|
|
317
|
+
invalidateMemoized('providers');
|
|
318
|
+
}
|
|
319
|
+
if (types.includes('remotes')) {
|
|
320
|
+
keysToClear.add('remotes');
|
|
321
|
+
keysToClear.add('bestRemotes');
|
|
322
|
+
keysToClear.add('defaultBranchName');
|
|
323
|
+
}
|
|
324
|
+
if (types.includes('stashes')) {
|
|
325
|
+
keysToClear.add('stashes');
|
|
326
|
+
}
|
|
327
|
+
if (types.includes('status')) {
|
|
328
|
+
keysToClear.add('pausedOperationStatus');
|
|
329
|
+
}
|
|
330
|
+
if (types.includes('tags')) {
|
|
331
|
+
keysToClear.add('tags');
|
|
332
|
+
}
|
|
333
|
+
if (types.includes('tracking')) {
|
|
334
|
+
keysToClear.add('fileExistence');
|
|
335
|
+
keysToClear.add('trackedPaths');
|
|
336
|
+
}
|
|
337
|
+
if (types.includes('worktrees')) {
|
|
338
|
+
keysToClear.add('worktrees');
|
|
339
|
+
}
|
|
340
|
+
// Git results: cleared for any meaningful type change
|
|
341
|
+
if (types.some(t => t !== 'gitignore' && t !== 'gkConfig' && t !== 'providers')) {
|
|
342
|
+
keysToClear.add('gitResults');
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
for (const key of keysToClear) {
|
|
346
|
+
const cache = this._caches[key];
|
|
347
|
+
if (cache == null)
|
|
348
|
+
continue;
|
|
349
|
+
if (repoPath == null) {
|
|
350
|
+
cache.clear();
|
|
351
|
+
}
|
|
352
|
+
else if (sharedCacheKeys.has(key)) {
|
|
353
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
354
|
+
// For shared caches, prefer `invalidate` where supported so in-flight work is
|
|
355
|
+
// shared across new callers and self-evicts on settle rather than spawning a
|
|
356
|
+
// duplicate factory. `invalidate` does the right thing per-entry: entries with
|
|
357
|
+
// a `CacheController` (created via `getOrCreate`) are marked invalidated; entries
|
|
358
|
+
// without one (created via plain `.set()`, e.g. per-worktree mapper results) are
|
|
359
|
+
// hard-deleted. Caches that don't support `invalidate` fall back to `delete`.
|
|
360
|
+
const invalidate = cache.invalidate;
|
|
361
|
+
if (typeof invalidate === 'function') {
|
|
362
|
+
invalidate.call(cache, commonPath);
|
|
363
|
+
for (const worktreePath of this.getWorktreePaths(commonPath)) {
|
|
364
|
+
if (worktreePath === commonPath)
|
|
365
|
+
continue;
|
|
366
|
+
invalidate.call(cache, worktreePath);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
cache.delete(commonPath);
|
|
371
|
+
for (const worktreePath of this.getWorktreePaths(commonPath)) {
|
|
372
|
+
if (worktreePath === commonPath)
|
|
373
|
+
continue;
|
|
374
|
+
cache.delete(worktreePath);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
cache.delete(repoPath);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
getCommonPath(repoPath) {
|
|
384
|
+
return this._commonPathRegistry.get(repoPath) ?? repoPath;
|
|
385
|
+
}
|
|
386
|
+
getWorktreePaths(commonPath) {
|
|
387
|
+
const worktrees = this._worktreesByCommonPath.get(commonPath);
|
|
388
|
+
return worktrees != null ? [...worktrees] : [];
|
|
389
|
+
}
|
|
390
|
+
isWorktree(repoPath) {
|
|
391
|
+
const commonPath = this._commonPathRegistry.get(repoPath);
|
|
392
|
+
return commonPath != null && commonPath !== repoPath;
|
|
393
|
+
}
|
|
394
|
+
/** Clears file-scoped caches (blame, diff, fileLog) for a specific path within a repo */
|
|
395
|
+
clearForPath(repoPath, path, ...types) {
|
|
396
|
+
const prefix = `${normalizePath(path)}:`;
|
|
397
|
+
if (!types.length || types.includes('blame')) {
|
|
398
|
+
this._caches.blame?.deleteByKeyPrefix(repoPath, prefix);
|
|
399
|
+
}
|
|
400
|
+
if (!types.length || types.includes('diff')) {
|
|
401
|
+
this._caches.diff?.deleteByKeyPrefix(repoPath, prefix);
|
|
402
|
+
}
|
|
403
|
+
if (!types.length || types.includes('fileLog')) {
|
|
404
|
+
this._caches.fileLog?.deleteByKeyPrefix(repoPath, prefix);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
registerRepoPath(repoPath, gitDir) {
|
|
408
|
+
const normalizedPath = getRepositoryOrWorktreePath(repoPath);
|
|
409
|
+
const commonPath = gitDir.commonUri != null ? getCommonRepositoryPath(gitDir.commonUri) : normalizedPath;
|
|
410
|
+
this._commonPathRegistry.set(normalizedPath, commonPath);
|
|
411
|
+
let worktrees = this._worktreesByCommonPath.get(commonPath);
|
|
412
|
+
if (worktrees == null) {
|
|
413
|
+
worktrees = new Set();
|
|
414
|
+
this._worktreesByCommonPath.set(commonPath, worktrees);
|
|
415
|
+
}
|
|
416
|
+
worktrees.add(normalizedPath);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Symmetric companion to `registerRepoPath`. Clears cache entries specific to `repoPath`
|
|
420
|
+
* and removes the path from the registry.
|
|
421
|
+
*
|
|
422
|
+
* Call this when a worktree is deleted or a repo is closed so stale registry entries
|
|
423
|
+
* and derived cache entries don't persist.
|
|
424
|
+
*
|
|
425
|
+
* Targeted — does NOT cascade to sibling worktrees sharing the same commonPath. The
|
|
426
|
+
* shared commonPath entry in each shared cache is only evicted when unregistering the
|
|
427
|
+
* last remaining worktree for that commonPath (otherwise siblings still depend on it).
|
|
428
|
+
*
|
|
429
|
+
* Uses soft-invalidate where supported so any in-flight factory/mapper keeps its abort
|
|
430
|
+
* wiring intact — a caller whose signal aborts after unregister can still propagate
|
|
431
|
+
* cancellation into the underlying work rather than leaving it orphaned. Controller-backed
|
|
432
|
+
* entries self-evict on settle; plain `.set()`-based entries hard-delete immediately.
|
|
433
|
+
*
|
|
434
|
+
* No-op if `repoPath` is not registered.
|
|
435
|
+
*/
|
|
436
|
+
unregisterRepoPath(repoPath) {
|
|
437
|
+
const commonPath = this._commonPathRegistry.get(repoPath) ?? repoPath;
|
|
438
|
+
const worktrees = this._worktreesByCommonPath.get(commonPath);
|
|
439
|
+
// After removing repoPath, would the commonPath have any worktrees left?
|
|
440
|
+
const isLastWorktree = worktrees == null || worktrees.size <= 1;
|
|
441
|
+
// Targeted per-repoPath cleanup: for per-worktree caches, clear this repoPath's
|
|
442
|
+
// entries. For shared caches, clear this repoPath's mapper entry (if it's a worktree
|
|
443
|
+
// distinct from commonPath); only evict the shared commonPath entry when this was the
|
|
444
|
+
// last worktree — otherwise siblings still rely on the shared data.
|
|
445
|
+
for (const key of Object.keys(this._caches)) {
|
|
446
|
+
const cache = this._caches[key];
|
|
447
|
+
if (cache == null)
|
|
448
|
+
continue;
|
|
449
|
+
// Prefer `invalidate` so in-flight abort wiring survives until the factory settles;
|
|
450
|
+
// fall back to `delete` for plain `Map`-typed caches that don't track promises.
|
|
451
|
+
const invalidate = cache.invalidate;
|
|
452
|
+
const evict = typeof invalidate === 'function'
|
|
453
|
+
? (k) => invalidate.call(cache, k)
|
|
454
|
+
: (k) => cache.delete(k);
|
|
455
|
+
if (sharedCacheKeys.has(key)) {
|
|
456
|
+
if (repoPath !== commonPath) {
|
|
457
|
+
evict(repoPath);
|
|
458
|
+
}
|
|
459
|
+
if (isLastWorktree) {
|
|
460
|
+
evict(commonPath);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
evict(repoPath);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
this._commonPathRegistry.delete(repoPath);
|
|
468
|
+
if (worktrees != null) {
|
|
469
|
+
worktrees.delete(repoPath);
|
|
470
|
+
if (worktrees.size === 0) {
|
|
471
|
+
this._worktreesByCommonPath.delete(commonPath);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
reset() {
|
|
476
|
+
this._commonPathRegistry.clear();
|
|
477
|
+
this._worktreesByCommonPath.clear();
|
|
478
|
+
this._caches = createEmptyCaches();
|
|
479
|
+
}
|
|
480
|
+
onRepositoryChanged(repoPath, changes) {
|
|
481
|
+
const changesSet = new Set(changes);
|
|
482
|
+
const hasAny = (...c) => c.some(ch => changesSet.has(ch));
|
|
483
|
+
if (hasAny('unknown', 'closed')) {
|
|
484
|
+
this.unregisterRepoPath(repoPath);
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
const types = new Set();
|
|
488
|
+
if (hasAny('head')) {
|
|
489
|
+
types.add('branch');
|
|
490
|
+
}
|
|
491
|
+
if (hasAny('index', 'heads', 'pausedOp')) {
|
|
492
|
+
types.add('blame');
|
|
493
|
+
types.add('diff');
|
|
494
|
+
types.add('fileLog');
|
|
495
|
+
}
|
|
496
|
+
if (hasAny('index')) {
|
|
497
|
+
types.add('tracking');
|
|
498
|
+
}
|
|
499
|
+
if (hasAny('config')) {
|
|
500
|
+
types.add('config');
|
|
501
|
+
}
|
|
502
|
+
if (hasAny('heads')) {
|
|
503
|
+
types.add('branches');
|
|
504
|
+
types.add('contributors');
|
|
505
|
+
types.add('worktrees');
|
|
506
|
+
}
|
|
507
|
+
if (hasAny('remotes')) {
|
|
508
|
+
types.add('branches');
|
|
509
|
+
types.add('contributors');
|
|
510
|
+
types.add('remotes');
|
|
511
|
+
types.add('worktrees');
|
|
512
|
+
}
|
|
513
|
+
if (hasAny('ignores')) {
|
|
514
|
+
types.add('gitignore');
|
|
515
|
+
}
|
|
516
|
+
if (hasAny('gkConfig')) {
|
|
517
|
+
types.add('gkConfig');
|
|
518
|
+
}
|
|
519
|
+
if (hasAny('remoteProviders')) {
|
|
520
|
+
types.add('providers');
|
|
521
|
+
}
|
|
522
|
+
if (hasAny('cherryPick', 'merge', 'rebase', 'revert', 'pausedOp')) {
|
|
523
|
+
types.add('branch');
|
|
524
|
+
types.add('status');
|
|
525
|
+
}
|
|
526
|
+
if (hasAny('stash')) {
|
|
527
|
+
types.add('stashes');
|
|
528
|
+
}
|
|
529
|
+
if (hasAny('tags')) {
|
|
530
|
+
types.add('tags');
|
|
531
|
+
}
|
|
532
|
+
if (hasAny('worktrees')) {
|
|
533
|
+
types.add('worktrees');
|
|
534
|
+
}
|
|
535
|
+
if (types.size) {
|
|
536
|
+
this.clearCaches(repoPath, ...types);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
getBranches(repoPath, factory, mapper, cancellation) {
|
|
540
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
541
|
+
// Register this caller with the shared factory's aggregate so that invariant 3
|
|
542
|
+
// (factory aborts iff every waiter has aborted) holds for same-`repoPath` cache hits too.
|
|
543
|
+
// The returned wrapped promise is deliberately discarded — we use the raw cached inner
|
|
544
|
+
// below to build the mapped entry. Swallow any rejection on this dangling reference so
|
|
545
|
+
// it doesn't surface as an unhandled rejection; the real caller-facing promise (via
|
|
546
|
+
// `branches.getOrCreate` below) is where caller cancellation flows to.
|
|
547
|
+
const registration = this.sharedBranches.getOrCreate(commonPath, (cacheable, signal) => {
|
|
548
|
+
const p = Promise.resolve(factory(commonPath, cacheable, signal));
|
|
549
|
+
// On factory invalidation, propagate to the derived per-worktree mapper entries
|
|
550
|
+
// via soft-invalidate — existing waiters on the mapper complete, and the entry
|
|
551
|
+
// self-evicts on mapper settle so the next callers build fresh derived entries.
|
|
552
|
+
void p.finally(() => {
|
|
553
|
+
if (cacheable.invalidated) {
|
|
554
|
+
this.branches.invalidate(commonPath);
|
|
555
|
+
for (const worktreePath of this.getWorktreePaths(commonPath)) {
|
|
556
|
+
this.branches.invalidate(worktreePath);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
return p;
|
|
561
|
+
}, cancellation);
|
|
562
|
+
void registration.catch(() => { });
|
|
563
|
+
// Build the per-`repoPath` mapped entry through `getOrCreate` so mapper internal git
|
|
564
|
+
// work (e.g. `getCurrentBranchReferenceCore`) runs under a mapper-level aggregate signal
|
|
565
|
+
// separate from the factory's. Subsequent same-`repoPath` cache hits register with this
|
|
566
|
+
// aggregate too — invariant 2/3 hold at the mapper level.
|
|
567
|
+
return this.branches.getOrCreate(repoPath, (_cacheable, mapperSignal) => {
|
|
568
|
+
// After `getOrCreate` above, `sharedBranches[commonPath]` holds the raw inner
|
|
569
|
+
// factory promise. Fall back to `registration` in the paranoid case where a
|
|
570
|
+
// synchronously-rejected factory got auto-evicted before we retrieve it.
|
|
571
|
+
const rawShared = this.sharedBranches.get(commonPath) ?? registration;
|
|
572
|
+
return Promise.resolve(rawShared).then(shared => mapper(shared, repoPath, commonPath, mapperSignal));
|
|
573
|
+
}, cancellation);
|
|
574
|
+
}
|
|
575
|
+
static globalConfigKey = '';
|
|
576
|
+
getConfig(repoPath, key, factory) {
|
|
577
|
+
const cacheKey = repoPath != null ? this.getCommonPath(repoPath) : Cache.globalConfigKey;
|
|
578
|
+
const result = this.configKeys.get(cacheKey, key);
|
|
579
|
+
if (result != null)
|
|
580
|
+
return result;
|
|
581
|
+
const factoryPromise = Promise.resolve(factory());
|
|
582
|
+
this.configKeys.set(cacheKey, key, factoryPromise);
|
|
583
|
+
return factoryPromise;
|
|
584
|
+
}
|
|
585
|
+
getConfigRegex(repoPath, pattern, factory) {
|
|
586
|
+
const cacheKey = repoPath != null ? this.getCommonPath(repoPath) : Cache.globalConfigKey;
|
|
587
|
+
const result = this.configPatterns.get(cacheKey, pattern);
|
|
588
|
+
if (result != null)
|
|
589
|
+
return result;
|
|
590
|
+
const factoryPromise = Promise.resolve(factory());
|
|
591
|
+
this.configPatterns.set(cacheKey, pattern, factoryPromise);
|
|
592
|
+
return factoryPromise;
|
|
593
|
+
}
|
|
594
|
+
deleteConfig(repoPath, key) {
|
|
595
|
+
const cacheKey = repoPath != null ? this.getCommonPath(repoPath) : Cache.globalConfigKey;
|
|
596
|
+
this._caches.configKeys?.delete(cacheKey, key);
|
|
597
|
+
this._caches.configPatterns?.delete(cacheKey);
|
|
598
|
+
}
|
|
599
|
+
getGkConfig(repoPath, key, factory) {
|
|
600
|
+
const cacheKey = this.getCommonPath(repoPath);
|
|
601
|
+
const result = this.gkConfigKeys.get(cacheKey, key);
|
|
602
|
+
if (result != null)
|
|
603
|
+
return result;
|
|
604
|
+
const factoryPromise = Promise.resolve(factory());
|
|
605
|
+
this.gkConfigKeys.set(cacheKey, key, factoryPromise);
|
|
606
|
+
return factoryPromise;
|
|
607
|
+
}
|
|
608
|
+
getGkConfigRegex(repoPath, pattern, factory) {
|
|
609
|
+
const cacheKey = this.getCommonPath(repoPath);
|
|
610
|
+
const result = this.gkConfigPatterns.get(cacheKey, pattern);
|
|
611
|
+
if (result != null)
|
|
612
|
+
return result;
|
|
613
|
+
const factoryPromise = Promise.resolve(factory());
|
|
614
|
+
this.gkConfigPatterns.set(cacheKey, pattern, factoryPromise);
|
|
615
|
+
return factoryPromise;
|
|
616
|
+
}
|
|
617
|
+
deleteGkConfig(repoPath, key) {
|
|
618
|
+
const cacheKey = this.getCommonPath(repoPath);
|
|
619
|
+
this._caches.gkConfigKeys?.delete(cacheKey, key);
|
|
620
|
+
this._caches.gkConfigPatterns?.delete(cacheKey);
|
|
621
|
+
}
|
|
622
|
+
async getContributors(repoPath, cacheKey, factory, options) {
|
|
623
|
+
return this.getSharedOrCreateWithKey(this.contributors, repoPath, cacheKey, factory, (data, newRepoPath) => ({
|
|
624
|
+
...data,
|
|
625
|
+
contributors: data.contributors.map(c => c.withRepoPath(newRepoPath)),
|
|
626
|
+
}), options);
|
|
627
|
+
}
|
|
628
|
+
async getContributorsLite(repoPath, cacheKey, factory, options) {
|
|
629
|
+
return this.getSharedOrCreateWithKey(this.contributorsLite, repoPath, cacheKey, factory, (data, newRepoPath) => data.map(c => c.withRepoPath(newRepoPath)), options);
|
|
630
|
+
}
|
|
631
|
+
getContributorsStats(repoPath, cacheKey, factory, options) {
|
|
632
|
+
return this.getSharedSimpleWithKey(this.contributorsStats, repoPath, cacheKey, factory, options);
|
|
633
|
+
}
|
|
634
|
+
getDefaultBranchName(repoPath, remote, factory) {
|
|
635
|
+
return this.getSharedSimpleWithKey(this.defaultBranchName, repoPath, remote, factory);
|
|
636
|
+
}
|
|
637
|
+
getInitialCommitSha(repoPath, factory) {
|
|
638
|
+
return this.getSharedSimple(this.initialCommitSha, repoPath, factory);
|
|
639
|
+
}
|
|
640
|
+
getLastFetchedTimestamp(repoPath, factory) {
|
|
641
|
+
return this.getSharedSimple(this.lastFetched, repoPath, factory);
|
|
642
|
+
}
|
|
643
|
+
async getRemotes(repoPath, factory, cancellation) {
|
|
644
|
+
return this.getSharedOrCreate(this.remotes, repoPath, factory, (data, newRepoPath) => data.map(r => r.withRepoPath(newRepoPath)), cancellation);
|
|
645
|
+
}
|
|
646
|
+
async getStash(repoPath, factory, cancellation) {
|
|
647
|
+
return this.getSharedOrCreate(this.stashes, repoPath, factory, (data, newRepoPath) => ({
|
|
648
|
+
repoPath: newRepoPath,
|
|
649
|
+
stashes: new Map(Array.from(data.stashes.entries(), ([sha, s]) => [
|
|
650
|
+
sha,
|
|
651
|
+
s.withRepoPath(newRepoPath),
|
|
652
|
+
])),
|
|
653
|
+
}), cancellation);
|
|
654
|
+
}
|
|
655
|
+
async getTags(repoPath, factory, cancellation) {
|
|
656
|
+
return this.getSharedOrCreate(this.tags, repoPath, factory, (data, newRepoPath) => ({ ...data, values: data.values.map(t => t.withRepoPath(newRepoPath)) }), cancellation);
|
|
657
|
+
}
|
|
658
|
+
async getWorktrees(repoPath, factory, cancellation) {
|
|
659
|
+
return this.getSharedOrCreate(this.worktrees, repoPath, factory, (data, newRepoPath) => data.map(w => w.withRepoPath(newRepoPath)), cancellation);
|
|
660
|
+
}
|
|
661
|
+
async getSharedOrCreate(cache, repoPath, factory, mapper, cancellation) {
|
|
662
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
663
|
+
// Always register this caller with the shared factory's aggregate so same-`repoPath` and
|
|
664
|
+
// worktree-distinct concurrent callers both contribute — invariant 3 (factory aborts iff
|
|
665
|
+
// every waiter aborts) holds uniformly. The wrapped return is our caller-facing promise
|
|
666
|
+
// for the commonPath-keyed branch; the per-worktree branch uses `raceWithSignal` below.
|
|
667
|
+
const sharedPromise = cache.getOrCreate(commonPath, (cacheable, signal) => {
|
|
668
|
+
const p = Promise.resolve(factory(commonPath, cacheable, signal));
|
|
669
|
+
// On factory invalidation (without rejection), propagate to the derived per-worktree
|
|
670
|
+
// mapper entries so they don't persist past the shared factory's settle. Mapper
|
|
671
|
+
// entries cached via `cache.set()` have no controller, so `invalidate` hard-deletes.
|
|
672
|
+
void p.finally(() => {
|
|
673
|
+
if (cacheable.invalidated) {
|
|
674
|
+
for (const worktreePath of this.getWorktreePaths(commonPath)) {
|
|
675
|
+
if (worktreePath === commonPath)
|
|
676
|
+
continue;
|
|
677
|
+
cache.invalidate(worktreePath);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
return p;
|
|
682
|
+
}, cancellation);
|
|
683
|
+
// Swallow any rejection on the registration wrapper so it isn't surfaced as an unhandled
|
|
684
|
+
// rejection when we discard it below (existing-mapper path). The real caller-facing
|
|
685
|
+
// promise is the returned value.
|
|
686
|
+
void sharedPromise.catch(() => { });
|
|
687
|
+
if (commonPath !== repoPath) {
|
|
688
|
+
// Reuse the cached mapped entry for this worktree if present; otherwise derive it off
|
|
689
|
+
// the raw inner shared promise so subsequent cache hits don't inherit the first
|
|
690
|
+
// caller's signal wrap.
|
|
691
|
+
const existing = cache.get(repoPath);
|
|
692
|
+
if (existing != null) {
|
|
693
|
+
return cancellation != null ? raceWithSignal(existing, cancellation) : existing;
|
|
694
|
+
}
|
|
695
|
+
const rawShared = cache.get(commonPath) ?? sharedPromise;
|
|
696
|
+
const mappedPromise = Promise.resolve(rawShared).then(data => mapper(data, repoPath));
|
|
697
|
+
cache.set(repoPath, mappedPromise);
|
|
698
|
+
return cancellation != null ? raceWithSignal(mappedPromise, cancellation) : mappedPromise;
|
|
699
|
+
}
|
|
700
|
+
return sharedPromise;
|
|
701
|
+
}
|
|
702
|
+
async getSharedOrCreateWithKey(cache, repoPath, cacheKey, factory, mapper, options) {
|
|
703
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
704
|
+
const cancellation = options?.cancellation;
|
|
705
|
+
// Always register with the shared factory's aggregate (see `getSharedOrCreate` comment).
|
|
706
|
+
const sharedPromise = cache.getOrCreate(commonPath, cacheKey, (cacheable, signal) => {
|
|
707
|
+
const p = Promise.resolve(factory(commonPath, cacheable, signal));
|
|
708
|
+
// On factory invalidation (without rejection), propagate to the derived per-worktree
|
|
709
|
+
// mapper entries for this `cacheKey` so they don't persist past the shared factory's
|
|
710
|
+
// settle. Mapper entries cached via `cache.set()` have no controller, so `invalidate`
|
|
711
|
+
// hard-deletes.
|
|
712
|
+
void p.finally(() => {
|
|
713
|
+
if (cacheable.invalidated) {
|
|
714
|
+
for (const worktreePath of this.getWorktreePaths(commonPath)) {
|
|
715
|
+
if (worktreePath === commonPath)
|
|
716
|
+
continue;
|
|
717
|
+
cache.invalidate(worktreePath, cacheKey);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
return p;
|
|
722
|
+
}, options);
|
|
723
|
+
// Swallow any rejection on the registration wrapper so it isn't surfaced as an unhandled
|
|
724
|
+
// rejection when we discard it below (existing-mapper path).
|
|
725
|
+
void sharedPromise.catch(() => { });
|
|
726
|
+
if (commonPath !== repoPath) {
|
|
727
|
+
const existing = cache.get(repoPath, cacheKey);
|
|
728
|
+
if (existing != null) {
|
|
729
|
+
return cancellation != null ? raceWithSignal(existing, cancellation) : existing;
|
|
730
|
+
}
|
|
731
|
+
const rawShared = cache.get(commonPath, cacheKey) ?? sharedPromise;
|
|
732
|
+
const mappedPromise = Promise.resolve(rawShared).then(data => mapper(data, repoPath));
|
|
733
|
+
cache.set(repoPath, cacheKey, mappedPromise, options);
|
|
734
|
+
return cancellation != null ? raceWithSignal(mappedPromise, cancellation) : mappedPromise;
|
|
735
|
+
}
|
|
736
|
+
return sharedPromise;
|
|
737
|
+
}
|
|
738
|
+
async getSharedSimple(cache, repoPath, factory) {
|
|
739
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
740
|
+
// `PromiseMap.getOrCreate(key, factory, cancellation?)` and
|
|
741
|
+
// `PromiseCache.getOrCreate(key, factory, options?)` have different 3rd-argument shapes,
|
|
742
|
+
// so we dispatch on cache type. Both register a `CacheController` so `invalidate` works.
|
|
743
|
+
if (cache instanceof PromiseCache) {
|
|
744
|
+
return cache.getOrCreate(commonPath, () => Promise.resolve(factory(commonPath)));
|
|
745
|
+
}
|
|
746
|
+
return cache.getOrCreate(commonPath, () => Promise.resolve(factory(commonPath)));
|
|
747
|
+
}
|
|
748
|
+
async getSharedSimpleWithKey(cache, repoPath, cacheKey, factory, options) {
|
|
749
|
+
const commonPath = this.getCommonPath(repoPath);
|
|
750
|
+
return cache.getOrCreate(commonPath, cacheKey, () => Promise.resolve(factory(commonPath)), options);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
__decorate([
|
|
754
|
+
debug({ onlyExit: true })
|
|
755
|
+
], Cache.prototype, "clearCaches", null);
|
|
756
|
+
__decorate([
|
|
757
|
+
debug({ onlyExit: true })
|
|
758
|
+
], Cache.prototype, "unregisterRepoPath", null);
|
|
759
|
+
__decorate([
|
|
760
|
+
debug({ onlyExit: true })
|
|
761
|
+
], Cache.prototype, "reset", null);
|
|
762
|
+
__decorate([
|
|
763
|
+
debug({ onlyExit: true })
|
|
764
|
+
], Cache.prototype, "onRepositoryChanged", null);
|
|
765
|
+
//# sourceMappingURL=cache.js.map
|