@acorex-platform/module-ai-management-client 0.0.30 → 0.0.33

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.
Files changed (50) hide show
  1. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-agent.mjs +474 -0
  2. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-agent.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-assist.mjs +583 -0
  4. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-assist.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.mjs +238 -0
  6. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-model.mjs +349 -0
  8. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-model.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.mjs +203 -0
  10. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-rule.mjs +189 -0
  12. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-rule.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-skill.mjs +190 -0
  14. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entities-skill.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs +96 -0
  16. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-Cn8yH9Eb.mjs +403 -0
  18. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-agent.entity-Cn8yH9Eb.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-C5V2T4T5.mjs +512 -0
  20. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-assist.entity-C5V2T4T5.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-D3Q6AWZ4.mjs +167 -0
  22. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-mcp-server.entity-D3Q6AWZ4.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-BMAZ-ZMl.mjs +278 -0
  24. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-model.entity-BMAZ-ZMl.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-BcxddrrU.mjs +132 -0
  26. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-BcxddrrU.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-D_iNgAEh.mjs +118 -0
  28. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-D_iNgAEh.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-6Ykv67zV.mjs +119 -0
  30. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-6Ykv67zV.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs +2 -0
  32. package/fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs +10 -1
  34. package/fesm2022/acorex-platform-module-ai-management-client-contracts.mjs.map +1 -1
  35. package/fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs +35 -0
  36. package/fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-ai-management-client.mjs +24 -49
  38. package/fesm2022/acorex-platform-module-ai-management-client.mjs.map +1 -1
  39. package/package.json +37 -1
  40. package/types/acorex-platform-module-ai-management-client-contracts-entities-agent.d.ts +5 -0
  41. package/types/acorex-platform-module-ai-management-client-contracts-entities-assist.d.ts +5 -0
  42. package/types/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.d.ts +5 -0
  43. package/types/acorex-platform-module-ai-management-client-contracts-entities-model.d.ts +5 -0
  44. package/types/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.d.ts +5 -0
  45. package/types/acorex-platform-module-ai-management-client-contracts-entities-rule.d.ts +5 -0
  46. package/types/acorex-platform-module-ai-management-client-contracts-entities-skill.d.ts +5 -0
  47. package/types/acorex-platform-module-ai-management-client-contracts-entity-catalog.d.ts +10 -0
  48. package/types/acorex-platform-module-ai-management-client-contracts.d.ts +36 -4
  49. package/types/acorex-platform-module-ai-management-client-local-entities.d.ts +12 -0
  50. package/types/acorex-platform-module-ai-management-client.d.ts +4 -9
@@ -0,0 +1,583 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ //#region ---- Module Config ----
5
+ const config = {
6
+ i18n: 'ai-management',
7
+ module: 'AiManagement',
8
+ route: 'ai-management',
9
+ };
10
+ const RootConfig = {
11
+ config,
12
+ module: {
13
+ name: config.module,
14
+ route: config.route,
15
+ title: `@${config.i18n}:module.title`,
16
+ icon: 'fa-light fa-robot',
17
+ },
18
+ entities: {
19
+ model: {
20
+ name: 'AiModel',
21
+ fullName: `${config.module}.AiModel`,
22
+ title: '@ai-management:models.entities.model.title',
23
+ titlePlural: '@ai-management:models.entities.model.plural',
24
+ icon: 'fa-light fa-microchip',
25
+ },
26
+ assist: {
27
+ name: 'Assist',
28
+ fullName: `${config.module}.Assist`,
29
+ title: '@ai-management:assists.entities.assist.title',
30
+ titlePlural: '@ai-management:assists.entities.assist.plural',
31
+ icon: 'fa-light fa-user-robot',
32
+ },
33
+ agent: {
34
+ name: 'AiAgent',
35
+ fullName: `${config.module}.AiAgent`,
36
+ title: '@ai-management:agents.entities.agent.title',
37
+ titlePlural: '@ai-management:agents.entities.agent.plural',
38
+ icon: 'fa-light fa-people-group',
39
+ },
40
+ openAiEndpoint: {
41
+ name: 'OpenAiEndpoint',
42
+ fullName: `${config.module}.OpenAiEndpoint`,
43
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.title',
44
+ titlePlural: '@ai-management:open-ai-endpoints.entities.endpoint.plural',
45
+ icon: 'fa-light fa-plug',
46
+ },
47
+ rule: {
48
+ name: 'AiRule',
49
+ fullName: `${config.module}.AiRule`,
50
+ title: '@ai-management:rules.entities.rule.title',
51
+ titlePlural: '@ai-management:rules.entities.rule.plural',
52
+ icon: 'fa-light fa-list-check',
53
+ },
54
+ skill: {
55
+ name: 'AiSkill',
56
+ fullName: `${config.module}.AiSkill`,
57
+ title: '@ai-management:skills.entities.skill.title',
58
+ titlePlural: '@ai-management:skills.entities.skill.plural',
59
+ icon: 'fa-light fa-signs-post',
60
+ },
61
+ mcpServer: {
62
+ name: 'McpServer',
63
+ fullName: `${config.module}.McpServer`,
64
+ title: '@ai-management:mcp-servers.entities.mcp-server.title',
65
+ titlePlural: '@ai-management:mcp-servers.entities.mcp-server.plural',
66
+ icon: 'fa-light fa-plug-circle-bolt',
67
+ },
68
+ },
69
+ };
70
+ //#endregion
71
+
72
+ //#endregion
73
+ //#region ---- Repeater children (registry command / query) ----
74
+ const ASSIST_COMMAND_REGISTRY_REPEATER_CHILDREN = [
75
+ {
76
+ type: 'agent-registry-tool-configurator',
77
+ mode: 'edit',
78
+ path: 'command',
79
+ name: 'command',
80
+ options: {
81
+ registryKind: 'command',
82
+ label: '@ai-management:assists.entities.assist.fields.command-registry.item-label',
83
+ },
84
+ },
85
+ ];
86
+ const ASSIST_QUERY_REGISTRY_REPEATER_CHILDREN = [
87
+ {
88
+ type: 'agent-registry-tool-configurator',
89
+ mode: 'edit',
90
+ path: 'query',
91
+ name: 'query',
92
+ options: {
93
+ registryKind: 'query',
94
+ label: '@ai-management:assists.entities.assist.fields.query-registry.item-label',
95
+ },
96
+ },
97
+ ];
98
+ //#endregion
99
+ //#region ---- Repeater children (available agents) ----
100
+ const DELEGATED_AGENTS_REPEATER_CHILDREN = [
101
+ {
102
+ type: 'assist-delegated-agent-configurator',
103
+ mode: 'edit',
104
+ path: 'agent',
105
+ name: 'agent',
106
+ options: {
107
+ label: '@ai-management:assists.entities.assist.fields.available-agents.title',
108
+ },
109
+ },
110
+ ];
111
+ const STARTER_PROMPTS_REPEATER_CHILDREN = [
112
+ {
113
+ type: AXPWidgetsList.Editors.TextBox,
114
+ mode: 'edit',
115
+ path: 'text',
116
+ name: 'text',
117
+ options: {
118
+ placeholder: '@ai-management:assists.entities.assist.fields.starter-prompts.item-placeholder',
119
+ multiLanguage: true,
120
+ },
121
+ },
122
+ ];
123
+ //#endregion
124
+ //#region ---- Entity ----
125
+ async function assistFactory() {
126
+ const entityDef = {
127
+ module: RootConfig.module.name,
128
+ name: RootConfig.entities.assist.name,
129
+ title: RootConfig.entities.assist.title,
130
+ icon: RootConfig.entities.assist.icon,
131
+ plugins: [{ name: 'disable' }],
132
+ formats: {
133
+ individual: RootConfig.entities.assist.title,
134
+ plural: RootConfig.entities.assist.titlePlural,
135
+ searchResult: {
136
+ title: '{{ title }}',
137
+ description: '{{ description }}',
138
+ },
139
+ },
140
+ relatedEntities: [],
141
+ groups: [
142
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
143
+ { id: 'profile', title: '@ai-management:assists.entities.assist.groups.profile' },
144
+ { id: 'ai-configuration', title: '@ai-management:assists.entities.assist.groups.ai-configuration' },
145
+ { id: 'welcome-interaction', title: '@ai-management:assists.entities.assist.groups.welcome-interaction' },
146
+ { id: 'prompt-behaviour', title: '@ai-management:assists.entities.assist.groups.prompt-behaviour' },
147
+ { id: 'output-contract', title: '@ai-management:assists.entities.assist.groups.output-contract' },
148
+ { id: 'registry-commands', title: '@ai-management:assists.entities.assist.groups.registry-commands' },
149
+ { id: 'registry-queries', title: '@ai-management:assists.entities.assist.groups.registry-queries' },
150
+ { id: 'mcp-servers', title: '@ai-management:assists.entities.assist.groups.mcp-servers' },
151
+ { id: 'available-agents', title: '@ai-management:assists.entities.assist.groups.available-agents' },
152
+ ],
153
+ properties: [
154
+ {
155
+ name: 'id',
156
+ title: 'ID',
157
+ groupId: 'basic-info',
158
+ schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },
159
+ },
160
+ {
161
+ name: 'name',
162
+ title: '@general:terms.common.name',
163
+ groupId: 'basic-info',
164
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
165
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
166
+ validations: [{ rule: 'required' }, { rule: 'unique' }],
167
+ },
168
+ {
169
+ name: 'title',
170
+ title: '@general:terms.common.title',
171
+ groupId: 'basic-info',
172
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
173
+ options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },
174
+ validations: [{ rule: 'required' }],
175
+ },
176
+ {
177
+ name: 'description',
178
+ title: '@general:terms.common.description',
179
+ groupId: 'basic-info',
180
+ schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },
181
+ },
182
+ {
183
+ name: 'professionImageUrl',
184
+ title: '@ai-management:assists.entities.assist.fields.profession-image-url.title',
185
+ groupId: 'profile',
186
+ schema: {
187
+ interface: {
188
+ type: AXPWidgetsList.Advanced.Image,
189
+ options: { type: 'profile-photo' },
190
+ },
191
+ },
192
+ },
193
+ {
194
+ name: 'planningMode',
195
+ title: '@ai-management:assists.entities.assist.fields.planning-mode.title',
196
+ description: '@ai-management:assists.entities.assist.fields.planning-mode.description',
197
+ groupId: 'ai-configuration',
198
+ schema: {
199
+ nullable: true,
200
+ interface: {
201
+ type: AXPWidgetsList.Editors.SelectBox,
202
+ options: {
203
+ valueField: 'id',
204
+ textField: 'title',
205
+ allowSearch: false,
206
+ placeholder: '@ai-management:assists.entities.assist.fields.planning-mode.placeholder',
207
+ dataSource: [
208
+ {
209
+ id: 'off',
210
+ title: '@ai-management:assists.entities.assist.fields.planning-mode.options.off',
211
+ },
212
+ {
213
+ id: 'once',
214
+ title: '@ai-management:assists.entities.assist.fields.planning-mode.options.once',
215
+ },
216
+ {
217
+ id: 'when-needed',
218
+ title: '@ai-management:assists.entities.assist.fields.planning-mode.options.when-needed',
219
+ },
220
+ ],
221
+ },
222
+ },
223
+ },
224
+ },
225
+ {
226
+ name: 'modelId',
227
+ title: '@ai-management:assists.entities.assist.fields.model.title',
228
+ description: '@ai-management:assists.entities.assist.fields.model.description',
229
+ groupId: 'ai-configuration',
230
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
231
+ schema: {
232
+ nullable: false,
233
+ interface: {
234
+ type: AXPWidgetsList.Editors.LookupBox,
235
+ options: {
236
+ entity: `${RootConfig.module.name}.${RootConfig.entities.model.name}`,
237
+ textField: 'title',
238
+ valueField: 'id',
239
+ look: 'select',
240
+ allowSearch: true,
241
+ columns: ['title', 'name'],
242
+ placeholder: '@ai-management:assists.entities.assist.fields.model.placeholder',
243
+ expose: [
244
+ { source: 'id', target: 'aiModel.id' },
245
+ { source: 'title', target: 'aiModel.title' },
246
+ { source: 'name', target: 'aiModel.name' },
247
+ ],
248
+ },
249
+ },
250
+ },
251
+ validations: [{ rule: 'required' }],
252
+ },
253
+ {
254
+ name: 'initialMessages',
255
+ title: '@ai-management:assists.entities.assist.fields.initial-messages.title',
256
+ groupId: 'welcome-interaction',
257
+ schema: {
258
+ interface: {
259
+ type: AXPWidgetsList.Editors.RichText,
260
+ },
261
+ },
262
+ },
263
+ {
264
+ name: 'starterPrompts',
265
+ title: '@ai-management:assists.entities.assist.fields.starter-prompts.title',
266
+ description: '@ai-management:assists.entities.assist.fields.starter-prompts.description',
267
+ groupId: 'welcome-interaction',
268
+ schema: {
269
+ defaultValue: [],
270
+ nullable: true,
271
+ interface: {
272
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
273
+ options: { hasControls: true, allowReorder: true },
274
+ children: STARTER_PROMPTS_REPEATER_CHILDREN,
275
+ },
276
+ },
277
+ },
278
+ {
279
+ name: 'systemPrompt',
280
+ title: '@ai-management:assists.entities.assist.fields.system-prompt.title',
281
+ groupId: 'prompt-behaviour',
282
+ schema: {
283
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 6 } },
284
+ },
285
+ },
286
+ {
287
+ name: 'ruleIds',
288
+ title: '@ai-management:assists.entities.assist.fields.rules.title',
289
+ description: '@ai-management:assists.entities.assist.fields.rules.description',
290
+ groupId: 'prompt-behaviour',
291
+ schema: {
292
+ defaultValue: [],
293
+ nullable: true,
294
+ interface: {
295
+ type: AXPWidgetsList.Editors.LookupBox,
296
+ options: {
297
+ entity: `${RootConfig.module.name}.${RootConfig.entities.rule.name}`,
298
+ textField: 'title',
299
+ valueField: 'id',
300
+ look: 'select',
301
+ multiple: true,
302
+ allowSearch: true,
303
+ columns: ['title', 'name'],
304
+ placeholder: '@ai-management:assists.entities.assist.fields.rules.placeholder',
305
+ expose: [
306
+ { source: 'id', target: 'rules.{id}' },
307
+ { source: 'name', target: 'rules.{name}' },
308
+ { source: 'title', target: 'rules.{title}' },
309
+ ],
310
+ },
311
+ },
312
+ },
313
+ },
314
+ {
315
+ name: 'skillIds',
316
+ title: '@ai-management:assists.entities.assist.fields.skills.title',
317
+ description: '@ai-management:assists.entities.assist.fields.skills.description',
318
+ groupId: 'prompt-behaviour',
319
+ schema: {
320
+ defaultValue: [],
321
+ nullable: true,
322
+ interface: {
323
+ type: AXPWidgetsList.Editors.LookupBox,
324
+ options: {
325
+ entity: `${RootConfig.module.name}.${RootConfig.entities.skill.name}`,
326
+ textField: 'title',
327
+ valueField: 'id',
328
+ look: 'select',
329
+ multiple: true,
330
+ allowSearch: true,
331
+ columns: ['title', 'name'],
332
+ placeholder: '@ai-management:assists.entities.assist.fields.skills.placeholder',
333
+ expose: [
334
+ { source: 'id', target: 'skills.{id}' },
335
+ { source: 'name', target: 'skills.{name}' },
336
+ { source: 'title', target: 'skills.{title}' },
337
+ ],
338
+ },
339
+ },
340
+ },
341
+ },
342
+ {
343
+ name: 'outputContract',
344
+ title: '@ai-management:assists.entities.assist.fields.output-contract.title',
345
+ description: '@ai-management:assists.entities.assist.fields.output-contract.description',
346
+ groupId: 'output-contract',
347
+ schema: {
348
+ nullable: true,
349
+ interface: {
350
+ type: AXPWidgetsList.Editors.LargeTextBox,
351
+ options: { rows: 10 },
352
+ },
353
+ },
354
+ },
355
+ {
356
+ name: 'knowledgeFiles',
357
+ title: '@ai-management:assists.entities.assist.fields.knowledge-files.title',
358
+ description: '@ai-management:assists.entities.assist.fields.knowledge-files.description',
359
+ groupId: 'prompt-behaviour',
360
+ options: {
361
+ sort: { enabled: false },
362
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
363
+ },
364
+ schema: {
365
+ defaultValue: [],
366
+ nullable: true,
367
+ interface: {
368
+ type: AXPWidgetsList.Advanced.Attachments,
369
+ options: {
370
+ multiple: true,
371
+ entity: `${RootConfig.module.name}.${RootConfig.entities.assist.name}`,
372
+ record: '{{context.eval("id")}}',
373
+ accept: '.pdf,.jpg,.jpeg,.png,.gif,.webp',
374
+ },
375
+ },
376
+ },
377
+ },
378
+ {
379
+ name: 'commandIds',
380
+ title: '@ai-management:assists.entities.assist.fields.command-registry.title',
381
+ description: '@ai-management:assists.entities.assist.fields.command-registry.description',
382
+ groupId: 'registry-commands',
383
+ schema: {
384
+ defaultValue: [],
385
+ nullable: true,
386
+ interface: {
387
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
388
+ options: { hasControls: true, allowReorder: true },
389
+ children: ASSIST_COMMAND_REGISTRY_REPEATER_CHILDREN,
390
+ },
391
+ },
392
+ },
393
+ {
394
+ name: 'queryIds',
395
+ title: '@ai-management:assists.entities.assist.fields.query-registry.title',
396
+ description: '@ai-management:assists.entities.assist.fields.query-registry.description',
397
+ groupId: 'registry-queries',
398
+ schema: {
399
+ defaultValue: [],
400
+ nullable: true,
401
+ interface: {
402
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
403
+ options: { hasControls: true, allowReorder: true },
404
+ children: ASSIST_QUERY_REGISTRY_REPEATER_CHILDREN,
405
+ },
406
+ },
407
+ },
408
+ {
409
+ name: 'mcpServerIds',
410
+ title: '@ai-management:assists.entities.assist.fields.mcp-servers.title',
411
+ description: '@ai-management:assists.entities.assist.fields.mcp-servers.description',
412
+ groupId: 'mcp-servers',
413
+ schema: {
414
+ defaultValue: [],
415
+ nullable: true,
416
+ interface: {
417
+ type: AXPWidgetsList.Editors.LookupBox,
418
+ options: {
419
+ entity: `${RootConfig.module.name}.${RootConfig.entities.mcpServer.name}`,
420
+ textField: 'title',
421
+ valueField: 'id',
422
+ look: 'select',
423
+ multiple: true,
424
+ allowSearch: true,
425
+ columns: ['title', 'name'],
426
+ placeholder: '@ai-management:assists.entities.assist.fields.mcp-servers.placeholder',
427
+ },
428
+ },
429
+ },
430
+ },
431
+ {
432
+ name: 'delegatedAgents',
433
+ title: '@ai-management:assists.entities.assist.fields.available-agents.title',
434
+ description: '@ai-management:assists.entities.assist.fields.available-agents.description',
435
+ groupId: 'available-agents',
436
+ schema: {
437
+ defaultValue: [],
438
+ nullable: true,
439
+ interface: {
440
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
441
+ options: { hasControls: true, allowReorder: true },
442
+ children: DELEGATED_AGENTS_REPEATER_CHILDREN,
443
+ },
444
+ },
445
+ },
446
+ ],
447
+ columns: [
448
+ { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },
449
+ { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },
450
+ { name: 'description', title: '@general:terms.common.description', showAs: { type: AXPWidgetsList.Editors.TextBox } },
451
+ {
452
+ name: 'modelId',
453
+ title: '@ai-management:assists.entities.assist.fields.model.title',
454
+ showAs: { type: AXPWidgetsList.Editors.TextBox },
455
+ options: { dataPath: 'aiModel.title' },
456
+ },
457
+ ],
458
+ interfaces: {
459
+ master: {
460
+ create: {
461
+ sections: [
462
+ { id: 'basic-info', order: 2, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
463
+ { id: 'profile', order: 3, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
464
+ { id: 'ai-configuration', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
465
+ { id: 'welcome-interaction', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
466
+ { id: 'prompt-behaviour', order: 6, layout: { positions: { lg: { colSpan: 12 } } } },
467
+ { id: 'output-contract', order: 7, layout: { positions: { lg: { colSpan: 12 } } } },
468
+ { id: 'registry-commands', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },
469
+ { id: 'registry-queries', order: 9, layout: { positions: { lg: { colSpan: 12 } } } },
470
+ { id: 'mcp-servers', order: 10, layout: { positions: { lg: { colSpan: 12 } } } },
471
+ { id: 'available-agents', order: 11, layout: { positions: { lg: { colSpan: 12 } } } },
472
+ ],
473
+ properties: [
474
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
475
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
476
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
477
+ {
478
+ name: 'professionImageUrl',
479
+ layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } },
480
+ },
481
+ { name: 'planningMode', layout: { positions: { lg: { colSpan: 6 } } } },
482
+ { name: 'modelId', layout: { positions: { lg: { colSpan: 6 } } } },
483
+ { name: 'initialMessages', layout: { positions: { lg: { colSpan: 12 } } } },
484
+ { name: 'starterPrompts', layout: { positions: { lg: { colSpan: 12 } } } },
485
+ { name: 'systemPrompt', layout: { positions: { lg: { colSpan: 12 } } } },
486
+ { name: 'ruleIds', layout: { positions: { lg: { colSpan: 12 } } } },
487
+ { name: 'skillIds', layout: { positions: { lg: { colSpan: 12 } } } },
488
+ { name: 'knowledgeFiles', layout: { positions: { lg: { colSpan: 12 } } } },
489
+ { name: 'outputContract', layout: { positions: { lg: { colSpan: 12 } } } },
490
+ { name: 'commandIds', layout: { positions: { lg: { colSpan: 12 } } } },
491
+ { name: 'queryIds', layout: { positions: { lg: { colSpan: 12 } } } },
492
+ { name: 'mcpServerIds', layout: { positions: { lg: { colSpan: 12 } } } },
493
+ { name: 'delegatedAgents', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },
494
+ ],
495
+ },
496
+ update: {
497
+ sections: [
498
+ { id: 'basic-info', order: 2, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
499
+ { id: 'profile', order: 3, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
500
+ { id: 'ai-configuration', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
501
+ { id: 'welcome-interaction', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
502
+ { id: 'prompt-behaviour', order: 6, layout: { positions: { lg: { colSpan: 12 } } } },
503
+ { id: 'output-contract', order: 7, layout: { positions: { lg: { colSpan: 12 } } } },
504
+ { id: 'registry-commands', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },
505
+ { id: 'registry-queries', order: 9, layout: { positions: { lg: { colSpan: 12 } } } },
506
+ { id: 'mcp-servers', order: 10, layout: { positions: { lg: { colSpan: 12 } } } },
507
+ { id: 'available-agents', order: 11, layout: { positions: { lg: { colSpan: 12 } } } },
508
+ ],
509
+ properties: [
510
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
511
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
512
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
513
+ { name: 'professionImageUrl', layout: { label: { visible: false } } },
514
+ { name: 'planningMode', layout: { positions: { lg: { colSpan: 6 } } } },
515
+ { name: 'modelId', layout: { positions: { lg: { colSpan: 6 } } } },
516
+ { name: 'initialMessages', layout: { positions: { lg: { colSpan: 12 } } } },
517
+ { name: 'starterPrompts', layout: { positions: { lg: { colSpan: 12 } } } },
518
+ { name: 'systemPrompt', layout: { positions: { lg: { colSpan: 12 } } } },
519
+ { name: 'ruleIds', layout: { positions: { lg: { colSpan: 12 } } } },
520
+ { name: 'skillIds', layout: { positions: { lg: { colSpan: 12 } } } },
521
+ { name: 'knowledgeFiles', layout: { positions: { lg: { colSpan: 12 } } } },
522
+ { name: 'outputContract', layout: { positions: { lg: { colSpan: 12 } } } },
523
+ { name: 'commandIds', layout: { positions: { lg: { colSpan: 12 } } } },
524
+ { name: 'queryIds', layout: { positions: { lg: { colSpan: 12 } } } },
525
+ { name: 'mcpServerIds', layout: { positions: { lg: { colSpan: 12 } } } },
526
+ { name: 'delegatedAgents', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },
527
+ ],
528
+ },
529
+ single: {
530
+ title: '{{ title }}',
531
+ sections: [
532
+ { id: 'basic-info', order: 2, layout: { positions: { lg: { colSpan: 8, colStart: 1 } } } },
533
+ { id: 'profile', order: 3, layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
534
+ { id: 'ai-configuration', order: 4, layout: { positions: { lg: { colSpan: 12 } } } },
535
+ { id: 'welcome-interaction', order: 5, layout: { positions: { lg: { colSpan: 12 } } } },
536
+ { id: 'prompt-behaviour', order: 6, layout: { positions: { lg: { colSpan: 12 } } } },
537
+ { id: 'output-contract', order: 7, layout: { positions: { lg: { colSpan: 12 } } } },
538
+ { id: 'registry-commands', order: 8, layout: { positions: { lg: { colSpan: 12 } } } },
539
+ { id: 'registry-queries', order: 9, layout: { positions: { lg: { colSpan: 12 } } } },
540
+ { id: 'mcp-servers', order: 10, layout: { positions: { lg: { colSpan: 12 } } } },
541
+ { id: 'available-agents', order: 11, layout: { positions: { lg: { colSpan: 12 } } } },
542
+ ],
543
+ properties: [
544
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
545
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
546
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
547
+ {
548
+ name: 'professionImageUrl',
549
+ layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 0 } } },
550
+ },
551
+ { name: 'planningMode', layout: { positions: { lg: { colSpan: 6 } } } },
552
+ { name: 'modelId', layout: { positions: { lg: { colSpan: 6 } } } },
553
+ { name: 'initialMessages', layout: { positions: { lg: { colSpan: 12 } } } },
554
+ { name: 'starterPrompts', layout: { positions: { lg: { colSpan: 12 } } } },
555
+ { name: 'systemPrompt', layout: { positions: { lg: { colSpan: 12 } } } },
556
+ { name: 'ruleIds', layout: { positions: { lg: { colSpan: 12 } } } },
557
+ { name: 'skillIds', layout: { positions: { lg: { colSpan: 12 } } } },
558
+ { name: 'knowledgeFiles', layout: { positions: { lg: { colSpan: 12 } } } },
559
+ { name: 'outputContract', layout: { positions: { lg: { colSpan: 12 } } } },
560
+ { name: 'commandIds', layout: { positions: { lg: { colSpan: 12 } } } },
561
+ { name: 'queryIds', layout: { positions: { lg: { colSpan: 12 } } } },
562
+ { name: 'mcpServerIds', layout: { positions: { lg: { colSpan: 12 } } } },
563
+ { name: 'delegatedAgents', layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } } },
564
+ ],
565
+ actions: [...entityMasterRecordActions()],
566
+ },
567
+ list: {
568
+ actions: [...entityMasterCrudActions()],
569
+ views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
570
+ },
571
+ },
572
+ },
573
+ };
574
+ return entityDef;
575
+ }
576
+ //#endregion
577
+
578
+ /**
579
+ * Generated bundle index. Do not edit.
580
+ */
581
+
582
+ export { assistFactory };
583
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entities-assist.mjs.map