@ai-workbench/connect 0.7.11 → 0.7.17
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/README.md +34 -3
- package/client/index.cjs +29 -9
- package/helper/host-directories.cjs +72 -0
- package/lib/api.d.ts +31 -2
- package/lib/api.js +1 -1
- package/lib/cache.js +2 -2
- package/lib/component-download.d.ts +2 -0
- package/lib/component-download.js +13 -3
- package/lib/components.d.ts +1 -1
- package/lib/components.js +80 -5
- package/lib/connect.d.ts +3 -0
- package/lib/connect.js +53 -11
- package/lib/connection-messages.d.ts +7 -0
- package/lib/connection-messages.js +6 -0
- package/lib/conversation-details.d.ts +2 -0
- package/lib/conversation-details.js +158 -51
- package/lib/cordis.d.ts +2 -1
- package/lib/defaults.d.ts +6 -0
- package/lib/defaults.js +2 -0
- package/lib/host-directories.d.ts +53 -0
- package/lib/host-directories.js +76 -0
- package/lib/index.d.ts +8 -1
- package/lib/index.js +10 -5
- package/lib/integration.js +2 -0
- package/lib/local-acceptance-store.d.ts +17 -0
- package/lib/local-acceptance-store.js +129 -0
- package/lib/local-user-turn-acceptance.d.ts +74 -0
- package/lib/local-user-turn-acceptance.js +281 -0
- package/lib/local-user-turn-types.d.ts +40 -0
- package/lib/local-user-turn-types.js +1 -0
- package/lib/local-workspace-context.d.ts +46 -0
- package/lib/local-workspace-context.js +17 -0
- package/lib/login-diagnostics.d.ts +3 -1
- package/lib/needs.js +13 -0
- package/lib/ports.d.ts +2 -0
- package/lib/private-files.d.ts +2 -0
- package/lib/private-files.js +17 -1
- package/lib/profile-runtime.js +62 -12
- package/lib/startup.d.ts +1 -1
- package/lib/startup.js +33 -13
- package/lib/workspace-bindings.d.ts +30 -1
- package/lib/workspace-bindings.js +1 -0
- package/lib/workspace-location-types.d.ts +65 -0
- package/lib/workspace-location-types.js +1 -0
- package/lib/workspace-locations.d.ts +50 -0
- package/lib/workspace-locations.js +455 -0
- package/node_modules/argparse/CHANGELOG.md +216 -0
- package/package.json +4 -3
package/lib/startup.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { connectionEmployeeMessage, isConnectionInterruption } from "./connection-messages.js";
|
|
1
2
|
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { fail, need, ok } from "./needs.js";
|
|
3
|
+
import { fail as baseFail, need, ok } from "./needs.js";
|
|
3
4
|
import { authFailure } from "./auth-diagnostics.js";
|
|
4
|
-
export function employeeMessage(code) {
|
|
5
|
+
export function employeeMessage(code, connection) {
|
|
6
|
+
const message = connectionEmployeeMessage(connection);
|
|
7
|
+
if (message)
|
|
8
|
+
return message;
|
|
5
9
|
if (code === 'ENROLLMENT_RESULT_UNKNOWN' || code === 'ENROLLMENT_REJECTED')
|
|
6
10
|
return need(code).message;
|
|
7
11
|
if (code === 'DEPENDENCY_REQUIRED')
|
|
@@ -17,23 +21,28 @@ export function employeeMessage(code) {
|
|
|
17
21
|
return '远程主机暂时连不上,请联系管理员。';
|
|
18
22
|
}
|
|
19
23
|
export function createStartup(api, providers, emit = () => { }, result = () => { }, instanceId = randomUUID()) {
|
|
20
|
-
let disposed = false, revision = 0, serial = 0, generation = 0, checkSerial = 0, connectionPhase = 'unavailable', observedConnected = false;
|
|
24
|
+
let disposed = false, revision = 0, serial = 0, generation = 0, checkSerial = 0, connectionPhase = 'unavailable', observedConnected = false, observedUnavailable = false;
|
|
21
25
|
let flight, authorization, authorizationId;
|
|
22
26
|
const pending = new Set(), listeners = new Set(), deferred = new Set();
|
|
23
27
|
const providerSerial = new Map();
|
|
24
28
|
const resultTickets = new WeakMap();
|
|
29
|
+
let observedConnection;
|
|
30
|
+
const currentNeed = (code) => { const value = need(code), message = connectionEmployeeMessage(observedConnection); if (message && isConnectionInterruption(code))
|
|
31
|
+
value.message = message; return value; };
|
|
32
|
+
const fail = (code) => { const result = baseFail(code), message = connectionEmployeeMessage(observedConnection); if (!result.ok && message && isConnectionInterruption(code))
|
|
33
|
+
result.error.message = message; return result; };
|
|
25
34
|
let connectionEpoch, connectionInstance;
|
|
26
35
|
let state = { instanceId, revision: 0, phase: 'checking', message: '正在连接远程主机…', logins: {}, queuedProviders: [...providers], checkingProviders: [], providerNeeds: {}, technicalDetails: {} };
|
|
27
|
-
const publish = (next) => { state = { ...next, instanceId, revision: ++revision }; emit(structuredClone(state)); for (const listener of listeners)
|
|
36
|
+
const publish = (next) => { state = { ...next, ...(next.phase !== 'disposed' && connectionEmployeeMessage(observedConnection) ? { message: connectionEmployeeMessage(observedConnection) } : {}), instanceId, revision: ++revision }; emit(structuredClone(state)); for (const listener of listeners)
|
|
28
37
|
listener(structuredClone(state)); };
|
|
29
38
|
const track = (p) => { pending.add(p); void p.then(() => pending.delete(p), () => pending.delete(p)); return p; };
|
|
30
39
|
const close = (outcome, code) => { if (state.requestId && state.provider) {
|
|
31
|
-
const terminal = { requestId: state.requestId, provider: state.provider, outcome, ...(code ? { need:
|
|
40
|
+
const terminal = { requestId: state.requestId, provider: state.provider, outcome, ...(code ? { need: currentNeed(code) } : {}) };
|
|
32
41
|
publish({ ...state, requestId: undefined, provider: undefined });
|
|
33
42
|
result(terminal);
|
|
34
43
|
} };
|
|
35
44
|
const blocked = (code) => { const mine = generation; close('invalidated', code); if (disposed || mine !== generation)
|
|
36
|
-
return; publish({ phase: 'blocked', message: employeeMessage(code), logins: {}, queuedProviders: [], checkingProviders: [], providerNeeds: {}, technicalDetails: { ...state.technicalDetails, code } }); };
|
|
45
|
+
return; publish({ phase: 'blocked', message: employeeMessage(code, observedConnection), logins: {}, queuedProviders: [], checkingProviders: [], providerNeeds: {}, technicalDetails: { ...state.technicalDetails, code } }); };
|
|
37
46
|
const snapshot = () => state.phase === 'disposed' ? fail('DISPOSED') : state.phase === 'blocked' ? fail(state.technicalDetails.code ?? 'AUTH_STATUS_INVALID') : ok(structuredClone(state));
|
|
38
47
|
const ask = () => {
|
|
39
48
|
if (disposed || state.phase === 'blocked' || state.phase === 'disposed')
|
|
@@ -70,7 +79,7 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
70
79
|
const terminal = clearTicket ? { requestId: state.requestId, provider, outcome: logins[provider] === true ? 'logged-in' : 'invalidated', ...(providerNeeds[provider] ? { need: structuredClone(providerNeeds[provider]) } : {}) } : undefined;
|
|
71
80
|
publish({ ...state, ...(clearTicket ? { requestId: undefined, provider: undefined } : {}), logins, providerNeeds, checkingProviders: state.checkingProviders.filter(p => p !== provider) });
|
|
72
81
|
if (terminal)
|
|
73
|
-
result(currentTicket(ticket) ? terminal : { ...terminal, outcome: 'invalidated', need:
|
|
82
|
+
result(currentTicket(ticket) ? terminal : { ...terminal, outcome: 'invalidated', need: currentNeed(disposed ? 'DISPOSED' : 'CONNECTION_LOST') });
|
|
74
83
|
if (!currentTicket(ticket))
|
|
75
84
|
return false;
|
|
76
85
|
if (!flight && !authorization)
|
|
@@ -150,7 +159,7 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
150
159
|
flight = undefined; });
|
|
151
160
|
return promise;
|
|
152
161
|
};
|
|
153
|
-
const providerFailed = (provider, code, sourceNeed =
|
|
162
|
+
const providerFailed = (provider, code, sourceNeed = currentNeed(code)) => {
|
|
154
163
|
const logins = { ...state.logins };
|
|
155
164
|
delete logins[provider];
|
|
156
165
|
publish({ ...state, phase: 'idle', requestId: undefined, provider: undefined, logins, checkingProviders: state.checkingProviders.filter(p => p !== provider), providerNeeds: { ...state.providerNeeds, [provider]: structuredClone(sourceNeed) } });
|
|
@@ -202,8 +211,8 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
202
211
|
return superseded();
|
|
203
212
|
if (!verified.ok || !verified.value.loggedIn) {
|
|
204
213
|
const code = verified.ok ? 'LOGIN_FAILED' : verified.error.code;
|
|
205
|
-
providerFailed(provider, code, verified.ok ?
|
|
206
|
-
result({ requestId, provider, outcome: 'failed', need: verified.ok ?
|
|
214
|
+
providerFailed(provider, code, verified.ok ? currentNeed(code) : verified.error);
|
|
215
|
+
result({ requestId, provider, outcome: 'failed', need: verified.ok ? currentNeed(code) : verified.error });
|
|
207
216
|
return disposed || mine !== generation ? fail(disposed ? 'DISPOSED' : 'CONNECTION_LOST') : verified.ok ? fail(code) : verified;
|
|
208
217
|
}
|
|
209
218
|
deferred.delete(provider);
|
|
@@ -211,7 +220,7 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
211
220
|
delete providerNeeds[provider];
|
|
212
221
|
publish({ ...state, requestId: undefined, provider: undefined, logins: { ...state.logins, [provider]: true }, providerNeeds, checkingProviders: state.checkingProviders.filter(p => p !== provider), phase: 'idle' });
|
|
213
222
|
if (disposed || mine !== generation) {
|
|
214
|
-
result({ requestId, provider, outcome: 'invalidated', need:
|
|
223
|
+
result({ requestId, provider, outcome: 'invalidated', need: currentNeed(disposed ? 'DISPOSED' : 'CONNECTION_LOST') });
|
|
215
224
|
return fail(disposed ? 'DISPOSED' : 'CONNECTION_LOST');
|
|
216
225
|
}
|
|
217
226
|
result({ requestId, provider, outcome: 'logged-in' });
|
|
@@ -223,7 +232,7 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
223
232
|
catch {
|
|
224
233
|
if (disposed || mine !== generation)
|
|
225
234
|
return fail(disposed ? 'DISPOSED' : 'CONNECTION_LOST');
|
|
226
|
-
result({ requestId, provider, outcome: 'failed', need:
|
|
235
|
+
result({ requestId, provider, outcome: 'failed', need: currentNeed('LOGIN_FAILED') });
|
|
227
236
|
providerFailed(provider, 'LOGIN_FAILED');
|
|
228
237
|
return fail('LOGIN_FAILED');
|
|
229
238
|
}
|
|
@@ -267,6 +276,8 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
267
276
|
connectionChanged(next) {
|
|
268
277
|
if (disposed)
|
|
269
278
|
return;
|
|
279
|
+
const previousRecovery = observedConnection?.recovery?.phase;
|
|
280
|
+
observedConnection = structuredClone(next);
|
|
270
281
|
const prior = connectionPhase;
|
|
271
282
|
connectionPhase = next.phase;
|
|
272
283
|
const changed = connectionEpoch !== undefined && (connectionEpoch !== next.epoch || connectionInstance !== next.instanceId);
|
|
@@ -281,14 +292,23 @@ export function createStartup(api, providers, emit = () => { }, result = () => {
|
|
|
281
292
|
return;
|
|
282
293
|
publish({ phase: 'checking', message: '正在连接远程主机…', logins: {}, queuedProviders: [], checkingProviders: [], providerNeeds: {}, technicalDetails: {} });
|
|
283
294
|
}
|
|
295
|
+
if (!changed && prior === next.phase && next.recovery && previousRecovery !== next.recovery.phase) {
|
|
296
|
+
publish({ ...state, message: next.recovery.message });
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
284
299
|
if (next.phase === 'unavailable' || next.phase === 'disposed') {
|
|
300
|
+
if (next.phase === 'unavailable')
|
|
301
|
+
observedUnavailable = true;
|
|
285
302
|
generation++;
|
|
286
303
|
flight = undefined;
|
|
287
304
|
blocked(next.need?.code ?? (next.phase === 'disposed' ? 'DISPOSED' : 'CONNECTION_LOST'));
|
|
288
305
|
}
|
|
289
306
|
else if (next.phase === 'connected' && prior !== 'connected') {
|
|
290
|
-
const restored = observedConnected;
|
|
307
|
+
const restored = observedConnected || observedUnavailable;
|
|
291
308
|
observedConnected = true;
|
|
309
|
+
observedUnavailable = false;
|
|
310
|
+
if (state.phase === 'blocked')
|
|
311
|
+
publish({ ...state, phase: 'checking', message: '正在检查登录状态…' });
|
|
292
312
|
if (restored) {
|
|
293
313
|
const mine = generation;
|
|
294
314
|
queueMicrotask(() => { void Promise.resolve(authorization).then(() => { if (!disposed && mine === generation && connectionPhase === 'connected')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectApi, SessionProjectTarget, Result, ConnectionState, WorkspaceBindingState, WorkspaceNoticeReceipt, WorkspaceUse, Provider, SshTarget } from './api.ts';
|
|
1
|
+
import type { ConnectApi, Project, SessionProjectTarget, Result, ConnectionState, WorkspaceBindingState, WorkspaceNoticeReceipt, WorkspaceUse, Provider, SshTarget } from './api.ts';
|
|
2
2
|
export interface NativeWorkspace {
|
|
3
3
|
id: string;
|
|
4
4
|
path: string;
|
|
@@ -9,6 +9,33 @@ export interface NativeWorkspaceRegistry {
|
|
|
9
9
|
get(id: string): NativeWorkspace | undefined;
|
|
10
10
|
list(): NativeWorkspace[];
|
|
11
11
|
}
|
|
12
|
+
interface Claim {
|
|
13
|
+
id: string;
|
|
14
|
+
sessionId: string;
|
|
15
|
+
provider: Provider;
|
|
16
|
+
owner: string;
|
|
17
|
+
deliveryId?: string;
|
|
18
|
+
}
|
|
19
|
+
interface Binding {
|
|
20
|
+
key: string;
|
|
21
|
+
identity: string;
|
|
22
|
+
workspaceId: string;
|
|
23
|
+
localPath: string;
|
|
24
|
+
localDev: number;
|
|
25
|
+
localIno: number;
|
|
26
|
+
project: Project;
|
|
27
|
+
bindingId: string;
|
|
28
|
+
noticeId: string;
|
|
29
|
+
sessionIds: string[];
|
|
30
|
+
accepted?: {
|
|
31
|
+
sessionId: string;
|
|
32
|
+
provider: Provider;
|
|
33
|
+
}[];
|
|
34
|
+
phase: 'intent' | 'bound';
|
|
35
|
+
settings: 'pending' | 'displayed';
|
|
36
|
+
provider: 'pending' | 'claimed' | 'delivered' | 'unknown';
|
|
37
|
+
claim?: Claim;
|
|
38
|
+
}
|
|
12
39
|
export interface WorkspaceBindingOptions {
|
|
13
40
|
profileDir: string;
|
|
14
41
|
metadataMaxBytes: number;
|
|
@@ -23,6 +50,7 @@ export interface WorkspaceBindingOptions {
|
|
|
23
50
|
diagnostic?: (error: unknown) => void;
|
|
24
51
|
}
|
|
25
52
|
export declare function createWorkspaceBindings(options: WorkspaceBindingOptions): {
|
|
53
|
+
readLegacyLocations: () => Promise<Binding[]>;
|
|
26
54
|
observeConnection(state: ConnectionState): void;
|
|
27
55
|
dispose(): Promise<unknown>;
|
|
28
56
|
verifyRemoteConversationScope: (sessionId: string, provider: Provider, target: SshTarget) => Promise<Result<{
|
|
@@ -33,3 +61,4 @@ export declare function createWorkspaceBindings(options: WorkspaceBindingOptions
|
|
|
33
61
|
acknowledgeWorkspaceNotice: (receipt: WorkspaceNoticeReceipt) => Promise<Result<void>>;
|
|
34
62
|
resolveSessionProject: (sessionId: string, use: WorkspaceUse) => Promise<Result<SessionProjectTarget>>;
|
|
35
63
|
};
|
|
64
|
+
export {};
|
|
@@ -364,6 +364,7 @@ export function createWorkspaceBindings(options) {
|
|
|
364
364
|
diagnostic(error);
|
|
365
365
|
} });
|
|
366
366
|
return {
|
|
367
|
+
readLegacyLocations: () => serialized(async () => { await prepare(); return structuredClone(await records()); }),
|
|
367
368
|
observeConnection(state) { if (disposed)
|
|
368
369
|
return; for (const [id, status] of statuses)
|
|
369
370
|
if (status === 'ready')
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ConnectNeed } from './api.ts';
|
|
2
|
+
import type { HostDirectoryInfo, HostDirectoryEntry } from './host-directories.ts';
|
|
3
|
+
export interface WorkspaceLocationItem {
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
workspaceName: string;
|
|
6
|
+
localPath: string;
|
|
7
|
+
bindingId: string | null;
|
|
8
|
+
source: 'local' | 'host' | 'legacy-host' | null;
|
|
9
|
+
status: 'unselected' | 'selected' | 'legacy-confirmation-required' | 'invalid';
|
|
10
|
+
execution: 'not-selected' | 'local-pending' | 'host-pending' | 'legacy-confirmed';
|
|
11
|
+
legacyPath?: string;
|
|
12
|
+
remote?: HostDirectoryInfo;
|
|
13
|
+
host?: {
|
|
14
|
+
host: string;
|
|
15
|
+
username: string;
|
|
16
|
+
port: number;
|
|
17
|
+
};
|
|
18
|
+
need?: ConnectNeed;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkspaceLocationState {
|
|
21
|
+
instanceId: string;
|
|
22
|
+
epoch: number;
|
|
23
|
+
revision: number;
|
|
24
|
+
phase: 'loading' | 'ready' | 'failed' | 'disposed';
|
|
25
|
+
pageSize: number;
|
|
26
|
+
items: WorkspaceLocationItem[];
|
|
27
|
+
need?: ConnectNeed;
|
|
28
|
+
}
|
|
29
|
+
export interface WorkspaceLocationContext {
|
|
30
|
+
instanceId: string;
|
|
31
|
+
epoch: number;
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
expectedBindingId: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface WorkspaceBrowseRequest extends WorkspaceLocationContext {
|
|
36
|
+
path?: string;
|
|
37
|
+
cursor?: string;
|
|
38
|
+
pageSize?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface WorkspaceBrowsePage extends HostDirectoryInfo {
|
|
41
|
+
instanceId: string;
|
|
42
|
+
epoch: number;
|
|
43
|
+
workspaceId: string;
|
|
44
|
+
bindingId: string | null;
|
|
45
|
+
host: {
|
|
46
|
+
host: string;
|
|
47
|
+
username: string;
|
|
48
|
+
port: number;
|
|
49
|
+
};
|
|
50
|
+
selectionToken: string;
|
|
51
|
+
entries: (HostDirectoryEntry & {
|
|
52
|
+
selectionToken?: string;
|
|
53
|
+
})[];
|
|
54
|
+
nextCursor?: string;
|
|
55
|
+
pageSize: number;
|
|
56
|
+
}
|
|
57
|
+
export type WorkspaceSelectRequest = WorkspaceLocationContext & ({
|
|
58
|
+
source: 'local';
|
|
59
|
+
} | {
|
|
60
|
+
source: 'host';
|
|
61
|
+
selectionToken: string;
|
|
62
|
+
} | {
|
|
63
|
+
source: 'legacy-host';
|
|
64
|
+
confirmLegacy: true;
|
|
65
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ConnectApi, Result } from './api.ts';
|
|
2
|
+
import type { NativeWorkspaceRegistry } from './workspace-bindings.ts';
|
|
3
|
+
import type { WorkspaceLocationState, WorkspaceBrowseRequest, WorkspaceBrowsePage, WorkspaceSelectRequest } from './workspace-location-types.ts';
|
|
4
|
+
import type { createHostDirectories } from './host-directories.ts';
|
|
5
|
+
import { type LocalWorkspaceContext, type LocalWorkspaceContextRequest } from './local-workspace-context.ts';
|
|
6
|
+
interface Native {
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
localPath: string;
|
|
9
|
+
localDev: number;
|
|
10
|
+
localIno: number;
|
|
11
|
+
}
|
|
12
|
+
interface Legacy extends Native {
|
|
13
|
+
identity: string;
|
|
14
|
+
bindingId: string;
|
|
15
|
+
project: {
|
|
16
|
+
name: string;
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
phase: string;
|
|
20
|
+
sessionIds: string[];
|
|
21
|
+
}
|
|
22
|
+
interface Options {
|
|
23
|
+
profileDir: string;
|
|
24
|
+
metadataMaxBytes: number;
|
|
25
|
+
pageSize: number;
|
|
26
|
+
api: Pick<ConnectApi, 'getConnectionState' | 'getModelCatalogTarget'>;
|
|
27
|
+
registry: NativeWorkspaceRegistry;
|
|
28
|
+
readLegacy: () => Promise<Legacy[]>;
|
|
29
|
+
hostDirectories?: ReturnType<typeof createHostDirectories>;
|
|
30
|
+
onState?: (s: WorkspaceLocationState) => void;
|
|
31
|
+
nextRevision?: () => number;
|
|
32
|
+
}
|
|
33
|
+
export declare function createWorkspaceLocations(o: Options): {
|
|
34
|
+
withLocalBinding: <T>(c: LocalWorkspaceContextRequest, run: (directory: {
|
|
35
|
+
path: string;
|
|
36
|
+
device: number;
|
|
37
|
+
inode: number;
|
|
38
|
+
}, guard: () => void) => Promise<Result<T>>) => Promise<Result<T>>;
|
|
39
|
+
getLocalWorkspaceContext: (request: LocalWorkspaceContextRequest) => Promise<Result<LocalWorkspaceContext>>;
|
|
40
|
+
getWorkspaceLocationState: () => WorkspaceLocationState;
|
|
41
|
+
onWorkspaceLocationState(listener: (s: WorkspaceLocationState) => void): () => void;
|
|
42
|
+
refreshWorkspaceLocations: () => Promise<Result<WorkspaceLocationState>>;
|
|
43
|
+
browseWorkspaceHostDirectories: (c: WorkspaceBrowseRequest) => Promise<Result<WorkspaceBrowsePage>>;
|
|
44
|
+
selectWorkspaceLocation: (c: WorkspaceSelectRequest) => Promise<Result<WorkspaceLocationState>>;
|
|
45
|
+
guardLegacySession: (id: string) => Promise<Result<void>>;
|
|
46
|
+
resolveLegacySession: <T>(id: string, resolve: () => Promise<Result<T>>) => Promise<Result<T>>;
|
|
47
|
+
observeConnection(): void;
|
|
48
|
+
dispose(): Promise<unknown>;
|
|
49
|
+
};
|
|
50
|
+
export {};
|