File size: 382 Bytes
eb3f11e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import "./tools-manager.js";

type ToolsManagerTestApi = {
  testing: {
    downloadFile(url: string, dest: string, maxBytes: number): Promise<void>;
  };
};

function getTestApi(): ToolsManagerTestApi {
  return (globalThis as Record<PropertyKey, unknown>)[
    Symbol.for("openclaw.toolsManagerTestApi")
  ] as ToolsManagerTestApi;
}

export const testing = getTestApi().testing;