@memberjunction/ng-agents 5.42.0 → 5.44.0
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/README.md +23 -0
- package/dist/lib/agents.module.d.ts +11 -6
- package/dist/lib/agents.module.d.ts.map +1 -1
- package/dist/lib/agents.module.js +25 -3
- package/dist/lib/agents.module.js.map +1 -1
- package/dist/lib/components/create-agent-panel.component.d.ts +1 -1
- package/dist/lib/components/create-agent-panel.component.d.ts.map +1 -1
- package/dist/lib/components/create-agent-panel.component.js +150 -180
- package/dist/lib/components/create-agent-panel.component.js.map +1 -1
- package/dist/lib/components/skill-permissions-dialog.component.d.ts +29 -0
- package/dist/lib/components/skill-permissions-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/skill-permissions-dialog.component.js +135 -0
- package/dist/lib/components/skill-permissions-dialog.component.js.map +1 -0
- package/dist/lib/components/skill-permissions-panel.component.d.ts +52 -0
- package/dist/lib/components/skill-permissions-panel.component.d.ts.map +1 -0
- package/dist/lib/components/skill-permissions-panel.component.js +558 -0
- package/dist/lib/components/skill-permissions-panel.component.js.map +1 -0
- package/dist/lib/services/skill-permissions.service.d.ts +73 -0
- package/dist/lib/services/skill-permissions.service.d.ts.map +1 -0
- package/dist/lib/services/skill-permissions.service.js +145 -0
- package/dist/lib/services/skill-permissions.service.js.map +1 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +4 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +11 -9
- package/dist/__tests__/exports.test.d.ts +0 -2
- package/dist/__tests__/exports.test.d.ts.map +0 -1
- package/dist/__tests__/exports.test.js +0 -17
- package/dist/__tests__/exports.test.js.map +0 -1
- package/dist/__tests__/index.test.d.ts +0 -2
- package/dist/__tests__/index.test.d.ts.map +0 -1
- package/dist/__tests__/index.test.js +0 -7
- package/dist/__tests__/index.test.js.map +0 -1
|
@@ -9,6 +9,7 @@ import { AIEngineBase } from '@memberjunction/ai-engine-base';
|
|
|
9
9
|
import { UUIDsEqual } from '@memberjunction/global';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "@angular/forms";
|
|
12
|
+
import * as i2 from "@memberjunction/ng-ui-components";
|
|
12
13
|
const _c0 = () => ({ standalone: true });
|
|
13
14
|
const _forTrack0 = ($index, $item) => $item.ID;
|
|
14
15
|
function CreateAgentPanelComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -22,38 +23,31 @@ function CreateAgentPanelComponent_Conditional_1_Template(rf, ctx) { if (rf & 1)
|
|
|
22
23
|
} }
|
|
23
24
|
function CreateAgentPanelComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
24
25
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
25
|
-
i0.ɵɵelementStart(0, "
|
|
26
|
-
i0.ɵɵ
|
|
27
|
-
i0.ɵɵ
|
|
28
|
-
i0.ɵɵtext(3);
|
|
26
|
+
i0.ɵɵelementStart(0, "mj-alert", 48);
|
|
27
|
+
i0.ɵɵlistener("Dismissed", function CreateAgentPanelComponent_Conditional_2_Conditional_0_Template_mj_alert_Dismissed_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.ErrorMessage = null); });
|
|
28
|
+
i0.ɵɵtext(1);
|
|
29
29
|
i0.ɵɵelementEnd();
|
|
30
|
-
i0.ɵɵelementStart(4, "button", 48);
|
|
31
|
-
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.ErrorMessage = null); });
|
|
32
|
-
i0.ɵɵelement(5, "i", 49);
|
|
33
|
-
i0.ɵɵelementEnd()();
|
|
34
30
|
} if (rf & 2) {
|
|
35
31
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
36
32
|
i0.ɵɵproperty("@slideDown", undefined);
|
|
37
|
-
i0.ɵɵadvance(
|
|
33
|
+
i0.ɵɵadvance();
|
|
38
34
|
i0.ɵɵtextInterpolate(ctx_r2.ErrorMessage);
|
|
39
35
|
} }
|
|
40
36
|
function CreateAgentPanelComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
-
i0.ɵɵelementStart(0, "
|
|
42
|
-
i0.ɵɵ
|
|
43
|
-
i0.ɵɵelementStart(2, "
|
|
44
|
-
i0.ɵɵtext(3
|
|
45
|
-
i0.ɵɵ
|
|
46
|
-
i0.ɵɵtext(5);
|
|
47
|
-
i0.ɵɵelementEnd()()();
|
|
37
|
+
i0.ɵɵelementStart(0, "mj-alert", 4);
|
|
38
|
+
i0.ɵɵtext(1, "Sub-agent of: ");
|
|
39
|
+
i0.ɵɵelementStart(2, "strong");
|
|
40
|
+
i0.ɵɵtext(3);
|
|
41
|
+
i0.ɵɵelementEnd()();
|
|
48
42
|
} if (rf & 2) {
|
|
49
43
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
50
44
|
i0.ɵɵproperty("@slideDown", undefined);
|
|
51
|
-
i0.ɵɵadvance(
|
|
45
|
+
i0.ɵɵadvance(3);
|
|
52
46
|
i0.ɵɵtextInterpolate(ctx_r2.Config.ParentAgentName);
|
|
53
47
|
} }
|
|
54
48
|
function CreateAgentPanelComponent_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
55
49
|
i0.ɵɵelementStart(0, "div", 12);
|
|
56
|
-
i0.ɵɵelement(1, "i",
|
|
50
|
+
i0.ɵɵelement(1, "i", 49);
|
|
57
51
|
i0.ɵɵtext(2, " Agent name is required ");
|
|
58
52
|
i0.ɵɵelementEnd();
|
|
59
53
|
} }
|
|
@@ -69,58 +63,56 @@ function CreateAgentPanelComponent_Conditional_2_For_24_Template(rf, ctx) { if (
|
|
|
69
63
|
} }
|
|
70
64
|
function CreateAgentPanelComponent_Conditional_2_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
71
65
|
i0.ɵɵelementStart(0, "div", 12);
|
|
72
|
-
i0.ɵɵelement(1, "i",
|
|
66
|
+
i0.ɵɵelement(1, "i", 49);
|
|
73
67
|
i0.ɵɵtext(2, " Agent type is required ");
|
|
74
68
|
i0.ɵɵelementEnd();
|
|
75
69
|
} }
|
|
76
|
-
function
|
|
77
|
-
i0.ɵɵ
|
|
78
|
-
i0.ɵɵ
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
i0.ɵɵelementStart(
|
|
82
|
-
i0.ɵɵtext(
|
|
70
|
+
function CreateAgentPanelComponent_Conditional_2_ng_template_66_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelement(0, "i", 50);
|
|
72
|
+
i0.ɵɵtext(1, " Advanced Configuration ");
|
|
73
|
+
} }
|
|
74
|
+
function CreateAgentPanelComponent_Conditional_2_ng_template_67_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "div", 51)(1, "div", 15)(2, "div", 9)(3, "label", 13);
|
|
76
|
+
i0.ɵɵtext(4, "Temperature");
|
|
83
77
|
i0.ɵɵelementEnd();
|
|
84
|
-
i0.ɵɵelement(
|
|
85
|
-
i0.ɵɵelementStart(
|
|
86
|
-
i0.ɵɵtext(
|
|
78
|
+
i0.ɵɵelement(5, "input", 52);
|
|
79
|
+
i0.ɵɵelementStart(6, "div", 53);
|
|
80
|
+
i0.ɵɵtext(7, "Controls randomness (0-2)");
|
|
87
81
|
i0.ɵɵelementEnd()();
|
|
88
|
-
i0.ɵɵelementStart(
|
|
89
|
-
i0.ɵɵtext(
|
|
82
|
+
i0.ɵɵelementStart(8, "div", 9)(9, "label", 13);
|
|
83
|
+
i0.ɵɵtext(10, "Top P");
|
|
90
84
|
i0.ɵɵelementEnd();
|
|
91
|
-
i0.ɵɵelement(
|
|
92
|
-
i0.ɵɵelementStart(
|
|
93
|
-
i0.ɵɵtext(
|
|
85
|
+
i0.ɵɵelement(11, "input", 54);
|
|
86
|
+
i0.ɵɵelementStart(12, "div", 53);
|
|
87
|
+
i0.ɵɵtext(13, "Nucleus sampling (0-1)");
|
|
94
88
|
i0.ɵɵelementEnd()()();
|
|
95
|
-
i0.ɵɵelementStart(
|
|
96
|
-
i0.ɵɵtext(
|
|
89
|
+
i0.ɵɵelementStart(14, "div", 15)(15, "div", 9)(16, "label", 13);
|
|
90
|
+
i0.ɵɵtext(17, "Top K");
|
|
97
91
|
i0.ɵɵelementEnd();
|
|
98
|
-
i0.ɵɵelement(
|
|
99
|
-
i0.ɵɵelementStart(
|
|
100
|
-
i0.ɵɵtext(
|
|
92
|
+
i0.ɵɵelement(18, "input", 55);
|
|
93
|
+
i0.ɵɵelementStart(19, "div", 53);
|
|
94
|
+
i0.ɵɵtext(20, "Token sampling limit");
|
|
101
95
|
i0.ɵɵelementEnd()();
|
|
102
|
-
i0.ɵɵelementStart(
|
|
103
|
-
i0.ɵɵtext(
|
|
96
|
+
i0.ɵɵelementStart(21, "div", 9)(22, "label", 13);
|
|
97
|
+
i0.ɵɵtext(23, "Max Tokens");
|
|
104
98
|
i0.ɵɵelementEnd();
|
|
105
|
-
i0.ɵɵelement(
|
|
106
|
-
i0.ɵɵelementStart(
|
|
107
|
-
i0.ɵɵtext(
|
|
99
|
+
i0.ɵɵelement(24, "input", 56);
|
|
100
|
+
i0.ɵɵelementStart(25, "div", 53);
|
|
101
|
+
i0.ɵɵtext(26, "Maximum response length");
|
|
108
102
|
i0.ɵɵelementEnd()()();
|
|
109
|
-
i0.ɵɵelementStart(
|
|
110
|
-
i0.ɵɵelement(
|
|
111
|
-
i0.ɵɵelementStart(
|
|
112
|
-
i0.ɵɵtext(
|
|
103
|
+
i0.ɵɵelementStart(27, "div", 15)(28, "div", 57)(29, "label", 58);
|
|
104
|
+
i0.ɵɵelement(30, "input", 59);
|
|
105
|
+
i0.ɵɵelementStart(31, "span");
|
|
106
|
+
i0.ɵɵtext(32, "Enable Caching");
|
|
113
107
|
i0.ɵɵelementEnd()()();
|
|
114
|
-
i0.ɵɵelementStart(
|
|
115
|
-
i0.ɵɵtext(
|
|
108
|
+
i0.ɵɵelementStart(33, "div", 9)(34, "label", 13);
|
|
109
|
+
i0.ɵɵtext(35, "Cache TTL (seconds)");
|
|
116
110
|
i0.ɵɵelementEnd();
|
|
117
|
-
i0.ɵɵelement(
|
|
111
|
+
i0.ɵɵelement(36, "input", 60);
|
|
118
112
|
i0.ɵɵelementEnd()()();
|
|
119
|
-
} if (rf & 2) {
|
|
120
|
-
i0.ɵɵproperty("@slideDown", undefined);
|
|
121
113
|
} }
|
|
122
|
-
function
|
|
123
|
-
i0.ɵɵelementStart(0, "span",
|
|
114
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_78_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
i0.ɵɵelementStart(0, "span", 65);
|
|
124
116
|
i0.ɵɵtext(1);
|
|
125
117
|
i0.ɵɵelementEnd();
|
|
126
118
|
} if (rf & 2) {
|
|
@@ -128,19 +120,19 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Conditiona
|
|
|
128
120
|
i0.ɵɵadvance();
|
|
129
121
|
i0.ɵɵtextInterpolate(prompt_r6.Description);
|
|
130
122
|
} }
|
|
131
|
-
function
|
|
123
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_78_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
132
124
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
133
|
-
i0.ɵɵelementStart(0, "div",
|
|
125
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "div", 62);
|
|
134
126
|
i0.ɵɵelement(2, "i", 36);
|
|
135
127
|
i0.ɵɵelementEnd();
|
|
136
|
-
i0.ɵɵelementStart(3, "div",
|
|
128
|
+
i0.ɵɵelementStart(3, "div", 63)(4, "span", 64);
|
|
137
129
|
i0.ɵɵtext(5);
|
|
138
130
|
i0.ɵɵelementEnd();
|
|
139
|
-
i0.ɵɵconditionalCreate(6,
|
|
131
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_78_For_2_Conditional_6_Template, 2, 1, "span", 65);
|
|
140
132
|
i0.ɵɵelementEnd();
|
|
141
|
-
i0.ɵɵelementStart(7, "button",
|
|
142
|
-
i0.ɵɵlistener("click", function
|
|
143
|
-
i0.ɵɵelement(8, "i",
|
|
133
|
+
i0.ɵɵelementStart(7, "button", 66);
|
|
134
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_78_For_2_Template_button_click_7_listener() { const prompt_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.RemovePrompt(prompt_r6)); });
|
|
135
|
+
i0.ɵɵelement(8, "i", 67);
|
|
144
136
|
i0.ɵɵelementEnd()();
|
|
145
137
|
} if (rf & 2) {
|
|
146
138
|
const prompt_r6 = ctx.$implicit;
|
|
@@ -150,23 +142,19 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Template(r
|
|
|
150
142
|
i0.ɵɵadvance();
|
|
151
143
|
i0.ɵɵconditional(prompt_r6.Description ? 6 : -1);
|
|
152
144
|
} }
|
|
153
|
-
function
|
|
145
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_78_Template(rf, ctx) { if (rf & 1) {
|
|
154
146
|
i0.ɵɵelementStart(0, "div", 40);
|
|
155
|
-
i0.ɵɵrepeaterCreate(1,
|
|
147
|
+
i0.ɵɵrepeaterCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_78_For_2_Template, 9, 3, "div", 61, _forTrack0);
|
|
156
148
|
i0.ɵɵelementEnd();
|
|
157
149
|
} if (rf & 2) {
|
|
158
150
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
159
151
|
i0.ɵɵadvance();
|
|
160
152
|
i0.ɵɵrepeater(ctx_r2.LinkedPrompts);
|
|
161
153
|
} }
|
|
162
|
-
function
|
|
163
|
-
i0.ɵɵ
|
|
164
|
-
i0.ɵɵelement(1, "i", 36);
|
|
165
|
-
i0.ɵɵelementStart(2, "p");
|
|
166
|
-
i0.ɵɵtext(3, "No prompts added yet");
|
|
167
|
-
i0.ɵɵelementEnd()();
|
|
154
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_79_Template(rf, ctx) { if (rf & 1) {
|
|
155
|
+
i0.ɵɵelement(0, "mj-empty-state", 41);
|
|
168
156
|
} }
|
|
169
|
-
function
|
|
157
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_For_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
170
158
|
i0.ɵɵelementStart(0, "span", 77);
|
|
171
159
|
i0.ɵɵtext(1);
|
|
172
160
|
i0.ɵɵelementEnd();
|
|
@@ -175,15 +163,15 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_Fo
|
|
|
175
163
|
i0.ɵɵadvance();
|
|
176
164
|
i0.ɵɵtextInterpolate(prompt_r9.Description);
|
|
177
165
|
} }
|
|
178
|
-
function
|
|
166
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
179
167
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
180
168
|
i0.ɵɵelementStart(0, "div", 74);
|
|
181
|
-
i0.ɵɵlistener("click", function
|
|
169
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_For_1_Template_div_click_0_listener() { const prompt_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.OnSelectPrompt(prompt_r9)); });
|
|
182
170
|
i0.ɵɵelement(1, "i", 36);
|
|
183
171
|
i0.ɵɵelementStart(2, "div", 75)(3, "span", 76);
|
|
184
172
|
i0.ɵɵtext(4);
|
|
185
173
|
i0.ɵɵelementEnd();
|
|
186
|
-
i0.ɵɵconditionalCreate(5,
|
|
174
|
+
i0.ɵɵconditionalCreate(5, CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_For_1_Conditional_5_Template, 2, 1, "span", 77);
|
|
187
175
|
i0.ɵɵelementEnd()();
|
|
188
176
|
} if (rf & 2) {
|
|
189
177
|
const prompt_r9 = ctx.$implicit;
|
|
@@ -192,31 +180,27 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_Fo
|
|
|
192
180
|
i0.ɵɵadvance();
|
|
193
181
|
i0.ɵɵconditional(prompt_r9.Description ? 5 : -1);
|
|
194
182
|
} }
|
|
195
|
-
function
|
|
196
|
-
i0.ɵɵrepeaterCreate(0,
|
|
183
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
184
|
+
i0.ɵɵrepeaterCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_For_1_Template, 6, 2, "div", 73, _forTrack0);
|
|
197
185
|
} if (rf & 2) {
|
|
198
186
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
199
187
|
i0.ɵɵrepeater(ctx_r2.FilteredPrompts);
|
|
200
188
|
} }
|
|
201
|
-
function
|
|
202
|
-
i0.ɵɵ
|
|
203
|
-
i0.ɵɵelement(1, "i", 78);
|
|
204
|
-
i0.ɵɵelementStart(2, "span");
|
|
205
|
-
i0.ɵɵtext(3, "No prompts found");
|
|
206
|
-
i0.ɵɵelementEnd()();
|
|
189
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
190
|
+
i0.ɵɵelement(0, "mj-empty-state", 72);
|
|
207
191
|
} }
|
|
208
|
-
function
|
|
192
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Template(rf, ctx) { if (rf & 1) {
|
|
209
193
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
210
194
|
i0.ɵɵelementStart(0, "div", 42)(1, "div", 68)(2, "input", 69);
|
|
211
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
212
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
195
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_80_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r2.PromptSearchQuery, $event) || (ctx_r2.PromptSearchQuery = $event); return i0.ɵɵresetView($event); });
|
|
196
|
+
i0.ɵɵlistener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_80_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnPromptSearchChanged()); });
|
|
213
197
|
i0.ɵɵelementEnd();
|
|
214
198
|
i0.ɵɵelementStart(3, "button", 70);
|
|
215
|
-
i0.ɵɵlistener("click", function
|
|
216
|
-
i0.ɵɵelement(4, "i",
|
|
199
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_80_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnClosePromptSelector()); });
|
|
200
|
+
i0.ɵɵelement(4, "i", 67);
|
|
217
201
|
i0.ɵɵelementEnd()();
|
|
218
202
|
i0.ɵɵelementStart(5, "div", 71);
|
|
219
|
-
i0.ɵɵconditionalCreate(6,
|
|
203
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_6_Template, 2, 0)(7, CreateAgentPanelComponent_Conditional_2_Conditional_80_Conditional_7_Template, 1, 0, "mj-empty-state", 72);
|
|
220
204
|
i0.ɵɵelementEnd()();
|
|
221
205
|
} if (rf & 2) {
|
|
222
206
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -227,8 +211,8 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_81_Template(rf, ctx
|
|
|
227
211
|
i0.ɵɵadvance(4);
|
|
228
212
|
i0.ɵɵconditional(ctx_r2.FilteredPrompts.length > 0 ? 6 : 7);
|
|
229
213
|
} }
|
|
230
|
-
function
|
|
231
|
-
i0.ɵɵelementStart(0, "span",
|
|
214
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_91_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
+
i0.ɵɵelementStart(0, "span", 65);
|
|
232
216
|
i0.ɵɵtext(1);
|
|
233
217
|
i0.ɵɵelementEnd();
|
|
234
218
|
} if (rf & 2) {
|
|
@@ -236,19 +220,19 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Conditiona
|
|
|
236
220
|
i0.ɵɵadvance();
|
|
237
221
|
i0.ɵɵtextInterpolate(action_r11.Description);
|
|
238
222
|
} }
|
|
239
|
-
function
|
|
223
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_91_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
240
224
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
241
|
-
i0.ɵɵelementStart(0, "div",
|
|
225
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "div", 78);
|
|
242
226
|
i0.ɵɵelement(2, "i", 43);
|
|
243
227
|
i0.ɵɵelementEnd();
|
|
244
|
-
i0.ɵɵelementStart(3, "div",
|
|
228
|
+
i0.ɵɵelementStart(3, "div", 63)(4, "span", 64);
|
|
245
229
|
i0.ɵɵtext(5);
|
|
246
230
|
i0.ɵɵelementEnd();
|
|
247
|
-
i0.ɵɵconditionalCreate(6,
|
|
231
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_91_For_2_Conditional_6_Template, 2, 1, "span", 65);
|
|
248
232
|
i0.ɵɵelementEnd();
|
|
249
|
-
i0.ɵɵelementStart(7, "button",
|
|
250
|
-
i0.ɵɵlistener("click", function
|
|
251
|
-
i0.ɵɵelement(8, "i",
|
|
233
|
+
i0.ɵɵelementStart(7, "button", 79);
|
|
234
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_91_For_2_Template_button_click_7_listener() { const action_r11 = i0.ɵɵrestoreView(_r10).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.RemoveAction(action_r11)); });
|
|
235
|
+
i0.ɵɵelement(8, "i", 67);
|
|
252
236
|
i0.ɵɵelementEnd()();
|
|
253
237
|
} if (rf & 2) {
|
|
254
238
|
const action_r11 = ctx.$implicit;
|
|
@@ -258,23 +242,19 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Template(r
|
|
|
258
242
|
i0.ɵɵadvance();
|
|
259
243
|
i0.ɵɵconditional(action_r11.Description ? 6 : -1);
|
|
260
244
|
} }
|
|
261
|
-
function
|
|
245
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_91_Template(rf, ctx) { if (rf & 1) {
|
|
262
246
|
i0.ɵɵelementStart(0, "div", 40);
|
|
263
|
-
i0.ɵɵrepeaterCreate(1,
|
|
247
|
+
i0.ɵɵrepeaterCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_91_For_2_Template, 9, 3, "div", 61, _forTrack0);
|
|
264
248
|
i0.ɵɵelementEnd();
|
|
265
249
|
} if (rf & 2) {
|
|
266
250
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
267
251
|
i0.ɵɵadvance();
|
|
268
252
|
i0.ɵɵrepeater(ctx_r2.LinkedActions);
|
|
269
253
|
} }
|
|
270
|
-
function
|
|
271
|
-
i0.ɵɵ
|
|
272
|
-
i0.ɵɵelement(1, "i", 43);
|
|
273
|
-
i0.ɵɵelementStart(2, "p");
|
|
274
|
-
i0.ɵɵtext(3, "No actions added yet");
|
|
275
|
-
i0.ɵɵelementEnd()();
|
|
254
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_92_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
+
i0.ɵɵelement(0, "mj-empty-state", 44);
|
|
276
256
|
} }
|
|
277
|
-
function
|
|
257
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_For_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
278
258
|
i0.ɵɵelementStart(0, "span", 77);
|
|
279
259
|
i0.ɵɵtext(1);
|
|
280
260
|
i0.ɵɵelementEnd();
|
|
@@ -283,15 +263,15 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_Fo
|
|
|
283
263
|
i0.ɵɵadvance();
|
|
284
264
|
i0.ɵɵtextInterpolate(action_r14.Description);
|
|
285
265
|
} }
|
|
286
|
-
function
|
|
266
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
287
267
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
288
268
|
i0.ɵɵelementStart(0, "div", 74);
|
|
289
|
-
i0.ɵɵlistener("click", function
|
|
269
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_For_1_Template_div_click_0_listener() { const action_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.OnSelectAction(action_r14)); });
|
|
290
270
|
i0.ɵɵelement(1, "i", 43);
|
|
291
271
|
i0.ɵɵelementStart(2, "div", 75)(3, "span", 76);
|
|
292
272
|
i0.ɵɵtext(4);
|
|
293
273
|
i0.ɵɵelementEnd();
|
|
294
|
-
i0.ɵɵconditionalCreate(5,
|
|
274
|
+
i0.ɵɵconditionalCreate(5, CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_For_1_Conditional_5_Template, 2, 1, "span", 77);
|
|
295
275
|
i0.ɵɵelementEnd()();
|
|
296
276
|
} if (rf & 2) {
|
|
297
277
|
const action_r14 = ctx.$implicit;
|
|
@@ -300,31 +280,27 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_Fo
|
|
|
300
280
|
i0.ɵɵadvance();
|
|
301
281
|
i0.ɵɵconditional(action_r14.Description ? 5 : -1);
|
|
302
282
|
} }
|
|
303
|
-
function
|
|
304
|
-
i0.ɵɵrepeaterCreate(0,
|
|
283
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
284
|
+
i0.ɵɵrepeaterCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_For_1_Template, 6, 2, "div", 73, _forTrack0);
|
|
305
285
|
} if (rf & 2) {
|
|
306
286
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
307
287
|
i0.ɵɵrepeater(ctx_r2.FilteredActions);
|
|
308
288
|
} }
|
|
309
|
-
function
|
|
310
|
-
i0.ɵɵ
|
|
311
|
-
i0.ɵɵelement(1, "i", 78);
|
|
312
|
-
i0.ɵɵelementStart(2, "span");
|
|
313
|
-
i0.ɵɵtext(3, "No actions found");
|
|
314
|
-
i0.ɵɵelementEnd()();
|
|
289
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
290
|
+
i0.ɵɵelement(0, "mj-empty-state", 81);
|
|
315
291
|
} }
|
|
316
|
-
function
|
|
292
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Template(rf, ctx) { if (rf & 1) {
|
|
317
293
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
318
|
-
i0.ɵɵelementStart(0, "div", 42)(1, "div", 68)(2, "input",
|
|
319
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
320
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
294
|
+
i0.ɵɵelementStart(0, "div", 42)(1, "div", 68)(2, "input", 80);
|
|
295
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_93_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r2.ActionSearchQuery, $event) || (ctx_r2.ActionSearchQuery = $event); return i0.ɵɵresetView($event); });
|
|
296
|
+
i0.ɵɵlistener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_93_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnActionSearchChanged()); });
|
|
321
297
|
i0.ɵɵelementEnd();
|
|
322
298
|
i0.ɵɵelementStart(3, "button", 70);
|
|
323
|
-
i0.ɵɵlistener("click", function
|
|
324
|
-
i0.ɵɵelement(4, "i",
|
|
299
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_93_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnCloseActionSelector()); });
|
|
300
|
+
i0.ɵɵelement(4, "i", 67);
|
|
325
301
|
i0.ɵɵelementEnd()();
|
|
326
302
|
i0.ɵɵelementStart(5, "div", 71);
|
|
327
|
-
i0.ɵɵconditionalCreate(6,
|
|
303
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_6_Template, 2, 0)(7, CreateAgentPanelComponent_Conditional_2_Conditional_93_Conditional_7_Template, 1, 0, "mj-empty-state", 81);
|
|
328
304
|
i0.ɵɵelementEnd()();
|
|
329
305
|
} if (rf & 2) {
|
|
330
306
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -335,13 +311,13 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_94_Template(rf, ctx
|
|
|
335
311
|
i0.ɵɵadvance(4);
|
|
336
312
|
i0.ɵɵconditional(ctx_r2.FilteredActions.length > 0 ? 6 : 7);
|
|
337
313
|
} }
|
|
338
|
-
function
|
|
314
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_96_Template(rf, ctx) { if (rf & 1) {
|
|
339
315
|
i0.ɵɵelement(0, "span", 82);
|
|
340
316
|
i0.ɵɵelementStart(1, "span");
|
|
341
317
|
i0.ɵɵtext(2, "Creating...");
|
|
342
318
|
i0.ɵɵelementEnd();
|
|
343
319
|
} }
|
|
344
|
-
function
|
|
320
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_97_Template(rf, ctx) { if (rf & 1) {
|
|
345
321
|
i0.ɵɵelement(0, "i", 83);
|
|
346
322
|
i0.ɵɵelementStart(1, "span");
|
|
347
323
|
i0.ɵɵtext(2);
|
|
@@ -353,8 +329,8 @@ function CreateAgentPanelComponent_Conditional_2_Conditional_98_Template(rf, ctx
|
|
|
353
329
|
} }
|
|
354
330
|
function CreateAgentPanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
355
331
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
356
|
-
i0.ɵɵconditionalCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_0_Template,
|
|
357
|
-
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_1_Template,
|
|
332
|
+
i0.ɵɵconditionalCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_0_Template, 2, 2, "mj-alert", 3);
|
|
333
|
+
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_1_Template, 4, 2, "mj-alert", 4);
|
|
358
334
|
i0.ɵɵelementStart(2, "form", 5);
|
|
359
335
|
i0.ɵɵlistener("ngSubmit", function CreateAgentPanelComponent_Conditional_2_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnSubmit()); });
|
|
360
336
|
i0.ɵɵelementStart(3, "section", 6)(4, "h3", 7);
|
|
@@ -426,46 +402,44 @@ function CreateAgentPanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1)
|
|
|
426
402
|
i0.ɵɵelementEnd();
|
|
427
403
|
i0.ɵɵelement(64, "textarea", 31);
|
|
428
404
|
i0.ɵɵelementEnd()();
|
|
429
|
-
i0.ɵɵelementStart(65, "
|
|
430
|
-
i0.ɵɵlistener("
|
|
431
|
-
i0.ɵɵ
|
|
432
|
-
i0.ɵɵ
|
|
433
|
-
i0.ɵɵ
|
|
434
|
-
i0.ɵɵ
|
|
435
|
-
i0.ɵɵ
|
|
436
|
-
i0.ɵɵ
|
|
437
|
-
i0.ɵɵtext(
|
|
438
|
-
i0.ɵɵelementStart(74, "span", 37);
|
|
439
|
-
i0.ɵɵtext(75);
|
|
405
|
+
i0.ɵɵelementStart(65, "mj-accordion-panel", 32);
|
|
406
|
+
i0.ɵɵlistener("ExpandedChange", function CreateAgentPanelComponent_Conditional_2_Template_mj_accordion_panel_ExpandedChange_65_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnAdvancedConfigExpandedChange($event)); });
|
|
407
|
+
i0.ɵɵtemplate(66, CreateAgentPanelComponent_Conditional_2_ng_template_66_Template, 2, 0, "ng-template", 33)(67, CreateAgentPanelComponent_Conditional_2_ng_template_67_Template, 37, 0, "ng-template", 34);
|
|
408
|
+
i0.ɵɵelementEnd();
|
|
409
|
+
i0.ɵɵelementStart(68, "section", 6)(69, "div", 35)(70, "h3", 7);
|
|
410
|
+
i0.ɵɵelement(71, "i", 36);
|
|
411
|
+
i0.ɵɵtext(72, " Prompts ");
|
|
412
|
+
i0.ɵɵelementStart(73, "span", 37);
|
|
413
|
+
i0.ɵɵtext(74);
|
|
440
414
|
i0.ɵɵelementEnd()();
|
|
441
|
-
i0.ɵɵelementStart(
|
|
442
|
-
i0.ɵɵlistener("click", function
|
|
443
|
-
i0.ɵɵelement(
|
|
444
|
-
i0.ɵɵtext(
|
|
415
|
+
i0.ɵɵelementStart(75, "button", 38);
|
|
416
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_75_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnOpenPromptSelector()); });
|
|
417
|
+
i0.ɵɵelement(76, "i", 39);
|
|
418
|
+
i0.ɵɵtext(77, " Add Prompt ");
|
|
445
419
|
i0.ɵɵelementEnd()();
|
|
446
|
-
i0.ɵɵconditionalCreate(
|
|
447
|
-
i0.ɵɵconditionalCreate(
|
|
448
|
-
i0.ɵɵelementEnd();
|
|
449
|
-
i0.ɵɵelementStart(
|
|
450
|
-
i0.ɵɵelement(
|
|
451
|
-
i0.ɵɵtext(
|
|
452
|
-
i0.ɵɵelementStart(
|
|
453
|
-
i0.ɵɵtext(
|
|
420
|
+
i0.ɵɵconditionalCreate(78, CreateAgentPanelComponent_Conditional_2_Conditional_78_Template, 3, 0, "div", 40)(79, CreateAgentPanelComponent_Conditional_2_Conditional_79_Template, 1, 0, "mj-empty-state", 41);
|
|
421
|
+
i0.ɵɵconditionalCreate(80, CreateAgentPanelComponent_Conditional_2_Conditional_80_Template, 8, 5, "div", 42);
|
|
422
|
+
i0.ɵɵelementEnd();
|
|
423
|
+
i0.ɵɵelementStart(81, "section", 6)(82, "div", 35)(83, "h3", 7);
|
|
424
|
+
i0.ɵɵelement(84, "i", 43);
|
|
425
|
+
i0.ɵɵtext(85, " Actions ");
|
|
426
|
+
i0.ɵɵelementStart(86, "span", 37);
|
|
427
|
+
i0.ɵɵtext(87);
|
|
454
428
|
i0.ɵɵelementEnd()();
|
|
455
|
-
i0.ɵɵelementStart(
|
|
456
|
-
i0.ɵɵlistener("click", function
|
|
457
|
-
i0.ɵɵelement(
|
|
458
|
-
i0.ɵɵtext(
|
|
429
|
+
i0.ɵɵelementStart(88, "button", 38);
|
|
430
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_88_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnOpenActionSelector()); });
|
|
431
|
+
i0.ɵɵelement(89, "i", 39);
|
|
432
|
+
i0.ɵɵtext(90, " Add Action ");
|
|
459
433
|
i0.ɵɵelementEnd()();
|
|
460
|
-
i0.ɵɵconditionalCreate(
|
|
461
|
-
i0.ɵɵconditionalCreate(
|
|
434
|
+
i0.ɵɵconditionalCreate(91, CreateAgentPanelComponent_Conditional_2_Conditional_91_Template, 3, 0, "div", 40)(92, CreateAgentPanelComponent_Conditional_2_Conditional_92_Template, 1, 0, "mj-empty-state", 44);
|
|
435
|
+
i0.ɵɵconditionalCreate(93, CreateAgentPanelComponent_Conditional_2_Conditional_93_Template, 8, 5, "div", 42);
|
|
462
436
|
i0.ɵɵelementEnd();
|
|
463
|
-
i0.ɵɵelementStart(
|
|
464
|
-
i0.ɵɵconditionalCreate(
|
|
437
|
+
i0.ɵɵelementStart(94, "div", 45)(95, "button", 46);
|
|
438
|
+
i0.ɵɵconditionalCreate(96, CreateAgentPanelComponent_Conditional_2_Conditional_96_Template, 3, 0)(97, CreateAgentPanelComponent_Conditional_2_Conditional_97_Template, 3, 1);
|
|
465
439
|
i0.ɵɵelementEnd();
|
|
466
|
-
i0.ɵɵelementStart(
|
|
467
|
-
i0.ɵɵlistener("click", function
|
|
468
|
-
i0.ɵɵtext(
|
|
440
|
+
i0.ɵɵelementStart(98, "button", 47);
|
|
441
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_98_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnCancel()); });
|
|
442
|
+
i0.ɵɵtext(99, " Cancel ");
|
|
469
443
|
i0.ɵɵelementEnd()()();
|
|
470
444
|
} if (rf & 2) {
|
|
471
445
|
let tmp_4_0;
|
|
@@ -488,28 +462,24 @@ function CreateAgentPanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1)
|
|
|
488
462
|
i0.ɵɵrepeater(ctx_r2.AgentTypes);
|
|
489
463
|
i0.ɵɵadvance(2);
|
|
490
464
|
i0.ɵɵconditional(((tmp_8_0 = ctx_r2.Form.get("typeId")) == null ? null : tmp_8_0.invalid) && ((tmp_8_0 = ctx_r2.Form.get("typeId")) == null ? null : tmp_8_0.touched) ? 25 : -1);
|
|
491
|
-
i0.ɵɵadvance(
|
|
492
|
-
i0.ɵɵ
|
|
493
|
-
i0.ɵɵadvance();
|
|
494
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.ShowAdvancedConfig ? "Hide" : "Show", " Advanced Configuration ");
|
|
495
|
-
i0.ɵɵadvance();
|
|
496
|
-
i0.ɵɵconditional(ctx_r2.ShowAdvancedConfig ? 68 : -1);
|
|
497
|
-
i0.ɵɵadvance(7);
|
|
465
|
+
i0.ɵɵadvance(40);
|
|
466
|
+
i0.ɵɵproperty("FlushBody", true)("Expanded", ctx_r2.ShowAdvancedConfig);
|
|
467
|
+
i0.ɵɵadvance(9);
|
|
498
468
|
i0.ɵɵtextInterpolate(ctx_r2.LinkedPromptCount);
|
|
499
469
|
i0.ɵɵadvance(4);
|
|
500
|
-
i0.ɵɵconditional(ctx_r2.LinkedPrompts.length > 0 ?
|
|
470
|
+
i0.ɵɵconditional(ctx_r2.LinkedPrompts.length > 0 ? 78 : 79);
|
|
501
471
|
i0.ɵɵadvance(2);
|
|
502
|
-
i0.ɵɵconditional(ctx_r2.ShowPromptSelector ?
|
|
472
|
+
i0.ɵɵconditional(ctx_r2.ShowPromptSelector ? 80 : -1);
|
|
503
473
|
i0.ɵɵadvance(7);
|
|
504
474
|
i0.ɵɵtextInterpolate(ctx_r2.LinkedActionCount);
|
|
505
475
|
i0.ɵɵadvance(4);
|
|
506
|
-
i0.ɵɵconditional(ctx_r2.LinkedActions.length > 0 ?
|
|
476
|
+
i0.ɵɵconditional(ctx_r2.LinkedActions.length > 0 ? 91 : 92);
|
|
507
477
|
i0.ɵɵadvance(2);
|
|
508
|
-
i0.ɵɵconditional(ctx_r2.ShowActionSelector ?
|
|
478
|
+
i0.ɵɵconditional(ctx_r2.ShowActionSelector ? 93 : -1);
|
|
509
479
|
i0.ɵɵadvance(2);
|
|
510
480
|
i0.ɵɵproperty("disabled", ctx_r2.Form.invalid || ctx_r2.IsSubmitting);
|
|
511
481
|
i0.ɵɵadvance();
|
|
512
|
-
i0.ɵɵconditional(ctx_r2.IsSubmitting ?
|
|
482
|
+
i0.ɵɵconditional(ctx_r2.IsSubmitting ? 96 : 97);
|
|
513
483
|
i0.ɵɵadvance(2);
|
|
514
484
|
i0.ɵɵproperty("disabled", ctx_r2.IsSubmitting);
|
|
515
485
|
} }
|
|
@@ -739,8 +709,8 @@ export class CreateAgentPanelComponent extends BaseAngularComponent {
|
|
|
739
709
|
get AvailableActions() {
|
|
740
710
|
return this.availableActions;
|
|
741
711
|
}
|
|
742
|
-
|
|
743
|
-
this.ShowAdvancedConfig =
|
|
712
|
+
OnAdvancedConfigExpandedChange(expanded) {
|
|
713
|
+
this.ShowAdvancedConfig = expanded;
|
|
744
714
|
this.cdr.markForCheck();
|
|
745
715
|
}
|
|
746
716
|
TrackById(_index, item) {
|
|
@@ -903,14 +873,14 @@ export class CreateAgentPanelComponent extends BaseAngularComponent {
|
|
|
903
873
|
this.Cancelled.emit();
|
|
904
874
|
}
|
|
905
875
|
static ɵfac = function CreateAgentPanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CreateAgentPanelComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
906
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreateAgentPanelComponent, selectors: [["mj-create-agent-panel"]], inputs: { Config: "Config" }, outputs: { Created: "Created", Cancelled: "Cancelled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [[1, "cap-container"], [1, "cap-loading"], [1, "cap-spinner"], [
|
|
876
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreateAgentPanelComponent, selectors: [["mj-create-agent-panel"]], inputs: { Config: "Config" }, outputs: { Created: "Created", Cancelled: "Cancelled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 1, consts: [[1, "cap-container"], [1, "cap-loading"], [1, "cap-spinner"], ["Variant", "error", "Dismissible", ""], ["Variant", "info", "Icon", "fa-solid fa-link"], [1, "cap-form", 3, "ngSubmit", "formGroup"], [1, "cap-section"], [1, "cap-section-title"], [1, "fa-solid", "fa-info-circle"], [1, "cap-field"], [1, "cap-label", "cap-required"], ["type", "text", "formControlName", "name", "placeholder", "Enter agent name...", 1, "cap-input"], [1, "cap-field-error"], [1, "cap-label"], ["formControlName", "description", "rows", "2", "placeholder", "Describe what this agent does...", 1, "cap-textarea"], [1, "cap-row"], ["formControlName", "typeId", 1, "cap-select"], ["value", ""], [3, "value"], ["formControlName", "status", 1, "cap-select"], ["value", "Pending"], ["value", "Active"], ["value", "Disabled"], ["formControlName", "executionMode", 1, "cap-select"], ["value", "Sequential"], ["value", "Parallel"], ["formControlName", "modelSelectionMode", 1, "cap-select"], ["value", "Agent Type"], ["value", "Agent"], [1, "fa-solid", "fa-bullseye"], ["type", "text", "formControlName", "purpose", "placeholder", "Enter the purpose of this agent...", 1, "cap-input"], ["formControlName", "userMessage", "rows", "3", "placeholder", "Enter user message template...", 1, "cap-textarea"], ["Size", "sm", 3, "ExpandedChange", "FlushBody", "Expanded"], ["mjAccordionTitle", ""], ["mjAccordionBody", ""], [1, "cap-section-header"], [1, "fa-solid", "fa-comments"], [1, "cap-badge"], ["type", "button", 1, "cap-btn", "cap-btn-small", 3, "click"], [1, "fa-solid", "fa-plus"], [1, "cap-linked-items"], ["Icon", "fa-solid fa-comments", "Title", "No prompts added yet", "Size", "compact"], [1, "cap-selector"], [1, "fa-solid", "fa-bolt"], ["Icon", "fa-solid fa-bolt", "Title", "No actions added yet", "Size", "compact"], [1, "cap-actions"], ["type", "submit", 1, "cap-btn", "cap-btn-primary", 3, "disabled"], ["type", "button", 1, "cap-btn", "cap-btn-secondary", 3, "click", "disabled"], ["Variant", "error", "Dismissible", "", 3, "Dismissed"], [1, "fa-solid", "fa-exclamation-circle"], [1, "fa-solid", "fa-cogs"], [1, "cap-advanced-body"], ["type", "number", "formControlName", "temperature", "min", "0", "max", "2", "step", "0.1", 1, "cap-input"], [1, "cap-field-hint"], ["type", "number", "formControlName", "topP", "min", "0", "max", "1", "step", "0.1", 1, "cap-input"], ["type", "number", "formControlName", "topK", "min", "1", "max", "100", 1, "cap-input"], ["type", "number", "formControlName", "maxTokens", "min", "1", "max", "32000", "step", "100", 1, "cap-input"], [1, "cap-field", "cap-field-checkbox"], [1, "cap-checkbox-label"], ["type", "checkbox", "formControlName", "enableCaching"], ["type", "number", "formControlName", "cacheTTL", "min", "60", "max", "86400", "step", "60", 1, "cap-input"], [1, "cap-linked-item"], [1, "cap-item-icon"], [1, "cap-item-info"], [1, "cap-item-name"], [1, "cap-item-description"], ["type", "button", "title", "Remove prompt", 1, "cap-item-remove", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "cap-selector-header"], ["type", "text", "placeholder", "Search prompts...", 1, "cap-selector-search", 3, "ngModelChange", "ngModel", "ngModelOptions"], ["type", "button", 1, "cap-selector-close", 3, "click"], [1, "cap-selector-list"], ["Variant", "no-results", "Title", "No prompts found", "Size", "compact"], [1, "cap-selector-item"], [1, "cap-selector-item", 3, "click"], [1, "cap-selector-item-info"], [1, "cap-selector-item-name"], [1, "cap-selector-item-desc"], [1, "cap-item-icon", "cap-icon-action"], ["type", "button", "title", "Remove action", 1, "cap-item-remove", 3, "click"], ["type", "text", "placeholder", "Search actions...", 1, "cap-selector-search", 3, "ngModelChange", "ngModel", "ngModelOptions"], ["Variant", "no-results", "Title", "No actions found", "Size", "compact"], [1, "cap-btn-spinner"], [1, "fa-solid", "fa-plus-circle"]], template: function CreateAgentPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
907
877
|
i0.ɵɵelementStart(0, "div", 0);
|
|
908
|
-
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_1_Template, 4, 1, "div", 1)(2, CreateAgentPanelComponent_Conditional_2_Template,
|
|
878
|
+
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_1_Template, 4, 1, "div", 1)(2, CreateAgentPanelComponent_Conditional_2_Template, 100, 20);
|
|
909
879
|
i0.ɵɵelementEnd();
|
|
910
880
|
} if (rf & 2) {
|
|
911
881
|
i0.ɵɵadvance();
|
|
912
882
|
i0.ɵɵconditional(ctx.IsLoading ? 1 : 2);
|
|
913
|
-
} }, dependencies: [i1.ɵNgNoValidate, i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.MinValidator, i1.MaxValidator, i1.NgModel, i1.FormGroupDirective, i1.FormControlName], styles: ["\n\n\n\n\n.cap-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n\n\n\n\n\n.cap-loading[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 48px 24px;\n gap: 16px;\n color: var(--mj-text-secondary);\n}\n\n.cap-spinner[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n border: 3px solid var(--mj-border-default);\n border-top-color: var(--mj-brand-primary);\n border-radius: 50%;\n animation: _ngcontent-%COMP%_cap-spin 0.8s linear infinite;\n}\n\n@keyframes _ngcontent-%COMP%_cap-spin {\n to { transform: rotate(360deg); }\n}\n\n\n\n\n\n\n.cap-error[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px;\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-status-error) 20%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-status-error);\n font-size: 14px;\n}\n\n.cap-error[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n flex-shrink: 0;\n}\n\n.cap-error[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n.cap-error-dismiss[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: none;\n border: none;\n border-radius: 4px;\n color: var(--mj-status-error);\n cursor: pointer;\n transition: background 0.15s ease;\n}\n\n.cap-error-dismiss[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, transparent);\n}\n\n\n\n\n\n\n.cap-parent-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 20%, var(--mj-bg-surface));\n border-radius: 8px;\n color: color-mix(in srgb, var(--mj-brand-primary) 80%, black);\n font-size: 13px;\n}\n\n.cap-parent-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: color-mix(in srgb, var(--mj-brand-primary) 70%, black);\n}\n\n\n\n\n\n\n.cap-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.cap-section[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n}\n\n.cap-section-advanced[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n}\n\n.cap-section-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n\n.cap-section-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.cap-section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.cap-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n background: var(--mj-brand-primary);\n border-radius: 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n}\n\n\n\n\n\n\n.cap-row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n}\n\n@media (max-width: 600px) {\n .cap-row[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n}\n\n.cap-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.cap-field-checkbox[_ngcontent-%COMP%] {\n flex-direction: row;\n align-items: center;\n}\n\n.cap-label[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-required[_ngcontent-%COMP%]::after {\n content: ' *';\n color: var(--mj-status-error);\n}\n\n.cap-input[_ngcontent-%COMP%], \n.cap-select[_ngcontent-%COMP%], \n.cap-textarea[_ngcontent-%COMP%] {\n padding: 10px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.cap-input[_ngcontent-%COMP%]:focus, \n.cap-select[_ngcontent-%COMP%]:focus, \n.cap-textarea[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n.cap-input-error[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error) !important;\n}\n\n.cap-input-error[_ngcontent-%COMP%]:focus {\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 15%, transparent) !important;\n}\n\n.cap-textarea[_ngcontent-%COMP%] {\n resize: vertical;\n min-height: 60px;\n}\n\n.cap-select[_ngcontent-%COMP%] {\n cursor: pointer;\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n padding-right: 32px;\n}\n\n.cap-field-hint[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.cap-field-error[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-status-error);\n}\n\n.cap-checkbox-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-checkbox-label[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n cursor: pointer;\n}\n\n\n\n\n\n\n.cap-advanced-toggle[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 16px;\n background: none;\n border: 1px dashed var(--mj-border-strong);\n border-radius: 8px;\n color: var(--mj-text-secondary);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-advanced-toggle[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 4%, transparent);\n}\n\n\n\n\n\n\n.cap-linked-items[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.cap-linked-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-border-strong);\n}\n\n.cap-item-icon[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 15%, var(--mj-bg-surface));\n color: var(--mj-status-warning);\n}\n\n.cap-item-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-item-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-description[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-remove[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-disabled);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n color: var(--mj-status-error);\n}\n\n\n\n\n\n\n.cap-empty-state[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n background: var(--mj-bg-surface-card);\n border: 1px dashed var(--mj-border-default);\n border-radius: 8px;\n color: var(--mj-text-disabled);\n text-align: center;\n}\n\n.cap-empty-state[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 24px;\n margin-bottom: 8px;\n opacity: 0.5;\n}\n\n.cap-empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 13px;\n}\n\n\n\n\n\n\n.cap-selector[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n overflow: hidden;\n}\n\n.cap-selector-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.cap-selector-search[_ngcontent-%COMP%] {\n flex: 1;\n padding: 8px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 6px;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-search[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.cap-selector-close[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-selector-list[_ngcontent-%COMP%] {\n max-height: 200px;\n overflow-y: auto;\n}\n\n.cap-selector-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.1s ease;\n}\n\n.cap-selector-item[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.cap-selector-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n flex-shrink: 0;\n width: 16px;\n color: var(--mj-brand-primary);\n}\n\n.cap-selector-item-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-selector-item-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-item-desc[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-selector-empty[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: var(--mj-text-disabled);\n}\n\n.cap-selector-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 20px;\n margin-bottom: 8px;\n opacity: 0.5;\n}\n\n.cap-selector-empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 13px;\n}\n\n\n\n\n\n\n.cap-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 18px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.cap-btn-small[_ngcontent-%COMP%] {\n padding: 6px 12px;\n font-size: 13px;\n border-radius: 6px;\n}\n\n.cap-btn-primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: white;\n box-shadow: 0 2px 4px color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.cap-btn-primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 85%, black);\n box-shadow: 0 4px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-btn-spinner[_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: _ngcontent-%COMP%_cap-spin 0.8s linear infinite;\n}\n\n\n\n\n\n\n.cap-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n@media (max-width: 480px) {\n .cap-actions[_ngcontent-%COMP%] {\n flex-direction: column;\n }\n\n .cap-actions[_ngcontent-%COMP%] .cap-btn[_ngcontent-%COMP%] {\n width: 100%;\n }\n}"], data: { animation: [
|
|
883
|
+
} }, dependencies: [i1.ɵNgNoValidate, i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.MinValidator, i1.MaxValidator, i1.NgModel, i1.FormGroupDirective, i1.FormControlName, i2.MJEmptyStateComponent, i2.MJAlertComponent, i2.MJAccordionPanelComponent, i2.MJAccordionTitleDirective, i2.MJAccordionBodyDirective], styles: ["\n\n\n\n\n.cap-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n\n\n\n\n\n.cap-loading[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 48px 24px;\n gap: 16px;\n color: var(--mj-text-secondary);\n}\n\n.cap-spinner[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n border: 3px solid var(--mj-border-default);\n border-top-color: var(--mj-brand-primary);\n border-radius: 50%;\n animation: _ngcontent-%COMP%_cap-spin 0.8s linear infinite;\n}\n\n@keyframes _ngcontent-%COMP%_cap-spin {\n to { transform: rotate(360deg); }\n}\n\n\n\n\n\n\n.cap-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.cap-section[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n}\n\n\n\n\n\n.cap-advanced-body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface-card);\n}\n\n.cap-section-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n\n.cap-section-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.cap-section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.cap-badge[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n background: var(--mj-brand-primary);\n border-radius: 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n}\n\n\n\n\n\n\n.cap-row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n}\n\n@media (max-width: 600px) {\n .cap-row[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n}\n\n.cap-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.cap-field-checkbox[_ngcontent-%COMP%] {\n flex-direction: row;\n align-items: center;\n}\n\n.cap-label[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-required[_ngcontent-%COMP%]::after {\n content: ' *';\n color: var(--mj-status-error);\n}\n\n.cap-input[_ngcontent-%COMP%], \n.cap-select[_ngcontent-%COMP%], \n.cap-textarea[_ngcontent-%COMP%] {\n padding: 10px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.cap-input[_ngcontent-%COMP%]:focus, \n.cap-select[_ngcontent-%COMP%]:focus, \n.cap-textarea[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n.cap-input-error[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error) !important;\n}\n\n.cap-input-error[_ngcontent-%COMP%]:focus {\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 15%, transparent) !important;\n}\n\n.cap-textarea[_ngcontent-%COMP%] {\n resize: vertical;\n min-height: 60px;\n}\n\n.cap-select[_ngcontent-%COMP%] {\n cursor: pointer;\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n padding-right: 32px;\n}\n\n.cap-field-hint[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.cap-field-error[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-status-error);\n}\n\n.cap-checkbox-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-checkbox-label[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n cursor: pointer;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n.cap-linked-items[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.cap-linked-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item[_ngcontent-%COMP%]:hover {\n border-color: var(--mj-border-strong);\n}\n\n.cap-item-icon[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 15%, var(--mj-bg-surface));\n color: var(--mj-status-warning);\n}\n\n.cap-item-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-item-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-description[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-remove[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-disabled);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n color: var(--mj-status-error);\n}\n\n\n\n\n\n\n\n\n\n\n\n.cap-selector[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n overflow: hidden;\n}\n\n.cap-selector-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.cap-selector-search[_ngcontent-%COMP%] {\n flex: 1;\n padding: 8px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 6px;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-search[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.cap-selector-close[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-selector-list[_ngcontent-%COMP%] {\n max-height: 200px;\n overflow-y: auto;\n}\n\n.cap-selector-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.1s ease;\n}\n\n.cap-selector-item[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.cap-selector-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n flex-shrink: 0;\n width: 16px;\n color: var(--mj-brand-primary);\n}\n\n.cap-selector-item-info[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-selector-item-name[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-item-desc[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n\n\n\n\n\n.cap-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 18px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.cap-btn-small[_ngcontent-%COMP%] {\n padding: 6px 12px;\n font-size: 13px;\n border-radius: 6px;\n}\n\n.cap-btn-primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: white;\n box-shadow: 0 2px 4px color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.cap-btn-primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 85%, black);\n box-shadow: 0 4px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-btn-spinner[_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: _ngcontent-%COMP%_cap-spin 0.8s linear infinite;\n}\n\n\n\n\n\n\n.cap-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n@media (max-width: 480px) {\n .cap-actions[_ngcontent-%COMP%] {\n flex-direction: column;\n }\n\n .cap-actions[_ngcontent-%COMP%] .cap-btn[_ngcontent-%COMP%] {\n width: 100%;\n }\n}"], data: { animation: [
|
|
914
884
|
trigger('slideDown', [
|
|
915
885
|
transition(':enter', [
|
|
916
886
|
style({ opacity: 0, transform: 'translateY(-8px)' }),
|
|
@@ -946,7 +916,7 @@ export class CreateAgentPanelComponent extends BaseAngularComponent {
|
|
|
946
916
|
animate('200ms ease-out', style({ opacity: 1 }))
|
|
947
917
|
])
|
|
948
918
|
])
|
|
949
|
-
], template: "<div class=\"cap-container\">\n <!-- Loading State -->\n @if (IsLoading) {\n <div class=\"cap-loading\" @fadeIn>\n <div class=\"cap-spinner\"></div>\n <span>Loading...</span>\n </div>\n } @else {\n <!-- Error State -->\n @if (ErrorMessage) {\n <div class=\"cap-error\" @slideDown>\n <i class=\"fa-solid fa-exclamation-triangle\"></i>\n <span>{{ ErrorMessage }}</span>\n <button class=\"cap-error-dismiss\" (click)=\"ErrorMessage = null\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n\n <!-- Parent Agent Info -->\n @if (IsSubAgent && Config.ParentAgentName) {\n <div class=\"cap-parent-info\" @slideDown>\n <i class=\"fa-solid fa-link\"></i>\n <span>Sub-agent of: <strong>{{ Config.ParentAgentName }}</strong></span>\n </div>\n }\n\n <!-- Form -->\n <form [formGroup]=\"Form\" (ngSubmit)=\"OnSubmit()\" class=\"cap-form\">\n <!-- Basic Information Section -->\n <section class=\"cap-section\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"cap-field\">\n <label class=\"cap-label cap-required\">Name</label>\n <input\n type=\"text\"\n formControlName=\"name\"\n class=\"cap-input\"\n placeholder=\"Enter agent name...\"\n [class.cap-input-error]=\"Form.get('name')?.invalid && Form.get('name')?.touched\"\n />\n @if (Form.get('name')?.invalid && Form.get('name')?.touched) {\n <div class=\"cap-field-error\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n Agent name is required\n </div>\n }\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Description</label>\n <textarea\n formControlName=\"description\"\n class=\"cap-textarea\"\n rows=\"2\"\n placeholder=\"Describe what this agent does...\"\n ></textarea>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label cap-required\">Type</label>\n <select\n formControlName=\"typeId\"\n class=\"cap-select\"\n [class.cap-input-error]=\"Form.get('typeId')?.invalid && Form.get('typeId')?.touched\"\n >\n <option value=\"\">Select agent type...</option>\n @for (type of AgentTypes; track type.ID) {\n <option [value]=\"type.ID\">{{ type.Name }}</option>\n }\n </select>\n @if (Form.get('typeId')?.invalid && Form.get('typeId')?.touched) {\n <div class=\"cap-field-error\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n Agent type is required\n </div>\n }\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Status</label>\n <select formControlName=\"status\" class=\"cap-select\">\n <option value=\"Pending\">Pending</option>\n <option value=\"Active\">Active</option>\n <option value=\"Disabled\">Disabled</option>\n </select>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Execution Mode</label>\n <select formControlName=\"executionMode\" class=\"cap-select\">\n <option value=\"Sequential\">Sequential</option>\n <option value=\"Parallel\">Parallel</option>\n </select>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Model Selection Mode</label>\n <select formControlName=\"modelSelectionMode\" class=\"cap-select\">\n <option value=\"Agent Type\">Agent Type</option>\n <option value=\"Agent\">Agent</option>\n </select>\n </div>\n </div>\n </section>\n\n <!-- Purpose & Messages Section -->\n <section class=\"cap-section\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-bullseye\"></i>\n Purpose & Messages\n </h3>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Purpose</label>\n <input\n type=\"text\"\n formControlName=\"purpose\"\n class=\"cap-input\"\n placeholder=\"Enter the purpose of this agent...\"\n />\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">User Message</label>\n <textarea\n formControlName=\"userMessage\"\n class=\"cap-textarea\"\n rows=\"3\"\n placeholder=\"Enter user message template...\"\n ></textarea>\n </div>\n </section>\n\n <!-- Advanced Configuration Toggle -->\n <button\n type=\"button\"\n class=\"cap-advanced-toggle\"\n (click)=\"ToggleAdvancedConfig()\"\n >\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"!ShowAdvancedConfig\" [class.fa-chevron-up]=\"ShowAdvancedConfig\"></i>\n {{ ShowAdvancedConfig ? 'Hide' : 'Show' }} Advanced Configuration\n </button>\n\n <!-- Advanced Configuration Section -->\n @if (ShowAdvancedConfig) {\n <section class=\"cap-section cap-section-advanced\" @slideDown>\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-cogs\"></i>\n Model Configuration\n </h3>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Temperature</label>\n <input\n type=\"number\"\n formControlName=\"temperature\"\n class=\"cap-input\"\n min=\"0\"\n max=\"2\"\n step=\"0.1\"\n />\n <div class=\"cap-field-hint\">Controls randomness (0-2)</div>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Top P</label>\n <input\n type=\"number\"\n formControlName=\"topP\"\n class=\"cap-input\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n />\n <div class=\"cap-field-hint\">Nucleus sampling (0-1)</div>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Top K</label>\n <input\n type=\"number\"\n formControlName=\"topK\"\n class=\"cap-input\"\n min=\"1\"\n max=\"100\"\n />\n <div class=\"cap-field-hint\">Token sampling limit</div>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Max Tokens</label>\n <input\n type=\"number\"\n formControlName=\"maxTokens\"\n class=\"cap-input\"\n min=\"1\"\n max=\"32000\"\n step=\"100\"\n />\n <div class=\"cap-field-hint\">Maximum response length</div>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field cap-field-checkbox\">\n <label class=\"cap-checkbox-label\">\n <input type=\"checkbox\" formControlName=\"enableCaching\" />\n <span>Enable Caching</span>\n </label>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Cache TTL (seconds)</label>\n <input\n type=\"number\"\n formControlName=\"cacheTTL\"\n class=\"cap-input\"\n min=\"60\"\n max=\"86400\"\n step=\"60\"\n />\n </div>\n </div>\n </section>\n }\n\n <!-- Prompts Section -->\n <section class=\"cap-section\">\n <div class=\"cap-section-header\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-comments\"></i>\n Prompts\n <span class=\"cap-badge\">{{ LinkedPromptCount }}</span>\n </h3>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-small\"\n (click)=\"OnOpenPromptSelector()\"\n >\n <i class=\"fa-solid fa-plus\"></i>\n Add Prompt\n </button>\n </div>\n\n @if (LinkedPrompts.length > 0) {\n <div class=\"cap-linked-items\">\n @for (prompt of LinkedPrompts; track prompt.ID) {\n <div class=\"cap-linked-item\" @slideDown>\n <div class=\"cap-item-icon\">\n <i class=\"fa-solid fa-comments\"></i>\n </div>\n <div class=\"cap-item-info\">\n <span class=\"cap-item-name\">{{ prompt.Name }}</span>\n @if (prompt.Description) {\n <span class=\"cap-item-description\">{{ prompt.Description }}</span>\n }\n </div>\n <button\n type=\"button\"\n class=\"cap-item-remove\"\n (click)=\"RemovePrompt(prompt)\"\n title=\"Remove prompt\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n </div>\n } @else {\n <div class=\"cap-empty-state\">\n <i class=\"fa-solid fa-comments\"></i>\n <p>No prompts added yet</p>\n </div>\n }\n\n <!-- Prompt Selector Dropdown -->\n @if (ShowPromptSelector) {\n <div class=\"cap-selector\" @slideDown>\n <div class=\"cap-selector-header\">\n <input\n type=\"text\"\n class=\"cap-selector-search\"\n placeholder=\"Search prompts...\"\n [(ngModel)]=\"PromptSearchQuery\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"OnPromptSearchChanged()\"\n />\n <button\n type=\"button\"\n class=\"cap-selector-close\"\n (click)=\"OnClosePromptSelector()\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"cap-selector-list\">\n @if (FilteredPrompts.length > 0) {\n @for (prompt of FilteredPrompts; track prompt.ID) {\n <div\n class=\"cap-selector-item\"\n (click)=\"OnSelectPrompt(prompt)\"\n >\n <i class=\"fa-solid fa-comments\"></i>\n <div class=\"cap-selector-item-info\">\n <span class=\"cap-selector-item-name\">{{ prompt.Name }}</span>\n @if (prompt.Description) {\n <span class=\"cap-selector-item-desc\">{{ prompt.Description }}</span>\n }\n </div>\n </div>\n }\n } @else {\n <div class=\"cap-selector-empty\">\n <i class=\"fa-solid fa-search\"></i>\n <span>No prompts found</span>\n </div>\n }\n </div>\n </div>\n }\n </section>\n\n <!-- Actions Section -->\n <section class=\"cap-section\">\n <div class=\"cap-section-header\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-bolt\"></i>\n Actions\n <span class=\"cap-badge\">{{ LinkedActionCount }}</span>\n </h3>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-small\"\n (click)=\"OnOpenActionSelector()\"\n >\n <i class=\"fa-solid fa-plus\"></i>\n Add Action\n </button>\n </div>\n\n @if (LinkedActions.length > 0) {\n <div class=\"cap-linked-items\">\n @for (action of LinkedActions; track action.ID) {\n <div class=\"cap-linked-item\" @slideDown>\n <div class=\"cap-item-icon cap-icon-action\">\n <i class=\"fa-solid fa-bolt\"></i>\n </div>\n <div class=\"cap-item-info\">\n <span class=\"cap-item-name\">{{ action.Name }}</span>\n @if (action.Description) {\n <span class=\"cap-item-description\">{{ action.Description }}</span>\n }\n </div>\n <button\n type=\"button\"\n class=\"cap-item-remove\"\n (click)=\"RemoveAction(action)\"\n title=\"Remove action\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n </div>\n } @else {\n <div class=\"cap-empty-state\">\n <i class=\"fa-solid fa-bolt\"></i>\n <p>No actions added yet</p>\n </div>\n }\n\n <!-- Action Selector Dropdown -->\n @if (ShowActionSelector) {\n <div class=\"cap-selector\" @slideDown>\n <div class=\"cap-selector-header\">\n <input\n type=\"text\"\n class=\"cap-selector-search\"\n placeholder=\"Search actions...\"\n [(ngModel)]=\"ActionSearchQuery\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"OnActionSearchChanged()\"\n />\n <button\n type=\"button\"\n class=\"cap-selector-close\"\n (click)=\"OnCloseActionSelector()\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"cap-selector-list\">\n @if (FilteredActions.length > 0) {\n @for (action of FilteredActions; track action.ID) {\n <div\n class=\"cap-selector-item\"\n (click)=\"OnSelectAction(action)\"\n >\n <i class=\"fa-solid fa-bolt\"></i>\n <div class=\"cap-selector-item-info\">\n <span class=\"cap-selector-item-name\">{{ action.Name }}</span>\n @if (action.Description) {\n <span class=\"cap-selector-item-desc\">{{ action.Description }}</span>\n }\n </div>\n </div>\n }\n } @else {\n <div class=\"cap-selector-empty\">\n <i class=\"fa-solid fa-search\"></i>\n <span>No actions found</span>\n </div>\n }\n </div>\n </div>\n }\n </section>\n\n <!-- Form Actions -->\n <div class=\"cap-actions\">\n <button\n type=\"submit\"\n class=\"cap-btn cap-btn-primary\"\n [disabled]=\"Form.invalid || IsSubmitting\"\n >\n @if (IsSubmitting) {\n <span class=\"cap-btn-spinner\"></span>\n <span>Creating...</span>\n } @else {\n <i class=\"fa-solid fa-plus-circle\"></i>\n <span>Create {{ IsSubAgent ? 'Sub-Agent' : 'Agent' }}</span>\n }\n </button>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-secondary\"\n (click)=\"OnCancel()\"\n [disabled]=\"IsSubmitting\"\n >\n Cancel\n </button>\n </div>\n </form>\n }\n</div>\n", styles: ["/* =============================================================================\n Create Agent Panel Component Styles\n ============================================================================= */\n\n.cap-container {\n display: flex;\n flex-direction: column;\n gap: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n/* -----------------------------------------------------------------------------\n Loading State\n ----------------------------------------------------------------------------- */\n\n.cap-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 48px 24px;\n gap: 16px;\n color: var(--mj-text-secondary);\n}\n\n.cap-spinner {\n width: 32px;\n height: 32px;\n border: 3px solid var(--mj-border-default);\n border-top-color: var(--mj-brand-primary);\n border-radius: 50%;\n animation: cap-spin 0.8s linear infinite;\n}\n\n@keyframes cap-spin {\n to { transform: rotate(360deg); }\n}\n\n/* -----------------------------------------------------------------------------\n Error State\n ----------------------------------------------------------------------------- */\n\n.cap-error {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 16px;\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-status-error) 20%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-status-error);\n font-size: 14px;\n}\n\n.cap-error i {\n flex-shrink: 0;\n}\n\n.cap-error span {\n flex: 1;\n}\n\n.cap-error-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: none;\n border: none;\n border-radius: 4px;\n color: var(--mj-status-error);\n cursor: pointer;\n transition: background 0.15s ease;\n}\n\n.cap-error-dismiss:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, transparent);\n}\n\n/* -----------------------------------------------------------------------------\n Parent Info Badge\n ----------------------------------------------------------------------------- */\n\n.cap-parent-info {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 14px;\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 20%, var(--mj-bg-surface));\n border-radius: 8px;\n color: color-mix(in srgb, var(--mj-brand-primary) 80%, black);\n font-size: 13px;\n}\n\n.cap-parent-info i {\n color: color-mix(in srgb, var(--mj-brand-primary) 70%, black);\n}\n\n/* -----------------------------------------------------------------------------\n Form Sections\n ----------------------------------------------------------------------------- */\n\n.cap-form {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.cap-section {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n}\n\n.cap-section-advanced {\n background: var(--mj-bg-surface-card);\n}\n\n.cap-section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n\n.cap-section-title {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.cap-section-title i {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.cap-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n background: var(--mj-brand-primary);\n border-radius: 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n}\n\n/* -----------------------------------------------------------------------------\n Form Fields\n ----------------------------------------------------------------------------- */\n\n.cap-row {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n}\n\n@media (max-width: 600px) {\n .cap-row {\n grid-template-columns: 1fr;\n }\n}\n\n.cap-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.cap-field-checkbox {\n flex-direction: row;\n align-items: center;\n}\n\n.cap-label {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-required::after {\n content: ' *';\n color: var(--mj-status-error);\n}\n\n.cap-input,\n.cap-select,\n.cap-textarea {\n padding: 10px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.cap-input:focus,\n.cap-select:focus,\n.cap-textarea:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n.cap-input-error {\n border-color: var(--mj-status-error) !important;\n}\n\n.cap-input-error:focus {\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 15%, transparent) !important;\n}\n\n.cap-textarea {\n resize: vertical;\n min-height: 60px;\n}\n\n.cap-select {\n cursor: pointer;\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n padding-right: 32px;\n}\n\n.cap-field-hint {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.cap-field-error {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-status-error);\n}\n\n.cap-checkbox-label {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-checkbox-label input[type=\"checkbox\"] {\n width: 16px;\n height: 16px;\n cursor: pointer;\n}\n\n/* -----------------------------------------------------------------------------\n Advanced Config Toggle\n ----------------------------------------------------------------------------- */\n\n.cap-advanced-toggle {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 16px;\n background: none;\n border: 1px dashed var(--mj-border-strong);\n border-radius: 8px;\n color: var(--mj-text-secondary);\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-advanced-toggle:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 4%, transparent);\n}\n\n/* -----------------------------------------------------------------------------\n Linked Items\n ----------------------------------------------------------------------------- */\n\n.cap-linked-items {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.cap-linked-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item:hover {\n border-color: var(--mj-border-strong);\n}\n\n.cap-item-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action {\n background: color-mix(in srgb, var(--mj-status-warning) 15%, var(--mj-bg-surface));\n color: var(--mj-status-warning);\n}\n\n.cap-item-info {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-item-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-description {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-disabled);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n color: var(--mj-status-error);\n}\n\n/* -----------------------------------------------------------------------------\n Empty State\n ----------------------------------------------------------------------------- */\n\n.cap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n background: var(--mj-bg-surface-card);\n border: 1px dashed var(--mj-border-default);\n border-radius: 8px;\n color: var(--mj-text-disabled);\n text-align: center;\n}\n\n.cap-empty-state i {\n font-size: 24px;\n margin-bottom: 8px;\n opacity: 0.5;\n}\n\n.cap-empty-state p {\n margin: 0;\n font-size: 13px;\n}\n\n/* -----------------------------------------------------------------------------\n Selector Dropdown\n ----------------------------------------------------------------------------- */\n\n.cap-selector {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n overflow: hidden;\n}\n\n.cap-selector-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.cap-selector-search {\n flex: 1;\n padding: 8px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 6px;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-search:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.cap-selector-close {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-selector-list {\n max-height: 200px;\n overflow-y: auto;\n}\n\n.cap-selector-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.1s ease;\n}\n\n.cap-selector-item:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.cap-selector-item i {\n flex-shrink: 0;\n width: 16px;\n color: var(--mj-brand-primary);\n}\n\n.cap-selector-item-info {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-selector-item-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-item-desc {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-selector-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px 16px;\n color: var(--mj-text-disabled);\n}\n\n.cap-selector-empty i {\n font-size: 20px;\n margin-bottom: 8px;\n opacity: 0.5;\n}\n\n.cap-selector-empty span {\n font-size: 13px;\n}\n\n/* -----------------------------------------------------------------------------\n Buttons\n ----------------------------------------------------------------------------- */\n\n.cap-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 18px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.cap-btn-small {\n padding: 6px 12px;\n font-size: 13px;\n border-radius: 6px;\n}\n\n.cap-btn-primary {\n background: var(--mj-brand-primary);\n color: white;\n box-shadow: 0 2px 4px color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.cap-btn-primary:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 85%, black);\n box-shadow: 0 4px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.cap-btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-btn-spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: cap-spin 0.8s linear infinite;\n}\n\n/* -----------------------------------------------------------------------------\n Form Actions\n ----------------------------------------------------------------------------- */\n\n.cap-actions {\n display: flex;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n@media (max-width: 480px) {\n .cap-actions {\n flex-direction: column;\n }\n\n .cap-actions .cap-btn {\n width: 100%;\n }\n}\n"] }]
|
|
919
|
+
], template: "<div class=\"cap-container\">\n <!-- Loading State -->\n @if (IsLoading) {\n <div class=\"cap-loading\" @fadeIn>\n <div class=\"cap-spinner\"></div>\n <span>Loading...</span>\n </div>\n } @else {\n <!-- Error State -->\n @if (ErrorMessage) {\n <mj-alert Variant=\"error\" Dismissible (Dismissed)=\"ErrorMessage = null\" @slideDown>{{ ErrorMessage }}</mj-alert>\n }\n\n <!-- Parent Agent Info -->\n @if (IsSubAgent && Config.ParentAgentName) {\n <mj-alert Variant=\"info\" Icon=\"fa-solid fa-link\" @slideDown>Sub-agent of: <strong>{{ Config.ParentAgentName }}</strong></mj-alert>\n }\n\n <!-- Form -->\n <form [formGroup]=\"Form\" (ngSubmit)=\"OnSubmit()\" class=\"cap-form\">\n <!-- Basic Information Section -->\n <section class=\"cap-section\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-info-circle\"></i>\n Basic Information\n </h3>\n\n <div class=\"cap-field\">\n <label class=\"cap-label cap-required\">Name</label>\n <input\n type=\"text\"\n formControlName=\"name\"\n class=\"cap-input\"\n placeholder=\"Enter agent name...\"\n [class.cap-input-error]=\"Form.get('name')?.invalid && Form.get('name')?.touched\"\n />\n @if (Form.get('name')?.invalid && Form.get('name')?.touched) {\n <div class=\"cap-field-error\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n Agent name is required\n </div>\n }\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Description</label>\n <textarea\n formControlName=\"description\"\n class=\"cap-textarea\"\n rows=\"2\"\n placeholder=\"Describe what this agent does...\"\n ></textarea>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label cap-required\">Type</label>\n <select\n formControlName=\"typeId\"\n class=\"cap-select\"\n [class.cap-input-error]=\"Form.get('typeId')?.invalid && Form.get('typeId')?.touched\"\n >\n <option value=\"\">Select agent type...</option>\n @for (type of AgentTypes; track type.ID) {\n <option [value]=\"type.ID\">{{ type.Name }}</option>\n }\n </select>\n @if (Form.get('typeId')?.invalid && Form.get('typeId')?.touched) {\n <div class=\"cap-field-error\">\n <i class=\"fa-solid fa-exclamation-circle\"></i>\n Agent type is required\n </div>\n }\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Status</label>\n <select formControlName=\"status\" class=\"cap-select\">\n <option value=\"Pending\">Pending</option>\n <option value=\"Active\">Active</option>\n <option value=\"Disabled\">Disabled</option>\n </select>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Execution Mode</label>\n <select formControlName=\"executionMode\" class=\"cap-select\">\n <option value=\"Sequential\">Sequential</option>\n <option value=\"Parallel\">Parallel</option>\n </select>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Model Selection Mode</label>\n <select formControlName=\"modelSelectionMode\" class=\"cap-select\">\n <option value=\"Agent Type\">Agent Type</option>\n <option value=\"Agent\">Agent</option>\n </select>\n </div>\n </div>\n </section>\n\n <!-- Purpose & Messages Section -->\n <section class=\"cap-section\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-bullseye\"></i>\n Purpose & Messages\n </h3>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Purpose</label>\n <input\n type=\"text\"\n formControlName=\"purpose\"\n class=\"cap-input\"\n placeholder=\"Enter the purpose of this agent...\"\n />\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">User Message</label>\n <textarea\n formControlName=\"userMessage\"\n class=\"cap-textarea\"\n rows=\"3\"\n placeholder=\"Enter user message template...\"\n ></textarea>\n </div>\n </section>\n\n <!-- Advanced Configuration Section (collapsible) -->\n <mj-accordion-panel\n Size=\"sm\"\n [FlushBody]=\"true\"\n [Expanded]=\"ShowAdvancedConfig\"\n (ExpandedChange)=\"OnAdvancedConfigExpandedChange($event)\"\n >\n <ng-template mjAccordionTitle>\n <i class=\"fa-solid fa-cogs\"></i>\n Advanced Configuration\n </ng-template>\n <ng-template mjAccordionBody>\n <div class=\"cap-advanced-body\">\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Temperature</label>\n <input\n type=\"number\"\n formControlName=\"temperature\"\n class=\"cap-input\"\n min=\"0\"\n max=\"2\"\n step=\"0.1\"\n />\n <div class=\"cap-field-hint\">Controls randomness (0-2)</div>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Top P</label>\n <input\n type=\"number\"\n formControlName=\"topP\"\n class=\"cap-input\"\n min=\"0\"\n max=\"1\"\n step=\"0.1\"\n />\n <div class=\"cap-field-hint\">Nucleus sampling (0-1)</div>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field\">\n <label class=\"cap-label\">Top K</label>\n <input\n type=\"number\"\n formControlName=\"topK\"\n class=\"cap-input\"\n min=\"1\"\n max=\"100\"\n />\n <div class=\"cap-field-hint\">Token sampling limit</div>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Max Tokens</label>\n <input\n type=\"number\"\n formControlName=\"maxTokens\"\n class=\"cap-input\"\n min=\"1\"\n max=\"32000\"\n step=\"100\"\n />\n <div class=\"cap-field-hint\">Maximum response length</div>\n </div>\n </div>\n\n <div class=\"cap-row\">\n <div class=\"cap-field cap-field-checkbox\">\n <label class=\"cap-checkbox-label\">\n <input type=\"checkbox\" formControlName=\"enableCaching\" />\n <span>Enable Caching</span>\n </label>\n </div>\n\n <div class=\"cap-field\">\n <label class=\"cap-label\">Cache TTL (seconds)</label>\n <input\n type=\"number\"\n formControlName=\"cacheTTL\"\n class=\"cap-input\"\n min=\"60\"\n max=\"86400\"\n step=\"60\"\n />\n </div>\n </div>\n </div>\n </ng-template>\n </mj-accordion-panel>\n\n <!-- Prompts Section -->\n <section class=\"cap-section\">\n <div class=\"cap-section-header\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-comments\"></i>\n Prompts\n <span class=\"cap-badge\">{{ LinkedPromptCount }}</span>\n </h3>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-small\"\n (click)=\"OnOpenPromptSelector()\"\n >\n <i class=\"fa-solid fa-plus\"></i>\n Add Prompt\n </button>\n </div>\n\n @if (LinkedPrompts.length > 0) {\n <div class=\"cap-linked-items\">\n @for (prompt of LinkedPrompts; track prompt.ID) {\n <div class=\"cap-linked-item\" @slideDown>\n <div class=\"cap-item-icon\">\n <i class=\"fa-solid fa-comments\"></i>\n </div>\n <div class=\"cap-item-info\">\n <span class=\"cap-item-name\">{{ prompt.Name }}</span>\n @if (prompt.Description) {\n <span class=\"cap-item-description\">{{ prompt.Description }}</span>\n }\n </div>\n <button\n type=\"button\"\n class=\"cap-item-remove\"\n (click)=\"RemovePrompt(prompt)\"\n title=\"Remove prompt\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n </div>\n } @else {\n <mj-empty-state Icon=\"fa-solid fa-comments\" Title=\"No prompts added yet\" Size=\"compact\" />\n }\n\n <!-- Prompt Selector Dropdown -->\n @if (ShowPromptSelector) {\n <div class=\"cap-selector\" @slideDown>\n <div class=\"cap-selector-header\">\n <input\n type=\"text\"\n class=\"cap-selector-search\"\n placeholder=\"Search prompts...\"\n [(ngModel)]=\"PromptSearchQuery\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"OnPromptSearchChanged()\"\n />\n <button\n type=\"button\"\n class=\"cap-selector-close\"\n (click)=\"OnClosePromptSelector()\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"cap-selector-list\">\n @if (FilteredPrompts.length > 0) {\n @for (prompt of FilteredPrompts; track prompt.ID) {\n <div\n class=\"cap-selector-item\"\n (click)=\"OnSelectPrompt(prompt)\"\n >\n <i class=\"fa-solid fa-comments\"></i>\n <div class=\"cap-selector-item-info\">\n <span class=\"cap-selector-item-name\">{{ prompt.Name }}</span>\n @if (prompt.Description) {\n <span class=\"cap-selector-item-desc\">{{ prompt.Description }}</span>\n }\n </div>\n </div>\n }\n } @else {\n <mj-empty-state Variant=\"no-results\" Title=\"No prompts found\" Size=\"compact\" />\n }\n </div>\n </div>\n }\n </section>\n\n <!-- Actions Section -->\n <section class=\"cap-section\">\n <div class=\"cap-section-header\">\n <h3 class=\"cap-section-title\">\n <i class=\"fa-solid fa-bolt\"></i>\n Actions\n <span class=\"cap-badge\">{{ LinkedActionCount }}</span>\n </h3>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-small\"\n (click)=\"OnOpenActionSelector()\"\n >\n <i class=\"fa-solid fa-plus\"></i>\n Add Action\n </button>\n </div>\n\n @if (LinkedActions.length > 0) {\n <div class=\"cap-linked-items\">\n @for (action of LinkedActions; track action.ID) {\n <div class=\"cap-linked-item\" @slideDown>\n <div class=\"cap-item-icon cap-icon-action\">\n <i class=\"fa-solid fa-bolt\"></i>\n </div>\n <div class=\"cap-item-info\">\n <span class=\"cap-item-name\">{{ action.Name }}</span>\n @if (action.Description) {\n <span class=\"cap-item-description\">{{ action.Description }}</span>\n }\n </div>\n <button\n type=\"button\"\n class=\"cap-item-remove\"\n (click)=\"RemoveAction(action)\"\n title=\"Remove action\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n </div>\n } @else {\n <mj-empty-state Icon=\"fa-solid fa-bolt\" Title=\"No actions added yet\" Size=\"compact\" />\n }\n\n <!-- Action Selector Dropdown -->\n @if (ShowActionSelector) {\n <div class=\"cap-selector\" @slideDown>\n <div class=\"cap-selector-header\">\n <input\n type=\"text\"\n class=\"cap-selector-search\"\n placeholder=\"Search actions...\"\n [(ngModel)]=\"ActionSearchQuery\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"OnActionSearchChanged()\"\n />\n <button\n type=\"button\"\n class=\"cap-selector-close\"\n (click)=\"OnCloseActionSelector()\"\n >\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"cap-selector-list\">\n @if (FilteredActions.length > 0) {\n @for (action of FilteredActions; track action.ID) {\n <div\n class=\"cap-selector-item\"\n (click)=\"OnSelectAction(action)\"\n >\n <i class=\"fa-solid fa-bolt\"></i>\n <div class=\"cap-selector-item-info\">\n <span class=\"cap-selector-item-name\">{{ action.Name }}</span>\n @if (action.Description) {\n <span class=\"cap-selector-item-desc\">{{ action.Description }}</span>\n }\n </div>\n </div>\n }\n } @else {\n <mj-empty-state Variant=\"no-results\" Title=\"No actions found\" Size=\"compact\" />\n }\n </div>\n </div>\n }\n </section>\n\n <!-- Form Actions -->\n <div class=\"cap-actions\">\n <button\n type=\"submit\"\n class=\"cap-btn cap-btn-primary\"\n [disabled]=\"Form.invalid || IsSubmitting\"\n >\n @if (IsSubmitting) {\n <span class=\"cap-btn-spinner\"></span>\n <span>Creating...</span>\n } @else {\n <i class=\"fa-solid fa-plus-circle\"></i>\n <span>Create {{ IsSubAgent ? 'Sub-Agent' : 'Agent' }}</span>\n }\n </button>\n <button\n type=\"button\"\n class=\"cap-btn cap-btn-secondary\"\n (click)=\"OnCancel()\"\n [disabled]=\"IsSubmitting\"\n >\n Cancel\n </button>\n </div>\n </form>\n }\n</div>\n", styles: ["/* =============================================================================\n Create Agent Panel Component Styles\n ============================================================================= */\n\n.cap-container {\n display: flex;\n flex-direction: column;\n gap: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n}\n\n/* -----------------------------------------------------------------------------\n Loading State\n ----------------------------------------------------------------------------- */\n\n.cap-loading {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 48px 24px;\n gap: 16px;\n color: var(--mj-text-secondary);\n}\n\n.cap-spinner {\n width: 32px;\n height: 32px;\n border: 3px solid var(--mj-border-default);\n border-top-color: var(--mj-brand-primary);\n border-radius: 50%;\n animation: cap-spin 0.8s linear infinite;\n}\n\n@keyframes cap-spin {\n to { transform: rotate(360deg); }\n}\n\n/* -----------------------------------------------------------------------------\n Form Sections\n ----------------------------------------------------------------------------- */\n\n.cap-form {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.cap-section {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n}\n\n/* Advanced Configuration accordion body \u2014 layout + tint only; the\n mj-accordion-panel now owns the outer border/header chrome (FlushBody\n removes its body padding, so this wrapper supplies the padding + gap). */\n.cap-advanced-body {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n background: var(--mj-bg-surface-card);\n}\n\n.cap-section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 4px;\n}\n\n.cap-section-title {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.cap-section-title i {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.cap-badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n background: var(--mj-brand-primary);\n border-radius: 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n}\n\n/* -----------------------------------------------------------------------------\n Form Fields\n ----------------------------------------------------------------------------- */\n\n.cap-row {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 12px;\n}\n\n@media (max-width: 600px) {\n .cap-row {\n grid-template-columns: 1fr;\n }\n}\n\n.cap-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n.cap-field-checkbox {\n flex-direction: row;\n align-items: center;\n}\n\n.cap-label {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-required::after {\n content: ' *';\n color: var(--mj-status-error);\n}\n\n.cap-input,\n.cap-select,\n.cap-textarea {\n padding: 10px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 8px;\n font-size: 14px;\n color: var(--mj-text-primary);\n transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.cap-input:focus,\n.cap-select:focus,\n.cap-textarea:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n}\n\n.cap-input-error {\n border-color: var(--mj-status-error) !important;\n}\n\n.cap-input-error:focus {\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--mj-status-error) 15%, transparent) !important;\n}\n\n.cap-textarea {\n resize: vertical;\n min-height: 60px;\n}\n\n.cap-select {\n cursor: pointer;\n appearance: none;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n padding-right: 32px;\n}\n\n.cap-field-hint {\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n.cap-field-error {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: var(--mj-status-error);\n}\n\n.cap-checkbox-label {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-checkbox-label input[type=\"checkbox\"] {\n width: 16px;\n height: 16px;\n cursor: pointer;\n}\n\n/* -----------------------------------------------------------------------------\n Advanced Config Toggle \u2014 removed: the bespoke disclosure toggle + its dashed\n chrome were replaced by <mj-accordion-panel>, which owns the header/chevron.\n ----------------------------------------------------------------------------- */\n\n/* -----------------------------------------------------------------------------\n Linked Items\n ----------------------------------------------------------------------------- */\n\n.cap-linked-items {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.cap-linked-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item:hover {\n border-color: var(--mj-border-strong);\n}\n\n.cap-item-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-radius: 8px;\n color: var(--mj-brand-primary);\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action {\n background: color-mix(in srgb, var(--mj-status-warning) 15%, var(--mj-bg-surface));\n color: var(--mj-status-warning);\n}\n\n.cap-item-info {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-item-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-description {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-remove {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-disabled);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove:hover {\n background: color-mix(in srgb, var(--mj-status-error) 8%, var(--mj-bg-surface));\n color: var(--mj-status-error);\n}\n\n/* -----------------------------------------------------------------------------\n Empty State\n ----------------------------------------------------------------------------- */\n\n/* -----------------------------------------------------------------------------\n Selector Dropdown\n ----------------------------------------------------------------------------- */\n\n.cap-selector {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n overflow: hidden;\n}\n\n.cap-selector-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.cap-selector-search {\n flex: 1;\n padding: 8px 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 6px;\n font-size: 14px;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-search:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.cap-selector-close {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: none;\n border: none;\n border-radius: 6px;\n color: var(--mj-text-secondary);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close:hover {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-selector-list {\n max-height: 200px;\n overflow-y: auto;\n}\n\n.cap-selector-item {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n cursor: pointer;\n transition: background 0.1s ease;\n}\n\n.cap-selector-item:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.cap-selector-item i {\n flex-shrink: 0;\n width: 16px;\n color: var(--mj-brand-primary);\n}\n\n.cap-selector-item-info {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.cap-selector-item-name {\n font-size: 14px;\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.cap-selector-item-desc {\n font-size: 12px;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* -----------------------------------------------------------------------------\n Buttons\n ----------------------------------------------------------------------------- */\n\n.cap-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 10px 18px;\n border: none;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.cap-btn-small {\n padding: 6px 12px;\n font-size: 13px;\n border-radius: 6px;\n}\n\n.cap-btn-primary {\n background: var(--mj-brand-primary);\n color: white;\n box-shadow: 0 2px 4px color-mix(in srgb, var(--mj-brand-primary) 20%, transparent);\n}\n\n.cap-btn-primary:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 85%, black);\n box-shadow: 0 4px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary {\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n border: 1px solid var(--mj-border-strong);\n}\n\n.cap-btn-secondary:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-primary);\n}\n\n.cap-btn-spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: cap-spin 0.8s linear infinite;\n}\n\n/* -----------------------------------------------------------------------------\n Form Actions\n ----------------------------------------------------------------------------- */\n\n.cap-actions {\n display: flex;\n justify-content: flex-start;\n gap: 12px;\n padding-top: 8px;\n}\n\n@media (max-width: 480px) {\n .cap-actions {\n flex-direction: column;\n }\n\n .cap-actions .cap-btn {\n width: 100%;\n }\n}\n"] }]
|
|
950
920
|
}], () => [{ type: i1.FormBuilder }, { type: i0.ChangeDetectorRef }], { Config: [{
|
|
951
921
|
type: Input
|
|
952
922
|
}], Created: [{
|