threenative-asset-mcp 0.9.0 → 0.9.2
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 +87 -0
- package/dist/audio/fsutil.d.ts +7 -0
- package/dist/audio/fsutil.d.ts.map +1 -0
- package/dist/audio/fsutil.js +37 -0
- package/dist/audio/fsutil.js.map +1 -0
- package/dist/audio/generate.d.ts +95 -0
- package/dist/audio/generate.d.ts.map +1 -0
- package/dist/audio/generate.js +405 -0
- package/dist/audio/generate.js.map +1 -0
- package/dist/audio/inspect.d.ts +123 -0
- package/dist/audio/inspect.d.ts.map +1 -0
- package/dist/audio/inspect.js +464 -0
- package/dist/audio/inspect.js.map +1 -0
- package/dist/audio/semantic.d.ts +66 -0
- package/dist/audio/semantic.d.ts.map +1 -0
- package/dist/audio/semantic.js +197 -0
- package/dist/audio/semantic.js.map +1 -0
- package/dist/rig/fit.d.ts.map +1 -1
- package/dist/rig/fit.js +16 -3
- package/dist/rig/fit.js.map +1 -1
- package/dist/rig/preview.d.ts.map +1 -1
- package/dist/rig/preview.js +17 -5
- package/dist/rig/preview.js.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +33 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/audio.d.ts +622 -0
- package/dist/tools/audio.d.ts.map +1 -1
- package/dist/tools/audio.js +217 -1
- package/dist/tools/audio.js.map +1 -1
- package/dist/unreal/importer.d.ts +1 -1
- package/dist/unreal/importer.d.ts.map +1 -1
- package/dist/unreal/importer.js +17 -12
- package/dist/unreal/importer.js.map +1 -1
- package/dist/unreal/provision.d.ts +4 -1
- package/dist/unreal/provision.d.ts.map +1 -1
- package/dist/unreal/provision.js +8 -2
- package/dist/unreal/provision.js.map +1 -1
- package/dist/unreal/psa.d.ts.map +1 -1
- package/dist/unreal/psa.js +27 -9
- package/dist/unreal/psa.js.map +1 -1
- package/package.json +3 -1
- package/scripts/audio-semantic.py +168 -0
package/dist/tools/audio.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AudioCatalogClient } from "../audio/client.js";
|
|
3
|
+
import { type AudioGenerator } from "../audio/generate.js";
|
|
4
|
+
import { type AudioInspector } from "../audio/inspect.js";
|
|
3
5
|
export declare const AudioListSourcesInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
4
6
|
export declare const AudioListSourcesOutputSchema: z.ZodObject<{
|
|
5
7
|
sources: z.ZodArray<z.ZodObject<{
|
|
@@ -208,4 +210,624 @@ export declare function createAudioDownloadHandler(client: AudioCatalogClient):
|
|
|
208
210
|
text: string;
|
|
209
211
|
}[];
|
|
210
212
|
}>;
|
|
213
|
+
export declare const AudioInspectInputSchema: z.ZodObject<{
|
|
214
|
+
expectedPrompt: z.ZodOptional<z.ZodString>;
|
|
215
|
+
alternativePrompts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
|
+
emotion: z.ZodOptional<z.ZodObject<{
|
|
217
|
+
sourceDescription: z.ZodString;
|
|
218
|
+
targetMood: z.ZodString;
|
|
219
|
+
alternativeMoods: z.ZodArray<z.ZodString>;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
bands: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
sub: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, z.core.$strict>>;
|
|
226
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
mid: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
}, z.core.$strict>>;
|
|
234
|
+
high: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
air: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
}, z.core.$strict>>;
|
|
242
|
+
}, z.core.$strict>>;
|
|
243
|
+
peakMax: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
silenceRms: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
seamMaxRatio: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
semantic: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
clap: "clap";
|
|
248
|
+
off: "off";
|
|
249
|
+
}>>;
|
|
250
|
+
path: z.ZodString;
|
|
251
|
+
loop: z.ZodBoolean;
|
|
252
|
+
expectedDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
export declare const AudioInspectionResultSchema: z.ZodObject<{
|
|
255
|
+
inputPath: z.ZodString;
|
|
256
|
+
inputSha256: z.ZodString;
|
|
257
|
+
inputSizeBytes: z.ZodNumber;
|
|
258
|
+
analysis: z.ZodObject<{
|
|
259
|
+
inspector: z.ZodString;
|
|
260
|
+
inspectorVersion: z.ZodString;
|
|
261
|
+
adapterVersion: z.ZodString;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
limits: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
264
|
+
effectiveExpectations: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
265
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
durationSeconds: z.ZodNumber;
|
|
267
|
+
sampleRate: z.ZodNumber;
|
|
268
|
+
channels: z.ZodNumber;
|
|
269
|
+
peak: z.ZodNumber;
|
|
270
|
+
rms: z.ZodNumber;
|
|
271
|
+
dc: z.ZodNumber;
|
|
272
|
+
bands: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
273
|
+
seam: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
wrap: z.ZodNumber;
|
|
275
|
+
nearP99: z.ZodNumber;
|
|
276
|
+
ratio: z.ZodNumber;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
severity: z.ZodEnum<{
|
|
282
|
+
error: "error";
|
|
283
|
+
warning: "warning";
|
|
284
|
+
}>;
|
|
285
|
+
reason: z.ZodString;
|
|
286
|
+
remedy: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
spectrogramPath: z.ZodOptional<z.ZodString>;
|
|
289
|
+
technicalStatus: z.ZodEnum<{
|
|
290
|
+
fail: "fail";
|
|
291
|
+
pass: "pass";
|
|
292
|
+
unverified: "unverified";
|
|
293
|
+
warn: "warn";
|
|
294
|
+
}>;
|
|
295
|
+
promptFit: z.ZodEnum<{
|
|
296
|
+
consistent: "consistent";
|
|
297
|
+
possible_mismatch: "possible_mismatch";
|
|
298
|
+
unverified: "unverified";
|
|
299
|
+
}>;
|
|
300
|
+
semantic: z.ZodObject<{
|
|
301
|
+
requested: z.ZodBoolean;
|
|
302
|
+
status: z.ZodEnum<{
|
|
303
|
+
consistent: "consistent";
|
|
304
|
+
possible_mismatch: "possible_mismatch";
|
|
305
|
+
unverified: "unverified";
|
|
306
|
+
}>;
|
|
307
|
+
reason: z.ZodString;
|
|
308
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
309
|
+
text: z.ZodString;
|
|
310
|
+
score: z.ZodNumber;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
+
startSeconds: z.ZodNumber;
|
|
315
|
+
endSeconds: z.ZodNumber;
|
|
316
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
317
|
+
text: z.ZodString;
|
|
318
|
+
score: z.ZodNumber;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
}, z.core.$strip>>>;
|
|
321
|
+
calibrationId: z.ZodString;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
emotionFit: z.ZodObject<{
|
|
324
|
+
status: z.ZodEnum<{
|
|
325
|
+
consistent: "consistent";
|
|
326
|
+
not_requested: "not_requested";
|
|
327
|
+
possible_mismatch: "possible_mismatch";
|
|
328
|
+
unverified: "unverified";
|
|
329
|
+
}>;
|
|
330
|
+
requestedMood: z.ZodOptional<z.ZodString>;
|
|
331
|
+
reason: z.ZodString;
|
|
332
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
333
|
+
text: z.ZodString;
|
|
334
|
+
score: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>>;
|
|
336
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
+
startSeconds: z.ZodNumber;
|
|
339
|
+
endSeconds: z.ZodNumber;
|
|
340
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
341
|
+
text: z.ZodString;
|
|
342
|
+
score: z.ZodNumber;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
345
|
+
calibrationId: z.ZodString;
|
|
346
|
+
moodTemplateVersion: z.ZodString;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
artisticQuality: z.ZodLiteral<"unverified">;
|
|
349
|
+
recommendation: z.ZodEnum<{
|
|
350
|
+
audition: "audition";
|
|
351
|
+
reject: "reject";
|
|
352
|
+
review: "review";
|
|
353
|
+
}>;
|
|
354
|
+
notes: z.ZodArray<z.ZodString>;
|
|
355
|
+
cacheKey: z.ZodString;
|
|
356
|
+
cached: z.ZodBoolean;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
export declare const AudioInspectOutputSchema: z.ZodObject<{
|
|
359
|
+
inputPath: z.ZodString;
|
|
360
|
+
inputSha256: z.ZodString;
|
|
361
|
+
inputSizeBytes: z.ZodNumber;
|
|
362
|
+
analysis: z.ZodObject<{
|
|
363
|
+
inspector: z.ZodString;
|
|
364
|
+
inspectorVersion: z.ZodString;
|
|
365
|
+
adapterVersion: z.ZodString;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
limits: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
368
|
+
effectiveExpectations: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
369
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
durationSeconds: z.ZodNumber;
|
|
371
|
+
sampleRate: z.ZodNumber;
|
|
372
|
+
channels: z.ZodNumber;
|
|
373
|
+
peak: z.ZodNumber;
|
|
374
|
+
rms: z.ZodNumber;
|
|
375
|
+
dc: z.ZodNumber;
|
|
376
|
+
bands: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
377
|
+
seam: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
wrap: z.ZodNumber;
|
|
379
|
+
nearP99: z.ZodNumber;
|
|
380
|
+
ratio: z.ZodNumber;
|
|
381
|
+
}, z.core.$strip>>;
|
|
382
|
+
}, z.core.$strip>>;
|
|
383
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
384
|
+
name: z.ZodString;
|
|
385
|
+
severity: z.ZodEnum<{
|
|
386
|
+
error: "error";
|
|
387
|
+
warning: "warning";
|
|
388
|
+
}>;
|
|
389
|
+
reason: z.ZodString;
|
|
390
|
+
remedy: z.ZodOptional<z.ZodString>;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
spectrogramPath: z.ZodOptional<z.ZodString>;
|
|
393
|
+
technicalStatus: z.ZodEnum<{
|
|
394
|
+
fail: "fail";
|
|
395
|
+
pass: "pass";
|
|
396
|
+
unverified: "unverified";
|
|
397
|
+
warn: "warn";
|
|
398
|
+
}>;
|
|
399
|
+
promptFit: z.ZodEnum<{
|
|
400
|
+
consistent: "consistent";
|
|
401
|
+
possible_mismatch: "possible_mismatch";
|
|
402
|
+
unverified: "unverified";
|
|
403
|
+
}>;
|
|
404
|
+
semantic: z.ZodObject<{
|
|
405
|
+
requested: z.ZodBoolean;
|
|
406
|
+
status: z.ZodEnum<{
|
|
407
|
+
consistent: "consistent";
|
|
408
|
+
possible_mismatch: "possible_mismatch";
|
|
409
|
+
unverified: "unverified";
|
|
410
|
+
}>;
|
|
411
|
+
reason: z.ZodString;
|
|
412
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
413
|
+
text: z.ZodString;
|
|
414
|
+
score: z.ZodNumber;
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
418
|
+
startSeconds: z.ZodNumber;
|
|
419
|
+
endSeconds: z.ZodNumber;
|
|
420
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
421
|
+
text: z.ZodString;
|
|
422
|
+
score: z.ZodNumber;
|
|
423
|
+
}, z.core.$strip>>;
|
|
424
|
+
}, z.core.$strip>>>;
|
|
425
|
+
calibrationId: z.ZodString;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
emotionFit: z.ZodObject<{
|
|
428
|
+
status: z.ZodEnum<{
|
|
429
|
+
consistent: "consistent";
|
|
430
|
+
not_requested: "not_requested";
|
|
431
|
+
possible_mismatch: "possible_mismatch";
|
|
432
|
+
unverified: "unverified";
|
|
433
|
+
}>;
|
|
434
|
+
requestedMood: z.ZodOptional<z.ZodString>;
|
|
435
|
+
reason: z.ZodString;
|
|
436
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
437
|
+
text: z.ZodString;
|
|
438
|
+
score: z.ZodNumber;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
442
|
+
startSeconds: z.ZodNumber;
|
|
443
|
+
endSeconds: z.ZodNumber;
|
|
444
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
445
|
+
text: z.ZodString;
|
|
446
|
+
score: z.ZodNumber;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
}, z.core.$strip>>>;
|
|
449
|
+
calibrationId: z.ZodString;
|
|
450
|
+
moodTemplateVersion: z.ZodString;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
artisticQuality: z.ZodLiteral<"unverified">;
|
|
453
|
+
recommendation: z.ZodEnum<{
|
|
454
|
+
audition: "audition";
|
|
455
|
+
reject: "reject";
|
|
456
|
+
review: "review";
|
|
457
|
+
}>;
|
|
458
|
+
notes: z.ZodArray<z.ZodString>;
|
|
459
|
+
cacheKey: z.ZodString;
|
|
460
|
+
cached: z.ZodBoolean;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export declare function createAudioInspectHandler(inspector: AudioInspector): (rawInput: unknown) => Promise<{
|
|
463
|
+
content: {
|
|
464
|
+
type: "text";
|
|
465
|
+
text: string;
|
|
466
|
+
}[];
|
|
467
|
+
structuredContent: {
|
|
468
|
+
inputPath: string;
|
|
469
|
+
inputSha256: string;
|
|
470
|
+
inputSizeBytes: number;
|
|
471
|
+
analysis: {
|
|
472
|
+
inspector: string;
|
|
473
|
+
inspectorVersion: string;
|
|
474
|
+
adapterVersion: string;
|
|
475
|
+
};
|
|
476
|
+
limits: Record<string, number>;
|
|
477
|
+
effectiveExpectations: Record<string, unknown>;
|
|
478
|
+
measured?: {
|
|
479
|
+
durationSeconds: number;
|
|
480
|
+
sampleRate: number;
|
|
481
|
+
channels: number;
|
|
482
|
+
peak: number;
|
|
483
|
+
rms: number;
|
|
484
|
+
dc: number;
|
|
485
|
+
bands: Record<string, number>;
|
|
486
|
+
seam?: {
|
|
487
|
+
wrap: number;
|
|
488
|
+
nearP99: number;
|
|
489
|
+
ratio: number;
|
|
490
|
+
} | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
findings: {
|
|
493
|
+
name: string;
|
|
494
|
+
severity: "error" | "warning";
|
|
495
|
+
reason: string;
|
|
496
|
+
remedy?: string | undefined;
|
|
497
|
+
}[];
|
|
498
|
+
spectrogramPath?: string | undefined;
|
|
499
|
+
technicalStatus: "fail" | "pass" | "unverified" | "warn";
|
|
500
|
+
promptFit: "consistent" | "possible_mismatch" | "unverified";
|
|
501
|
+
semantic: {
|
|
502
|
+
requested: boolean;
|
|
503
|
+
status: "consistent" | "possible_mismatch" | "unverified";
|
|
504
|
+
reason: string;
|
|
505
|
+
ranked: {
|
|
506
|
+
text: string;
|
|
507
|
+
score: number;
|
|
508
|
+
}[];
|
|
509
|
+
margin?: number | undefined;
|
|
510
|
+
windows?: {
|
|
511
|
+
startSeconds: number;
|
|
512
|
+
endSeconds: number;
|
|
513
|
+
ranked: {
|
|
514
|
+
text: string;
|
|
515
|
+
score: number;
|
|
516
|
+
}[];
|
|
517
|
+
}[] | undefined;
|
|
518
|
+
calibrationId: string;
|
|
519
|
+
};
|
|
520
|
+
emotionFit: {
|
|
521
|
+
status: "consistent" | "not_requested" | "possible_mismatch" | "unverified";
|
|
522
|
+
requestedMood?: string | undefined;
|
|
523
|
+
reason: string;
|
|
524
|
+
ranked: {
|
|
525
|
+
text: string;
|
|
526
|
+
score: number;
|
|
527
|
+
}[];
|
|
528
|
+
margin?: number | undefined;
|
|
529
|
+
windows?: {
|
|
530
|
+
startSeconds: number;
|
|
531
|
+
endSeconds: number;
|
|
532
|
+
ranked: {
|
|
533
|
+
text: string;
|
|
534
|
+
score: number;
|
|
535
|
+
}[];
|
|
536
|
+
}[] | undefined;
|
|
537
|
+
calibrationId: string;
|
|
538
|
+
moodTemplateVersion: string;
|
|
539
|
+
};
|
|
540
|
+
artisticQuality: "unverified";
|
|
541
|
+
recommendation: "audition" | "reject" | "review";
|
|
542
|
+
notes: string[];
|
|
543
|
+
cacheKey: string;
|
|
544
|
+
cached: boolean;
|
|
545
|
+
};
|
|
546
|
+
} | {
|
|
547
|
+
isError: true;
|
|
548
|
+
content: {
|
|
549
|
+
type: "text";
|
|
550
|
+
text: string;
|
|
551
|
+
}[];
|
|
552
|
+
}>;
|
|
553
|
+
export declare const AudioGenerateInputSchema: z.ZodObject<{
|
|
554
|
+
requestId: z.ZodUUID;
|
|
555
|
+
prompt: z.ZodString;
|
|
556
|
+
durationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
557
|
+
loop: z.ZodDefault<z.ZodBoolean>;
|
|
558
|
+
promptInfluence: z.ZodDefault<z.ZodNumber>;
|
|
559
|
+
inspection: z.ZodOptional<z.ZodObject<{
|
|
560
|
+
expectedPrompt: z.ZodOptional<z.ZodString>;
|
|
561
|
+
alternativePrompts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
562
|
+
emotion: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
sourceDescription: z.ZodString;
|
|
564
|
+
targetMood: z.ZodString;
|
|
565
|
+
alternativeMoods: z.ZodArray<z.ZodString>;
|
|
566
|
+
}, z.core.$strict>>;
|
|
567
|
+
bands: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
sub: z.ZodOptional<z.ZodObject<{
|
|
569
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
570
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
}, z.core.$strict>>;
|
|
572
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
574
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
575
|
+
}, z.core.$strict>>;
|
|
576
|
+
mid: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
}, z.core.$strict>>;
|
|
580
|
+
high: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
583
|
+
}, z.core.$strict>>;
|
|
584
|
+
air: z.ZodOptional<z.ZodObject<{
|
|
585
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
587
|
+
}, z.core.$strict>>;
|
|
588
|
+
}, z.core.$strict>>;
|
|
589
|
+
peakMax: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
silenceRms: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
seamMaxRatio: z.ZodOptional<z.ZodNumber>;
|
|
592
|
+
semantic: z.ZodDefault<z.ZodEnum<{
|
|
593
|
+
clap: "clap";
|
|
594
|
+
off: "off";
|
|
595
|
+
}>>;
|
|
596
|
+
}, z.core.$strict>>;
|
|
597
|
+
}, z.core.$strict>;
|
|
598
|
+
export declare const AudioGenerateOutputSchema: z.ZodObject<{
|
|
599
|
+
requestId: z.ZodString;
|
|
600
|
+
provider: z.ZodLiteral<"elevenlabs">;
|
|
601
|
+
model: z.ZodString;
|
|
602
|
+
normalizedRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
603
|
+
generatedAt: z.ZodString;
|
|
604
|
+
generation: z.ZodLiteral<"saved">;
|
|
605
|
+
sourcePath: z.ZodString;
|
|
606
|
+
sourceSha256: z.ZodString;
|
|
607
|
+
sourceSizeBytes: z.ZodNumber;
|
|
608
|
+
wavPath: z.ZodString;
|
|
609
|
+
wavSha256: z.ZodString;
|
|
610
|
+
wavSizeBytes: z.ZodNumber;
|
|
611
|
+
providerRequestId: z.ZodOptional<z.ZodString>;
|
|
612
|
+
billingUnits: z.ZodOptional<z.ZodString>;
|
|
613
|
+
commercialUse: z.ZodLiteral<"unverified">;
|
|
614
|
+
providerTermsUrl: z.ZodURL;
|
|
615
|
+
receiptPath: z.ZodString;
|
|
616
|
+
replayed: z.ZodBoolean;
|
|
617
|
+
inspection: z.ZodObject<{
|
|
618
|
+
inputPath: z.ZodString;
|
|
619
|
+
inputSha256: z.ZodString;
|
|
620
|
+
inputSizeBytes: z.ZodNumber;
|
|
621
|
+
analysis: z.ZodObject<{
|
|
622
|
+
inspector: z.ZodString;
|
|
623
|
+
inspectorVersion: z.ZodString;
|
|
624
|
+
adapterVersion: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
limits: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
627
|
+
effectiveExpectations: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
628
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
629
|
+
durationSeconds: z.ZodNumber;
|
|
630
|
+
sampleRate: z.ZodNumber;
|
|
631
|
+
channels: z.ZodNumber;
|
|
632
|
+
peak: z.ZodNumber;
|
|
633
|
+
rms: z.ZodNumber;
|
|
634
|
+
dc: z.ZodNumber;
|
|
635
|
+
bands: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
636
|
+
seam: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
wrap: z.ZodNumber;
|
|
638
|
+
nearP99: z.ZodNumber;
|
|
639
|
+
ratio: z.ZodNumber;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
643
|
+
name: z.ZodString;
|
|
644
|
+
severity: z.ZodEnum<{
|
|
645
|
+
error: "error";
|
|
646
|
+
warning: "warning";
|
|
647
|
+
}>;
|
|
648
|
+
reason: z.ZodString;
|
|
649
|
+
remedy: z.ZodOptional<z.ZodString>;
|
|
650
|
+
}, z.core.$strip>>;
|
|
651
|
+
spectrogramPath: z.ZodOptional<z.ZodString>;
|
|
652
|
+
technicalStatus: z.ZodEnum<{
|
|
653
|
+
fail: "fail";
|
|
654
|
+
pass: "pass";
|
|
655
|
+
unverified: "unverified";
|
|
656
|
+
warn: "warn";
|
|
657
|
+
}>;
|
|
658
|
+
promptFit: z.ZodEnum<{
|
|
659
|
+
consistent: "consistent";
|
|
660
|
+
possible_mismatch: "possible_mismatch";
|
|
661
|
+
unverified: "unverified";
|
|
662
|
+
}>;
|
|
663
|
+
semantic: z.ZodObject<{
|
|
664
|
+
requested: z.ZodBoolean;
|
|
665
|
+
status: z.ZodEnum<{
|
|
666
|
+
consistent: "consistent";
|
|
667
|
+
possible_mismatch: "possible_mismatch";
|
|
668
|
+
unverified: "unverified";
|
|
669
|
+
}>;
|
|
670
|
+
reason: z.ZodString;
|
|
671
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
672
|
+
text: z.ZodString;
|
|
673
|
+
score: z.ZodNumber;
|
|
674
|
+
}, z.core.$strip>>;
|
|
675
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
677
|
+
startSeconds: z.ZodNumber;
|
|
678
|
+
endSeconds: z.ZodNumber;
|
|
679
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
680
|
+
text: z.ZodString;
|
|
681
|
+
score: z.ZodNumber;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
}, z.core.$strip>>>;
|
|
684
|
+
calibrationId: z.ZodString;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
emotionFit: z.ZodObject<{
|
|
687
|
+
status: z.ZodEnum<{
|
|
688
|
+
consistent: "consistent";
|
|
689
|
+
not_requested: "not_requested";
|
|
690
|
+
possible_mismatch: "possible_mismatch";
|
|
691
|
+
unverified: "unverified";
|
|
692
|
+
}>;
|
|
693
|
+
requestedMood: z.ZodOptional<z.ZodString>;
|
|
694
|
+
reason: z.ZodString;
|
|
695
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
696
|
+
text: z.ZodString;
|
|
697
|
+
score: z.ZodNumber;
|
|
698
|
+
}, z.core.$strip>>;
|
|
699
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
700
|
+
windows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
701
|
+
startSeconds: z.ZodNumber;
|
|
702
|
+
endSeconds: z.ZodNumber;
|
|
703
|
+
ranked: z.ZodArray<z.ZodObject<{
|
|
704
|
+
text: z.ZodString;
|
|
705
|
+
score: z.ZodNumber;
|
|
706
|
+
}, z.core.$strip>>;
|
|
707
|
+
}, z.core.$strip>>>;
|
|
708
|
+
calibrationId: z.ZodString;
|
|
709
|
+
moodTemplateVersion: z.ZodString;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
artisticQuality: z.ZodLiteral<"unverified">;
|
|
712
|
+
recommendation: z.ZodEnum<{
|
|
713
|
+
audition: "audition";
|
|
714
|
+
reject: "reject";
|
|
715
|
+
review: "review";
|
|
716
|
+
}>;
|
|
717
|
+
notes: z.ZodArray<z.ZodString>;
|
|
718
|
+
cacheKey: z.ZodString;
|
|
719
|
+
cached: z.ZodBoolean;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
export declare function createAudioGenerateHandler(generator: AudioGenerator): (rawInput: unknown) => Promise<{
|
|
723
|
+
content: {
|
|
724
|
+
type: "text";
|
|
725
|
+
text: string;
|
|
726
|
+
}[];
|
|
727
|
+
structuredContent: {
|
|
728
|
+
requestId: string;
|
|
729
|
+
provider: "elevenlabs";
|
|
730
|
+
model: string;
|
|
731
|
+
normalizedRequest: Record<string, unknown>;
|
|
732
|
+
generatedAt: string;
|
|
733
|
+
generation: "saved";
|
|
734
|
+
sourcePath: string;
|
|
735
|
+
sourceSha256: string;
|
|
736
|
+
sourceSizeBytes: number;
|
|
737
|
+
wavPath: string;
|
|
738
|
+
wavSha256: string;
|
|
739
|
+
wavSizeBytes: number;
|
|
740
|
+
providerRequestId?: string | undefined;
|
|
741
|
+
billingUnits?: string | undefined;
|
|
742
|
+
commercialUse: "unverified";
|
|
743
|
+
providerTermsUrl: string;
|
|
744
|
+
receiptPath: string;
|
|
745
|
+
replayed: boolean;
|
|
746
|
+
inspection: {
|
|
747
|
+
inputPath: string;
|
|
748
|
+
inputSha256: string;
|
|
749
|
+
inputSizeBytes: number;
|
|
750
|
+
analysis: {
|
|
751
|
+
inspector: string;
|
|
752
|
+
inspectorVersion: string;
|
|
753
|
+
adapterVersion: string;
|
|
754
|
+
};
|
|
755
|
+
limits: Record<string, number>;
|
|
756
|
+
effectiveExpectations: Record<string, unknown>;
|
|
757
|
+
measured?: {
|
|
758
|
+
durationSeconds: number;
|
|
759
|
+
sampleRate: number;
|
|
760
|
+
channels: number;
|
|
761
|
+
peak: number;
|
|
762
|
+
rms: number;
|
|
763
|
+
dc: number;
|
|
764
|
+
bands: Record<string, number>;
|
|
765
|
+
seam?: {
|
|
766
|
+
wrap: number;
|
|
767
|
+
nearP99: number;
|
|
768
|
+
ratio: number;
|
|
769
|
+
} | undefined;
|
|
770
|
+
} | undefined;
|
|
771
|
+
findings: {
|
|
772
|
+
name: string;
|
|
773
|
+
severity: "error" | "warning";
|
|
774
|
+
reason: string;
|
|
775
|
+
remedy?: string | undefined;
|
|
776
|
+
}[];
|
|
777
|
+
spectrogramPath?: string | undefined;
|
|
778
|
+
technicalStatus: "fail" | "pass" | "unverified" | "warn";
|
|
779
|
+
promptFit: "consistent" | "possible_mismatch" | "unverified";
|
|
780
|
+
semantic: {
|
|
781
|
+
requested: boolean;
|
|
782
|
+
status: "consistent" | "possible_mismatch" | "unverified";
|
|
783
|
+
reason: string;
|
|
784
|
+
ranked: {
|
|
785
|
+
text: string;
|
|
786
|
+
score: number;
|
|
787
|
+
}[];
|
|
788
|
+
margin?: number | undefined;
|
|
789
|
+
windows?: {
|
|
790
|
+
startSeconds: number;
|
|
791
|
+
endSeconds: number;
|
|
792
|
+
ranked: {
|
|
793
|
+
text: string;
|
|
794
|
+
score: number;
|
|
795
|
+
}[];
|
|
796
|
+
}[] | undefined;
|
|
797
|
+
calibrationId: string;
|
|
798
|
+
};
|
|
799
|
+
emotionFit: {
|
|
800
|
+
status: "consistent" | "not_requested" | "possible_mismatch" | "unverified";
|
|
801
|
+
requestedMood?: string | undefined;
|
|
802
|
+
reason: string;
|
|
803
|
+
ranked: {
|
|
804
|
+
text: string;
|
|
805
|
+
score: number;
|
|
806
|
+
}[];
|
|
807
|
+
margin?: number | undefined;
|
|
808
|
+
windows?: {
|
|
809
|
+
startSeconds: number;
|
|
810
|
+
endSeconds: number;
|
|
811
|
+
ranked: {
|
|
812
|
+
text: string;
|
|
813
|
+
score: number;
|
|
814
|
+
}[];
|
|
815
|
+
}[] | undefined;
|
|
816
|
+
calibrationId: string;
|
|
817
|
+
moodTemplateVersion: string;
|
|
818
|
+
};
|
|
819
|
+
artisticQuality: "unverified";
|
|
820
|
+
recommendation: "audition" | "reject" | "review";
|
|
821
|
+
notes: string[];
|
|
822
|
+
cacheKey: string;
|
|
823
|
+
cached: boolean;
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
} | {
|
|
827
|
+
isError: true;
|
|
828
|
+
content: {
|
|
829
|
+
type: "text";
|
|
830
|
+
text: string;
|
|
831
|
+
}[];
|
|
832
|
+
}>;
|
|
211
833
|
//# sourceMappingURL=audio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/tools/audio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,kBAAkB,EAEnB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/tools/audio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,kBAAkB,EAEnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAkF7E,eAAO,MAAM,2BAA2B,gCAAe,CAAC;AACxD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,kBAAkB,cAC9C,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;;cAvC/C,MAAM;;;;;;;;;;;;;;;;;;;;;cA4BN,MAAM;;;GAsB3B;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,cACzC,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC;;cAlE1C,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BN,MAAM;;;GA6D3B;AAED,eAAO,MAAM,wBAAwB;;;iBAKnC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;iBAYpC,CAAC;AAEH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,kBAAkB,cAC3C,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC;;cAhH5C,MAAM;;;;;;;;;;;;;;;;;;;cA4BN,MAAM;;;GA8F3B;AAuGD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAanC,CAAC;AAcF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8DtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAEpE,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,cAAc,cACzC,OAAO;;cA/TX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BN,MAAM;;;GA6S3B;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAa1B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBpC,CAAC;AAEH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,cAAc,cAC1C,OAAO;;cAjXX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BN,MAAM;;;GAuW3B"}
|