@cqa-lib/cqa-ui 1.1.517 → 1.1.519
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/esm2020/lib/execution-screen/ai-agent-step/ai-agent-step.component.mjs +3 -2
- package/esm2020/lib/step-builder/step-builder-group/step-builder-group.component.mjs +23 -7
- package/fesm2015/cqa-lib-cqa-ui.mjs +24 -7
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +24 -7
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -13430,6 +13430,7 @@ class AIAgentStepComponent extends BaseStepComponent {
|
|
|
13430
13430
|
const isStepFailed = statusLower === 'failed' || statusLower === 'failure';
|
|
13431
13431
|
const hasExecutionStarted = actions.some((a) => (a.uiType || a.type) === 'STEP_EXECUTION_STARTED');
|
|
13432
13432
|
const hasStepRunSuccessfully = actions.some((a) => (a.uiType || a.type) === 'STEP_RUN_SUCCESSFULLY');
|
|
13433
|
+
const hasPaused = actions.some((a) => (a.uiType || a.type) === 'STEP_RUN_PAUSED');
|
|
13433
13434
|
const hasFailed = isStepFailed ||
|
|
13434
13435
|
actions.some((a) => {
|
|
13435
13436
|
const s = (a.status || '').toString().toLowerCase();
|
|
@@ -13437,7 +13438,7 @@ class AIAgentStepComponent extends BaseStepComponent {
|
|
|
13437
13438
|
}) ||
|
|
13438
13439
|
actions.some((a) => (a.stepStatus || '').toString().toUpperCase() === 'FAILURE') ||
|
|
13439
13440
|
actions.some((a) => (a.uiType || a.type) === 'STEP_RUN_FAILED');
|
|
13440
|
-
this.showThinkingLog = this.isLive && hasExecutionStarted && !hasStepRunSuccessfully && !hasFailed;
|
|
13441
|
+
this.showThinkingLog = this.isLive && hasExecutionStarted && !hasStepRunSuccessfully && !hasFailed && !hasPaused;
|
|
13441
13442
|
}
|
|
13442
13443
|
ngOnInit() {
|
|
13443
13444
|
// Get action from step if available (set by step-renderer directly or via step object)
|
|
@@ -43712,11 +43713,18 @@ class StepBuilderGroupComponent {
|
|
|
43712
43713
|
if (this.initialStepGroupId) {
|
|
43713
43714
|
const foundGroup = this.stepGroupOptions.find(opt => opt.id === this.initialStepGroupId);
|
|
43714
43715
|
if (foundGroup) {
|
|
43715
|
-
|
|
43716
|
-
|
|
43717
|
-
//
|
|
43718
|
-
|
|
43719
|
-
|
|
43716
|
+
// Only patch the form to the initial value if the user hasn't picked a
|
|
43717
|
+
// different option yet. Subsequent stepGroupOptions changes (e.g. the
|
|
43718
|
+
// refetch dynamic-select fires on every dropdown reopen) must NOT
|
|
43719
|
+
// clobber a user-modified selection.
|
|
43720
|
+
const currentFormValue = this.stepGroupForm.value.stepGroupId;
|
|
43721
|
+
if (currentFormValue == null || currentFormValue === this.initialStepGroupId) {
|
|
43722
|
+
this.stepGroupForm.patchValue({ stepGroupId: this.initialStepGroupId });
|
|
43723
|
+
this.selectedStepGroup = foundGroup;
|
|
43724
|
+
// Capture snapshot for change detection (will be recaptured if runtime variables load later)
|
|
43725
|
+
if (this.editMode) {
|
|
43726
|
+
this.captureInitialSnapshot();
|
|
43727
|
+
}
|
|
43720
43728
|
}
|
|
43721
43729
|
}
|
|
43722
43730
|
}
|
|
@@ -43822,7 +43830,16 @@ class StepBuilderGroupComponent {
|
|
|
43822
43830
|
if (!this.selectedStepGroup) {
|
|
43823
43831
|
return;
|
|
43824
43832
|
}
|
|
43825
|
-
|
|
43833
|
+
// Re-capture is only valid while the form still points at the original
|
|
43834
|
+
// initialStepGroupId — that covers the "runtime vars arrived after the
|
|
43835
|
+
// initial selection was patched" case. Once the user picks a different
|
|
43836
|
+
// group, keep the original baseline so `hasChanges()` stays true and the
|
|
43837
|
+
// Update button remains enabled.
|
|
43838
|
+
const currentStepGroupId = this.stepGroupForm.value.stepGroupId;
|
|
43839
|
+
if (this.snapshotReady && currentStepGroupId !== this.initialStepGroupId) {
|
|
43840
|
+
return;
|
|
43841
|
+
}
|
|
43842
|
+
this.initialStepGroupIdSnapshot = currentStepGroupId || null;
|
|
43826
43843
|
this.initialRuntimeValuesSnapshot = JSON.stringify(this.runtimeVariableValues);
|
|
43827
43844
|
this.snapshotReady = true;
|
|
43828
43845
|
}
|