@daex-dev/sdk 0.0.0-stage → 0.7.1

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,29 @@
1
+ import { c as DaexChatClient, m as AccountInfo, ae as ProviderCapabilities, aX as AgentChatSlashCommand, F as ApprovalRequest, u as AgentChatEvent, A as AgentChatEventEnvelope, U as DaexThread } from './client-C0KQKP8O.cjs';
2
+
3
+ type MockToolCall = {
4
+ tool: string;
5
+ args: unknown;
6
+ result?: unknown;
7
+ };
8
+ type MockDaexChat = DaexChatClient & {
9
+ /** Accounts `accounts.list` returns and `switchAccount` accepts. */
10
+ setAccounts(accounts: readonly AccountInfo[]): void;
11
+ /** What `providers.capabilities(provider)` answers; it throws `unsupported` until set. */
12
+ setCapabilities(provider: string, capabilities: ProviderCapabilities): void;
13
+ /** What every mock thread's `slashCommands()` returns. */
14
+ setSlashCommands(commands: readonly AgentChatSlashCommand[]): void;
15
+ queueReply(text: string): void;
16
+ queueToolCall(call: MockToolCall): void;
17
+ queueApproval(request?: Partial<ApprovalRequest>): void;
18
+ queueError(error: string | Error): void;
19
+ queueUsage(event: AgentChatEvent): void;
20
+ replay(envelopes: readonly AgentChatEventEnvelope[], key?: string): Promise<DaexThread>;
21
+ };
22
+ /** Script assistant behavior without launching a runtime or spending provider tokens. */
23
+ declare function createMockDaexChat(): MockDaexChat;
24
+ /** @deprecated Use {@link MockDaexChat}. */
25
+ type MockAdeChat = MockDaexChat;
26
+ /** @deprecated Use {@link createMockDaexChat}. */
27
+ declare const createMockAdeChat: typeof createMockDaexChat;
28
+
29
+ export { type MockAdeChat, type MockDaexChat, type MockToolCall, createMockAdeChat, createMockDaexChat };
@@ -0,0 +1,29 @@
1
+ import { c as DaexChatClient, m as AccountInfo, ae as ProviderCapabilities, aX as AgentChatSlashCommand, F as ApprovalRequest, u as AgentChatEvent, A as AgentChatEventEnvelope, U as DaexThread } from './client-C0KQKP8O.js';
2
+
3
+ type MockToolCall = {
4
+ tool: string;
5
+ args: unknown;
6
+ result?: unknown;
7
+ };
8
+ type MockDaexChat = DaexChatClient & {
9
+ /** Accounts `accounts.list` returns and `switchAccount` accepts. */
10
+ setAccounts(accounts: readonly AccountInfo[]): void;
11
+ /** What `providers.capabilities(provider)` answers; it throws `unsupported` until set. */
12
+ setCapabilities(provider: string, capabilities: ProviderCapabilities): void;
13
+ /** What every mock thread's `slashCommands()` returns. */
14
+ setSlashCommands(commands: readonly AgentChatSlashCommand[]): void;
15
+ queueReply(text: string): void;
16
+ queueToolCall(call: MockToolCall): void;
17
+ queueApproval(request?: Partial<ApprovalRequest>): void;
18
+ queueError(error: string | Error): void;
19
+ queueUsage(event: AgentChatEvent): void;
20
+ replay(envelopes: readonly AgentChatEventEnvelope[], key?: string): Promise<DaexThread>;
21
+ };
22
+ /** Script assistant behavior without launching a runtime or spending provider tokens. */
23
+ declare function createMockDaexChat(): MockDaexChat;
24
+ /** @deprecated Use {@link MockDaexChat}. */
25
+ type MockAdeChat = MockDaexChat;
26
+ /** @deprecated Use {@link createMockDaexChat}. */
27
+ declare const createMockAdeChat: typeof createMockDaexChat;
28
+
29
+ export { type MockAdeChat, type MockDaexChat, type MockToolCall, createMockAdeChat, createMockDaexChat };