@voicethere/agent 0.9.7 → 0.9.8
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/templates/index.d.ts +1 -1
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/registry.d.ts +7 -0
- package/dist/templates/registry.d.ts.map +1 -1
- package/dist/templates/registry.js +54 -0
- package/dist/templates/registry.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AgentTemplateDefinition, type TemplateKind } from "./registry.js";
|
|
2
|
-
export type { AgentTemplateDefinition, AgentTemplateId, TemplateKind, } from "./registry.js";
|
|
2
|
+
export type { AgentTemplateDefinition, AgentTemplateId, TemplateCategory, TemplateKind, } from "./registry.js";
|
|
3
3
|
export { AGENT_TEMPLATES, getTemplateById, isAgentTemplateId, listSeedOnCreateTemplates, } from "./registry.js";
|
|
4
4
|
export { IMAGE_PROVIDED_NPM_PACKAGES, buildCustomerPackageJson, stripImageProvidedNpmDependencies, type BuildCustomerPackageJsonOptions, type StripImageProvidedNpmDependenciesResult, } from "./package-json.js";
|
|
5
5
|
export interface TemplateSourceFile {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,iCAAiC,EACjC,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,GAC7C,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAA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Y,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,iCAAiC,CAAC,CAAC;IACnE,CAAC;IACD,MAAM,UAAU,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IACtC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,oCAAoC,EAAE,2CAA2C,CAClF,CAAC;IACJ,CAAC;IACD,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB;IAC5C,KAAK,MAAM,QAAQ,IAAI,yBAAyB,EAAE,EAAE,CAAC;QACnD,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC5C,MAAM,gBAAgB,CAAC;YACrB,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC;YACxC,OAAO;SACR,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type TemplateKind = "product" | "e2e";
|
|
2
|
+
export type TemplateCategory = "voice" | "data" | "voice-data" | "integration" | "debug";
|
|
2
3
|
export interface AgentTemplateDefinition {
|
|
3
4
|
id: string;
|
|
4
5
|
/** Path relative to `templates/` (e.g. `echo/agent.ts`, `redis-sync/agent.ts`). */
|
|
@@ -6,6 +7,12 @@ export interface AgentTemplateDefinition {
|
|
|
6
7
|
kind: TemplateKind;
|
|
7
8
|
/** When true, a prebuilt bundle is published at `dist/templates/<id>/agent.js`. */
|
|
8
9
|
seedOnCreate: boolean;
|
|
10
|
+
/** Short label for template pickers. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** One sentence for template pickers; `description` stays the long text. */
|
|
13
|
+
summary: string;
|
|
14
|
+
/** Picker grouping. */
|
|
15
|
+
category: TemplateCategory;
|
|
9
16
|
description: string;
|
|
10
17
|
/** All TypeScript sources for this template (project-relative paths). */
|
|
11
18
|
sourceFiles: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/templates/registry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,KAAK,CAAC;AAE7C,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,mFAAmF;IACnF,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,uBAAuB,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/templates/registry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,KAAK,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GACxB,OAAO,GACP,MAAM,GACN,YAAY,GACZ,aAAa,GACb,OAAO,CAAC;AAEZ,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,mFAAmF;IACnF,YAAY,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,uBAAuB,EAuPpD,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAMrE,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,eAAe,CAEnE;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,uBAAuB,CAMnE;AAED,wBAAgB,yBAAyB,IAAI,uBAAuB,EAAE,CAErE"}
|
|
@@ -4,6 +4,9 @@ export const AGENT_TEMPLATES = [
|
|
|
4
4
|
entry: "echo/agent.ts",
|
|
5
5
|
kind: "product",
|
|
6
6
|
seedOnCreate: true,
|
|
7
|
+
title: "Echo (voice + chat)",
|
|
8
|
+
summary: "Echo debug agent with voice finals and DataChannel chat.",
|
|
9
|
+
category: "debug",
|
|
7
10
|
description: "Full echo debug agent — voice finals and DataChannel chat with TTS playback.",
|
|
8
11
|
sourceFiles: ["echo/agent.ts"],
|
|
9
12
|
},
|
|
@@ -12,6 +15,9 @@ export const AGENT_TEMPLATES = [
|
|
|
12
15
|
entry: "echo-dc/agent.ts",
|
|
13
16
|
kind: "product",
|
|
14
17
|
seedOnCreate: true,
|
|
18
|
+
title: "Echo debug (DC events only)",
|
|
19
|
+
summary: "Data-channel-only echo agent without TTS.",
|
|
20
|
+
category: "debug",
|
|
15
21
|
description: "Data-channel-only echo — relays speech events and chat without TTS.",
|
|
16
22
|
sourceFiles: ["echo-dc/agent.ts"],
|
|
17
23
|
},
|
|
@@ -20,6 +26,9 @@ export const AGENT_TEMPLATES = [
|
|
|
20
26
|
entry: "language-switch/agent.ts",
|
|
21
27
|
kind: "product",
|
|
22
28
|
seedOnCreate: true,
|
|
29
|
+
title: "Language switch",
|
|
30
|
+
summary: "Detects the caller's language and switches speech recognition and voice mid-call, with a holding message and an unavailable notice.",
|
|
31
|
+
category: "voice",
|
|
23
32
|
description: "Switches STT and TTS independently from onUserLanguage, and can change one vendor mid-conversation. With project auto-switch on, the runner switches and replays the utterance, and the agent answers the recognized text in the new language. With auto-switch off, detection does not change either side until this agent calls setVoiceLanguage.",
|
|
24
33
|
sourceFiles: ["language-switch/agent.ts"],
|
|
25
34
|
},
|
|
@@ -28,6 +37,9 @@ export const AGENT_TEMPLATES = [
|
|
|
28
37
|
entry: "voice-starter/agent.ts",
|
|
29
38
|
kind: "product",
|
|
30
39
|
seedOnCreate: true,
|
|
40
|
+
title: "Voice starter",
|
|
41
|
+
summary: "Starter agent covering every speech event.",
|
|
42
|
+
category: "voice",
|
|
31
43
|
description: "Voice starter covering every speech event — customize onUserSpeechFinal for your LLM.",
|
|
32
44
|
sourceFiles: ["voice-starter/agent.ts"],
|
|
33
45
|
},
|
|
@@ -36,6 +48,9 @@ export const AGENT_TEMPLATES = [
|
|
|
36
48
|
entry: "world-sync/agent.ts",
|
|
37
49
|
kind: "product",
|
|
38
50
|
seedOnCreate: true,
|
|
51
|
+
title: "World sync (JSON)",
|
|
52
|
+
summary: "Data-only pose broadcast over onDataChannelMessage. One agent, no Redis.",
|
|
53
|
+
category: "data",
|
|
39
54
|
description: "Single-agent JSON world sync — onDataChannelMessage pose updates, in-memory, no Redis.",
|
|
40
55
|
sourceFiles: ["world-sync/agent.ts"],
|
|
41
56
|
},
|
|
@@ -44,6 +59,9 @@ export const AGENT_TEMPLATES = [
|
|
|
44
59
|
entry: "world-sync-binary/agent.ts",
|
|
45
60
|
kind: "product",
|
|
46
61
|
seedOnCreate: true,
|
|
62
|
+
title: "World sync (binary)",
|
|
63
|
+
summary: "Data-only ArrayBuffer poses with onDataChannelBinary. One agent, no Redis.",
|
|
64
|
+
category: "data",
|
|
47
65
|
description: "Single-agent binary world sync — onDataChannelBinary + sendBinaryToClient ArrayBuffer poses, no Redis.",
|
|
48
66
|
sourceFiles: [
|
|
49
67
|
"world-sync-binary/agent.ts",
|
|
@@ -55,6 +73,9 @@ export const AGENT_TEMPLATES = [
|
|
|
55
73
|
entry: "game-sync/agent.ts",
|
|
56
74
|
kind: "product",
|
|
57
75
|
seedOnCreate: true,
|
|
76
|
+
title: "Game sync (multi-object DC)",
|
|
77
|
+
summary: "Authoritative multi-object sync sample for real-time games.",
|
|
78
|
+
category: "data",
|
|
58
79
|
description: "Authoritative multi-object sync with binary world snapshots; uses Redis when AGENT_REDIS_URL is set.",
|
|
59
80
|
sourceFiles: [
|
|
60
81
|
"game-sync/agent.ts",
|
|
@@ -70,6 +91,9 @@ export const AGENT_TEMPLATES = [
|
|
|
70
91
|
entry: "voice-showcase/agent.ts",
|
|
71
92
|
kind: "product",
|
|
72
93
|
seedOnCreate: true,
|
|
94
|
+
title: "Voice showcase",
|
|
95
|
+
summary: "Conversational demo: greeting, name, menu (weather, count, recipes, fun facts).",
|
|
96
|
+
category: "voice",
|
|
73
97
|
description: "Conversational voice showcase — greeting, name, menu (weather, count, recipe, fun fact).",
|
|
74
98
|
sourceFiles: [
|
|
75
99
|
"voice-showcase/agent.ts",
|
|
@@ -85,6 +109,9 @@ export const AGENT_TEMPLATES = [
|
|
|
85
109
|
entry: "recording-consent/agent.ts",
|
|
86
110
|
kind: "product",
|
|
87
111
|
seedOnCreate: true,
|
|
112
|
+
title: "Recording consent",
|
|
113
|
+
summary: "Asks recording consent on connect, pauses for name and birthdate, resumes only if allowed.",
|
|
114
|
+
category: "voice",
|
|
88
115
|
description: "Recording consent flow — ask consent, pause capture for PII, resume when allowed.",
|
|
89
116
|
sourceFiles: [
|
|
90
117
|
"recording-consent/agent.ts",
|
|
@@ -96,6 +123,9 @@ export const AGENT_TEMPLATES = [
|
|
|
96
123
|
entry: "positional-tts/agent.ts",
|
|
97
124
|
kind: "product",
|
|
98
125
|
seedOnCreate: true,
|
|
126
|
+
title: "Orbiting TTS",
|
|
127
|
+
summary: "Voice+Data demo: a TTS speaker circles each listener with per-client poses.",
|
|
128
|
+
category: "voice-data",
|
|
99
129
|
description: "Voice+Data demo — TTS speaker orbits each listener with per-client setTtsPose.",
|
|
100
130
|
sourceFiles: ["positional-tts/agent.ts", "positional-tts/orbit.ts"],
|
|
101
131
|
},
|
|
@@ -104,6 +134,9 @@ export const AGENT_TEMPLATES = [
|
|
|
104
134
|
entry: "spatial-showcase/agent.ts",
|
|
105
135
|
kind: "product",
|
|
106
136
|
seedOnCreate: true,
|
|
137
|
+
title: "Spatial audio showcase",
|
|
138
|
+
summary: "Voice+Data demo: orbiting sine tone and TTS, positional soundboard, and a proximity room via DataChannel join.",
|
|
139
|
+
category: "voice-data",
|
|
107
140
|
description: "Spatial audio showcase — orbiting sine + TTS, positional clip soundboard, proximity room via DataChannel commands.",
|
|
108
141
|
sourceFiles: [
|
|
109
142
|
"spatial-showcase/agent.ts",
|
|
@@ -120,6 +153,9 @@ export const AGENT_TEMPLATES = [
|
|
|
120
153
|
entry: "webhooks/agent.ts",
|
|
121
154
|
kind: "product",
|
|
122
155
|
seedOnCreate: true,
|
|
156
|
+
title: "Inbound webhooks",
|
|
157
|
+
summary: "Verifies inbound webhooks with HMAC, then fans out over DataChannel and speech.",
|
|
158
|
+
category: "integration",
|
|
123
159
|
description: "Inbound webhook handler — HMAC verify on raw body, then DataChannel + speak fan-out.",
|
|
124
160
|
sourceFiles: ["webhooks/agent.ts"],
|
|
125
161
|
},
|
|
@@ -128,6 +164,9 @@ export const AGENT_TEMPLATES = [
|
|
|
128
164
|
entry: "webhooks-redis/agent.ts",
|
|
129
165
|
kind: "product",
|
|
130
166
|
seedOnCreate: true,
|
|
167
|
+
title: "Inbound webhooks (Redis)",
|
|
168
|
+
summary: "Webhook handler with a Redis shared counter and DataChannel fan-out.",
|
|
169
|
+
category: "integration",
|
|
131
170
|
description: "Webhook handler with Redis atomic shared counter plus DataChannel fan-out.",
|
|
132
171
|
sourceFiles: ["webhooks-redis/agent.ts"],
|
|
133
172
|
npmDependencies: { ioredis: "^5.11.1" },
|
|
@@ -137,6 +176,9 @@ export const AGENT_TEMPLATES = [
|
|
|
137
176
|
entry: "echo-smoke/agent.ts",
|
|
138
177
|
kind: "e2e",
|
|
139
178
|
seedOnCreate: false,
|
|
179
|
+
title: "Echo smoke",
|
|
180
|
+
summary: "Minimal echo agent for e2e voice-smoke, agent-smoke, and cli-smoke uploads.",
|
|
181
|
+
category: "debug",
|
|
140
182
|
description: "Minimal echo agent for e2e voice-smoke, agent-smoke, and cli-smoke uploads.",
|
|
141
183
|
sourceFiles: ["echo-smoke/agent.ts"],
|
|
142
184
|
},
|
|
@@ -145,6 +187,9 @@ export const AGENT_TEMPLATES = [
|
|
|
145
187
|
entry: "crash/agent.ts",
|
|
146
188
|
kind: "e2e",
|
|
147
189
|
seedOnCreate: false,
|
|
190
|
+
title: "Crash test",
|
|
191
|
+
summary: "Crash / echo agent for session-errors-smoke and agent-crash-policy smokes.",
|
|
192
|
+
category: "debug",
|
|
148
193
|
description: "Crash / echo agent for session-errors-smoke and agent-crash-policy smokes.",
|
|
149
194
|
sourceFiles: ["crash/agent.ts"],
|
|
150
195
|
},
|
|
@@ -153,6 +198,9 @@ export const AGENT_TEMPLATES = [
|
|
|
153
198
|
entry: "game-sync-smoke/agent.ts",
|
|
154
199
|
kind: "e2e",
|
|
155
200
|
seedOnCreate: false,
|
|
201
|
+
title: "Game sync smoke",
|
|
202
|
+
summary: "Minimal data-channel agent for deploy-smoke, shared-child, and idle smokes.",
|
|
203
|
+
category: "debug",
|
|
156
204
|
description: "Minimal data-channel agent for deploy-smoke, shared-child, and idle smokes.",
|
|
157
205
|
sourceFiles: ["game-sync-smoke/agent.ts"],
|
|
158
206
|
},
|
|
@@ -161,6 +209,9 @@ export const AGENT_TEMPLATES = [
|
|
|
161
209
|
entry: "redis-sync/agent.ts",
|
|
162
210
|
kind: "e2e",
|
|
163
211
|
seedOnCreate: false,
|
|
212
|
+
title: "Redis sync",
|
|
213
|
+
summary: "Redis-backed world buffer sync for redis-sync-smoke.",
|
|
214
|
+
category: "debug",
|
|
164
215
|
description: "Redis-backed world buffer sync for redis-sync-smoke — binary 12-byte position frames + project Redis.",
|
|
165
216
|
sourceFiles: ["redis-sync/agent.ts", "redis-sync/world-layout.ts"],
|
|
166
217
|
npmDependencies: { ioredis: "^5.11.1" },
|
|
@@ -170,6 +221,9 @@ export const AGENT_TEMPLATES = [
|
|
|
170
221
|
entry: "mix-smoke/agent.ts",
|
|
171
222
|
kind: "e2e",
|
|
172
223
|
seedOnCreate: false,
|
|
224
|
+
title: "Mix smoke",
|
|
225
|
+
summary: "Positional mix DC commands for voice-data-mix-smoke (Voice+Data, shared child).",
|
|
226
|
+
category: "debug",
|
|
173
227
|
description: "Positional mix DC commands for voice-data-mix-smoke (Voice+Data, shared child).",
|
|
174
228
|
sourceFiles: ["mix-smoke/agent.ts"],
|
|
175
229
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/templates/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/templates/registry.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAC,MAAM,eAAe,GAAuC;IACjE;QACE,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,0DAA0D;QACnE,QAAQ,EAAE,OAAO;QACjB,WAAW,EACT,8EAA8E;QAChF,WAAW,EAAE,CAAC,eAAe,CAAC;KAC/B;IACD;QACE,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,6BAA6B;QACpC,OAAO,EAAE,2CAA2C;QACpD,QAAQ,EAAE,OAAO;QACjB,WAAW,EACT,qEAAqE;QACvE,WAAW,EAAE,CAAC,kBAAkB,CA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