mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +00:00
style: fix formatting in skill-commands.test.ts and provider.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,8 +72,11 @@ let resolveSkillCommandInvocation: typeof import("./skill-commands.js").resolveS
|
|||||||
let skillCommandsTesting: typeof import("./skill-commands.js").__testing;
|
let skillCommandsTesting: typeof import("./skill-commands.js").__testing;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
({ listSkillCommandsForAgents, resolveSkillCommandInvocation, __testing: skillCommandsTesting } =
|
({
|
||||||
await import("./skill-commands.js"));
|
listSkillCommandsForAgents,
|
||||||
|
resolveSkillCommandInvocation,
|
||||||
|
__testing: skillCommandsTesting,
|
||||||
|
} = await import("./skill-commands.js"));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveSkillCommandInvocation", () => {
|
describe("resolveSkillCommandInvocation", () => {
|
||||||
|
|||||||
@@ -414,9 +414,7 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
|
|||||||
|
|
||||||
const maxDiscordCommands = 100;
|
const maxDiscordCommands = 100;
|
||||||
let skillCommands =
|
let skillCommands =
|
||||||
nativeEnabled && nativeSkillsEnabled
|
nativeEnabled && nativeSkillsEnabled ? listSkillCommandsForAgents({ cfg }) : [];
|
||||||
? listSkillCommandsForAgents({ cfg })
|
|
||||||
: [];
|
|
||||||
let commandSpecs = nativeEnabled
|
let commandSpecs = nativeEnabled
|
||||||
? listNativeCommandSpecsForConfig(cfg, { skillCommands, provider: "discord" })
|
? listNativeCommandSpecsForConfig(cfg, { skillCommands, provider: "discord" })
|
||||||
: [];
|
: [];
|
||||||
|
|||||||
Reference in New Issue
Block a user