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

@@ -1,8 +1,8 @@
import { spawn } from "node:child_process";
import {
type ClawdisConfig,
CONFIG_PATH_CLAWDIS,
type ClawdbotConfig,
CONFIG_PATH_CLAWDBOT,
loadConfig,
readConfigFileSnapshot,
resolveGatewayPort,
@@ -96,7 +96,7 @@ export async function runGmailSetup(opts: GmailSetupOptions) {
const configSnapshot = await readConfigFileSnapshot();
if (!configSnapshot.valid) {
throw new Error(`Config invalid: ${CONFIG_PATH_CLAWDIS}`);
throw new Error(`Config invalid: ${CONFIG_PATH_CLAWDBOT}`);
}
const baseConfig = configSnapshot.config;
@@ -206,7 +206,7 @@ export async function runGmailSetup(opts: GmailSetupOptions) {
true,
);
const nextConfig: ClawdisConfig = {
const nextConfig: ClawdbotConfig = {
...baseConfig,
hooks: {
...baseConfig.hooks,
@@ -274,8 +274,8 @@ export async function runGmailSetup(opts: GmailSetupOptions) {
defaultRuntime.log(`- subscription: ${subscription}`);
defaultRuntime.log(`- push endpoint: ${pushEndpoint}`);
defaultRuntime.log(`- hook url: ${hookUrl}`);
defaultRuntime.log(`- config: ${CONFIG_PATH_CLAWDIS}`);
defaultRuntime.log("Next: clawdis hooks gmail run");
defaultRuntime.log(`- config: ${CONFIG_PATH_CLAWDBOT}`);
defaultRuntime.log("Next: clawdbot hooks gmail run");
}
export async function runGmailService(opts: GmailRunOptions) {

View File

@@ -10,7 +10,7 @@ beforeEach(() => {
describe("resolvePythonExecutablePath", () => {
it("resolves a working python path and caches the result", async () => {
const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "clawdis-python-"));
const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-python-"));
const originalPath = process.env.PATH;
try {
const realPython = path.join(tmp, "python-real");

View File

@@ -7,7 +7,7 @@
import { type ChildProcess, spawn } from "node:child_process";
import { hasBinary } from "../agents/skills.js";
import type { ClawdisConfig } from "../config/config.js";
import type { ClawdbotConfig } from "../config/config.js";
import { createSubsystemLogger } from "../logging.js";
import { runCommandWithTimeout } from "../process/exec.js";
import {
@@ -104,7 +104,7 @@ export type GmailWatcherStartResult = {
* Called automatically by the gateway if hooks.gmail is configured.
*/
export async function startGmailWatcher(
cfg: ClawdisConfig,
cfg: ClawdbotConfig,
): Promise<GmailWatcherStartResult> {
// Check if gmail hooks are configured
if (!cfg.hooks?.enabled) {

View File

@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { type ClawdisConfig, DEFAULT_GATEWAY_PORT } from "../config/config.js";
import { type ClawdbotConfig, DEFAULT_GATEWAY_PORT } from "../config/config.js";
import {
buildDefaultHookUrl,
buildTopicPath,
@@ -16,7 +16,7 @@ const baseConfig = {
pushToken: "push-token",
},
},
} satisfies ClawdisConfig;
} satisfies ClawdbotConfig;
describe("gmail hook config", () => {
it("builds default hook url", () => {

View File

@@ -1,7 +1,7 @@
import { randomBytes } from "node:crypto";
import {
type ClawdisConfig,
type ClawdbotConfig,
DEFAULT_GATEWAY_PORT,
type HooksGmailTailscaleMode,
resolveGatewayPort,
@@ -98,7 +98,7 @@ export function buildDefaultHookUrl(
}
export function resolveGmailHookRuntimeConfig(
cfg: ClawdisConfig,
cfg: ClawdbotConfig,
overrides: GmailHookOverrides,
): { ok: true; value: GmailHookRuntimeConfig } | { ok: false; error: string } {
const hooks = cfg.hooks;