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.
- package/dist/agent/session/sdk-surface-warning.d.ts +3 -0
- package/dist/agent/state/state-store.d.ts +0 -1
- package/dist/agent/storage/sqlite.d.ts +7 -0
- package/dist/agent/trace/types.d.ts +1 -1
- package/dist/agent/types/session-types.d.ts +1 -0
- package/dist/agent/workspace/workspace-store.d.ts +0 -1
- package/dist/browser/routing.d.ts +3 -4
- package/dist/browser/types.d.ts +1 -1
- package/dist/cli.mjs +442 -441
- package/dist/config/env.browser.d.ts +1 -1
- package/dist/config/env.d.ts +8 -1
- package/dist/config/env.misc.d.ts +7 -0
- package/dist/index.mjs +174 -173
- package/dist/telegram.mjs +221 -220
- package/dist/utils/abort.d.ts +10 -0
- package/dist/utils/crash-notifier.d.ts +9 -0
- package/package.json +2 -2
- package/dist/browser/agent-browser/actions.d.ts +0 -15
- package/dist/browser/agent-browser/client.d.ts +0 -69
- package/dist/browser/agent-browser/connection.d.ts +0 -15
- package/dist/browser/agent-browser/index.d.ts +0 -30
|
@@ -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;
|
|
@@ -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?:
|
|
182
|
+
backend?: string;
|
|
183
183
|
backendReason?: string;
|
|
184
184
|
target?: BrowserEventTarget;
|
|
185
185
|
urlBefore: string | null;
|
|
@@ -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
|
-
|
|
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:
|
|
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):
|
|
13
|
+
export declare function selectBackend(ctx: RoutingContext): RoutingDecision;
|
package/dist/browser/types.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export interface BrowserConfig {
|
|
|
135
135
|
allowedDomains: readonly string[];
|
|
136
136
|
blockedDomains: readonly string[];
|
|
137
137
|
domSnapshots: boolean;
|
|
138
|
-
backend: 'playwright' | '
|
|
138
|
+
backend: 'playwright' | 'auto';
|
|
139
139
|
configPath: string | null;
|
|
140
140
|
defaultProfile: string;
|
|
141
141
|
}
|