fix(agents): satisfy tool authority lint

This commit is contained in:
Vincent Koc
2026-08-07 08:18:23 +02:00
parent 228478bffe
commit 63c6cd9a02
2 changed files with 6 additions and 6 deletions
@@ -163,7 +163,7 @@ export function runCodexAppServerAttempt(
options.agentHarnessCodingToolsFactory ??
(async (_attempt, toolOptions) => {
const factory = dynamicToolBuildState.openClawCodingToolsFactory;
return factory ? await factory(toolOptions) : [];
return factory ? factory(toolOptions) : [];
}),
bindingStore: options.bindingStore ?? testCodexAppServerBindingStore,
...(clientFactory ? { clientFactory } : {}),
@@ -654,11 +654,11 @@ describe("installOpenClawPluginSdkNativeResolver", () => {
const authoritySpecifier = "openclaw/plugin-sdk/agent-harness-tool-authority-runtime";
expect(installedAliases).not.toContain(authoritySpecifier);
const resolveFilename = (
Module as unknown as {
_resolveFilename: (request: string, parent: NodeJS.Module, isMain: boolean) => string;
}
)._resolveFilename;
const resolveFilename = Reflect.get(Module, "_resolveFilename") as (
request: string,
parent: NodeJS.Module,
isMain: boolean,
) => string;
expect(() =>
resolveFilename(
authoritySpecifier,