@agent-link/agent 0.1.208 → 0.1.210
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/connection.d.ts +11 -0
- package/dist/connection.js +277 -109
- package/dist/connection.js.map +1 -1
- package/dist/directory-handlers.d.ts +7 -0
- package/dist/directory-handlers.js +12 -6
- package/dist/directory-handlers.js.map +1 -1
- package/dist/history.d.ts +15 -0
- package/dist/history.js +49 -0
- package/dist/history.js.map +1 -1
- package/dist/runtime.d.ts +15 -0
- package/dist/runtime.js +30 -0
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
package/dist/connection.d.ts
CHANGED
|
@@ -16,7 +16,18 @@ export declare function connect(config: AgentConfig): Promise<string>;
|
|
|
16
16
|
/** Get the E2E key for embedding in the session URL. */
|
|
17
17
|
export declare function getE2EKey(): Uint8Array | null;
|
|
18
18
|
export declare function disconnect(): Promise<void>;
|
|
19
|
+
export declare function _setTestSendOverride(fn: ((msg: Record<string, unknown>) => void) | null): void;
|
|
19
20
|
export declare function send(msg: Record<string, unknown>): void;
|
|
21
|
+
/** Test-only: invoke the dispatch directly. */
|
|
22
|
+
export declare function _handleServerMessageForTests(msg: {
|
|
23
|
+
type: string;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}): void;
|
|
26
|
+
/** Test-only: read/write the connection-level workDir state. */
|
|
27
|
+
export declare function _setStateWorkDirForTests(wd: string): void;
|
|
28
|
+
export declare function _getStateWorkDirForTests(): string;
|
|
29
|
+
/** Test-only: install a runtime instance (bypasses connect()). */
|
|
30
|
+
export declare function _setRuntimeForTests(rt: AgentRuntime | null): void;
|
|
20
31
|
/**
|
|
21
32
|
* Called when a recap chat session starts to check if it's linked to an action item.
|
|
22
33
|
* If so, calls CLI `start` to transition the action item to 'working' status.
|