agent-afk 5.295.7 → 5.295.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/tools/handlers/web-request.d.ts +1 -0
- package/dist/browser/config.d.ts +9 -0
- package/dist/cli.mjs +318 -318
- package/dist/index.mjs +132 -132
- package/dist/telegram.mjs +154 -154
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface WebRequestHandlerOptions {
|
|
|
8
8
|
env?: NodeJS.ProcessEnv;
|
|
9
9
|
domainCheck?: DomainCheckFn;
|
|
10
10
|
recordEffect?: RecordEffectFn;
|
|
11
|
+
readFileSyncFn?: (path: string) => string | undefined;
|
|
11
12
|
}
|
|
12
13
|
export declare function createWebRequestHandler(opts?: WebRequestHandlerOptions): ToolHandler;
|
|
13
14
|
export declare const webRequestHandler: ToolHandler;
|
package/dist/browser/config.d.ts
CHANGED
|
@@ -4,7 +4,16 @@ export interface LoadBrowserConfigOptions {
|
|
|
4
4
|
env?: Record<string, string | undefined>;
|
|
5
5
|
readFileSync?: (path: string) => string | undefined;
|
|
6
6
|
}
|
|
7
|
+
export declare function parseDomainList(raw: string | undefined): readonly string[];
|
|
7
8
|
export declare function loadBrowserConfig(opts?: LoadBrowserConfigOptions): BrowserConfig;
|
|
9
|
+
export interface LoadDomainListsOptions {
|
|
10
|
+
env?: Record<string, string | undefined>;
|
|
11
|
+
readFileSync?: (path: string) => string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function loadDomainLists(opts?: LoadDomainListsOptions): {
|
|
14
|
+
allowedDomains: readonly string[];
|
|
15
|
+
blockedDomains: readonly string[];
|
|
16
|
+
};
|
|
8
17
|
export declare function enforceDomainPolicy(url: string, config: BrowserConfig): {
|
|
9
18
|
allowed: true;
|
|
10
19
|
} | {
|