agent-afk 5.318.13 → 5.319.1

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.
@@ -0,0 +1,11 @@
1
+ export declare const MAX_PLAN_FEEDBACK_CHARS = 4000;
2
+ export type PlanFeedback = {
3
+ kind: 'none';
4
+ } | {
5
+ kind: 'empty';
6
+ } | {
7
+ kind: 'feedback';
8
+ text: string;
9
+ };
10
+ export declare function readPlanFeedback(content: Record<string, unknown> | undefined): PlanFeedback;
11
+ export declare function planFeedbackResult(text: string): string;
@@ -3,10 +3,4 @@ export interface RecheckablePage {
3
3
  url(): string;
4
4
  goBack(): Promise<unknown>;
5
5
  }
6
- export interface RecheckOptions {
7
- lookupFn?: (hostname: string) => Promise<readonly {
8
- address: string;
9
- }[]>;
10
- allowPrivateHosts?: boolean;
11
- }
12
- export declare function recheckLandedUrl(page: RecheckablePage, config: BrowserConfig, clearedUrl: string, invalidateSession: () => Promise<void>, opts?: RecheckOptions): Promise<BlockedByPolicy | null>;
6
+ export declare function recheckLandedUrl(page: RecheckablePage, config: BrowserConfig, clearedUrl: string, invalidateSession: () => Promise<void>): Promise<BlockedByPolicy | null>;
@@ -15,4 +15,4 @@ export declare function watchEgressRefusals(page: Page, log: RefusalLog | undefi
15
15
  export declare function mainRefusalOutcome(v: RefusalVerdict, url: string): BlockedByPolicy | null;
16
16
  export declare function renderRefusalError(v: RefusalVerdict): EgressBlockedError | undefined;
17
17
  export declare function invalidateOnRefusal(outcome: BlockedByPolicy, invalidate: () => Promise<void>): Promise<BlockedByPolicy>;
18
- export declare function runActionWithRetry(execute: () => Promise<void>, consumeTrap: () => unknown, watch: EgressWatch): Promise<unknown>;
18
+ export declare function runActionWithRetry(execute: () => Promise<void>, watch: EgressWatch): Promise<unknown>;
@@ -1,14 +1,5 @@
1
- import type { BrowserContext, Page, Response } from 'playwright';
1
+ import type { BrowserContext } from 'playwright';
2
2
  import type { BlockedByPolicy } from '../types.js';
3
3
  export declare function checkNavigationEgress(url: string): Promise<BlockedByPolicy | null>;
4
- export declare function egressBlockOutcome(err: unknown, url: string): BlockedByPolicy | null;
5
- export declare function watchMainFrameNavigation(page: Page): () => Response | null;
6
- export declare function checkRedirectChain(response: Response | null, finalUrl: string, proxied?: boolean): Promise<BlockedByPolicy | null>;
7
- export declare class RequestGuardTrap {
8
- private lastError;
9
- install(context: BrowserContext): Promise<void>;
10
- clear(): void;
11
- consume(): unknown;
12
- }
13
4
  export declare function installRenderRouteGuard(context: BrowserContext, guard: (url: string) => Promise<void>, onRefusal: (err: unknown) => void): Promise<void>;
14
5
  export { invalidateOnRefusal, mainRefusalOutcome, renderRefusalError, runActionWithRetry, watchEgressRefusals } from './egress-attribution.js';
@@ -17,9 +17,7 @@ export declare class BrowserLauncher {
17
17
  ensureContext(sessionId: string): Promise<BrowserContext>;
18
18
  ensurePage(sessionId: string): Promise<Page>;
19
19
  getPage(sessionId: string): Page | undefined;
20
- consumeRequestGuardError(sessionId: string): unknown;
21
20
  egressLog(): RefusalLog | undefined;
22
- clearRequestGuardError(sessionId: string): void;
23
21
  renderHtml(url: string, opts: {
24
22
  timeoutMs: number;
25
23
  waitUntil: 'load' | 'domcontentloaded' | 'networkidle';