@foisit/angular-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.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -157,6 +157,28 @@ Define parameters and Foisit will automatically generate forms to collect them:
157
157
  }
158
158
  ```
159
159
 
160
+ **Enterprise-safe param collection controls**
161
+
162
+ - `collectRequiredViaForm` (default: true): when enabled, any missing/invalid required params are collected via a form—no conversational guessing.
163
+ - `allowAiParamExtraction` (default: true): when false, AI-extracted params are ignored; the assistant will always prompt the user for required fields.
164
+
165
+ Example:
166
+
167
+ ```typescript
168
+ {
169
+ command: 'secure create user',
170
+ description: 'No AI guessing, form-only',
171
+ collectRequiredViaForm: true,
172
+ allowAiParamExtraction: false,
173
+ parameters: [
174
+ { name: 'fullName', type: 'string', required: true },
175
+ { name: 'email', type: 'string', required: true },
176
+ { name: 'age', type: 'number', required: true, min: 18 },
177
+ ],
178
+ action: (params) => this.userService.create(params),
179
+ }
180
+ ```
181
+
160
182
  **Supported Parameter Types:**
161
183
 
162
184
  - `string` - Text input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foisit/angular-wrapper",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"