@alexkroman1/aai 0.10.4 → 0.11.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.
- package/dist/{constants-BbAOvKl_.js → constants-CpLN9WGY.js} +2 -4
- package/dist/{direct-executor-BfHrDdPL.js → direct-executor-DyY-Y4ZE.js} +102 -324
- package/dist/host/_run-code.d.ts +35 -0
- package/dist/host/_runtime-conformance.d.ts +55 -0
- package/dist/{_test-utils.d.ts → host/_test-utils.d.ts} +7 -4
- package/dist/{builtin-tools.d.ts → host/builtin-tools.d.ts} +3 -3
- package/dist/{direct-executor.d.ts → host/direct-executor.d.ts} +7 -7
- package/dist/{internal.d.ts → host/index.d.ts} +5 -6
- package/dist/{internal.js → host/index.js} +15 -57
- package/dist/{matchers.js → host/matchers.js} +2 -2
- package/dist/{server.d.ts → host/server.d.ts} +1 -17
- package/dist/{server.js → host/server.js} +25 -22
- package/dist/{session.d.ts → host/session.d.ts} +7 -7
- package/dist/{testing.d.ts → host/testing.d.ts} +3 -3
- package/dist/host/testing.js +2 -0
- package/dist/{unstorage-kv.d.ts → host/unstorage-kv.d.ts} +1 -1
- package/dist/{vite-plugin.js → host/vite-plugin.js} +1 -1
- package/dist/{ws-handler.d.ts → host/ws-handler.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/isolate/_utils.d.ts +7 -0
- package/dist/isolate/_utils.js +17 -0
- package/dist/{constants.d.ts → isolate/constants.d.ts} +0 -2
- package/dist/{hooks.js → isolate/hooks.js} +1 -1
- package/dist/isolate/index.d.ts +19 -0
- package/dist/isolate/index.js +8 -0
- package/dist/{kv.js → isolate/kv.js} +2 -2
- package/dist/{protocol.js → isolate/protocol.js} +2 -2
- package/dist/{types.js → isolate/types.js} +1 -1
- package/dist/system-prompt-u19j6xfA.js +166 -0
- package/dist/{testing-BonJtfHJ.js → testing-CNNg2-n-.js} +22 -8
- package/package.json +40 -36
- package/dist/_run-code.d.ts +0 -31
- package/dist/_runtime-conformance.d.ts +0 -64
- package/dist/_utils.d.ts +0 -21
- package/dist/_utils.js +0 -49
- package/dist/testing.js +0 -2
- package/dist/{_mock-ws.d.ts → host/_mock-ws.d.ts} +0 -0
- package/dist/{matchers.d.ts → host/matchers.d.ts} +0 -0
- package/dist/{runtime.d.ts → host/runtime.d.ts} +0 -0
- package/dist/{s2s.d.ts → host/s2s.d.ts} +0 -0
- package/dist/{vite-plugin.d.ts → host/vite-plugin.d.ts} +0 -0
- package/dist/{_internal-types.d.ts → isolate/_internal-types.d.ts} +0 -0
- package/dist/{hooks.d.ts → isolate/hooks.d.ts} +0 -0
- package/dist/{kv.d.ts → isolate/kv.d.ts} +0 -0
- package/dist/{memory-tools.d.ts → isolate/memory-tools.d.ts} +0 -0
- package/dist/{protocol.d.ts → isolate/protocol.d.ts} +3 -3
- /package/dist/{system-prompt.d.ts → isolate/system-prompt.d.ts} +0 -0
- /package/dist/{types.d.ts → isolate/types.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./types.js";
|
|
2
|
-
import { i as createUnstorageKv, t as createRuntime } from "./direct-executor-
|
|
3
|
-
import {
|
|
1
|
+
import "./isolate/types.js";
|
|
2
|
+
import { i as createUnstorageKv, t as createRuntime } from "./direct-executor-DyY-Y4ZE.js";
|
|
3
|
+
import { vi } from "vitest";
|
|
4
4
|
import { createStorage } from "unstorage";
|
|
5
5
|
import "nanoevents";
|
|
6
|
-
import {
|
|
7
|
-
//#region _mock-ws.ts
|
|
6
|
+
import { resolve } from "node:path";
|
|
7
|
+
//#region host/_mock-ws.ts
|
|
8
8
|
/**
|
|
9
9
|
* A mock WebSocket implementation for testing.
|
|
10
10
|
*
|
|
@@ -157,15 +157,29 @@ function installMockWebSocket() {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region _test-utils.ts
|
|
160
|
+
//#region host/_test-utils.ts
|
|
161
161
|
/** Yield to the microtask queue so pending promises settle. */
|
|
162
162
|
function flush() {
|
|
163
163
|
return new Promise((r) => queueMicrotask(r));
|
|
164
164
|
}
|
|
165
|
+
/** Create a stub Session with all methods as vi.fn() spies. */
|
|
166
|
+
function makeStubSession(overrides) {
|
|
167
|
+
return {
|
|
168
|
+
start: vi.fn(() => Promise.resolve()),
|
|
169
|
+
stop: vi.fn(() => Promise.resolve()),
|
|
170
|
+
onAudio: vi.fn(),
|
|
171
|
+
onAudioReady: vi.fn(),
|
|
172
|
+
onCancel: vi.fn(),
|
|
173
|
+
onReset: vi.fn(),
|
|
174
|
+
onHistory: vi.fn(),
|
|
175
|
+
waitForTurn: vi.fn(() => Promise.resolve()),
|
|
176
|
+
...overrides
|
|
177
|
+
};
|
|
178
|
+
}
|
|
165
179
|
vi.fn(), vi.fn(), vi.fn(), vi.fn();
|
|
166
180
|
resolve(import.meta.dirname, "__fixtures__");
|
|
167
181
|
//#endregion
|
|
168
|
-
//#region testing.ts
|
|
182
|
+
//#region host/testing.ts
|
|
169
183
|
/**
|
|
170
184
|
* Testing utilities for AAI agents.
|
|
171
185
|
*
|
|
@@ -496,4 +510,4 @@ function createTestHarness(agent, options = {}) {
|
|
|
496
510
|
}), `test-${Date.now()}`);
|
|
497
511
|
}
|
|
498
512
|
//#endregion
|
|
499
|
-
export {
|
|
513
|
+
export { makeStubSession as a, flush as i, TurnResult as n, MockWebSocket as o, createTestHarness as r, installMockWebSocket as s, TestHarness as t };
|
package/package.json
CHANGED
|
@@ -1,72 +1,76 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexkroman1/aai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"source": "./index.ts",
|
|
10
|
+
"@dev/source": "./index.ts",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./isolate": {
|
|
15
|
+
"@dev/source": "./isolate/index.ts",
|
|
16
|
+
"types": "./dist/isolate/index.d.ts",
|
|
17
|
+
"import": "./dist/isolate/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./host": {
|
|
20
|
+
"@dev/source": "./host/index.ts",
|
|
21
|
+
"types": "./dist/host/index.d.ts",
|
|
22
|
+
"import": "./dist/host/index.js"
|
|
23
|
+
},
|
|
14
24
|
"./server": {
|
|
15
|
-
"source": "./server.ts",
|
|
16
|
-
"types": "./dist/server.d.ts",
|
|
17
|
-
"import": "./dist/server.js"
|
|
25
|
+
"@dev/source": "./host/server.ts",
|
|
26
|
+
"types": "./dist/host/server.d.ts",
|
|
27
|
+
"import": "./dist/host/server.js"
|
|
18
28
|
},
|
|
19
29
|
"./types": {
|
|
20
|
-
"source": "./types.ts",
|
|
21
|
-
"types": "./dist/types.d.ts",
|
|
22
|
-
"import": "./dist/types.js"
|
|
30
|
+
"@dev/source": "./isolate/types.ts",
|
|
31
|
+
"types": "./dist/isolate/types.d.ts",
|
|
32
|
+
"import": "./dist/isolate/types.js"
|
|
23
33
|
},
|
|
24
34
|
"./kv": {
|
|
25
|
-
"source": "./kv.ts",
|
|
26
|
-
"types": "./dist/kv.d.ts",
|
|
27
|
-
"import": "./dist/kv.js"
|
|
35
|
+
"@dev/source": "./isolate/kv.ts",
|
|
36
|
+
"types": "./dist/isolate/kv.d.ts",
|
|
37
|
+
"import": "./dist/isolate/kv.js"
|
|
28
38
|
},
|
|
29
39
|
"./protocol": {
|
|
30
|
-
"source": "./protocol.ts",
|
|
31
|
-
"types": "./dist/protocol.d.ts",
|
|
32
|
-
"import": "./dist/protocol.js"
|
|
40
|
+
"@dev/source": "./isolate/protocol.ts",
|
|
41
|
+
"types": "./dist/isolate/protocol.d.ts",
|
|
42
|
+
"import": "./dist/isolate/protocol.js"
|
|
33
43
|
},
|
|
34
44
|
"./testing": {
|
|
35
|
-
"source": "./testing.ts",
|
|
36
|
-
"types": "./dist/testing.d.ts",
|
|
37
|
-
"import": "./dist/testing.js"
|
|
45
|
+
"@dev/source": "./host/testing.ts",
|
|
46
|
+
"types": "./dist/host/testing.d.ts",
|
|
47
|
+
"import": "./dist/host/testing.js"
|
|
38
48
|
},
|
|
39
49
|
"./testing/matchers": {
|
|
40
|
-
"source": "./matchers.ts",
|
|
41
|
-
"types": "./dist/matchers.d.ts",
|
|
42
|
-
"import": "./dist/matchers.js"
|
|
43
|
-
},
|
|
44
|
-
"./internal": {
|
|
45
|
-
"source": "./internal.ts",
|
|
46
|
-
"types": "./dist/internal.d.ts",
|
|
47
|
-
"import": "./dist/internal.js"
|
|
50
|
+
"@dev/source": "./host/matchers.ts",
|
|
51
|
+
"types": "./dist/host/matchers.d.ts",
|
|
52
|
+
"import": "./dist/host/matchers.js"
|
|
48
53
|
},
|
|
49
54
|
"./hooks": {
|
|
50
|
-
"source": "./hooks.ts",
|
|
51
|
-
"types": "./dist/hooks.d.ts",
|
|
52
|
-
"import": "./dist/hooks.js"
|
|
55
|
+
"@dev/source": "./isolate/hooks.ts",
|
|
56
|
+
"types": "./dist/isolate/hooks.d.ts",
|
|
57
|
+
"import": "./dist/isolate/hooks.js"
|
|
53
58
|
},
|
|
54
59
|
"./utils": {
|
|
55
|
-
"source": "./_utils.ts",
|
|
56
|
-
"types": "./dist/_utils.d.ts",
|
|
57
|
-
"import": "./dist/_utils.js"
|
|
60
|
+
"@dev/source": "./isolate/_utils.ts",
|
|
61
|
+
"types": "./dist/isolate/_utils.d.ts",
|
|
62
|
+
"import": "./dist/isolate/_utils.js"
|
|
58
63
|
},
|
|
59
64
|
"./vite-plugin": {
|
|
60
|
-
"source": "./vite-plugin.ts",
|
|
61
|
-
"types": "./dist/vite-plugin.d.ts",
|
|
62
|
-
"import": "./dist/vite-plugin.js"
|
|
65
|
+
"@dev/source": "./host/vite-plugin.ts",
|
|
66
|
+
"types": "./dist/host/vite-plugin.d.ts",
|
|
67
|
+
"import": "./dist/host/vite-plugin.js"
|
|
63
68
|
}
|
|
64
69
|
},
|
|
65
70
|
"dependencies": {
|
|
66
71
|
"hookable": "^6.1.0",
|
|
67
72
|
"nanoevents": "^9.1.0",
|
|
68
73
|
"p-timeout": "^7.0.1",
|
|
69
|
-
"secure-exec": "^0.1.0",
|
|
70
74
|
"unstorage": "^1.17.5",
|
|
71
75
|
"ws": "^8.20.0",
|
|
72
76
|
"zod": "^4.3.6"
|
|
@@ -96,7 +100,7 @@
|
|
|
96
100
|
},
|
|
97
101
|
"scripts": {
|
|
98
102
|
"build": "tsdown && tsc -p tsconfig.build.json",
|
|
99
|
-
"typecheck": "tsc --noEmit",
|
|
103
|
+
"typecheck": "tsc --noEmit && tsc -p isolate/tsconfig.json",
|
|
100
104
|
"lint": "biome check .",
|
|
101
105
|
"check:publint": "publint",
|
|
102
106
|
"check:attw": "attw --pack --profile esm-only"
|
package/dist/_run-code.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* run_code built-in tool — executes user JavaScript in a fresh secure-exec
|
|
3
|
-
* V8 isolate with no network, filesystem writes, or env access.
|
|
4
|
-
*/
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import type { ToolDef } from "./types.ts";
|
|
7
|
-
declare const runCodeParams: z.ZodObject<{
|
|
8
|
-
code: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
/**
|
|
11
|
-
* Execute JavaScript code inside a fresh secure-exec V8 isolate.
|
|
12
|
-
*
|
|
13
|
-
* Each invocation spins up a disposable isolate with:
|
|
14
|
-
* - No filesystem writes
|
|
15
|
-
* - No network access
|
|
16
|
-
* - No child process spawning
|
|
17
|
-
* - No environment variable access
|
|
18
|
-
* - 32 MB memory limit
|
|
19
|
-
* - 5 second execution timeout
|
|
20
|
-
*
|
|
21
|
-
* The isolate is disposed immediately after execution, so no state
|
|
22
|
-
* leaks between invocations or across sessions.
|
|
23
|
-
*/
|
|
24
|
-
export declare function createRunCode(): ToolDef<typeof runCodeParams>;
|
|
25
|
-
/**
|
|
26
|
-
* Exported for testing — execute user code in a fresh secure-exec V8 isolate.
|
|
27
|
-
*/
|
|
28
|
-
export declare function executeInIsolate(code: string): Promise<string | {
|
|
29
|
-
error: string;
|
|
30
|
-
}>;
|
|
31
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared runtime conformance tests.
|
|
3
|
-
*
|
|
4
|
-
* Both the self-hosted direct executor and the platform sandbox must satisfy
|
|
5
|
-
* the same behavioral contract. This module defines that contract as a
|
|
6
|
-
* reusable test suite that can be wired to either runtime.
|
|
7
|
-
*
|
|
8
|
-
* Inspired by Nitro's `testNitro()` pattern: one test fixture, many runtimes.
|
|
9
|
-
*
|
|
10
|
-
* @example Direct executor (unit test)
|
|
11
|
-
* ```ts
|
|
12
|
-
* import { testRuntime } from "./_runtime-conformance.ts";
|
|
13
|
-
*
|
|
14
|
-
* testRuntime("direct", () => {
|
|
15
|
-
* const exec = createRuntime({ agent: CONFORMANCE_AGENT, env: { MY_VAR: "test-value" } });
|
|
16
|
-
* return { executeTool: exec.executeTool, hooks: exec.hooks };
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @example Sandbox (integration test)
|
|
21
|
-
* ```ts
|
|
22
|
-
* import { testRuntime, CONFORMANCE_AGENT_BUNDLE } from "@alexkroman1/aai/runtime-conformance";
|
|
23
|
-
*
|
|
24
|
-
* testRuntime("sandbox", async () => {
|
|
25
|
-
* // ... start isolate with CONFORMANCE_AGENT_BUNDLE
|
|
26
|
-
* return { executeTool: buildExecuteTool(...), hooks: buildHookInvoker(...) };
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
import type { ExecuteTool } from "./_internal-types.ts";
|
|
31
|
-
import type { AgentHooks } from "./hooks.ts";
|
|
32
|
-
import { type AgentDef } from "./types.ts";
|
|
33
|
-
/**
|
|
34
|
-
* Minimal runtime surface needed for conformance tests.
|
|
35
|
-
*
|
|
36
|
-
* Both `Runtime` and `buildExecuteTool`/`buildHookInvoker` from the
|
|
37
|
-
* sandbox produce objects that satisfy this interface.
|
|
38
|
-
*/
|
|
39
|
-
export type RuntimeTestContext = {
|
|
40
|
-
executeTool: ExecuteTool;
|
|
41
|
-
hooks: AgentHooks;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Agent definition used by the conformance suite (direct executor path).
|
|
45
|
-
*
|
|
46
|
-
* Must be kept in sync with {@link CONFORMANCE_AGENT_BUNDLE}.
|
|
47
|
-
*/
|
|
48
|
-
export declare const CONFORMANCE_AGENT: AgentDef;
|
|
49
|
-
/**
|
|
50
|
-
* JavaScript bundle equivalent of {@link CONFORMANCE_AGENT} for the sandbox
|
|
51
|
-
* isolate path. Must be kept in sync with the AgentDef above.
|
|
52
|
-
*/
|
|
53
|
-
export declare const CONFORMANCE_AGENT_BUNDLE = "\nexport default {\n name: \"conformance-test\",\n instructions: \"Conformance test agent.\",\n greeting: \"Hello!\",\n maxSteps: 5,\n state: () => ({ count: 0, lastTurn: \"\" }),\n tools: {\n echo: {\n description: \"Echo input\",\n execute(args) { return \"echo:\" + args.text; },\n },\n get_env: {\n description: \"Get MY_VAR from env\",\n execute(_args, ctx) { return ctx.env.MY_VAR ?? \"missing\"; },\n },\n get_state: {\n description: \"Get session state\",\n execute(_args, ctx) { return JSON.stringify(ctx.state); },\n },\n echo_messages: {\n description: \"Return messages as JSON\",\n execute(_args, ctx) { return JSON.stringify(ctx.messages); },\n },\n kv_roundtrip: {\n description: \"KV set then get\",\n async execute(args, ctx) {\n await ctx.kv.set(\"test-key\", args.value);\n const result = await ctx.kv.get(\"test-key\");\n return \"stored:\" + JSON.stringify(result);\n },\n },\n },\n onConnect: (ctx) => { ctx.state.count = 1; },\n onTurn: (text, ctx) => { ctx.state.lastTurn = text; },\n};\n";
|
|
54
|
-
/**
|
|
55
|
-
* Run the runtime conformance test suite against a given runtime context.
|
|
56
|
-
*
|
|
57
|
-
* The `getContext` callback is invoked once per test to retrieve the
|
|
58
|
-
* current {@link RuntimeTestContext}. This allows the caller to set up
|
|
59
|
-
* the runtime in a `beforeAll` and return it lazily.
|
|
60
|
-
*
|
|
61
|
-
* All tests assume the runtime was created with {@link CONFORMANCE_AGENT}
|
|
62
|
-
* (or its bundle equivalent) and `env: { MY_VAR: "test-value" }`.
|
|
63
|
-
*/
|
|
64
|
-
export declare function testRuntime(label: string, getContext: () => RuntimeTestContext): void;
|
package/dist/_utils.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** Shared utility functions. */
|
|
2
|
-
/** Extract an error message from an unknown thrown value. */
|
|
3
|
-
export declare function errorMessage(err: unknown): string;
|
|
4
|
-
/** Extract a detailed error string (message + stack) for diagnostic logging. */
|
|
5
|
-
export declare function errorDetail(err: unknown): string;
|
|
6
|
-
/** Check whether a filesystem operation is a read-only operation. */
|
|
7
|
-
export declare function isReadOnlyFsOp(op: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Lazily initialized per-session state manager.
|
|
10
|
-
*
|
|
11
|
-
* On first access for a given session, calls `initState()` (if provided) to
|
|
12
|
-
* create the initial state. Returns `{}` if no initializer and no prior state.
|
|
13
|
-
*/
|
|
14
|
-
export declare function createSessionStateMap(initState?: () => Record<string, unknown>): {
|
|
15
|
-
get(sessionId: string): Record<string, unknown>;
|
|
16
|
-
/** Explicitly set the state for a session. */
|
|
17
|
-
set(sessionId: string, state: Record<string, unknown>): void;
|
|
18
|
-
delete(sessionId: string): boolean;
|
|
19
|
-
};
|
|
20
|
-
/** Return a JSON error string for the LLM: `'{"error":"<message>"}'`. */
|
|
21
|
-
export declare function toolError(message: string): string;
|
package/dist/_utils.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//#region _utils.ts
|
|
2
|
-
/** Shared utility functions. */
|
|
3
|
-
/** Extract an error message from an unknown thrown value. */
|
|
4
|
-
function errorMessage(err) {
|
|
5
|
-
return err instanceof Error ? err.message : String(err);
|
|
6
|
-
}
|
|
7
|
-
/** Extract a detailed error string (message + stack) for diagnostic logging. */
|
|
8
|
-
function errorDetail(err) {
|
|
9
|
-
if (err instanceof Error) return err.stack ?? err.message;
|
|
10
|
-
return String(err);
|
|
11
|
-
}
|
|
12
|
-
/** Set of filesystem operations that are safe for read-only access. */
|
|
13
|
-
const READ_ONLY_FS_OPS = new Set([
|
|
14
|
-
"read",
|
|
15
|
-
"stat",
|
|
16
|
-
"readdir",
|
|
17
|
-
"exists"
|
|
18
|
-
]);
|
|
19
|
-
/** Check whether a filesystem operation is a read-only operation. */
|
|
20
|
-
function isReadOnlyFsOp(op) {
|
|
21
|
-
return READ_ONLY_FS_OPS.has(op);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Lazily initialized per-session state manager.
|
|
25
|
-
*
|
|
26
|
-
* On first access for a given session, calls `initState()` (if provided) to
|
|
27
|
-
* create the initial state. Returns `{}` if no initializer and no prior state.
|
|
28
|
-
*/
|
|
29
|
-
function createSessionStateMap(initState) {
|
|
30
|
-
const map = /* @__PURE__ */ new Map();
|
|
31
|
-
return {
|
|
32
|
-
get(sessionId) {
|
|
33
|
-
if (!map.has(sessionId) && initState) map.set(sessionId, initState());
|
|
34
|
-
return map.get(sessionId) ?? {};
|
|
35
|
-
},
|
|
36
|
-
set(sessionId, state) {
|
|
37
|
-
map.set(sessionId, state);
|
|
38
|
-
},
|
|
39
|
-
delete(sessionId) {
|
|
40
|
-
return map.delete(sessionId);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/** Return a JSON error string for the LLM: `'{"error":"<message>"}'`. */
|
|
45
|
-
function toolError(message) {
|
|
46
|
-
return JSON.stringify({ error: message });
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
export { createSessionStateMap, errorDetail, errorMessage, isReadOnlyFsOp, toolError };
|
package/dist/testing.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -39,11 +39,11 @@ export type KvRequest = z.infer<typeof KvRequestSchema>;
|
|
|
39
39
|
*/
|
|
40
40
|
export declare const SessionErrorCodeSchema: z.ZodEnum<{
|
|
41
41
|
tool: "tool";
|
|
42
|
-
connection: "connection";
|
|
43
42
|
stt: "stt";
|
|
44
43
|
llm: "llm";
|
|
45
44
|
tts: "tts";
|
|
46
45
|
protocol: "protocol";
|
|
46
|
+
connection: "connection";
|
|
47
47
|
audio: "audio";
|
|
48
48
|
internal: "internal";
|
|
49
49
|
}>;
|
|
@@ -94,11 +94,11 @@ export declare const ClientEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
94
|
type: z.ZodLiteral<"error">;
|
|
95
95
|
code: z.ZodEnum<{
|
|
96
96
|
tool: "tool";
|
|
97
|
-
connection: "connection";
|
|
98
97
|
stt: "stt";
|
|
99
98
|
llm: "llm";
|
|
100
99
|
tts: "tts";
|
|
101
100
|
protocol: "protocol";
|
|
101
|
+
connection: "connection";
|
|
102
102
|
audio: "audio";
|
|
103
103
|
internal: "internal";
|
|
104
104
|
}>;
|
|
@@ -182,11 +182,11 @@ export declare const ServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
182
|
type: z.ZodLiteral<"error">;
|
|
183
183
|
code: z.ZodEnum<{
|
|
184
184
|
tool: "tool";
|
|
185
|
-
connection: "connection";
|
|
186
185
|
stt: "stt";
|
|
187
186
|
llm: "llm";
|
|
188
187
|
tts: "tts";
|
|
189
188
|
protocol: "protocol";
|
|
189
|
+
connection: "connection";
|
|
190
190
|
audio: "audio";
|
|
191
191
|
internal: "internal";
|
|
192
192
|
}>;
|
|
File without changes
|
|
File without changes
|