@acorex-platform/module-ai-management-client 0.0.32 → 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 (44) 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-local-entities.mjs +35 -0
  34. package/fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs.map +1 -0
  35. package/package.json +37 -1
  36. package/types/acorex-platform-module-ai-management-client-contracts-entities-agent.d.ts +5 -0
  37. package/types/acorex-platform-module-ai-management-client-contracts-entities-assist.d.ts +5 -0
  38. package/types/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.d.ts +5 -0
  39. package/types/acorex-platform-module-ai-management-client-contracts-entities-model.d.ts +5 -0
  40. package/types/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.d.ts +5 -0
  41. package/types/acorex-platform-module-ai-management-client-contracts-entities-rule.d.ts +5 -0
  42. package/types/acorex-platform-module-ai-management-client-contracts-entities-skill.d.ts +5 -0
  43. package/types/acorex-platform-module-ai-management-client-contracts-entity-catalog.d.ts +10 -0
  44. package/types/acorex-platform-module-ai-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,132 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity ----
7
+ async function openAiEndpointFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.openAiEndpoint.name,
11
+ title: RootConfig.entities.openAiEndpoint.title,
12
+ icon: RootConfig.entities.openAiEndpoint.icon,
13
+ plugins: [{ name: 'disable' }],
14
+ formats: {
15
+ individual: RootConfig.entities.openAiEndpoint.title,
16
+ plural: RootConfig.entities.openAiEndpoint.titlePlural,
17
+ searchResult: {
18
+ title: '{{ title }}',
19
+ description: '{{ description }}',
20
+ },
21
+ },
22
+ groups: [
23
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
24
+ { id: 'connection', title: '@ai-management:open-ai-endpoints.entities.endpoint.groups.connection.title' },
25
+ ],
26
+ properties: [
27
+ {
28
+ name: 'id',
29
+ title: 'ID',
30
+ groupId: 'basic-info',
31
+ schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },
32
+ },
33
+ {
34
+ name: 'title',
35
+ title: '@general:terms.common.title',
36
+ groupId: 'basic-info',
37
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
38
+ options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },
39
+ validations: [{ rule: 'required' }],
40
+ },
41
+ {
42
+ name: 'description',
43
+ title: '@general:terms.common.description',
44
+ groupId: 'basic-info',
45
+ schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } } },
46
+ },
47
+ {
48
+ name: 'apiBase',
49
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',
50
+ description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.description',
51
+ groupId: 'connection',
52
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
53
+ validations: [{ rule: 'required' }],
54
+ },
55
+ {
56
+ name: 'apiKey',
57
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.title',
58
+ description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.description',
59
+ groupId: 'connection',
60
+ schema: { nullable: true, interface: { type: AXPWidgetsList.Editors.TextBox } },
61
+ },
62
+ {
63
+ name: 'stream',
64
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',
65
+ description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.description',
66
+ groupId: 'connection',
67
+ schema: {
68
+ nullable: true,
69
+ interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
70
+ },
71
+ },
72
+ ],
73
+ columns: [
74
+ { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },
75
+ {
76
+ name: 'apiBase',
77
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',
78
+ showAs: { type: AXPWidgetsList.Editors.TextBox },
79
+ },
80
+ {
81
+ name: 'stream',
82
+ title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',
83
+ showAs: { type: AXPWidgetsList.Editors.ToggleSwitch },
84
+ },
85
+ ],
86
+ interfaces: {
87
+ master: {
88
+ create: {
89
+ sections: [{ id: 'basic-info' }, { id: 'connection' }],
90
+ properties: [
91
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
92
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
93
+ { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },
94
+ { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },
95
+ { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },
96
+ ],
97
+ },
98
+ update: {
99
+ sections: [{ id: 'basic-info' }, { id: 'connection' }],
100
+ properties: [
101
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
102
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
103
+ { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },
104
+ { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },
105
+ { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },
106
+ ],
107
+ },
108
+ single: {
109
+ title: '{{ title }}',
110
+ sections: [{ id: 'basic-info' }, { id: 'connection' }],
111
+ properties: [
112
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
113
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
114
+ { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },
115
+ { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },
116
+ { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },
117
+ ],
118
+ actions: [],
119
+ },
120
+ list: {
121
+ actions: [...entityMasterCrudActions()],
122
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
123
+ },
124
+ },
125
+ },
126
+ };
127
+ return entityDef;
128
+ }
129
+ //#endregion
130
+
131
+ export { openAiEndpointFactory };
132
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-BcxddrrU.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-open-ai-endpoint.entity-BcxddrrU.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/open-ai-endpoint/open-ai-endpoint.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function openAiEndpointFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.openAiEndpoint.name,\n title: RootConfig.entities.openAiEndpoint.title,\n icon: RootConfig.entities.openAiEndpoint.icon,\n plugins: [{ name: 'disable' }],\n formats: {\n individual: RootConfig.entities.openAiEndpoint.title,\n plural: RootConfig.entities.openAiEndpoint.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'connection', title: '@ai-management:open-ai-endpoints.entities.endpoint.groups.connection.title' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } } },\n },\n {\n name: 'apiBase',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.description',\n groupId: 'connection',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'apiKey',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-key.description',\n groupId: 'connection',\n schema: { nullable: true, interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'stream',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',\n description: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.description',\n groupId: 'connection',\n schema: {\n nullable: true,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n ],\n columns: [\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n {\n name: 'apiBase',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.api-base.title',\n showAs: { type: AXPWidgetsList.Editors.TextBox },\n },\n {\n name: 'stream',\n title: '@ai-management:open-ai-endpoints.entities.endpoint.fields.stream.title',\n showAs: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'connection' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiBase', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'apiKey', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'stream', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC9B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AACpD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW;AACtD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,mBAAmB;AACjC,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE;AA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EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClE,wBAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnE,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,118 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity ----
7
+ async function ruleFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.rule.name,
11
+ title: RootConfig.entities.rule.title,
12
+ icon: RootConfig.entities.rule.icon,
13
+ formats: {
14
+ individual: RootConfig.entities.rule.title,
15
+ plural: RootConfig.entities.rule.titlePlural,
16
+ searchResult: {
17
+ title: '{{ title }}',
18
+ description: '{{ name }}',
19
+ },
20
+ },
21
+ groups: [
22
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
23
+ { id: 'rule-content', title: '@ai-management:rules.entities.rule.groups.rule-content' },
24
+ ],
25
+ properties: [
26
+ {
27
+ name: 'id',
28
+ title: 'ID',
29
+ groupId: 'basic-info',
30
+ schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },
31
+ },
32
+ {
33
+ name: 'name',
34
+ title: '@general:terms.common.name',
35
+ groupId: 'basic-info',
36
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
37
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
38
+ validations: [{ rule: 'required' }, { rule: 'unique' }],
39
+ description: '@ai-management:rules.entities.rule.fields.name.description',
40
+ },
41
+ {
42
+ name: 'title',
43
+ title: '@general:terms.common.title',
44
+ groupId: 'basic-info',
45
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
46
+ options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },
47
+ validations: [{ rule: 'required' }],
48
+ },
49
+ {
50
+ name: 'description',
51
+ title: '@general:terms.common.description',
52
+ groupId: 'basic-info',
53
+ schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },
54
+ },
55
+ {
56
+ name: 'markdown',
57
+ title: '@ai-management:rules.entities.rule.fields.markdown.title',
58
+ description: '@ai-management:rules.entities.rule.fields.markdown.description',
59
+ groupId: 'rule-content',
60
+ schema: {
61
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 12 } },
62
+ },
63
+ validations: [{ rule: 'required' }],
64
+ },
65
+ ],
66
+ columns: [
67
+ { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },
68
+ { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },
69
+ {
70
+ name: 'description',
71
+ title: '@general:terms.common.description',
72
+ showAs: { type: AXPWidgetsList.Editors.TextBox },
73
+ },
74
+ ],
75
+ interfaces: {
76
+ master: {
77
+ create: {
78
+ sections: [{ id: 'basic-info' }, { id: 'rule-content' }],
79
+ properties: [
80
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
81
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
82
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
83
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
84
+ ],
85
+ },
86
+ update: {
87
+ sections: [{ id: 'basic-info' }, { id: 'rule-content' }],
88
+ properties: [
89
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
90
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
91
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
92
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
93
+ ],
94
+ },
95
+ single: {
96
+ title: '{{ title }}',
97
+ sections: [{ id: 'basic-info' }, { id: 'rule-content' }],
98
+ properties: [
99
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
100
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
101
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
102
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
103
+ ],
104
+ actions: [...entityMasterRecordActions()],
105
+ },
106
+ list: {
107
+ actions: [...entityMasterCrudActions()],
108
+ views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
109
+ },
110
+ },
111
+ },
112
+ };
113
+ return entityDef;
114
+ }
115
+ //#endregion
116
+
117
+ export { ruleFactory };
118
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-D_iNgAEh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-rule.entity-D_iNgAEh.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/rule/rule.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function ruleFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.rule.name,\n title: RootConfig.entities.rule.title,\n icon: RootConfig.entities.rule.icon,\n formats: {\n individual: RootConfig.entities.rule.title,\n plural: RootConfig.entities.rule.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ name }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'rule-content', title: '@ai-management:rules.entities.rule.groups.rule-content' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n validations: [{ rule: 'required' }, { rule: 'unique' }],\n description: '@ai-management:rules.entities.rule.fields.name.description',\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },\n },\n {\n name: 'markdown',\n title: '@ai-management:rules.entities.rule.fields.markdown.title',\n description: '@ai-management:rules.entities.rule.fields.markdown.description',\n groupId: 'rule-content',\n schema: {\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 12 } },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n {\n name: 'description',\n title: '@general:terms.common.description',\n showAs: { type: AXPWidgetsList.Editors.TextBox },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'rule-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,WAAW,GAAA;AAC/B,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI;AACnC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK;AACrC,QAAA,IAAI,EAAE,UAAU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,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACrE,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,119 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity ----
7
+ async function skillFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.skill.name,
11
+ title: RootConfig.entities.skill.title,
12
+ icon: RootConfig.entities.skill.icon,
13
+ formats: {
14
+ individual: RootConfig.entities.skill.title,
15
+ plural: RootConfig.entities.skill.titlePlural,
16
+ searchResult: {
17
+ title: '{{ title }}',
18
+ description: '{{ name }}',
19
+ },
20
+ },
21
+ groups: [
22
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
23
+ { id: 'skill-content', title: '@ai-management:skills.entities.skill.groups.skill-content' },
24
+ ],
25
+ properties: [
26
+ {
27
+ name: 'id',
28
+ title: 'ID',
29
+ groupId: 'basic-info',
30
+ schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },
31
+ },
32
+ {
33
+ name: 'name',
34
+ title: '@general:terms.common.name',
35
+ groupId: 'basic-info',
36
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
37
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
38
+ validations: [{ rule: 'required' }, { rule: 'unique' }],
39
+ description: '@ai-management:skills.entities.skill.fields.name.description',
40
+ },
41
+ {
42
+ name: 'title',
43
+ title: '@general:terms.common.title',
44
+ groupId: 'basic-info',
45
+ schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },
46
+ options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },
47
+ validations: [{ rule: 'required' }],
48
+ },
49
+ {
50
+ name: 'description',
51
+ title: '@general:terms.common.description',
52
+ groupId: 'basic-info',
53
+ schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },
54
+ description: '@ai-management:skills.entities.skill.fields.description.description',
55
+ },
56
+ {
57
+ name: 'markdown',
58
+ title: '@ai-management:skills.entities.skill.fields.markdown.title',
59
+ description: '@ai-management:skills.entities.skill.fields.markdown.description',
60
+ groupId: 'skill-content',
61
+ schema: {
62
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 12 } },
63
+ },
64
+ validations: [{ rule: 'required' }],
65
+ },
66
+ ],
67
+ columns: [
68
+ { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },
69
+ { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },
70
+ {
71
+ name: 'description',
72
+ title: '@general:terms.common.description',
73
+ showAs: { type: AXPWidgetsList.Editors.TextBox },
74
+ },
75
+ ],
76
+ interfaces: {
77
+ master: {
78
+ create: {
79
+ sections: [{ id: 'basic-info' }, { id: 'skill-content' }],
80
+ properties: [
81
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
82
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
83
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
84
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
85
+ ],
86
+ },
87
+ update: {
88
+ sections: [{ id: 'basic-info' }, { id: 'skill-content' }],
89
+ properties: [
90
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
91
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
92
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
93
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
94
+ ],
95
+ },
96
+ single: {
97
+ title: '{{ title }}',
98
+ sections: [{ id: 'basic-info' }, { id: 'skill-content' }],
99
+ properties: [
100
+ { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
101
+ { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },
102
+ { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
103
+ { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },
104
+ ],
105
+ actions: [...entityMasterRecordActions()],
106
+ },
107
+ list: {
108
+ actions: [...entityMasterCrudActions()],
109
+ views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
110
+ },
111
+ },
112
+ },
113
+ };
114
+ return entityDef;
115
+ }
116
+ //#endregion
117
+
118
+ export { skillFactory };
119
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-6Ykv67zV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog-skill.entity-6Ykv67zV.mjs","sources":["../../../../libs/modules/ai-management/contracts/src/entities/skill/skill.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity ----\n\nexport async function skillFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.skill.name,\n title: RootConfig.entities.skill.title,\n icon: RootConfig.entities.skill.icon,\n formats: {\n individual: RootConfig.entities.skill.title,\n plural: RootConfig.entities.skill.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ name }}',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'skill-content', title: '@ai-management:skills.entities.skill.groups.skill-content' },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n validations: [{ rule: 'required' }, { rule: 'unique' }],\n description: '@ai-management:skills.entities.skill.fields.name.description',\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.TextBox } },\n options: { sort: { enabled: true }, filter: { inline: { enabled: true } } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } } },\n description: '@ai-management:skills.entities.skill.fields.description.description',\n },\n {\n name: 'markdown',\n title: '@ai-management:skills.entities.skill.fields.markdown.title',\n description: '@ai-management:skills.entities.skill.fields.markdown.description',\n groupId: 'skill-content',\n schema: {\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 12 } },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n { name: 'title', title: '@general:terms.common.title', showAs: { type: AXPWidgetsList.Editors.TextBox } },\n {\n name: 'description',\n title: '@general:terms.common.description',\n showAs: { type: AXPWidgetsList.Editors.TextBox },\n },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'skill-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'skill-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'skill-content' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'markdown', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,YAAY,GAAA;AAChC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI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EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACrE,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { a as aiManagementLocalEntityCatalog } from './acorex-platform-module-ai-management-client-contracts-entity-catalog-acorex-platform-module-ai-management-client-contracts-entity-catalog-DRh7A6uE.mjs';
2
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
2
+ import { RootConfig } from '@acorex-platform/module-ai-management-client/contracts';
3
+ export { aiManagementLocalEntityCatalog } from '@acorex-platform/module-ai-management-client/contracts/entity-catalog';
4
+
5
+ //#region ----- Imports -----
6
+ //#endregion
7
+ //#region ----- Provide local entities -----
8
+ /**
9
+ * Registers ai-management layouts on the client from packaged factories.
10
+ * Each `import()` targets a secondary entry so unused entities stay out of the
11
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
12
+ * `Domain:GetEntityLayout`.
13
+ */
14
+ function provideAiManagementLocalEntities() {
15
+ return provideLocalEntityCatalog({
16
+ moduleName: RootConfig.module.name,
17
+ loaders: {
18
+ [RootConfig.entities.agent.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/agent').then((m) => m.agentFactory()),
19
+ [RootConfig.entities.assist.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/assist').then((m) => m.assistFactory()),
20
+ [RootConfig.entities.mcpServer.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/mcp-server').then((m) => m.mcpServerFactory()),
21
+ [RootConfig.entities.model.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/model').then((m) => m.factoryModel()),
22
+ [RootConfig.entities.openAiEndpoint.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/open-ai-endpoint').then((m) => m.openAiEndpointFactory()),
23
+ [RootConfig.entities.rule.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/rule').then((m) => m.ruleFactory()),
24
+ [RootConfig.entities.skill.name]: () => import('@acorex-platform/module-ai-management-client/contracts/entities/skill').then((m) => m.skillFactory()),
25
+ },
26
+ });
27
+ }
28
+ //#endregion
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { provideAiManagementLocalEntities };
35
+ //# sourceMappingURL=acorex-platform-module-ai-management-client-local-entities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-ai-management-client-local-entities.mjs","sources":["../../../../libs/modules/ai-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/ai-management/client/src/lib/acorex-platform-module-ai-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-ai-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers ai-management layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideAiManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.agent.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/agent').then((m) => m.agentFactory()),\n [RootConfig.entities.assist.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/assist').then((m) => m.assistFactory()),\n [RootConfig.entities.mcpServer.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/mcp-server').then((m) => m.mcpServerFactory()),\n [RootConfig.entities.model.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/model').then((m) => m.factoryModel()),\n [RootConfig.entities.openAiEndpoint.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/open-ai-endpoint').then((m) => m.openAiEndpointFactory()),\n [RootConfig.entities.rule.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/rule').then((m) => m.ruleFactory()),\n [RootConfig.entities.skill.name]: () =>\n import('@acorex-platform/module-ai-management-client/contracts/entities/skill').then((m) => m.skillFactory()),\n },\n });\n}\n\nexport { aiManagementLocalEntityCatalog } from '@acorex-platform/module-ai-management-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,gCAAgC,GAAA;AAC9C,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC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ex-platform/module-ai-management-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -22,6 +22,42 @@
22
22
  "./contracts": {
23
23
  "types": "./types/acorex-platform-module-ai-management-client-contracts.d.ts",
24
24
  "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts.mjs"
25
+ },
26
+ "./contracts/entities/agent": {
27
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-agent.d.ts",
28
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-agent.mjs"
29
+ },
30
+ "./contracts/entities/assist": {
31
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-assist.d.ts",
32
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-assist.mjs"
33
+ },
34
+ "./contracts/entities/mcp-server": {
35
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.d.ts",
36
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-mcp-server.mjs"
37
+ },
38
+ "./contracts/entities/model": {
39
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-model.d.ts",
40
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-model.mjs"
41
+ },
42
+ "./contracts/entities/open-ai-endpoint": {
43
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.d.ts",
44
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-open-ai-endpoint.mjs"
45
+ },
46
+ "./contracts/entities/rule": {
47
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-rule.d.ts",
48
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-rule.mjs"
49
+ },
50
+ "./contracts/entities/skill": {
51
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entities-skill.d.ts",
52
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entities-skill.mjs"
53
+ },
54
+ "./contracts/entity-catalog": {
55
+ "types": "./types/acorex-platform-module-ai-management-client-contracts-entity-catalog.d.ts",
56
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-contracts-entity-catalog.mjs"
57
+ },
58
+ "./local-entities": {
59
+ "types": "./types/acorex-platform-module-ai-management-client-local-entities.d.ts",
60
+ "default": "./fesm2022/acorex-platform-module-ai-management-client-local-entities.mjs"
25
61
  }
26
62
  },
27
63
  "type": "module"
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function agentFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { agentFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function assistFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { assistFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function mcpServerFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { mcpServerFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function factoryModel(): Promise<AXPEntity | null>;
4
+
5
+ export { factoryModel };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function openAiEndpointFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { openAiEndpointFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function ruleFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { ruleFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function skillFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { skillFactory };
@@ -0,0 +1,10 @@
1
+ import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
2
+
3
+ /**
4
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
5
+ * so RootConfig imports stay light. Server seed and client `local-entities`
6
+ * consume this catalog explicitly.
7
+ */
8
+ declare const aiManagementLocalEntityCatalog: AXPLocalEntityCatalog;
9
+
10
+ export { aiManagementLocalEntityCatalog };
@@ -0,0 +1,12 @@
1
+ import * as _angular_core from '@angular/core';
2
+ export { aiManagementLocalEntityCatalog } from '@acorex-platform/module-ai-management-client/contracts/entity-catalog';
3
+
4
+ /**
5
+ * Registers ai-management layouts on the client from packaged factories.
6
+ * Each `import()` targets a secondary entry so unused entities stay out of the
7
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
8
+ * `Domain:GetEntityLayout`.
9
+ */
10
+ declare function provideAiManagementLocalEntities(): _angular_core.EnvironmentProviders;
11
+
12
+ export { provideAiManagementLocalEntities };