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

@@ -1,11 +1,11 @@
import { describe, expect, it } from "vitest";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import { applyExclusiveSlotSelection } from "./slots.js";
describe("applyExclusiveSlotSelection", () => {
it("selects the slot and disables other entries for the same kind", () => {
const config: ClawdbotConfig = {
const config: MoltbotConfig = {
plugins: {
slots: { memory: "memory-core" },
entries: {
@@ -37,7 +37,7 @@ describe("applyExclusiveSlotSelection", () => {
});
it("does nothing when the slot already matches", () => {
const config: ClawdbotConfig = {
const config: MoltbotConfig = {
plugins: {
slots: { memory: "memory" },
entries: {
@@ -59,7 +59,7 @@ describe("applyExclusiveSlotSelection", () => {
});
it("warns when the slot falls back to a default", () => {
const config: ClawdbotConfig = {
const config: MoltbotConfig = {
plugins: {
entries: {
memory: { enabled: true },
@@ -81,7 +81,7 @@ describe("applyExclusiveSlotSelection", () => {
});
it("skips changes when no exclusive slot applies", () => {
const config: ClawdbotConfig = {};
const config: MoltbotConfig = {};
const result = applyExclusiveSlotSelection({
config,
selectedId: "custom",