@praxisui/page-builder 9.0.54 → 9.0.56

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-09-01T03:28:13.726Z",
3
+ "generatedAt": "2026-09-01T07:07:50.474Z",
4
4
  "packageName": "@praxisui/page-builder",
5
- "packageVersion": "9.0.54",
5
+ "packageVersion": "9.0.56",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -18639,7 +18639,7 @@ class PageBuilderAgenticAuthoringTurnFlow {
18639
18639
  canApply: false,
18640
18640
  statusText: '',
18641
18641
  errorText: '',
18642
- preview: null,
18642
+ preview: this.projectKnowledgeDiagnosticPreview(preview),
18643
18643
  pendingClarification,
18644
18644
  diagnostics: streamResultDiagnostics,
18645
18645
  };
@@ -18874,6 +18874,15 @@ class PageBuilderAgenticAuthoringTurnFlow {
18874
18874
  || failureCodes.some((code) => code === 'semantic-decision-required'
18875
18875
  || code.startsWith('semantic-preview-'));
18876
18876
  }
18877
+ /**
18878
+ * A clarification cannot expose a materializable preview, but Project Knowledge audit is
18879
+ * governed evidence for the turn rather than a page patch. Keep only that diagnostics-bearing
18880
+ * envelope so the cockpit can explain the influence while apply remains disabled.
18881
+ */
18882
+ projectKnowledgeDiagnosticPreview(preview) {
18883
+ const audit = preview?.diagnostics?.projectKnowledgeAudit;
18884
+ return audit && Number(audit.influenceCount ?? 0) > 0 ? preview ?? null : null;
18885
+ }
18877
18886
  hasMaterializablePreview(preview) {
18878
18887
  if (!preview) {
18879
18888
  return false;
@@ -21802,6 +21811,7 @@ class DynamicPageBuilderComponent {
21802
21811
  agenticAuthoringStatus = signal('', ...(ngDevMode ? [{ debugName: "agenticAuthoringStatus" }] : /* istanbul ignore next */ []));
21803
21812
  agenticAuthoringError = signal('', ...(ngDevMode ? [{ debugName: "agenticAuthoringError" }] : /* istanbul ignore next */ []));
21804
21813
  agenticAuthoringPreviewResult = signal(null, ...(ngDevMode ? [{ debugName: "agenticAuthoringPreviewResult" }] : /* istanbul ignore next */ []));
21814
+ agenticAuthoringProjectKnowledgeAuditState = signal(null, ...(ngDevMode ? [{ debugName: "agenticAuthoringProjectKnowledgeAuditState" }] : /* istanbul ignore next */ []));
21805
21815
  agenticAuthoringMaterializationPending = signal(false, ...(ngDevMode ? [{ debugName: "agenticAuthoringMaterializationPending" }] : /* istanbul ignore next */ []));
21806
21816
  agenticAuthoringSemanticDecision = signal(null, ...(ngDevMode ? [{ debugName: "agenticAuthoringSemanticDecision" }] : /* istanbul ignore next */ []));
21807
21817
  agenticAuthoringSemanticResourcePresentationLabel = signal(null, ...(ngDevMode ? [{ debugName: "agenticAuthoringSemanticResourcePresentationLabel" }] : /* istanbul ignore next */ []));
@@ -21881,7 +21891,7 @@ class DynamicPageBuilderComponent {
21881
21891
  this.cancelActiveAgenticTurn();
21882
21892
  this.agenticAuthoringBusy.set(false);
21883
21893
  this.agenticAuthoringOpen.set(false);
21884
- this.agenticAuthoringPreviewResult.set(null);
21894
+ this.clearAgenticAuthoringPreviewState();
21885
21895
  this.invalidateAgenticTerminalAuthorization();
21886
21896
  }
21887
21897
  }
@@ -22738,7 +22748,7 @@ class DynamicPageBuilderComponent {
22738
22748
  this.agenticAuthoringPrompt.set('');
22739
22749
  this.agenticAuthoringStatus.set('');
22740
22750
  this.agenticAuthoringError.set('');
22741
- this.agenticAuthoringPreviewResult.set(null);
22751
+ this.clearAgenticAuthoringPreviewState();
22742
22752
  this.agenticAuthoringMaterializationPending.set(false);
22743
22753
  this.clearAgenticLocalPreviewHistory();
22744
22754
  this.agenticAuthoringSemanticDecision.set(null);
@@ -22806,12 +22816,17 @@ class DynamicPageBuilderComponent {
22806
22816
  return normalized.length > 96 ? `${normalized.slice(0, 93)}...` : normalized;
22807
22817
  }
22808
22818
  agenticAuthoringProjectKnowledgeAudit() {
22809
- const audit = this.agenticAuthoringPreviewResult()?.diagnostics?.projectKnowledgeAudit ?? null;
22819
+ const audit = this.agenticAuthoringPreviewResult()?.diagnostics?.projectKnowledgeAudit
22820
+ ?? this.agenticAuthoringProjectKnowledgeAuditState();
22810
22821
  if (!audit || !audit.influenceCount || audit.influenceCount <= 0) {
22811
22822
  return null;
22812
22823
  }
22813
22824
  return audit;
22814
22825
  }
22826
+ clearAgenticAuthoringPreviewState() {
22827
+ this.agenticAuthoringPreviewResult.set(null);
22828
+ this.agenticAuthoringProjectKnowledgeAuditState.set(null);
22829
+ }
22815
22830
  canRunProjectKnowledgeChangeSet() {
22816
22831
  return !!this.resolveProjectKnowledgeEvidenceCandidate(this.agenticAuthoringProjectKnowledgeAudit());
22817
22832
  }
@@ -23250,7 +23265,7 @@ class DynamicPageBuilderComponent {
23250
23265
  const turnRunId = this.beginAgenticTurn();
23251
23266
  this.agenticAuthoringBusy.set(true);
23252
23267
  this.agenticAuthoringError.set('');
23253
- this.agenticAuthoringPreviewResult.set(null);
23268
+ this.clearAgenticAuthoringPreviewState();
23254
23269
  this.invalidateAgenticTerminalAuthorization();
23255
23270
  this.agenticAuthoringSharedRuleHandoffState.set(null);
23256
23271
  this.clearSharedRuleCockpitState();
@@ -23296,7 +23311,7 @@ class DynamicPageBuilderComponent {
23296
23311
  this.agenticAuthoringQuickReplies.set([]);
23297
23312
  this.agenticAuthoringBusy.set(true);
23298
23313
  this.agenticAuthoringError.set('');
23299
- this.agenticAuthoringPreviewResult.set(null);
23314
+ this.clearAgenticAuthoringPreviewState();
23300
23315
  this.invalidateAgenticTerminalAuthorization();
23301
23316
  this.agenticAuthoringSharedRuleHandoffState.set(null);
23302
23317
  this.clearSharedRuleCockpitState();
@@ -23372,7 +23387,7 @@ class DynamicPageBuilderComponent {
23372
23387
  this.agenticAuthoringQuickReplies.set([]);
23373
23388
  this.agenticAuthoringBusy.set(true);
23374
23389
  this.agenticAuthoringError.set('');
23375
- this.agenticAuthoringPreviewResult.set(null);
23390
+ this.clearAgenticAuthoringPreviewState();
23376
23391
  this.invalidateAgenticTerminalAuthorization();
23377
23392
  this.agenticAuthoringSharedRuleHandoffState.set(null);
23378
23393
  this.clearSharedRuleCockpitState();
@@ -23617,7 +23632,7 @@ class DynamicPageBuilderComponent {
23617
23632
  this.agenticAuthoringBusy.set(true);
23618
23633
  this.agenticAuthoringStatus.set(this.tx('agentic.status.resolvingIntent', 'Entendendo o pedido...'));
23619
23634
  this.agenticAuthoringError.set('');
23620
- this.agenticAuthoringPreviewResult.set(null);
23635
+ this.clearAgenticAuthoringPreviewState();
23621
23636
  this.invalidateAgenticTerminalAuthorization();
23622
23637
  this.clearProjectKnowledgeCockpitState();
23623
23638
  try {
@@ -23676,7 +23691,7 @@ class DynamicPageBuilderComponent {
23676
23691
  this.agenticAuthoringBusy.set(false);
23677
23692
  this.agenticAuthoringEditingMessageId.set(null);
23678
23693
  this.agenticAuthoringPrompt.set('');
23679
- this.agenticAuthoringPreviewResult.set(null);
23694
+ this.clearAgenticAuthoringPreviewState();
23680
23695
  this.agenticAuthoringSemanticDecision.set(null);
23681
23696
  this.agenticAuthoringTurnResultRef.set(null);
23682
23697
  this.agenticAuthoringApplyTarget.set(null);
@@ -23730,7 +23745,7 @@ class DynamicPageBuilderComponent {
23730
23745
  return;
23731
23746
  this.agenticAuthoringLastEtag.set(result.etag ?? null);
23732
23747
  this.agenticAuthoringApplied.emit(result);
23733
- this.agenticAuthoringPreviewResult.set(null);
23748
+ this.clearAgenticAuthoringPreviewState();
23734
23749
  this.agenticAuthoringMaterializationPending.set(false);
23735
23750
  this.clearAgenticLocalPreviewHistory();
23736
23751
  // The applied decision remains the active semantic lineage for the next authoring turn.
@@ -24306,7 +24321,7 @@ class DynamicPageBuilderComponent {
24306
24321
  this.agenticAuthoringQuickReplies.set([]);
24307
24322
  this.agenticAuthoringStatus.set(this.tx('agentic.status.sharedRuleTargetSelected', 'Continue this request in the rule review.'));
24308
24323
  this.agenticAuthoringError.set('');
24309
- this.agenticAuthoringPreviewResult.set(null);
24324
+ this.clearAgenticAuthoringPreviewState();
24310
24325
  this.agenticAuthoringCanApply.set(false);
24311
24326
  this.agenticAuthoringSharedRuleHandoffState.set(next);
24312
24327
  this.agenticAuthoringSharedRuleHandoff.emit(next);
@@ -24827,6 +24842,7 @@ class DynamicPageBuilderComponent {
24827
24842
  : state.statusText);
24828
24843
  this.agenticAuthoringError.set(state.errorText || invalidPreviewError);
24829
24844
  this.agenticAuthoringPreviewResult.set(preview);
24845
+ this.agenticAuthoringProjectKnowledgeAuditState.set(receivedPreview?.diagnostics?.projectKnowledgeAudit ?? null);
24830
24846
  this.agenticAuthoringSemanticDecision.set(this.resolveAgenticSemanticDecision(state.diagnostics));
24831
24847
  this.agenticAuthoringSemanticResourcePresentationLabel.set(this.resolveAgenticSemanticResourcePresentationLabel(state.diagnostics));
24832
24848
  const turnResultRef = this.resolveAgenticTurnResultRef(state.diagnostics);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/page-builder",
3
- "version": "9.0.54",
3
+ "version": "9.0.56",
4
4
  "description": "Page and widget builder utilities for Praxis UI (grid, dynamic widgets, editors).",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -8,9 +8,9 @@
8
8
  "@angular/forms": "^21.0.0",
9
9
  "@angular/cdk": "^21.0.0",
10
10
  "@angular/material": "^21.0.0",
11
- "@praxisui/ai": "^9.0.54",
12
- "@praxisui/core": "^9.0.54",
13
- "@praxisui/settings-panel": "^9.0.54",
11
+ "@praxisui/ai": "^9.0.56",
12
+ "@praxisui/core": "^9.0.56",
13
+ "@praxisui/settings-panel": "^9.0.56",
14
14
  "rxjs": "~7.8.0"
15
15
  },
16
16
  "dependencies": {
@@ -1955,6 +1955,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
1955
1955
  readonly agenticAuthoringStatus: _angular_core.WritableSignal<string>;
1956
1956
  readonly agenticAuthoringError: _angular_core.WritableSignal<string>;
1957
1957
  readonly agenticAuthoringPreviewResult: _angular_core.WritableSignal<PageBuilderPreviewResult | null>;
1958
+ private readonly agenticAuthoringProjectKnowledgeAuditState;
1958
1959
  private readonly agenticAuthoringMaterializationPending;
1959
1960
  readonly agenticAuthoringSemanticDecision: _angular_core.WritableSignal<AgenticAuthoringSemanticDecisionContract | null>;
1960
1961
  private readonly agenticAuthoringSemanticResourcePresentationLabel;
@@ -2084,6 +2085,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
2084
2085
  private pageIdentityFingerprint;
2085
2086
  private truncateAgenticDockText;
2086
2087
  agenticAuthoringProjectKnowledgeAudit(): PageBuilderProjectKnowledgeAudit | null;
2088
+ private clearAgenticAuthoringPreviewState;
2087
2089
  canRunProjectKnowledgeChangeSet(): boolean;
2088
2090
  sharedRuleGovernedContinuationActions(): PageBuilderGovernedContinuationAction[];
2089
2091
  projectKnowledgeGovernedContinuationActions(): PageBuilderGovernedContinuationAction[];