@foisit/vue-wrapper 2.0.1 → 2.4.2

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.
@@ -0,0 +1,16 @@
1
+ import { AssistantConfig } from '../../../../core/src/index.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ config: {
5
+ type: () => AssistantConfig;
6
+ required: true;
7
+ };
8
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
+ [key: string]: any;
10
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ config: {
12
+ type: () => AssistantConfig;
13
+ required: true;
14
+ };
15
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { AssistantService } from '../services/AssistantService';
2
+
3
+ export declare const useAssistant: () => AssistantService;
@@ -0,0 +1,42 @@
1
+ import { AssistantConfig, AssistantCommand, InteractiveResponse } from '../../../../core/src/index.ts';
2
+
3
+ export declare class AssistantService {
4
+ private config;
5
+ private commandHandler;
6
+ private fallbackHandler;
7
+ private voiceProcessor;
8
+ private textToSpeech;
9
+ private stateManager;
10
+ private gestureHandler;
11
+ private overlayManager;
12
+ private isActivated;
13
+ private lastProcessedInput;
14
+ private processingLock;
15
+ private defaultIntroMessage;
16
+ constructor(config: AssistantConfig);
17
+ /** Start listening for activation and commands */
18
+ startListening(): void;
19
+ /** Stop listening */
20
+ stopListening(): void;
21
+ /** Reset activation state so the next activation flow can occur. */
22
+ reactivate(): void;
23
+ /** Process activation command */
24
+ private processActivation;
25
+ /** Handle recognized commands */
26
+ private handleCommand;
27
+ /**
28
+ * Cleanup resources
29
+ */
30
+ destroy(): void;
31
+ /** Unified response processing */
32
+ private processResponse;
33
+ /** Add a command dynamically (supports string or rich object) */
34
+ addCommand(commandOrObj: string | AssistantCommand, action?: (params?: any) => Promise<string | InteractiveResponse | void> | void): void;
35
+ /** Remove a command dynamically */
36
+ removeCommand(command: string): void;
37
+ /** Get all registered commands */
38
+ getCommands(): string[];
39
+ /** Toggle the assistant overlay */
40
+ toggle(onSubmit?: (input: string | Record<string, unknown>) => void, onClose?: () => void): void;
41
+ private extractUserLabel;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foisit/vue-wrapper",
3
- "version": "2.0.1",
3
+ "version": "2.4.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -11,7 +11,11 @@
11
11
  }
12
12
  },
13
13
  "files": [
14
- "dist",
14
+ "index.js",
15
+ "index.mjs",
16
+ "index.d.ts",
17
+ "lib",
18
+ "style.css",
15
19
  "README.md"
16
20
  ],
17
21
  "sideEffects": false,