@charivo/core 0.32.0 → 0.33.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 +11 -5
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,16 +27,17 @@ It exports:
|
|
|
27
27
|
The public API is factory-first: pluggable managers/clients/players/
|
|
28
28
|
transcribers/renderers are created via `create*` factories and consumed
|
|
29
29
|
through their interfaces; concrete implementation classes are not
|
|
30
|
-
exported. `Charivo`, the `CharivoError` taxonomy, and the
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
the three exceptions, exported directly as concrete classes
|
|
30
|
+
exported. `Charivo`, the `CharivoError` taxonomy, and the server provider
|
|
31
|
+
classes (`OpenAILLMProvider`, `OpenClawLLMProvider`, `OpenAITTSProvider`,
|
|
32
|
+
`OpenAISTTProvider`, `OpenAIRealtimeProvider`, `GeminiRealtimeProvider`) are
|
|
33
|
+
the three exceptions, exported directly as concrete classes (the providers
|
|
34
|
+
from `@charivo/server/*`): `Charivo`
|
|
34
35
|
owns the instance lifecycle (wiring managers, the event bus, and
|
|
35
36
|
`dispose()`), so although `createCharivo()` is the preferred way in, the
|
|
36
37
|
class stays exported for wiring that happens after construction;
|
|
37
38
|
`CharivoError` is a taxonomy
|
|
38
39
|
checked via `isCharivoError`/`error.code`, not constructed; the
|
|
39
|
-
|
|
40
|
+
providers are exported because consumers rely on
|
|
40
41
|
`instanceof` checks and provider methods outside the narrow core
|
|
41
42
|
interface — a contract `packages/server/__tests__/barrel.test.ts` pins;
|
|
42
43
|
their factories are also browser-callable via `dangerouslyAllowBrowser`
|
|
@@ -100,6 +101,10 @@ The `Charivo` instance wires managers together:
|
|
|
100
101
|
- `attachRealtime(realtimeManager)`
|
|
101
102
|
- `detachLLM()`
|
|
102
103
|
- `detachRenderer()`
|
|
104
|
+
- `detachTTS()`
|
|
105
|
+
- `detachSTT()`
|
|
106
|
+
- `detachRealtime()`
|
|
107
|
+
- `isRealtimeModeEnabled()`
|
|
103
108
|
- `getRenderManager()`
|
|
104
109
|
- `getLLMManager()`
|
|
105
110
|
- `getTTSManager()`
|
|
@@ -114,6 +119,7 @@ The `Charivo` instance wires managers together:
|
|
|
114
119
|
- `getHistory()`
|
|
115
120
|
- `on(event, listener)`
|
|
116
121
|
- `off(event, listener)`
|
|
122
|
+
- `emit(event, payload)`
|
|
117
123
|
|
|
118
124
|
`detachRenderer()` disconnects the render manager's event-bus listeners and
|
|
119
125
|
releases any held expression, without destroying the manager, so it remains
|
package/dist/index.cjs
CHANGED
|
@@ -153,6 +153,7 @@ function toCharivoError(kind, error, fallbackMessage) {
|
|
|
153
153
|
// src/types.ts
|
|
154
154
|
var OPENAI_REALTIME_ADAPTER = "openai-webrtc";
|
|
155
155
|
var OPENAI_REALTIME_AGENTS_ADAPTER = "openai-agents-webrtc";
|
|
156
|
+
var GEMINI_LIVE_ADAPTER = "gemini-live-websocket";
|
|
156
157
|
|
|
157
158
|
// src/browser-lifecycle.ts
|
|
158
159
|
var subscribers = /* @__PURE__ */ new Set();
|
|
@@ -1236,6 +1237,7 @@ exports.CharivoStateError = CharivoStateError;
|
|
|
1236
1237
|
exports.CharivoTimeoutError = CharivoTimeoutError;
|
|
1237
1238
|
exports.CharivoTransportError = CharivoTransportError;
|
|
1238
1239
|
exports.DEFAULT_FETCH_TIMEOUT_MS = DEFAULT_FETCH_TIMEOUT_MS;
|
|
1240
|
+
exports.GEMINI_LIVE_ADAPTER = GEMINI_LIVE_ADAPTER;
|
|
1239
1241
|
exports.OPENAI_REALTIME_ADAPTER = OPENAI_REALTIME_ADAPTER;
|
|
1240
1242
|
exports.OPENAI_REALTIME_AGENTS_ADAPTER = OPENAI_REALTIME_AGENTS_ADAPTER;
|
|
1241
1243
|
exports.assertToolResultObject = assertToolResultObject;
|