mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
fix(agents): satisfy tool authority lint
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user