@gitkraken/core-gitlens 0.4.0 → 0.4.101
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 +74 -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 +135 -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 +297 -13
- package/dist/plus/integrations/integrationService.d.ts.map +1 -1
- package/dist/plus/integrations/integrationService.js +672 -36
- 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 +262 -10
- package/dist/plus/integrations/models/gitHostIntegration.d.ts.map +1 -1
- package/dist/plus/integrations/models/gitHostIntegration.js +675 -101
- 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 +70 -7
- package/dist/plus/integrations/models/issuesIntegration.d.ts.map +1 -1
- package/dist/plus/integrations/models/issuesIntegration.js +108 -35
- 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/broaden.d.ts +20 -0
- package/dist/plus/integrations/reads/broaden.d.ts.map +1 -0
- package/dist/plus/integrations/reads/broaden.js +326 -0
- package/dist/plus/integrations/reads/broaden.js.map +1 -0
- package/dist/plus/integrations/reads/context.d.ts +74 -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 +320 -0
- package/dist/plus/integrations/reads/hierarchy.js.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts +77 -0
- package/dist/plus/integrations/reads/hierarchy.utils.d.ts.map +1 -0
- package/dist/plus/integrations/reads/hierarchy.utils.js +128 -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 +334 -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/resolveRepository.d.ts +25 -0
- package/dist/plus/integrations/reads/resolveRepository.d.ts.map +1 -0
- package/dist/plus/integrations/reads/resolveRepository.js +235 -0
- package/dist/plus/integrations/reads/resolveRepository.js.map +1 -0
- package/dist/plus/integrations/reads/sweeps.d.ts +11 -0
- package/dist/plus/integrations/reads/sweeps.d.ts.map +1 -0
- package/dist/plus/integrations/reads/sweeps.js +125 -0
- package/dist/plus/integrations/reads/sweeps.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 +153 -0
- package/src/plus/integrations/index.ts +148 -51
- package/src/plus/integrations/integrationService.ts +940 -49
- package/src/plus/integrations/lite.ts +233 -0
- package/src/plus/integrations/manager.ts +359 -0
- package/src/plus/integrations/models/gitHostIntegration.ts +1005 -134
- package/src/plus/integrations/models/integration.ts +293 -24
- package/src/plus/integrations/models/issuesIntegration.ts +132 -39
- 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/broaden.ts +452 -0
- package/src/plus/integrations/reads/context.ts +99 -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 +473 -0
- package/src/plus/integrations/reads/hierarchy.utils.ts +155 -0
- package/src/plus/integrations/reads/issueTracker.ts +468 -0
- package/src/plus/integrations/reads/issues.ts +409 -0
- package/src/plus/integrations/reads/paging.ts +277 -0
- package/src/plus/integrations/reads/pullRequests.ts +260 -0
- package/src/plus/integrations/reads/resolveRepository.ts +272 -0
- package/src/plus/integrations/reads/sweeps.ts +185 -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
package/src/utils/iterable.ts
CHANGED
|
@@ -113,9 +113,7 @@ class ConcatIterator<T> implements IterableIterator<T> {
|
|
|
113
113
|
|
|
114
114
|
while (this.sourceIndex < this.sources.length) {
|
|
115
115
|
// Initialize iterator for current source if needed
|
|
116
|
-
|
|
117
|
-
this.currentIterator = this.sources[this.sourceIndex][Symbol.iterator]();
|
|
118
|
-
}
|
|
116
|
+
this.currentIterator ??= this.sources[this.sourceIndex][Symbol.iterator]();
|
|
119
117
|
|
|
120
118
|
const result = this.currentIterator.next();
|
|
121
119
|
if (!result.done) {
|
|
@@ -708,9 +706,7 @@ class UnionIterator<T> implements IterableIterator<T> {
|
|
|
708
706
|
}
|
|
709
707
|
|
|
710
708
|
// Initialize iterator for current source if needed
|
|
711
|
-
|
|
712
|
-
this.currentIterator = source[Symbol.iterator]();
|
|
713
|
-
}
|
|
709
|
+
this.currentIterator ??= source[Symbol.iterator]();
|
|
714
710
|
|
|
715
711
|
const result = this.currentIterator.next();
|
|
716
712
|
if (!result.done) {
|
|
@@ -35,7 +35,7 @@ export function createLogScope(scopeId: number, prevScopeId: number | undefined,
|
|
|
35
35
|
let exitDetails: string[] | undefined;
|
|
36
36
|
let exitFailed: string | undefined;
|
|
37
37
|
|
|
38
|
-
//
|
|
38
|
+
// oxlint-disable-next-line typescript/consistent-type-assertions
|
|
39
39
|
const scope: ScopedLogger = {
|
|
40
40
|
scopeId: scopeId,
|
|
41
41
|
prevScopeId: prevScopeId,
|
package/src/utils/logger.ts
CHANGED
|
@@ -217,7 +217,7 @@ class Logger {
|
|
|
217
217
|
|
|
218
218
|
const errorMessage = ` ${message ?? ''}${this.#toLoggableParams(false, params)}`;
|
|
219
219
|
if (ex != null) {
|
|
220
|
-
//
|
|
220
|
+
// oxlint-disable-next-line typescript/no-base-to-string
|
|
221
221
|
this.#output?.error(String(ex), errorMessage);
|
|
222
222
|
} else {
|
|
223
223
|
this.#output?.error(errorMessage);
|
package/src/utils/paging.ts
CHANGED
|
@@ -4,6 +4,26 @@ export interface PagedResult<T> {
|
|
|
4
4
|
readonly paging?: {
|
|
5
5
|
readonly cursor: string;
|
|
6
6
|
readonly more: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* True when the results may be incomplete in a way that following `cursor` won't resolve. Two sources:
|
|
9
|
+
* a read that fetched a single default page and can't report `hasNextPage` (no cursor to follow at all),
|
|
10
|
+
* or a multi-scope read where a sibling scope failed (`partial`/`unknown` completeness) even though the
|
|
11
|
+
* current scope still exposes a real next page. `truncated` is therefore independent of `more`: `more`
|
|
12
|
+
* means "there is a next page you can fetch with `cursor`"; `truncated` means "content may be missing
|
|
13
|
+
* that paging alone won't recover." Consumers should surface this as a truncation signal rather than
|
|
14
|
+
* treating the result as complete, and should not assume `truncated` implies `more` is false.
|
|
15
|
+
*/
|
|
16
|
+
readonly truncated?: boolean;
|
|
17
|
+
/** 1-based page that produced this result. Populated by numbered-page providers only. */
|
|
18
|
+
readonly page?: number;
|
|
19
|
+
/** Items requested per page, when known. */
|
|
20
|
+
readonly pageSize?: number;
|
|
21
|
+
/** Next page number, when the provider pages by number. */
|
|
22
|
+
readonly nextPage?: number;
|
|
23
|
+
/** Total number of pages, when the provider reports totals. */
|
|
24
|
+
readonly totalPages?: number;
|
|
25
|
+
/** Total number of items across all pages, when the provider reports totals. */
|
|
26
|
+
readonly totalCount?: number;
|
|
7
27
|
};
|
|
8
28
|
readonly values: NonNullable<T>[];
|
|
9
29
|
}
|
|
@@ -13,6 +33,10 @@ export const emptyPagedResult: PagedResult<any> = Object.freeze({ values: [] });
|
|
|
13
33
|
|
|
14
34
|
export interface PagingOptions {
|
|
15
35
|
cursor?: string;
|
|
36
|
+
/** 1-based page to request from numbered-page providers. */
|
|
37
|
+
page?: number;
|
|
38
|
+
/** Items to request per page (numbered-page providers, and GitHub's cursor pages). */
|
|
39
|
+
pageSize?: number;
|
|
16
40
|
}
|
|
17
41
|
|
|
18
42
|
export class PageableResult<T> {
|
|
@@ -49,3 +73,25 @@ export class PageableResult<T> {
|
|
|
49
73
|
}
|
|
50
74
|
}
|
|
51
75
|
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Drains a paged fetcher into a single array, following `paging.cursor` until exhausted. Bounded by
|
|
79
|
+
* `maxPages` (default 20) as a backstop against a provider that never stops paging.
|
|
80
|
+
*/
|
|
81
|
+
export async function collectPagedResults<T>(
|
|
82
|
+
fetch: (cursor: string | undefined) => Promise<PagedResult<T> | undefined>,
|
|
83
|
+
maxPages = 20,
|
|
84
|
+
): Promise<NonNullable<T>[]> {
|
|
85
|
+
const all: NonNullable<T>[] = [];
|
|
86
|
+
let cursor: string | undefined;
|
|
87
|
+
for (let page = 0; page < maxPages; page++) {
|
|
88
|
+
const result = await fetch(cursor);
|
|
89
|
+
if (result == null) break;
|
|
90
|
+
|
|
91
|
+
all.push(...result.values);
|
|
92
|
+
if (!result.paging?.more || result.paging.cursor === cursor) break;
|
|
93
|
+
|
|
94
|
+
cursor = result.paging.cursor;
|
|
95
|
+
}
|
|
96
|
+
return all;
|
|
97
|
+
}
|
package/src/utils/promise.ts
CHANGED
|
@@ -91,6 +91,36 @@ export async function batchResults<T, R>(
|
|
|
91
91
|
return results;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* `Promise.all(items.map(task))` with at most `concurrency` tasks in flight. Unlike {@link batchResults} this is
|
|
96
|
+
* a sliding window rather than a barrier per batch, so a slow item doesn't idle the rest of the window. Results
|
|
97
|
+
* are returned in input order and the first rejection propagates, matching `Promise.all`.
|
|
98
|
+
*
|
|
99
|
+
* Use it for a fan-out whose width is data-driven (one task per org/project/provider): unbounded `Promise.all`
|
|
100
|
+
* over such a list opens as many concurrent upstream requests as there are items, which invites provider rate
|
|
101
|
+
* limiting and socket exhaustion.
|
|
102
|
+
*/
|
|
103
|
+
export async function mapBounded<T, R>(
|
|
104
|
+
items: readonly T[],
|
|
105
|
+
concurrency: number,
|
|
106
|
+
task: (item: T, index: number) => Promise<R>,
|
|
107
|
+
): Promise<R[]> {
|
|
108
|
+
const limit = Math.max(1, Math.trunc(concurrency));
|
|
109
|
+
if (items.length <= limit) return Promise.all(items.map((item, index) => task(item, index)));
|
|
110
|
+
|
|
111
|
+
const results = new Array<R>(items.length);
|
|
112
|
+
let next = 0;
|
|
113
|
+
|
|
114
|
+
async function worker(): Promise<void> {
|
|
115
|
+
for (let index = next++; index < items.length; index = next++) {
|
|
116
|
+
results[index] = await task(items[index], index);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
await Promise.all(Array.from({ length: limit }, () => worker()));
|
|
121
|
+
return results;
|
|
122
|
+
}
|
|
123
|
+
|
|
94
124
|
export class PromiseCancelledError<T extends Promise<any> = Promise<any>> extends Error {
|
|
95
125
|
constructor(
|
|
96
126
|
public readonly promise: T,
|
|
@@ -177,7 +207,7 @@ export function cancellable<T>(
|
|
|
177
207
|
disposeCancellation?.dispose();
|
|
178
208
|
disposeTimeout?.dispose();
|
|
179
209
|
|
|
180
|
-
//
|
|
210
|
+
// oxlint-disable-next-line typescript/prefer-promise-reject-errors
|
|
181
211
|
reject(ex);
|
|
182
212
|
},
|
|
183
213
|
);
|
|
@@ -222,7 +252,7 @@ export function getDeferredPromiseIfPending<T>(deferred: Deferred<T> | undefined
|
|
|
222
252
|
export type MaybePromiseArr<T> = (Promise<T | undefined> | T | undefined)[];
|
|
223
253
|
|
|
224
254
|
export async function nonnullSettled<T>(arr: MaybePromiseArr<T>): Promise<T[]> {
|
|
225
|
-
//
|
|
255
|
+
// oxlint-disable-next-line typescript/await-thenable
|
|
226
256
|
const all = await Promise.allSettled(arr);
|
|
227
257
|
return all.map(r => getSettledValue(r)).filter(v => v != null);
|
|
228
258
|
}
|
|
@@ -485,7 +515,7 @@ export async function pauseOnCancelOrTimeoutMapTuple<Id, T, U extends unknown[]>
|
|
|
485
515
|
}
|
|
486
516
|
|
|
487
517
|
const results = await Promise.all(
|
|
488
|
-
//
|
|
518
|
+
// oxlint-disable-next-line typescript/await-thenable
|
|
489
519
|
map(source, ([id, [promise, ...rest]]) =>
|
|
490
520
|
promise == null
|
|
491
521
|
? ([id, [undefined, ...rest]] as const)
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { AbortAggregate, CancellationError, raceWithSignal } from './cancellation.js';
|
|
2
2
|
|
|
3
|
+
/** Deletes `key` from `map` only if it still maps to `owner`. A `delete(key)` + fresh `getOrCreate` can install
|
|
4
|
+
* a successor under the same key while our factory is in flight; our late settle must not evict the successor. */
|
|
5
|
+
function deleteIfOwned<K, V>(map: Map<K, V>, key: K, owner: V): void {
|
|
6
|
+
if (map.get(key) === owner) {
|
|
7
|
+
map.delete(key);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
interface CacheEntry<V> {
|
|
4
12
|
promise: Promise<V>;
|
|
5
13
|
accessed: number;
|
|
@@ -48,17 +56,20 @@ export class PromiseCache<K, V> {
|
|
|
48
56
|
this.options = { expireOnError: true, ...options };
|
|
49
57
|
}
|
|
50
58
|
|
|
59
|
+
/** Clears all entries. Like `delete`, does NOT dispose in-flight abort aggregates — that would detach a running
|
|
60
|
+
* op's cancellation (a later caller-abort couldn't cancel it); each factory's settle handler disposes its own. */
|
|
51
61
|
clear(): void {
|
|
52
|
-
for (const a of this.aborts.values()) {
|
|
53
|
-
a.dispose();
|
|
54
|
-
}
|
|
55
62
|
this.aborts.clear();
|
|
56
63
|
this.controllers.clear();
|
|
57
64
|
this.cache.clear();
|
|
58
65
|
}
|
|
59
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Removes a promise from the cache.
|
|
69
|
+
* Does NOT dispose the abort aggregate: while a factory is in flight, disposing would detach
|
|
70
|
+
* its callers' cancellation and orphan the underlying op (a later caller-abort could no longer cancel the
|
|
71
|
+
* running `git status`). The factory's own settle handler disposes the aggregate (see `getOrCreate`). */
|
|
60
72
|
delete(key: K): void {
|
|
61
|
-
this.aborts.get(key)?.dispose();
|
|
62
73
|
this.aborts.delete(key);
|
|
63
74
|
this.controllers.delete(key);
|
|
64
75
|
this.cache.delete(key);
|
|
@@ -154,13 +165,15 @@ export class PromiseCache<K, V> {
|
|
|
154
165
|
|
|
155
166
|
let entry = this.cache.get(key);
|
|
156
167
|
if (entry != null && !this.expired(entry, now)) {
|
|
157
|
-
//
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
// Cache hit — register this caller on the existing aggregate
|
|
168
|
+
// Cache hit — but don't join an entry whose aggregate has already permanently aborted (all prior
|
|
169
|
+
// callers cancelled, so the shared run is failing): that would hand this caller a doomed promise.
|
|
170
|
+
// Fall through to create a fresh entry; the doomed entry's late settle is `deleteIfOwned`-guarded.
|
|
161
171
|
const existingAborts = this.aborts.get(key);
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
if (existingAborts == null || !existingAborts.signal.aborted) {
|
|
173
|
+
entry.accessed = now;
|
|
174
|
+
const cleanup = existingAborts != null ? existingAborts.add(cancellation) : undefined;
|
|
175
|
+
return this.attachCallerLifecycle(entry.promise, cancellation, cleanup);
|
|
176
|
+
}
|
|
164
177
|
}
|
|
165
178
|
|
|
166
179
|
const cacheable = new CacheController();
|
|
@@ -174,12 +187,14 @@ export class PromiseCache<K, V> {
|
|
|
174
187
|
const promise = factory(cacheable, abortAgg.signal);
|
|
175
188
|
void promise
|
|
176
189
|
.finally(() => {
|
|
190
|
+
// All three deletes are ownership-guarded — a hard `delete(key)` + fresh `getOrCreate` while our
|
|
191
|
+
// factory is in flight installs a successor under `key`; our late settle must not evict it.
|
|
177
192
|
if (cacheable.invalidated) {
|
|
178
|
-
this.cache
|
|
193
|
+
deleteIfOwned(this.cache, key, entry!);
|
|
179
194
|
}
|
|
180
195
|
abortAgg.dispose();
|
|
181
|
-
this.aborts
|
|
182
|
-
this.controllers
|
|
196
|
+
deleteIfOwned(this.aborts, key, abortAgg);
|
|
197
|
+
deleteIfOwned(this.controllers, key, cacheable);
|
|
183
198
|
})
|
|
184
199
|
// Swallow the cleanup chain's rejection so it doesn't surface as an unhandled rejection
|
|
185
200
|
// separate from the caller-facing promise's own handling (e.g. on cancellation).
|
|
@@ -189,20 +204,27 @@ export class PromiseCache<K, V> {
|
|
|
189
204
|
// Wrap the promise to handle errors with the onError callback
|
|
190
205
|
const errorHandled = promise.catch((ex: unknown) => {
|
|
191
206
|
const result = options.onError!(ex);
|
|
207
|
+
// A hard `delete(key)` + fresh `getOrCreate` while we were in flight installs a successor;
|
|
208
|
+
// don't clobber it. But an EMPTY key (our entry already evicted, e.g. by the invalidated-finally)
|
|
209
|
+
// still takes the fallback — preserving base behavior of caching the error fallback.
|
|
210
|
+
const occupant = this.cache.get(key);
|
|
211
|
+
const clobbersSuccessor = occupant != null && occupant !== entry;
|
|
192
212
|
if (result != null) {
|
|
193
213
|
// Replace the entry with a resolved fallback value for subsequent callers
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
214
|
+
if (!clobbersSuccessor) {
|
|
215
|
+
const errorNow = Date.now();
|
|
216
|
+
this.cache.set(key, {
|
|
217
|
+
promise: Promise.resolve(result.value),
|
|
218
|
+
created: errorNow,
|
|
219
|
+
accessed: errorNow,
|
|
220
|
+
createTTL: result.createTTL ?? options.createTTL,
|
|
221
|
+
accessTTL: options.accessTTL,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
202
224
|
// suppress: return fallback to first caller; otherwise re-throw
|
|
203
225
|
if (result.suppress) return result.value;
|
|
204
226
|
} else {
|
|
205
|
-
this.cache
|
|
227
|
+
deleteIfOwned(this.cache, key, entry!);
|
|
206
228
|
}
|
|
207
229
|
throw ex;
|
|
208
230
|
});
|
|
@@ -219,14 +241,18 @@ export class PromiseCache<K, V> {
|
|
|
219
241
|
// Cache resolved undefined for subsequent callers, re-throw to first caller
|
|
220
242
|
const errorTTL = options.errorTTL;
|
|
221
243
|
const errorHandled = promise.catch((ex: unknown) => {
|
|
222
|
-
|
|
223
|
-
this.cache.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
244
|
+
// Overwrite unless a successor now owns the key (empty key still takes it — see onError above).
|
|
245
|
+
const occupant = this.cache.get(key);
|
|
246
|
+
if (occupant == null || occupant === entry) {
|
|
247
|
+
const errorNow = Date.now();
|
|
248
|
+
this.cache.set(key, {
|
|
249
|
+
promise: Promise.resolve(undefined as V),
|
|
250
|
+
created: errorNow,
|
|
251
|
+
accessed: errorNow,
|
|
252
|
+
createTTL: errorTTL,
|
|
253
|
+
accessTTL: options.accessTTL,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
230
256
|
throw ex;
|
|
231
257
|
});
|
|
232
258
|
|
|
@@ -249,7 +275,10 @@ export class PromiseCache<K, V> {
|
|
|
249
275
|
this.cache.set(key, entry);
|
|
250
276
|
|
|
251
277
|
if (options?.expireOnError ?? true) {
|
|
252
|
-
|
|
278
|
+
// Ownership-guarded: a hard `delete(key)` + fresh `getOrCreate` replacing us while in flight must
|
|
279
|
+
// not have its entry evicted by our rejection.
|
|
280
|
+
const ourEntry = entry;
|
|
281
|
+
promise.catch(() => deleteIfOwned(this.cache, key, ourEntry));
|
|
253
282
|
}
|
|
254
283
|
}
|
|
255
284
|
|
|
@@ -339,7 +368,7 @@ export class PromiseCache<K, V> {
|
|
|
339
368
|
this.cache.set(key, entry);
|
|
340
369
|
|
|
341
370
|
if (this.options.expireOnError ?? true) {
|
|
342
|
-
promise.catch(() => this.cache
|
|
371
|
+
promise.catch(() => deleteIfOwned(this.cache, key, entry));
|
|
343
372
|
}
|
|
344
373
|
}
|
|
345
374
|
}
|
|
@@ -379,10 +408,14 @@ export class PromiseMap<K, V> {
|
|
|
379
408
|
|
|
380
409
|
const cached = this.cache.get(key);
|
|
381
410
|
if (cached != null) {
|
|
382
|
-
// Cache hit —
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
411
|
+
// Cache hit — but don't join an entry whose aggregate has already permanently aborted (all prior
|
|
412
|
+
// callers cancelled, so the shared run is failing): joining hands this caller a doomed promise.
|
|
413
|
+
// Fall through to a fresh entry; the doomed entry's late settle is `deleteIfOwned`-guarded.
|
|
414
|
+
const existingAborts = this.aborts.get(key);
|
|
415
|
+
if (existingAborts == null || !existingAborts.signal.aborted) {
|
|
416
|
+
const cleanup = existingAborts != null ? existingAborts.add(cancellation) : undefined;
|
|
417
|
+
return this.attachCallerLifecycle(cached, cancellation, cleanup);
|
|
418
|
+
}
|
|
386
419
|
}
|
|
387
420
|
|
|
388
421
|
// Cache miss — always create the aggregate so subsequent callers (with or without signals)
|
|
@@ -395,16 +428,16 @@ export class PromiseMap<K, V> {
|
|
|
395
428
|
|
|
396
429
|
const promise = factory(cacheable, aborts.signal);
|
|
397
430
|
|
|
398
|
-
// Automatically remove failed promises from the cache
|
|
399
|
-
promise.catch(() => this.cache
|
|
431
|
+
// Automatically remove failed promises from the cache (ownership-guarded — see `deleteIfOwned`).
|
|
432
|
+
promise.catch(() => deleteIfOwned(this.cache, key, promise));
|
|
400
433
|
void promise
|
|
401
434
|
.finally(() => {
|
|
402
435
|
if (cacheable.invalidated) {
|
|
403
|
-
this.cache
|
|
436
|
+
deleteIfOwned(this.cache, key, promise);
|
|
404
437
|
}
|
|
405
438
|
aborts.dispose();
|
|
406
|
-
this.aborts
|
|
407
|
-
this.controllers
|
|
439
|
+
deleteIfOwned(this.aborts, key, aborts);
|
|
440
|
+
deleteIfOwned(this.controllers, key, cacheable);
|
|
408
441
|
})
|
|
409
442
|
// Swallow the cleanup chain's rejection so it doesn't surface as an unhandled rejection
|
|
410
443
|
// separate from the caller-facing promise's own handling (e.g. on cancellation).
|
|
@@ -461,10 +494,8 @@ export class PromiseMap<K, V> {
|
|
|
461
494
|
set(key: K, promise: Promise<V>): this {
|
|
462
495
|
this.cache.set(key, promise);
|
|
463
496
|
|
|
464
|
-
// Automatically remove failed promises from the cache
|
|
465
|
-
promise.catch(() =>
|
|
466
|
-
this.cache.delete(key);
|
|
467
|
-
});
|
|
497
|
+
// Automatically remove failed promises from the cache (ownership-guarded — see `deleteIfOwned`).
|
|
498
|
+
promise.catch(() => deleteIfOwned(this.cache, key, promise));
|
|
468
499
|
|
|
469
500
|
return this;
|
|
470
501
|
}
|
|
@@ -478,21 +509,20 @@ export class PromiseMap<K, V> {
|
|
|
478
509
|
|
|
479
510
|
/**
|
|
480
511
|
* Removes a key from the cache.
|
|
481
|
-
|
|
512
|
+
* Does NOT dispose the abort aggregate: while a factory is in flight, disposing would detach
|
|
513
|
+
* its callers' cancellation and orphan the underlying op (a later caller-abort could no longer cancel the
|
|
514
|
+
* running `git status`). The factory's own settle handler disposes the aggregate (see `getOrCreate`). */
|
|
482
515
|
delete(key: K): boolean {
|
|
483
|
-
this.aborts.get(key)?.dispose();
|
|
484
516
|
this.aborts.delete(key);
|
|
485
517
|
this.controllers.delete(key);
|
|
486
518
|
return this.cache.delete(key);
|
|
487
519
|
}
|
|
488
520
|
|
|
489
521
|
/**
|
|
490
|
-
* Clears all entries
|
|
522
|
+
* Clears all entries. Like `delete`, does NOT dispose in-flight abort aggregates — that would detach a running
|
|
523
|
+
* op's cancellation (a later caller-abort couldn't cancel it); each factory's settle handler disposes its own.
|
|
491
524
|
*/
|
|
492
525
|
clear(): void {
|
|
493
|
-
for (const a of this.aborts.values()) {
|
|
494
|
-
a.dispose();
|
|
495
|
-
}
|
|
496
526
|
this.aborts.clear();
|
|
497
527
|
this.controllers.clear();
|
|
498
528
|
this.cache.clear();
|
package/src/utils/searchTree.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { compareSubstring, compareSubstringIgnoreCase } from './string.js';
|
|
|
4
4
|
|
|
5
5
|
const FIN = { done: true, value: undefined };
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
7
|
export interface IKeyIterator<K> {
|
|
9
8
|
reset(key: K): this;
|
|
10
9
|
next(): this;
|
|
@@ -279,12 +278,15 @@ export class TernarySearchTree<K, V> {
|
|
|
279
278
|
} else if (iter.hasNext()) {
|
|
280
279
|
// mid
|
|
281
280
|
iter.next();
|
|
281
|
+
// Generic value may be falsy — keep truthy-wins semantics; don't narrow to `??`
|
|
282
|
+
// oxlint-disable-next-line typescript/prefer-nullish-coalescing
|
|
282
283
|
candidate = node.value || candidate;
|
|
283
284
|
node = node.mid;
|
|
284
285
|
} else {
|
|
285
286
|
break;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
289
|
+
// oxlint-disable-next-line typescript/prefer-nullish-coalescing -- generic value may be falsy; keep `||`
|
|
288
290
|
return node?.value || candidate;
|
|
289
291
|
}
|
|
290
292
|
|
|
@@ -311,7 +313,7 @@ export class TernarySearchTree<K, V> {
|
|
|
311
313
|
|
|
312
314
|
node = node.mid;
|
|
313
315
|
return {
|
|
314
|
-
//
|
|
316
|
+
// oxlint-disable-next-line no-loop-func
|
|
315
317
|
[Symbol.iterator]: () => this._nodeIterator(node!, limit),
|
|
316
318
|
};
|
|
317
319
|
}
|
package/src/utils/string.ts
CHANGED
|
@@ -695,7 +695,7 @@ export async function interpolateAsync(template: string, context: object | undef
|
|
|
695
695
|
value = await value;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
//
|
|
698
|
+
// oxlint-disable-next-line typescript/restrict-plus-operands
|
|
699
699
|
result += template.slice(position, token.start) + (value ?? '');
|
|
700
700
|
position = token.end;
|
|
701
701
|
}
|
package/src/utils/trie.ts
CHANGED
|
@@ -455,6 +455,7 @@ export class PathTrie<T> {
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
if (node?.children == null) return [];
|
|
458
|
+
// oxlint-disable-next-line typescript/prefer-nullish-coalescing -- generic value may be falsy; `||` drops falsy entries by design
|
|
458
459
|
return [...filterMap(node.children.values(), n => n.value || undefined)];
|
|
459
460
|
}
|
|
460
461
|
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { githubProviderDescriptor as provider } from '../constants.js';
|
|
2
|
-
import type { AIActionType, AIModel } from '../models/model.js';
|
|
3
|
-
import { OpenAICompatibleProviderBase } from './openAICompatibleProviderBase.js';
|
|
4
|
-
export declare class GitHubModelsProvider extends OpenAICompatibleProviderBase<typeof provider.id> {
|
|
5
|
-
readonly id: "github";
|
|
6
|
-
readonly name: string;
|
|
7
|
-
protected readonly descriptor: import("../models/model.js").AIProviderDescriptor<"github">;
|
|
8
|
-
protected readonly config: {
|
|
9
|
-
keyUrl: string;
|
|
10
|
-
keyValidator: RegExp;
|
|
11
|
-
};
|
|
12
|
-
getModels(): Promise<readonly AIModel<typeof provider.id>[]>;
|
|
13
|
-
protected getUrl(_model: AIModel<typeof provider.id>): string;
|
|
14
|
-
handleFetchFailure(rsp: Response, action: AIActionType, model: AIModel<typeof provider.id>, retries: number, maxInputTokens: number): Promise<{
|
|
15
|
-
retry: true;
|
|
16
|
-
maxInputTokens: number;
|
|
17
|
-
}>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=githubModelsProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"githubModelsProvider.d.ts","sourceRoot":"","sources":["../../src/providers/githubModelsProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAIjF,qBAAa,oBAAqB,SAAQ,4BAA4B,CAAC,OAAO,QAAQ,CAAC,EAAE,CAAC;IACzF,QAAQ,CAAC,EAAE,WAAe;IAC1B,QAAQ,CAAC,IAAI,SAAiB;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,8DAAY;IACzC,SAAS,CAAC,QAAQ,CAAC,MAAM;;;MAGvB;IAEI,SAAS,IAAI,OAAO,CAAC,SAAS,OAAO,CAAC,OAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;IAsClE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM;IAI9C,kBAAkB,CAChC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,OAAO,CAAC,OAAO,QAAQ,CAAC,EAAE,CAAC,EAClC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACpB,OAAO,CAAC;QAAE,KAAK,EAAE,IAAI,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CA0BnD"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { githubProviderDescriptor as provider } from '../constants.js';
|
|
2
|
-
import { AIError, AIErrorReason } from '../errors.js';
|
|
3
|
-
import { getReducedMaxInputTokens } from '../utils/ai.utils.js';
|
|
4
|
-
import { OpenAICompatibleProviderBase } from './openAICompatibleProviderBase.js';
|
|
5
|
-
export class GitHubModelsProvider extends OpenAICompatibleProviderBase {
|
|
6
|
-
id = provider.id;
|
|
7
|
-
name = provider.name;
|
|
8
|
-
descriptor = provider;
|
|
9
|
-
config = {
|
|
10
|
-
keyUrl: 'https://github.com/settings/tokens',
|
|
11
|
-
keyValidator: /(?:ghp-)?[a-zA-Z0-9]{32,}/,
|
|
12
|
-
};
|
|
13
|
-
async getModels() {
|
|
14
|
-
const rsp = await this.context.fetch('https://github.com/marketplace?category=All&task=chat-completion&type=models', {
|
|
15
|
-
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
|
|
16
|
-
});
|
|
17
|
-
const result = (await rsp.json());
|
|
18
|
-
const models = result.results.map(m => ({
|
|
19
|
-
id: m.name,
|
|
20
|
-
name: m.friendly_name,
|
|
21
|
-
maxTokens: { input: m.max_input_tokens, output: m.max_output_tokens },
|
|
22
|
-
provider: provider,
|
|
23
|
-
temperature: null,
|
|
24
|
-
}));
|
|
25
|
-
return models;
|
|
26
|
-
}
|
|
27
|
-
getUrl(_model) {
|
|
28
|
-
return 'https://models.inference.ai.azure.com/chat/completions';
|
|
29
|
-
}
|
|
30
|
-
async handleFetchFailure(rsp, action, model, retries, maxInputTokens) {
|
|
31
|
-
if (rsp.status !== 404 && rsp.status !== 429) {
|
|
32
|
-
let json;
|
|
33
|
-
try {
|
|
34
|
-
json = (await rsp.json());
|
|
35
|
-
}
|
|
36
|
-
catch { }
|
|
37
|
-
if (json?.error?.code === 'tokens_limit_reached') {
|
|
38
|
-
if (retries < 3) {
|
|
39
|
-
const match = /Max size: (\d+) tokens/.exec(json?.error?.message);
|
|
40
|
-
if (match?.[1] != null) {
|
|
41
|
-
return { retry: true, maxInputTokens: parseInt(match[1], 10) };
|
|
42
|
-
}
|
|
43
|
-
return { retry: true, maxInputTokens: getReducedMaxInputTokens(maxInputTokens, retries + 1) };
|
|
44
|
-
}
|
|
45
|
-
throw new AIError(AIErrorReason.RequestTooLarge, new Error(`(${this.name}) ${rsp.status}: ${json?.error?.message || rsp.statusText}`));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return super.handleFetchFailure(rsp, action, model, retries, maxInputTokens);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=githubModelsProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"githubModelsProvider.js","sourceRoot":"","sources":["../../src/providers/githubModelsProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAIjF,MAAM,OAAO,oBAAqB,SAAQ,4BAAgD;IAChF,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;IACjB,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;IACX,UAAU,GAAG,QAAQ,CAAC;IACtB,MAAM,GAAG;QAC3B,MAAM,EAAE,oCAAoC;QAC5C,YAAY,EAAE,2BAA2B;KACzC,CAAC;IAEF,KAAK,CAAC,SAAS;QACd,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACnC,8EAA8E,EAC9E;YACC,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE;SAC3E,CACD,CAAC;QAiBF,MAAM,MAAM,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAmB,CAAC;QACpD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAChC,CAAC,CAAC,EAAE,CACH,CAAC;YACA,EAAE,EAAE,CAAC,CAAC,IAAI;YACV,IAAI,EAAE,CAAC,CAAC,aAAa;YACrB,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,CAAC,iBAAiB,EAAE;YACrE,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,IAAI;SACjB,CAA6B,CAC/B,CAAC;QAEF,OAAO,MAAM,CAAC;IACf,CAAC;IAES,MAAM,CAAC,MAAmC;QACnD,OAAO,wDAAwD,CAAC;IACjE,CAAC;IAEQ,KAAK,CAAC,kBAAkB,CAChC,GAAa,EACb,MAAoB,EACpB,KAAkC,EAClC,OAAe,EACf,cAAsB;QAEtB,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC;YACT,IAAI,CAAC;gBACJ,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAA8D,CAAC;YACxF,CAAC;YAAC,MAAM,CAAC,CAAA,CAAC;YAEV,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,KAAK,sBAAsB,EAAE,CAAC;gBAClD,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;oBACjB,MAAM,KAAK,GAAG,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;oBAClE,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;wBACxB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;oBAChE,CAAC;oBAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,wBAAwB,CAAC,cAAc,EAAE,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC/F,CAAC;gBAED,MAAM,IAAI,OAAO,CAChB,aAAa,CAAC,eAAe,EAC7B,IAAI,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC,MAAM,KAAK,IAAI,EAAE,KAAK,EAAE,OAAO,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC,CACpF,CAAC;YACH,CAAC;QACF,CAAC;QAED,OAAO,KAAK,CAAC,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAC9E,CAAC;CACD"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { githubProviderDescriptor as provider } from '../constants.js';
|
|
2
|
-
import { AIError, AIErrorReason } from '../errors.js';
|
|
3
|
-
import type { AIActionType, AIModel } from '../models/model.js';
|
|
4
|
-
import { getReducedMaxInputTokens } from '../utils/ai.utils.js';
|
|
5
|
-
import { OpenAICompatibleProviderBase } from './openAICompatibleProviderBase.js';
|
|
6
|
-
|
|
7
|
-
type GitHubModelsModel = AIModel<typeof provider.id>;
|
|
8
|
-
|
|
9
|
-
export class GitHubModelsProvider extends OpenAICompatibleProviderBase<typeof provider.id> {
|
|
10
|
-
readonly id = provider.id;
|
|
11
|
-
readonly name = provider.name;
|
|
12
|
-
protected readonly descriptor = provider;
|
|
13
|
-
protected readonly config = {
|
|
14
|
-
keyUrl: 'https://github.com/settings/tokens',
|
|
15
|
-
keyValidator: /(?:ghp-)?[a-zA-Z0-9]{32,}/,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
async getModels(): Promise<readonly AIModel<typeof provider.id>[]> {
|
|
19
|
-
const rsp = await this.context.fetch(
|
|
20
|
-
'https://github.com/marketplace?category=All&task=chat-completion&type=models',
|
|
21
|
-
{
|
|
22
|
-
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
|
|
23
|
-
},
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
interface ModelsResponse {
|
|
27
|
-
results: {
|
|
28
|
-
type: 'model';
|
|
29
|
-
task: 'chat-completion';
|
|
30
|
-
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
friendly_name: string;
|
|
34
|
-
publisher: string;
|
|
35
|
-
model_family: string;
|
|
36
|
-
max_input_tokens: number;
|
|
37
|
-
max_output_tokens: number;
|
|
38
|
-
}[];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const result = (await rsp.json()) as ModelsResponse;
|
|
42
|
-
const models = result.results.map<GitHubModelsModel>(
|
|
43
|
-
m =>
|
|
44
|
-
({
|
|
45
|
-
id: m.name,
|
|
46
|
-
name: m.friendly_name,
|
|
47
|
-
maxTokens: { input: m.max_input_tokens, output: m.max_output_tokens },
|
|
48
|
-
provider: provider,
|
|
49
|
-
temperature: null,
|
|
50
|
-
}) satisfies GitHubModelsModel,
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
return models;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
protected getUrl(_model: AIModel<typeof provider.id>): string {
|
|
57
|
-
return 'https://models.inference.ai.azure.com/chat/completions';
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
override async handleFetchFailure(
|
|
61
|
-
rsp: Response,
|
|
62
|
-
action: AIActionType,
|
|
63
|
-
model: AIModel<typeof provider.id>,
|
|
64
|
-
retries: number,
|
|
65
|
-
maxInputTokens: number,
|
|
66
|
-
): Promise<{ retry: true; maxInputTokens: number }> {
|
|
67
|
-
if (rsp.status !== 404 && rsp.status !== 429) {
|
|
68
|
-
let json;
|
|
69
|
-
try {
|
|
70
|
-
json = (await rsp.json()) as { error?: { code: string; message: string } } | undefined;
|
|
71
|
-
} catch {}
|
|
72
|
-
|
|
73
|
-
if (json?.error?.code === 'tokens_limit_reached') {
|
|
74
|
-
if (retries < 3) {
|
|
75
|
-
const match = /Max size: (\d+) tokens/.exec(json?.error?.message);
|
|
76
|
-
if (match?.[1] != null) {
|
|
77
|
-
return { retry: true, maxInputTokens: parseInt(match[1], 10) };
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return { retry: true, maxInputTokens: getReducedMaxInputTokens(maxInputTokens, retries + 1) };
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
throw new AIError(
|
|
84
|
-
AIErrorReason.RequestTooLarge,
|
|
85
|
-
new Error(`(${this.name}) ${rsp.status}: ${json?.error?.message || rsp.statusText}`),
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return super.handleFetchFailure(rsp, action, model, retries, maxInputTokens);
|
|
91
|
-
}
|
|
92
|
-
}
|