refactor: rename clawdbot to moltbot

This commit is contained in:
Keith the Silly Goose 2026-01-28 20:23:56 +13:00
parent fba2375a45
commit 662962980e
13 changed files with 18 additions and 18 deletions

View File

@ -7,7 +7,7 @@ Connects Clawdbot to Gmail via the `gog` CLI.
This is a plugin. To install from source: This is a plugin. To install from source:
```bash ```bash
clawdbot plugins install ./extensions/gmail moltbot plugins install ./extensions/gmail
``` ```
## Features ## Features
@ -25,7 +25,7 @@ clawdbot plugins install ./extensions/gmail
## Configuration ## Configuration
Add to `clawdbot.json`: Add to `moltbot.json`:
```json5 ```json5
{ {

View File

@ -1,10 +1,10 @@
{ {
"name": "gmail", "name": "@mcinteerj/moltbot-gmail",
"version": "1.0.0", "version": "1.0.2",
"description": "Gmail channel for Clawdbot", "description": "Gmail channel for Moltbot",
"type": "module", "type": "module",
"main": "index.ts", "main": "index.ts",
"clawdbot": { "moltbot": {
"extensions": [ "extensions": [
"./index.ts" "./index.ts"
], ],
@ -34,7 +34,7 @@
"sanitize-html": "^2.14.0" "sanitize-html": "^2.14.0"
}, },
"devDependencies": { "devDependencies": {
"clawdbot": "workspace:*", "moltbot": "workspace:*",
"@types/jsdom": "^21.1.7", "@types/jsdom": "^21.1.7",
"@types/dompurify": "^3.0.5", "@types/dompurify": "^3.0.5",
"@types/marked": "^6.0.0", "@types/marked": "^6.0.0",

View File

@ -2,7 +2,7 @@ import {
type ChannelConfig, type ChannelConfig,
type ResolvedChannelAccount, type ResolvedChannelAccount,
DEFAULT_ACCOUNT_ID, DEFAULT_ACCOUNT_ID,
} from "clawdbot/plugin-sdk"; } from "moltbot/plugin-sdk";
import type { GmailConfig } from "./config.js"; import type { GmailConfig } from "./config.js";
export interface ResolvedGmailAccount extends ResolvedChannelAccount { export interface ResolvedGmailAccount extends ResolvedChannelAccount {

View File

@ -9,7 +9,7 @@ import {
type ClawdbotConfig, type ClawdbotConfig,
type ChannelGatewayContext, type ChannelGatewayContext,
type MsgContext, type MsgContext,
} from "clawdbot/plugin-sdk"; } from "moltbot/plugin-sdk";
import { GmailConfigSchema } from "./config.js"; import { GmailConfigSchema } from "./config.js";
import { import {
resolveGmailAccount, resolveGmailAccount,

View File

@ -2,8 +2,8 @@ import fs from "node:fs/promises";
import path from "node:path"; import path from "node:path";
import os from "node:os"; import os from "node:os";
// Store historyIds in ~/.clawdbot/state/gmail/history-{account}.json // Store historyIds in ~/.moltbot/state/gmail/history-{account}.json
const STORE_DIR = path.join(os.homedir(), ".clawdbot", "state", "gmail"); const STORE_DIR = path.join(os.homedir(), ".moltbot", "state", "gmail");
interface HistoryState { interface HistoryState {
historyId: string; historyId: string;

View File

@ -1,4 +1,4 @@
import { type InboundMessage } from "clawdbot/plugin-sdk"; import { type InboundMessage } from "moltbot/plugin-sdk";
import { extractTextBody } from "./strip-quotes.js"; import { extractTextBody } from "./strip-quotes.js";
import { extractAttachments } from "./attachments.js"; import { extractAttachments } from "./attachments.js";

View File

@ -4,7 +4,7 @@ import fs from "node:fs/promises";
import path from "node:path"; import path from "node:path";
import os from "node:os"; import os from "node:os";
import lockfile from "proper-lockfile"; import lockfile from "proper-lockfile";
import type { ChannelLogSink, InboundMessage } from "clawdbot/plugin-sdk"; import type { ChannelLogSink, InboundMessage } from "moltbot/plugin-sdk";
import type { ResolvedGmailAccount } from "./accounts.js"; import type { ResolvedGmailAccount } from "./accounts.js";
import { loadHistoryId, saveHistoryId } from "./history-store.js"; import { loadHistoryId, saveHistoryId } from "./history-store.js";
import { parseInboundGmail, parseSearchGmail, type GogPayload, type GogSearchMessage } from "./inbound.js"; import { parseInboundGmail, parseSearchGmail, type GogPayload, type GogSearchMessage } from "./inbound.js";

View File

@ -1,5 +1,5 @@
import type { ClawdbotConfig, ChannelOnboardingAdapter } from "clawdbot/plugin-sdk"; import type { ClawdbotConfig, ChannelOnboardingAdapter } from "moltbot/plugin-sdk";
import { promptAccountId } from "clawdbot/plugin-sdk"; import { promptAccountId } from "moltbot/plugin-sdk";
import { exec } from "node:child_process"; import { exec } from "node:child_process";
import { promisify } from "node:util"; import { promisify } from "node:util";
import { listGmailAccountIds, resolveDefaultGmailAccountId } from "./accounts.js"; import { listGmailAccountIds, resolveDefaultGmailAccountId } from "./accounts.js";

View File

@ -1,7 +1,7 @@
import { spawn } from "node:child_process"; import { spawn } from "node:child_process";
import { marked } from "marked"; import { marked } from "marked";
import sanitizeHtml from "sanitize-html"; import sanitizeHtml from "sanitize-html";
import { type OutboundContext, type ClawdbotConfig } from "clawdbot/plugin-sdk"; import { type OutboundContext, type ClawdbotConfig } from "moltbot/plugin-sdk";
import { resolveGmailAccount } from "./accounts.js"; import { resolveGmailAccount } from "./accounts.js";
import { isGmailThreadId } from "./normalize.js"; import { isGmailThreadId } from "./normalize.js";

View File

@ -1,4 +1,4 @@
import type { PluginRuntime } from "clawdbot/plugin-sdk"; import type { PluginRuntime } from "moltbot/plugin-sdk";
let runtime: PluginRuntime | null = null; let runtime: PluginRuntime | null = null;

View File

@ -1,4 +1,4 @@
import { type ChannelThreadingAdapter } from "clawdbot/plugin-sdk"; import { type ChannelThreadingAdapter } from "moltbot/plugin-sdk";
export const gmailThreading: ChannelThreadingAdapter = { export const gmailThreading: ChannelThreadingAdapter = {
buildToolContext: ({ context, hasRepliedRef }) => ({ buildToolContext: ({ context, hasRepliedRef }) => ({