agent-afk 5.110.5 → 5.111.0
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/register-surface-session.d.ts +20 -0
- package/dist/cli.mjs +498 -498
- package/dist/index.mjs +220 -220
- package/dist/telegram/elicitation-handler.d.ts +2 -1
- package/dist/telegram/handlers/message.d.ts +8 -6
- package/dist/telegram/session-manager.d.ts +17 -13
- package/dist/telegram.mjs +280 -280
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AgentModelInput } from '../types.js';
|
|
2
|
+
import { type SessionRegistry, type SessionHandle, type SessionSurface } from './session-registry.js';
|
|
3
|
+
interface RegisterableSession {
|
|
4
|
+
readonly sessionId?: string;
|
|
5
|
+
waitForInitialization?(): Promise<unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface RegisterSurfaceSessionOptions {
|
|
8
|
+
surface: SessionSurface;
|
|
9
|
+
model: AgentModelInput;
|
|
10
|
+
cwd?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
sdkSessionId?: string;
|
|
13
|
+
registry?: SessionRegistry;
|
|
14
|
+
}
|
|
15
|
+
export interface SurfaceSessionRegistration {
|
|
16
|
+
handle: SessionHandle | undefined;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function registerSurfaceSession(session: RegisterableSession, opts: RegisterSurfaceSessionOptions): SurfaceSessionRegistration;
|
|
20
|
+
export {};
|