Initial commit: DevClaw with Gitea support

This commit is contained in:
2026-02-15 08:58:46 +00:00
parent 01ad5d326c
commit ff73115efc
4 changed files with 332 additions and 12 deletions

View File

@@ -136,10 +136,20 @@ export function createProjectRegisterTool() {
const healthy = await provider.healthCheck();
if (!healthy) {
const cliName = providerType === "github" ? "gh" : "glab";
const cliInstallUrl = providerType === "github"
? "https://cli.github.com"
: "https://gitlab.com/gitlab-org/cli";
let cliName = "";
let cliInstallUrl = "";
if (providerType === "github") {
cliName = "gh";
cliInstallUrl = "https://cli.github.com";
} else if (providerType === "gitlab") {
cliName = "glab";
cliInstallUrl = "https://gitlab.com/gitlab-org/cli";
} else if (providerType === "gitea") {
cliName = "curl";
cliInstallUrl = "https://curl.se";
}
throw new Error(
`${providerType.toUpperCase()} health check failed for ${repoPath}. ` +
`Detected provider: ${providerType}. ` +