agent-afk 5.308.2 → 5.308.3

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,3 @@
1
+ import type { SessionMetadata } from '../types/session-types.js';
2
+ export declare function isReducedToolSurface(metadata: Pick<SessionMetadata, 'skills' | 'tools'>): boolean;
3
+ export declare function emitReducedSurfaceWarning(metadata: Pick<SessionMetadata, 'skills' | 'tools'>): void;
@@ -22,7 +22,6 @@ export interface PutOpts {
22
22
  export declare class StateStore {
23
23
  private db;
24
24
  constructor(dbPath: string);
25
- private enableWalMode;
26
25
  private initSchema;
27
26
  private runTtlGc;
28
27
  get(namespace: string, key: string): QueryRow | null;
@@ -0,0 +1,7 @@
1
+ import type BetterSqlite3 from 'better-sqlite3';
2
+ export interface ConfigureSqliteOptions {
3
+ busyTimeoutMs?: number;
4
+ walMaxAttempts?: number;
5
+ walBackoffMs?: number;
6
+ }
7
+ export declare function configureSqliteConnection(db: BetterSqlite3.Database, options?: ConfigureSqliteOptions): void;
@@ -179,7 +179,7 @@ export interface BrowserEventPayload {
179
179
  tool: BrowserEventTool;
180
180
  action?: BrowserActAction;
181
181
  toolUseId: string;
182
- backend?: 'playwright' | 'agent-browser';
182
+ backend?: string;
183
183
  backendReason?: string;
184
184
  target?: BrowserEventTarget;
185
185
  urlBefore: string | null;
@@ -38,6 +38,7 @@ export interface SessionMetadata {
38
38
  claudeCodeVersion?: string;
39
39
  outputStyle?: string;
40
40
  status?: SDKStatus;
41
+ reducedToolSurface?: boolean;
41
42
  }
42
43
  export interface PanelSpec {
43
44
  kind: string;
@@ -30,7 +30,6 @@ export declare class WorkspaceStore {
30
30
  private readonly db;
31
31
  private readonly _subscriptions;
32
32
  constructor(dbPath?: string);
33
- private enableWalMode;
34
33
  publish(entry: WorkspacePublishInput): number;
35
34
  subscribe(subscription: WorkspaceSubscription): void;
36
35
  unsubscribeAll(agentId: string): void;
@@ -1,14 +1,13 @@
1
1
  import type { BrowserConfig } from './types.js';
2
- import { type AvailabilityResult } from './agent-browser/connection.js';
3
- export type RoutingBackend = 'playwright' | 'agent-browser';
2
+ export type RoutingBackend = 'playwright';
4
3
  export interface RoutingDecision {
5
4
  backend: RoutingBackend;
6
5
  reason: string;
7
6
  probeMs: number;
8
- availability: AvailabilityResult | null;
7
+ availability: null;
9
8
  }
10
9
  export interface RoutingContext {
11
10
  config: BrowserConfig;
12
11
  surface?: string;
13
12
  }
14
- export declare function selectBackend(ctx: RoutingContext): Promise<RoutingDecision>;
13
+ export declare function selectBackend(ctx: RoutingContext): RoutingDecision;
@@ -135,7 +135,7 @@ export interface BrowserConfig {
135
135
  allowedDomains: readonly string[];
136
136
  blockedDomains: readonly string[];
137
137
  domSnapshots: boolean;
138
- backend: 'playwright' | 'agent-browser' | 'auto';
138
+ backend: 'playwright' | 'auto';
139
139
  configPath: string | null;
140
140
  defaultProfile: string;
141
141
  }