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