@wrongstack/acp 1.0.24 → 1.0.26

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,20 @@
1
+ import type { AgentCapabilities, AuthMethod, SessionId } from '../types/acp-v1.js';
2
+ import type { State } from './acp-request-state.js';
3
+ import { type ACPSessionOpContext } from './acp-session-ops.js';
4
+ import type { ACPSessionOptions } from './acp-session-types.js';
5
+ export interface AcpSessionAuthHost {
6
+ state: State;
7
+ authMethods: AuthMethod[];
8
+ allocId: () => number;
9
+ sendRequest: (id: number, method: string, params: unknown, timeoutMs?: number) => Promise<unknown>;
10
+ agentCapabilities: AgentCapabilities;
11
+ opContext: () => ACPSessionOpContext;
12
+ ensureAuthenticated: () => Promise<void>;
13
+ authenticate: (methodId: string) => Promise<void>;
14
+ opts: ACPSessionOptions;
15
+ }
16
+ export declare function authenticate(host: AcpSessionAuthHost, methodId: string): Promise<void>;
17
+ export declare function logout(host: AcpSessionAuthHost): Promise<void>;
18
+ export declare function createSessionWithAuth(host: AcpSessionAuthHost): Promise<SessionId>;
19
+ export declare function ensureAuthenticated(host: AcpSessionAuthHost): Promise<void>;
20
+ //# sourceMappingURL=acp-session-auth.d.ts.map
@@ -138,5 +138,6 @@ export declare class ACPSession {
138
138
  private progressHandler;
139
139
  private scratch;
140
140
  private resetScratch;
141
+ private acpSessionAuthHost;
141
142
  }
142
143
  //# sourceMappingURL=acp-session.d.ts.map