@wildo-ai/platform-core-backend 1.1.1
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/LICENSE +34 -0
- package/dist/esm/.builder.pid +9 -0
- package/dist/esm/core/base-classes/manual-controllers.custom.backend.definition.d.ts +13 -0
- package/dist/esm/core/base-classes/manual-controllers.custom.backend.definition.d.ts.map +1 -0
- package/dist/esm/core/base-classes/manual-controllers.custom.backend.definition.js +13 -0
- package/dist/esm/core/base-classes/manual-controllers.custom.backend.definition.js.map +1 -0
- package/dist/esm/core/i18n/labels/labels.en.d.ts +291 -0
- package/dist/esm/core/i18n/labels/labels.en.d.ts.map +1 -0
- package/dist/esm/core/i18n/labels/labels.en.js +291 -0
- package/dist/esm/core/i18n/labels/labels.en.js.map +1 -0
- package/dist/esm/core/inject/container.d.ts +13 -0
- package/dist/esm/core/inject/container.d.ts.map +1 -0
- package/dist/esm/core/inject/container.js +23 -0
- package/dist/esm/core/inject/container.js.map +1 -0
- package/dist/esm/core/inject/service-types.d.ts +4 -0
- package/dist/esm/core/inject/service-types.d.ts.map +1 -0
- package/dist/esm/core/inject/service-types.js +2 -0
- package/dist/esm/core/inject/service-types.js.map +1 -0
- package/dist/esm/core/resources/resources-operations.custom.backend.definitions.d.ts +6 -0
- package/dist/esm/core/resources/resources-operations.custom.backend.definitions.d.ts.map +1 -0
- package/dist/esm/core/resources/resources-operations.custom.backend.definitions.js +6 -0
- package/dist/esm/core/resources/resources-operations.custom.backend.definitions.js.map +1 -0
- package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.d.ts +4 -0
- package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.d.ts.map +1 -0
- package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.js +9 -0
- package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.js.map +1 -0
- package/dist/esm/core/resources/resources-relationships.custom.backend.definitions.d.ts +3 -0
- package/dist/esm/core/resources/resources-relationships.custom.backend.definitions.d.ts.map +1 -0
- package/dist/esm/core/resources/resources-relationships.custom.backend.definitions.js +2 -0
- package/dist/esm/core/resources/resources-relationships.custom.backend.definitions.js.map +1 -0
- package/dist/esm/core/resources/resources-types.custom.backend.schemas.d.ts +8 -0
- package/dist/esm/core/resources/resources-types.custom.backend.schemas.d.ts.map +1 -0
- package/dist/esm/core/resources/resources-types.custom.backend.schemas.js +11 -0
- package/dist/esm/core/resources/resources-types.custom.backend.schemas.js.map +1 -0
- package/dist/esm/flows-actors/factory-agents/index.d.ts +2 -0
- package/dist/esm/flows-actors/factory-agents/index.d.ts.map +1 -0
- package/dist/esm/flows-actors/factory-agents/index.js +3 -0
- package/dist/esm/flows-actors/factory-agents/index.js.map +1 -0
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.d.ts +2 -0
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.d.ts.map +1 -0
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js +349 -0
- package/dist/esm/flows-actors/factory-agents/prompts-library.agent-personna.backend.models.js.map +1 -0
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.d.ts +7 -0
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.js +6 -0
- package/dist/esm/flows-actors/flows-actors.default.definition.schemas.js.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.en.js","sourceRoot":"","sources":["../../../../../../src/core/i18n/labels/labels.en.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACT,kBAAkB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J,SAAS,EAAE;4BACP,OAAO,EAAE,MAAM;yBAClB;wBACD,MAAM,EAAE;4BACJ,OAAO,EAAE,MAAM;yBAClB;qBACJ;oBACD,OAAO,EAAE;wBACL,SAAS,EAAE;4BACP,OAAO,EAAE,OAAO;yBACnB;wBACD,MAAM,EAAE;4BACJ,OAAO,EAAE,OAAO;yBACnB;qBACJ;oBACD,YAAY,EAAE;wBACV,SAAS,EAAE;4BACP,OAAO,EAAE,aAAa;yBACzB;wBACD,MAAM,EAAE;4BACJ,OAAO,EAAE,aAAa;yBACzB;qBACJ;iBACJ;gBACD,WAAW,EAAE;oBACT,SAAS,EAAE;wBACP,OAAO,EAAE,YAAY;qBACxB;oBACD,MAAM,EAAE;wBACJ,OAAO,EAAE,YAAY;qBACxB;iBACJ;gBACD,SAAS,EAAE;oBACP,SAAS,EAAE;wBACP,OAAO,EAAE,SAAS;qBACrB;oBACD,MAAM,EAAE;wBACJ,OAAO,EAAE,SAAS;qBACrB;iBACJ;gBACD,oBAAoB,EAAE;oBAClB,SAAS,EAAE;wBACP,OAAO,EAAE,gBAAgB;qBAC5B;oBACD,MAAM,EAAE;wBACJ,OAAO,EAAE,gBAAgB;qBAC5B;iBACJ;aACJ;SACJ;KACJ;CACO,CAAC","sourcesContent":["/**\n * Auto-generated custom labels for i18n\n * Generated at: 2025-12-04T07:23:41.486Z\n * \n * DO NOT EDIT THIS FILE MANUALLY\n * This file is auto-generated by the platform labelling service\n */\n\nexport const customLabels = {\n \"resources\": {\n \"wildoApplication\": {\n \"header\": {\n \"title\": \"Application Management\",\n \"description\": \"Manage your applications and their details.\"\n },\n \"operations\": {\n \"create\": {\n \"title\": \"Create Application\"\n },\n \"read\": {\n \"title\": \"View Application\"\n },\n \"list\": {\n \"title\": \"List Applications\"\n },\n \"update\": {\n \"title\": \"Update Application\"\n },\n \"delete\": {\n \"title\": \"Delete Application\"\n },\n \"search\": {\n \"title\": \"Search Applications\"\n }\n },\n \"fields\": {\n \"_id\": {\n \"display\": {\n \"label\": \"ID\"\n },\n \"edit\": {\n \"label\": \"ID\"\n }\n },\n \"appId\": {\n \"display\": {\n \"label\": \"Application ID\"\n },\n \"edit\": {\n \"label\": \"Application ID\"\n }\n },\n \"appSlug\": {\n \"display\": {\n \"label\": \"Application Slug\"\n },\n \"edit\": {\n \"label\": \"Application Slug\"\n }\n },\n \"createdAt\": {\n \"display\": {\n \"label\": \"Created At\"\n },\n \"edit\": {\n \"label\": \"Created At\"\n }\n },\n \"data\": {\n \"display\": {\n \"label\": \"Data\"\n },\n \"edit\": {\n \"label\": \"Data\"\n }\n },\n \"deletedAt\": {\n \"display\": {\n \"label\": \"Deleted At\"\n },\n \"edit\": {\n \"label\": \"Deleted At\"\n }\n },\n \"gitRepositoryPath\": {\n \"display\": {\n \"label\": \"Git Repository Path\"\n },\n \"edit\": {\n \"label\": \"Git Repository Path\"\n }\n },\n \"id\": {\n \"display\": {\n \"label\": \"ID\"\n },\n \"edit\": {\n \"label\": \"ID\"\n }\n },\n \"lastVersion\": {\n \"display\": {\n \"label\": \"Last Version\"\n },\n \"edit\": {\n \"label\": \"Last Version\"\n }\n },\n \"organizationId\": {\n \"display\": {\n \"label\": \"Organization ID\"\n },\n \"edit\": {\n \"label\": \"Organization ID\"\n }\n },\n \"pagination\": {\n \"display\": {\n \"label\": \"Pagination\"\n },\n \"edit\": {\n \"label\": \"Pagination\"\n },\n \"limit\": {\n \"display\": {\n \"label\": \"Limit\"\n },\n \"edit\": {\n \"label\": \"Limit\"\n }\n },\n \"page\": {\n \"display\": {\n \"label\": \"Page\"\n },\n \"edit\": {\n \"label\": \"Page\"\n }\n },\n \"total\": {\n \"display\": {\n \"label\": \"Total\"\n },\n \"edit\": {\n \"label\": \"Total\"\n }\n },\n \"totalPages\": {\n \"display\": {\n \"label\": \"Total Pages\"\n },\n \"edit\": {\n \"label\": \"Total Pages\"\n }\n }\n },\n \"updatedAt\": {\n \"display\": {\n \"label\": \"Updated At\"\n },\n \"edit\": {\n \"label\": \"Updated At\"\n }\n }\n }\n },\n \"wildoApplicationVersions\": {\n \"header\": {\n \"title\": \"Application Version Management\",\n \"description\": \"Manage versions of your applications.\"\n },\n \"operations\": {\n \"create\": {\n \"title\": \"Create Version\"\n },\n \"read\": {\n \"title\": \"View Version\"\n },\n \"list\": {\n \"title\": \"List Versions\"\n }\n },\n \"fields\": {\n \"_id\": {\n \"display\": {\n \"label\": \"ID\"\n },\n \"edit\": {\n \"label\": \"ID\"\n }\n },\n \"createdAt\": {\n \"display\": {\n \"label\": \"Created At\"\n },\n \"edit\": {\n \"label\": \"Created At\"\n }\n },\n \"data\": {\n \"display\": {\n \"label\": \"Data\"\n },\n \"edit\": {\n \"label\": \"Data\"\n }\n },\n \"gitBranch\": {\n \"display\": {\n \"label\": \"Git Branch\"\n },\n \"edit\": {\n \"label\": \"Git Branch\"\n }\n },\n \"gitCommitHash\": {\n \"display\": {\n \"label\": \"Git Commit Hash\"\n },\n \"edit\": {\n \"label\": \"Git Commit Hash\"\n }\n },\n \"pagination\": {\n \"display\": {\n \"label\": \"Pagination\"\n },\n \"edit\": {\n \"label\": \"Pagination\"\n },\n \"limit\": {\n \"display\": {\n \"label\": \"Limit\"\n },\n \"edit\": {\n \"label\": \"Limit\"\n }\n },\n \"page\": {\n \"display\": {\n \"label\": \"Page\"\n },\n \"edit\": {\n \"label\": \"Page\"\n }\n },\n \"total\": {\n \"display\": {\n \"label\": \"Total\"\n },\n \"edit\": {\n \"label\": \"Total\"\n }\n },\n \"totalPages\": {\n \"display\": {\n \"label\": \"Total Pages\"\n },\n \"edit\": {\n \"label\": \"Total Pages\"\n }\n }\n },\n \"updatedAt\": {\n \"display\": {\n \"label\": \"Updated At\"\n },\n \"edit\": {\n \"label\": \"Updated At\"\n }\n },\n \"version\": {\n \"display\": {\n \"label\": \"Version\"\n },\n \"edit\": {\n \"label\": \"Version\"\n }\n },\n \"wildoApplicationId\": {\n \"display\": {\n \"label\": \"Application ID\"\n },\n \"edit\": {\n \"label\": \"Application ID\"\n }\n }\n }\n }\n }\n} as const;\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Container } from 'inversify';
|
|
2
|
+
export declare class CustomBackendContainer {
|
|
3
|
+
private readonly container;
|
|
4
|
+
constructor(container?: Container);
|
|
5
|
+
private bindServices;
|
|
6
|
+
getContainer(): Container;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Setup custom backend injection by binding custom controllers to the existing container
|
|
10
|
+
* This should be called before initializing the application
|
|
11
|
+
*/
|
|
12
|
+
export declare function setupCustomBackendInjection(existing: Container): Container;
|
|
13
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/core/inject/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;gBAE1B,SAAS,CAAC,EAAE,SAAS;IAKjC,OAAO,CAAC,YAAY;IAIb,YAAY,IAAI,SAAS;CAGjC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAG1E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Container } from 'inversify';
|
|
2
|
+
export class CustomBackendContainer {
|
|
3
|
+
container;
|
|
4
|
+
constructor(container) {
|
|
5
|
+
this.container = container ?? new Container({ defaultScope: 'Singleton' });
|
|
6
|
+
this.bindServices();
|
|
7
|
+
}
|
|
8
|
+
bindServices() {
|
|
9
|
+
// No custom bindings currently — dev-test controller was removed
|
|
10
|
+
}
|
|
11
|
+
getContainer() {
|
|
12
|
+
return this.container;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Setup custom backend injection by binding custom controllers to the existing container
|
|
17
|
+
* This should be called before initializing the application
|
|
18
|
+
*/
|
|
19
|
+
export function setupCustomBackendInjection(existing) {
|
|
20
|
+
const customContainer = new CustomBackendContainer(existing);
|
|
21
|
+
return customContainer.getContainer();
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../../src/core/inject/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,OAAO,sBAAsB;IAChB,SAAS,CAAY;IAEtC,YAAY,SAAqB;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,IAAI,SAAS,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAEO,YAAY;QAClB,iEAAiE;IACnE,CAAC;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAmB;IAC7D,MAAM,eAAe,GAAG,IAAI,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAC7D,OAAO,eAAe,CAAC,YAAY,EAAE,CAAC;AACxC,CAAC","sourcesContent":["import { Container } from 'inversify';\n\nexport class CustomBackendContainer {\n private readonly container: Container;\n\n constructor(container?: Container) {\n this.container = container ?? new Container({ defaultScope: 'Singleton' });\n this.bindServices();\n }\n\n private bindServices(): void {\n // No custom bindings currently — dev-test controller was removed\n }\n\n public getContainer(): Container {\n return this.container;\n }\n}\n\n/**\n * Setup custom backend injection by binding custom controllers to the existing container\n * This should be called before initializing the application\n */\nexport function setupCustomBackendInjection(existing: Container): Container {\n const customContainer = new CustomBackendContainer(existing);\n return customContainer.getContainer();\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../../../../../src/core/inject/service-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACjE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-types.js","sourceRoot":"","sources":["../../../../../src/core/inject/service-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAA8B,EACtE,CAAA","sourcesContent":["export const CUSTOM_BACKEND_SERVICE_TYPES: { [key: string]: symbol } = {\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ResourceConfiguration_InitializationFactoryMap } from '@wildo-ai/saas-models';
|
|
2
|
+
import { CustomBackend_ResourceType } from './resources-types.custom.backend.schemas';
|
|
3
|
+
import { ResourceCustomServiceImplementationFactory } from '@wildo-ai/saas-backend-lib';
|
|
4
|
+
export declare const customBackend_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomBackend_ResourceType>;
|
|
5
|
+
export declare const customBackend_ServiceImplementationsFactories: ResourceCustomServiceImplementationFactory[];
|
|
6
|
+
//# sourceMappingURL=resources-operations.custom.backend.definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-operations.custom.backend.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-operations.custom.backend.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,8CAA8C,EAAE,MAAM,uBAAuB,CAAC;AACvI,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,0CAA0C,EAAE,MAAM,4BAA4B,CAAC;AAGxF,eAAO,MAAM,+CAA+C,EAAE,8CAA8C,CAAC,0BAA0B,CAAa,CAAC;AAKrJ,eAAO,MAAM,6CAA6C,EAAG,0CAA0C,EAEpG,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// import resource co
|
|
2
|
+
export const customBackend_ResourcesConfigurationsFactoryMap = undefined;
|
|
3
|
+
// export const customBackend_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomBackend_ResourceType> = {
|
|
4
|
+
// }
|
|
5
|
+
export const customBackend_ServiceImplementationsFactories = [];
|
|
6
|
+
//# sourceMappingURL=resources-operations.custom.backend.definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-operations.custom.backend.definitions.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-operations.custom.backend.definitions.ts"],"names":[],"mappings":"AAIA,qBAAqB;AACrB,MAAM,CAAC,MAAM,+CAA+C,GAA+E,SAAS,CAAC;AACrJ,+IAA+I;AAE/I,IAAI;AAEJ,MAAM,CAAC,MAAM,6CAA6C,GAAkD,EAEzG,CAAA","sourcesContent":["import { AnyResourceConfiguration, ResourceRelationship, ResourceConfiguration_InitializationFactoryMap } from '@wildo-ai/saas-models';\nimport { CustomBackend_ResourceType } from './resources-types.custom.backend.schemas';\nimport { ResourceCustomServiceImplementationFactory } from '@wildo-ai/saas-backend-lib';\n\n// import resource co\nexport const customBackend_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomBackend_ResourceType> = undefined;\n// export const customBackend_ResourcesConfigurationsFactoryMap: ResourceConfiguration_InitializationFactoryMap<CustomBackend_ResourceType> = {\n \n// }\n\nexport const customBackend_ServiceImplementationsFactories : ResourceCustomServiceImplementationFactory[] = [\n\n ]\n \n \n\n\n"]}
|
package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResourceRegistry_InitializerParameters } from "@wildo-ai/saas-models";
|
|
2
|
+
import { CustomBackend_ResourceType } from "./resources-types.custom.backend.schemas";
|
|
3
|
+
export declare const customBackend_ResourcesRegistryInitializer: ResourceRegistry_InitializerParameters<CustomBackend_ResourceType>;
|
|
4
|
+
//# sourceMappingURL=resources-registry-initializer.custom.backend.definitions.d.ts.map
|
package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-registry-initializer.custom.backend.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-registry-initializer.custom.backend.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,EAAyC,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAK7H,eAAO,MAAM,0CAA0C,EAAE,sCAAsC,CAAC,0BAA0B,CAIzH,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { customBackend_ResourcesConfigurationsFactoryMap } from "./resources-operations.custom.backend.definitions.js";
|
|
2
|
+
import { customBackend_ResourceFieldIdentifier } from "./resources-types.custom.backend.schemas.js";
|
|
3
|
+
import { customBackend_ResourcesRelationships } from "./resources-relationships.custom.backend.definitions.js";
|
|
4
|
+
export const customBackend_ResourcesRegistryInitializer = {
|
|
5
|
+
resourceRelationships: customBackend_ResourcesRelationships,
|
|
6
|
+
resourceConfigurationsFactoryMap: customBackend_ResourcesConfigurationsFactoryMap,
|
|
7
|
+
resourceFieldIdentifiers: customBackend_ResourceFieldIdentifier,
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=resources-registry-initializer.custom.backend.definitions.js.map
|
package/dist/esm/core/resources/resources-registry-initializer.custom.backend.definitions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-registry-initializer.custom.backend.definitions.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-registry-initializer.custom.backend.definitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+CAA+C,EAAE,MAAM,mDAAmD,CAAC;AACpH,OAAO,EAAE,qCAAqC,EAA8B,MAAM,0CAA0C,CAAC;AAC7H,OAAO,EAAE,oCAAoC,EAAE,MAAM,sDAAsD,CAAC;AAI5G,MAAM,CAAC,MAAM,0CAA0C,GAAuE;IAC5H,qBAAqB,EAAE,oCAAoC;IAC3D,gCAAgC,EAAE,+CAA+C;IACjF,wBAAwB,EAAE,qCAAqC;CAChE,CAAA","sourcesContent":["import { ResourceRegistry_InitializerParameters } from \"@wildo-ai/saas-models\";\nimport { customBackend_ResourcesConfigurationsFactoryMap } from \"./resources-operations.custom.backend.definitions\";\nimport { customBackend_ResourceFieldIdentifier, CustomBackend_ResourceType } from \"./resources-types.custom.backend.schemas\";\nimport { customBackend_ResourcesRelationships } from \"./resources-relationships.custom.backend.definitions\";\n\n\n\nexport const customBackend_ResourcesRegistryInitializer: ResourceRegistry_InitializerParameters<CustomBackend_ResourceType> = {\n resourceRelationships: customBackend_ResourcesRelationships,\n resourceConfigurationsFactoryMap: customBackend_ResourcesConfigurationsFactoryMap,\n resourceFieldIdentifiers: customBackend_ResourceFieldIdentifier,\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-relationships.custom.backend.definitions.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-relationships.custom.backend.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,oBAAoB,EAAwF,MAAM,uBAAuB,CAAC;AAGhL,eAAO,MAAM,oCAAoC,EAAE,oBAAoB,EAEtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-relationships.custom.backend.definitions.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-relationships.custom.backend.definitions.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oCAAoC,GAA2B,EAE3E,CAAC","sourcesContent":["import { createResourcesRelationship, ResourceRelationship, ResourceRelationshipCardinality, CoreResourceType, ResourceParentResourceRequirement } from \"@wildo-ai/saas-models\";\nimport { CustomBackend_ResourceType } from \"./resources-types.custom.backend.schemas\";\n\nexport const customBackend_ResourcesRelationships: ResourceRelationship[] = [\n \n];"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App-Custom Backend Resource Types
|
|
3
|
+
*
|
|
4
|
+
* Backend resource type definitions for Todo application.
|
|
5
|
+
*/
|
|
6
|
+
export type CustomBackend_ResourceType = undefined;
|
|
7
|
+
export declare const customBackend_ResourceFieldIdentifier: undefined;
|
|
8
|
+
//# sourceMappingURL=resources-types.custom.backend.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-types.custom.backend.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/core/resources/resources-types.custom.backend.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAKnD,eAAO,MAAM,qCAAqC,EAAE,SAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App-Custom Backend Resource Types
|
|
3
|
+
*
|
|
4
|
+
* Backend resource type definitions for Todo application.
|
|
5
|
+
*/
|
|
6
|
+
// export enum CustomBackend_ResourceType {
|
|
7
|
+
// }
|
|
8
|
+
export const customBackend_ResourceFieldIdentifier = undefined;
|
|
9
|
+
// export const customBackend_ResourceFieldIdentifier: { [key in CustomBackend_ResourceType]: string } = {
|
|
10
|
+
// };
|
|
11
|
+
//# sourceMappingURL=resources-types.custom.backend.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-types.custom.backend.schemas.js","sourceRoot":"","sources":["../../../../../src/core/resources/resources-types.custom.backend.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,2CAA2C;AAE3C,IAAI;AAEJ,MAAM,CAAC,MAAM,qCAAqC,GAAc,SAAS,CAAC;AAC1E,0GAA0G;AAEtG,MAAM","sourcesContent":["/**\n * App-Custom Backend Resource Types\n * \n * Backend resource type definitions for Todo application.\n */\n\n // For empty resource types, use never type\nexport type CustomBackend_ResourceType = undefined;\n// export enum CustomBackend_ResourceType {\n \n// }\n\nexport const customBackend_ResourceFieldIdentifier: undefined = undefined; \n// export const customBackend_ResourceFieldIdentifier: { [key in CustomBackend_ResourceType]: string } = {\n\n // }; "]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/flows-actors/factory-agents/index.ts"],"names":[],"mappings":"AACA,cAAc,iDAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,349 @@
|
|
|
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
|