@praxisui/expansion 8.0.0-beta.25 → 8.0.0-beta.27
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.
|
@@ -23,7 +23,7 @@ import { deepMerge, ASYNC_CONFIG_STORAGE, DynamicFormService, ComponentKeyServic
|
|
|
23
23
|
import { SettingsPanelService, SETTINGS_PANEL_DATA } from '@praxisui/settings-panel';
|
|
24
24
|
import { firstValueFrom, BehaviorSubject, Subscription } from 'rxjs';
|
|
25
25
|
import { take } from 'rxjs/operators';
|
|
26
|
-
import { BaseAiAdapter, AiBackendApiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnOrchestratorService, createPraxisAssistantViewportLayout, PraxisAiAssistantShellComponent } from '@praxisui/ai';
|
|
26
|
+
import { BaseAiAdapter, shouldRoutePromptToGovernedDecision, AiBackendApiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnOrchestratorService, createPraxisAssistantViewportLayout, PraxisAiAssistantShellComponent } from '@praxisui/ai';
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Capabilities catalog for Praxis Expansion (ExpansionMetadata).
|
|
@@ -399,28 +399,7 @@ class ExpansionAgenticAuthoringTurnFlow {
|
|
|
399
399
|
return panelCount !== undefined ? { rowCount: panelCount } : {};
|
|
400
400
|
}
|
|
401
401
|
shouldRouteToGovernedDecision(prompt, contextHints) {
|
|
402
|
-
|
|
403
|
-
const recommendedFlow = this.toRecord(contextHints?.['domainCatalog'])?.['recommendedAuthoringFlow'];
|
|
404
|
-
if (recommendedFlow === 'shared_rule_authoring')
|
|
405
|
-
return true;
|
|
406
|
-
return [
|
|
407
|
-
'regra',
|
|
408
|
-
'politica',
|
|
409
|
-
'policy',
|
|
410
|
-
'compliance',
|
|
411
|
-
'lgpd',
|
|
412
|
-
'privacidade',
|
|
413
|
-
'aprovacao',
|
|
414
|
-
'aprovar',
|
|
415
|
-
'publicar',
|
|
416
|
-
'materializar',
|
|
417
|
-
'enforcement',
|
|
418
|
-
'validacao de negocio',
|
|
419
|
-
'validar negocio',
|
|
420
|
-
'elegibilidade',
|
|
421
|
-
'permissao',
|
|
422
|
-
'acesso',
|
|
423
|
-
].some((term) => normalized.includes(term));
|
|
402
|
+
return shouldRoutePromptToGovernedDecision(prompt, contextHints);
|
|
424
403
|
}
|
|
425
404
|
toGovernedDecisionHandoff(prompt, request) {
|
|
426
405
|
const message = 'Esse pedido parece alterar uma decisao de negocio compartilhada. O expansion pode localizar o painel e a experiencia afetada, mas a regra deve seguir pelo fluxo governado de domain-rules antes de qualquer materializacao runtime.';
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/expansion",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.27",
|
|
4
4
|
"description": "Expansion panel (accordion) components for Praxis UI with metadata configuration and editor integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/material": "^20.0.0",
|
|
9
9
|
"@angular/cdk": "^20.0.0",
|
|
10
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
11
|
-
"@praxisui/dynamic-fields": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
10
|
+
"@praxisui/core": "^8.0.0-beta.27",
|
|
11
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.27",
|
|
12
|
+
"@praxisui/settings-panel": "^8.0.0-beta.27",
|
|
13
13
|
"@angular/forms": "^20.0.0",
|
|
14
14
|
"@angular/router": "^20.0.0",
|
|
15
|
-
"@praxisui/ai": "^8.0.0-beta.
|
|
15
|
+
"@praxisui/ai": "^8.0.0-beta.27",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|