@livekit/agents-plugin-livekit 1.0.31 → 1.0.32
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.
|
@@ -28,19 +28,21 @@ module.exports = __toCommonJS(turn_detector_exports);
|
|
|
28
28
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
29
29
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
30
30
|
var import_agents = require("@livekit/agents");
|
|
31
|
+
var import_node_path = require("node:path");
|
|
31
32
|
var import_english = require("./english.cjs");
|
|
32
33
|
var import_multilingual = require("./multilingual.cjs");
|
|
33
34
|
var import_base = require("./base.cjs");
|
|
34
35
|
var import_english2 = require("./english.cjs");
|
|
35
36
|
var import_multilingual2 = require("./multilingual.cjs");
|
|
36
37
|
var import_utils = require("./utils.cjs");
|
|
38
|
+
const currentFileExtension = (0, import_node_path.extname)(importMetaUrl);
|
|
37
39
|
import_agents.InferenceRunner.registerRunner(
|
|
38
40
|
import_english.INFERENCE_METHOD_EN,
|
|
39
|
-
new URL(
|
|
41
|
+
new URL(`./english${currentFileExtension}`, importMetaUrl).toString()
|
|
40
42
|
);
|
|
41
43
|
import_agents.InferenceRunner.registerRunner(
|
|
42
44
|
import_multilingual.INFERENCE_METHOD_MULTILINGUAL,
|
|
43
|
-
new URL(
|
|
45
|
+
new URL(`./multilingual${currentFileExtension}`, importMetaUrl).toString()
|
|
44
46
|
);
|
|
45
47
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
48
|
0 && (module.exports = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/turn_detector/index.ts","../../../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.43.7_@types+node@22.19.1__postcss@8.4.38_tsx@4.20.4_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { InferenceRunner } from '@livekit/agents';\nimport { INFERENCE_METHOD_EN } from './english.js';\nimport { INFERENCE_METHOD_MULTILINGUAL } from './multilingual.js';\n\nexport { EOUModel } from './base.js';\nexport { EnglishModel } from './english.js';\nexport { MultilingualModel } from './multilingual.js';\nexport { getUnicodeCategory, normalizeText } from './utils.js';\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_EN,\n new URL(
|
|
1
|
+
{"version":3,"sources":["../../src/turn_detector/index.ts","../../../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.43.7_@types+node@22.19.1__postcss@8.4.38_tsx@4.20.4_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { InferenceRunner } from '@livekit/agents';\nimport { extname } from 'node:path';\nimport { INFERENCE_METHOD_EN } from './english.js';\nimport { INFERENCE_METHOD_MULTILINGUAL } from './multilingual.js';\n\nexport { EOUModel } from './base.js';\nexport { EnglishModel } from './english.js';\nexport { MultilingualModel } from './multilingual.js';\nexport { getUnicodeCategory, normalizeText } from './utils.js';\n\nconst currentFileExtension = extname(import.meta.url);\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_EN,\n new URL(`./english${currentFileExtension}`, import.meta.url).toString(),\n);\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_MULTILINGUAL,\n new URL(`./multilingual${currentFileExtension}`, import.meta.url).toString(),\n);\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,OAClD,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEpC,IAAM,gBAAgC,iCAAiB;ADR9D,oBAAgC;AAChC,uBAAwB;AACxB,qBAAoC;AACpC,0BAA8C;AAE9C,kBAAyB;AACzB,IAAAA,kBAA6B;AAC7B,IAAAC,uBAAkC;AAClC,mBAAkD;AAElD,MAAM,2BAAuB,0BAAQ,aAAe;AAEpD,8BAAgB;AAAA,EACd;AAAA,EACA,IAAI,IAAI,YAAY,oBAAoB,IAAI,aAAe,EAAE,SAAS;AACxE;AAEA,8BAAgB;AAAA,EACd;AAAA,EACA,IAAI,IAAI,iBAAiB,oBAAoB,IAAI,aAAe,EAAE,SAAS;AAC7E;","names":["import_english","import_multilingual"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/turn_detector/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/turn_detector/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { InferenceRunner } from "@livekit/agents";
|
|
2
|
+
import { extname } from "node:path";
|
|
2
3
|
import { INFERENCE_METHOD_EN } from "./english.js";
|
|
3
4
|
import { INFERENCE_METHOD_MULTILINGUAL } from "./multilingual.js";
|
|
4
5
|
import { EOUModel } from "./base.js";
|
|
5
6
|
import { EnglishModel } from "./english.js";
|
|
6
7
|
import { MultilingualModel } from "./multilingual.js";
|
|
7
8
|
import { getUnicodeCategory, normalizeText } from "./utils.js";
|
|
9
|
+
const currentFileExtension = extname(import.meta.url);
|
|
8
10
|
InferenceRunner.registerRunner(
|
|
9
11
|
INFERENCE_METHOD_EN,
|
|
10
|
-
new URL(
|
|
12
|
+
new URL(`./english${currentFileExtension}`, import.meta.url).toString()
|
|
11
13
|
);
|
|
12
14
|
InferenceRunner.registerRunner(
|
|
13
15
|
INFERENCE_METHOD_MULTILINGUAL,
|
|
14
|
-
new URL(
|
|
16
|
+
new URL(`./multilingual${currentFileExtension}`, import.meta.url).toString()
|
|
15
17
|
);
|
|
16
18
|
export {
|
|
17
19
|
EOUModel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/turn_detector/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { InferenceRunner } from '@livekit/agents';\nimport { INFERENCE_METHOD_EN } from './english.js';\nimport { INFERENCE_METHOD_MULTILINGUAL } from './multilingual.js';\n\nexport { EOUModel } from './base.js';\nexport { EnglishModel } from './english.js';\nexport { MultilingualModel } from './multilingual.js';\nexport { getUnicodeCategory, normalizeText } from './utils.js';\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_EN,\n new URL(
|
|
1
|
+
{"version":3,"sources":["../../src/turn_detector/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport { InferenceRunner } from '@livekit/agents';\nimport { extname } from 'node:path';\nimport { INFERENCE_METHOD_EN } from './english.js';\nimport { INFERENCE_METHOD_MULTILINGUAL } from './multilingual.js';\n\nexport { EOUModel } from './base.js';\nexport { EnglishModel } from './english.js';\nexport { MultilingualModel } from './multilingual.js';\nexport { getUnicodeCategory, normalizeText } from './utils.js';\n\nconst currentFileExtension = extname(import.meta.url);\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_EN,\n new URL(`./english${currentFileExtension}`, import.meta.url).toString(),\n);\n\nInferenceRunner.registerRunner(\n INFERENCE_METHOD_MULTILINGUAL,\n new URL(`./multilingual${currentFileExtension}`, import.meta.url).toString(),\n);\n"],"mappings":"AAGA,SAAS,uBAAuB;AAChC,SAAS,eAAe;AACxB,SAAS,2BAA2B;AACpC,SAAS,qCAAqC;AAE9C,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAClC,SAAS,oBAAoB,qBAAqB;AAElD,MAAM,uBAAuB,QAAQ,YAAY,GAAG;AAEpD,gBAAgB;AAAA,EACd;AAAA,EACA,IAAI,IAAI,YAAY,oBAAoB,IAAI,YAAY,GAAG,EAAE,SAAS;AACxE;AAEA,gBAAgB;AAAA,EACd;AAAA,EACA,IAAI,IAAI,iBAAiB,oBAAoB,IAAI,YAAY,GAAG,EAAE,SAAS;AAC7E;","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.32",
|
|
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.32"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@livekit/agents": "1.0.
|
|
35
|
+
"@livekit/agents": "1.0.32"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@huggingface/hub": "2.4.1",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import { InferenceRunner } from '@livekit/agents';
|
|
5
|
+
import { extname } from 'node:path';
|
|
5
6
|
import { INFERENCE_METHOD_EN } from './english.js';
|
|
6
7
|
import { INFERENCE_METHOD_MULTILINGUAL } from './multilingual.js';
|
|
7
8
|
|
|
@@ -10,12 +11,14 @@ export { EnglishModel } from './english.js';
|
|
|
10
11
|
export { MultilingualModel } from './multilingual.js';
|
|
11
12
|
export { getUnicodeCategory, normalizeText } from './utils.js';
|
|
12
13
|
|
|
14
|
+
const currentFileExtension = extname(import.meta.url);
|
|
15
|
+
|
|
13
16
|
InferenceRunner.registerRunner(
|
|
14
17
|
INFERENCE_METHOD_EN,
|
|
15
|
-
new URL(
|
|
18
|
+
new URL(`./english${currentFileExtension}`, import.meta.url).toString(),
|
|
16
19
|
);
|
|
17
20
|
|
|
18
21
|
InferenceRunner.registerRunner(
|
|
19
22
|
INFERENCE_METHOD_MULTILINGUAL,
|
|
20
|
-
new URL(
|
|
23
|
+
new URL(`./multilingual${currentFileExtension}`, import.meta.url).toString(),
|
|
21
24
|
);
|