style: oxfmt
This commit is contained in:
@@ -59,4 +59,3 @@ describe("memory tools", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export async function getReplyFromConfig(
|
|||||||
silentToken: SILENT_REPLY_TOKEN,
|
silentToken: SILENT_REPLY_TOKEN,
|
||||||
log: defaultRuntime.log,
|
log: defaultRuntime.log,
|
||||||
});
|
});
|
||||||
opts?.onTypingController?.(typing);
|
opts?.onTypingController?.(typing);
|
||||||
|
|
||||||
const finalized = finalizeInboundContext(ctx);
|
const finalized = finalizeInboundContext(ctx);
|
||||||
|
|
||||||
|
|||||||
@@ -15,4 +15,3 @@ export function buildTestCtx(overrides: Partial<MsgContext> = {}): FinalizedMsgC
|
|||||||
...overrides,
|
...overrides,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main().catch((err) => {
|
void main().catch((err) => {
|
||||||
console.error("[clawdbot] Relay failed:", err instanceof Error ? (err.stack ?? err.message) : err);
|
console.error(
|
||||||
|
"[clawdbot] Relay failed:",
|
||||||
|
err instanceof Error ? (err.stack ?? err.message) : err,
|
||||||
|
);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -467,10 +467,10 @@ export async function prepareSlackMessage(params: {
|
|||||||
MediaPath: media?.path,
|
MediaPath: media?.path,
|
||||||
MediaType: media?.contentType,
|
MediaType: media?.contentType,
|
||||||
MediaUrl: media?.path,
|
MediaUrl: media?.path,
|
||||||
CommandAuthorized: commandAuthorized,
|
CommandAuthorized: commandAuthorized,
|
||||||
OriginatingChannel: "slack" as const,
|
OriginatingChannel: "slack" as const,
|
||||||
OriginatingTo: slackTo,
|
OriginatingTo: slackTo,
|
||||||
}) satisfies FinalizedMsgContext;
|
}) satisfies FinalizedMsgContext;
|
||||||
|
|
||||||
const replyTarget = ctxPayload.To ?? undefined;
|
const replyTarget = ctxPayload.To ?? undefined;
|
||||||
if (!replyTarget) return null;
|
if (!replyTarget) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user