mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 06:02:13 +00:00
refactor: dedupe bluebubbles and zalouser readers
This commit is contained in:
@@ -3,6 +3,7 @@ import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { normalizeOptionalString } from "../src/shared/string-coerce.ts";
|
||||
|
||||
type Args = {
|
||||
agentId: string;
|
||||
@@ -36,7 +37,7 @@ const parseArgs = (): Args => {
|
||||
continue;
|
||||
}
|
||||
if (arg === "--session-key" && args[i + 1]) {
|
||||
sessionKey = String(args[++i]).trim() || undefined;
|
||||
sessionKey = normalizeOptionalString(String(args[++i]));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user