@wildo-ai/platform-core-backend 1.1.4 → 1.1.5
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/dist/esm/core/base-classes/manual-controllers.custom.backend.definition.d.ts.map +1 -1
- package/dist/esm/core/i18n/labels/labels.en.d.ts.map +1 -1
- package/dist/esm/core/inject/container.d.ts.map +1 -1
- package/dist/esm/core/inject/service-types.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-operations.custom.backend.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-relationships.custom.backend.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-types.custom.backend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -14
- package/dist/esm/flows-actors/factory-agents/index.d.ts +0 -2
- package/dist/esm/flows-actors/factory-agents/index.d.ts.map +0 -1
- package/dist/esm/flows-actors/factory-agents/index.js +0 -3
- package/dist/esm/flows-actors/factory-agents/index.js.map +0 -1
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.d.ts +0 -2
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.d.ts.map +0 -1
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js +0 -349
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js.map +0 -1
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.d.ts +0 -7
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.d.ts.map +0 -1
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.js +0 -6
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildo-ai/platform-core-backend",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Custom Node.js backend library wildo.ai applications",
|
|
5
5
|
"author": "Wildo AI",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -29,15 +29,16 @@
|
|
|
29
29
|
"test:watch": "vitest"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wildo-ai/platform-core-shared": "1.1.
|
|
33
|
-
"@wildo-ai/saas-backend-lib": "1.1.
|
|
34
|
-
"@wildo-ai/saas-models": "1.1.
|
|
35
|
-
"@wildo-ai/zod-decorators": "1.1.
|
|
32
|
+
"@wildo-ai/platform-core-shared": "1.1.5",
|
|
33
|
+
"@wildo-ai/saas-backend-lib": "1.1.5",
|
|
34
|
+
"@wildo-ai/saas-models": "1.1.5",
|
|
35
|
+
"@wildo-ai/zod-decorators": "1.1.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@swc/core": "^1",
|
|
39
39
|
"@types/node": "^24.0.15",
|
|
40
40
|
"concurrently": "^9.1.0",
|
|
41
|
+
"reflect-metadata": "0.2.2",
|
|
41
42
|
"rimraf": "^6.0.1",
|
|
42
43
|
"tsc-alias": "1.8.16",
|
|
43
44
|
"tsc-watch": "7.2.1",
|
|
@@ -45,15 +46,7 @@
|
|
|
45
46
|
"vitest": "^1.6.1"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"
|
|
49
|
-
"big.js": "^6.2.2",
|
|
50
|
-
"date-fns": "^4.1.0",
|
|
51
|
-
"express": "^5.1.0",
|
|
52
|
-
"inversify": "^8.1.0",
|
|
53
|
-
"lodash": "^4.17.23",
|
|
54
|
-
"reflect-metadata": "^0.2.2",
|
|
55
|
-
"ufo": "^1.6.3",
|
|
56
|
-
"zod": "^4.3.6"
|
|
49
|
+
"inversify": "^8.1.0"
|
|
57
50
|
},
|
|
58
51
|
"repository": {
|
|
59
52
|
"type": "git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/factory-agents/index.ts"],"names":[],"mappings":"AACA,cAAc,iDAAiD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/flows-actors/factory-agents/index.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,cAAc,iDAAiD,CAAC","sourcesContent":["// Factory Agents Definitions\nexport * from './prompts-library.agent-personna.backend.models';\n"]}
|
package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts-library.agent-personna.backend.models.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,WAAiE,CAAC"}
|
package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js
DELETED
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// Agent Persona Definitions for Factory Agents
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// This file contains Wildo-specific agent persona definitions and prompt content.
|
|
5
|
-
// TODO: When source-backed prompt parts become real again, consume
|
|
6
|
-
// `@wildo-ai/framework-knowledge` directly instead of reviving any repo-local
|
|
7
|
-
// prompt-part mirror.
|
|
8
|
-
// =============================================================================
|
|
9
|
-
// Exported constants for agent persona prompts (can be used by other modules)
|
|
10
|
-
export const cleanDescription = (description) => description.split("|\n").map(line => line.trim()).join("\n");
|
|
11
|
-
// =============================================================================
|
|
12
|
-
// TEMPORARY STUBS - Pending migration to real framework-knowledge-backed prompt
|
|
13
|
-
// parts
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// These will be replaced once real non-test source anchors are authored and the
|
|
16
|
-
// framework-knowledge generator is seeded with useful content.
|
|
17
|
-
// =============================================================================
|
|
18
|
-
var SourceTemplateType;
|
|
19
|
-
(function (SourceTemplateType) {
|
|
20
|
-
SourceTemplateType["SERVICES_REGISTRY_HANDLER_SERVICE_OPERATION_FLOW"] = "services.registry.handler.service.operation.flow";
|
|
21
|
-
SourceTemplateType["RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_BASE"] = "resource.operation.custom.implementation.base";
|
|
22
|
-
SourceTemplateType["RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_FACTORY"] = "resource.operation.custom.implementation.factory";
|
|
23
|
-
SourceTemplateType["TODOS_CREATE_DEFAULT_CUSTOM_IMPL"] = "todos.create.default.custom.impl";
|
|
24
|
-
})(SourceTemplateType || (SourceTemplateType = {}));
|
|
25
|
-
function getSourceTemplate(templateType) {
|
|
26
|
-
return `[TODO: Source template "${templateType}" pending migration to framework-knowledge-backed prompt parts]`;
|
|
27
|
-
}
|
|
28
|
-
const WILDO_AI_FRAMEWORK_INTRODUCTION = cleanDescription(`
|
|
29
|
-
Wildo.ai is a TypeScript/Node.js engine for building multi-tenant SaaS applications |
|
|
30
|
-
through ResourceConfiguration definitions and Apps Blueprint system. The engine |
|
|
31
|
-
provides core ResourceTypes (users, organizations, billing, audit logs) with |
|
|
32
|
-
CoreResourceOperations (CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH) and |
|
|
33
|
-
custom resource extensions through ResourceConfiguration factories.
|
|
34
|
-
|
|
35
|
-
Applications are defined via ResourceConfiguration schemas with mainSchema/databaseSchema, |
|
|
36
|
-
resourceRelationships, and operation variants (CRUD, searchable, repository-only). |
|
|
37
|
-
The engine generates backend services (Inversify+Express), frontend components |
|
|
38
|
-
(React+TypeScript), and deployment configurations across multiple locations |
|
|
39
|
-
(backend, frontend_main, frontend_admin, shared, website). |
|
|
40
|
-
|
|
41
|
-
LLM agents operate through Apps Blueprint (agents with skills, flows, artifacts) |
|
|
42
|
-
to generate AppsBlueprint_SourceCode_FilePart with specific fileKinds |
|
|
43
|
-
(RESOURCE_SCHEMA, RESOURCE_CONFIGURATION, FRONTEND_CUSTOM_COMPONENT) and locations. |
|
|
44
|
-
Custom implementations are injected via apps-custom/* ResourceConfiguration factories |
|
|
45
|
-
while maintaining engine ResourceType compatibility and operation consistency.
|
|
46
|
-
`);
|
|
47
|
-
const WILDO_AI_RESOURCES_INTRODUCTION = cleanDescription(`
|
|
48
|
-
Resources in Wildo.ai are strongly-typed data entities defined via ResourceConfiguration |
|
|
49
|
-
with mainSchema/databaseSchema (Zod), resourceRelationships (parent/child/self/inheritance), |
|
|
50
|
-
and ResourceType identifiers. Core resources include users, organizations, billing, audit logs. |
|
|
51
|
-
Each resource has a ResourceFieldIdentifier, ResourcePrimaryScope (organizations/user_self/application), |
|
|
52
|
-
and supports inheritance via discriminatorField with inheritedSchemas. Resources are connected |
|
|
53
|
-
through ResourceRelationship with cardinality (one/many), accessScopeStrategy (requires_context/optional_context/standalone), |
|
|
54
|
-
and support many-to-many via jointResourceType. |
|
|
55
|
-
`);
|
|
56
|
-
const WILDO_AI_RESOURCES_DETAILLED_DESCRIPTION = cleanDescription(`
|
|
57
|
-
Resources in Wildo.ai are defined through ResourceConfiguration schemas with strongly-typed |
|
|
58
|
-
mainSchema (Zod) and optional databaseSchema for data persistence. Each resource has a |
|
|
59
|
-
ResourceType identifier, ResourceFieldIdentifier (e.g., 'userId', 'organizationId'), and |
|
|
60
|
-
ResourcePrimaryScope (ORGANIZATIONS, USER_SELF, APPLICATION) determining |
|
|
61
|
-
access context. |
|
|
62
|
-
|
|
63
|
-
ResourceRelationships define connections between resources with cardinality (ONE, ZERO_OR_ONE, |
|
|
64
|
-
ONE_OR_MANY, MANY), ResourceRelationshipAccessScopeStrategy (REQUIRES_CONTEXT, OPTIONAL_CONTEXT, |
|
|
65
|
-
STANDALONE), and ResourceParentResourceRequirement (MANDATORY, OPTIONAL). Many-to-many |
|
|
66
|
-
relationships use jointResourceType with automatic relationship generation. |
|
|
67
|
-
|
|
68
|
-
Core ResourceTypes include: USERS, ORGANIZATIONS, USER_PROFILES, USER_PREFERENCES, |
|
|
69
|
-
ORGANIZATION_MEMBERS, APPLICATION, BILLING_CUSTOMERS, PAYMENT_METHODS, SUBSCRIPTIONS, |
|
|
70
|
-
INVOICES, AUDIT_LOGS. Custom resources extend this system through ResourceConfiguration |
|
|
71
|
-
factories. |
|
|
72
|
-
|
|
73
|
-
ResourceConfiguration supports inheritance via discriminatorField with inheritedSchemas |
|
|
74
|
-
containing discriminatorFieldValue, schema, and optional databaseSchema. Resource relationships |
|
|
75
|
-
can have inheritancePath for schema-specific connections. |
|
|
76
|
-
|
|
77
|
-
The ResourcesRegistry centralizes all configurations with resourceRelationships array, |
|
|
78
|
-
resourceConfigurations map, notificationBadgeDefinitions, and additionalUserNotificationDefinitions. |
|
|
79
|
-
Resources support getFrontendResourceLabel functions for UI display with translation support. |
|
|
80
|
-
|
|
81
|
-
Data structuration follows createOrUpdateMandatoryDiscardFields pattern excluding '_id', |
|
|
82
|
-
'createdAt', 'updatedAt', 'deletedAt', '_version_db_doc' from input operations. Resources |
|
|
83
|
-
integrate with multi-tenancy, RBAC, billing systems, and audit trails through the unified |
|
|
84
|
-
configuration system. |
|
|
85
|
-
`);
|
|
86
|
-
const WILDO_AI_RESOURCES_OPERATIONS_INTRODUCTION = cleanDescription(`
|
|
87
|
-
Resource operations are defined via ResourceConfiguration_Operation with CoreResourceOperations |
|
|
88
|
-
(CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH) and custom operations. Each operation |
|
|
89
|
-
has variants (API_CALL, CRON_JOB, BATCH_JOB, INTERNAL_CALL, REPOSITORY_ONLY) with requestDto/responseDto, |
|
|
90
|
-
roles, riskLevel, and serviceRuntimeMode. Child resource lifecycle (cascade delete) is now configured |
|
|
91
|
-
via childOperations on ResourceRelationship. Operations support bulk variants, |
|
|
92
|
-
searchable configurations with filterFields/sortFields, and custom service implementation modes (OVERRIDE_ALL, PREFIX_CORE_OPERATIONS, |
|
|
93
|
-
REPLACE_CORE_OPERATIONS, POSTFIX_CORE_OPERATIONS, AFTER_USER_NOTIFICATIONS, AT_THE_END). |
|
|
94
|
-
`);
|
|
95
|
-
const WILDO_AI_RESOURCES_OPERATIONS_DETAILLED_DESCRIPTION = cleanDescription(`
|
|
96
|
-
Resource operations are implemented through ResourceConfiguration_Operation with CoreResourceOperations |
|
|
97
|
-
(CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH). Each operation supports |
|
|
98
|
-
multiple variants: API_CALL (HTTP endpoints), CRON_JOB (scheduled), BATCH_JOB (queued processing), |
|
|
99
|
-
INTERNAL_CALL (service-to-service), REPOSITORY_ONLY (data access), and API_CALL_WITH_CALLBACK (async). |
|
|
100
|
-
|
|
101
|
-
Operations have ResourceOperationVariantType determining execution context, ResourceOperation_ServiceRuntimeMode |
|
|
102
|
-
(INLINE, BACKGROUND_JOB, QUEUED, NONE), and ResourceOperationRiskLevel (LOW, MEDIUM, HIGH, CRITICAL). |
|
|
103
|
-
Each variant includes requestDto/responseDto schemas, roles authorization, and organizationFeatures requirements. |
|
|
104
|
-
|
|
105
|
-
API_CALL variants support httpVerb |
|
|
106
|
-
(GET/POST/PUT/DELETE), bulkOperations for CREATE/UPDATE/DELETE operations, consumableToken integration, |
|
|
107
|
-
and enabledCondition functions. Search operations include searchableFields, filterFields, sortFields, |
|
|
108
|
-
and maxPaginatedResultPerPageLimit with ResourceSearchQueryRequestResult schemas. |
|
|
109
|
-
|
|
110
|
-
Custom service implementations use ResourceOperation_CustomServiceImplementationMode: OVERRIDE_ALL |
|
|
111
|
-
(complete replacement), PREFIX_CORE_OPERATIONS (pre-processing), REPLACE_CORE_OPERATIONS (core logic), |
|
|
112
|
-
POSTFIX_CORE_OPERATIONS (post-processing), AFTER_USER_NOTIFICATIONS (after notifications), |
|
|
113
|
-
AT_THE_END (final hooks). Each mode has specific input/output type transformations. |
|
|
114
|
-
|
|
115
|
-
Child resource lifecycle is configured via childOperations on ResourceRelationship with |
|
|
116
|
-
ChildLifecycleMode (IMMEDIATE, LAZY) for cascade delete operations. Notifications include userNotifications |
|
|
117
|
-
(with primaryScope and auto-generated identifiers), m2mNotifications, and notificationBadgeOperations. |
|
|
118
|
-
|
|
119
|
-
Default response patterns: DefaultDeleteResponseSchema (id, deletedAt), DefaultBulkDeleteResponseSchema |
|
|
120
|
-
(deletedIds, deletedCount), DefaultUpdateManyResponseSchema (updatedCount, updatedIds), |
|
|
121
|
-
DefaultCreateManyResponseSchema (items, createdCount), DefaultActionResponseSchema (success, message, result). |
|
|
122
|
-
|
|
123
|
-
Resource operation paths use ResourceConfiguration_OperationPath with resourceIdentifier, operationIdentifier, |
|
|
124
|
-
variantType, isOperationDefault, isBulkOperation, and optional variantKey for operation routing and |
|
|
125
|
-
service registry management. |
|
|
126
|
-
`);
|
|
127
|
-
const WILDO_AI_APPLICATION_CUSTOM_SERVICES_INTRODUCTION = cleanDescription(`
|
|
128
|
-
Custom services extend engine operations via ResourceOperationCustomImplementationBase |
|
|
129
|
-
with typed input/output schemas and execution placeholders. Custom implementations are registered |
|
|
130
|
-
through ResourceCustomServiceImplementationFactory and accessed via ResourceConfiguration_OperationPath. |
|
|
131
|
-
Services provide utils (logger, errorBuilder, resourcesRegistry, servicesRegistry, repositoriesRegistry, |
|
|
132
|
-
externalApiHandler, platformMutualizedHandler, serverlessServicesHandler) and support schema parsing |
|
|
133
|
-
with passthrough for REPLACE_CORE_OPERATIONS mode. Custom services integrate at specific lifecycle |
|
|
134
|
-
points while maintaining ResourceType compatibility and operation consistency. |
|
|
135
|
-
`);
|
|
136
|
-
const WILDO_AI_APPLICATION_CUSTOM_SERVICES_DETAILLED_DESCRIPTION = cleanDescription(`
|
|
137
|
-
Custom services in Wildo.ai extend ResourceOperationCustomImplementationBase<TInput, TOutput> |
|
|
138
|
-
with strongly-typed input/output schemas and execution placeholders. Custom implementations are |
|
|
139
|
-
registered via ResourceCustomServiceImplementationFactory returning operationPathKey and |
|
|
140
|
-
implementation instances for ResourceOperationCustomImplementationRegistryBackendService. |
|
|
141
|
-
|
|
142
|
-
Custom service modes provide execution hooks: overrideAll() replaces entire operation flow, |
|
|
143
|
-
prefixCoreOperations() handles pre-processing with input augmentation, replaceCoreOperations() |
|
|
144
|
-
replaces core business logic between repository and post-logic, postfixCoreOperations() manages |
|
|
145
|
-
post-processing, afterUserNotifications() executes after notification dispatch, and atTheEnd() |
|
|
146
|
-
provides final cleanup hooks. |
|
|
147
|
-
|
|
148
|
-
Implementation factories use createResourceCustomServiceImplementation() with operationPath |
|
|
149
|
-
(resourceIdentifier, operationIdentifier, variantType), requestDtoSchema/responseDtoSchema |
|
|
150
|
-
for type safety, and handlers object containing mode-specific functions. Each handler receives |
|
|
151
|
-
_id, input, executionContext, operationPath, and utils (logger, errorBuilder, registries). |
|
|
152
|
-
|
|
153
|
-
Custom services integrate with ServicesRegistryHandlerBackendService through ResourceConfiguration_OperationPath |
|
|
154
|
-
routing. The engine provides ResourceOperation_CustomImplementation_Utils including logger, |
|
|
155
|
-
errorBuilder, resourcesRegistry, servicesRegistry, repositoriesRegistry, externalApiHandler, |
|
|
156
|
-
platformMutualizedHandler, and serverlessServicesHandler for comprehensive service access. |
|
|
157
|
-
|
|
158
|
-
Type transformations use ResourceOperationCustomImplementation_InputTypeOf and ResourceOperationCustomImplementation_OutputTypeOf |
|
|
159
|
-
with mode-specific behavior: OVERRIDE_ALL uses TInput->TOutput, PREFIX_CORE_OPERATIONS augments |
|
|
160
|
-
input with TAugment, REPLACE_CORE_OPERATIONS supports passthrough parsing, and other modes |
|
|
161
|
-
transform based on execution context. |
|
|
162
|
-
|
|
163
|
-
Custom implementations support apps-custom structure with custom-backend-lib containing service |
|
|
164
|
-
implementations, custom-shared-lib defining resource configurations, and integration points |
|
|
165
|
-
maintaining ResourceType compatibility. Examples include todos.create.default.custom-impl.custom.definitions |
|
|
166
|
-
showing complete custom operation implementation patterns. |
|
|
167
|
-
|
|
168
|
-
The system ensures type safety through parseResourceOperation_CustomServiceImplementationSchema() |
|
|
169
|
-
handling input/output validation, schema passthrough for augmented types, and error handling |
|
|
170
|
-
with ExecutionContext integration for comprehensive operation lifecycle management. |
|
|
171
|
-
`);
|
|
172
|
-
/*
|
|
173
|
-
|
|
174
|
-
const RAW_PROMPTS_LIBRARY_AGENTS_PERSONAS :{ [k in AppsBlueprint_AgentPersonas]: Agent } = {
|
|
175
|
-
[AppsBlueprint_AgentPersonas.CUSTOM_CODE_EDITOR]: {
|
|
176
|
-
persona: AppsBlueprint_AgentPersonas.CUSTOM_CODE_EDITOR,
|
|
177
|
-
status: Agent_Status.ACTIVE,
|
|
178
|
-
accessControl: {
|
|
179
|
-
primaryScope: ResourcePrimaryScope.APPLICATION,
|
|
180
|
-
approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
|
|
181
|
-
},
|
|
182
|
-
llmConfig: {
|
|
183
|
-
model: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
skill: {
|
|
187
|
-
name: "custom_code_editor",
|
|
188
|
-
role: `You are a senior backend software engineer specialized in typescript and node.js.
|
|
189
|
-
You are in responsibility of implementing and maintaining a custom implementation for a service using the wildo-ai engine.
|
|
190
|
-
|
|
191
|
-
${WILDO_AI_FRAMEWORK_INTRODUCTION}
|
|
192
|
-
|
|
193
|
-
This Service will be injected into the service layer of Wildo engine and will be executed in the context of the end-user's application for the specific application.
|
|
194
|
-
for information the injection is madelike following :
|
|
195
|
-
${getSourceTemplate(SourceTemplateType.SERVICES_REGISTRY_HANDLER_SERVICE_OPERATION_FLOW)}
|
|
196
|
-
|
|
197
|
-
Here are the engine base classes and factory for custom service implementations:
|
|
198
|
-
${getSourceTemplate(SourceTemplateType.RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_BASE)}
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
${getSourceTemplate(SourceTemplateType.RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_FACTORY)}
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
And here is an example of a custom implementation for a service:
|
|
207
|
-
${getSourceTemplate(SourceTemplateType.TODOS_CREATE_DEFAULT_CUSTOM_IMPL)}
|
|
208
|
-
|
|
209
|
-
`,
|
|
210
|
-
inputFormats: [],
|
|
211
|
-
outputFormat: {
|
|
212
|
-
kind: FlowsActors_IO_PartKind.FILE,
|
|
213
|
-
format: AppsBlueprint_FileFormat.TYPESCRIPT,
|
|
214
|
-
},
|
|
215
|
-
tags: [],
|
|
216
|
-
},
|
|
217
|
-
version: "1.0.0",
|
|
218
|
-
},
|
|
219
|
-
[AppsBlueprint_AgentPersonas.CUSTOM_CODE_REVIEWER]: {
|
|
220
|
-
persona: AppsBlueprint_AgentPersonas.CUSTOM_CODE_REVIEWER,
|
|
221
|
-
role: "Code Reviewer",
|
|
222
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
223
|
-
skills: [],
|
|
224
|
-
version: "1.0.0",
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
[AppsBlueprint_AgentPersonas.RESOURCES_CODE_EDITOR]: {
|
|
228
|
-
persona: AppsBlueprint_AgentPersonas.RESOURCES_CODE_EDITOR,
|
|
229
|
-
role: "Resources Code Editor",
|
|
230
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
231
|
-
skills: [],
|
|
232
|
-
version: "1.0.0",
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
[AppsBlueprint_AgentPersonas.RESOURCES_CODE_REVIEWER]: {
|
|
236
|
-
persona: AppsBlueprint_AgentPersonas.RESOURCES_CODE_REVIEWER,
|
|
237
|
-
role: "Resources Code Reviewer",
|
|
238
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
239
|
-
skills: [],
|
|
240
|
-
version: "1.0.0",
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
[AppsBlueprint_AgentPersonas.TASK_ENHANCER]: {
|
|
244
|
-
persona: AppsBlueprint_AgentPersonas.TASK_ENHANCER,
|
|
245
|
-
role: "Task Enhancer",
|
|
246
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
247
|
-
skills: [],
|
|
248
|
-
version: "1.0.0",
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
[AppsBlueprint_AgentPersonas.MARKETING_STRATEGIST]: {
|
|
252
|
-
persona: AppsBlueprint_AgentPersonas.MARKETING_STRATEGIST,
|
|
253
|
-
role: "Marketing Strategist",
|
|
254
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
255
|
-
skills: [],
|
|
256
|
-
version: "1.0.0",
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
[AppsBlueprint_AgentPersonas.BRAINSTORMER]: {
|
|
260
|
-
persona: AppsBlueprint_AgentPersonas.BRAINSTORMER,
|
|
261
|
-
role: "Brainstormer",
|
|
262
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
263
|
-
skills: [],
|
|
264
|
-
version: "1.0.0",
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
[AppsBlueprint_AgentPersonas.CONTENT_WRITER]: {
|
|
268
|
-
persona: AppsBlueprint_AgentPersonas.CONTENT_WRITER,
|
|
269
|
-
role: "Content Writer",
|
|
270
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
271
|
-
skills: [],
|
|
272
|
-
version: "1.0.0",
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
[AppsBlueprint_AgentPersonas.TASK_PLANNER]: {
|
|
276
|
-
persona: AppsBlueprint_AgentPersonas.TASK_PLANNER,
|
|
277
|
-
role: "Task Planner",
|
|
278
|
-
aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
279
|
-
skills: [],
|
|
280
|
-
version: "1.0.0",
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
[AppsBlueprint_AgentPersonas.APP_CONFIGURATOR]: {
|
|
284
|
-
persona: AppsBlueprint_AgentPersonas.APP_CONFIGURATOR,
|
|
285
|
-
status: Agent_Status.ACTIVE,
|
|
286
|
-
accessControl: {
|
|
287
|
-
primaryScope: ResourcePrimaryScope.APPLICATION,
|
|
288
|
-
approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
|
|
289
|
-
},
|
|
290
|
-
llmConfig: {
|
|
291
|
-
model: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
292
|
-
},
|
|
293
|
-
skill: {
|
|
294
|
-
name: "app_configurator",
|
|
295
|
-
role: "App Configurator",
|
|
296
|
-
type: Agent_Skill_Type.ANALYSIS,
|
|
297
|
-
inputFormats: [],
|
|
298
|
-
outputSchema: {
|
|
299
|
-
kind: FlowsActors_PartKind.FILE,
|
|
300
|
-
format: FlowsActors_FileFormat.TYPESCRIPT,
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
version: "1.0.0",
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
[AppsBlueprint_AgentPersonas.BILLING_STRATEGIST]: {
|
|
307
|
-
persona: AppsBlueprint_AgentPersonas.BILLING_STRATEGIST,
|
|
308
|
-
status: Agent_Status.ACTIVE,
|
|
309
|
-
accessControl: {
|
|
310
|
-
primaryScope: ResourcePrimaryScope.APPLICATION,
|
|
311
|
-
approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
|
|
312
|
-
},
|
|
313
|
-
llmConfig: {
|
|
314
|
-
model: Agent_LLMModel.OPEN_AI_GPT_4O,
|
|
315
|
-
},
|
|
316
|
-
skill: {
|
|
317
|
-
name: "billing_strategy_analysis",
|
|
318
|
-
role: "Billing Strategist",
|
|
319
|
-
type: Agent_Skill_Type.ANALYSIS,
|
|
320
|
-
inputFormats: [],
|
|
321
|
-
outputSchema: {
|
|
322
|
-
kind: FlowsActors_PartKind.FILE,
|
|
323
|
-
format: FlowsActors_FileFormat.TYPESCRIPT,
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
const ENTRIES = Object.entries(RAW_PROMPTS_LIBRARY_AGENTS_PERSONAS) as [AppsBlueprint_AgentPersonas, Agent][];
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
export const PromptsLibraryAgentsPersonas :{ [k in AppsBlueprint_AgentPersonas]: Agent } = (
|
|
334
|
-
Object.fromEntries(
|
|
335
|
-
ENTRIES.map(([key, persona]) => [
|
|
336
|
-
key,
|
|
337
|
-
{
|
|
338
|
-
...persona,
|
|
339
|
-
skill: {
|
|
340
|
-
...persona.skill,
|
|
341
|
-
role: cleanDescription(persona.skill.role),
|
|
342
|
-
},
|
|
343
|
-
},
|
|
344
|
-
])
|
|
345
|
-
) as unknown
|
|
346
|
-
) as { [k in AppsBlueprint_AgentPersonas]: Agent };
|
|
347
|
-
|
|
348
|
-
*/
|
|
349
|
-
//# sourceMappingURL=prompts-library.agent-personna.backend.models.js.map
|
package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts-library.agent-personna.backend.models.js","sourceRoot":"","sources":["../../../../../src/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,gFAAgF;AAChF,kFAAkF;AAClF,mEAAmE;AACnE,8EAA8E;AAC9E,sBAAsB;AACtB,gFAAgF;AAEhF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAAmB,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEtH,gFAAgF;AAChF,gFAAgF;AAChF,QAAQ;AACR,gFAAgF;AAChF,gFAAgF;AAChF,+DAA+D;AAC/D,gFAAgF;AAEhF,IAAK,kBAKJ;AALD,WAAK,kBAAkB;IACrB,2HAAqG,CAAA;IACrG,qHAA+F,CAAA;IAC/F,2HAAqG,CAAA;IACrG,2FAAqE,CAAA;AACvE,CAAC,EALI,kBAAkB,KAAlB,kBAAkB,QAKtB;AAED,SAAS,iBAAiB,CAAC,YAAgC;IACzD,OAAO,2BAA2B,YAAY,iEAAiE,CAAC;AAClH,CAAC;AAED,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;CAkBxD,CAAC,CAAC;AAEH,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;;;;;;;;CAQxD,CAAC,CAAC;AAEH,MAAM,wCAAwC,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BjE,CAAC,CAAC;AAEH,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;;;;;;;;CAQnE,CAAC,CAAC;AAEH,MAAM,mDAAmD,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B5E,CAAC,CAAC;AAEH,MAAM,iDAAiD,GAAG,gBAAgB,CAAC;;;;;;;;CAQ1E,CAAC,CAAC;AAEH,MAAM,0DAA0D,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCnF,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgLE","sourcesContent":["// =============================================================================\n// Agent Persona Definitions for Factory Agents\n// =============================================================================\n// This file contains Wildo-specific agent persona definitions and prompt content.\n// TODO: When source-backed prompt parts become real again, consume\n// `@wildo-ai/framework-knowledge` directly instead of reviving any repo-local\n// prompt-part mirror.\n// =============================================================================\n\n// Exported constants for agent persona prompts (can be used by other modules)\nexport const cleanDescription = (description: string) => description.split(\"|\\n\").map(line => line.trim()).join(\"\\n\");\n\n// =============================================================================\n// TEMPORARY STUBS - Pending migration to real framework-knowledge-backed prompt\n// parts\n// =============================================================================\n// These will be replaced once real non-test source anchors are authored and the\n// framework-knowledge generator is seeded with useful content.\n// =============================================================================\n\nenum SourceTemplateType {\n SERVICES_REGISTRY_HANDLER_SERVICE_OPERATION_FLOW = 'services.registry.handler.service.operation.flow',\n RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_BASE = 'resource.operation.custom.implementation.base',\n RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_FACTORY = 'resource.operation.custom.implementation.factory',\n TODOS_CREATE_DEFAULT_CUSTOM_IMPL = 'todos.create.default.custom.impl',\n}\n\nfunction getSourceTemplate(templateType: SourceTemplateType): string {\n return `[TODO: Source template \"${templateType}\" pending migration to framework-knowledge-backed prompt parts]`;\n}\n\nconst WILDO_AI_FRAMEWORK_INTRODUCTION = cleanDescription(`\n Wildo.ai is a TypeScript/Node.js engine for building multi-tenant SaaS applications |\n through ResourceConfiguration definitions and Apps Blueprint system. The engine |\n provides core ResourceTypes (users, organizations, billing, audit logs) with |\n CoreResourceOperations (CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH) and |\n custom resource extensions through ResourceConfiguration factories.\n \n Applications are defined via ResourceConfiguration schemas with mainSchema/databaseSchema, |\n resourceRelationships, and operation variants (CRUD, searchable, repository-only). |\n The engine generates backend services (Inversify+Express), frontend components |\n (React+TypeScript), and deployment configurations across multiple locations |\n (backend, frontend_main, frontend_admin, shared, website). |\n \n LLM agents operate through Apps Blueprint (agents with skills, flows, artifacts) |\n to generate AppsBlueprint_SourceCode_FilePart with specific fileKinds |\n (RESOURCE_SCHEMA, RESOURCE_CONFIGURATION, FRONTEND_CUSTOM_COMPONENT) and locations. |\n Custom implementations are injected via apps-custom/* ResourceConfiguration factories |\n while maintaining engine ResourceType compatibility and operation consistency.\n`);\n\nconst WILDO_AI_RESOURCES_INTRODUCTION = cleanDescription(`\n Resources in Wildo.ai are strongly-typed data entities defined via ResourceConfiguration |\n with mainSchema/databaseSchema (Zod), resourceRelationships (parent/child/self/inheritance), |\n and ResourceType identifiers. Core resources include users, organizations, billing, audit logs. |\n Each resource has a ResourceFieldIdentifier, ResourcePrimaryScope (organizations/user_self/application), |\n and supports inheritance via discriminatorField with inheritedSchemas. Resources are connected |\n through ResourceRelationship with cardinality (one/many), accessScopeStrategy (requires_context/optional_context/standalone), |\n and support many-to-many via jointResourceType. |\n`);\n\nconst WILDO_AI_RESOURCES_DETAILLED_DESCRIPTION = cleanDescription(`\n Resources in Wildo.ai are defined through ResourceConfiguration schemas with strongly-typed |\n mainSchema (Zod) and optional databaseSchema for data persistence. Each resource has a |\n ResourceType identifier, ResourceFieldIdentifier (e.g., 'userId', 'organizationId'), and |\n ResourcePrimaryScope (ORGANIZATIONS, USER_SELF, APPLICATION) determining |\n access context. |\n\n ResourceRelationships define connections between resources with cardinality (ONE, ZERO_OR_ONE, |\n ONE_OR_MANY, MANY), ResourceRelationshipAccessScopeStrategy (REQUIRES_CONTEXT, OPTIONAL_CONTEXT, |\n STANDALONE), and ResourceParentResourceRequirement (MANDATORY, OPTIONAL). Many-to-many |\n relationships use jointResourceType with automatic relationship generation. |\n\n Core ResourceTypes include: USERS, ORGANIZATIONS, USER_PROFILES, USER_PREFERENCES, |\n ORGANIZATION_MEMBERS, APPLICATION, BILLING_CUSTOMERS, PAYMENT_METHODS, SUBSCRIPTIONS, |\n INVOICES, AUDIT_LOGS. Custom resources extend this system through ResourceConfiguration |\n factories. |\n\n ResourceConfiguration supports inheritance via discriminatorField with inheritedSchemas |\n containing discriminatorFieldValue, schema, and optional databaseSchema. Resource relationships |\n can have inheritancePath for schema-specific connections. |\n\n The ResourcesRegistry centralizes all configurations with resourceRelationships array, |\n resourceConfigurations map, notificationBadgeDefinitions, and additionalUserNotificationDefinitions. |\n Resources support getFrontendResourceLabel functions for UI display with translation support. |\n\n Data structuration follows createOrUpdateMandatoryDiscardFields pattern excluding '_id', |\n 'createdAt', 'updatedAt', 'deletedAt', '_version_db_doc' from input operations. Resources |\n integrate with multi-tenancy, RBAC, billing systems, and audit trails through the unified |\n configuration system. |\n`);\n\nconst WILDO_AI_RESOURCES_OPERATIONS_INTRODUCTION = cleanDescription(`\n Resource operations are defined via ResourceConfiguration_Operation with CoreResourceOperations |\n (CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH) and custom operations. Each operation |\n has variants (API_CALL, CRON_JOB, BATCH_JOB, INTERNAL_CALL, REPOSITORY_ONLY) with requestDto/responseDto, |\n roles, riskLevel, and serviceRuntimeMode. Child resource lifecycle (cascade delete) is now configured |\n via childOperations on ResourceRelationship. Operations support bulk variants, |\n searchable configurations with filterFields/sortFields, and custom service implementation modes (OVERRIDE_ALL, PREFIX_CORE_OPERATIONS, |\n REPLACE_CORE_OPERATIONS, POSTFIX_CORE_OPERATIONS, AFTER_USER_NOTIFICATIONS, AT_THE_END). |\n`);\n\nconst WILDO_AI_RESOURCES_OPERATIONS_DETAILLED_DESCRIPTION = cleanDescription(`\n Resource operations are implemented through ResourceConfiguration_Operation with CoreResourceOperations |\n (CREATE, READ, UPDATE, DELETE, LIST, COUNT, SEARCH). Each operation supports |\n multiple variants: API_CALL (HTTP endpoints), CRON_JOB (scheduled), BATCH_JOB (queued processing), |\n INTERNAL_CALL (service-to-service), REPOSITORY_ONLY (data access), and API_CALL_WITH_CALLBACK (async). |\n\n Operations have ResourceOperationVariantType determining execution context, ResourceOperation_ServiceRuntimeMode |\n (INLINE, BACKGROUND_JOB, QUEUED, NONE), and ResourceOperationRiskLevel (LOW, MEDIUM, HIGH, CRITICAL). |\n Each variant includes requestDto/responseDto schemas, roles authorization, and organizationFeatures requirements. |\n\n API_CALL variants support httpVerb |\n (GET/POST/PUT/DELETE), bulkOperations for CREATE/UPDATE/DELETE operations, consumableToken integration, |\n and enabledCondition functions. Search operations include searchableFields, filterFields, sortFields, |\n and maxPaginatedResultPerPageLimit with ResourceSearchQueryRequestResult schemas. |\n\n Custom service implementations use ResourceOperation_CustomServiceImplementationMode: OVERRIDE_ALL |\n (complete replacement), PREFIX_CORE_OPERATIONS (pre-processing), REPLACE_CORE_OPERATIONS (core logic), |\n POSTFIX_CORE_OPERATIONS (post-processing), AFTER_USER_NOTIFICATIONS (after notifications), |\n AT_THE_END (final hooks). Each mode has specific input/output type transformations. |\n\n Child resource lifecycle is configured via childOperations on ResourceRelationship with |\n ChildLifecycleMode (IMMEDIATE, LAZY) for cascade delete operations. Notifications include userNotifications |\n (with primaryScope and auto-generated identifiers), m2mNotifications, and notificationBadgeOperations. |\n\n Default response patterns: DefaultDeleteResponseSchema (id, deletedAt), DefaultBulkDeleteResponseSchema |\n (deletedIds, deletedCount), DefaultUpdateManyResponseSchema (updatedCount, updatedIds), |\n DefaultCreateManyResponseSchema (items, createdCount), DefaultActionResponseSchema (success, message, result). |\n\n Resource operation paths use ResourceConfiguration_OperationPath with resourceIdentifier, operationIdentifier, |\n variantType, isOperationDefault, isBulkOperation, and optional variantKey for operation routing and |\n service registry management. |\n`);\n\nconst WILDO_AI_APPLICATION_CUSTOM_SERVICES_INTRODUCTION = cleanDescription(`\n Custom services extend engine operations via ResourceOperationCustomImplementationBase |\n with typed input/output schemas and execution placeholders. Custom implementations are registered |\n through ResourceCustomServiceImplementationFactory and accessed via ResourceConfiguration_OperationPath. |\n Services provide utils (logger, errorBuilder, resourcesRegistry, servicesRegistry, repositoriesRegistry, |\n externalApiHandler, platformMutualizedHandler, serverlessServicesHandler) and support schema parsing |\n with passthrough for REPLACE_CORE_OPERATIONS mode. Custom services integrate at specific lifecycle |\n points while maintaining ResourceType compatibility and operation consistency. |\n`);\n\nconst WILDO_AI_APPLICATION_CUSTOM_SERVICES_DETAILLED_DESCRIPTION = cleanDescription(`\n Custom services in Wildo.ai extend ResourceOperationCustomImplementationBase<TInput, TOutput> |\n with strongly-typed input/output schemas and execution placeholders. Custom implementations are |\n registered via ResourceCustomServiceImplementationFactory returning operationPathKey and |\n implementation instances for ResourceOperationCustomImplementationRegistryBackendService. |\n\n Custom service modes provide execution hooks: overrideAll() replaces entire operation flow, |\n prefixCoreOperations() handles pre-processing with input augmentation, replaceCoreOperations() |\n replaces core business logic between repository and post-logic, postfixCoreOperations() manages |\n post-processing, afterUserNotifications() executes after notification dispatch, and atTheEnd() |\n provides final cleanup hooks. |\n\n Implementation factories use createResourceCustomServiceImplementation() with operationPath |\n (resourceIdentifier, operationIdentifier, variantType), requestDtoSchema/responseDtoSchema |\n for type safety, and handlers object containing mode-specific functions. Each handler receives |\n _id, input, executionContext, operationPath, and utils (logger, errorBuilder, registries). |\n\n Custom services integrate with ServicesRegistryHandlerBackendService through ResourceConfiguration_OperationPath |\n routing. The engine provides ResourceOperation_CustomImplementation_Utils including logger, |\n errorBuilder, resourcesRegistry, servicesRegistry, repositoriesRegistry, externalApiHandler, |\n platformMutualizedHandler, and serverlessServicesHandler for comprehensive service access. |\n\n Type transformations use ResourceOperationCustomImplementation_InputTypeOf and ResourceOperationCustomImplementation_OutputTypeOf |\n with mode-specific behavior: OVERRIDE_ALL uses TInput->TOutput, PREFIX_CORE_OPERATIONS augments |\n input with TAugment, REPLACE_CORE_OPERATIONS supports passthrough parsing, and other modes |\n transform based on execution context. |\n\n Custom implementations support apps-custom structure with custom-backend-lib containing service |\n implementations, custom-shared-lib defining resource configurations, and integration points |\n maintaining ResourceType compatibility. Examples include todos.create.default.custom-impl.custom.definitions |\n showing complete custom operation implementation patterns. |\n\n The system ensures type safety through parseResourceOperation_CustomServiceImplementationSchema() |\n handling input/output validation, schema passthrough for augmented types, and error handling |\n with ExecutionContext integration for comprehensive operation lifecycle management. |\n`);\n\n\n/*\n\nconst RAW_PROMPTS_LIBRARY_AGENTS_PERSONAS :{ [k in AppsBlueprint_AgentPersonas]: Agent } = {\n [AppsBlueprint_AgentPersonas.CUSTOM_CODE_EDITOR]: {\n persona: AppsBlueprint_AgentPersonas.CUSTOM_CODE_EDITOR,\n status: Agent_Status.ACTIVE,\n accessControl: {\n primaryScope: ResourcePrimaryScope.APPLICATION,\n approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n llmConfig: {\n model: Agent_LLMModel.OPEN_AI_GPT_4O,\n \n },\n skill: {\n name: \"custom_code_editor\",\n role: `You are a senior backend software engineer specialized in typescript and node.js.\n You are in responsibility of implementing and maintaining a custom implementation for a service using the wildo-ai engine.\n\n ${WILDO_AI_FRAMEWORK_INTRODUCTION}\n \n This Service will be injected into the service layer of Wildo engine and will be executed in the context of the end-user's application for the specific application.\n for information the injection is madelike following :\n ${getSourceTemplate(SourceTemplateType.SERVICES_REGISTRY_HANDLER_SERVICE_OPERATION_FLOW)}\n\n Here are the engine base classes and factory for custom service implementations:\n ${getSourceTemplate(SourceTemplateType.RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_BASE)}\n \n ---\n \n ${getSourceTemplate(SourceTemplateType.RESOURCE_OPERATION_CUSTOM_IMPLEMENTATION_FACTORY)}\n \n ---\n \n And here is an example of a custom implementation for a service:\n ${getSourceTemplate(SourceTemplateType.TODOS_CREATE_DEFAULT_CUSTOM_IMPL)}\n\n `,\n inputFormats: [],\n outputFormat: {\n kind: FlowsActors_IO_PartKind.FILE,\n format: AppsBlueprint_FileFormat.TYPESCRIPT,\n },\n tags: [],\n },\n version: \"1.0.0\",\n },\n [AppsBlueprint_AgentPersonas.CUSTOM_CODE_REVIEWER]: {\n persona: AppsBlueprint_AgentPersonas.CUSTOM_CODE_REVIEWER,\n role: \"Code Reviewer\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.RESOURCES_CODE_EDITOR]: {\n persona: AppsBlueprint_AgentPersonas.RESOURCES_CODE_EDITOR,\n role: \"Resources Code Editor\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.RESOURCES_CODE_REVIEWER]: {\n persona: AppsBlueprint_AgentPersonas.RESOURCES_CODE_REVIEWER,\n role: \"Resources Code Reviewer\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.TASK_ENHANCER]: {\n persona: AppsBlueprint_AgentPersonas.TASK_ENHANCER,\n role: \"Task Enhancer\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.MARKETING_STRATEGIST]: {\n persona: AppsBlueprint_AgentPersonas.MARKETING_STRATEGIST,\n role: \"Marketing Strategist\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.BRAINSTORMER]: {\n persona: AppsBlueprint_AgentPersonas.BRAINSTORMER,\n role: \"Brainstormer\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.CONTENT_WRITER]: {\n persona: AppsBlueprint_AgentPersonas.CONTENT_WRITER,\n role: \"Content Writer\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.TASK_PLANNER]: {\n persona: AppsBlueprint_AgentPersonas.TASK_PLANNER,\n role: \"Task Planner\",\n aiModel: Agent_LLMModel.OPEN_AI_GPT_4O,\n skills: [],\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.APP_CONFIGURATOR]: {\n persona: AppsBlueprint_AgentPersonas.APP_CONFIGURATOR,\n status: Agent_Status.ACTIVE,\n accessControl: {\n primaryScope: ResourcePrimaryScope.APPLICATION,\n approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n llmConfig: {\n model: Agent_LLMModel.OPEN_AI_GPT_4O,\n },\n skill: {\n name: \"app_configurator\",\n role: \"App Configurator\",\n type: Agent_Skill_Type.ANALYSIS,\n inputFormats: [],\n outputSchema: {\n kind: FlowsActors_PartKind.FILE,\n format: FlowsActors_FileFormat.TYPESCRIPT,\n },\n },\n version: \"1.0.0\",\n },\n \n [AppsBlueprint_AgentPersonas.BILLING_STRATEGIST]: {\n persona: AppsBlueprint_AgentPersonas.BILLING_STRATEGIST,\n status: Agent_Status.ACTIVE,\n accessControl: {\n primaryScope: ResourcePrimaryScope.APPLICATION,\n approverRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n llmConfig: {\n model: Agent_LLMModel.OPEN_AI_GPT_4O,\n },\n skill: {\n name: \"billing_strategy_analysis\",\n role: \"Billing Strategist\",\n type: Agent_Skill_Type.ANALYSIS,\n inputFormats: [],\n outputSchema: {\n kind: FlowsActors_PartKind.FILE,\n format: FlowsActors_FileFormat.TYPESCRIPT,\n },\n },\n },\n};\n\nconst ENTRIES = Object.entries(RAW_PROMPTS_LIBRARY_AGENTS_PERSONAS) as [AppsBlueprint_AgentPersonas, Agent][];\n\n\n\nexport const PromptsLibraryAgentsPersonas :{ [k in AppsBlueprint_AgentPersonas]: Agent } = (\n Object.fromEntries(\n ENTRIES.map(([key, persona]) => [\n key,\n { \n ...persona, \n skill: {\n ...persona.skill,\n role: cleanDescription(persona.skill.role),\n },\n },\n ])\n ) as unknown\n) as { [k in AppsBlueprint_AgentPersonas]: Agent };\n\n*/"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FlowActorSystem_InitializationFactoryMap } from "@wildo-ai/saas-backend-lib";
|
|
2
|
-
import { FlowsActors_Agent } from "@wildo-ai/saas-models";
|
|
3
|
-
export declare const customBackend_FlowsActorsRegistry: {
|
|
4
|
-
flowActorSystemsFactoryMap: FlowActorSystem_InitializationFactoryMap;
|
|
5
|
-
agents: FlowsActors_Agent[];
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=flows-actors.default.definition.schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flows-actors.default.definition.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/flows-actors.default.definition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,eAAO,MAAM,iCAAiC,EAAE;IAC9C,0BAA0B,EAAE,wCAAwC,CAAC;IACrE,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAI7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flows-actors.default.definition.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/flows-actors.default.definition.schemas.ts"],"names":[],"mappings":"AAGA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,iCAAiC,GAG1C;IACF,0BAA0B,EAAE,EAAE;IAC9B,MAAM,EAAE,EAAE;CACX,CAAC","sourcesContent":["import { FlowActorSystem_InitializationFactoryMap } from \"@wildo-ai/saas-backend-lib\";\nimport { FlowsActors_Agent } from \"@wildo-ai/saas-models\";\n\n// Export with consistent naming convention matching resources registry pattern\nexport const customBackend_FlowsActorsRegistry: {\n flowActorSystemsFactoryMap: FlowActorSystem_InitializationFactoryMap;\n agents: FlowsActors_Agent[];\n} = {\n flowActorSystemsFactoryMap: {},\n agents: [],\n};\n\n"]}
|