mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 13:48:39 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -13,7 +13,7 @@ const tempDirs: string[] = [];
|
||||
const EMPTY_PLUGIN_SCHEMA = { type: "object", additionalProperties: false, properties: {} };
|
||||
|
||||
function makeTempDir() {
|
||||
const dir = path.join(os.tmpdir(), `clawdbot-plugin-tools-${randomUUID()}`);
|
||||
const dir = path.join(os.tmpdir(), `moltbot-plugin-tools-${randomUUID()}`);
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
tempDirs.push(dir);
|
||||
return dir;
|
||||
@@ -24,7 +24,7 @@ function writePlugin(params: { id: string; body: string }): TempPlugin {
|
||||
const file = path.join(dir, `${params.id}.js`);
|
||||
fs.writeFileSync(file, params.body, "utf-8");
|
||||
fs.writeFileSync(
|
||||
path.join(dir, "clawdbot.plugin.json"),
|
||||
path.join(dir, "moltbot.plugin.json"),
|
||||
JSON.stringify(
|
||||
{
|
||||
id: params.id,
|
||||
|
||||
Reference in New Issue
Block a user