@praxisui/ai 9.0.0-beta.67 → 9.0.0-beta.68

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-07-09T21:47:30.990Z",
3
+ "generatedAt": "2026-07-10T12:18:12.398Z",
4
4
  "packageName": "@praxisui/ai",
5
- "packageVersion": "9.0.0-beta.67",
5
+ "packageVersion": "9.0.0-beta.68",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 0,
@@ -5263,13 +5263,6 @@ class PraxisAiAssistantComponent {
5263
5263
  await this.submitPrompt(base || selected);
5264
5264
  return;
5265
5265
  }
5266
- const maskHints = this.buildMaskSelectionHints(selected, base);
5267
- if (maskHints) {
5268
- this.activeContextHints = this.mergeContextHints(this.activeContextHints, maskHints);
5269
- this.skipClarificationAppend = true;
5270
- await this.submitPrompt(base || selected);
5271
- return;
5272
- }
5273
5266
  await this.submitPrompt(selected);
5274
5267
  }
5275
5268
  async confirmPatch() {
@@ -7263,43 +7256,6 @@ class PraxisAiAssistantComponent {
7263
7256
  }
7264
7257
  return option;
7265
7258
  }
7266
- buildMaskSelectionHints(optionText, basePrompt) {
7267
- const mask = this.extractMaskFromText(optionText);
7268
- if (!mask)
7269
- return null;
7270
- const configRoot = this.resolveConfigRoot(this.adapter?.getCurrentConfig?.());
7271
- const columns = this.extractColumnNames(configRoot);
7272
- let targetField = basePrompt ? this.findColumnInPrompt(basePrompt, columns) : null;
7273
- if (!targetField) {
7274
- targetField = this.findColumnInPrompt(optionText, columns);
7275
- }
7276
- if (!targetField && columns.length) {
7277
- const lowered = `${basePrompt} ${optionText}`.toLowerCase();
7278
- if (lowered.includes('cpf') && columns.includes('cpf'))
7279
- targetField = 'cpf';
7280
- if (lowered.includes('cnpj') && columns.includes('cnpj'))
7281
- targetField = 'cnpj';
7282
- if (lowered.includes('cep') && columns.includes('cep'))
7283
- targetField = 'cep';
7284
- }
7285
- const hints = {
7286
- optionSelected: {
7287
- selection: { value: mask, mode: 'mask' },
7288
- },
7289
- };
7290
- if (targetField) {
7291
- const optionSelected = this.asRecord(hints['optionSelected']);
7292
- if (optionSelected) {
7293
- optionSelected['targetField'] = targetField;
7294
- }
7295
- }
7296
- return this.toClarificationContextHints(hints) ?? null;
7297
- }
7298
- extractMaskFromText(text) {
7299
- const pattern = /(0{3}\.0{3}\.0{3}-0{2}|0{2}\.0{3}\.0{3}\/0{4}-0{2}|0{5}-0{3}|\(0{2}\)\s*0{4,5}-0{4}|0{8,14})/;
7300
- const match = text.match(pattern);
7301
- return match ? match[1] : null;
7302
- }
7303
7259
  resolveComponentId() {
7304
7260
  if (this.adapter.componentId)
7305
7261
  return this.adapter.componentId;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@praxisui/ai",
3
- "version": "9.0.0-beta.67",
3
+ "version": "9.0.0-beta.68",
4
4
  "description": "AI building blocks and assistant integration for Praxis UI applications.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
- "@praxisui/core": "^9.0.0-beta.67",
8
+ "@praxisui/core": "^9.0.0-beta.68",
9
9
  "@angular/cdk": "^21.0.0",
10
10
  "@angular/forms": "^21.0.0",
11
11
  "@angular/material": "^21.0.0",
@@ -2361,8 +2361,6 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
2361
2361
  private buildValueColorMap;
2362
2362
  private findColumnInPrompt;
2363
2363
  private extractOptionValue;
2364
- private buildMaskSelectionHints;
2365
- private extractMaskFromText;
2366
2364
  private resolveComponentId;
2367
2365
  private resolveComponentType;
2368
2366
  private buildSuggestionsRequest;