agent-afk 5.81.2 → 5.81.4
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/playwright-hints.d.ts +2 -3
- package/dist/agent/tools/handlers/read-denylist.d.ts +3 -0
- package/dist/browser/playwright-missing.d.ts +10 -0
- package/dist/cli.mjs +476 -474
- package/dist/index.mjs +165 -163
- package/dist/telegram.mjs +210 -208
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ToolFailureClass } from '../../trace/types.js';
|
|
2
|
+
export { PLAYWRIGHT_MISSING_HINTS, isPlaywrightMissing, playwrightInstallCommand, playwrightMissingHint, decoratePlaywrightLaunchError, hasPlaywrightInstallHint, resetPlaywrightInstallCommandCache, } from '../../../browser/playwright-missing.js';
|
|
3
|
+
export type { PlaywrightHintOptions } from '../../../browser/playwright-missing.js';
|
|
2
4
|
export declare function browserTimeoutFailureClass(err: unknown): ToolFailureClass | undefined;
|
|
3
|
-
export declare const PLAYWRIGHT_MISSING_HINTS: readonly ["Cannot find package", "ERR_MODULE_NOT_FOUND", "Executable doesn't exist"];
|
|
4
|
-
export declare function isPlaywrightMissing(msg: string): boolean;
|
|
5
|
-
export declare function playwrightMissingHint(msg: string): string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const BUILTIN_READ_DENYLIST: readonly string[];
|
|
2
|
+
export declare const READ_ALLOWLIST_REL: readonly string[];
|
|
3
|
+
export declare const BUILTIN_READ_ALLOWLIST: readonly string[];
|
|
4
|
+
export declare function resolveExceptionEntry(entry: string): string;
|
|
2
5
|
export declare function getReadDenylist(): readonly string[];
|
|
3
6
|
export declare function _resetReadDenylistCacheForTests(): void;
|
|
4
7
|
export declare function isReadDenied(filePath: string): {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const PLAYWRIGHT_MISSING_HINTS: readonly ["Cannot find package", "ERR_MODULE_NOT_FOUND", "Executable doesn't exist"];
|
|
2
|
+
export declare function isPlaywrightMissing(err: unknown): boolean;
|
|
3
|
+
export declare function playwrightInstallCommand(): string;
|
|
4
|
+
export declare function resetPlaywrightInstallCommandCache(): void;
|
|
5
|
+
export declare function hasPlaywrightInstallHint(text: string): boolean;
|
|
6
|
+
export interface PlaywrightHintOptions {
|
|
7
|
+
headless?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function playwrightMissingHint(err: unknown, opts?: PlaywrightHintOptions): string;
|
|
10
|
+
export declare function decoratePlaywrightLaunchError(err: unknown, headless: boolean): unknown;
|