@foisit/vue-wrapper 2.4.1 → 2.4.4

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.
Files changed (3) hide show
  1. package/README.md +22 -3
  2. package/index.mjs +518 -460
  3. package/package.json +16 -6
package/README.md CHANGED
@@ -136,6 +136,28 @@ Define parameters and Foisit will automatically generate forms to collect them:
136
136
  }
137
137
  ```
138
138
 
139
+ **Enterprise-safe param collection controls**
140
+
141
+ - `collectRequiredViaForm` (default: true): when true, any missing/invalid required params are collected via a form (no conversational guessing).
142
+ - `allowAiParamExtraction` (default: true): when false, AI-extracted params are ignored and the assistant always asks the user for required fields.
143
+
144
+ Example:
145
+
146
+ ```javascript
147
+ {
148
+ command: 'secure create user',
149
+ description: 'No AI guessing, form-only',
150
+ collectRequiredViaForm: true,
151
+ allowAiParamExtraction: false,
152
+ parameters: [
153
+ { name: 'fullName', type: 'string', required: true },
154
+ { name: 'email', type: 'string', required: true },
155
+ { name: 'age', type: 'number', required: true, min: 18 },
156
+ ],
157
+ action: (params) => userService.create(params),
158
+ }
159
+ ```
160
+
139
161
  **Supported Parameter Types:**
140
162
 
141
163
  - `string` - Text input
@@ -540,8 +562,6 @@ onMounted(() => {
540
562
  ### Full Type Definitions
541
563
 
542
564
  ```typescript
543
- import type { AssistantCommand, InteractiveResponse } from '@foisit/core';
544
-
545
565
  // Type-safe command definition
546
566
  const myCommand: AssistantCommand = {
547
567
  command: 'update settings',
@@ -652,7 +672,6 @@ test('renders assistant', () => {
652
672
 
653
673
  ## Related Packages
654
674
 
655
- - **[@foisit/core](../core)** - Core engine (auto-installed)
656
675
  - **[@foisit/angular-wrapper](../angular-wrapper)** - Angular integration
657
676
  - **[@foisit/react-wrapper](../react-wrapper)** - React integration
658
677