@connekz/connekz-agent 2.0.0 → 2.2.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@connekz/connekz-agent",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "2.0.0",
5
+ "version": "2.2.1",
6
6
  "description": "A package for Connekz clients to integrate Connekz Agent into their applications.",
7
7
  "main": "./dist/connekz-agent.umd.js",
8
8
  "module": "./dist/connekz-agent.es.js",
@@ -22,8 +22,7 @@
22
22
  },
23
23
  "import": "./dist/connekz-agent.es.js",
24
24
  "require": "./dist/connekz-agent.umd.js"
25
- },
26
- "./connekz-agent.css": "./dist/connekz-agent.css"
25
+ }
27
26
  },
28
27
  "scripts": {
29
28
  "dev": "vite",
package/types.d.ts CHANGED
@@ -88,11 +88,11 @@ export interface SocketSubscribeAPI {
88
88
  }
89
89
 
90
90
  export interface AgentSubscribeAPI {
91
- onAgentStatusChange: (cb: (value: VoiceAgentStatus) => void) => Unsubscriber;
91
+ onAgentStatusChange: (cb: (value: ConnekzAgentStatus) => void) => Unsubscriber;
92
92
  onMicStatusChange: (cb: (value: 'active' | 'muted') => void) => Unsubscriber;
93
93
  onUserWaveformUpdate: (cb: (value: number) => void) => Unsubscriber;
94
94
  onAgentWaveformUpdate: (cb: (value: number) => void) => Unsubscriber;
95
- onTranscriptUpdate: (cb: (value: readonly ConnekzConversation[]) => void) => Unsubscriber;
95
+ onTranscriptUpdate: (cb: (value: readonly ConnekzTranscript[]) => void) => Unsubscriber;
96
96
  onToolCall: (cb: (payload: ConnekzToolCallPayload) => Promise<string>) => Unsubscriber;
97
97
  onConnectionQualityChange: (cb: (value: ConnectionQuality) => void) => Unsubscriber;
98
98
  onError: (cb: (value: ConnekzError) => void) => Unsubscriber;
@@ -110,8 +110,14 @@ export interface ConnekzSocketAPI {
110
110
  export interface VoiceAgentAPI {
111
111
  startAgent: () => Promise<void>;
112
112
  stopAgent: () => void;
113
- makeSleep: () => void;
114
113
  injectMessage: (messageText: string) => void;
114
+ /**
115
+ * Load on-demand memories/tools (created with Load Mode "On-Demand" in the
116
+ * portal) into the current session by slug. Calling again replaces the
117
+ * previous set; an empty array clears all on-demand items. Safe to call
118
+ * before startAgent() — pending slugs apply when the session starts.
119
+ */
120
+ setSessionTools: (slugs: string[]) => void;
115
121
  startCaptureTest: () => void;
116
122
  stopCaptureTest: () => void;
117
123
  playCapturedAudio: () => void;