chore: rename project to clawdbot

This commit is contained in:
Peter Steinberger
2026-01-04 14:32:47 +00:00
parent d48dc71fa4
commit 246adaa119
841 changed files with 4590 additions and 4328 deletions

View File

@@ -18,7 +18,7 @@ export type GatewayBonjourAdvertiseOpts = {
};
function isDisabledByEnv() {
if (process.env.CLAWDIS_DISABLE_BONJOUR === "1") return true;
if (process.env.CLAWDBOT_DISABLE_BONJOUR === "1") return true;
if (process.env.NODE_ENV === "test") return true;
if (process.env.VITEST) return true;
return false;
@@ -26,12 +26,12 @@ function isDisabledByEnv() {
function safeServiceName(name: string) {
const trimmed = name.trim();
return trimmed.length > 0 ? trimmed : "Clawdis";
return trimmed.length > 0 ? trimmed : "Clawdbot";
}
function prettifyInstanceName(name: string) {
const normalized = name.trim().replace(/\s+/g, " ");
return normalized.replace(/\s+\(Clawdis\)\s*$/i, "").trim() || normalized;
return normalized.replace(/\s+\(Clawdbot\)\s*$/i, "").trim() || normalized;
}
type BonjourService = {
@@ -94,11 +94,11 @@ export async function startGatewayBonjourAdvertiser(
.hostname()
.replace(/\.local$/i, "")
.split(".")[0]
.trim() || "clawdis";
.trim() || "clawdbot";
const instanceName =
typeof opts.instanceName === "string" && opts.instanceName.trim()
? opts.instanceName.trim()
: `${hostname} (Clawdis)`;
: `${hostname} (Clawdbot)`;
const displayName = prettifyInstanceName(instanceName);
const txtBase: Record<string, string> = {
@@ -126,7 +126,7 @@ export async function startGatewayBonjourAdvertiser(
if (typeof opts.bridgePort === "number" && opts.bridgePort > 0) {
const bridge = responder.createService({
name: safeServiceName(instanceName),
type: "clawdis-bridge",
type: "clawdbot-bridge",
protocol: Protocol.TCP,
port: opts.bridgePort,
domain: "local",