fix(openclaw): batch 18 (3 files)
This commit is contained in:
@@ -22,9 +22,7 @@ export function shellEscapeArg(value: string): string {
|
||||
|
||||
export function resolveCommandTimeoutMs(
|
||||
gatewayTimeout?: number,
|
||||
envTimeoutRaw =
|
||||
process.env.OMO_OPENCLAW_COMMAND_TIMEOUT_MS
|
||||
?? process.env.OMX_OPENCLAW_COMMAND_TIMEOUT_MS,
|
||||
envTimeoutRaw = process.env.OMO_OPENCLAW_COMMAND_TIMEOUT_MS,
|
||||
): number {
|
||||
const parseFinite = (value: unknown): number | undefined => {
|
||||
if (typeof value !== "number" || !Number.isFinite(value)) return undefined
|
||||
|
||||
@@ -9,9 +9,7 @@ import { getCurrentTmuxSession, captureTmuxPane } from "./tmux"
|
||||
import { startReplyListener, stopReplyListener } from "./reply-listener"
|
||||
import type { OpenClawConfig, OpenClawContext, OpenClawPayload, WakeResult } from "./types"
|
||||
|
||||
const DEBUG =
|
||||
process.env.OMO_OPENCLAW_DEBUG === "1"
|
||||
|| process.env.OMX_OPENCLAW_DEBUG === "1"
|
||||
const DEBUG = process.env.OMO_OPENCLAW_DEBUG === "1"
|
||||
|
||||
function buildWhitelistedContext(context: OpenClawContext): OpenClawContext {
|
||||
const result: OpenClawContext = {}
|
||||
|
||||
@@ -9,7 +9,7 @@ function resolveReplyListenerHomeDir(): string {
|
||||
}
|
||||
|
||||
export function getReplyListenerStateDir(): string {
|
||||
return join(resolveReplyListenerHomeDir(), ".omx", "state")
|
||||
return join(resolveReplyListenerHomeDir(), ".omo", "openclaw", "state")
|
||||
}
|
||||
|
||||
export function getReplyListenerPidFilePath(): string {
|
||||
|
||||
Reference in New Issue
Block a user