agora-agents 2.1.0 → 2.2.0

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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AgoraPoolClient.js +7 -2
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/Client.js +16 -8
  5. package/dist/cjs/agentkit/Agent.d.ts +7 -2
  6. package/dist/cjs/agentkit/Agent.js +33 -20
  7. package/dist/cjs/agentkit/AgentSession.d.ts +2 -0
  8. package/dist/cjs/agentkit/AgentSession.js +33 -4
  9. package/dist/cjs/agentkit/presets.d.ts +30 -0
  10. package/dist/cjs/agentkit/presets.js +20 -6
  11. package/dist/cjs/agentkit/types.d.ts +3 -1
  12. package/dist/cjs/agentkit/vendors/avatar.d.ts +3 -1
  13. package/dist/cjs/agentkit/vendors/llm.d.ts +4 -2
  14. package/dist/cjs/agentkit/vendors/llm.js +10 -5
  15. package/dist/cjs/agentkit/vendors/stt.d.ts +4 -6
  16. package/dist/cjs/agentkit/vendors/stt.js +44 -63
  17. package/dist/cjs/agentkit/vendors/tts.js +1 -1
  18. package/dist/cjs/api/types/DeepgramAsr.d.ts +0 -2
  19. package/dist/cjs/api/types/DeepgramAsrParams.d.ts +1 -1
  20. package/dist/cjs/api/types/OpenAiTtsParams.d.ts +1 -1
  21. package/dist/cjs/core/base64.js +5 -1
  22. package/dist/cjs/version.d.ts +1 -1
  23. package/dist/cjs/version.js +1 -1
  24. package/dist/esm/AgoraPoolClient.mjs +7 -2
  25. package/dist/esm/BaseClient.mjs +2 -2
  26. package/dist/esm/Client.mjs +16 -8
  27. package/dist/esm/agentkit/Agent.d.mts +7 -2
  28. package/dist/esm/agentkit/Agent.mjs +33 -20
  29. package/dist/esm/agentkit/AgentSession.d.mts +2 -0
  30. package/dist/esm/agentkit/AgentSession.mjs +34 -5
  31. package/dist/esm/agentkit/presets.d.mts +30 -0
  32. package/dist/esm/agentkit/presets.mjs +20 -10
  33. package/dist/esm/agentkit/types.d.mts +3 -1
  34. package/dist/esm/agentkit/vendors/avatar.d.mts +3 -1
  35. package/dist/esm/agentkit/vendors/llm.d.mts +4 -2
  36. package/dist/esm/agentkit/vendors/llm.mjs +10 -5
  37. package/dist/esm/agentkit/vendors/stt.d.mts +4 -6
  38. package/dist/esm/agentkit/vendors/stt.mjs +44 -63
  39. package/dist/esm/agentkit/vendors/tts.mjs +1 -1
  40. package/dist/esm/api/types/DeepgramAsr.d.mts +0 -2
  41. package/dist/esm/api/types/DeepgramAsrParams.d.mts +1 -1
  42. package/dist/esm/api/types/OpenAiTtsParams.d.mts +1 -1
  43. package/dist/esm/core/base64.mjs +5 -1
  44. package/dist/esm/version.d.mts +1 -1
  45. package/dist/esm/version.mjs +1 -1
  46. package/package.json +2 -1
@@ -66,7 +66,9 @@ export type AvatarVendor = StartAgentsRequest.Properties.Avatar.Vendor;
66
66
  /** BCP-47 language tag used by `turn_detection.language`. */
67
67
  export type TurnDetectionLanguage = AsrLanguage;
68
68
  /** Turn detection configuration */
69
- export type TurnDetectionConfig = StartAgentsRequest.Properties.TurnDetection;
69
+ export type TurnDetectionConfig = Omit<StartAgentsRequest.Properties.TurnDetection, "language"> & {
70
+ language?: TurnDetectionLanguage;
71
+ };
70
72
  /** Detailed nested config for turn detection (`turn_detection.config`) */
71
73
  export type TurnDetectionNestedConfig = StartAgentsRequest.Properties.TurnDetection.Config;
72
74
  /** Start of Speech (SoS) detection configuration (`turn_detection.config.start_of_speech`) */
@@ -7,6 +7,8 @@
7
7
  import type { AvatarConfig } from "../types.mjs";
8
8
  import type { AkoolSampleRate, HeyGenSampleRate, LiveAvatarSampleRate } from "./base.mjs";
9
9
  import { BaseAvatar } from "./base.mjs";
10
+ /**
11
+ * Constructor options for HeyGen Avatar.
10
12
  /**
11
13
  * Constructor options for LiveAvatar.
12
14
  */
@@ -19,7 +21,7 @@ export interface LiveAvatarAvatarOptions {
19
21
  agoraUid: string;
20
22
  /** Avatar ConvoAI token. Omit to auto-generate at session start. */
21
23
  agoraToken?: string;
22
- /** Avatar ID */
24
+ /** HeyGen avatar ID */
23
25
  avatarId?: string;
24
26
  /** Whether to disable idle timeout (default: false) */
25
27
  disableIdleTimeout?: boolean;
@@ -69,8 +69,10 @@ export interface AzureOpenAIOptions extends BaseLlmOptions {
69
69
  apiKey: string;
70
70
  /** Model/deployment name */
71
71
  model: string;
72
- /** Azure resource name (e.g., 'my-resource') */
73
- resourceName: string;
72
+ /** Azure resource name (e.g., 'my-resource'). Required when endpoint is not set. */
73
+ resourceName?: string;
74
+ /** Full Azure base URL (e.g., for sovereign clouds or private endpoints). Takes precedence over resourceName. */
75
+ endpoint?: string;
74
76
  /** Deployment name in Azure */
75
77
  deploymentName: string;
76
78
  /** Azure API version (defaults to '2024-08-01-preview') */
@@ -78,15 +78,19 @@ export class AzureOpenAI extends BaseLLM {
78
78
  super(options);
79
79
  requireString(options.apiKey, "apiKey", "AzureOpenAI");
80
80
  requireString(options.model, "model", "AzureOpenAI");
81
- requireString(options.resourceName, "resourceName", "AzureOpenAI");
81
+ if (!options.resourceName && !options.endpoint) {
82
+ throw new Error("AzureOpenAI requires either resourceName or endpoint");
83
+ }
82
84
  requireString(options.deploymentName, "deploymentName", "AzureOpenAI");
83
85
  this.options = options;
84
86
  }
85
87
  toConfig() {
86
88
  var _a;
87
- const { apiKey, model, resourceName, deploymentName, apiVersion = "2024-08-01-preview", maxHistory, temperature, topP, maxTokens, systemMessages, greetingMessage, failureMessage, inputModalities, params, headers, } = this.options;
89
+ const { apiKey, model, resourceName, endpoint, deploymentName, apiVersion = "2024-08-01-preview", maxHistory, temperature, topP, maxTokens, systemMessages, greetingMessage, failureMessage, inputModalities, params, headers, } = this.options;
90
+ const rawBase = endpoint !== null && endpoint !== void 0 ? endpoint : `https://${resourceName}.openai.azure.com`;
91
+ const baseUrl = rawBase.replace(/\/$/, "");
88
92
  return {
89
- url: `https://${resourceName}.openai.azure.com/openai/deployments/${deploymentName}/chat/completions?api-version=${apiVersion}`,
93
+ url: `${baseUrl}/openai/deployments/${deploymentName}/chat/completions?api-version=${apiVersion}`,
90
94
  api_key: apiKey,
91
95
  // "azure" is required by Agora for Azure OpenAI; user-supplied vendor overrides if needed.
92
96
  vendor: (_a = this.vendor) !== null && _a !== void 0 ? _a : "azure",
@@ -248,10 +252,11 @@ export class VertexAILLM extends BaseLLM {
248
252
  toConfig() {
249
253
  var _a, _b;
250
254
  const o = this.options;
255
+ const defaultUrl = `https://${o.location}-aiplatform.googleapis.com/v1/projects/${o.projectId}/locations/${o.location}/publishers/google/models/${o.model}:streamGenerateContent?alt=sse`;
251
256
  return {
252
- url: (_a = o.url) !== null && _a !== void 0 ? _a : "https://aiplatform.googleapis.com/v1/projects",
257
+ url: (_a = o.url) !== null && _a !== void 0 ? _a : defaultUrl,
253
258
  api_key: o.apiKey,
254
- params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: o.model, project_id: o.projectId, location: o.location }, o.params), (o.temperature !== undefined && { temperature: o.temperature })), (o.topP !== undefined && { top_p: o.topP })), (o.topK !== undefined && { top_k: o.topK })), (o.maxOutputTokens !== undefined && { max_output_tokens: o.maxOutputTokens })),
259
+ params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ model: o.model }, o.params), (o.temperature !== undefined && { temperature: o.temperature })), (o.topP !== undefined && { top_p: o.topP })), (o.topK !== undefined && { top_k: o.topK })), (o.maxOutputTokens !== undefined && { max_output_tokens: o.maxOutputTokens })),
255
260
  headers: o.headers,
256
261
  max_history: o.maxHistory,
257
262
  system_messages: o.systemMessages,
@@ -2,7 +2,7 @@
2
2
  * Type-safe STT (Speech-to-Text) vendor classes.
3
3
  */
4
4
  import { type DeepgramPresetModel } from "../presets.mjs";
5
- import type { SttConfig, TurnDetectionLanguage } from "../types.mjs";
5
+ import type { SttConfig } from "../types.mjs";
6
6
  import { BaseSTT } from "./base.mjs";
7
7
  /**
8
8
  * Constructor options for Speechmatics STT.
@@ -49,6 +49,8 @@ type DeepgramSTTCommonOptions = {
49
49
  smartFormat?: boolean;
50
50
  /** Enable punctuation */
51
51
  punctuation?: boolean;
52
+ /** Boost specialized terms and brands for Deepgram */
53
+ keyterm?: string;
52
54
  /** Additional vendor-specific parameters */
53
55
  additionalParams?: Record<string, unknown>;
54
56
  };
@@ -238,8 +240,6 @@ export declare class AssemblyAISTT extends BaseSTT {
238
240
  * Constructor options for Agora ARES STT.
239
241
  */
240
242
  export interface AresSTTOptions {
241
- /** Language code for ARES ASR */
242
- language?: TurnDetectionLanguage;
243
243
  /** Additional vendor-specific parameters */
244
244
  additionalParams?: Record<string, unknown>;
245
245
  }
@@ -248,9 +248,7 @@ export interface AresSTTOptions {
248
248
  *
249
249
  * @example
250
250
  * ```typescript
251
- * const stt = new AresSTT({
252
- * language: 'en-US',
253
- * });
251
+ * const stt = new AresSTT();
254
252
  * ```
255
253
  */
256
254
  export declare class AresSTT extends BaseSTT {
@@ -3,45 +3,6 @@
3
3
  */
4
4
  import { DeepgramPresetModels } from "../presets.mjs";
5
5
  import { BaseSTT } from "./base.mjs";
6
- const INTERACTION_LANGUAGES = new Set([
7
- "ar-EG",
8
- "ar-JO",
9
- "ar-SA",
10
- "ar-AE",
11
- "bn-IN",
12
- "zh-CN",
13
- "zh-HK",
14
- "zh-TW",
15
- "nl-NL",
16
- "en-IN",
17
- "en-US",
18
- "fil-PH",
19
- "fr-FR",
20
- "de-DE",
21
- "gu-IN",
22
- "he-IL",
23
- "hi-IN",
24
- "id-ID",
25
- "it-IT",
26
- "ja-JP",
27
- "kn-IN",
28
- "ko-KR",
29
- "ms-MY",
30
- "fa-IR",
31
- "pt-PT",
32
- "ru-RU",
33
- "es-ES",
34
- "ta-IN",
35
- "te-IN",
36
- "th-TH",
37
- "tr-TR",
38
- "vi-VN",
39
- ]);
40
- function toTurnDetectionLanguage(language) {
41
- return language !== undefined && INTERACTION_LANGUAGES.has(language)
42
- ? language
43
- : undefined;
44
- }
45
6
  function isDeepgramManagedModel(model) {
46
7
  return model !== undefined && DeepgramPresetModels.includes(model.trim().toLowerCase());
47
8
  }
@@ -63,8 +24,10 @@ export class SpeechmaticsSTT extends BaseSTT {
63
24
  }
64
25
  toConfig() {
65
26
  const { apiKey, language, model, uri, additionalParams } = this.options;
66
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
67
- return Object.assign(Object.assign({ vendor: "speechmatics" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, language }), (model !== undefined && { model })), (uri !== undefined && { uri })) });
27
+ return {
28
+ vendor: "speechmatics",
29
+ params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, language }), (model !== undefined && { model })), (uri !== undefined && { uri })),
30
+ };
68
31
  }
69
32
  }
70
33
  /**
@@ -88,9 +51,11 @@ export class DeepgramSTT extends BaseSTT {
88
51
  this.options = options !== null && options !== void 0 ? options : {};
89
52
  }
90
53
  toConfig() {
91
- const { apiKey, model, language, smartFormat, punctuation, additionalParams } = this.options;
92
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
93
- return Object.assign(Object.assign({ vendor: "deepgram" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey && { key: apiKey })), (model && { model })), (language && { language })), (smartFormat !== undefined && { smart_format: smartFormat })), (punctuation !== undefined && { punctuation })) });
54
+ const { apiKey, model, language, smartFormat, punctuation, keyterm, additionalParams } = this.options;
55
+ return {
56
+ vendor: "deepgram",
57
+ params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), (apiKey && { key: apiKey })), (model && { model })), (language && { language })), (smartFormat !== undefined && { smart_format: smartFormat })), (punctuation !== undefined && { punctuation })), (keyterm && { keyterm })),
58
+ };
94
59
  }
95
60
  }
96
61
  /**
@@ -112,9 +77,11 @@ export class MicrosoftSTT extends BaseSTT {
112
77
  }
113
78
  toConfig() {
114
79
  const { key, region, language, additionalParams } = this.options;
115
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
116
- return Object.assign(Object.assign({ vendor: "microsoft" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign({}, additionalParams), { key,
117
- region }), (language && { language })) });
80
+ return {
81
+ vendor: "microsoft",
82
+ params: Object.assign(Object.assign(Object.assign({}, additionalParams), { key,
83
+ region }), (language && { language })),
84
+ };
118
85
  }
119
86
  }
120
87
  /**
@@ -134,9 +101,17 @@ export class OpenAISTT extends BaseSTT {
134
101
  }
135
102
  toConfig() {
136
103
  const { apiKey, model, language, prompt, inputAudioTranscription, additionalParams } = this.options;
137
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
138
- const transcription = Object.assign(Object.assign(Object.assign(Object.assign({ model: "whisper-1" }, inputAudioTranscription), (model && { model })), (prompt && { prompt })), (language && { language }));
139
- return Object.assign(Object.assign({ vendor: "openai" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, input_audio_transcription: transcription }) });
104
+ const transcription = Object.assign(Object.assign(Object.assign(Object.assign({ model: "gpt-4o-mini-transcribe" }, inputAudioTranscription), (model && { model })), (prompt && { prompt })), (language && { language }));
105
+ if (!transcription.model)
106
+ throw new Error("OpenAISTT: inputAudioTranscription.model is required");
107
+ if (!transcription.prompt)
108
+ throw new Error("OpenAISTT: inputAudioTranscription.prompt is required");
109
+ if (!transcription.language)
110
+ throw new Error("OpenAISTT: inputAudioTranscription.language is required");
111
+ return {
112
+ vendor: "openai",
113
+ params: Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, input_audio_transcription: transcription }),
114
+ };
140
115
  }
141
116
  }
142
117
  /**
@@ -159,8 +134,10 @@ export class GoogleSTT extends BaseSTT {
159
134
  }
160
135
  toConfig() {
161
136
  const { projectId, location, adcCredentialsString, language, model, additionalParams } = this.options;
162
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
163
- return Object.assign(Object.assign({ vendor: "google" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { project_id: projectId, location, adc_credentials_string: adcCredentialsString }), (language && { language })), (model && { model })) });
137
+ return {
138
+ vendor: "google",
139
+ params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { project_id: projectId, location, adc_credentials_string: adcCredentialsString }), (language && { language })), (model && { model })),
140
+ };
164
141
  }
165
142
  }
166
143
  /**
@@ -183,8 +160,10 @@ export class AmazonSTT extends BaseSTT {
183
160
  }
184
161
  toConfig() {
185
162
  const { accessKey, secretKey, region, language, additionalParams } = this.options;
186
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
187
- return Object.assign(Object.assign({ vendor: "amazon" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign({}, additionalParams), { access_key_id: accessKey, secret_access_key: secretKey, region }), (language && { language_code: language })) });
163
+ return {
164
+ vendor: "amazon",
165
+ params: Object.assign(Object.assign(Object.assign({}, additionalParams), { access_key_id: accessKey, secret_access_key: secretKey, region }), (language && { language_code: language })),
166
+ };
188
167
  }
189
168
  }
190
169
  /**
@@ -205,8 +184,10 @@ export class AssemblyAISTT extends BaseSTT {
205
184
  }
206
185
  toConfig() {
207
186
  const { apiKey, language, uri, additionalParams } = this.options;
208
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
209
- return Object.assign(Object.assign({ vendor: "assemblyai" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (language && { language })), (uri && { uri })) });
187
+ return {
188
+ vendor: "assemblyai",
189
+ params: Object.assign(Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey }), (language && { language })), (uri && { uri })),
190
+ };
210
191
  }
211
192
  }
212
193
  /**
@@ -214,9 +195,7 @@ export class AssemblyAISTT extends BaseSTT {
214
195
  *
215
196
  * @example
216
197
  * ```typescript
217
- * const stt = new AresSTT({
218
- * language: 'en-US',
219
- * });
198
+ * const stt = new AresSTT();
220
199
  * ```
221
200
  */
222
201
  export class AresSTT extends BaseSTT {
@@ -225,8 +204,8 @@ export class AresSTT extends BaseSTT {
225
204
  this.options = options;
226
205
  }
227
206
  toConfig() {
228
- const { language, additionalParams } = this.options;
229
- return Object.assign(Object.assign({ vendor: "ares" }, (language && { language })), (additionalParams && Object.keys(additionalParams).length > 0 && { params: additionalParams }));
207
+ const { additionalParams } = this.options;
208
+ return Object.assign({ vendor: "ares" }, (additionalParams && Object.keys(additionalParams).length > 0 && { params: additionalParams }));
230
209
  }
231
210
  }
232
211
  /**
@@ -247,7 +226,9 @@ export class SarvamSTT extends BaseSTT {
247
226
  }
248
227
  toConfig() {
249
228
  const { apiKey, language, model, additionalParams } = this.options;
250
- const turnDetectionLanguage = toTurnDetectionLanguage(language);
251
- return Object.assign(Object.assign({ vendor: "sarvam" }, (turnDetectionLanguage && { language: turnDetectionLanguage })), { params: Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, language }), (model !== undefined && { model })) });
229
+ return {
230
+ vendor: "sarvam",
231
+ params: Object.assign(Object.assign(Object.assign({}, additionalParams), { api_key: apiKey, language }), (model !== undefined && { model })),
232
+ };
252
233
  }
253
234
  }
@@ -282,7 +282,7 @@ export class MiniMaxTTS extends BaseTTS {
282
282
  }
283
283
  toConfig() {
284
284
  const { key, groupId, model, voiceId, url, skipPatterns } = this.options;
285
- return Object.assign({ vendor: "minimax", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (key && { key })), (groupId && { group_id: groupId })), { model }), (voiceId && { voice_setting: { voice_id: voiceId } })), (url && { url })) }, (skipPatterns && { skip_patterns: skipPatterns }));
285
+ return Object.assign(Object.assign({ vendor: "minimax", params: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (key && { key })), (key && groupId && { group_id: groupId })), (key && { model })), (voiceId && { voice_setting: { voice_id: voiceId } })), (key && url && { url })) }, (!key && { _minimaxPresetModel: model })), (skipPatterns && { skip_patterns: skipPatterns }));
286
286
  }
287
287
  }
288
288
  /**
@@ -5,8 +5,6 @@ import type * as Agora from "../index.mjs";
5
5
  export interface DeepgramAsr {
6
6
  language?: Agora.AsrLanguage;
7
7
  params: Agora.DeepgramAsrParams;
8
- /** Boost specialized terms and brands for preset-backed Deepgram usage. */
9
- keyterm?: string;
10
8
  /** Accepts any additional properties */
11
9
  [key: string]: any;
12
10
  }
@@ -10,7 +10,7 @@ export interface DeepgramAsrParams {
10
10
  model?: string | null;
11
11
  /** Language code for speech recognition */
12
12
  language?: string | null;
13
- /** Boost specialized terms and brands */
13
+ /** Boost specialized terms and brands for Deepgram. */
14
14
  keyterm?: string | null;
15
15
  /** Accepts any additional properties */
16
16
  [key: string]: any;
@@ -2,7 +2,7 @@
2
2
  * OpenAI TTS configuration parameters.
3
3
  */
4
4
  export interface OpenAiTtsParams {
5
- /** OpenAI API key. Optional for preset-backed OpenAI TTS usage. */
5
+ /** OpenAI API key. Optional for Agora-managed OpenAI TTS usage. */
6
6
  api_key?: string;
7
7
  /** Endpoint URL for the OpenAI TTS service. */
8
8
  base_url?: string;
@@ -1,6 +1,10 @@
1
1
  function base64ToBytes(base64) {
2
2
  const binString = atob(base64);
3
- return Uint8Array.from(binString, (m) => m.codePointAt(0));
3
+ const bytes = new Uint8Array(binString.length);
4
+ for (let i = 0; i < binString.length; i++) {
5
+ bytes[i] = binString.charCodeAt(i);
6
+ }
7
+ return bytes;
4
8
  }
5
9
  function bytesToBase64(bytes) {
6
10
  const binString = String.fromCodePoint(...bytes);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.1.0";
1
+ export declare const SDK_VERSION = "v2.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v2.1.0";
1
+ export const SDK_VERSION = "v2.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-agents",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "repository": "github:AgoraIO/agora-agents-ts",
6
6
  "type": "commonjs",
@@ -35,6 +35,7 @@
35
35
  "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
36
36
  "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
37
37
  "docs:check": "node scripts/docs-check.js",
38
+ "release:check": "node scripts/check-release-workflow.js",
38
39
  "release:prepare": "node scripts/prepare-release.js",
39
40
  "build": "rm -rf dist && pnpm build:cjs && pnpm build:esm",
40
41
  "build:cjs": "tsc --project ./tsconfig.cjs.json",