@gitkraken/core-gitlens 0.4.0 → 0.4.100
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 +71 -1
- package/README.md +9 -2
- package/dist/git/cache.d.ts +29 -2
- package/dist/git/cache.d.ts.map +1 -1
- package/dist/git/cache.js +67 -7
- package/dist/git/cache.js.map +1 -1
- package/dist/git/context.d.ts.map +1 -1
- package/dist/git/errors.d.ts +31 -1
- package/dist/git/errors.d.ts.map +1 -1
- package/dist/git/errors.js +29 -0
- package/dist/git/errors.js.map +1 -1
- package/dist/git/models/author.d.ts.map +1 -1
- package/dist/git/models/author.js.map +1 -1
- package/dist/git/models/autolink.d.ts.map +1 -1
- package/dist/git/models/autolink.js.map +1 -1
- package/dist/git/models/blame.d.ts.map +1 -1
- package/dist/git/models/blame.js.map +1 -1
- package/dist/git/models/branch.d.ts.map +1 -1
- package/dist/git/models/branch.js.map +1 -1
- package/dist/git/models/commit.d.ts.map +1 -1
- package/dist/git/models/commit.js +1 -1
- package/dist/git/models/commit.js.map +1 -1
- package/dist/git/models/contributor.d.ts.map +1 -1
- package/dist/git/models/contributor.js.map +1 -1
- package/dist/git/models/defaultBranch.d.ts.map +1 -1
- package/dist/git/models/defaultBranch.js.map +1 -1
- package/dist/git/models/diff.d.ts.map +1 -1
- package/dist/git/models/diff.js.map +1 -1
- package/dist/git/models/file.d.ts.map +1 -1
- package/dist/git/models/file.js.map +1 -1
- package/dist/git/models/fileChange.d.ts.map +1 -1
- package/dist/git/models/fileChange.js.map +1 -1
- package/dist/git/models/fileStatus.d.ts +22 -22
- package/dist/git/models/fileStatus.d.ts.map +1 -1
- package/dist/git/models/fileStatus.js.map +1 -1
- package/dist/git/models/graph.d.ts +122 -1
- package/dist/git/models/graph.d.ts.map +1 -1
- package/dist/git/models/graph.js +4 -0
- package/dist/git/models/graph.js.map +1 -1
- package/dist/git/models/graphSearch.d.ts.map +1 -1
- package/dist/git/models/graphSearch.js.map +1 -1
- package/dist/git/models/graphSession.d.ts +177 -0
- package/dist/git/models/graphSession.d.ts.map +1 -0
- package/dist/git/models/graphSession.js +7 -0
- package/dist/git/models/graphSession.js.map +1 -0
- package/dist/git/models/issue.d.ts +12 -2
- package/dist/git/models/issue.d.ts.map +1 -1
- package/dist/git/models/issue.js +3 -1
- package/dist/git/models/issue.js.map +1 -1
- package/dist/git/models/issueOrPullRequest.d.ts.map +1 -1
- package/dist/git/models/issueOrPullRequest.js.map +1 -1
- package/dist/git/models/lineRange.d.ts.map +1 -1
- package/dist/git/models/lineRange.js.map +1 -1
- package/dist/git/models/log.d.ts.map +1 -1
- package/dist/git/models/log.js.map +1 -1
- package/dist/git/models/mergeConflicts.d.ts.map +1 -1
- package/dist/git/models/mergeConflicts.js.map +1 -1
- package/dist/git/models/patch.d.ts.map +1 -1
- package/dist/git/models/patch.js.map +1 -1
- package/dist/git/models/pausedOperationStatus.d.ts.map +1 -1
- package/dist/git/models/pausedOperationStatus.js.map +1 -1
- package/dist/git/models/pullRequest.d.ts +27 -2
- package/dist/git/models/pullRequest.d.ts.map +1 -1
- package/dist/git/models/pullRequest.js +7 -1
- package/dist/git/models/pullRequest.js.map +1 -1
- package/dist/git/models/rebase.d.ts.map +1 -1
- package/dist/git/models/rebase.js.map +1 -1
- package/dist/git/models/reference.d.ts.map +1 -1
- package/dist/git/models/reference.js.map +1 -1
- package/dist/git/models/reflog.d.ts.map +1 -1
- package/dist/git/models/reflog.js.map +1 -1
- package/dist/git/models/remote.d.ts.map +1 -1
- package/dist/git/models/remote.js.map +1 -1
- package/dist/git/models/remoteProvider.d.ts.map +1 -1
- package/dist/git/models/remoteProvider.js.map +1 -1
- package/dist/git/models/remoteResource.d.ts.map +1 -1
- package/dist/git/models/remoteResource.js.map +1 -1
- package/dist/git/models/repository.d.ts +20 -2
- package/dist/git/models/repository.d.ts.map +1 -1
- package/dist/git/models/repository.js +19 -0
- package/dist/git/models/repository.js.map +1 -1
- package/dist/git/models/repositoryChangeEvent.d.ts.map +1 -1
- package/dist/git/models/repositoryChangeEvent.js.map +1 -1
- package/dist/git/models/repositoryIdentities.d.ts.map +1 -1
- package/dist/git/models/repositoryIdentities.js.map +1 -1
- package/dist/git/models/repositoryMetadata.d.ts.map +1 -1
- package/dist/git/models/repositoryMetadata.js.map +1 -1
- package/dist/git/models/resourceDescriptor.d.ts +16 -0
- package/dist/git/models/resourceDescriptor.d.ts.map +1 -1
- package/dist/git/models/resourceDescriptor.js.map +1 -1
- package/dist/git/models/revision.d.ts.map +1 -1
- package/dist/git/models/revision.js.map +1 -1
- package/dist/git/models/search.d.ts.map +1 -1
- package/dist/git/models/search.js.map +1 -1
- package/dist/git/models/shortlog.d.ts.map +1 -1
- package/dist/git/models/shortlog.js.map +1 -1
- package/dist/git/models/signature.d.ts +14 -0
- package/dist/git/models/signature.d.ts.map +1 -1
- package/dist/git/models/signature.js.map +1 -1
- package/dist/git/models/staging.d.ts.map +1 -1
- package/dist/git/models/staging.js.map +1 -1
- package/dist/git/models/stash.d.ts.map +1 -1
- package/dist/git/models/stash.js.map +1 -1
- package/dist/git/models/status.d.ts.map +1 -1
- package/dist/git/models/status.js.map +1 -1
- package/dist/git/models/statusFile.d.ts.map +1 -1
- package/dist/git/models/statusFile.js.map +1 -1
- package/dist/git/models/tag.d.ts +11 -1
- package/dist/git/models/tag.d.ts.map +1 -1
- package/dist/git/models/tag.js +9 -2
- package/dist/git/models/tag.js.map +1 -1
- package/dist/git/models/tree.d.ts.map +1 -1
- package/dist/git/models/tree.js.map +1 -1
- package/dist/git/models/user.d.ts.map +1 -1
- package/dist/git/models/user.js.map +1 -1
- package/dist/git/models/worktree.d.ts.map +1 -1
- package/dist/git/models/worktree.js.map +1 -1
- package/dist/git/parsers/diffParser.d.ts.map +1 -1
- package/dist/git/parsers/diffParser.js +1 -1
- package/dist/git/parsers/diffParser.js.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.d.ts.map +1 -1
- package/dist/git/parsers/rebaseTodoParser.js.map +1 -1
- package/dist/git/providers/blame.d.ts.map +1 -1
- package/dist/git/providers/blame.js.map +1 -1
- package/dist/git/providers/branches.d.ts +8 -1
- package/dist/git/providers/branches.d.ts.map +1 -1
- package/dist/git/providers/branches.js.map +1 -1
- package/dist/git/providers/commits.d.ts +6 -1
- package/dist/git/providers/commits.d.ts.map +1 -1
- package/dist/git/providers/commits.js.map +1 -1
- package/dist/git/providers/config.d.ts +6 -2
- package/dist/git/providers/config.d.ts.map +1 -1
- package/dist/git/providers/config.js.map +1 -1
- package/dist/git/providers/contributors.d.ts.map +1 -1
- package/dist/git/providers/contributors.js.map +1 -1
- package/dist/git/providers/diff.d.ts.map +1 -1
- package/dist/git/providers/diff.js.map +1 -1
- package/dist/git/providers/graph.d.ts +55 -1
- package/dist/git/providers/graph.d.ts.map +1 -1
- package/dist/git/providers/graph.js.map +1 -1
- package/dist/git/providers/operations.d.ts.map +1 -1
- package/dist/git/providers/operations.js.map +1 -1
- package/dist/git/providers/patch.d.ts.map +1 -1
- package/dist/git/providers/patch.js.map +1 -1
- package/dist/git/providers/pausedOperations.d.ts.map +1 -1
- package/dist/git/providers/pausedOperations.js.map +1 -1
- package/dist/git/providers/provider.d.ts.map +1 -1
- package/dist/git/providers/provider.js.map +1 -1
- package/dist/git/providers/refs.d.ts.map +1 -1
- package/dist/git/providers/refs.js.map +1 -1
- package/dist/git/providers/remotes.d.ts.map +1 -1
- package/dist/git/providers/remotes.js.map +1 -1
- package/dist/git/providers/revision.d.ts.map +1 -1
- package/dist/git/providers/revision.js.map +1 -1
- package/dist/git/providers/shared/remotes.d.ts.map +1 -1
- package/dist/git/providers/shared/remotes.js.map +1 -1
- package/dist/git/providers/staging.d.ts.map +1 -1
- package/dist/git/providers/staging.js.map +1 -1
- package/dist/git/providers/stash.d.ts.map +1 -1
- package/dist/git/providers/stash.js.map +1 -1
- package/dist/git/providers/status.d.ts +1 -0
- package/dist/git/providers/status.d.ts.map +1 -1
- package/dist/git/providers/status.js.map +1 -1
- package/dist/git/providers/tags.d.ts.map +1 -1
- package/dist/git/providers/tags.js.map +1 -1
- package/dist/git/providers/types.d.ts.map +1 -1
- package/dist/git/providers/types.js.map +1 -1
- package/dist/git/providers/worktrees.d.ts +3 -1
- package/dist/git/providers/worktrees.d.ts.map +1 -1
- package/dist/git/providers/worktrees.js.map +1 -1
- package/dist/git/remotes/azure-devops.d.ts.map +1 -1
- package/dist/git/remotes/azure-devops.js +27 -31
- package/dist/git/remotes/azure-devops.js.map +1 -1
- package/dist/git/remotes/bitbucket-server.d.ts.map +1 -1
- package/dist/git/remotes/bitbucket-server.js +21 -23
- package/dist/git/remotes/bitbucket-server.js.map +1 -1
- package/dist/git/remotes/bitbucket.d.ts.map +1 -1
- package/dist/git/remotes/bitbucket.js +21 -23
- package/dist/git/remotes/bitbucket.js.map +1 -1
- package/dist/git/remotes/custom.d.ts.map +1 -1
- package/dist/git/remotes/custom.js.map +1 -1
- package/dist/git/remotes/gerrit.d.ts.map +1 -1
- package/dist/git/remotes/gerrit.js +11 -13
- package/dist/git/remotes/gerrit.js.map +1 -1
- package/dist/git/remotes/gitea.d.ts.map +1 -1
- package/dist/git/remotes/gitea.js +12 -14
- package/dist/git/remotes/gitea.js.map +1 -1
- package/dist/git/remotes/github.d.ts.map +1 -1
- package/dist/git/remotes/github.js +54 -56
- package/dist/git/remotes/github.js.map +1 -1
- package/dist/git/remotes/gitlab.d.ts.map +1 -1
- package/dist/git/remotes/gitlab.js +93 -95
- package/dist/git/remotes/gitlab.js.map +1 -1
- package/dist/git/remotes/google-source.d.ts.map +1 -1
- package/dist/git/remotes/google-source.js.map +1 -1
- package/dist/git/remotes/matcher.d.ts.map +1 -1
- package/dist/git/remotes/matcher.js.map +1 -1
- package/dist/git/run.types.d.ts +62 -3
- package/dist/git/run.types.d.ts.map +1 -1
- package/dist/git/service.d.ts.map +1 -1
- package/dist/git/utils/autolink.utils.d.ts.map +1 -1
- package/dist/git/utils/autolink.utils.js.map +1 -1
- package/dist/git/utils/blame.utils.d.ts.map +1 -1
- package/dist/git/utils/blame.utils.js.map +1 -1
- package/dist/git/utils/branch.utils.d.ts.map +1 -1
- package/dist/git/utils/branch.utils.js +12 -1
- package/dist/git/utils/branch.utils.js.map +1 -1
- package/dist/git/utils/commit.utils.d.ts.map +1 -1
- package/dist/git/utils/commit.utils.js.map +1 -1
- package/dist/git/utils/conflictResolution.utils.d.ts.map +1 -1
- package/dist/git/utils/conflictResolution.utils.js.map +1 -1
- package/dist/git/utils/contributor.utils.d.ts +1 -1
- package/dist/git/utils/contributor.utils.d.ts.map +1 -1
- package/dist/git/utils/contributor.utils.js +1 -2
- package/dist/git/utils/contributor.utils.js.map +1 -1
- package/dist/git/utils/fetch.utils.d.ts.map +1 -1
- package/dist/git/utils/fetch.utils.js.map +1 -1
- package/dist/git/utils/fileStatus.utils.d.ts +7 -0
- package/dist/git/utils/fileStatus.utils.d.ts.map +1 -1
- package/dist/git/utils/fileStatus.utils.js +6 -0
- package/dist/git/utils/fileStatus.utils.js.map +1 -1
- package/dist/git/utils/graph.utils.d.ts +20 -0
- package/dist/git/utils/graph.utils.d.ts.map +1 -0
- package/dist/git/utils/graph.utils.js +40 -0
- package/dist/git/utils/graph.utils.js.map +1 -0
- package/dist/git/utils/issue.utils.d.ts.map +1 -1
- package/dist/git/utils/issue.utils.js +1 -0
- package/dist/git/utils/issue.utils.js.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.d.ts.map +1 -1
- package/dist/git/utils/issueOrPullRequest.utils.js.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.d.ts.map +1 -1
- package/dist/git/utils/mergeConflicts.utils.js.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.d.ts +13 -13
- package/dist/git/utils/pausedOperationStatus.utils.d.ts.map +1 -1
- package/dist/git/utils/pausedOperationStatus.utils.js.map +1 -1
- package/dist/git/utils/pullRequest.utils.d.ts.map +1 -1
- package/dist/git/utils/pullRequest.utils.js +9 -0
- package/dist/git/utils/pullRequest.utils.js.map +1 -1
- package/dist/git/utils/reachability.utils.d.ts +20 -2
- package/dist/git/utils/reachability.utils.d.ts.map +1 -1
- package/dist/git/utils/reachability.utils.js +68 -7
- package/dist/git/utils/reachability.utils.js.map +1 -1
- package/dist/git/utils/rebase.utils.d.ts.map +1 -1
- package/dist/git/utils/rebase.utils.js.map +1 -1
- package/dist/git/utils/reference.utils.d.ts.map +1 -1
- package/dist/git/utils/reference.utils.js.map +1 -1
- package/dist/git/utils/remote.utils.d.ts.map +1 -1
- package/dist/git/utils/remote.utils.js.map +1 -1
- package/dist/git/utils/repository.utils.d.ts.map +1 -1
- package/dist/git/utils/repository.utils.js.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.d.ts.map +1 -1
- package/dist/git/utils/resourceDescriptor.utils.js.map +1 -1
- package/dist/git/utils/revision.utils.d.ts.map +1 -1
- package/dist/git/utils/revision.utils.js.map +1 -1
- package/dist/git/utils/search.utils.d.ts.map +1 -1
- package/dist/git/utils/search.utils.js.map +1 -1
- package/dist/git/utils/sorting.d.ts.map +1 -1
- package/dist/git/utils/sorting.js.map +1 -1
- package/dist/git/utils/sshKey.utils.d.ts +7 -0
- package/dist/git/utils/sshKey.utils.d.ts.map +1 -0
- package/dist/git/utils/sshKey.utils.js +25 -0
- package/dist/git/utils/sshKey.utils.js.map +1 -0
- package/dist/git/utils/status.utils.d.ts.map +1 -1
- package/dist/git/utils/status.utils.js.map +1 -1
- package/dist/git/utils/statusFile.utils.d.ts.map +1 -1
- package/dist/git/utils/statusFile.utils.js.map +1 -1
- package/dist/git/utils/tag.utils.d.ts.map +1 -1
- package/dist/git/utils/tag.utils.js.map +1 -1
- package/dist/git/utils/tooltip.utils.d.ts.map +1 -1
- package/dist/git/utils/tooltip.utils.js.map +1 -1
- package/dist/git/utils/uriAuthority.d.ts.map +1 -1
- package/dist/git/utils/uriAuthority.js.map +1 -1
- package/dist/git/utils/user.utils.d.ts.map +1 -1
- package/dist/git/utils/user.utils.js.map +1 -1
- package/dist/git/utils/worktree.utils.d.ts.map +1 -1
- package/dist/git/utils/worktree.utils.js.map +1 -1
- package/dist/git/watching/changeEvent.d.ts.map +1 -1
- package/dist/git/watching/changeEvent.js.map +1 -1
- package/dist/git/watching/classifyChange.d.ts.map +1 -1
- package/dist/git/watching/classifyChange.js.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.d.ts.map +1 -1
- package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
- package/dist/git/watching/initWatcher.d.ts.map +1 -1
- package/dist/git/watching/initWatcher.js.map +1 -1
- package/dist/git/watching/provider.d.ts.map +1 -1
- package/dist/git/watching/provider.js.map +1 -1
- package/dist/git/watching/watchGroup.d.ts.map +1 -1
- package/dist/git/watching/watchGroup.js.map +1 -1
- package/dist/git/watching/watchService.d.ts +4 -0
- package/dist/git/watching/watchService.d.ts.map +1 -1
- package/dist/git/watching/watchService.js +15 -1
- package/dist/git/watching/watchService.js.map +1 -1
- package/dist/git/watching/watchSession.d.ts +7 -0
- package/dist/git/watching/watchSession.d.ts.map +1 -1
- package/dist/git/watching/watchSession.js +14 -2
- package/dist/git/watching/watchSession.js.map +1 -1
- package/dist/git/watching/watcherPatterns.d.ts.map +1 -1
- package/dist/git/watching/watcherPatterns.js.map +1 -1
- package/dist/git-cli/cliGitProvider.d.ts.map +1 -1
- package/dist/git-cli/exec/exec.d.ts.map +1 -1
- package/dist/git-cli/exec/exec.errors.d.ts.map +1 -1
- package/dist/git-cli/exec/exec.errors.js.map +1 -1
- package/dist/git-cli/exec/exec.js.map +1 -1
- package/dist/git-cli/exec/exec.types.d.ts.map +1 -1
- package/dist/git-cli/exec/exec.types.js.map +1 -1
- package/dist/git-cli/exec/features.d.ts.map +1 -1
- package/dist/git-cli/exec/features.js.map +1 -1
- package/dist/git-cli/exec/git.d.ts +19 -27
- package/dist/git-cli/exec/git.d.ts.map +1 -1
- package/dist/git-cli/exec/git.js +126 -34
- package/dist/git-cli/exec/git.js.map +1 -1
- package/dist/git-cli/exec/gitQueue.d.ts.map +1 -1
- package/dist/git-cli/exec/gitQueue.js.map +1 -1
- package/dist/git-cli/exec/locator.d.ts.map +1 -1
- package/dist/git-cli/exec/locator.js.map +1 -1
- package/dist/git-cli/parsers/blameParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/blameParser.js.map +1 -1
- package/dist/git-cli/parsers/indexParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/indexParser.js.map +1 -1
- package/dist/git-cli/parsers/logParser.d.ts +9 -1
- package/dist/git-cli/parsers/logParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/logParser.js +141 -60
- package/dist/git-cli/parsers/logParser.js.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/mergeTreeParser.js.map +1 -1
- package/dist/git-cli/parsers/refParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/refParser.js.map +1 -1
- package/dist/git-cli/parsers/reflogParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/reflogParser.js.map +1 -1
- package/dist/git-cli/parsers/remoteParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/remoteParser.js.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/shortlogParser.js.map +1 -1
- package/dist/git-cli/parsers/signatureParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/signatureParser.js.map +1 -1
- package/dist/git-cli/parsers/sshSignatureParser.d.ts +21 -0
- package/dist/git-cli/parsers/sshSignatureParser.d.ts.map +1 -0
- package/dist/git-cli/parsers/sshSignatureParser.js +78 -0
- package/dist/git-cli/parsers/sshSignatureParser.js.map +1 -0
- package/dist/git-cli/parsers/statusParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/statusParser.js.map +1 -1
- package/dist/git-cli/parsers/treeParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/treeParser.js.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.d.ts.map +1 -1
- package/dist/git-cli/parsers/worktreeParser.js +5 -7
- package/dist/git-cli/parsers/worktreeParser.js.map +1 -1
- package/dist/git-cli/providers/blame.d.ts.map +1 -1
- package/dist/git-cli/providers/blame.js.map +1 -1
- package/dist/git-cli/providers/branches.d.ts +1 -0
- package/dist/git-cli/providers/branches.d.ts.map +1 -1
- package/dist/git-cli/providers/branches.js +51 -32
- package/dist/git-cli/providers/branches.js.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.d.ts.map +1 -1
- package/dist/git-cli/providers/commitFilesetUtils.js.map +1 -1
- package/dist/git-cli/providers/commits.d.ts +12 -1
- package/dist/git-cli/providers/commits.d.ts.map +1 -1
- package/dist/git-cli/providers/commits.js +89 -8
- package/dist/git-cli/providers/commits.js.map +1 -1
- package/dist/git-cli/providers/config.d.ts.map +1 -1
- package/dist/git-cli/providers/config.js.map +1 -1
- package/dist/git-cli/providers/contributors.d.ts.map +1 -1
- package/dist/git-cli/providers/contributors.js.map +1 -1
- package/dist/git-cli/providers/diff.d.ts.map +1 -1
- package/dist/git-cli/providers/diff.js.map +1 -1
- package/dist/git-cli/providers/graph.d.ts +35 -1
- package/dist/git-cli/providers/graph.d.ts.map +1 -1
- package/dist/git-cli/providers/graph.js +1434 -330
- package/dist/git-cli/providers/graph.js.map +1 -1
- package/dist/git-cli/providers/operations.d.ts.map +1 -1
- package/dist/git-cli/providers/operations.js.map +1 -1
- package/dist/git-cli/providers/patch.d.ts.map +1 -1
- package/dist/git-cli/providers/patch.js.map +1 -1
- package/dist/git-cli/providers/pausedOperations.d.ts.map +1 -1
- package/dist/git-cli/providers/pausedOperations.js +3 -3
- package/dist/git-cli/providers/pausedOperations.js.map +1 -1
- package/dist/git-cli/providers/refs.d.ts.map +1 -1
- package/dist/git-cli/providers/refs.js.map +1 -1
- package/dist/git-cli/providers/remotes.d.ts.map +1 -1
- package/dist/git-cli/providers/remotes.js.map +1 -1
- package/dist/git-cli/providers/revision.d.ts +1 -0
- package/dist/git-cli/providers/revision.d.ts.map +1 -1
- package/dist/git-cli/providers/revision.js +33 -0
- package/dist/git-cli/providers/revision.js.map +1 -1
- package/dist/git-cli/providers/staging.d.ts.map +1 -1
- package/dist/git-cli/providers/staging.js.map +1 -1
- package/dist/git-cli/providers/stash.d.ts.map +1 -1
- package/dist/git-cli/providers/stash.js.map +1 -1
- package/dist/git-cli/providers/status.d.ts +28 -0
- package/dist/git-cli/providers/status.d.ts.map +1 -1
- package/dist/git-cli/providers/status.js +240 -154
- package/dist/git-cli/providers/status.js.map +1 -1
- package/dist/git-cli/providers/tags.d.ts.map +1 -1
- package/dist/git-cli/providers/tags.js +2 -1
- package/dist/git-cli/providers/tags.js.map +1 -1
- package/dist/git-cli/providers/worktrees.d.ts +2 -1
- package/dist/git-cli/providers/worktrees.d.ts.map +1 -1
- package/dist/git-cli/providers/worktrees.js +28 -3
- package/dist/git-cli/providers/worktrees.js.map +1 -1
- package/dist/git-cli/service.d.ts.map +1 -1
- package/dist/git-cli/service.js +8 -0
- package/dist/git-cli/service.js.map +1 -1
- package/dist/ipc/ipcServer.d.ts.map +1 -1
- package/dist/ipc/ipcServer.js +1 -1
- package/dist/ipc/ipcServer.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeProvider.d.ts +6 -1
- package/dist/plus/agents/providers/claudeCodeProvider.d.ts.map +1 -1
- package/dist/plus/agents/providers/claudeCodeProvider.js +19 -0
- package/dist/plus/agents/providers/claudeCodeProvider.js.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts +68 -0
- package/dist/plus/agents/providers/claudeCodeTranscript.d.ts.map +1 -1
- package/dist/plus/agents/providers/claudeCodeTranscript.js +262 -8
- package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
- package/dist/plus/agents/types.d.ts +36 -2
- package/dist/plus/agents/types.d.ts.map +1 -1
- package/dist/plus/ai/constants.d.ts +1 -2
- package/dist/plus/ai/constants.d.ts.map +1 -1
- package/dist/plus/ai/constants.js +1 -8
- package/dist/plus/ai/constants.js.map +1 -1
- package/dist/plus/ai/errors.d.ts.map +1 -1
- package/dist/plus/ai/errors.js.map +1 -1
- package/dist/plus/ai/models/conversation.d.ts.map +1 -1
- package/dist/plus/ai/models/conversation.js.map +1 -1
- package/dist/plus/ai/models/model.d.ts +2 -1
- package/dist/plus/ai/models/model.d.ts.map +1 -1
- package/dist/plus/ai/models/model.js +50 -1
- package/dist/plus/ai/models/model.js.map +1 -1
- package/dist/plus/ai/models/promptTemplates.d.ts +5 -2
- package/dist/plus/ai/models/promptTemplates.d.ts.map +1 -1
- package/dist/plus/ai/models/promptTemplates.js.map +1 -1
- package/dist/plus/ai/models/provider.d.ts.map +1 -1
- package/dist/plus/ai/models/provider.js.map +1 -1
- package/dist/plus/ai/models/results.d.ts.map +1 -1
- package/dist/plus/ai/models/results.js.map +1 -1
- package/dist/plus/ai/prompts.d.ts +1 -1
- package/dist/plus/ai/prompts.d.ts.map +1 -1
- package/dist/plus/ai/prompts.js +15 -47
- package/dist/plus/ai/prompts.js.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.d.ts +5 -0
- package/dist/plus/ai/providers/anthropicProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/anthropicProvider.js +40 -3
- package/dist/plus/ai/providers/anthropicProvider.js.map +1 -1
- package/dist/plus/ai/providers/azureProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/azureProvider.js.map +1 -1
- package/dist/plus/ai/providers/context.d.ts.map +1 -1
- package/dist/plus/ai/providers/context.js.map +1 -1
- package/dist/plus/ai/providers/deepSeekProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/deepSeekProvider.js +17 -1
- package/dist/plus/ai/providers/deepSeekProvider.js.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/geminiProvider.js +25 -6
- package/dist/plus/ai/providers/geminiProvider.js.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/gitkrakenProvider.js +1 -0
- package/dist/plus/ai/providers/gitkrakenProvider.js.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/huggingFaceProvider.js +21 -18
- package/dist/plus/ai/providers/huggingFaceProvider.js.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/mistralProvider.js.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/ollamaProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProvider.js.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts +10 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.d.ts.map +1 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js +9 -1
- package/dist/plus/ai/providers/openAICompatibleProviderBase.js.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/openRouterProvider.js.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/openaiProvider.js.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.d.ts.map +1 -1
- package/dist/plus/ai/providers/xaiProvider.js +14 -1
- package/dist/plus/ai/providers/xaiProvider.js.map +1 -1
- package/dist/plus/ai/utils/ai.utils.d.ts.map +1 -1
- package/dist/plus/ai/utils/ai.utils.js +0 -2
- package/dist/plus/ai/utils/ai.utils.js.map +1 -1
- package/dist/plus/ai/utils/results.utils.d.ts +3 -0
- package/dist/plus/ai/utils/results.utils.d.ts.map +1 -1
- package/dist/plus/ai/utils/results.utils.js +26 -0
- package/dist/plus/ai/utils/results.utils.js.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts +1 -1
- package/dist/plus/ai/utils/truncation.utils.d.ts.map +1 -1
- package/dist/plus/ai/utils/truncation.utils.js.map +1 -1
- package/dist/plus/git-github/api/config.d.ts.map +1 -1
- package/dist/plus/git-github/api/config.js.map +1 -1
- package/dist/plus/git-github/api/github.d.ts +66 -3
- package/dist/plus/git-github/api/github.d.ts.map +1 -1
- package/dist/plus/git-github/api/github.js +345 -74
- package/dist/plus/git-github/api/github.js.map +1 -1
- package/dist/plus/git-github/api/github.utils.d.ts.map +1 -1
- package/dist/plus/git-github/api/github.utils.js.map +1 -1
- package/dist/plus/git-github/api/token.d.ts.map +1 -1
- package/dist/plus/git-github/api/token.js.map +1 -1
- package/dist/plus/git-github/api/tokenUtils.d.ts.map +1 -1
- package/dist/plus/git-github/api/tokenUtils.js.map +1 -1
- package/dist/plus/git-github/api/types.d.ts.map +1 -1
- package/dist/plus/git-github/api/types.js.map +1 -1
- package/dist/plus/git-github/context.d.ts.map +1 -1
- package/dist/plus/git-github/models.d.ts +5 -0
- package/dist/plus/git-github/models.d.ts.map +1 -1
- package/dist/plus/git-github/models.js +27 -2
- package/dist/plus/git-github/models.js.map +1 -1
- package/dist/plus/git-github/providers/github/blame.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/blame.js.map +1 -1
- package/dist/plus/git-github/providers/github/branches.d.ts +2 -1
- package/dist/plus/git-github/providers/github/branches.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/branches.js +7 -3
- package/dist/plus/git-github/providers/github/branches.js.map +1 -1
- package/dist/plus/git-github/providers/github/commits.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/commits.js.map +1 -1
- package/dist/plus/git-github/providers/github/config.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/config.js.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/contributors.js.map +1 -1
- package/dist/plus/git-github/providers/github/diff.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/diff.js +2 -2
- package/dist/plus/git-github/providers/github/diff.js.map +1 -1
- package/dist/plus/git-github/providers/github/graph.d.ts +12 -1
- package/dist/plus/git-github/providers/github/graph.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/graph.js +85 -0
- package/dist/plus/git-github/providers/github/graph.js.map +1 -1
- package/dist/plus/git-github/providers/github/refs.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/refs.js.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/remotes.js.map +1 -1
- package/dist/plus/git-github/providers/github/revision.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/revision.js.map +1 -1
- package/dist/plus/git-github/providers/github/status.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/status.js.map +1 -1
- package/dist/plus/git-github/providers/github/tags.d.ts.map +1 -1
- package/dist/plus/git-github/providers/github/tags.js +3 -1
- package/dist/plus/git-github/providers/github/tags.js.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.d.ts.map +1 -1
- package/dist/plus/git-github/providers/githubGitProvider.js.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.d.ts.map +1 -1
- package/dist/plus/git-github/providers/githubProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts +20 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/cloudIntegrationService.js +134 -10
- package/dist/plus/integrations/authentication/cloudIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts +52 -5
- package/dist/plus/integrations/authentication/configuredIntegrationService.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/configuredIntegrationService.js +248 -46
- package/dist/plus/integrations/authentication/configuredIntegrationService.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts +24 -4
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js +58 -26
- package/dist/plus/integrations/authentication/integrationAuthenticationProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js +7 -3
- package/dist/plus/integrations/authentication/integrationAuthenticationService.js.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts +1 -0
- package/dist/plus/integrations/authentication/manualTokenProvider.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/manualTokenProvider.js +9 -5
- package/dist/plus/integrations/authentication/manualTokenProvider.js.map +1 -1
- package/dist/plus/integrations/authentication/models.d.ts +33 -0
- package/dist/plus/integrations/authentication/models.d.ts.map +1 -1
- package/dist/plus/integrations/authentication/models.js.map +1 -1
- package/dist/plus/integrations/collectionMetadata.d.ts +21 -0
- package/dist/plus/integrations/collectionMetadata.d.ts.map +1 -0
- package/dist/plus/integrations/collectionMetadata.js +121 -0
- package/dist/plus/integrations/collectionMetadata.js.map +1 -0
- package/dist/plus/integrations/constants.d.ts +12 -2
- package/dist/plus/integrations/constants.d.ts.map +1 -1
- package/dist/plus/integrations/constants.js +10 -0
- package/dist/plus/integrations/constants.js.map +1 -1
- package/dist/plus/integrations/context.d.ts +10 -6
- package/dist/plus/integrations/context.d.ts.map +1 -1
- package/dist/plus/integrations/errors.d.ts +65 -0
- package/dist/plus/integrations/errors.d.ts.map +1 -1
- package/dist/plus/integrations/errors.js +131 -0
- package/dist/plus/integrations/errors.js.map +1 -1
- package/dist/plus/integrations/index.d.ts +57 -12
- package/dist/plus/integrations/index.d.ts.map +1 -1
- package/dist/plus/integrations/index.js +39 -37
- package/dist/plus/integrations/index.js.map +1 -1
- package/dist/plus/integrations/integrationService.d.ts +293 -12
- package/dist/plus/integrations/integrationService.d.ts.map +1 -1
- package/dist/plus/integrations/integrationService.js +1305 -37
- package/dist/plus/integrations/integrationService.js.map +1 -1
- package/dist/plus/integrations/lite.d.ts +47 -0
- package/dist/plus/integrations/lite.d.ts.map +1 -0
- package/dist/plus/integrations/lite.js +141 -0
- package/dist/plus/integrations/lite.js.map +1 -0
- package/dist/plus/integrations/manager.d.ts +332 -0
- package/dist/plus/integrations/manager.d.ts.map +1 -0
- package/dist/plus/integrations/manager.js +2 -0
- package/dist/plus/integrations/manager.js.map +1 -0
- package/dist/plus/integrations/models/gitHostIntegration.d.ts +269 -10
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +1 -1
- package/dist/plus/integrations/models/gitHostIntegration.js +712 -88
- package/dist/plus/integrations/models/gitHostIntegration.js.map +1 -1
- package/dist/plus/integrations/models/integration.d.ts +88 -3
- package/dist/plus/integrations/models/integration.d.ts.map +1 -1
- package/dist/plus/integrations/models/integration.js +192 -21
- package/dist/plus/integrations/models/integration.js.map +1 -1
- package/dist/plus/integrations/models/issuesIntegration.d.ts +87 -7
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +1 -1
- package/dist/plus/integrations/models/issuesIntegration.js +148 -33
- package/dist/plus/integrations/models/issuesIntegration.js.map +1 -1
- package/dist/plus/integrations/providerFilters.d.ts +12 -0
- package/dist/plus/integrations/providerFilters.d.ts.map +1 -0
- package/dist/plus/integrations/providerFilters.js +14 -0
- package/dist/plus/integrations/providerFilters.js.map +1 -0
- package/dist/plus/integrations/providers/apiClients.d.ts.map +1 -1
- package/dist/plus/integrations/providers/apiClients.js +3 -3
- package/dist/plus/integrations/providers/apiClients.js.map +1 -1
- package/dist/plus/integrations/providers/apiConfig.d.ts +52 -0
- package/dist/plus/integrations/providers/apiConfig.d.ts.map +1 -0
- package/dist/plus/integrations/providers/apiConfig.js +19 -0
- package/dist/plus/integrations/providers/apiConfig.js.map +1 -0
- package/dist/plus/integrations/providers/azure/azure.d.ts +14 -2
- package/dist/plus/integrations/providers/azure/azure.d.ts.map +1 -1
- package/dist/plus/integrations/providers/azure/azure.js +107 -32
- package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
- package/dist/plus/integrations/providers/azure/models.d.ts +16 -0
- package/dist/plus/integrations/providers/azure/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/azure/models.js +6 -6
- package/dist/plus/integrations/providers/azure/models.js.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.d.ts +55 -9
- package/dist/plus/integrations/providers/azureDevOps.d.ts.map +1 -1
- package/dist/plus/integrations/providers/azureDevOps.js +572 -79
- package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts +13 -2
- package/dist/plus/integrations/providers/bitbucket/bitbucket.d.ts.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js +108 -32
- package/dist/plus/integrations/providers/bitbucket/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/bitbucket/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts +19 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.js +20 -1
- package/dist/plus/integrations/providers/bitbucket-server/models.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.d.ts +28 -4
- package/dist/plus/integrations/providers/bitbucket-server.d.ts.map +1 -1
- package/dist/plus/integrations/providers/bitbucket-server.js +110 -6
- package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.d.ts +38 -4
- package/dist/plus/integrations/providers/bitbucket.d.ts.map +1 -1
- package/dist/plus/integrations/providers/bitbucket.js +330 -34
- package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.d.ts.map +1 -1
- package/dist/plus/integrations/providers/github/github.js +1 -1
- package/dist/plus/integrations/providers/github/github.js.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.d.ts.map +1 -1
- package/dist/plus/integrations/providers/github/github.utils.js.map +1 -1
- package/dist/plus/integrations/providers/github/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/github/models.js.map +1 -1
- package/dist/plus/integrations/providers/github.d.ts +49 -6
- package/dist/plus/integrations/providers/github.d.ts.map +1 -1
- package/dist/plus/integrations/providers/github.js +289 -4
- package/dist/plus/integrations/providers/github.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +11 -3
- package/dist/plus/integrations/providers/gitlab/gitlab.d.ts.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.js +121 -47
- package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts +6 -0
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.d.ts.map +1 -1
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js +8 -0
- package/dist/plus/integrations/providers/gitlab/gitlab.utils.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.d.ts +10 -0
- package/dist/plus/integrations/providers/gitlab/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/gitlab/models.js +8 -5
- package/dist/plus/integrations/providers/gitlab/models.js.map +1 -1
- package/dist/plus/integrations/providers/gitlab.d.ts +50 -5
- package/dist/plus/integrations/providers/gitlab.d.ts.map +1 -1
- package/dist/plus/integrations/providers/gitlab.js +274 -8
- package/dist/plus/integrations/providers/gitlab.js.map +1 -1
- package/dist/plus/integrations/providers/jira.d.ts +13 -2
- package/dist/plus/integrations/providers/jira.d.ts.map +1 -1
- package/dist/plus/integrations/providers/jira.js +200 -30
- package/dist/plus/integrations/providers/jira.js.map +1 -1
- package/dist/plus/integrations/providers/linear.d.ts +16 -5
- package/dist/plus/integrations/providers/linear.d.ts.map +1 -1
- package/dist/plus/integrations/providers/linear.js +127 -21
- package/dist/plus/integrations/providers/linear.js.map +1 -1
- package/dist/plus/integrations/providers/models.d.ts +339 -60
- package/dist/plus/integrations/providers/models.d.ts.map +1 -1
- package/dist/plus/integrations/providers/models.js +307 -59
- package/dist/plus/integrations/providers/models.js.map +1 -1
- package/dist/plus/integrations/providers/providersApi.d.ts +144 -11
- package/dist/plus/integrations/providers/providersApi.d.ts.map +1 -1
- package/dist/plus/integrations/providers/providersApi.js +486 -55
- package/dist/plus/integrations/providers/providersApi.js.map +1 -1
- package/dist/plus/integrations/providers/trello.d.ts +47 -0
- package/dist/plus/integrations/providers/trello.d.ts.map +1 -0
- package/dist/plus/integrations/providers/trello.js +141 -0
- package/dist/plus/integrations/providers/trello.js.map +1 -0
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts +29 -0
- package/dist/plus/integrations/providers/utils/providerPaging.d.ts.map +1 -0
- package/dist/plus/integrations/providers/utils/providerPaging.js +154 -0
- package/dist/plus/integrations/providers/utils/providerPaging.js.map +1 -0
- package/dist/plus/integrations/providers/utils.d.ts +21 -0
- package/dist/plus/integrations/providers/utils.d.ts.map +1 -1
- package/dist/plus/integrations/providers/utils.js +57 -6
- package/dist/plus/integrations/providers/utils.js.map +1 -1
- package/dist/plus/integrations/reads/context.d.ts +52 -0
- package/dist/plus/integrations/reads/context.d.ts.map +1 -0
- package/dist/plus/integrations/reads/context.js +2 -0
- package/dist/plus/integrations/reads/context.js.map +1 -0
- package/dist/plus/integrations/reads/cursors.d.ts +66 -0
- package/dist/plus/integrations/reads/cursors.d.ts.map +1 -0
- package/dist/plus/integrations/reads/cursors.js +133 -0
- package/dist/plus/integrations/reads/cursors.js.map +1 -0
- package/dist/plus/integrations/reads/drains.d.ts +60 -0
- package/dist/plus/integrations/reads/drains.d.ts.map +1 -0
- package/dist/plus/integrations/reads/drains.js +255 -0
- package/dist/plus/integrations/reads/drains.js.map +1 -0
- package/dist/plus/integrations/reads/filters.d.ts +81 -0
- package/dist/plus/integrations/reads/filters.d.ts.map +1 -0
- package/dist/plus/integrations/reads/filters.js +87 -0
- package/dist/plus/integrations/reads/filters.js.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.d.ts +17 -0
- package/dist/plus/integrations/reads/hierarchy.d.ts.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.js +348 -0
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +53 -0
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.utils.js +85 -0
- package/dist/plus/integrations/reads/hierarchy.utils.js.map +1 -0
- package/dist/plus/integrations/reads/issueTracker.d.ts +19 -0
- package/dist/plus/integrations/reads/issueTracker.d.ts.map +1 -0
- package/dist/plus/integrations/reads/issueTracker.js +346 -0
- package/dist/plus/integrations/reads/issueTracker.js.map +1 -0
- package/dist/plus/integrations/reads/issues.d.ts +34 -0
- package/dist/plus/integrations/reads/issues.d.ts.map +1 -0
- package/dist/plus/integrations/reads/issues.js +244 -0
- package/dist/plus/integrations/reads/issues.js.map +1 -0
- package/dist/plus/integrations/reads/paging.d.ts +136 -0
- package/dist/plus/integrations/reads/paging.d.ts.map +1 -0
- package/dist/plus/integrations/reads/paging.js +221 -0
- package/dist/plus/integrations/reads/paging.js.map +1 -0
- package/dist/plus/integrations/reads/pullRequests.d.ts +32 -0
- package/dist/plus/integrations/reads/pullRequests.d.ts.map +1 -0
- package/dist/plus/integrations/reads/pullRequests.js +151 -0
- package/dist/plus/integrations/reads/pullRequests.js.map +1 -0
- package/dist/plus/integrations/reads/warnings.d.ts +47 -0
- package/dist/plus/integrations/reads/warnings.d.ts.map +1 -0
- package/dist/plus/integrations/reads/warnings.js +81 -0
- package/dist/plus/integrations/reads/warnings.js.map +1 -0
- package/dist/plus/integrations/results.d.ts +189 -0
- package/dist/plus/integrations/results.d.ts.map +1 -0
- package/dist/plus/integrations/results.js +62 -0
- package/dist/plus/integrations/results.js.map +1 -0
- package/dist/plus/integrations/utils/domain.utils.d.ts +5 -0
- package/dist/plus/integrations/utils/domain.utils.d.ts.map +1 -0
- package/dist/plus/integrations/utils/domain.utils.js +27 -0
- package/dist/plus/integrations/utils/domain.utils.js.map +1 -0
- package/dist/plus/integrations/utils/integration.utils.d.ts +27 -1
- package/dist/plus/integrations/utils/integration.utils.d.ts.map +1 -1
- package/dist/plus/integrations/utils/integration.utils.js +86 -15
- package/dist/plus/integrations/utils/integration.utils.js.map +1 -1
- package/dist/utils/array.d.ts.map +1 -1
- package/dist/utils/array.js.map +1 -1
- package/dist/utils/brand.d.ts.map +1 -1
- package/dist/utils/cancellation.d.ts +13 -0
- package/dist/utils/cancellation.d.ts.map +1 -1
- package/dist/utils/cancellation.js +52 -7
- package/dist/utils/cancellation.js.map +1 -1
- package/dist/utils/charCode.d.ts.map +1 -1
- package/dist/utils/coalescedRun.d.ts +16 -0
- package/dist/utils/coalescedRun.d.ts.map +1 -0
- package/dist/utils/coalescedRun.js +43 -0
- package/dist/utils/coalescedRun.js.map +1 -0
- package/dist/utils/color.d.ts.map +1 -1
- package/dist/utils/color.js +3 -3
- package/dist/utils/color.js.map +1 -1
- package/dist/utils/date.d.ts +24 -0
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/date.js +62 -0
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/debounce.js.map +1 -1
- package/dist/utils/decorators/debounce.d.ts.map +1 -1
- package/dist/utils/decorators/debounce.js.map +1 -1
- package/dist/utils/decorators/gate.d.ts.map +1 -1
- package/dist/utils/decorators/gate.js +2 -2
- package/dist/utils/decorators/gate.js.map +1 -1
- package/dist/utils/decorators/log.d.ts.map +1 -1
- package/dist/utils/decorators/log.js +5 -5
- package/dist/utils/decorators/log.js.map +1 -1
- package/dist/utils/decorators/memoize.d.ts.map +1 -1
- package/dist/utils/decorators/memoize.js +2 -2
- package/dist/utils/decorators/memoize.js.map +1 -1
- package/dist/utils/decorators/resolver.d.ts.map +1 -1
- package/dist/utils/decorators/resolver.js.map +1 -1
- package/dist/utils/decorators/sequentialize.d.ts.map +1 -1
- package/dist/utils/decorators/sequentialize.js +2 -2
- package/dist/utils/decorators/sequentialize.js.map +1 -1
- package/dist/utils/decorators/serializable.d.ts.map +1 -1
- package/dist/utils/decorators/serializable.js +1 -1
- package/dist/utils/decorators/serializable.js.map +1 -1
- package/dist/utils/dedupedAsyncCache.d.ts.map +1 -1
- package/dist/utils/env/browser/base64.d.ts.map +1 -1
- package/dist/utils/env/browser/base64.js.map +1 -1
- package/dist/utils/env/browser/crypto.d.ts.map +1 -1
- package/dist/utils/env/browser/crypto.js.map +1 -1
- package/dist/utils/env/browser/fs.d.ts.map +1 -1
- package/dist/utils/env/browser/fs.js.map +1 -1
- package/dist/utils/env/browser/hex.d.ts.map +1 -1
- package/dist/utils/env/browser/hex.js.map +1 -1
- package/dist/utils/env/browser/hrtime.d.ts.map +1 -1
- package/dist/utils/env/browser/hrtime.js.map +1 -1
- package/dist/utils/env/browser/logScope.d.ts.map +1 -1
- package/dist/utils/env/browser/logScope.js.map +1 -1
- package/dist/utils/env/browser/md5.d.ts.map +1 -1
- package/dist/utils/env/browser/md5.js.map +1 -1
- package/dist/utils/env/browser/platform.d.ts.map +1 -1
- package/dist/utils/env/browser/platform.js.map +1 -1
- package/dist/utils/env/node/base64.d.ts.map +1 -1
- package/dist/utils/env/node/base64.js.map +1 -1
- package/dist/utils/env/node/crypto.d.ts.map +1 -1
- package/dist/utils/env/node/crypto.js.map +1 -1
- package/dist/utils/env/node/exec.d.ts +9 -1
- package/dist/utils/env/node/exec.d.ts.map +1 -1
- package/dist/utils/env/node/exec.js +11 -4
- package/dist/utils/env/node/exec.js.map +1 -1
- package/dist/utils/env/node/fs.d.ts.map +1 -1
- package/dist/utils/env/node/fs.js.map +1 -1
- package/dist/utils/env/node/hex.d.ts.map +1 -1
- package/dist/utils/env/node/hex.js.map +1 -1
- package/dist/utils/env/node/hrtime.d.ts.map +1 -1
- package/dist/utils/env/node/hrtime.js.map +1 -1
- package/dist/utils/env/node/logScope.d.ts.map +1 -1
- package/dist/utils/env/node/logScope.js.map +1 -1
- package/dist/utils/env/node/platform.d.ts.map +1 -1
- package/dist/utils/env/node/platform.js.map +1 -1
- package/dist/utils/event.d.ts.map +1 -1
- package/dist/utils/event.js +18 -22
- package/dist/utils/event.js.map +1 -1
- package/dist/utils/formatter.d.ts.map +1 -1
- package/dist/utils/formatter.js.map +1 -1
- package/dist/utils/function.d.ts.map +1 -1
- package/dist/utils/function.js +3 -3
- package/dist/utils/function.js.map +1 -1
- package/dist/utils/hash.js.map +1 -1
- package/dist/utils/iterable.d.ts.map +1 -1
- package/dist/utils/iterable.js +2 -6
- package/dist/utils/iterable.js.map +1 -1
- package/dist/utils/lazy.d.ts.map +1 -1
- package/dist/utils/lazy.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/logger.scoped.js +1 -1
- package/dist/utils/logger.scoped.js.map +1 -1
- package/dist/utils/lruMap.d.ts.map +1 -1
- package/dist/utils/lruMap.js.map +1 -1
- package/dist/utils/mru.d.ts.map +1 -1
- package/dist/utils/mru.js.map +1 -1
- package/dist/utils/object.js.map +1 -1
- package/dist/utils/paging.d.ts +29 -0
- package/dist/utils/paging.d.ts.map +1 -1
- package/dist/utils/paging.js +18 -0
- package/dist/utils/paging.js.map +1 -1
- package/dist/utils/path.js.map +1 -1
- package/dist/utils/promise.d.ts +10 -0
- package/dist/utils/promise.d.ts.map +1 -1
- package/dist/utils/promise.js +26 -3
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/promiseCache.d.ts +12 -2
- package/dist/utils/promiseCache.d.ts.map +1 -1
- package/dist/utils/promiseCache.js +80 -50
- package/dist/utils/promiseCache.js.map +1 -1
- package/dist/utils/searchTree.d.ts.map +1 -1
- package/dist/utils/searchTree.js +4 -1
- package/dist/utils/searchTree.js.map +1 -1
- package/dist/utils/stopwatch.d.ts.map +1 -1
- package/dist/utils/string.js +1 -1
- package/dist/utils/string.js.map +1 -1
- package/dist/utils/subscriptionManager.d.ts.map +1 -1
- package/dist/utils/subscriptionManager.js.map +1 -1
- package/dist/utils/trie.d.ts.map +1 -1
- package/dist/utils/trie.js +1 -0
- package/dist/utils/trie.js.map +1 -1
- package/docs/integrations.md +372 -0
- package/docs/kepler-read-api-parity.md +112 -0
- package/package.json +238 -213
- package/src/git/cache.ts +75 -8
- package/src/git/errors.ts +36 -1
- package/src/git/models/commit.ts +1 -1
- package/src/git/models/graph.ts +147 -0
- package/src/git/models/graphSession.ts +205 -0
- package/src/git/models/issue.ts +12 -1
- package/src/git/models/pullRequest.ts +27 -1
- package/src/git/models/repository.ts +24 -1
- package/src/git/models/resourceDescriptor.ts +17 -0
- package/src/git/models/signature.ts +16 -0
- package/src/git/models/tag.ts +6 -1
- package/src/git/parsers/diffParser.ts +1 -1
- package/src/git/providers/branches.ts +6 -1
- package/src/git/providers/commits.ts +6 -1
- package/src/git/providers/config.ts +5 -1
- package/src/git/providers/graph.ts +69 -2
- package/src/git/providers/status.ts +1 -1
- package/src/git/providers/worktrees.ts +3 -1
- package/src/git/remotes/azure-devops.ts +29 -33
- package/src/git/remotes/bitbucket-server.ts +23 -25
- package/src/git/remotes/bitbucket.ts +23 -25
- package/src/git/remotes/gerrit.ts +12 -14
- package/src/git/remotes/gitea.ts +13 -15
- package/src/git/remotes/github.ts +56 -58
- package/src/git/remotes/gitlab.ts +102 -104
- package/src/git/run.types.ts +54 -4
- package/src/git/utils/branch.utils.ts +12 -1
- package/src/git/utils/contributor.utils.ts +1 -1
- package/src/git/utils/fileStatus.utils.ts +7 -0
- package/src/git/utils/graph.utils.ts +46 -0
- package/src/git/utils/issue.utils.ts +1 -0
- package/src/git/utils/pullRequest.utils.ts +9 -0
- package/src/git/utils/reachability.utils.ts +79 -8
- package/src/git/utils/sshKey.utils.ts +30 -0
- package/src/git/watching/watchService.ts +16 -1
- package/src/git/watching/watchSession.ts +20 -2
- package/src/git-cli/exec/git.ts +144 -42
- package/src/git-cli/parsers/logParser.ts +83 -1
- package/src/git-cli/parsers/sshSignatureParser.ts +85 -0
- package/src/git-cli/parsers/worktreeParser.ts +5 -7
- package/src/git-cli/providers/branches.ts +60 -38
- package/src/git-cli/providers/commits.ts +102 -9
- package/src/git-cli/providers/graph.ts +1771 -393
- package/src/git-cli/providers/pausedOperations.ts +3 -3
- package/src/git-cli/providers/revision.ts +42 -0
- package/src/git-cli/providers/status.ts +333 -178
- package/src/git-cli/providers/tags.ts +2 -0
- package/src/git-cli/providers/worktrees.ts +40 -4
- package/src/git-cli/service.ts +9 -0
- package/src/ipc/ipcServer.ts +1 -1
- package/src/plus/agents/providers/claudeCodeProvider.ts +25 -0
- package/src/plus/agents/providers/claudeCodeTranscript.ts +320 -8
- package/src/plus/agents/types.ts +34 -0
- package/src/plus/ai/constants.ts +1 -9
- package/src/plus/ai/models/model.ts +53 -2
- package/src/plus/ai/models/promptTemplates.ts +9 -2
- package/src/plus/ai/prompts.ts +16 -48
- package/src/plus/ai/providers/anthropicProvider.ts +45 -3
- package/src/plus/ai/providers/deepSeekProvider.ts +17 -1
- package/src/plus/ai/providers/geminiProvider.ts +25 -6
- package/src/plus/ai/providers/gitkrakenProvider.ts +2 -0
- package/src/plus/ai/providers/huggingFaceProvider.ts +28 -21
- package/src/plus/ai/providers/openAICompatibleProviderBase.ts +16 -1
- package/src/plus/ai/providers/xaiProvider.ts +14 -1
- package/src/plus/ai/utils/ai.utils.ts +0 -2
- package/src/plus/ai/utils/results.utils.ts +32 -0
- package/src/plus/ai/utils/truncation.utils.ts +0 -1
- package/src/plus/git-github/api/github.ts +484 -104
- package/src/plus/git-github/models.ts +33 -0
- package/src/plus/git-github/providers/github/branches.ts +6 -3
- package/src/plus/git-github/providers/github/diff.ts +1 -1
- package/src/plus/git-github/providers/github/graph.ts +131 -0
- package/src/plus/git-github/providers/github/tags.ts +2 -0
- package/src/plus/integrations/authentication/cloudIntegrationService.ts +189 -17
- package/src/plus/integrations/authentication/configuredIntegrationService.ts +287 -50
- package/src/plus/integrations/authentication/integrationAuthenticationProvider.ts +105 -31
- package/src/plus/integrations/authentication/integrationAuthenticationService.ts +7 -3
- package/src/plus/integrations/authentication/manualTokenProvider.ts +12 -5
- package/src/plus/integrations/authentication/models.ts +35 -1
- package/src/plus/integrations/collectionMetadata.ts +143 -0
- package/src/plus/integrations/constants.ts +21 -0
- package/src/plus/integrations/context.ts +8 -9
- package/src/plus/integrations/errors.ts +149 -0
- package/src/plus/integrations/index.ts +148 -51
- package/src/plus/integrations/integrationService.ts +1714 -49
- package/src/plus/integrations/lite.ts +233 -0
- package/src/plus/integrations/manager.ts +359 -0
- package/src/plus/integrations/models/gitHostIntegration.ts +1014 -121
- package/src/plus/integrations/models/integration.ts +293 -24
- package/src/plus/integrations/models/issuesIntegration.ts +178 -38
- package/src/plus/integrations/providerFilters.ts +12 -0
- package/src/plus/integrations/providers/apiClients.ts +8 -11
- package/src/plus/integrations/providers/apiConfig.ts +71 -0
- package/src/plus/integrations/providers/azure/azure.ts +164 -33
- package/src/plus/integrations/providers/azure/models.ts +19 -6
- package/src/plus/integrations/providers/azureDevOps.ts +766 -101
- package/src/plus/integrations/providers/bitbucket/bitbucket.ts +164 -34
- package/src/plus/integrations/providers/bitbucket-server/models.ts +32 -1
- package/src/plus/integrations/providers/bitbucket-server.ts +173 -8
- package/src/plus/integrations/providers/bitbucket.ts +489 -45
- package/src/plus/integrations/providers/github/github.ts +2 -2
- package/src/plus/integrations/providers/github/github.utils.ts +1 -1
- package/src/plus/integrations/providers/github.ts +390 -6
- package/src/plus/integrations/providers/gitlab/gitlab.ts +170 -60
- package/src/plus/integrations/providers/gitlab/gitlab.utils.ts +9 -0
- package/src/plus/integrations/providers/gitlab/models.ts +19 -5
- package/src/plus/integrations/providers/gitlab.ts +369 -10
- package/src/plus/integrations/providers/jira.ts +247 -42
- package/src/plus/integrations/providers/linear.ts +154 -27
- package/src/plus/integrations/providers/models.ts +583 -75
- package/src/plus/integrations/providers/providersApi.ts +849 -86
- package/src/plus/integrations/providers/trello.ts +205 -0
- package/src/plus/integrations/providers/utils/providerPaging.ts +177 -0
- package/src/plus/integrations/providers/utils.ts +68 -8
- package/src/plus/integrations/reads/context.ts +75 -0
- package/src/plus/integrations/reads/cursors.ts +224 -0
- package/src/plus/integrations/reads/drains.ts +343 -0
- package/src/plus/integrations/reads/filters.ts +124 -0
- package/src/plus/integrations/reads/hierarchy.ts +493 -0
- package/src/plus/integrations/reads/hierarchy.utils.ts +106 -0
- package/src/plus/integrations/reads/issueTracker.ts +480 -0
- package/src/plus/integrations/reads/issues.ts +407 -0
- package/src/plus/integrations/reads/paging.ts +277 -0
- package/src/plus/integrations/reads/pullRequests.ts +267 -0
- package/src/plus/integrations/reads/warnings.ts +170 -0
- package/src/plus/integrations/results.ts +275 -0
- package/src/plus/integrations/utils/domain.utils.ts +26 -0
- package/src/plus/integrations/utils/integration.utils.ts +93 -16
- package/src/utils/brand.ts +0 -2
- package/src/utils/cancellation.ts +56 -7
- package/src/utils/coalescedRun.ts +45 -0
- package/src/utils/color.ts +3 -3
- package/src/utils/date.ts +72 -0
- package/src/utils/debounce.ts +1 -1
- package/src/utils/decorators/gate.ts +2 -2
- package/src/utils/decorators/log.ts +5 -5
- package/src/utils/decorators/memoize.ts +2 -2
- package/src/utils/decorators/sequentialize.ts +2 -2
- package/src/utils/decorators/serializable.ts +1 -1
- package/src/utils/env/node/exec.ts +20 -5
- package/src/utils/event.ts +19 -25
- package/src/utils/function.ts +3 -3
- package/src/utils/iterable.ts +2 -6
- package/src/utils/logger.scoped.ts +1 -1
- package/src/utils/logger.ts +1 -1
- package/src/utils/paging.ts +46 -0
- package/src/utils/promise.ts +33 -3
- package/src/utils/promiseCache.ts +81 -51
- package/src/utils/searchTree.ts +4 -2
- package/src/utils/string.ts +1 -1
- package/src/utils/trie.ts +1 -0
- package/dist/plus/ai/providers/githubModelsProvider.d.ts +0 -19
- package/dist/plus/ai/providers/githubModelsProvider.d.ts.map +0 -1
- package/dist/plus/ai/providers/githubModelsProvider.js +0 -51
- package/dist/plus/ai/providers/githubModelsProvider.js.map +0 -1
- package/src/plus/ai/providers/githubModelsProvider.ts +0 -92
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// A lightweight, token-scoped entry point for stateless single-shot provider reads.
|
|
2
|
+
//
|
|
3
|
+
// Unlike `createIntegrationManager`, this does NOT build an `IntegrationServiceContext`
|
|
4
|
+
// (no storage/account/config/cache/repositories/hooks) and runs no session/OAuth lifecycle.
|
|
5
|
+
// A consumer that already holds a provider access token (obtained by its own means, e.g.
|
|
6
|
+
// the GitKraken account backend's `v1/provider-tokens/{provider}` endpoint) can call the
|
|
7
|
+
// per-provider API client directly and get back the same DTOs the session-managed
|
|
8
|
+
// `GitHostIntegration` returns.
|
|
9
|
+
//
|
|
10
|
+
// Provider notes:
|
|
11
|
+
// - Azure DevOps encodes the repository as the composite string `"{project}/_git/{repoName}"`
|
|
12
|
+
// in the `repo` argument (matching the descriptor `GitHostIntegration` uses); `owner` is the
|
|
13
|
+
// organization. Pass `repo` in that shape for Azure.
|
|
14
|
+
// - Bitbucket Cloud `getDefaultBranch`/`getRepositoryMetadata` depend on `mainbranch`/`parent`
|
|
15
|
+
// fields the API may omit for some repos; they resolve to `undefined` when absent.
|
|
16
|
+
// - Bitbucket Server (`bitbucket-server`) is not supported here — its reads use a different
|
|
17
|
+
// REST surface that this token-scoped path doesn't wire up.
|
|
18
|
+
|
|
19
|
+
import type { GitHubApiConfig } from '../git-github/api/config.js';
|
|
20
|
+
import { GitHubApi } from '../git-github/api/github.js';
|
|
21
|
+
import type { DefaultBranch } from '../../git/models/defaultBranch.js';
|
|
22
|
+
import type { Provider } from '../../git/models/remoteProvider.js';
|
|
23
|
+
import type { RepositoryMetadata } from '../../git/models/repositoryMetadata.js';
|
|
24
|
+
import type { TokenWithInfo } from './authentication/models.js';
|
|
25
|
+
import { toTokenInfo } from './authentication/models.js';
|
|
26
|
+
import { GitCloudHostIntegrationId, GitSelfManagedHostIntegrationId } from './constants.js';
|
|
27
|
+
import type { ProviderApiConfig } from './providers/apiConfig.js';
|
|
28
|
+
import { AzureDevOpsApi } from './providers/azure/azure.js';
|
|
29
|
+
import { BitbucketApi } from './providers/bitbucket/bitbucket.js';
|
|
30
|
+
import { GitLabApi } from './providers/gitlab/gitlab.js';
|
|
31
|
+
import { providersMetadata } from './providers/models.js';
|
|
32
|
+
|
|
33
|
+
/** The git-hosting integrations that expose a token-scoped read path here. */
|
|
34
|
+
export type TokenScopedGitHostId =
|
|
35
|
+
| GitCloudHostIntegrationId.GitHub
|
|
36
|
+
| GitCloudHostIntegrationId.GitLab
|
|
37
|
+
| GitCloudHostIntegrationId.Bitbucket
|
|
38
|
+
| GitCloudHostIntegrationId.AzureDevOps
|
|
39
|
+
| GitSelfManagedHostIntegrationId.CloudGitHubEnterprise
|
|
40
|
+
| GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted
|
|
41
|
+
| GitSelfManagedHostIntegrationId.AzureDevOpsServer;
|
|
42
|
+
|
|
43
|
+
export interface TokenScopedGitHostToken {
|
|
44
|
+
/** The provider access token the consumer already holds. */
|
|
45
|
+
readonly accessToken: string;
|
|
46
|
+
/**
|
|
47
|
+
* Host domain for self-managed instances (e.g. `git.example.com`). Ignored for cloud ids. For an Azure
|
|
48
|
+
* DevOps Server reachable over plain HTTP, include the scheme (e.g. `http://tfs.example.com`); otherwise
|
|
49
|
+
* `https` is assumed.
|
|
50
|
+
*/
|
|
51
|
+
readonly domain?: string;
|
|
52
|
+
/** Optional scopes carried by the token, surfaced only in logging metadata. */
|
|
53
|
+
readonly scopes?: readonly string[];
|
|
54
|
+
/** Whether the token came from a GK-cloud connection (vs a raw PAT). Defaults to `true`. */
|
|
55
|
+
readonly cloud?: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface TokenScopedHttpConfig {
|
|
59
|
+
/** The `fetch` implementation to use for HTTP requests. */
|
|
60
|
+
fetch(input: string | URL, init?: RequestInit): Promise<Response>;
|
|
61
|
+
/**
|
|
62
|
+
* Wrap an async op so TLS validation is disabled when `ignoreSSLErrors` is `'force'`. Optional —
|
|
63
|
+
* defaults to a pass-through, which is correct for the browser and for any consumer not toggling SSL.
|
|
64
|
+
*/
|
|
65
|
+
wrapForForcedInsecureSSL?<T>(ignoreSSLErrors: boolean | 'force', fn: () => Promise<T> | PromiseLike<T>): Promise<T>;
|
|
66
|
+
/** Whether to ignore SSL certificate errors on requests. Defaults to `false`. */
|
|
67
|
+
ignoreSSLErrors?: boolean | 'force';
|
|
68
|
+
/**
|
|
69
|
+
* Whether the consumer runs in a web worker / browser (vs Node.js). GitHub uses this to drop the
|
|
70
|
+
* `user-agent` header, which browsers reject and warn about. Defaults to `false`.
|
|
71
|
+
*/
|
|
72
|
+
isWeb?: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** The stateless reads a token-scoped integration exposes. */
|
|
76
|
+
export interface TokenScopedGitHostIntegration {
|
|
77
|
+
getRepositoryMetadata(
|
|
78
|
+
owner: string,
|
|
79
|
+
repo: string,
|
|
80
|
+
cancellation?: AbortSignal,
|
|
81
|
+
): Promise<RepositoryMetadata | undefined>;
|
|
82
|
+
getDefaultBranch(owner: string, repo: string, cancellation?: AbortSignal): Promise<DefaultBranch | undefined>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Build a token-scoped git-host integration for a single provider, backed only by a `fetch` + a token —
|
|
87
|
+
* no `IntegrationServiceContext`, no session/OAuth lifecycle. The returned DTOs match those from the
|
|
88
|
+
* session-managed {@link GitHostIntegration}.
|
|
89
|
+
*/
|
|
90
|
+
export function createTokenScopedGitHostIntegration(
|
|
91
|
+
id: TokenScopedGitHostId,
|
|
92
|
+
token: TokenScopedGitHostToken,
|
|
93
|
+
http: TokenScopedHttpConfig,
|
|
94
|
+
): TokenScopedGitHostIntegration {
|
|
95
|
+
// `token.domain` only applies to self-managed ids; cloud ids always use their canonical domain.
|
|
96
|
+
const selfManaged =
|
|
97
|
+
id === GitSelfManagedHostIntegrationId.CloudGitHubEnterprise ||
|
|
98
|
+
id === GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted ||
|
|
99
|
+
id === GitSelfManagedHostIntegrationId.AzureDevOpsServer;
|
|
100
|
+
// Self-managed ids carry no canonical domain (`providersMetadata[id].domain` is empty), so a missing
|
|
101
|
+
// `token.domain` would silently build a malformed base URL (e.g. `https:///api/v3`). Fail fast instead.
|
|
102
|
+
if (selfManaged && !token.domain) {
|
|
103
|
+
throw new Error(`A token-scoped integration for the self-managed host '${id}' requires 'token.domain'.`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const rawDomain = (selfManaged && token.domain) || providersMetadata[id].domain;
|
|
107
|
+
// The provider/DTO domain drops the scheme (a subpath/collection is preserved for Azure Server and subpath
|
|
108
|
+
// installs); only Azure DevOps Server's base URL honors an explicit scheme (per its doc). Stripping keeps a
|
|
109
|
+
// scheme out of the DTO and prevents a malformed base URL (e.g. `https://http://host/api/v3`) if one is
|
|
110
|
+
// accidentally passed for GHE/GitLab.
|
|
111
|
+
const host = stripScheme(rawDomain);
|
|
112
|
+
const provider = createProviderStub(id, host, http.ignoreSSLErrors ?? false);
|
|
113
|
+
const tokenInfo = buildTokenWithInfo(id, token);
|
|
114
|
+
|
|
115
|
+
const wrapForForcedInsecureSSL: NonNullable<TokenScopedHttpConfig['wrapForForcedInsecureSSL']> =
|
|
116
|
+
// `Promise.resolve().then(fn)` (not `Promise.resolve(fn())`) so a synchronous throw in `fn` surfaces as
|
|
117
|
+
// a rejected promise, honoring the `Promise<T>` contract.
|
|
118
|
+
http.wrapForForcedInsecureSSL ?? ((_ignore, fn) => Promise.resolve().then(fn));
|
|
119
|
+
|
|
120
|
+
// GitHub has its own VS Code-free config type and a `getDefaultBranch` without a cancellation param.
|
|
121
|
+
if (id === GitCloudHostIntegrationId.GitHub || id === GitSelfManagedHostIntegrationId.CloudGitHubEnterprise) {
|
|
122
|
+
const config: GitHubApiConfig = {
|
|
123
|
+
isWeb: http.isWeb ?? false,
|
|
124
|
+
fetch: (url, init) => http.fetch(url, init),
|
|
125
|
+
wrapForForcedInsecureSSL: wrapForForcedInsecureSSL,
|
|
126
|
+
};
|
|
127
|
+
const api = new GitHubApi(config);
|
|
128
|
+
// GitHub is the one family whose base URL can legitimately be absent — see `resolveGitHubApiBaseUrl`.
|
|
129
|
+
const baseUrl = resolveGitHubApiBaseUrl(id, host);
|
|
130
|
+
return {
|
|
131
|
+
getRepositoryMetadata: (owner, repo, cancellation) =>
|
|
132
|
+
api.getRepositoryMetadata(provider, tokenInfo, owner, repo, { baseUrl: baseUrl }, cancellation),
|
|
133
|
+
// `GitHubApi.getDefaultBranch` has no cancellation param; accept and intentionally ignore it here so
|
|
134
|
+
// the signature matches the other providers and the drop is explicit at the call site.
|
|
135
|
+
getDefaultBranch: (owner, repo, _cancellation) =>
|
|
136
|
+
api.getDefaultBranch(provider, tokenInfo, owner, repo, { baseUrl: baseUrl }),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// GitLab, Bitbucket, and Azure DevOps share the `ProviderApiConfig` client shape and identical read signatures.
|
|
141
|
+
const baseUrl = resolveApiBaseUrl(id, rawDomain, host);
|
|
142
|
+
const config = toProviderApiConfig(http, wrapForForcedInsecureSSL);
|
|
143
|
+
const api =
|
|
144
|
+
id === GitCloudHostIntegrationId.GitLab || id === GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted
|
|
145
|
+
? new GitLabApi(config)
|
|
146
|
+
: id === GitCloudHostIntegrationId.Bitbucket
|
|
147
|
+
? new BitbucketApi(config)
|
|
148
|
+
: new AzureDevOpsApi(config);
|
|
149
|
+
return {
|
|
150
|
+
getRepositoryMetadata: (owner, repo, cancellation) =>
|
|
151
|
+
api.getRepositoryMetadata(provider, tokenInfo, owner, repo, { baseUrl: baseUrl }, cancellation),
|
|
152
|
+
getDefaultBranch: (owner, repo, cancellation) =>
|
|
153
|
+
api.getDefaultBranch(provider, tokenInfo, owner, repo, { baseUrl: baseUrl }, cancellation),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function toProviderApiConfig(
|
|
158
|
+
http: TokenScopedHttpConfig,
|
|
159
|
+
wrapForForcedInsecureSSL: NonNullable<TokenScopedHttpConfig['wrapForForcedInsecureSSL']>,
|
|
160
|
+
): ProviderApiConfig {
|
|
161
|
+
return {
|
|
162
|
+
fetch: (input, init) => http.fetch(input, init),
|
|
163
|
+
wrapForForcedInsecureSSL: wrapForForcedInsecureSSL,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function buildTokenWithInfo(id: TokenScopedGitHostId, token: TokenScopedGitHostToken): TokenWithInfo {
|
|
168
|
+
const cloud = token.cloud ?? true;
|
|
169
|
+
return {
|
|
170
|
+
...toTokenInfo(id, token.accessToken, { cloud: cloud, type: undefined, scopes: token.scopes }),
|
|
171
|
+
accessToken: token.accessToken,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** A minimal {@link Provider} for the API clients: identity + no-op reauth/telemetry, SSL from config. */
|
|
176
|
+
function createProviderStub(id: TokenScopedGitHostId, domain: string, ignoreSSLErrors: boolean | 'force'): Provider {
|
|
177
|
+
const metadata = providersMetadata[id];
|
|
178
|
+
return {
|
|
179
|
+
id: id,
|
|
180
|
+
name: metadata.name,
|
|
181
|
+
domain: domain,
|
|
182
|
+
icon: metadata.iconKey,
|
|
183
|
+
getIgnoreSSLErrors: () => ignoreSSLErrors,
|
|
184
|
+
reauthenticate: () => Promise.resolve(),
|
|
185
|
+
trackRequestException: () => {},
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** Strips a leading `scheme://` and any trailing slashes; a subpath/collection (e.g. `host/tfs/Col`) is preserved. */
|
|
190
|
+
function stripScheme(domain: string): string {
|
|
191
|
+
return domain.replace(/^[a-z][\w+.-]*:\/\//i, '').replace(/\/+$/, '');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* GitHub's base URL, which `@gitkraken/provider-apis` derives BOTH the REST and the GraphQL endpoint from by
|
|
196
|
+
* appending GitHub Enterprise's paths (`/api/v3`, `/api/graphql`). Cloud must therefore pass nothing rather than
|
|
197
|
+
* `https://api.github.com`, which would build `https://api.github.com/api/graphql` and get a 404; omitting it is
|
|
198
|
+
* what selects the cloud endpoints. Mirrors the cloud `GitHubIntegration.apiBaseUrl` getter.
|
|
199
|
+
*/
|
|
200
|
+
function resolveGitHubApiBaseUrl(
|
|
201
|
+
id: GitCloudHostIntegrationId.GitHub | GitSelfManagedHostIntegrationId.CloudGitHubEnterprise,
|
|
202
|
+
host: string,
|
|
203
|
+
): string | undefined {
|
|
204
|
+
return id === GitCloudHostIntegrationId.GitHub ? undefined : `https://${host}/api/v3`;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Mirrors the per-provider `apiBaseUrl` getters on the `GitHostIntegration` subclasses, for every family whose
|
|
209
|
+
* base URL is always concrete (GitHub's is not — see {@link resolveGitHubApiBaseUrl}). `rawDomain` may carry a
|
|
210
|
+
* scheme (only Azure DevOps Server honors it); `host` is the bare host used everywhere else.
|
|
211
|
+
*/
|
|
212
|
+
function resolveApiBaseUrl(
|
|
213
|
+
id: Exclude<
|
|
214
|
+
TokenScopedGitHostId,
|
|
215
|
+
GitCloudHostIntegrationId.GitHub | GitSelfManagedHostIntegrationId.CloudGitHubEnterprise
|
|
216
|
+
>,
|
|
217
|
+
rawDomain: string,
|
|
218
|
+
host: string,
|
|
219
|
+
): string {
|
|
220
|
+
switch (id) {
|
|
221
|
+
case GitCloudHostIntegrationId.GitLab:
|
|
222
|
+
return 'https://gitlab.com/api';
|
|
223
|
+
case GitSelfManagedHostIntegrationId.CloudGitLabSelfHosted:
|
|
224
|
+
return `https://${host}/api`;
|
|
225
|
+
case GitCloudHostIntegrationId.Bitbucket:
|
|
226
|
+
return 'https://api.bitbucket.org/2.0';
|
|
227
|
+
case GitCloudHostIntegrationId.AzureDevOps:
|
|
228
|
+
return 'https://dev.azure.com';
|
|
229
|
+
case GitSelfManagedHostIntegrationId.AzureDevOpsServer:
|
|
230
|
+
// Mirror the session-managed getter, which honors the connection protocol; default to https.
|
|
231
|
+
return rawDomain.includes('://') ? rawDomain.replace(/\/+$/, '') : `https://${host}`;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import type { IssueShape } from '../../git/models/issue.js';
|
|
2
|
+
import type { PullRequestShape, PullRequestStateFilter } from '../../git/models/pullRequest.js';
|
|
3
|
+
import type { Event } from '../../utils/event.js';
|
|
4
|
+
import type { ConfiguredIntegrationsChangeEvent } from './authentication/configuredIntegrationService.js';
|
|
5
|
+
import type { ConfiguredIntegrationDescriptor } from './authentication/models.js';
|
|
6
|
+
import type { IntegrationIds } from './constants.js';
|
|
7
|
+
import type { IssueFilter, PullRequestFilter } from './providerFilters.js';
|
|
8
|
+
import type {
|
|
9
|
+
ConnectionStateChangeEvent,
|
|
10
|
+
ProviderBroadenResult,
|
|
11
|
+
ProviderOrganization,
|
|
12
|
+
ProviderPagedResult,
|
|
13
|
+
ProviderRepositoryShape,
|
|
14
|
+
ProviderResult,
|
|
15
|
+
ProviderSweepResult,
|
|
16
|
+
ResolveRepositoryResult,
|
|
17
|
+
} from './results.js';
|
|
18
|
+
|
|
19
|
+
/** Neutral repository input accepted by repo-scoped provider reads. */
|
|
20
|
+
export interface ProviderRepositoryInput {
|
|
21
|
+
namespace: string;
|
|
22
|
+
name: string;
|
|
23
|
+
project?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ProviderRepositoriesInput = (string | number)[] | ProviderRepositoryInput[];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* One provider slice in a pull-request sweep.
|
|
31
|
+
*
|
|
32
|
+
* A sweep accepts at most one target per provider because its failure attribution is provider-scoped.
|
|
33
|
+
* `domain` is a fallback for self-managed hosts whose authentication provider doesn't persist a configured
|
|
34
|
+
* connection; a configured `connectionId` domain takes precedence when both are supplied. It must come from
|
|
35
|
+
* the trusted authentication configuration, not repository or remote data.
|
|
36
|
+
*/
|
|
37
|
+
export interface ProviderSweepTarget {
|
|
38
|
+
providerId: IntegrationIds;
|
|
39
|
+
connectionId?: string;
|
|
40
|
+
domain?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Relationship filters for this provider slice. With sweep-level `repos`, members are provider query
|
|
43
|
+
* constraints; without `repos`, they form an exact OR union. The whole set is validated against the
|
|
44
|
+
* selected path's capabilities.
|
|
45
|
+
*
|
|
46
|
+
* This per-target form lets a cross-provider sweep preserve provider-specific semantics without leaking
|
|
47
|
+
* provider query details into the consumer. It overrides the sweep-level `filters` for this target.
|
|
48
|
+
*/
|
|
49
|
+
filters?: PullRequestFilter[];
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type ProviderSweepSelection =
|
|
53
|
+
| {
|
|
54
|
+
targets: readonly ProviderSweepTarget[];
|
|
55
|
+
providerIds?: never;
|
|
56
|
+
connectionId?: never;
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
targets?: never;
|
|
60
|
+
providerIds?: IntegrationIds[];
|
|
61
|
+
/**
|
|
62
|
+
* Legacy single-provider selector. It is ignored when `providerIds` contains more than one provider;
|
|
63
|
+
* use `targets` to select connections independently in a multi-provider sweep.
|
|
64
|
+
*/
|
|
65
|
+
connectionId?: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* One org slice in an issue-broadening fan-out. `domain` is a fallback for self-managed hosts whose
|
|
70
|
+
* authentication provider doesn't persist a configured connection; a configured `connectionId` domain takes
|
|
71
|
+
* precedence when both are supplied. It must come from the trusted authentication configuration, not
|
|
72
|
+
* repository or remote data.
|
|
73
|
+
*/
|
|
74
|
+
export interface ProviderBroadenOrg {
|
|
75
|
+
providerId: IntegrationIds;
|
|
76
|
+
name: string;
|
|
77
|
+
connectionId?: string;
|
|
78
|
+
domain?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type PullRequestSweepCommonOptions = {
|
|
82
|
+
repos?: ProviderRepositoriesInput;
|
|
83
|
+
/** Named `states` to match {@link IntegrationManager.listPullRequestsPage}; a mismatch here read as silently ignored. */
|
|
84
|
+
states?: PullRequestStateFilter[];
|
|
85
|
+
/**
|
|
86
|
+
* Relationship filters applied to every target. Repo-scoped reads combine them as provider query
|
|
87
|
+
* constraints (normally an intersection); account-wide reads form an exact OR union. The set is validated
|
|
88
|
+
* against `pullRequests` or `pullRequestsAccountWide`, respectively. A target's own `filters` overrides this.
|
|
89
|
+
*/
|
|
90
|
+
filters?: PullRequestFilter[];
|
|
91
|
+
/**
|
|
92
|
+
* Account-wide only: include review-requested PRs when the provider's native "my PRs" query omits them.
|
|
93
|
+
* This extends the provider-native result; it is not a narrowing filter.
|
|
94
|
+
*/
|
|
95
|
+
includeReviewRequested?: boolean;
|
|
96
|
+
forceSync?: boolean;
|
|
97
|
+
maxPages?: number;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type PullRequestSweepOptions = PullRequestSweepCommonOptions & ProviderSweepSelection;
|
|
101
|
+
|
|
102
|
+
export type ClosedPullRequestSweepOptions = Omit<PullRequestSweepCommonOptions, 'states'> & ProviderSweepSelection;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Organization discovery either fans out without a provider-specific target, or pins every scoped selector
|
|
106
|
+
* to one provider. A `connectionId`/`domain` without `providerId` is ambiguous and therefore unrepresentable.
|
|
107
|
+
*/
|
|
108
|
+
export type ListOrgsOptions =
|
|
109
|
+
| {
|
|
110
|
+
providerId: IntegrationIds;
|
|
111
|
+
connectionId?: string;
|
|
112
|
+
domain?: string;
|
|
113
|
+
}
|
|
114
|
+
| {
|
|
115
|
+
providerId?: never;
|
|
116
|
+
connectionId?: never;
|
|
117
|
+
domain?: never;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Project discovery follows the same provider-targeting rule as {@link ListOrgsOptions}; `org` may still
|
|
122
|
+
* narrow either a single-provider read or the unscoped fan-out.
|
|
123
|
+
*/
|
|
124
|
+
export type ListProjectsOptions =
|
|
125
|
+
| {
|
|
126
|
+
providerId: IntegrationIds;
|
|
127
|
+
org?: string;
|
|
128
|
+
connectionId?: string;
|
|
129
|
+
domain?: string;
|
|
130
|
+
}
|
|
131
|
+
| {
|
|
132
|
+
providerId?: never;
|
|
133
|
+
org?: string;
|
|
134
|
+
connectionId?: never;
|
|
135
|
+
domain?: never;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Public, provider-neutral integration facade. Provider clients and integration model instances remain private
|
|
140
|
+
* implementation details so SDK changes don't expand this contract.
|
|
141
|
+
*
|
|
142
|
+
* ## Paging contract
|
|
143
|
+
*
|
|
144
|
+
* Every paged read (`listRepos`, `listPullRequestsPage`, `listIssuesPage`, `listIssueTrackerIssuesPage`,
|
|
145
|
+
* `broadenIssues`) takes both `page` and `cursor`, and the two are NOT interchangeable:
|
|
146
|
+
*
|
|
147
|
+
* - **Supplying `cursor` guarantees a single upstream round trip per provider scope.** A threaded continuation
|
|
148
|
+
* is handed to the provider as-is; the facade never walks the pages before it. This is a guarantee, not an
|
|
149
|
+
* optimization: a consumer that threads `cursor` back pays O(1) requests per page.
|
|
150
|
+
* - **Supplying only `page` (> 1) may cost O(page) upstream requests.** Cursor-backed reads such as GitHub
|
|
151
|
+
* searches and broaden fan-outs can't be addressed by number, so the facade drains the pages before the
|
|
152
|
+
* requested one internally and returns just page N. Providers whose account-wide reads aggregate into one
|
|
153
|
+
* terminal page do not incur that drain. The fallback for cursor-backed reads MUST be kept: it supports the
|
|
154
|
+
* first page-number-only read after a refresh, where no cursor was persisted.
|
|
155
|
+
* - Prefer `cursor` when both are available. Pass `page` alongside it so the result's positional
|
|
156
|
+
* `page.currentPage` reflects where the caller is (the convention is documented on `ProviderPageInfo`); the
|
|
157
|
+
* cursor, not the page number, is what actually advances the read.
|
|
158
|
+
* - `hasMore` is only ever true with a `cursor` the caller can act on. A provider that reports another page
|
|
159
|
+
* but hands back no usable continuation is reported as terminal-but-incomplete (`hasMore: false` +
|
|
160
|
+
* `page.truncated`), never as a page that can't be requested.
|
|
161
|
+
*/
|
|
162
|
+
export interface IntegrationManager {
|
|
163
|
+
readonly onDidChange: Event<ConfiguredIntegrationsChangeEvent>;
|
|
164
|
+
readonly onDidChangeConnectionState: Event<ConnectionStateChangeEvent>;
|
|
165
|
+
|
|
166
|
+
dispose(): void;
|
|
167
|
+
|
|
168
|
+
getConfigured(
|
|
169
|
+
id?: IntegrationIds,
|
|
170
|
+
options?: { cloud?: boolean; domain?: string },
|
|
171
|
+
): ConfiguredIntegrationDescriptor[];
|
|
172
|
+
/**
|
|
173
|
+
* The `filters` a provider accepts on `listPullRequestsPage`/`listIssuesPage` and the sweeps.
|
|
174
|
+
*
|
|
175
|
+
* The filter contract is all-or-nothing: a set containing even one unsupported filter is refused (empty
|
|
176
|
+
* `items` + a warning + `fetchFailed`) rather than narrowed, because falling through to an unfiltered read
|
|
177
|
+
* would return every pull request instead of the user's. Intersect against this before the read so a
|
|
178
|
+
* cross-provider filter set never turns into a failed page. Static per provider — no connection required.
|
|
179
|
+
*
|
|
180
|
+
* Empty means no filter of that kind is expressible (issue trackers have no pull requests; Bitbucket exposes
|
|
181
|
+
* no issues), which means "pass no filters", not "error".
|
|
182
|
+
*
|
|
183
|
+
* `pullRequests` covers repo-scoped PR reads; `pullRequestsAccountWide` covers account-wide PR reads.
|
|
184
|
+
* `issues` covers the repo-scoped issue read; `issuesAccountWide` covers the account-wide one (no `repos`).
|
|
185
|
+
* They differ because they are different provider queries — GitLab can express `Assignee` and `Author`
|
|
186
|
+
* account-wide, but not `Mention` — and `listIssuesPage` validates against whichever the read uses.
|
|
187
|
+
*
|
|
188
|
+
* An ISSUE TRACKER (Jira/Linear/Trello) reports its filters under `issues`, and
|
|
189
|
+
* {@link IntegrationManager.listIssueTrackerIssuesPage} validates against that field. Its
|
|
190
|
+
* `issuesAccountWide` is empty — those two fields split the git-host reads, and a tracker has neither of
|
|
191
|
+
* them (its issues live under resource → project) — so intersecting a tracker's filters against
|
|
192
|
+
* `issuesAccountWide` would read "cannot filter" for a provider that filters fine.
|
|
193
|
+
*
|
|
194
|
+
* This is a capability table, not a recommendation: a consumer matching another tool's behavior may pass fewer
|
|
195
|
+
* filters than are listed, or none where the underlying read is already scoped.
|
|
196
|
+
*/
|
|
197
|
+
getSupportedFilters(providerId: IntegrationIds): {
|
|
198
|
+
pullRequests: PullRequestFilter[];
|
|
199
|
+
/** Optional for structural compatibility; missing means no account-wide narrowing filters are supported. */
|
|
200
|
+
pullRequestsAccountWide?: PullRequestFilter[];
|
|
201
|
+
issues: IssueFilter[];
|
|
202
|
+
issuesAccountWide: IssueFilter[];
|
|
203
|
+
};
|
|
204
|
+
/** Forces an authoritative cloud connection refresh. Rejects if the backend connection list cannot be read. */
|
|
205
|
+
refreshConnections(): Promise<void>;
|
|
206
|
+
/** Rejects unless `connectionId` is a configured cloud connection for `id`. */
|
|
207
|
+
setPrimaryConnection(id: IntegrationIds, connectionId: string): Promise<void>;
|
|
208
|
+
/** Rejects unless `connectionId` is a configured cloud connection for `id`. */
|
|
209
|
+
deleteConnection(id: IntegrationIds, connectionId: string): Promise<void>;
|
|
210
|
+
|
|
211
|
+
listOrgs(options?: ListOrgsOptions): Promise<ProviderResult<ProviderOrganization>>;
|
|
212
|
+
listProjects(options?: ListProjectsOptions): Promise<ProviderResult<ProviderOrganization>>;
|
|
213
|
+
listRepos(options: {
|
|
214
|
+
providerId: IntegrationIds;
|
|
215
|
+
org?: string;
|
|
216
|
+
project?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Requested 1-based page. Cursor-only providers are advanced internally when no `cursor` is supplied,
|
|
219
|
+
* so a direct page-N request can cost O(page) upstream calls.
|
|
220
|
+
*/
|
|
221
|
+
page?: number;
|
|
222
|
+
/** Continuation from a prior page's `cursor`; supplying it costs exactly one upstream request per scope. */
|
|
223
|
+
cursor?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Requested page size. Advisory: the repos read core is cursor-only and takes no page size, so the
|
|
226
|
+
* provider's own size is what applies — `page.itemsPerPage` reports what was actually returned.
|
|
227
|
+
*/
|
|
228
|
+
itemsPerPage?: number;
|
|
229
|
+
connectionId?: string;
|
|
230
|
+
/** Self-managed host domain fallback; see {@link ProviderSweepTarget.domain}. */
|
|
231
|
+
domain?: string;
|
|
232
|
+
}): Promise<ProviderPagedResult<ProviderRepositoryShape>>;
|
|
233
|
+
listPullRequestsPage(options: {
|
|
234
|
+
providerId: IntegrationIds;
|
|
235
|
+
repos?: ProviderRepositoriesInput;
|
|
236
|
+
states?: PullRequestStateFilter[];
|
|
237
|
+
/**
|
|
238
|
+
* Relationship filters. Repo-scoped reads combine members as provider query constraints (normally an
|
|
239
|
+
* intersection), so issue separate reads when the desired result is a union. Account-wide members form an
|
|
240
|
+
* exact OR union. Each path validates the whole set against its corresponding capability.
|
|
241
|
+
*/
|
|
242
|
+
filters?: PullRequestFilter[];
|
|
243
|
+
/**
|
|
244
|
+
* Account-wide only: include review-requested PRs when the provider's native "my PRs" query omits them.
|
|
245
|
+
* This extends the provider-native result; it is not a narrowing filter.
|
|
246
|
+
*/
|
|
247
|
+
includeReviewRequested?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Requested 1-based page. Without a `cursor` this may cost O(page) upstream requests on a cursor-only
|
|
250
|
+
* read (repo-scoped GitHub/GHE and account-wide providers that return continuations), which the facade
|
|
251
|
+
* drains internally.
|
|
252
|
+
*/
|
|
253
|
+
page?: number;
|
|
254
|
+
/** Continuation from a prior page's `cursor`; supplying it costs exactly one upstream request per scope. */
|
|
255
|
+
cursor?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Requested page size, honored on the repo-scoped path. The provider-defined account-wide read (no
|
|
258
|
+
* `repos`) takes no page size, so it is ignored there — `page.itemsPerPage` reports what was actually
|
|
259
|
+
* returned rather than echoing the request.
|
|
260
|
+
*/
|
|
261
|
+
itemsPerPage?: number;
|
|
262
|
+
forceSync?: boolean;
|
|
263
|
+
connectionId?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Explicit self-managed host domain. Used only when the requested connection has no configured domain;
|
|
266
|
+
* it must come from the trusted authentication configuration, not repository or remote data.
|
|
267
|
+
*/
|
|
268
|
+
domain?: string;
|
|
269
|
+
}): Promise<ProviderPagedResult<PullRequestShape>>;
|
|
270
|
+
listIssuesPage(options: {
|
|
271
|
+
providerId: IntegrationIds;
|
|
272
|
+
repos?: ProviderRepositoriesInput;
|
|
273
|
+
/**
|
|
274
|
+
* Narrows the account-wide read (no `repos`) to one org/account, and `project` to one project within it.
|
|
275
|
+
* Only a git host with a project tier (Azure DevOps) can scope this server-side; for any other provider
|
|
276
|
+
* either option is rejected with a warning + `fetchFailed` rather than silently returning an unscoped
|
|
277
|
+
* list. Ignored when `repos` is supplied, since those repos are already the scope.
|
|
278
|
+
*/
|
|
279
|
+
org?: string;
|
|
280
|
+
project?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Narrows to the requested relationship(s), validated against `getSupportedFilters().issues` on the
|
|
283
|
+
* repo-scoped path and `.issuesAccountWide` on the account-wide one.
|
|
284
|
+
*
|
|
285
|
+
* On the account-wide path this REPLACES the provider's own definition of "my issues" — GitHub/GHE
|
|
286
|
+
* authored + assigned + mentioned, Azure assigned + authored, and GitLab assigned-to-me — so
|
|
287
|
+
* `[Assignee]` gets `assignee:@me` semantics wherever it's expressible. Narrowing must happen here rather
|
|
288
|
+
* than on the returned page: the excluded items still counted toward the provider's paging, so filtering
|
|
289
|
+
* afterward leaves `items` describing a different result set than `hasMore`/`cursor`.
|
|
290
|
+
*
|
|
291
|
+
* A set the provider can't express server-side is refused whole (warning + `fetchFailed`), never widened.
|
|
292
|
+
*/
|
|
293
|
+
filters?: IssueFilter[];
|
|
294
|
+
/** Broadens to every assignee. On account-wide reads it contradicts `filters`, so passing both is refused. */
|
|
295
|
+
includeAllAssignees?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Requested 1-based page. Without a `cursor` this may cost O(page) upstream requests on cursor-backed
|
|
298
|
+
* reads such as repo-scoped GitHub/GHE; aggregate single-page account-wide reads remain O(1).
|
|
299
|
+
*/
|
|
300
|
+
page?: number;
|
|
301
|
+
/** Continuation from a prior page's `cursor`; supplying it costs exactly one upstream request per scope. */
|
|
302
|
+
cursor?: string;
|
|
303
|
+
itemsPerPage?: number;
|
|
304
|
+
forceSync?: boolean;
|
|
305
|
+
connectionId?: string;
|
|
306
|
+
/** Self-managed host domain fallback; see {@link ProviderSweepTarget.domain}. */
|
|
307
|
+
domain?: string;
|
|
308
|
+
}): Promise<ProviderPagedResult<IssueShape>>;
|
|
309
|
+
/** Issue trackers are cloud-only, so this read takes no `domain`. */
|
|
310
|
+
listIssueTrackerIssuesPage(options: {
|
|
311
|
+
providerId: IntegrationIds;
|
|
312
|
+
org?: string;
|
|
313
|
+
project?: string;
|
|
314
|
+
filters?: IssueFilter[];
|
|
315
|
+
includeAllAssignees?: boolean;
|
|
316
|
+
forceSync?: boolean;
|
|
317
|
+
page?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Opaque continuation from a prior result. It can bundle the next untouched project window with failed
|
|
320
|
+
* discovery/project retries and already-emitted project identities, so it is not equivalent to `page`.
|
|
321
|
+
* Thread it back verbatim. A retry-only cursor can remain when `hasMore` is false; reusing that cursor is
|
|
322
|
+
* an explicit manual retry, while `hasMore` represents automatic forward progress only.
|
|
323
|
+
*/
|
|
324
|
+
cursor?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Page size in PROJECTS, not issues (default 20): these providers have no cross-project issue cursor, so
|
|
327
|
+
* a page is a window of projects, each drained in full. Supplying it (or `page`/`cursor`) opts into
|
|
328
|
+
* pagination; omitting all three aggregates every matched project in one page.
|
|
329
|
+
*/
|
|
330
|
+
itemsPerPage?: number;
|
|
331
|
+
connectionId?: string;
|
|
332
|
+
}): Promise<ProviderPagedResult<IssueShape>>;
|
|
333
|
+
sweepPullRequests(options?: PullRequestSweepOptions): Promise<ProviderSweepResult<PullRequestShape>>;
|
|
334
|
+
sweepClosedPullRequests(options?: ClosedPullRequestSweepOptions): Promise<ProviderSweepResult<PullRequestShape>>;
|
|
335
|
+
broadenIssues(options: {
|
|
336
|
+
orgs: ProviderBroadenOrg[];
|
|
337
|
+
/**
|
|
338
|
+
* Requested 1-based page. Without a `cursor` the fan-out is re-run once per prior page (O(page) rounds),
|
|
339
|
+
* since a per-org cursor bundle is the only way to address a later page.
|
|
340
|
+
*/
|
|
341
|
+
page?: number;
|
|
342
|
+
/** Continuation from a prior page's `cursor`; supplying it runs exactly one fan-out round. */
|
|
343
|
+
cursor?: string;
|
|
344
|
+
forceSync?: boolean;
|
|
345
|
+
}): Promise<ProviderBroadenResult<IssueShape>>;
|
|
346
|
+
resolveRepository(options: {
|
|
347
|
+
providerId?: IntegrationIds;
|
|
348
|
+
remoteUrl: string;
|
|
349
|
+
host?: string;
|
|
350
|
+
connectionId?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Explicit self-managed host domain used to select the integration instance. It must come from trusted
|
|
353
|
+
* authentication configuration. Without it, the host parsed from `remoteUrl` is only a resolution
|
|
354
|
+
* candidate: the facade proceeds only when that host matches a configured integration, so repository
|
|
355
|
+
* data cannot select credentials for an arbitrary host.
|
|
356
|
+
*/
|
|
357
|
+
domain?: string;
|
|
358
|
+
}): Promise<ResolveRepositoryResult>;
|
|
359
|
+
}
|