@foisit/vue-wrapper 2.4.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.
- package/README.md +22 -0
- package/index.mjs +484 -430
- package/package.json +1 -1
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
|