@adminforth/agent 1.43.17 → 1.43.18

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/build.log CHANGED
@@ -60,5 +60,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
60
60
  custom/speech_recognition_frontend/types/
61
61
  custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
62
62
 
63
- sent 1,665,490 bytes received 883 bytes 3,332,746.00 bytes/sec
64
- total size is 1,661,475 speedup is 1.00
63
+ sent 1,665,515 bytes received 883 bytes 3,332,796.00 bytes/sec
64
+ total size is 1,661,500 speedup is 1.00
@@ -38,7 +38,10 @@ export async function unlockAudio() {
38
38
  }
39
39
 
40
40
  export async function startStandByAudio() {
41
- const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
41
+ const standByAudio = new URL(
42
+ '../../public/agentAudio/agent-processing.mp3',
43
+ import.meta.url
44
+ ).href;
42
45
  const response = await fetch(standByAudio);
43
46
  console.log('status', response.status);
44
47
  console.log('content-type', response.headers.get('content-type'));
@@ -38,7 +38,10 @@ export async function unlockAudio() {
38
38
  }
39
39
 
40
40
  export async function startStandByAudio() {
41
- const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
41
+ const standByAudio = new URL(
42
+ '../../public/agentAudio/agent-processing.mp3',
43
+ import.meta.url
44
+ ).href;
42
45
  const response = await fetch(standByAudio);
43
46
  console.log('status', response.status);
44
47
  console.log('content-type', response.headers.get('content-type'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.43.17",
3
+ "version": "1.43.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",