mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
fix: clean up extension ci failures
This commit is contained in:
@@ -77,7 +77,7 @@ function isoDateExclusiveEnd(value: string): string {
|
||||
}
|
||||
|
||||
function freshnessStartTime(freshness: GeminiFreshness, now: Date): string {
|
||||
const start = new Date(now.getTime());
|
||||
const start = new Date(now);
|
||||
start.setUTCDate(start.getUTCDate() - GEMINI_FRESHNESS_DAYS[freshness]);
|
||||
return start.toISOString();
|
||||
}
|
||||
|
||||
@@ -254,7 +254,8 @@ describe("google web search provider", () => {
|
||||
|
||||
await tool?.execute({ query: "latest ai news", freshness: "week" });
|
||||
|
||||
const body = JSON.parse(String(mockFetch.mock.calls[0]?.[1]?.body)) as {
|
||||
const init = mockFetch.mock.calls[0]?.[1] as { body?: unknown } | undefined;
|
||||
const body = JSON.parse(String(init?.body)) as {
|
||||
tools?: Array<{ google_search?: { timeRangeFilter?: unknown } }>;
|
||||
};
|
||||
expect(body.tools?.[0]?.google_search?.timeRangeFilter).toEqual({
|
||||
@@ -289,7 +290,8 @@ describe("google web search provider", () => {
|
||||
date_before: "2026-04-30",
|
||||
});
|
||||
|
||||
const body = JSON.parse(String(mockFetch.mock.calls[0]?.[1]?.body)) as {
|
||||
const init = mockFetch.mock.calls[0]?.[1] as { body?: unknown } | undefined;
|
||||
const body = JSON.parse(String(init?.body)) as {
|
||||
tools?: Array<{ google_search?: { timeRangeFilter?: unknown } }>;
|
||||
};
|
||||
expect(body.tools?.[0]?.google_search?.timeRangeFilter).toEqual({
|
||||
|
||||
@@ -582,7 +582,7 @@ export async function prepareSlackMessage(params: {
|
||||
const ackReactionMessageTs = message.ts;
|
||||
const allowToolOnlyStatusReaction =
|
||||
statusReactionsExplicitlyEnabled &&
|
||||
(effectiveWasMentioned || mentionDecision.shouldBypassMention === true);
|
||||
(effectiveWasMentioned || mentionDecision.shouldBypassMention);
|
||||
const shouldSendAckReaction =
|
||||
shouldAckReaction() && (!sourceRepliesAreToolOnly || allowToolOnlyStatusReaction);
|
||||
const statusReactionsWillHandle =
|
||||
|
||||
Reference in New Issue
Block a user