@charivo/core 0.19.0 → 0.21.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.
- package/README.md +50 -14
- package/dist/index.cjs +32 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -40
- package/dist/index.d.ts +39 -40
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -337,7 +337,7 @@ type EventMap = {
|
|
|
337
337
|
};
|
|
338
338
|
"character:speak": {
|
|
339
339
|
character: Character;
|
|
340
|
-
|
|
340
|
+
text: string;
|
|
341
341
|
};
|
|
342
342
|
"tts:start": {
|
|
343
343
|
text: string;
|
|
@@ -363,14 +363,29 @@ type EventMap = {
|
|
|
363
363
|
options?: STTOptions;
|
|
364
364
|
};
|
|
365
365
|
"stt:partial": {
|
|
366
|
-
|
|
366
|
+
text: string;
|
|
367
367
|
};
|
|
368
368
|
"stt:stop": {
|
|
369
|
-
|
|
369
|
+
text: string;
|
|
370
370
|
};
|
|
371
371
|
"stt:error": {
|
|
372
372
|
error: Error;
|
|
373
373
|
};
|
|
374
|
+
"tool:call": {
|
|
375
|
+
name: string;
|
|
376
|
+
args: Record<string, unknown>;
|
|
377
|
+
callId?: string;
|
|
378
|
+
};
|
|
379
|
+
"tool:result": {
|
|
380
|
+
name: string;
|
|
381
|
+
output: Record<string, unknown>;
|
|
382
|
+
callId?: string;
|
|
383
|
+
};
|
|
384
|
+
"tool:error": {
|
|
385
|
+
name: string;
|
|
386
|
+
error: Error;
|
|
387
|
+
callId?: string;
|
|
388
|
+
};
|
|
374
389
|
"realtime:session:start": {
|
|
375
390
|
state: RealtimeState;
|
|
376
391
|
reason?: RealtimeSessionTransitionReason;
|
|
@@ -394,21 +409,6 @@ type EventMap = {
|
|
|
394
409
|
"realtime:assistant:done": {
|
|
395
410
|
text: string;
|
|
396
411
|
};
|
|
397
|
-
"realtime:tool:call": {
|
|
398
|
-
name: string;
|
|
399
|
-
args: Record<string, unknown>;
|
|
400
|
-
callId?: string;
|
|
401
|
-
};
|
|
402
|
-
"realtime:tool:result": {
|
|
403
|
-
name: string;
|
|
404
|
-
output: Record<string, unknown>;
|
|
405
|
-
callId?: string;
|
|
406
|
-
};
|
|
407
|
-
"realtime:tool:error": {
|
|
408
|
-
name: string;
|
|
409
|
-
error: Error;
|
|
410
|
-
callId?: string;
|
|
411
|
-
};
|
|
412
412
|
"realtime:reconnect:attempt": {
|
|
413
413
|
attempt: number;
|
|
414
414
|
delayMs: number;
|
|
@@ -434,13 +434,10 @@ type EventMap = {
|
|
|
434
434
|
index: number;
|
|
435
435
|
};
|
|
436
436
|
"avatar:gaze": GazeCoordinates;
|
|
437
|
-
"realtime:text:delta": {
|
|
438
|
-
text: string;
|
|
439
|
-
};
|
|
440
437
|
"realtime:error": {
|
|
441
438
|
error: Error;
|
|
442
439
|
};
|
|
443
|
-
error: {
|
|
440
|
+
"llm:error": {
|
|
444
441
|
error: Error;
|
|
445
442
|
};
|
|
446
443
|
};
|
|
@@ -452,14 +449,6 @@ interface CharivoEventBus extends CharivoEventEmitter {
|
|
|
452
449
|
off<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
453
450
|
}
|
|
454
451
|
|
|
455
|
-
declare class EventBus implements CharivoEventBus {
|
|
456
|
-
private listeners;
|
|
457
|
-
on<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
458
|
-
emit<K extends keyof EventMap>(event: K, data: EventMap[K]): void;
|
|
459
|
-
off<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
460
|
-
clear(): void;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
452
|
interface BrowserLifecycleCallbacks {
|
|
464
453
|
onHidden?(): void;
|
|
465
454
|
onOnline?(): void;
|
|
@@ -469,7 +458,8 @@ interface BrowserLifecycleCallbacks {
|
|
|
469
458
|
}
|
|
470
459
|
declare function subscribeBrowserLifecycle(callbacks: BrowserLifecycleCallbacks): () => void;
|
|
471
460
|
|
|
472
|
-
|
|
461
|
+
declare const CHARIVO_ERROR_CODES_LIST: readonly ["CHARIVO_ERROR", "CHARIVO_STATE_ERROR", "CHARIVO_TIMEOUT_ERROR", "CHARIVO_TRANSPORT_ERROR", "CHARIVO_PROVIDER_ERROR", "CHARIVO_DISPOSE_ERROR"];
|
|
462
|
+
type CharivoErrorCode = (typeof CHARIVO_ERROR_CODES_LIST)[number];
|
|
473
463
|
interface CharivoErrorOptions extends ErrorOptions {
|
|
474
464
|
code?: CharivoErrorCode;
|
|
475
465
|
}
|
|
@@ -579,17 +569,26 @@ declare function createToolRegistry(): ToolRegistry;
|
|
|
579
569
|
/** Always-serializable output handed back to the model when a tool call fails. */
|
|
580
570
|
declare function createToolFailureOutput(error: Error): Record<string, unknown>;
|
|
581
571
|
declare function withToolTimeout<T>(promise: Promise<T>, timeoutMs: number, toolName: string, toolLabel?: string): Promise<T>;
|
|
572
|
+
/** A tool result's JSON string plus the parsed value every consumer sees. */
|
|
573
|
+
interface ToolResultSnapshot {
|
|
574
|
+
/** Handed to the model's tool turn, or to the realtime transport. */
|
|
575
|
+
serialized: string;
|
|
576
|
+
/** Parsed form of `serialized` — what `tool:result` and projectors receive. */
|
|
577
|
+
snapshot: Record<string, unknown>;
|
|
578
|
+
}
|
|
582
579
|
/**
|
|
583
|
-
* Serializes a tool result
|
|
580
|
+
* Serializes a tool result once and returns both the string and its parsed
|
|
581
|
+
* snapshot, so every consumer downstream of a tool runner sees the same JSON
|
|
582
|
+
* shape regardless of modality.
|
|
584
583
|
*
|
|
585
|
-
* Call this inside a tool runner's failure boundary
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
*
|
|
589
|
-
*
|
|
590
|
-
*
|
|
584
|
+
* Call this inside a tool runner's failure boundary: a result that cannot be
|
|
585
|
+
* represented as JSON throws here and degrades to a failure output instead of
|
|
586
|
+
* reaching a transport or a projector. Serializing proves the result is
|
|
587
|
+
* representable, but a `toJSON()` can still yield null, an array, or a
|
|
588
|
+
* primitive, so the parsed value is checked against the tool-result contract
|
|
589
|
+
* rather than cast to it.
|
|
591
590
|
*/
|
|
592
|
-
declare function
|
|
591
|
+
declare function snapshotToolResult(result: Record<string, unknown>, toolName: string, toolLabel?: string): ToolResultSnapshot;
|
|
593
592
|
|
|
594
593
|
declare class Charivo {
|
|
595
594
|
private eventBus;
|
|
@@ -720,4 +719,4 @@ declare class Charivo {
|
|
|
720
719
|
private finishDispose;
|
|
721
720
|
}
|
|
722
721
|
|
|
723
|
-
export { type AvatarControlCatalog, type BrowserLifecycleCallbacks, type Character, Charivo, type CharivoConfig, CharivoDisposeError, CharivoError, type CharivoErrorCode, type CharivoErrorKind, type CharivoErrorOptions, type CharivoEventBus, type CharivoEventEmitter, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError, type Conversation,
|
|
722
|
+
export { type AvatarControlCatalog, type BrowserLifecycleCallbacks, type Character, Charivo, type CharivoConfig, CharivoDisposeError, CharivoError, type CharivoErrorCode, type CharivoErrorKind, type CharivoErrorOptions, type CharivoEventBus, type CharivoEventEmitter, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError, type Conversation, type EventMap, type GazeCoordinates, type LLMAdapter, type LLMClient, type LLMManager, type LLMManagerWithTools, type LLMMessage, type LLMProvider, type LLMToolCall, type LLMToolResponse, type LipSyncAnalyzer, type LipSyncAnalyzerOptions, type Message, type MotionSelection, OPENAI_REALTIME_ADAPTER, OPENAI_REALTIME_AGENTS_ADAPTER, type Plugin, type RealtimeConnectionState, type RealtimeManager, type RealtimeProvider, type RealtimeReconnectCause, type RealtimeResponseStatus, type RealtimeSessionBootstrap, type RealtimeSessionConfig, type RealtimeSessionRequest, type RealtimeSessionStatus, type RealtimeSessionTransitionReason, type RealtimeState, type RealtimeToolChoice, type RealtimeTransportKind, type RealtimeUsageEvent, type RenderManager, type Renderer, type STTManager, type STTOptions, type STTProvider, type STTTranscriber, type TTSManager, type TTSOptions, type TTSPlaybackMode, type TTSPlayer, type TTSProvider, type ToolContext, type ToolDefinition, type ToolHandler, type ToolRegistration, type ToolRegistry, type ToolResultProjector, type ToolResultProjectorContext, type ToolResultSnapshot, assertToolResultObject, createLipSyncAnalyzer, createToolFailureOutput, createToolRegistry, getErrorMessage, isCharivoError, snapshotToolResult, subscribeBrowserLifecycle, toCharivoError, validateToolArguments, withToolTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -337,7 +337,7 @@ type EventMap = {
|
|
|
337
337
|
};
|
|
338
338
|
"character:speak": {
|
|
339
339
|
character: Character;
|
|
340
|
-
|
|
340
|
+
text: string;
|
|
341
341
|
};
|
|
342
342
|
"tts:start": {
|
|
343
343
|
text: string;
|
|
@@ -363,14 +363,29 @@ type EventMap = {
|
|
|
363
363
|
options?: STTOptions;
|
|
364
364
|
};
|
|
365
365
|
"stt:partial": {
|
|
366
|
-
|
|
366
|
+
text: string;
|
|
367
367
|
};
|
|
368
368
|
"stt:stop": {
|
|
369
|
-
|
|
369
|
+
text: string;
|
|
370
370
|
};
|
|
371
371
|
"stt:error": {
|
|
372
372
|
error: Error;
|
|
373
373
|
};
|
|
374
|
+
"tool:call": {
|
|
375
|
+
name: string;
|
|
376
|
+
args: Record<string, unknown>;
|
|
377
|
+
callId?: string;
|
|
378
|
+
};
|
|
379
|
+
"tool:result": {
|
|
380
|
+
name: string;
|
|
381
|
+
output: Record<string, unknown>;
|
|
382
|
+
callId?: string;
|
|
383
|
+
};
|
|
384
|
+
"tool:error": {
|
|
385
|
+
name: string;
|
|
386
|
+
error: Error;
|
|
387
|
+
callId?: string;
|
|
388
|
+
};
|
|
374
389
|
"realtime:session:start": {
|
|
375
390
|
state: RealtimeState;
|
|
376
391
|
reason?: RealtimeSessionTransitionReason;
|
|
@@ -394,21 +409,6 @@ type EventMap = {
|
|
|
394
409
|
"realtime:assistant:done": {
|
|
395
410
|
text: string;
|
|
396
411
|
};
|
|
397
|
-
"realtime:tool:call": {
|
|
398
|
-
name: string;
|
|
399
|
-
args: Record<string, unknown>;
|
|
400
|
-
callId?: string;
|
|
401
|
-
};
|
|
402
|
-
"realtime:tool:result": {
|
|
403
|
-
name: string;
|
|
404
|
-
output: Record<string, unknown>;
|
|
405
|
-
callId?: string;
|
|
406
|
-
};
|
|
407
|
-
"realtime:tool:error": {
|
|
408
|
-
name: string;
|
|
409
|
-
error: Error;
|
|
410
|
-
callId?: string;
|
|
411
|
-
};
|
|
412
412
|
"realtime:reconnect:attempt": {
|
|
413
413
|
attempt: number;
|
|
414
414
|
delayMs: number;
|
|
@@ -434,13 +434,10 @@ type EventMap = {
|
|
|
434
434
|
index: number;
|
|
435
435
|
};
|
|
436
436
|
"avatar:gaze": GazeCoordinates;
|
|
437
|
-
"realtime:text:delta": {
|
|
438
|
-
text: string;
|
|
439
|
-
};
|
|
440
437
|
"realtime:error": {
|
|
441
438
|
error: Error;
|
|
442
439
|
};
|
|
443
|
-
error: {
|
|
440
|
+
"llm:error": {
|
|
444
441
|
error: Error;
|
|
445
442
|
};
|
|
446
443
|
};
|
|
@@ -452,14 +449,6 @@ interface CharivoEventBus extends CharivoEventEmitter {
|
|
|
452
449
|
off<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
453
450
|
}
|
|
454
451
|
|
|
455
|
-
declare class EventBus implements CharivoEventBus {
|
|
456
|
-
private listeners;
|
|
457
|
-
on<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
458
|
-
emit<K extends keyof EventMap>(event: K, data: EventMap[K]): void;
|
|
459
|
-
off<K extends keyof EventMap>(event: K, listener: (data: EventMap[K]) => void): void;
|
|
460
|
-
clear(): void;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
452
|
interface BrowserLifecycleCallbacks {
|
|
464
453
|
onHidden?(): void;
|
|
465
454
|
onOnline?(): void;
|
|
@@ -469,7 +458,8 @@ interface BrowserLifecycleCallbacks {
|
|
|
469
458
|
}
|
|
470
459
|
declare function subscribeBrowserLifecycle(callbacks: BrowserLifecycleCallbacks): () => void;
|
|
471
460
|
|
|
472
|
-
|
|
461
|
+
declare const CHARIVO_ERROR_CODES_LIST: readonly ["CHARIVO_ERROR", "CHARIVO_STATE_ERROR", "CHARIVO_TIMEOUT_ERROR", "CHARIVO_TRANSPORT_ERROR", "CHARIVO_PROVIDER_ERROR", "CHARIVO_DISPOSE_ERROR"];
|
|
462
|
+
type CharivoErrorCode = (typeof CHARIVO_ERROR_CODES_LIST)[number];
|
|
473
463
|
interface CharivoErrorOptions extends ErrorOptions {
|
|
474
464
|
code?: CharivoErrorCode;
|
|
475
465
|
}
|
|
@@ -579,17 +569,26 @@ declare function createToolRegistry(): ToolRegistry;
|
|
|
579
569
|
/** Always-serializable output handed back to the model when a tool call fails. */
|
|
580
570
|
declare function createToolFailureOutput(error: Error): Record<string, unknown>;
|
|
581
571
|
declare function withToolTimeout<T>(promise: Promise<T>, timeoutMs: number, toolName: string, toolLabel?: string): Promise<T>;
|
|
572
|
+
/** A tool result's JSON string plus the parsed value every consumer sees. */
|
|
573
|
+
interface ToolResultSnapshot {
|
|
574
|
+
/** Handed to the model's tool turn, or to the realtime transport. */
|
|
575
|
+
serialized: string;
|
|
576
|
+
/** Parsed form of `serialized` — what `tool:result` and projectors receive. */
|
|
577
|
+
snapshot: Record<string, unknown>;
|
|
578
|
+
}
|
|
582
579
|
/**
|
|
583
|
-
* Serializes a tool result
|
|
580
|
+
* Serializes a tool result once and returns both the string and its parsed
|
|
581
|
+
* snapshot, so every consumer downstream of a tool runner sees the same JSON
|
|
582
|
+
* shape regardless of modality.
|
|
584
583
|
*
|
|
585
|
-
* Call this inside a tool runner's failure boundary
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
*
|
|
589
|
-
*
|
|
590
|
-
*
|
|
584
|
+
* Call this inside a tool runner's failure boundary: a result that cannot be
|
|
585
|
+
* represented as JSON throws here and degrades to a failure output instead of
|
|
586
|
+
* reaching a transport or a projector. Serializing proves the result is
|
|
587
|
+
* representable, but a `toJSON()` can still yield null, an array, or a
|
|
588
|
+
* primitive, so the parsed value is checked against the tool-result contract
|
|
589
|
+
* rather than cast to it.
|
|
591
590
|
*/
|
|
592
|
-
declare function
|
|
591
|
+
declare function snapshotToolResult(result: Record<string, unknown>, toolName: string, toolLabel?: string): ToolResultSnapshot;
|
|
593
592
|
|
|
594
593
|
declare class Charivo {
|
|
595
594
|
private eventBus;
|
|
@@ -720,4 +719,4 @@ declare class Charivo {
|
|
|
720
719
|
private finishDispose;
|
|
721
720
|
}
|
|
722
721
|
|
|
723
|
-
export { type AvatarControlCatalog, type BrowserLifecycleCallbacks, type Character, Charivo, type CharivoConfig, CharivoDisposeError, CharivoError, type CharivoErrorCode, type CharivoErrorKind, type CharivoErrorOptions, type CharivoEventBus, type CharivoEventEmitter, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError, type Conversation,
|
|
722
|
+
export { type AvatarControlCatalog, type BrowserLifecycleCallbacks, type Character, Charivo, type CharivoConfig, CharivoDisposeError, CharivoError, type CharivoErrorCode, type CharivoErrorKind, type CharivoErrorOptions, type CharivoEventBus, type CharivoEventEmitter, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError, type Conversation, type EventMap, type GazeCoordinates, type LLMAdapter, type LLMClient, type LLMManager, type LLMManagerWithTools, type LLMMessage, type LLMProvider, type LLMToolCall, type LLMToolResponse, type LipSyncAnalyzer, type LipSyncAnalyzerOptions, type Message, type MotionSelection, OPENAI_REALTIME_ADAPTER, OPENAI_REALTIME_AGENTS_ADAPTER, type Plugin, type RealtimeConnectionState, type RealtimeManager, type RealtimeProvider, type RealtimeReconnectCause, type RealtimeResponseStatus, type RealtimeSessionBootstrap, type RealtimeSessionConfig, type RealtimeSessionRequest, type RealtimeSessionStatus, type RealtimeSessionTransitionReason, type RealtimeState, type RealtimeToolChoice, type RealtimeTransportKind, type RealtimeUsageEvent, type RenderManager, type Renderer, type STTManager, type STTOptions, type STTProvider, type STTTranscriber, type TTSManager, type TTSOptions, type TTSPlaybackMode, type TTSPlayer, type TTSProvider, type ToolContext, type ToolDefinition, type ToolHandler, type ToolRegistration, type ToolRegistry, type ToolResultProjector, type ToolResultProjectorContext, type ToolResultSnapshot, assertToolResultObject, createLipSyncAnalyzer, createToolFailureOutput, createToolRegistry, getErrorMessage, isCharivoError, snapshotToolResult, subscribeBrowserLifecycle, toCharivoError, validateToolArguments, withToolTimeout };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,15 @@ var EventBus = class {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// src/errors.ts
|
|
36
|
+
var CHARIVO_ERROR_CODES_LIST = [
|
|
37
|
+
"CHARIVO_ERROR",
|
|
38
|
+
"CHARIVO_STATE_ERROR",
|
|
39
|
+
"CHARIVO_TIMEOUT_ERROR",
|
|
40
|
+
"CHARIVO_TRANSPORT_ERROR",
|
|
41
|
+
"CHARIVO_PROVIDER_ERROR",
|
|
42
|
+
"CHARIVO_DISPOSE_ERROR"
|
|
43
|
+
];
|
|
44
|
+
var CHARIVO_ERROR_CODES = new Set(CHARIVO_ERROR_CODES_LIST);
|
|
36
45
|
var CharivoError = class extends Error {
|
|
37
46
|
code;
|
|
38
47
|
constructor(message, options = {}) {
|
|
@@ -41,6 +50,10 @@ var CharivoError = class extends Error {
|
|
|
41
50
|
this.code = options.code ?? "CHARIVO_ERROR";
|
|
42
51
|
}
|
|
43
52
|
};
|
|
53
|
+
var CHARIVO_ERROR_BRAND = Symbol.for("@charivo/core/CharivoError");
|
|
54
|
+
Object.defineProperty(CharivoError.prototype, CHARIVO_ERROR_BRAND, {
|
|
55
|
+
value: true
|
|
56
|
+
});
|
|
44
57
|
var CharivoStateError = class extends CharivoError {
|
|
45
58
|
constructor(message, options = {}) {
|
|
46
59
|
super(message, {
|
|
@@ -87,7 +100,17 @@ var CharivoDisposeError = class extends CharivoError {
|
|
|
87
100
|
}
|
|
88
101
|
};
|
|
89
102
|
function isCharivoError(error) {
|
|
90
|
-
|
|
103
|
+
if (error instanceof CharivoError) {
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
if (typeof error !== "object" || error === null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
const candidate = error;
|
|
110
|
+
if (candidate[CHARIVO_ERROR_BRAND] !== true) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return typeof candidate.message === "string" && typeof candidate.code === "string" && CHARIVO_ERROR_CODES.has(candidate.code);
|
|
91
114
|
}
|
|
92
115
|
function getErrorMessage(error, fallback = "Unknown error") {
|
|
93
116
|
if (typeof error === "string" && error.trim().length > 0) {
|
|
@@ -495,6 +518,12 @@ function serializeToolResult(result, toolName, toolLabel = "Tool") {
|
|
|
495
518
|
}
|
|
496
519
|
return serialized;
|
|
497
520
|
}
|
|
521
|
+
function snapshotToolResult(result, toolName, toolLabel = "Tool") {
|
|
522
|
+
const serialized = serializeToolResult(result, toolName, toolLabel);
|
|
523
|
+
const parsed = JSON.parse(serialized);
|
|
524
|
+
assertToolResultObject(parsed, toolName, toolLabel);
|
|
525
|
+
return { serialized, snapshot: parsed };
|
|
526
|
+
}
|
|
498
527
|
|
|
499
528
|
// src/index.ts
|
|
500
529
|
var Charivo = class {
|
|
@@ -660,7 +689,7 @@ var Charivo = class {
|
|
|
660
689
|
this.eventBus.emit("message:received", { message: characterMessage });
|
|
661
690
|
this.eventBus.emit("character:speak", {
|
|
662
691
|
character: this.character,
|
|
663
|
-
|
|
692
|
+
text: response
|
|
664
693
|
});
|
|
665
694
|
if (this.renderManager) {
|
|
666
695
|
try {
|
|
@@ -850,6 +879,6 @@ var Charivo = class {
|
|
|
850
879
|
}
|
|
851
880
|
};
|
|
852
881
|
|
|
853
|
-
export { Charivo, CharivoDisposeError, CharivoError, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError,
|
|
882
|
+
export { Charivo, CharivoDisposeError, CharivoError, CharivoProviderError, CharivoStateError, CharivoTimeoutError, CharivoTransportError, OPENAI_REALTIME_ADAPTER, OPENAI_REALTIME_AGENTS_ADAPTER, assertToolResultObject, createLipSyncAnalyzer, createToolFailureOutput, createToolRegistry, getErrorMessage, isCharivoError, snapshotToolResult, subscribeBrowserLifecycle, toCharivoError, validateToolArguments, withToolTimeout };
|
|
854
883
|
//# sourceMappingURL=index.js.map
|
|
855
884
|
//# sourceMappingURL=index.js.map
|