@absolutejs/voice 0.0.22-beta.646 → 0.0.22-beta.647
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 +1 -2
- package/dist/core/plugin.d.ts +6 -6
- package/dist/embed/voice-widget.js +3 -3
- package/dist/manifest.js +35 -8558
- package/dist/telephony/plivo.d.ts +3 -3
- package/dist/telephony/telnyx.d.ts +3 -3
- package/dist/testing/index.js +14 -3
- package/package.json +96 -21
|
@@ -263,10 +263,10 @@ export declare const createPlivoVoiceRoutes: <TContext = unknown, TSession exten
|
|
|
263
263
|
} & {
|
|
264
264
|
[x: string]: {
|
|
265
265
|
subscribe: {
|
|
266
|
-
body:
|
|
266
|
+
body: {};
|
|
267
267
|
params: {};
|
|
268
|
-
query:
|
|
269
|
-
headers:
|
|
268
|
+
query: {};
|
|
269
|
+
headers: {};
|
|
270
270
|
response: {};
|
|
271
271
|
};
|
|
272
272
|
};
|
|
@@ -251,10 +251,10 @@ export declare const createTelnyxVoiceRoutes: <TContext = unknown, TSession exte
|
|
|
251
251
|
} & {
|
|
252
252
|
[x: string]: {
|
|
253
253
|
subscribe: {
|
|
254
|
-
body:
|
|
254
|
+
body: {};
|
|
255
255
|
params: {};
|
|
256
|
-
query:
|
|
257
|
-
headers:
|
|
256
|
+
query: {};
|
|
257
|
+
headers: {};
|
|
258
258
|
response: {};
|
|
259
259
|
};
|
|
260
260
|
};
|
package/dist/testing/index.js
CHANGED
|
@@ -328,7 +328,12 @@ var applyVoiceAudioCondition = (fixture, condition) => {
|
|
|
328
328
|
for (let index = 0;index < output.length; index += 1)
|
|
329
329
|
output[index] = clamp(output[index] + random() * Math.sqrt(3) * noiseRms);
|
|
330
330
|
}
|
|
331
|
-
return {
|
|
331
|
+
return {
|
|
332
|
+
...fixture,
|
|
333
|
+
audio: bytes(output),
|
|
334
|
+
id: `${fixture.id}--${condition.id}`,
|
|
335
|
+
tags: [...fixture.tags ?? [], "conditioned", condition.id]
|
|
336
|
+
};
|
|
332
337
|
};
|
|
333
338
|
var buildVoiceAudioMatrix = (fixtures, conditions) => fixtures.flatMap((fixture) => conditions.map((condition) => applyVoiceAudioCondition(fixture, condition)));
|
|
334
339
|
// src/testing/stt.ts
|
|
@@ -6010,9 +6015,15 @@ var stableBenchmarkJson = (value) => {
|
|
|
6010
6015
|
};
|
|
6011
6016
|
var buildVoiceBenchmarkArtifact = (manifest, report) => {
|
|
6012
6017
|
const payload = { manifest, report };
|
|
6013
|
-
return {
|
|
6018
|
+
return {
|
|
6019
|
+
...payload,
|
|
6020
|
+
artifactSha256: sha256Bytes(stableBenchmarkJson(payload))
|
|
6021
|
+
};
|
|
6014
6022
|
};
|
|
6015
|
-
var verifyVoiceBenchmarkArtifact = (artifact) => artifact.artifactSha256 === sha256Bytes(stableBenchmarkJson({
|
|
6023
|
+
var verifyVoiceBenchmarkArtifact = (artifact) => artifact.artifactSha256 === sha256Bytes(stableBenchmarkJson({
|
|
6024
|
+
manifest: artifact.manifest,
|
|
6025
|
+
report: artifact.report
|
|
6026
|
+
}));
|
|
6016
6027
|
// src/core/memoryStore.ts
|
|
6017
6028
|
var createVoiceMemoryStore = () => {
|
|
6018
6029
|
const sessions = new Map;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/voice",
|
|
3
|
-
"version": "0.0.22-beta.
|
|
3
|
+
"version": "0.0.22-beta.647",
|
|
4
4
|
"description": "Voice primitives and Elysia plugin for AbsoluteJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,19 +19,21 @@
|
|
|
19
19
|
"license": "BSL-1.1",
|
|
20
20
|
"author": "Alex Kahn",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "rm -rf dist && bun build ./src/index.ts ./src/manifest.ts ./src/client/index.ts ./src/react/index.ts ./src/vue/index.ts ./src/svelte/index.ts ./src/angular/index.ts ./src/testing/index.ts ./src/drizzle/index.ts --outdir dist --root ./src --target bun --external
|
|
22
|
+
"build": "rm -rf dist && bun build ./src/index.ts ./src/manifest.ts ./src/client/index.ts ./src/react/index.ts ./src/vue/index.ts ./src/svelte/index.ts ./src/angular/index.ts ./src/testing/index.ts ./src/drizzle/index.ts --outdir dist --root ./src --target bun --external @absolutejs/ai --external '@absolutejs/ai/*' --external @absolutejs/manifest --external '@absolutejs/manifest/*' --external @absolutejs/media --external '@absolutejs/media/*' --external @angular/core --external '@angular/core/*' --external @sinclair/typebox --external '@sinclair/typebox/*' --external drizzle-orm --external 'drizzle-orm/*' --external elysia --external 'elysia/*' --external react --external 'react/*' --external vue --external 'vue/*' && bun build ./src/client/htmxBootstrap.ts --outdir dist/client --target browser --format esm && bun build ./src/embed/index.ts --outfile dist/embed/voice-widget.js --target browser --format iife --minify && bun build ./src/embed/index.ts --outdir dist/embed --target browser --format esm && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit",
|
|
23
23
|
"config": "absolute config",
|
|
24
24
|
"format": "absolute prettier --write",
|
|
25
25
|
"knip": "knip",
|
|
26
26
|
"lint": "absolute eslint",
|
|
27
|
-
"release": "bun run
|
|
28
|
-
"test": "bun test ./test/*.test.ts",
|
|
27
|
+
"release": "bun run check:package && npm publish --access public --tag beta",
|
|
28
|
+
"test": "bun test ./test/local-network/*.test.ts && bun test ./test/*.test.ts",
|
|
29
29
|
"test:adapters": "bun test ./test/live/*.test.ts",
|
|
30
30
|
"test:assemblyai": "bun test ./test/live/assemblyai.live.test.ts",
|
|
31
31
|
"test:deepgram": "bun test ./test/live/deepgram.live.test.ts",
|
|
32
32
|
"test:elevenlabs": "bun test ./test/live/elevenlabs.live.test.ts",
|
|
33
33
|
"test:openai": "bun test ./test/live/openai.live.test.ts",
|
|
34
|
-
"typecheck": "absolute typecheck"
|
|
34
|
+
"typecheck": "absolute typecheck",
|
|
35
|
+
"verify-package": "absolute-manifest verify-package",
|
|
36
|
+
"check:package": "bun run format && bun run typecheck && bun run test && bun run verify-package && bun run build && bun run verify-package --artifacts"
|
|
35
37
|
},
|
|
36
38
|
"exports": {
|
|
37
39
|
".": {
|
|
@@ -114,13 +116,12 @@
|
|
|
114
116
|
}
|
|
115
117
|
},
|
|
116
118
|
"peerDependencies": {
|
|
117
|
-
"@absolutejs/absolute": ">=0.19.0-beta.646",
|
|
118
119
|
"@absolutejs/ai": ">=0.0.5",
|
|
119
|
-
"@angular/core": ">=21
|
|
120
|
+
"@angular/core": ">=21 <23",
|
|
120
121
|
"drizzle-orm": ">=1.0.0-rc.4 <2",
|
|
121
|
-
"elysia": ">=1.4.
|
|
122
|
-
"react": ">=19
|
|
123
|
-
"vue": ">=3.5
|
|
122
|
+
"elysia": ">=1.4.29 <2",
|
|
123
|
+
"react": ">=19 <20",
|
|
124
|
+
"vue": ">=3.5 <4"
|
|
124
125
|
},
|
|
125
126
|
"peerDependenciesMeta": {
|
|
126
127
|
"@absolutejs/ai": {
|
|
@@ -140,22 +141,22 @@
|
|
|
140
141
|
}
|
|
141
142
|
},
|
|
142
143
|
"dependencies": {
|
|
143
|
-
"@absolutejs/manifest": "
|
|
144
|
-
"@absolutejs/media": "0.0.1-beta.
|
|
145
|
-
"@sinclair/typebox": "
|
|
144
|
+
"@absolutejs/manifest": "0.7.2",
|
|
145
|
+
"@absolutejs/media": "0.0.1-beta.23",
|
|
146
|
+
"@sinclair/typebox": "0.34.52"
|
|
146
147
|
},
|
|
147
148
|
"devDependencies": {
|
|
148
|
-
"@absolutejs/absolute": "0.19.0-beta.
|
|
149
|
-
"@absolutejs/ai": "0.0.
|
|
150
|
-
"@angular/core": "
|
|
149
|
+
"@absolutejs/absolute": "0.19.0-beta.1115",
|
|
150
|
+
"@absolutejs/ai": "0.0.47",
|
|
151
|
+
"@angular/core": "22.0.8",
|
|
151
152
|
"@electric-sql/pglite": "^0.4.5",
|
|
152
153
|
"@eslint/js": "^10.0.1",
|
|
153
154
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
154
|
-
"@types/bun": "1.3.
|
|
155
|
+
"@types/bun": "1.3.14",
|
|
155
156
|
"@types/react": "19.2.0",
|
|
156
157
|
"@typescript-eslint/parser": "^8.57.2",
|
|
157
158
|
"drizzle-orm": "1.0.0-rc.4",
|
|
158
|
-
"elysia": "1.4.
|
|
159
|
+
"elysia": "1.4.29",
|
|
159
160
|
"eslint": "^10.1.0",
|
|
160
161
|
"eslint-plugin-absolute": "0.11.0-beta.3",
|
|
161
162
|
"eslint-plugin-promise": "^7.2.1",
|
|
@@ -163,12 +164,86 @@
|
|
|
163
164
|
"globals": "^17.4.0",
|
|
164
165
|
"knip": "^6.14.1",
|
|
165
166
|
"prettier": "^3.4.0",
|
|
166
|
-
"react": "19.2.
|
|
167
|
+
"react": "19.2.8",
|
|
167
168
|
"typescript": "^5.9.3",
|
|
168
169
|
"typescript-eslint": "^8.57.2",
|
|
169
|
-
"vue": "3.5.
|
|
170
|
+
"vue": "3.5.40"
|
|
170
171
|
},
|
|
171
172
|
"absolutejs": {
|
|
172
|
-
"manifestContract": 2
|
|
173
|
+
"manifestContract": 2,
|
|
174
|
+
"runtimePeers": {
|
|
175
|
+
"@absolutejs/ai": {
|
|
176
|
+
"artifactImports": [],
|
|
177
|
+
"buildExternals": [
|
|
178
|
+
"@absolutejs/ai",
|
|
179
|
+
"@absolutejs/ai/*"
|
|
180
|
+
],
|
|
181
|
+
"optional": true,
|
|
182
|
+
"range": ">=0.0.5",
|
|
183
|
+
"tested": "0.0.47"
|
|
184
|
+
},
|
|
185
|
+
"@angular/core": {
|
|
186
|
+
"artifactImports": [
|
|
187
|
+
"@angular/core"
|
|
188
|
+
],
|
|
189
|
+
"buildExternals": [
|
|
190
|
+
"@angular/core",
|
|
191
|
+
"@angular/core/*"
|
|
192
|
+
],
|
|
193
|
+
"optional": true,
|
|
194
|
+
"range": ">=21 <23",
|
|
195
|
+
"tested": "22.0.8"
|
|
196
|
+
},
|
|
197
|
+
"drizzle-orm": {
|
|
198
|
+
"artifactImports": [
|
|
199
|
+
"drizzle-orm",
|
|
200
|
+
"drizzle-orm/pg-core"
|
|
201
|
+
],
|
|
202
|
+
"buildExternals": [
|
|
203
|
+
"drizzle-orm",
|
|
204
|
+
"drizzle-orm/*"
|
|
205
|
+
],
|
|
206
|
+
"optional": true,
|
|
207
|
+
"range": ">=1.0.0-rc.4 <2",
|
|
208
|
+
"tested": "1.0.0-rc.4"
|
|
209
|
+
},
|
|
210
|
+
"elysia": {
|
|
211
|
+
"artifactImports": [
|
|
212
|
+
"elysia"
|
|
213
|
+
],
|
|
214
|
+
"buildExternals": [
|
|
215
|
+
"elysia",
|
|
216
|
+
"elysia/*"
|
|
217
|
+
],
|
|
218
|
+
"optional": false,
|
|
219
|
+
"range": ">=1.4.29 <2",
|
|
220
|
+
"tested": "1.4.29"
|
|
221
|
+
},
|
|
222
|
+
"react": {
|
|
223
|
+
"artifactImports": [
|
|
224
|
+
"react",
|
|
225
|
+
"react/jsx-dev-runtime"
|
|
226
|
+
],
|
|
227
|
+
"buildExternals": [
|
|
228
|
+
"react",
|
|
229
|
+
"react/*"
|
|
230
|
+
],
|
|
231
|
+
"optional": true,
|
|
232
|
+
"range": ">=19 <20",
|
|
233
|
+
"tested": "19.2.8"
|
|
234
|
+
},
|
|
235
|
+
"vue": {
|
|
236
|
+
"artifactImports": [
|
|
237
|
+
"vue"
|
|
238
|
+
],
|
|
239
|
+
"buildExternals": [
|
|
240
|
+
"vue",
|
|
241
|
+
"vue/*"
|
|
242
|
+
],
|
|
243
|
+
"optional": true,
|
|
244
|
+
"range": ">=3.5 <4",
|
|
245
|
+
"tested": "3.5.40"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
173
248
|
}
|
|
174
249
|
}
|