The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 03:37 UTC
| 1 | import * as AzureDevOps from "@t3tools/source-control-azure-devops/shared/definition"; |
| 2 | import * as Bitbucket from "@t3tools/source-control-bitbucket/shared/definition"; |
| 3 | import { makeSourceControlDefinitionRegistry } from "@t3tools/source-control-core/shared/definition"; |
| 4 | import * as CursorOrigin from "@t3tools/source-control-cursor-origin/shared/definition"; |
| 5 | import * as Forgejo from "@t3tools/source-control-forgejo/shared/definition"; |
| 6 | import * as GitCafe from "@t3tools/source-control-gitcafe/shared/definition"; |
| 7 | import * as GitHub from "@t3tools/source-control-github/shared/definition"; |
| 8 | import * as GitLab from "@t3tools/source-control-gitlab/shared/definition"; |
| 9 | |
| 10 | export { canonicalizePullRequestUrl as canonicalizeGitCafePullRequestUrl } from "@t3tools/source-control-gitcafe/shared/definition"; |
| 11 | |
| 12 | /** |
| 13 | * GitHub comes first to preserve the client default for repositories with an unknown host. |
| 14 | * GitCafe and Cursor Origin claim URLs first because GitHub and Forgejo accept the same routes on |
| 15 | * any hostname. |
| 16 | * Remote recognition needs its own order because host labels can overlap (`gitea.github.example`). |
| 17 | */ |
| 18 | export const builtInSourceControlDefinitions = makeSourceControlDefinitionRegistry( |
| 19 | [ |
| 20 | GitHub.definition, |
| 21 | CursorOrigin.definition, |
| 22 | GitLab.definition, |
| 23 | GitCafe.definition, |
| 24 | Forgejo.definition, |
| 25 | Bitbucket.definition, |
| 26 | AzureDevOps.definition, |
| 27 | ], |
| 28 | { |
| 29 | claimChangeRequestUrlsFirst: [ |
| 30 | GitCafe.definition.kind, |
| 31 | CursorOrigin.definition.kind, |
| 32 | AzureDevOps.definition.kind, |
| 33 | ], |
| 34 | recognizeRemotesIn: [ |
| 35 | GitCafe.definition.kind, |
| 36 | CursorOrigin.definition.kind, |
| 37 | Forgejo.definition.kind, |
| 38 | GitHub.definition.kind, |
| 39 | GitLab.definition.kind, |
| 40 | AzureDevOps.definition.kind, |
| 41 | Bitbucket.definition.kind, |
| 42 | ], |
| 43 | }, |
| 44 | ); |