@webex/internal-plugin-voicea 3.12.0 → 3.13.0-next.10
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/.repo-context.json +443 -0
- package/.sdd/manifest.json +397 -0
- package/AGENTS.md +212 -0
- package/dist/constants.js +4 -3
- package/dist/constants.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/index.d.ts +6 -3
- package/dist/types/voicea-plugin.d.ts +23 -0
- package/dist/types/voicea.d.ts +89 -37
- package/dist/types/voicea.types.d.ts +19 -1
- package/dist/voicea-plugin.js +59 -0
- package/dist/voicea-plugin.js.map +1 -0
- package/dist/voicea.js +273 -173
- package/dist/voicea.js.map +1 -1
- package/dist/voicea.types.js.map +1 -1
- package/docs/adr/0001-retain-product-readme.md +100 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +262 -0
- package/docs/getting-started.md +109 -0
- package/docs/index.md +43 -0
- package/docs/specs/README.md +68 -0
- package/package.json +9 -9
- package/schemas/repo-context.schema.json +796 -0
- package/src/constants.ts +2 -1
- package/src/docs/README.md +551 -0
- package/src/index.ts +7 -5
- package/src/voicea-plugin.ts +33 -0
- package/src/voicea.ts +274 -178
- package/src/voicea.types.ts +22 -0
- package/test/unit/spec/voicea-plugin.js +83 -0
- package/test/unit/spec/voicea.js +836 -1125
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {WebexPlugin} from '@webex/webex-core';
|
|
2
|
+
import type LLMChannel from '@webex/internal-plugin-llm';
|
|
3
|
+
|
|
4
|
+
import {VoiceaChannel} from './voicea';
|
|
5
|
+
import {VOICEA} from './constants';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* VoiceaPlugin - factory for creating VoiceaChannel instances
|
|
9
|
+
* @export
|
|
10
|
+
* @class VoiceaPlugin
|
|
11
|
+
*/
|
|
12
|
+
export class VoiceaPlugin extends WebexPlugin {
|
|
13
|
+
namespace = VOICEA;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Creates a VoiceaChannel, optionally bound to an LLMChannel.
|
|
17
|
+
*
|
|
18
|
+
* Note: VoiceaChannel does not take ownership of the LLMChannel.
|
|
19
|
+
* The caller retains ownership and is responsible for the LLMChannel's
|
|
20
|
+
* lifecycle (connection, disconnection, cleanup).
|
|
21
|
+
*
|
|
22
|
+
* @param {LLMChannel} [llmChannel] - The LLM channel to use for voicea (optional)
|
|
23
|
+
* @returns {VoiceaChannel} A new VoiceaChannel instance
|
|
24
|
+
*/
|
|
25
|
+
public createChannel(llmChannel?: LLMChannel): VoiceaChannel {
|
|
26
|
+
// @ts-ignore - webex is available on WebexPlugin
|
|
27
|
+
const channel = new VoiceaChannel(llmChannel, this.webex.request.bind(this.webex));
|
|
28
|
+
|
|
29
|
+
return channel;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default VoiceaPlugin;
|