mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 20:51:10 +00:00
style: apply oxfmt updates
This commit is contained in:
@@ -29,9 +29,8 @@ vi.mock("./commands-compact.runtime.js", () => ({
|
||||
waitForEmbeddedPiRunEnd: vi.fn().mockResolvedValue(undefined),
|
||||
}));
|
||||
|
||||
const { compactEmbeddedPiSession, resolveSessionFilePathOptions } = await import(
|
||||
"./commands-compact.runtime.js"
|
||||
);
|
||||
const { compactEmbeddedPiSession, resolveSessionFilePathOptions } =
|
||||
await import("./commands-compact.runtime.js");
|
||||
|
||||
function buildCompactParams(
|
||||
commandBodyNormalized: string,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import { logVerbose } from "../../globals.js";
|
||||
import {
|
||||
@@ -5,7 +6,6 @@ import {
|
||||
normalizeOptionalLowercaseString,
|
||||
normalizeOptionalString,
|
||||
} from "../../shared/string-coerce.js";
|
||||
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
|
||||
import type { CommandHandler } from "./commands-types.js";
|
||||
import { stripMentions, stripStructuralPrefixes } from "./mentions.js";
|
||||
|
||||
|
||||
@@ -208,9 +208,7 @@ export function resolveConversationBindingContext(
|
||||
channel,
|
||||
accountId,
|
||||
conversationId: focusedConversationId,
|
||||
...(focusedParentConversationId
|
||||
? { parentConversationId: focusedParentConversationId }
|
||||
: {}),
|
||||
...(focusedParentConversationId ? { parentConversationId: focusedParentConversationId } : {}),
|
||||
...(threadId ? { threadId } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,14 +31,12 @@ function resolveBindingForRequester(
|
||||
requester: ConversationRef,
|
||||
bindings: SessionBindingRecord[],
|
||||
): SessionBindingRecord | null {
|
||||
const matchingChannelAccount = bindings.filter(
|
||||
(entry) => {
|
||||
const conversation = normalizeConversationRef(entry.conversation);
|
||||
return (
|
||||
conversation.channel === requester.channel && conversation.accountId === requester.accountId
|
||||
);
|
||||
},
|
||||
);
|
||||
const matchingChannelAccount = bindings.filter((entry) => {
|
||||
const conversation = normalizeConversationRef(entry.conversation);
|
||||
return (
|
||||
conversation.channel === requester.channel && conversation.accountId === requester.accountId
|
||||
);
|
||||
});
|
||||
if (matchingChannelAccount.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user