refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import {
estimateUsageCost,
formatTokenCount,
@@ -35,7 +35,7 @@ describe("usage-format", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const cost = resolveModelCostConfig({
provider: "test",
+2 -2
View File
@@ -1,5 +1,5 @@
import type { NormalizedUsage } from "../agents/usage.js";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
export type ModelCostConfig = {
input: number;
@@ -34,7 +34,7 @@ export function formatUsd(value?: number): string | undefined {
export function resolveModelCostConfig(params: {
provider?: string;
model?: string;
config?: MoltbotConfig;
config?: OpenClawConfig;
}): ModelCostConfig | undefined {
const provider = params.provider?.trim();
const model = params.model?.trim();