@connekz/connekz-agent 0.11.0 → 0.13.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/package.json CHANGED
@@ -2,11 +2,11 @@
2
2
  "name": "@connekz/connekz-agent",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.11.0",
5
+ "version": "0.13.0",
6
6
  "description": "A package for Connekz clients to integrate Connekz Agent into their applications.",
7
- "main": "dist/connekz-agent.umd.js",
8
- "module": "dist/connekz-agent.es.js",
9
- "types": "dist/index.d.ts",
7
+ "main": "./dist/connekz-agent.umd.js",
8
+ "module": "./dist/connekz-agent.es.js",
9
+ "types": "types.d.ts",
10
10
  "files": [
11
11
  "dist",
12
12
  "types.d.ts",
@@ -17,8 +17,8 @@
17
17
  "exports": {
18
18
  ".": {
19
19
  "types": {
20
- "require": "./dist/index.d.ts",
21
- "default": "./dist/index.d.ts"
20
+ "require": "./index.d.ts",
21
+ "default": "./index.d.ts"
22
22
  },
23
23
  "import": "./dist/connekz-agent.es.js",
24
24
  "require": "./dist/connekz-agent.umd.js"
@@ -88,6 +88,7 @@
88
88
  "typescript": "~5.8.0",
89
89
  "typescript-eslint": "^8.31.1",
90
90
  "vite": "^6.2.4",
91
+ "vite-plugin-dts": "^4.5.4",
91
92
  "vite-plugin-vue-devtools": "^7.7.2",
92
93
  "vue-tsc": "^2.2.8"
93
94
  }
package/types.d.ts CHANGED
@@ -1,9 +1,32 @@
1
- // index.d.ts
2
- import 'unfonts.css';
3
- import type {ConnekzConversation} from "@/store/connekz.ts";
4
- import type {VoiceAgentStatus} from "@/composable/useVoiceAgent.ts";
5
- import type {ToolCallPayload} from "@/index.ts"; // Added: For ref types in exposure
1
+ export type ToolCallPayload = {
2
+ arguments: Record<string, any>;
3
+ name: string;
4
+ };
5
+
6
+ /**
7
+ * Enum for voice agent statuses
8
+ */
9
+ export enum VoiceAgentStatus {
10
+ DISCONNECTED = 'DISCONNECTED',
11
+ STOPPED = 'STOPPED',
12
+ INITIATING = 'INITIATING',
13
+ LISTENING = 'LISTENING',
14
+ SPEAKING = 'SPEAKING',
15
+ SLEEPING = 'SLEEPING',
16
+ USER_SPEAKING = 'USER_SPEAKING',
17
+ THINKING = 'THINKING',
18
+ EXECUTING = 'EXECUTING',
19
+ ERROR = 'ERROR',
20
+ IDLE = 'IDLE',
21
+ }
6
22
 
23
+ export interface ConnekzConversation {
24
+ role: 'user' | 'ai';
25
+ message: string;
26
+ at: string; // ISO date string
27
+ conversationId: number;
28
+ forcedDisplay?: boolean; // Whether force to display this message
29
+ }
7
30
 
8
31
  // Export types for consumers of the package
9
32
  export type ConnekzOptions = {