@livekit/agents-plugin-livekit 1.0.45 → 1.0.47
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/dist/index.cjs
CHANGED
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2025 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { Plugin } from '@livekit/agents';\nimport { downloadFileToCacheDir as hfDownload } from './hf_utils.js';\nimport { HG_MODEL_REPO, MODEL_REVISIONS, ONNX_FILEPATH } from './turn_detector/constants.js';\n\nexport { downloadFileToCacheDir } from './hf_utils.js';\nexport * as turnDetector from './turn_detector/index.js';\n\nclass EOUPlugin extends Plugin {\n constructor() {\n super({\n title: 'turn-detector',\n version:
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2025 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { Plugin } from '@livekit/agents';\nimport { downloadFileToCacheDir as hfDownload } from './hf_utils.js';\nimport { HG_MODEL_REPO, MODEL_REVISIONS, ONNX_FILEPATH } from './turn_detector/constants.js';\n\nexport { downloadFileToCacheDir } from './hf_utils.js';\nexport * as turnDetector from './turn_detector/index.js';\n\nclass EOUPlugin extends Plugin {\n constructor() {\n super({\n title: 'turn-detector',\n version: __PACKAGE_VERSION__,\n package: __PACKAGE_NAME__,\n });\n }\n\n async downloadFiles(): Promise<void> {\n const { AutoTokenizer } = await import('@huggingface/transformers');\n\n for (const revision of Object.values(MODEL_REVISIONS)) {\n // Ensure tokenizer is cached\n await AutoTokenizer.from_pretrained(HG_MODEL_REPO, { revision });\n\n // Ensure ONNX model and language data are cached\n await hfDownload({ repo: HG_MODEL_REPO, path: ONNX_FILEPATH, revision });\n await hfDownload({ repo: HG_MODEL_REPO, path: 'languages.json', revision });\n }\n }\n}\n\nPlugin.registerPlugin(new EOUPlugin());\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AACvB,sBAAqD;AACrD,uBAA8D;AAE9D,IAAAA,mBAAuC;AACvC,mBAA8B;AAE9B,MAAM,kBAAkB,qBAAO;AAAA,EAC7B,cAAc;AACZ,UAAM;AAAA,MACJ,OAAO;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,gBAA+B;AACnC,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,2BAA2B;AAElE,eAAW,YAAY,OAAO,OAAO,gCAAe,GAAG;AAErD,YAAM,cAAc,gBAAgB,gCAAe,EAAE,SAAS,CAAC;AAG/D,gBAAM,gBAAAC,wBAAW,EAAE,MAAM,gCAAe,MAAM,gCAAe,SAAS,CAAC;AACvE,gBAAM,gBAAAA,wBAAW,EAAE,MAAM,gCAAe,MAAM,kBAAkB,SAAS,CAAC;AAAA,IAC5E;AAAA,EACF;AACF;AAEA,qBAAO,eAAe,IAAI,UAAU,CAAC;","names":["import_hf_utils","hfDownload"]}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2025 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { Plugin } from '@livekit/agents';\nimport { downloadFileToCacheDir as hfDownload } from './hf_utils.js';\nimport { HG_MODEL_REPO, MODEL_REVISIONS, ONNX_FILEPATH } from './turn_detector/constants.js';\n\nexport { downloadFileToCacheDir } from './hf_utils.js';\nexport * as turnDetector from './turn_detector/index.js';\n\nclass EOUPlugin extends Plugin {\n constructor() {\n super({\n title: 'turn-detector',\n version:
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2025 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { Plugin } from '@livekit/agents';\nimport { downloadFileToCacheDir as hfDownload } from './hf_utils.js';\nimport { HG_MODEL_REPO, MODEL_REVISIONS, ONNX_FILEPATH } from './turn_detector/constants.js';\n\nexport { downloadFileToCacheDir } from './hf_utils.js';\nexport * as turnDetector from './turn_detector/index.js';\n\nclass EOUPlugin extends Plugin {\n constructor() {\n super({\n title: 'turn-detector',\n version: __PACKAGE_VERSION__,\n package: __PACKAGE_NAME__,\n });\n }\n\n async downloadFiles(): Promise<void> {\n const { AutoTokenizer } = await import('@huggingface/transformers');\n\n for (const revision of Object.values(MODEL_REVISIONS)) {\n // Ensure tokenizer is cached\n await AutoTokenizer.from_pretrained(HG_MODEL_REPO, { revision });\n\n // Ensure ONNX model and language data are cached\n await hfDownload({ repo: HG_MODEL_REPO, path: ONNX_FILEPATH, revision });\n await hfDownload({ repo: HG_MODEL_REPO, path: 'languages.json', revision });\n }\n }\n}\n\nPlugin.registerPlugin(new EOUPlugin());\n"],"mappings":"AAGA,SAAS,cAAc;AACvB,SAAS,0BAA0B,kBAAkB;AACrD,SAAS,eAAe,iBAAiB,qBAAqB;AAE9D,SAAS,8BAA8B;AACvC,YAAY,kBAAkB;AAE9B,MAAM,kBAAkB,OAAO;AAAA,EAC7B,cAAc;AACZ,UAAM;AAAA,MACJ,OAAO;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,gBAA+B;AACnC,UAAM,EAAE,cAAc,IAAI,MAAM,OAAO,2BAA2B;AAElE,eAAW,YAAY,OAAO,OAAO,eAAe,GAAG;AAErD,YAAM,cAAc,gBAAgB,eAAe,EAAE,SAAS,CAAC;AAG/D,YAAM,WAAW,EAAE,MAAM,eAAe,MAAM,eAAe,SAAS,CAAC;AACvE,YAAM,WAAW,EAAE,MAAM,eAAe,MAAM,kBAAkB,SAAS,CAAC;AAAA,IAC5E;AAAA,EACF;AACF;AAEA,OAAO,eAAe,IAAI,UAAU,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/agents-plugin-livekit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "Additional utilities for LiveKit Node Agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"onnxruntime-common": "1.21.0",
|
|
30
30
|
"tsup": "^8.3.5",
|
|
31
31
|
"typescript": "^5.0.0",
|
|
32
|
-
"@livekit/agents": "1.0.
|
|
32
|
+
"@livekit/agents": "1.0.47"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@livekit/agents": "1.0.
|
|
35
|
+
"@livekit/agents": "1.0.47"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@huggingface/hub": "2.4.1",
|
package/src/index.ts
CHANGED