refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -6,7 +6,7 @@ import {
normalizeAccountId,
DEFAULT_ACCOUNT_ID,
} from "./accounts.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
describe("LINE accounts", () => {
const originalEnv = { ...process.env };
@@ -23,7 +23,7 @@ describe("LINE accounts", () => {
describe("resolveLineAccount", () => {
it("resolves account from config", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
enabled: true,
@@ -48,7 +48,7 @@ describe("LINE accounts", () => {
process.env.LINE_CHANNEL_ACCESS_TOKEN = "env-token";
process.env.LINE_CHANNEL_SECRET = "env-secret";
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
enabled: true,
@@ -64,7 +64,7 @@ describe("LINE accounts", () => {
});
it("resolves named account", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
enabled: true,
@@ -90,7 +90,7 @@ describe("LINE accounts", () => {
});
it("returns empty token when not configured", () => {
const cfg: ClawdbotConfig = {};
const cfg: MoltbotConfig = {};
const account = resolveLineAccount({ cfg });
@@ -102,7 +102,7 @@ describe("LINE accounts", () => {
describe("listLineAccountIds", () => {
it("returns default account when configured at base level", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
channelAccessToken: "test-token",
@@ -116,7 +116,7 @@ describe("LINE accounts", () => {
});
it("returns named accounts", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
accounts: {
@@ -135,7 +135,7 @@ describe("LINE accounts", () => {
it("returns default from env", () => {
process.env.LINE_CHANNEL_ACCESS_TOKEN = "env-token";
const cfg: ClawdbotConfig = {};
const cfg: MoltbotConfig = {};
const ids = listLineAccountIds(cfg);
@@ -145,7 +145,7 @@ describe("LINE accounts", () => {
describe("resolveDefaultLineAccountId", () => {
it("returns default when configured", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
channelAccessToken: "test-token",
@@ -159,7 +159,7 @@ describe("LINE accounts", () => {
});
it("returns first named account when default not configured", () => {
const cfg: ClawdbotConfig = {
const cfg: MoltbotConfig = {
channels: {
line: {
accounts: {