@memberjunction/ng-agents 0.0.1 → 4.1.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 +151 -34
- package/dist/lib/agents.module.d.ts +37 -0
- package/dist/lib/agents.module.d.ts.map +1 -0
- package/dist/lib/agents.module.js +79 -0
- package/dist/lib/agents.module.js.map +1 -0
- package/dist/lib/components/agent-permissions-dialog.component.d.ts +29 -0
- package/dist/lib/components/agent-permissions-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-dialog.component.js +135 -0
- package/dist/lib/components/agent-permissions-dialog.component.js.map +1 -0
- package/dist/lib/components/agent-permissions-panel.component.d.ts +52 -0
- package/dist/lib/components/agent-permissions-panel.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-panel.component.js +557 -0
- package/dist/lib/components/agent-permissions-panel.component.js.map +1 -0
- package/dist/lib/components/agent-permissions-slideover.component.d.ts +42 -0
- package/dist/lib/components/agent-permissions-slideover.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-slideover.component.js +176 -0
- package/dist/lib/components/agent-permissions-slideover.component.js.map +1 -0
- package/dist/lib/components/create-agent-dialog.component.d.ts +33 -0
- package/dist/lib/components/create-agent-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-dialog.component.js +140 -0
- package/dist/lib/components/create-agent-dialog.component.js.map +1 -0
- package/dist/lib/components/create-agent-panel.component.d.ts +121 -0
- package/dist/lib/components/create-agent-panel.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-panel.component.js +955 -0
- package/dist/lib/components/create-agent-panel.component.js.map +1 -0
- package/dist/lib/components/create-agent-slidein.component.d.ts +44 -0
- package/dist/lib/components/create-agent-slidein.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-slidein.component.js +190 -0
- package/dist/lib/components/create-agent-slidein.component.js.map +1 -0
- package/dist/lib/services/agent-permissions.service.d.ts +68 -0
- package/dist/lib/services/agent-permissions.service.d.ts.map +1 -0
- package/dist/lib/services/agent-permissions.service.js +134 -0
- package/dist/lib/services/agent-permissions.service.js.map +1 -0
- package/dist/lib/services/create-agent.service.d.ts +100 -0
- package/dist/lib/services/create-agent.service.d.ts.map +1 -0
- package/dist/lib/services/create-agent.service.js +199 -0
- package/dist/lib/services/create-agent.service.js.map +1 -0
- package/dist/public-api.d.ts +10 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +17 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +42 -7
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { Validators } from '@angular/forms';
|
|
3
|
+
import { trigger, transition, style, animate } from '@angular/animations';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { takeUntil } from 'rxjs/operators';
|
|
6
|
+
import { Metadata, RunView } from '@memberjunction/core';
|
|
7
|
+
import { AIEngineBase } from '@memberjunction/ai-engine-base';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@angular/forms";
|
|
10
|
+
const _c0 = () => ({ standalone: true });
|
|
11
|
+
const _forTrack0 = ($index, $item) => $item.ID;
|
|
12
|
+
function CreateAgentPanelComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
14
|
+
i0.ɵɵelement(1, "div", 2);
|
|
15
|
+
i0.ɵɵelementStart(2, "span");
|
|
16
|
+
i0.ɵɵtext(3, "Loading...");
|
|
17
|
+
i0.ɵɵelementEnd()();
|
|
18
|
+
} if (rf & 2) {
|
|
19
|
+
i0.ɵɵproperty("@fadeIn", undefined);
|
|
20
|
+
} }
|
|
21
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
23
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
24
|
+
i0.ɵɵelement(1, "i", 47);
|
|
25
|
+
i0.ɵɵelementStart(2, "span");
|
|
26
|
+
i0.ɵɵtext(3);
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementStart(4, "button", 48);
|
|
29
|
+
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); });
|
|
30
|
+
i0.ɵɵelement(5, "i", 49);
|
|
31
|
+
i0.ɵɵelementEnd()();
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
34
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
35
|
+
i0.ɵɵadvance(3);
|
|
36
|
+
i0.ɵɵtextInterpolate(ctx_r2.ErrorMessage);
|
|
37
|
+
} }
|
|
38
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
40
|
+
i0.ɵɵelement(1, "i", 50);
|
|
41
|
+
i0.ɵɵelementStart(2, "span");
|
|
42
|
+
i0.ɵɵtext(3, "Sub-agent of: ");
|
|
43
|
+
i0.ɵɵelementStart(4, "strong");
|
|
44
|
+
i0.ɵɵtext(5);
|
|
45
|
+
i0.ɵɵelementEnd()()();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
48
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
49
|
+
i0.ɵɵadvance(5);
|
|
50
|
+
i0.ɵɵtextInterpolate(ctx_r2.Config.ParentAgentName);
|
|
51
|
+
} }
|
|
52
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
54
|
+
i0.ɵɵelement(1, "i", 51);
|
|
55
|
+
i0.ɵɵtext(2, " Agent name is required ");
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} }
|
|
58
|
+
function CreateAgentPanelComponent_Conditional_2_For_24_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
i0.ɵɵelementStart(0, "option", 18);
|
|
60
|
+
i0.ɵɵtext(1);
|
|
61
|
+
i0.ɵɵelementEnd();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const type_r4 = ctx.$implicit;
|
|
64
|
+
i0.ɵɵproperty("value", type_r4.ID);
|
|
65
|
+
i0.ɵɵadvance();
|
|
66
|
+
i0.ɵɵtextInterpolate(type_r4.Name);
|
|
67
|
+
} }
|
|
68
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
70
|
+
i0.ɵɵelement(1, "i", 51);
|
|
71
|
+
i0.ɵɵtext(2, " Agent type is required ");
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
} }
|
|
74
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_68_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "section", 34)(1, "h3", 7);
|
|
76
|
+
i0.ɵɵelement(2, "i", 52);
|
|
77
|
+
i0.ɵɵtext(3, " Model Configuration ");
|
|
78
|
+
i0.ɵɵelementEnd();
|
|
79
|
+
i0.ɵɵelementStart(4, "div", 15)(5, "div", 9)(6, "label", 13);
|
|
80
|
+
i0.ɵɵtext(7, "Temperature");
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
i0.ɵɵelement(8, "input", 53);
|
|
83
|
+
i0.ɵɵelementStart(9, "div", 54);
|
|
84
|
+
i0.ɵɵtext(10, "Controls randomness (0-2)");
|
|
85
|
+
i0.ɵɵelementEnd()();
|
|
86
|
+
i0.ɵɵelementStart(11, "div", 9)(12, "label", 13);
|
|
87
|
+
i0.ɵɵtext(13, "Top P");
|
|
88
|
+
i0.ɵɵelementEnd();
|
|
89
|
+
i0.ɵɵelement(14, "input", 55);
|
|
90
|
+
i0.ɵɵelementStart(15, "div", 54);
|
|
91
|
+
i0.ɵɵtext(16, "Nucleus sampling (0-1)");
|
|
92
|
+
i0.ɵɵelementEnd()()();
|
|
93
|
+
i0.ɵɵelementStart(17, "div", 15)(18, "div", 9)(19, "label", 13);
|
|
94
|
+
i0.ɵɵtext(20, "Top K");
|
|
95
|
+
i0.ɵɵelementEnd();
|
|
96
|
+
i0.ɵɵelement(21, "input", 56);
|
|
97
|
+
i0.ɵɵelementStart(22, "div", 54);
|
|
98
|
+
i0.ɵɵtext(23, "Token sampling limit");
|
|
99
|
+
i0.ɵɵelementEnd()();
|
|
100
|
+
i0.ɵɵelementStart(24, "div", 9)(25, "label", 13);
|
|
101
|
+
i0.ɵɵtext(26, "Max Tokens");
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
i0.ɵɵelement(27, "input", 57);
|
|
104
|
+
i0.ɵɵelementStart(28, "div", 54);
|
|
105
|
+
i0.ɵɵtext(29, "Maximum response length");
|
|
106
|
+
i0.ɵɵelementEnd()()();
|
|
107
|
+
i0.ɵɵelementStart(30, "div", 15)(31, "div", 58)(32, "label", 59);
|
|
108
|
+
i0.ɵɵelement(33, "input", 60);
|
|
109
|
+
i0.ɵɵelementStart(34, "span");
|
|
110
|
+
i0.ɵɵtext(35, "Enable Caching");
|
|
111
|
+
i0.ɵɵelementEnd()()();
|
|
112
|
+
i0.ɵɵelementStart(36, "div", 9)(37, "label", 13);
|
|
113
|
+
i0.ɵɵtext(38, "Cache TTL (seconds)");
|
|
114
|
+
i0.ɵɵelementEnd();
|
|
115
|
+
i0.ɵɵelement(39, "input", 61);
|
|
116
|
+
i0.ɵɵelementEnd()()();
|
|
117
|
+
} if (rf & 2) {
|
|
118
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
119
|
+
} }
|
|
120
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
+
i0.ɵɵelementStart(0, "span", 66);
|
|
122
|
+
i0.ɵɵtext(1);
|
|
123
|
+
i0.ɵɵelementEnd();
|
|
124
|
+
} if (rf & 2) {
|
|
125
|
+
const prompt_r6 = i0.ɵɵnextContext().$implicit;
|
|
126
|
+
i0.ɵɵadvance();
|
|
127
|
+
i0.ɵɵtextInterpolate(prompt_r6.Description);
|
|
128
|
+
} }
|
|
129
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
130
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
131
|
+
i0.ɵɵelementStart(0, "div", 62)(1, "div", 63);
|
|
132
|
+
i0.ɵɵelement(2, "i", 36);
|
|
133
|
+
i0.ɵɵelementEnd();
|
|
134
|
+
i0.ɵɵelementStart(3, "div", 64)(4, "span", 65);
|
|
135
|
+
i0.ɵɵtext(5);
|
|
136
|
+
i0.ɵɵelementEnd();
|
|
137
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Conditional_6_Template, 2, 1, "span", 66);
|
|
138
|
+
i0.ɵɵelementEnd();
|
|
139
|
+
i0.ɵɵelementStart(7, "button", 67);
|
|
140
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_79_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)); });
|
|
141
|
+
i0.ɵɵelement(8, "i", 49);
|
|
142
|
+
i0.ɵɵelementEnd()();
|
|
143
|
+
} if (rf & 2) {
|
|
144
|
+
const prompt_r6 = ctx.$implicit;
|
|
145
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
146
|
+
i0.ɵɵadvance(5);
|
|
147
|
+
i0.ɵɵtextInterpolate(prompt_r6.Name);
|
|
148
|
+
i0.ɵɵadvance();
|
|
149
|
+
i0.ɵɵconditional(prompt_r6.Description ? 6 : -1);
|
|
150
|
+
} }
|
|
151
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_79_Template(rf, ctx) { if (rf & 1) {
|
|
152
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
153
|
+
i0.ɵɵrepeaterCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_79_For_2_Template, 9, 3, "div", 62, _forTrack0);
|
|
154
|
+
i0.ɵɵelementEnd();
|
|
155
|
+
} if (rf & 2) {
|
|
156
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
157
|
+
i0.ɵɵadvance();
|
|
158
|
+
i0.ɵɵrepeater(ctx_r2.LinkedPrompts);
|
|
159
|
+
} }
|
|
160
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_80_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
162
|
+
i0.ɵɵelement(1, "i", 36);
|
|
163
|
+
i0.ɵɵelementStart(2, "p");
|
|
164
|
+
i0.ɵɵtext(3, "No prompts added yet");
|
|
165
|
+
i0.ɵɵelementEnd()();
|
|
166
|
+
} }
|
|
167
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_For_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
168
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
169
|
+
i0.ɵɵtext(1);
|
|
170
|
+
i0.ɵɵelementEnd();
|
|
171
|
+
} if (rf & 2) {
|
|
172
|
+
const prompt_r9 = i0.ɵɵnextContext().$implicit;
|
|
173
|
+
i0.ɵɵadvance();
|
|
174
|
+
i0.ɵɵtextInterpolate(prompt_r9.Description);
|
|
175
|
+
} }
|
|
176
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
177
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
178
|
+
i0.ɵɵelementStart(0, "div", 74);
|
|
179
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_81_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)); });
|
|
180
|
+
i0.ɵɵelement(1, "i", 36);
|
|
181
|
+
i0.ɵɵelementStart(2, "div", 75)(3, "span", 76);
|
|
182
|
+
i0.ɵɵtext(4);
|
|
183
|
+
i0.ɵɵelementEnd();
|
|
184
|
+
i0.ɵɵconditionalCreate(5, CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_For_1_Conditional_5_Template, 2, 1, "span", 77);
|
|
185
|
+
i0.ɵɵelementEnd()();
|
|
186
|
+
} if (rf & 2) {
|
|
187
|
+
const prompt_r9 = ctx.$implicit;
|
|
188
|
+
i0.ɵɵadvance(4);
|
|
189
|
+
i0.ɵɵtextInterpolate(prompt_r9.Name);
|
|
190
|
+
i0.ɵɵadvance();
|
|
191
|
+
i0.ɵɵconditional(prompt_r9.Description ? 5 : -1);
|
|
192
|
+
} }
|
|
193
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
194
|
+
i0.ɵɵrepeaterCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_For_1_Template, 6, 2, "div", 73, _forTrack0);
|
|
195
|
+
} if (rf & 2) {
|
|
196
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
197
|
+
i0.ɵɵrepeater(ctx_r2.FilteredPrompts);
|
|
198
|
+
} }
|
|
199
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
200
|
+
i0.ɵɵelementStart(0, "div", 72);
|
|
201
|
+
i0.ɵɵelement(1, "i", 78);
|
|
202
|
+
i0.ɵɵelementStart(2, "span");
|
|
203
|
+
i0.ɵɵtext(3, "No prompts found");
|
|
204
|
+
i0.ɵɵelementEnd()();
|
|
205
|
+
} }
|
|
206
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_81_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
208
|
+
i0.ɵɵelementStart(0, "div", 42)(1, "div", 68)(2, "input", 69);
|
|
209
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_81_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); });
|
|
210
|
+
i0.ɵɵlistener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_81_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnPromptSearchChanged()); });
|
|
211
|
+
i0.ɵɵelementEnd();
|
|
212
|
+
i0.ɵɵelementStart(3, "button", 70);
|
|
213
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_81_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnClosePromptSelector()); });
|
|
214
|
+
i0.ɵɵelement(4, "i", 49);
|
|
215
|
+
i0.ɵɵelementEnd()();
|
|
216
|
+
i0.ɵɵelementStart(5, "div", 71);
|
|
217
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_6_Template, 2, 0)(7, CreateAgentPanelComponent_Conditional_2_Conditional_81_Conditional_7_Template, 4, 0, "div", 72);
|
|
218
|
+
i0.ɵɵelementEnd()();
|
|
219
|
+
} if (rf & 2) {
|
|
220
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
221
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
222
|
+
i0.ɵɵadvance(2);
|
|
223
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.PromptSearchQuery);
|
|
224
|
+
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(4, _c0));
|
|
225
|
+
i0.ɵɵadvance(4);
|
|
226
|
+
i0.ɵɵconditional(ctx_r2.FilteredPrompts.length > 0 ? 6 : 7);
|
|
227
|
+
} }
|
|
228
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
i0.ɵɵelementStart(0, "span", 66);
|
|
230
|
+
i0.ɵɵtext(1);
|
|
231
|
+
i0.ɵɵelementEnd();
|
|
232
|
+
} if (rf & 2) {
|
|
233
|
+
const action_r11 = i0.ɵɵnextContext().$implicit;
|
|
234
|
+
i0.ɵɵadvance();
|
|
235
|
+
i0.ɵɵtextInterpolate(action_r11.Description);
|
|
236
|
+
} }
|
|
237
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
239
|
+
i0.ɵɵelementStart(0, "div", 62)(1, "div", 79);
|
|
240
|
+
i0.ɵɵelement(2, "i", 43);
|
|
241
|
+
i0.ɵɵelementEnd();
|
|
242
|
+
i0.ɵɵelementStart(3, "div", 64)(4, "span", 65);
|
|
243
|
+
i0.ɵɵtext(5);
|
|
244
|
+
i0.ɵɵelementEnd();
|
|
245
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Conditional_6_Template, 2, 1, "span", 66);
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
i0.ɵɵelementStart(7, "button", 80);
|
|
248
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_92_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)); });
|
|
249
|
+
i0.ɵɵelement(8, "i", 49);
|
|
250
|
+
i0.ɵɵelementEnd()();
|
|
251
|
+
} if (rf & 2) {
|
|
252
|
+
const action_r11 = ctx.$implicit;
|
|
253
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
254
|
+
i0.ɵɵadvance(5);
|
|
255
|
+
i0.ɵɵtextInterpolate(action_r11.Name);
|
|
256
|
+
i0.ɵɵadvance();
|
|
257
|
+
i0.ɵɵconditional(action_r11.Description ? 6 : -1);
|
|
258
|
+
} }
|
|
259
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_92_Template(rf, ctx) { if (rf & 1) {
|
|
260
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
261
|
+
i0.ɵɵrepeaterCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_92_For_2_Template, 9, 3, "div", 62, _forTrack0);
|
|
262
|
+
i0.ɵɵelementEnd();
|
|
263
|
+
} if (rf & 2) {
|
|
264
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
265
|
+
i0.ɵɵadvance();
|
|
266
|
+
i0.ɵɵrepeater(ctx_r2.LinkedActions);
|
|
267
|
+
} }
|
|
268
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_93_Template(rf, ctx) { if (rf & 1) {
|
|
269
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
270
|
+
i0.ɵɵelement(1, "i", 43);
|
|
271
|
+
i0.ɵɵelementStart(2, "p");
|
|
272
|
+
i0.ɵɵtext(3, "No actions added yet");
|
|
273
|
+
i0.ɵɵelementEnd()();
|
|
274
|
+
} }
|
|
275
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_For_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
276
|
+
i0.ɵɵelementStart(0, "span", 77);
|
|
277
|
+
i0.ɵɵtext(1);
|
|
278
|
+
i0.ɵɵelementEnd();
|
|
279
|
+
} if (rf & 2) {
|
|
280
|
+
const action_r14 = i0.ɵɵnextContext().$implicit;
|
|
281
|
+
i0.ɵɵadvance();
|
|
282
|
+
i0.ɵɵtextInterpolate(action_r14.Description);
|
|
283
|
+
} }
|
|
284
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
285
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
286
|
+
i0.ɵɵelementStart(0, "div", 74);
|
|
287
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_94_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)); });
|
|
288
|
+
i0.ɵɵelement(1, "i", 43);
|
|
289
|
+
i0.ɵɵelementStart(2, "div", 75)(3, "span", 76);
|
|
290
|
+
i0.ɵɵtext(4);
|
|
291
|
+
i0.ɵɵelementEnd();
|
|
292
|
+
i0.ɵɵconditionalCreate(5, CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_For_1_Conditional_5_Template, 2, 1, "span", 77);
|
|
293
|
+
i0.ɵɵelementEnd()();
|
|
294
|
+
} if (rf & 2) {
|
|
295
|
+
const action_r14 = ctx.$implicit;
|
|
296
|
+
i0.ɵɵadvance(4);
|
|
297
|
+
i0.ɵɵtextInterpolate(action_r14.Name);
|
|
298
|
+
i0.ɵɵadvance();
|
|
299
|
+
i0.ɵɵconditional(action_r14.Description ? 5 : -1);
|
|
300
|
+
} }
|
|
301
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
302
|
+
i0.ɵɵrepeaterCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_For_1_Template, 6, 2, "div", 73, _forTrack0);
|
|
303
|
+
} if (rf & 2) {
|
|
304
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
305
|
+
i0.ɵɵrepeater(ctx_r2.FilteredActions);
|
|
306
|
+
} }
|
|
307
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
308
|
+
i0.ɵɵelementStart(0, "div", 72);
|
|
309
|
+
i0.ɵɵelement(1, "i", 78);
|
|
310
|
+
i0.ɵɵelementStart(2, "span");
|
|
311
|
+
i0.ɵɵtext(3, "No actions found");
|
|
312
|
+
i0.ɵɵelementEnd()();
|
|
313
|
+
} }
|
|
314
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_94_Template(rf, ctx) { if (rf & 1) {
|
|
315
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
316
|
+
i0.ɵɵelementStart(0, "div", 42)(1, "div", 68)(2, "input", 81);
|
|
317
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_94_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); });
|
|
318
|
+
i0.ɵɵlistener("ngModelChange", function CreateAgentPanelComponent_Conditional_2_Conditional_94_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnActionSearchChanged()); });
|
|
319
|
+
i0.ɵɵelementEnd();
|
|
320
|
+
i0.ɵɵelementStart(3, "button", 70);
|
|
321
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Conditional_94_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r12); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.OnCloseActionSelector()); });
|
|
322
|
+
i0.ɵɵelement(4, "i", 49);
|
|
323
|
+
i0.ɵɵelementEnd()();
|
|
324
|
+
i0.ɵɵelementStart(5, "div", 71);
|
|
325
|
+
i0.ɵɵconditionalCreate(6, CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_6_Template, 2, 0)(7, CreateAgentPanelComponent_Conditional_2_Conditional_94_Conditional_7_Template, 4, 0, "div", 72);
|
|
326
|
+
i0.ɵɵelementEnd()();
|
|
327
|
+
} if (rf & 2) {
|
|
328
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
329
|
+
i0.ɵɵproperty("@slideDown", undefined);
|
|
330
|
+
i0.ɵɵadvance(2);
|
|
331
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.ActionSearchQuery);
|
|
332
|
+
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(4, _c0));
|
|
333
|
+
i0.ɵɵadvance(4);
|
|
334
|
+
i0.ɵɵconditional(ctx_r2.FilteredActions.length > 0 ? 6 : 7);
|
|
335
|
+
} }
|
|
336
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_97_Template(rf, ctx) { if (rf & 1) {
|
|
337
|
+
i0.ɵɵelement(0, "span", 82);
|
|
338
|
+
i0.ɵɵelementStart(1, "span");
|
|
339
|
+
i0.ɵɵtext(2, "Creating...");
|
|
340
|
+
i0.ɵɵelementEnd();
|
|
341
|
+
} }
|
|
342
|
+
function CreateAgentPanelComponent_Conditional_2_Conditional_98_Template(rf, ctx) { if (rf & 1) {
|
|
343
|
+
i0.ɵɵelement(0, "i", 83);
|
|
344
|
+
i0.ɵɵelementStart(1, "span");
|
|
345
|
+
i0.ɵɵtext(2);
|
|
346
|
+
i0.ɵɵelementEnd();
|
|
347
|
+
} if (rf & 2) {
|
|
348
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
349
|
+
i0.ɵɵadvance(2);
|
|
350
|
+
i0.ɵɵtextInterpolate1("Create ", ctx_r2.IsSubAgent ? "Sub-Agent" : "Agent");
|
|
351
|
+
} }
|
|
352
|
+
function CreateAgentPanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
353
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
354
|
+
i0.ɵɵconditionalCreate(0, CreateAgentPanelComponent_Conditional_2_Conditional_0_Template, 6, 2, "div", 3);
|
|
355
|
+
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_2_Conditional_1_Template, 6, 2, "div", 4);
|
|
356
|
+
i0.ɵɵelementStart(2, "form", 5);
|
|
357
|
+
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()); });
|
|
358
|
+
i0.ɵɵelementStart(3, "section", 6)(4, "h3", 7);
|
|
359
|
+
i0.ɵɵelement(5, "i", 8);
|
|
360
|
+
i0.ɵɵtext(6, " Basic Information ");
|
|
361
|
+
i0.ɵɵelementEnd();
|
|
362
|
+
i0.ɵɵelementStart(7, "div", 9)(8, "label", 10);
|
|
363
|
+
i0.ɵɵtext(9, "Name");
|
|
364
|
+
i0.ɵɵelementEnd();
|
|
365
|
+
i0.ɵɵelement(10, "input", 11);
|
|
366
|
+
i0.ɵɵconditionalCreate(11, CreateAgentPanelComponent_Conditional_2_Conditional_11_Template, 3, 0, "div", 12);
|
|
367
|
+
i0.ɵɵelementEnd();
|
|
368
|
+
i0.ɵɵelementStart(12, "div", 9)(13, "label", 13);
|
|
369
|
+
i0.ɵɵtext(14, "Description");
|
|
370
|
+
i0.ɵɵelementEnd();
|
|
371
|
+
i0.ɵɵelement(15, "textarea", 14);
|
|
372
|
+
i0.ɵɵelementEnd();
|
|
373
|
+
i0.ɵɵelementStart(16, "div", 15)(17, "div", 9)(18, "label", 10);
|
|
374
|
+
i0.ɵɵtext(19, "Type");
|
|
375
|
+
i0.ɵɵelementEnd();
|
|
376
|
+
i0.ɵɵelementStart(20, "select", 16)(21, "option", 17);
|
|
377
|
+
i0.ɵɵtext(22, "Select agent type...");
|
|
378
|
+
i0.ɵɵelementEnd();
|
|
379
|
+
i0.ɵɵrepeaterCreate(23, CreateAgentPanelComponent_Conditional_2_For_24_Template, 2, 2, "option", 18, _forTrack0);
|
|
380
|
+
i0.ɵɵelementEnd();
|
|
381
|
+
i0.ɵɵconditionalCreate(25, CreateAgentPanelComponent_Conditional_2_Conditional_25_Template, 3, 0, "div", 12);
|
|
382
|
+
i0.ɵɵelementEnd();
|
|
383
|
+
i0.ɵɵelementStart(26, "div", 9)(27, "label", 13);
|
|
384
|
+
i0.ɵɵtext(28, "Status");
|
|
385
|
+
i0.ɵɵelementEnd();
|
|
386
|
+
i0.ɵɵelementStart(29, "select", 19)(30, "option", 20);
|
|
387
|
+
i0.ɵɵtext(31, "Pending");
|
|
388
|
+
i0.ɵɵelementEnd();
|
|
389
|
+
i0.ɵɵelementStart(32, "option", 21);
|
|
390
|
+
i0.ɵɵtext(33, "Active");
|
|
391
|
+
i0.ɵɵelementEnd();
|
|
392
|
+
i0.ɵɵelementStart(34, "option", 22);
|
|
393
|
+
i0.ɵɵtext(35, "Disabled");
|
|
394
|
+
i0.ɵɵelementEnd()()()();
|
|
395
|
+
i0.ɵɵelementStart(36, "div", 15)(37, "div", 9)(38, "label", 13);
|
|
396
|
+
i0.ɵɵtext(39, "Execution Mode");
|
|
397
|
+
i0.ɵɵelementEnd();
|
|
398
|
+
i0.ɵɵelementStart(40, "select", 23)(41, "option", 24);
|
|
399
|
+
i0.ɵɵtext(42, "Sequential");
|
|
400
|
+
i0.ɵɵelementEnd();
|
|
401
|
+
i0.ɵɵelementStart(43, "option", 25);
|
|
402
|
+
i0.ɵɵtext(44, "Parallel");
|
|
403
|
+
i0.ɵɵelementEnd()()();
|
|
404
|
+
i0.ɵɵelementStart(45, "div", 9)(46, "label", 13);
|
|
405
|
+
i0.ɵɵtext(47, "Model Selection Mode");
|
|
406
|
+
i0.ɵɵelementEnd();
|
|
407
|
+
i0.ɵɵelementStart(48, "select", 26)(49, "option", 27);
|
|
408
|
+
i0.ɵɵtext(50, "Agent Type");
|
|
409
|
+
i0.ɵɵelementEnd();
|
|
410
|
+
i0.ɵɵelementStart(51, "option", 28);
|
|
411
|
+
i0.ɵɵtext(52, "Agent");
|
|
412
|
+
i0.ɵɵelementEnd()()()()();
|
|
413
|
+
i0.ɵɵelementStart(53, "section", 6)(54, "h3", 7);
|
|
414
|
+
i0.ɵɵelement(55, "i", 29);
|
|
415
|
+
i0.ɵɵtext(56, " Purpose & Messages ");
|
|
416
|
+
i0.ɵɵelementEnd();
|
|
417
|
+
i0.ɵɵelementStart(57, "div", 9)(58, "label", 13);
|
|
418
|
+
i0.ɵɵtext(59, "Purpose");
|
|
419
|
+
i0.ɵɵelementEnd();
|
|
420
|
+
i0.ɵɵelement(60, "input", 30);
|
|
421
|
+
i0.ɵɵelementEnd();
|
|
422
|
+
i0.ɵɵelementStart(61, "div", 9)(62, "label", 13);
|
|
423
|
+
i0.ɵɵtext(63, "User Message");
|
|
424
|
+
i0.ɵɵelementEnd();
|
|
425
|
+
i0.ɵɵelement(64, "textarea", 31);
|
|
426
|
+
i0.ɵɵelementEnd()();
|
|
427
|
+
i0.ɵɵelementStart(65, "button", 32);
|
|
428
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_65_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.ToggleAdvancedConfig()); });
|
|
429
|
+
i0.ɵɵelement(66, "i", 33);
|
|
430
|
+
i0.ɵɵtext(67);
|
|
431
|
+
i0.ɵɵelementEnd();
|
|
432
|
+
i0.ɵɵconditionalCreate(68, CreateAgentPanelComponent_Conditional_2_Conditional_68_Template, 40, 1, "section", 34);
|
|
433
|
+
i0.ɵɵelementStart(69, "section", 6)(70, "div", 35)(71, "h3", 7);
|
|
434
|
+
i0.ɵɵelement(72, "i", 36);
|
|
435
|
+
i0.ɵɵtext(73, " Prompts ");
|
|
436
|
+
i0.ɵɵelementStart(74, "span", 37);
|
|
437
|
+
i0.ɵɵtext(75);
|
|
438
|
+
i0.ɵɵelementEnd()();
|
|
439
|
+
i0.ɵɵelementStart(76, "button", 38);
|
|
440
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_76_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnOpenPromptSelector()); });
|
|
441
|
+
i0.ɵɵelement(77, "i", 39);
|
|
442
|
+
i0.ɵɵtext(78, " Add Prompt ");
|
|
443
|
+
i0.ɵɵelementEnd()();
|
|
444
|
+
i0.ɵɵconditionalCreate(79, CreateAgentPanelComponent_Conditional_2_Conditional_79_Template, 3, 0, "div", 40)(80, CreateAgentPanelComponent_Conditional_2_Conditional_80_Template, 4, 0, "div", 41);
|
|
445
|
+
i0.ɵɵconditionalCreate(81, CreateAgentPanelComponent_Conditional_2_Conditional_81_Template, 8, 5, "div", 42);
|
|
446
|
+
i0.ɵɵelementEnd();
|
|
447
|
+
i0.ɵɵelementStart(82, "section", 6)(83, "div", 35)(84, "h3", 7);
|
|
448
|
+
i0.ɵɵelement(85, "i", 43);
|
|
449
|
+
i0.ɵɵtext(86, " Actions ");
|
|
450
|
+
i0.ɵɵelementStart(87, "span", 37);
|
|
451
|
+
i0.ɵɵtext(88);
|
|
452
|
+
i0.ɵɵelementEnd()();
|
|
453
|
+
i0.ɵɵelementStart(89, "button", 38);
|
|
454
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_89_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnOpenActionSelector()); });
|
|
455
|
+
i0.ɵɵelement(90, "i", 39);
|
|
456
|
+
i0.ɵɵtext(91, " Add Action ");
|
|
457
|
+
i0.ɵɵelementEnd()();
|
|
458
|
+
i0.ɵɵconditionalCreate(92, CreateAgentPanelComponent_Conditional_2_Conditional_92_Template, 3, 0, "div", 40)(93, CreateAgentPanelComponent_Conditional_2_Conditional_93_Template, 4, 0, "div", 41);
|
|
459
|
+
i0.ɵɵconditionalCreate(94, CreateAgentPanelComponent_Conditional_2_Conditional_94_Template, 8, 5, "div", 42);
|
|
460
|
+
i0.ɵɵelementEnd();
|
|
461
|
+
i0.ɵɵelementStart(95, "div", 44)(96, "button", 45);
|
|
462
|
+
i0.ɵɵconditionalCreate(97, CreateAgentPanelComponent_Conditional_2_Conditional_97_Template, 3, 0)(98, CreateAgentPanelComponent_Conditional_2_Conditional_98_Template, 3, 1);
|
|
463
|
+
i0.ɵɵelementEnd();
|
|
464
|
+
i0.ɵɵelementStart(99, "button", 46);
|
|
465
|
+
i0.ɵɵlistener("click", function CreateAgentPanelComponent_Conditional_2_Template_button_click_99_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnCancel()); });
|
|
466
|
+
i0.ɵɵtext(100, " Cancel ");
|
|
467
|
+
i0.ɵɵelementEnd()()();
|
|
468
|
+
} if (rf & 2) {
|
|
469
|
+
let tmp_4_0;
|
|
470
|
+
let tmp_5_0;
|
|
471
|
+
let tmp_6_0;
|
|
472
|
+
let tmp_8_0;
|
|
473
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
474
|
+
i0.ɵɵconditional(ctx_r2.ErrorMessage ? 0 : -1);
|
|
475
|
+
i0.ɵɵadvance();
|
|
476
|
+
i0.ɵɵconditional(ctx_r2.IsSubAgent && ctx_r2.Config.ParentAgentName ? 1 : -1);
|
|
477
|
+
i0.ɵɵadvance();
|
|
478
|
+
i0.ɵɵproperty("formGroup", ctx_r2.Form);
|
|
479
|
+
i0.ɵɵadvance(8);
|
|
480
|
+
i0.ɵɵclassProp("cap-input-error", ((tmp_4_0 = ctx_r2.Form.get("name")) == null ? null : tmp_4_0.invalid) && ((tmp_4_0 = ctx_r2.Form.get("name")) == null ? null : tmp_4_0.touched));
|
|
481
|
+
i0.ɵɵadvance();
|
|
482
|
+
i0.ɵɵconditional(((tmp_5_0 = ctx_r2.Form.get("name")) == null ? null : tmp_5_0.invalid) && ((tmp_5_0 = ctx_r2.Form.get("name")) == null ? null : tmp_5_0.touched) ? 11 : -1);
|
|
483
|
+
i0.ɵɵadvance(9);
|
|
484
|
+
i0.ɵɵclassProp("cap-input-error", ((tmp_6_0 = ctx_r2.Form.get("typeId")) == null ? null : tmp_6_0.invalid) && ((tmp_6_0 = ctx_r2.Form.get("typeId")) == null ? null : tmp_6_0.touched));
|
|
485
|
+
i0.ɵɵadvance(3);
|
|
486
|
+
i0.ɵɵrepeater(ctx_r2.AgentTypes);
|
|
487
|
+
i0.ɵɵadvance(2);
|
|
488
|
+
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);
|
|
489
|
+
i0.ɵɵadvance(41);
|
|
490
|
+
i0.ɵɵclassProp("fa-chevron-down", !ctx_r2.ShowAdvancedConfig)("fa-chevron-up", ctx_r2.ShowAdvancedConfig);
|
|
491
|
+
i0.ɵɵadvance();
|
|
492
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.ShowAdvancedConfig ? "Hide" : "Show", " Advanced Configuration ");
|
|
493
|
+
i0.ɵɵadvance();
|
|
494
|
+
i0.ɵɵconditional(ctx_r2.ShowAdvancedConfig ? 68 : -1);
|
|
495
|
+
i0.ɵɵadvance(7);
|
|
496
|
+
i0.ɵɵtextInterpolate(ctx_r2.LinkedPromptCount);
|
|
497
|
+
i0.ɵɵadvance(4);
|
|
498
|
+
i0.ɵɵconditional(ctx_r2.LinkedPrompts.length > 0 ? 79 : 80);
|
|
499
|
+
i0.ɵɵadvance(2);
|
|
500
|
+
i0.ɵɵconditional(ctx_r2.ShowPromptSelector ? 81 : -1);
|
|
501
|
+
i0.ɵɵadvance(7);
|
|
502
|
+
i0.ɵɵtextInterpolate(ctx_r2.LinkedActionCount);
|
|
503
|
+
i0.ɵɵadvance(4);
|
|
504
|
+
i0.ɵɵconditional(ctx_r2.LinkedActions.length > 0 ? 92 : 93);
|
|
505
|
+
i0.ɵɵadvance(2);
|
|
506
|
+
i0.ɵɵconditional(ctx_r2.ShowActionSelector ? 94 : -1);
|
|
507
|
+
i0.ɵɵadvance(2);
|
|
508
|
+
i0.ɵɵproperty("disabled", ctx_r2.Form.invalid || ctx_r2.IsSubmitting);
|
|
509
|
+
i0.ɵɵadvance();
|
|
510
|
+
i0.ɵɵconditional(ctx_r2.IsSubmitting ? 97 : 98);
|
|
511
|
+
i0.ɵɵadvance(2);
|
|
512
|
+
i0.ɵɵproperty("disabled", ctx_r2.IsSubmitting);
|
|
513
|
+
} }
|
|
514
|
+
/**
|
|
515
|
+
* Base panel component for creating AI Agents.
|
|
516
|
+
* This component contains all the logic and UI for agent creation.
|
|
517
|
+
* Use CreateAgentDialogComponent or CreateAgentSlideInComponent as wrappers.
|
|
518
|
+
*
|
|
519
|
+
* Features:
|
|
520
|
+
* - Creates both top-level agents and sub-agents
|
|
521
|
+
* - Agent type selection with loaded types from AIEngineBase
|
|
522
|
+
* - Basic info: Name, Description, Status, Execution Mode
|
|
523
|
+
* - Advanced model configuration (optional)
|
|
524
|
+
* - Linked prompts and actions management
|
|
525
|
+
* - Returns unsaved entities for parent to handle atomically
|
|
526
|
+
*
|
|
527
|
+
* Usage:
|
|
528
|
+
* ```html
|
|
529
|
+
* <mj-create-agent-panel
|
|
530
|
+
* [Config]="{ Title: 'Create Agent' }"
|
|
531
|
+
* (Created)="onAgentCreated($event)"
|
|
532
|
+
* (Cancelled)="onCancel()">
|
|
533
|
+
* </mj-create-agent-panel>
|
|
534
|
+
* ```
|
|
535
|
+
*/
|
|
536
|
+
export class CreateAgentPanelComponent {
|
|
537
|
+
fb;
|
|
538
|
+
cdr;
|
|
539
|
+
// =========================================================================
|
|
540
|
+
// Inputs & Outputs
|
|
541
|
+
// =========================================================================
|
|
542
|
+
_config = {};
|
|
543
|
+
set Config(value) {
|
|
544
|
+
this._config = value || {};
|
|
545
|
+
this.applyConfig();
|
|
546
|
+
}
|
|
547
|
+
get Config() {
|
|
548
|
+
return this._config;
|
|
549
|
+
}
|
|
550
|
+
/** Emitted when agent is successfully created (returns unsaved entities) */
|
|
551
|
+
Created = new EventEmitter();
|
|
552
|
+
/** Emitted when user cancels the creation */
|
|
553
|
+
Cancelled = new EventEmitter();
|
|
554
|
+
// =========================================================================
|
|
555
|
+
// Public State
|
|
556
|
+
// =========================================================================
|
|
557
|
+
Form;
|
|
558
|
+
IsLoading = true;
|
|
559
|
+
IsSubmitting = false;
|
|
560
|
+
AgentTypes = [];
|
|
561
|
+
LinkedPrompts = [];
|
|
562
|
+
LinkedActions = [];
|
|
563
|
+
ShowAdvancedConfig = false;
|
|
564
|
+
ErrorMessage = null;
|
|
565
|
+
// =========================================================================
|
|
566
|
+
// Private State
|
|
567
|
+
// =========================================================================
|
|
568
|
+
destroy$ = new Subject();
|
|
569
|
+
agentEntity = null;
|
|
570
|
+
agentPromptLinks = [];
|
|
571
|
+
agentActionLinks = [];
|
|
572
|
+
availablePrompts = [];
|
|
573
|
+
availableActions = [];
|
|
574
|
+
constructor(fb, cdr) {
|
|
575
|
+
this.fb = fb;
|
|
576
|
+
this.cdr = cdr;
|
|
577
|
+
}
|
|
578
|
+
// =========================================================================
|
|
579
|
+
// Lifecycle
|
|
580
|
+
// =========================================================================
|
|
581
|
+
ngOnInit() {
|
|
582
|
+
this.initializeForm();
|
|
583
|
+
this.loadData();
|
|
584
|
+
}
|
|
585
|
+
ngOnDestroy() {
|
|
586
|
+
this.destroy$.next();
|
|
587
|
+
this.destroy$.complete();
|
|
588
|
+
}
|
|
589
|
+
// =========================================================================
|
|
590
|
+
// Initialization
|
|
591
|
+
// =========================================================================
|
|
592
|
+
initializeForm() {
|
|
593
|
+
this.Form = this.fb.group({
|
|
594
|
+
name: ['', [Validators.required, Validators.maxLength(255)]],
|
|
595
|
+
description: [''],
|
|
596
|
+
typeId: ['', Validators.required],
|
|
597
|
+
status: ['Pending'],
|
|
598
|
+
executionMode: ['Sequential'],
|
|
599
|
+
purpose: [''],
|
|
600
|
+
userMessage: [''],
|
|
601
|
+
modelSelectionMode: ['Agent Type'],
|
|
602
|
+
temperature: [0.1, [Validators.min(0), Validators.max(2)]],
|
|
603
|
+
topP: [0.1, [Validators.min(0), Validators.max(1)]],
|
|
604
|
+
topK: [40, [Validators.min(1), Validators.max(100)]],
|
|
605
|
+
maxTokens: [4000, [Validators.min(1), Validators.max(32000)]],
|
|
606
|
+
enableCaching: [false],
|
|
607
|
+
cacheTTL: [3600, [Validators.min(60), Validators.max(86400)]]
|
|
608
|
+
});
|
|
609
|
+
// Watch for form changes
|
|
610
|
+
this.Form.valueChanges
|
|
611
|
+
.pipe(takeUntil(this.destroy$))
|
|
612
|
+
.subscribe(() => this.syncEntityFromForm());
|
|
613
|
+
}
|
|
614
|
+
applyConfig() {
|
|
615
|
+
if (!this.Form)
|
|
616
|
+
return;
|
|
617
|
+
if (this._config.InitialName) {
|
|
618
|
+
this.Form.patchValue({ name: this._config.InitialName });
|
|
619
|
+
}
|
|
620
|
+
if (this._config.InitialTypeId) {
|
|
621
|
+
this.Form.patchValue({ typeId: this._config.InitialTypeId });
|
|
622
|
+
}
|
|
623
|
+
if (this._config.ShowAdvancedConfig !== undefined) {
|
|
624
|
+
this.ShowAdvancedConfig = this._config.ShowAdvancedConfig;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
async loadData() {
|
|
628
|
+
this.IsLoading = true;
|
|
629
|
+
this.ErrorMessage = null;
|
|
630
|
+
this.cdr.markForCheck();
|
|
631
|
+
try {
|
|
632
|
+
// Load agent types from AIEngineBase
|
|
633
|
+
const engine = AIEngineBase.Instance;
|
|
634
|
+
await engine.Config(false);
|
|
635
|
+
this.AgentTypes = engine.AgentTypes;
|
|
636
|
+
// Load available prompts and actions in parallel
|
|
637
|
+
const rv = new RunView();
|
|
638
|
+
const [promptsResult, actionsResult] = await rv.RunViews([
|
|
639
|
+
{
|
|
640
|
+
EntityName: 'AI Prompts',
|
|
641
|
+
ExtraFilter: `Status = 'Active'`,
|
|
642
|
+
OrderBy: 'Name ASC',
|
|
643
|
+
MaxRows: 1000,
|
|
644
|
+
ResultType: 'entity_object'
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
EntityName: 'Actions',
|
|
648
|
+
ExtraFilter: `Status = 'Active'`,
|
|
649
|
+
OrderBy: 'Name ASC',
|
|
650
|
+
MaxRows: 1000,
|
|
651
|
+
ResultType: 'entity_object'
|
|
652
|
+
}
|
|
653
|
+
]);
|
|
654
|
+
if (promptsResult.Success && promptsResult.Results) {
|
|
655
|
+
this.availablePrompts = promptsResult.Results;
|
|
656
|
+
}
|
|
657
|
+
if (actionsResult.Success && actionsResult.Results) {
|
|
658
|
+
this.availableActions = actionsResult.Results;
|
|
659
|
+
}
|
|
660
|
+
// Set default type if not specified and types are available
|
|
661
|
+
if (!this._config.InitialTypeId && this.AgentTypes.length > 0) {
|
|
662
|
+
this.Form.patchValue({ typeId: this.AgentTypes[0].ID });
|
|
663
|
+
}
|
|
664
|
+
// Create the agent entity
|
|
665
|
+
await this.createAgentEntity();
|
|
666
|
+
}
|
|
667
|
+
catch (error) {
|
|
668
|
+
console.error('Error loading agent creation data:', error);
|
|
669
|
+
this.ErrorMessage = 'Failed to load agent creation data. Please try again.';
|
|
670
|
+
}
|
|
671
|
+
finally {
|
|
672
|
+
this.IsLoading = false;
|
|
673
|
+
this.cdr.markForCheck();
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
async createAgentEntity() {
|
|
677
|
+
const md = new Metadata();
|
|
678
|
+
this.agentEntity = await md.GetEntityObject('AI Agents');
|
|
679
|
+
this.agentEntity.NewRecord();
|
|
680
|
+
// Set defaults
|
|
681
|
+
this.agentEntity.Status = 'Pending';
|
|
682
|
+
this.agentEntity.ExecutionMode = 'Sequential';
|
|
683
|
+
this.agentEntity.ExposeAsAction = false;
|
|
684
|
+
this.agentEntity.ModelSelectionMode = 'Agent Type';
|
|
685
|
+
// Set parent if creating sub-agent
|
|
686
|
+
if (this._config.ParentAgentId) {
|
|
687
|
+
this.agentEntity.ParentID = this._config.ParentAgentId;
|
|
688
|
+
}
|
|
689
|
+
// Set model config defaults
|
|
690
|
+
this.agentEntity.Set('Temperature', 0.1);
|
|
691
|
+
this.agentEntity.Set('TopP', 0.1);
|
|
692
|
+
this.agentEntity.Set('TopK', 40);
|
|
693
|
+
this.agentEntity.Set('MaxTokensPerRun', 4000);
|
|
694
|
+
this.agentEntity.Set('EnableCaching', false);
|
|
695
|
+
this.agentEntity.Set('CacheTTLSeconds', 3600);
|
|
696
|
+
}
|
|
697
|
+
syncEntityFromForm() {
|
|
698
|
+
if (!this.agentEntity)
|
|
699
|
+
return;
|
|
700
|
+
const v = this.Form.value;
|
|
701
|
+
this.agentEntity.Name = v.name;
|
|
702
|
+
this.agentEntity.Description = v.description || '';
|
|
703
|
+
this.agentEntity.TypeID = v.typeId;
|
|
704
|
+
this.agentEntity.Status = v.status;
|
|
705
|
+
this.agentEntity.ExecutionMode = v.executionMode;
|
|
706
|
+
this.agentEntity.Set('Purpose', v.purpose || '');
|
|
707
|
+
this.agentEntity.Set('UserMessage', v.userMessage || '');
|
|
708
|
+
this.agentEntity.ModelSelectionMode = v.modelSelectionMode;
|
|
709
|
+
this.agentEntity.Set('Temperature', v.temperature);
|
|
710
|
+
this.agentEntity.Set('TopP', v.topP);
|
|
711
|
+
this.agentEntity.Set('TopK', v.topK);
|
|
712
|
+
this.agentEntity.Set('MaxTokensPerRun', v.maxTokens);
|
|
713
|
+
this.agentEntity.Set('EnableCaching', v.enableCaching);
|
|
714
|
+
this.agentEntity.Set('CacheTTLSeconds', v.cacheTTL);
|
|
715
|
+
}
|
|
716
|
+
// =========================================================================
|
|
717
|
+
// Public Methods
|
|
718
|
+
// =========================================================================
|
|
719
|
+
get IsSubAgent() {
|
|
720
|
+
return !!this._config.ParentAgentId;
|
|
721
|
+
}
|
|
722
|
+
get Title() {
|
|
723
|
+
if (this._config.Title)
|
|
724
|
+
return this._config.Title;
|
|
725
|
+
return this.IsSubAgent ? 'Create Sub-Agent' : 'Create New Agent';
|
|
726
|
+
}
|
|
727
|
+
get LinkedPromptCount() {
|
|
728
|
+
return this.LinkedPrompts.length;
|
|
729
|
+
}
|
|
730
|
+
get LinkedActionCount() {
|
|
731
|
+
return this.LinkedActions.length;
|
|
732
|
+
}
|
|
733
|
+
get AvailablePrompts() {
|
|
734
|
+
return this.availablePrompts;
|
|
735
|
+
}
|
|
736
|
+
get AvailableActions() {
|
|
737
|
+
return this.availableActions;
|
|
738
|
+
}
|
|
739
|
+
ToggleAdvancedConfig() {
|
|
740
|
+
this.ShowAdvancedConfig = !this.ShowAdvancedConfig;
|
|
741
|
+
this.cdr.markForCheck();
|
|
742
|
+
}
|
|
743
|
+
TrackById(_index, item) {
|
|
744
|
+
return item.ID;
|
|
745
|
+
}
|
|
746
|
+
// =========================================================================
|
|
747
|
+
// Prompt Management
|
|
748
|
+
// =========================================================================
|
|
749
|
+
ShowPromptSelector = false;
|
|
750
|
+
PromptSearchQuery = '';
|
|
751
|
+
FilteredPrompts = [];
|
|
752
|
+
OnOpenPromptSelector() {
|
|
753
|
+
this.ShowPromptSelector = true;
|
|
754
|
+
this.PromptSearchQuery = '';
|
|
755
|
+
this.updateFilteredPrompts();
|
|
756
|
+
this.cdr.markForCheck();
|
|
757
|
+
}
|
|
758
|
+
OnClosePromptSelector() {
|
|
759
|
+
this.ShowPromptSelector = false;
|
|
760
|
+
this.PromptSearchQuery = '';
|
|
761
|
+
this.cdr.markForCheck();
|
|
762
|
+
}
|
|
763
|
+
OnPromptSearchChanged() {
|
|
764
|
+
this.updateFilteredPrompts();
|
|
765
|
+
this.cdr.markForCheck();
|
|
766
|
+
}
|
|
767
|
+
updateFilteredPrompts() {
|
|
768
|
+
const query = this.PromptSearchQuery.toLowerCase().trim();
|
|
769
|
+
const linkedIds = new Set(this.LinkedPrompts.map(p => p.ID));
|
|
770
|
+
// Filter out already linked prompts
|
|
771
|
+
let available = this.availablePrompts.filter(p => !linkedIds.has(p.ID));
|
|
772
|
+
// Apply search filter
|
|
773
|
+
if (query) {
|
|
774
|
+
available = available.filter(p => p.Name.toLowerCase().includes(query) ||
|
|
775
|
+
(p.Description && p.Description.toLowerCase().includes(query)));
|
|
776
|
+
}
|
|
777
|
+
// Limit results
|
|
778
|
+
this.FilteredPrompts = available.slice(0, 20);
|
|
779
|
+
}
|
|
780
|
+
async OnSelectPrompt(prompt) {
|
|
781
|
+
if (!this.agentEntity)
|
|
782
|
+
return;
|
|
783
|
+
// Add to linked prompts
|
|
784
|
+
this.LinkedPrompts.push(prompt);
|
|
785
|
+
// Create link entity
|
|
786
|
+
const md = new Metadata();
|
|
787
|
+
const agentPrompt = await md.GetEntityObject('MJ: AI Agent Prompts');
|
|
788
|
+
agentPrompt.NewRecord();
|
|
789
|
+
agentPrompt.AgentID = this.agentEntity.ID;
|
|
790
|
+
agentPrompt.PromptID = prompt.ID;
|
|
791
|
+
agentPrompt.Status = 'Active';
|
|
792
|
+
agentPrompt.ExecutionOrder = this.agentPromptLinks.length + 1;
|
|
793
|
+
this.agentPromptLinks.push(agentPrompt);
|
|
794
|
+
this.OnClosePromptSelector();
|
|
795
|
+
}
|
|
796
|
+
RemovePrompt(prompt) {
|
|
797
|
+
const index = this.LinkedPrompts.findIndex(p => p.ID === prompt.ID);
|
|
798
|
+
if (index >= 0) {
|
|
799
|
+
this.LinkedPrompts.splice(index, 1);
|
|
800
|
+
}
|
|
801
|
+
const linkIndex = this.agentPromptLinks.findIndex(ap => ap.PromptID === prompt.ID);
|
|
802
|
+
if (linkIndex >= 0) {
|
|
803
|
+
this.agentPromptLinks.splice(linkIndex, 1);
|
|
804
|
+
}
|
|
805
|
+
this.cdr.markForCheck();
|
|
806
|
+
}
|
|
807
|
+
// =========================================================================
|
|
808
|
+
// Action Management
|
|
809
|
+
// =========================================================================
|
|
810
|
+
ShowActionSelector = false;
|
|
811
|
+
ActionSearchQuery = '';
|
|
812
|
+
FilteredActions = [];
|
|
813
|
+
OnOpenActionSelector() {
|
|
814
|
+
this.ShowActionSelector = true;
|
|
815
|
+
this.ActionSearchQuery = '';
|
|
816
|
+
this.updateFilteredActions();
|
|
817
|
+
this.cdr.markForCheck();
|
|
818
|
+
}
|
|
819
|
+
OnCloseActionSelector() {
|
|
820
|
+
this.ShowActionSelector = false;
|
|
821
|
+
this.ActionSearchQuery = '';
|
|
822
|
+
this.cdr.markForCheck();
|
|
823
|
+
}
|
|
824
|
+
OnActionSearchChanged() {
|
|
825
|
+
this.updateFilteredActions();
|
|
826
|
+
this.cdr.markForCheck();
|
|
827
|
+
}
|
|
828
|
+
updateFilteredActions() {
|
|
829
|
+
const query = this.ActionSearchQuery.toLowerCase().trim();
|
|
830
|
+
const linkedIds = new Set(this.LinkedActions.map(a => a.ID));
|
|
831
|
+
// Filter out already linked actions
|
|
832
|
+
let available = this.availableActions.filter(a => !linkedIds.has(a.ID));
|
|
833
|
+
// Apply search filter
|
|
834
|
+
if (query) {
|
|
835
|
+
available = available.filter(a => a.Name.toLowerCase().includes(query) ||
|
|
836
|
+
(a.Description && a.Description.toLowerCase().includes(query)));
|
|
837
|
+
}
|
|
838
|
+
// Limit results
|
|
839
|
+
this.FilteredActions = available.slice(0, 20);
|
|
840
|
+
}
|
|
841
|
+
async OnSelectAction(action) {
|
|
842
|
+
if (!this.agentEntity)
|
|
843
|
+
return;
|
|
844
|
+
// Add to linked actions
|
|
845
|
+
this.LinkedActions.push(action);
|
|
846
|
+
// Create link entity
|
|
847
|
+
const md = new Metadata();
|
|
848
|
+
const agentAction = await md.GetEntityObject('AI Agent Actions');
|
|
849
|
+
agentAction.NewRecord();
|
|
850
|
+
agentAction.AgentID = this.agentEntity.ID;
|
|
851
|
+
agentAction.ActionID = action.ID;
|
|
852
|
+
agentAction.Status = 'Active';
|
|
853
|
+
this.agentActionLinks.push(agentAction);
|
|
854
|
+
this.OnCloseActionSelector();
|
|
855
|
+
}
|
|
856
|
+
RemoveAction(action) {
|
|
857
|
+
const index = this.LinkedActions.findIndex(a => a.ID === action.ID);
|
|
858
|
+
if (index >= 0) {
|
|
859
|
+
this.LinkedActions.splice(index, 1);
|
|
860
|
+
}
|
|
861
|
+
const linkIndex = this.agentActionLinks.findIndex(aa => aa.ActionID === action.ID);
|
|
862
|
+
if (linkIndex >= 0) {
|
|
863
|
+
this.agentActionLinks.splice(linkIndex, 1);
|
|
864
|
+
}
|
|
865
|
+
this.cdr.markForCheck();
|
|
866
|
+
}
|
|
867
|
+
// =========================================================================
|
|
868
|
+
// Form Actions
|
|
869
|
+
// =========================================================================
|
|
870
|
+
OnSubmit() {
|
|
871
|
+
if (this.Form.invalid || !this.agentEntity || this.IsSubmitting) {
|
|
872
|
+
// Mark all fields as touched to show validation errors
|
|
873
|
+
this.Form.markAllAsTouched();
|
|
874
|
+
this.cdr.markForCheck();
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
this.IsSubmitting = true;
|
|
878
|
+
this.cdr.markForCheck();
|
|
879
|
+
try {
|
|
880
|
+
// Sync final form values to entity
|
|
881
|
+
this.syncEntityFromForm();
|
|
882
|
+
// Emit result with unsaved entities
|
|
883
|
+
const result = {
|
|
884
|
+
Agent: this.agentEntity,
|
|
885
|
+
AgentPrompts: this.agentPromptLinks.length > 0 ? this.agentPromptLinks : undefined,
|
|
886
|
+
AgentActions: this.agentActionLinks.length > 0 ? this.agentActionLinks : undefined
|
|
887
|
+
};
|
|
888
|
+
this.Created.emit(result);
|
|
889
|
+
}
|
|
890
|
+
catch (error) {
|
|
891
|
+
console.error('Error creating agent:', error);
|
|
892
|
+
this.ErrorMessage = 'Failed to create agent. Please try again.';
|
|
893
|
+
}
|
|
894
|
+
finally {
|
|
895
|
+
this.IsSubmitting = false;
|
|
896
|
+
this.cdr.markForCheck();
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
OnCancel() {
|
|
900
|
+
this.Cancelled.emit();
|
|
901
|
+
}
|
|
902
|
+
static ɵfac = function CreateAgentPanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CreateAgentPanelComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
903
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreateAgentPanelComponent, selectors: [["mj-create-agent-panel"]], inputs: { Config: "Config" }, outputs: { Created: "Created", Cancelled: "Cancelled" }, standalone: false, decls: 3, vars: 1, consts: [[1, "cap-container"], [1, "cap-loading"], [1, "cap-spinner"], [1, "cap-error"], [1, "cap-parent-info"], [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"], ["type", "button", 1, "cap-advanced-toggle", 3, "click"], [1, "fa-solid"], [1, "cap-section", "cap-section-advanced"], [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"], [1, "cap-empty-state"], [1, "cap-selector"], [1, "fa-solid", "fa-bolt"], [1, "cap-actions"], ["type", "submit", 1, "cap-btn", "cap-btn-primary", 3, "disabled"], ["type", "button", 1, "cap-btn", "cap-btn-secondary", 3, "click", "disabled"], [1, "fa-solid", "fa-exclamation-triangle"], [1, "cap-error-dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "fa-solid", "fa-link"], [1, "fa-solid", "fa-exclamation-circle"], [1, "fa-solid", "fa-cogs"], ["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, "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"], [1, "cap-selector-empty"], [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, "fa-solid", "fa-search"], [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"], [1, "cap-btn-spinner"], [1, "fa-solid", "fa-plus-circle"]], template: function CreateAgentPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
904
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
905
|
+
i0.ɵɵconditionalCreate(1, CreateAgentPanelComponent_Conditional_1_Template, 4, 1, "div", 1)(2, CreateAgentPanelComponent_Conditional_2_Template, 101, 24);
|
|
906
|
+
i0.ɵɵelementEnd();
|
|
907
|
+
} if (rf & 2) {
|
|
908
|
+
i0.ɵɵadvance();
|
|
909
|
+
i0.ɵɵconditional(ctx.IsLoading ? 1 : 2);
|
|
910
|
+
} }, 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(--text-secondary, #6b7280);\n}\n\n.cap-spinner[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n border: 3px solid var(--border-color, #e5e7eb);\n border-top-color: #6366f1;\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: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 8px;\n color: #dc2626;\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: #dc2626;\n cursor: pointer;\n transition: background 0.15s ease;\n}\n\n.cap-error-dismiss[_ngcontent-%COMP%]:hover {\n background: rgba(220, 38, 38, 0.1);\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: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);\n border: 1px solid #bae6fd;\n border-radius: 8px;\n color: #0369a1;\n font-size: 13px;\n}\n\n.cap-parent-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #0284c7;\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(--card-background, #ffffff);\n border: 1px solid var(--border-color, #e5e7eb);\n border-radius: 12px;\n}\n\n.cap-section-advanced[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);\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(--text-primary, #1f2937);\n}\n\n.cap-section-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6366f1;\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: #6366f1;\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(--text-primary, #374151);\n}\n\n.cap-required[_ngcontent-%COMP%]::after {\n content: ' *';\n color: #dc2626;\n}\n\n.cap-input[_ngcontent-%COMP%], \n.cap-select[_ngcontent-%COMP%], \n.cap-textarea[_ngcontent-%COMP%] {\n padding: 10px 12px;\n background: var(--input-background, #ffffff);\n border: 1px solid var(--border-color, #d1d5db);\n border-radius: 8px;\n font-size: 14px;\n color: var(--text-primary, #1f2937);\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: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);\n}\n\n.cap-input-error[_ngcontent-%COMP%] {\n border-color: #dc2626 !important;\n}\n\n.cap-input-error[_ngcontent-%COMP%]:focus {\n box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !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(--text-secondary, #6b7280);\n}\n\n.cap-field-error[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: #dc2626;\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(--text-primary, #374151);\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(--border-color, #d1d5db);\n border-radius: 8px;\n color: var(--text-secondary, #6b7280);\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: #6366f1;\n color: #6366f1;\n background: rgba(99, 102, 241, 0.04);\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(--hover-background, #f9fafb);\n border: 1px solid var(--border-color, #e5e7eb);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item[_ngcontent-%COMP%]:hover {\n border-color: #d1d5db;\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: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n border-radius: 8px;\n color: #6366f1;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);\n color: #d97706;\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(--text-primary, #1f2937);\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(--text-secondary, #6b7280);\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(--text-secondary, #9ca3af);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove[_ngcontent-%COMP%]:hover {\n background: #fef2f2;\n color: #dc2626;\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(--hover-background, #f9fafb);\n border: 1px dashed var(--border-color, #e5e7eb);\n border-radius: 8px;\n color: var(--text-secondary, #9ca3af);\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(--card-background, #ffffff);\n border: 1px solid var(--border-color, #e5e7eb);\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(--border-color, #e5e7eb);\n background: var(--hover-background, #f9fafb);\n}\n\n.cap-selector-search[_ngcontent-%COMP%] {\n flex: 1;\n padding: 8px 12px;\n background: var(--card-background, #ffffff);\n border: 1px solid var(--border-color, #d1d5db);\n border-radius: 6px;\n font-size: 14px;\n color: var(--text-primary, #1f2937);\n}\n\n.cap-selector-search[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: #6366f1;\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(--text-secondary, #6b7280);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close[_ngcontent-%COMP%]:hover {\n background: var(--hover-background, #f3f4f6);\n color: var(--text-primary, #1f2937);\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(--hover-background, #f3f4f6);\n}\n\n.cap-selector-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n flex-shrink: 0;\n width: 16px;\n color: #6366f1;\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(--text-primary, #1f2937);\n}\n\n.cap-selector-item-desc[_ngcontent-%COMP%] {\n font-size: 12px;\n color: var(--text-secondary, #6b7280);\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(--text-secondary, #9ca3af);\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: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n color: white;\n box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);\n}\n\n.cap-btn-primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%] {\n background: var(--card-background, #ffffff);\n color: var(--text-secondary, #6b7280);\n border: 1px solid var(--border-color, #d1d5db);\n}\n\n.cap-btn-secondary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--hover-background, #f3f4f6);\n color: var(--text-primary, #1f2937);\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: [
|
|
911
|
+
trigger('slideDown', [
|
|
912
|
+
transition(':enter', [
|
|
913
|
+
style({ opacity: 0, transform: 'translateY(-8px)' }),
|
|
914
|
+
animate('200ms ease-out', style({ opacity: 1, transform: 'translateY(0)' }))
|
|
915
|
+
]),
|
|
916
|
+
transition(':leave', [
|
|
917
|
+
animate('150ms ease-in', style({ opacity: 0, transform: 'translateY(-8px)' }))
|
|
918
|
+
])
|
|
919
|
+
]),
|
|
920
|
+
trigger('fadeIn', [
|
|
921
|
+
transition(':enter', [
|
|
922
|
+
style({ opacity: 0 }),
|
|
923
|
+
animate('200ms ease-out', style({ opacity: 1 }))
|
|
924
|
+
])
|
|
925
|
+
])
|
|
926
|
+
] }, changeDetection: 0 });
|
|
927
|
+
}
|
|
928
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreateAgentPanelComponent, [{
|
|
929
|
+
type: Component,
|
|
930
|
+
args: [{ standalone: false, selector: 'mj-create-agent-panel', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
931
|
+
trigger('slideDown', [
|
|
932
|
+
transition(':enter', [
|
|
933
|
+
style({ opacity: 0, transform: 'translateY(-8px)' }),
|
|
934
|
+
animate('200ms ease-out', style({ opacity: 1, transform: 'translateY(0)' }))
|
|
935
|
+
]),
|
|
936
|
+
transition(':leave', [
|
|
937
|
+
animate('150ms ease-in', style({ opacity: 0, transform: 'translateY(-8px)' }))
|
|
938
|
+
])
|
|
939
|
+
]),
|
|
940
|
+
trigger('fadeIn', [
|
|
941
|
+
transition(':enter', [
|
|
942
|
+
style({ opacity: 0 }),
|
|
943
|
+
animate('200ms ease-out', style({ opacity: 1 }))
|
|
944
|
+
])
|
|
945
|
+
])
|
|
946
|
+
], 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(--text-secondary, #6b7280);\n}\n\n.cap-spinner {\n width: 32px;\n height: 32px;\n border: 3px solid var(--border-color, #e5e7eb);\n border-top-color: #6366f1;\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: #fef2f2;\n border: 1px solid #fecaca;\n border-radius: 8px;\n color: #dc2626;\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: #dc2626;\n cursor: pointer;\n transition: background 0.15s ease;\n}\n\n.cap-error-dismiss:hover {\n background: rgba(220, 38, 38, 0.1);\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: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);\n border: 1px solid #bae6fd;\n border-radius: 8px;\n color: #0369a1;\n font-size: 13px;\n}\n\n.cap-parent-info i {\n color: #0284c7;\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(--card-background, #ffffff);\n border: 1px solid var(--border-color, #e5e7eb);\n border-radius: 12px;\n}\n\n.cap-section-advanced {\n background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);\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(--text-primary, #1f2937);\n}\n\n.cap-section-title i {\n color: #6366f1;\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: #6366f1;\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(--text-primary, #374151);\n}\n\n.cap-required::after {\n content: ' *';\n color: #dc2626;\n}\n\n.cap-input,\n.cap-select,\n.cap-textarea {\n padding: 10px 12px;\n background: var(--input-background, #ffffff);\n border: 1px solid var(--border-color, #d1d5db);\n border-radius: 8px;\n font-size: 14px;\n color: var(--text-primary, #1f2937);\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: #6366f1;\n box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);\n}\n\n.cap-input-error {\n border-color: #dc2626 !important;\n}\n\n.cap-input-error:focus {\n box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !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(--text-secondary, #6b7280);\n}\n\n.cap-field-error {\n display: flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n color: #dc2626;\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(--text-primary, #374151);\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(--border-color, #d1d5db);\n border-radius: 8px;\n color: var(--text-secondary, #6b7280);\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: #6366f1;\n color: #6366f1;\n background: rgba(99, 102, 241, 0.04);\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(--hover-background, #f9fafb);\n border: 1px solid var(--border-color, #e5e7eb);\n border-radius: 8px;\n transition: border-color 0.15s ease;\n}\n\n.cap-linked-item:hover {\n border-color: #d1d5db;\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: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);\n border-radius: 8px;\n color: #6366f1;\n font-size: 14px;\n flex-shrink: 0;\n}\n\n.cap-icon-action {\n background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);\n color: #d97706;\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(--text-primary, #1f2937);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.cap-item-description {\n font-size: 12px;\n color: var(--text-secondary, #6b7280);\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(--text-secondary, #9ca3af);\n cursor: pointer;\n transition: all 0.15s ease;\n flex-shrink: 0;\n}\n\n.cap-item-remove:hover {\n background: #fef2f2;\n color: #dc2626;\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(--hover-background, #f9fafb);\n border: 1px dashed var(--border-color, #e5e7eb);\n border-radius: 8px;\n color: var(--text-secondary, #9ca3af);\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(--card-background, #ffffff);\n border: 1px solid var(--border-color, #e5e7eb);\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(--border-color, #e5e7eb);\n background: var(--hover-background, #f9fafb);\n}\n\n.cap-selector-search {\n flex: 1;\n padding: 8px 12px;\n background: var(--card-background, #ffffff);\n border: 1px solid var(--border-color, #d1d5db);\n border-radius: 6px;\n font-size: 14px;\n color: var(--text-primary, #1f2937);\n}\n\n.cap-selector-search:focus {\n outline: none;\n border-color: #6366f1;\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(--text-secondary, #6b7280);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.cap-selector-close:hover {\n background: var(--hover-background, #f3f4f6);\n color: var(--text-primary, #1f2937);\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(--hover-background, #f3f4f6);\n}\n\n.cap-selector-item i {\n flex-shrink: 0;\n width: 16px;\n color: #6366f1;\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(--text-primary, #1f2937);\n}\n\n.cap-selector-item-desc {\n font-size: 12px;\n color: var(--text-secondary, #6b7280);\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(--text-secondary, #9ca3af);\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: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);\n color: white;\n box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);\n}\n\n.cap-btn-primary:hover:not(:disabled) {\n background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);\n box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);\n transform: translateY(-1px);\n}\n\n.cap-btn-secondary {\n background: var(--card-background, #ffffff);\n color: var(--text-secondary, #6b7280);\n border: 1px solid var(--border-color, #d1d5db);\n}\n\n.cap-btn-secondary:hover:not(:disabled) {\n background: var(--hover-background, #f3f4f6);\n color: var(--text-primary, #1f2937);\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"] }]
|
|
947
|
+
}], () => [{ type: i1.FormBuilder }, { type: i0.ChangeDetectorRef }], { Config: [{
|
|
948
|
+
type: Input
|
|
949
|
+
}], Created: [{
|
|
950
|
+
type: Output
|
|
951
|
+
}], Cancelled: [{
|
|
952
|
+
type: Output
|
|
953
|
+
}] }); })();
|
|
954
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CreateAgentPanelComponent, { className: "CreateAgentPanelComponent", filePath: "src/lib/components/create-agent-panel.component.ts", lineNumber: 87 }); })();
|
|
955
|
+
//# sourceMappingURL=create-agent-panel.component.js.map
|