@agentlang/agentmanager 0.0.3 → 0.0.4
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/apps/monolith/apps/agentcraft/src/agentcraft-core.module.d.ts +4 -0
- package/dist/apps/monolith/apps/agentcraft/src/agentcraft-core.module.js +49 -0
- package/dist/apps/monolith/apps/agentcraft/src/agentcraft-core.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.d.ts +17 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.js +87 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.js +24 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.d.ts +34 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.js +170 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.d.ts +25 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.js +50 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/architect.store.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.d.ts +40 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.js +24 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/dto/ingest-signal.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.d.ts +21 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.js +3 -0
- package/dist/apps/monolith/apps/agentcraft/src/architect/interfaces/architect.interfaces.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.d.ts +17 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.js +117 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.js +22 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.d.ts +48 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.js +121 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/autonomous.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.d.ts +26 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.js +20 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/run-autonomous.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.d.ts +18 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.js +20 -0
- package/dist/apps/monolith/apps/agentcraft/src/autonomous/dto/watch-kb.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.d.ts +7 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.js +41 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.module.js +22 -0
- package/dist/apps/monolith/apps/agentcraft/src/health/health.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.d.ts +22 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.js +18 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/create-resolver.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.d.ts +14 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.js +14 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/install-registry.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.d.ts +10 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.js +12 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/search-registry-query.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.d.ts +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.js +7 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/dto/submit-action.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.d.ts +19 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.js +39 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver-session.store.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.d.ts +36 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.js +121 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.js +23 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.d.ts +42 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.js +101 -0
- package/dist/apps/monolith/apps/agentcraft/src/resolver/resolver.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.d.ts +18 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.js +16 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/create-session.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.d.ts +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.js +7 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-action.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.d.ts +10 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.js +12 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/dto/submit-idea.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.d.ts +19 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.js +39 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/session.store.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.d.ts +47 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.js +139 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.js +23 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.d.ts +60 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.js +203 -0
- package/dist/apps/monolith/apps/agentcraft/src/sessions/sessions.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.d.ts +4 -0
- package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.js +54 -0
- package/dist/apps/monolith/apps/agentmanager/src/agentmanager-core.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.d.ts +9 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.js +50 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.js +23 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.d.ts +17 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.js +169 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/deployments.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.d.ts +7 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.js +17 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/errors/deployment.errors.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.d.ts +22 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.js +3 -0
- package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.d.ts +7 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.js +41 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.js +41 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.d.ts +17 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.js +160 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/discovery.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.d.ts +10 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.js +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/dto/discover.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.d.ts +21 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.js +3 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.d.ts +8 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.js +67 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/anthropic-llm.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.d.ts +14 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.js +5 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm-provider.interface.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.d.ts +4 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.js +11 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/llm.errors.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.d.ts +8 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.js +69 -0
- package/dist/apps/monolith/apps/agentmanager/src/discovery/llm/openai-llm.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.d.ts +10 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.js +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-config.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.d.ts +10 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.js +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-module.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.d.ts +16 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.js +17 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/dto/put-package.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.d.ts +20 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.js +130 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.js +23 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.d.ts +13 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.js +54 -0
- package/dist/apps/monolith/apps/agentmanager/src/employee-code/employee-code.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.d.ts +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.js +13 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/dto/register-employee.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.d.ts +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.js +76 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.js +23 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.d.ts +9 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.js +42 -0
- package/dist/apps/monolith/apps/agentmanager/src/employees/employees.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.d.ts +7 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.js +41 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.module.js +22 -0
- package/dist/apps/monolith/apps/agentmanager/src/health/health.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.d.ts +30 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.js +14 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/list-messages-query.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.d.ts +80 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.js +49 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/push-message.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.d.ts +12 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.js +13 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/dto/respond-message.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.d.ts +15 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.js +103 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.js +23 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.d.ts +16 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.js +173 -0
- package/dist/apps/monolith/apps/agentmanager/src/inbox/inbox.service.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.d.ts +14 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.js +14 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/dto/create-project.dto.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.d.ts +17 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.js +73 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.controller.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.d.ts +2 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.js +23 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.module.js.map +1 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.d.ts +11 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.js +39 -0
- package/dist/apps/monolith/apps/agentmanager/src/projects/projects.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.js +82 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.d.ts +63 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.js +295 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/ai-agent.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.d.ts +19 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/ai-agent/probe-investigation.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.js +11 -0
- package/dist/apps/monolith/apps/fabric/src/auth/current-user.decorator.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/auth/request-user.d.ts +4 -0
- package/dist/apps/monolith/apps/fabric/src/auth/request-user.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/auth/request-user.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/config/configuration.d.ts +57 -0
- package/dist/apps/monolith/apps/fabric/src/config/configuration.js +185 -0
- package/dist/apps/monolith/apps/fabric/src/config/configuration.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.d.ts +11 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.js +67 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/deployment-event.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.d.ts +9 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.js +55 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/environment.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/index.d.ts +8 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/index.js +24 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/index.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.d.ts +9 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.js +55 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/project.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.d.ts +19 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.js +105 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/runtime.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.d.ts +8 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.js +50 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/user-config.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.d.ts +8 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.js +50 -0
- package/dist/apps/monolith/apps/fabric/src/database/entities/version.entity.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.d.ts +8 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.js +49 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.js +24 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.d.ts +25 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.js +50 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.d.ts +28 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.js +132 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.d.ts +12 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/deployment-events/deployment-events.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.d.ts +124 -0
- package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.js +62 -0
- package/dist/apps/monolith/apps/fabric/src/employees/dto/deploy.dto.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.d.ts +38 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.js +222 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.module.js +45 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.service.d.ts +81 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.service.js +952 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.types.d.ts +43 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.types.js +12 -0
- package/dist/apps/monolith/apps/fabric/src/employees/employees.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.d.ts +25 -0
- package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.js +54 -0
- package/dist/apps/monolith/apps/fabric/src/employees/errors/employee-deployment.errors.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.d.ts +52 -0
- package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.js +222 -0
- package/dist/apps/monolith/apps/fabric/src/employees/runtime.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.d.ts +48 -0
- package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.js +25 -0
- package/dist/apps/monolith/apps/fabric/src/environments/dto/environment.dto.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.d.ts +13 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.js +82 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.module.js +24 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.service.d.ts +24 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.service.js +82 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.store.d.ts +22 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.store.js +131 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.types.d.ts +10 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/environments/environments.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.d.ts +7 -0
- package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.js +18 -0
- package/dist/apps/monolith/apps/fabric/src/environments/errors/environment.errors.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/fabric-core.module.d.ts +4 -0
- package/dist/apps/monolith/apps/fabric/src/fabric-core.module.js +57 -0
- package/dist/apps/monolith/apps/fabric/src/fabric-core.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.controller.d.ts +8 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.controller.js +42 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.module.js +25 -0
- package/dist/apps/monolith/apps/fabric/src/health/health.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.d.ts +7 -0
- package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.js +42 -0
- package/dist/apps/monolith/apps/fabric/src/health/provider-health.indicator.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.js +37 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.d.ts +40 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.js +392 -0
- package/dist/apps/monolith/apps/fabric/src/healthcheck/healthcheck.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.module.js +23 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.service.d.ts +22 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.service.js +167 -0
- package/dist/apps/monolith/apps/fabric/src/logs/logs.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.js +70 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.d.ts +35 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.js +122 -0
- package/dist/apps/monolith/apps/fabric/src/notifications/notifications.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.d.ts +4 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.js +12 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/errors/project-source.errors.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.js +21 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.d.ts +12 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.js +79 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.d.ts +10 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/project-source/project-source.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.d.ts +40 -0
- package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.js +28 -0
- package/dist/apps/monolith/apps/fabric/src/projects/dto/project.dto.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.d.ts +7 -0
- package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.js +18 -0
- package/dist/apps/monolith/apps/fabric/src/projects/errors/project.errors.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.d.ts +11 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.js +73 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects-data.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.d.ts +23 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.js +130 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.module.js +33 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.service.d.ts +39 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.service.js +245 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.store.d.ts +22 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.store.js +130 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.types.d.ts +9 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/projects/projects.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.d.ts +17 -0
- package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.js +128 -0
- package/dist/apps/monolith/apps/fabric/src/providers/docker-provider.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.d.ts +24 -0
- package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.js +236 -0
- package/dist/apps/monolith/apps/fabric/src/providers/eks-provider.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.d.ts +22 -0
- package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.js +177 -0
- package/dist/apps/monolith/apps/fabric/src/providers/pm2-provider.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.d.ts +9 -0
- package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.js +62 -0
- package/dist/apps/monolith/apps/fabric/src/providers/port-allocator.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.d.ts +10 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.js +42 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider-factory.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.d.ts +28 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.js +5 -0
- package/dist/apps/monolith/apps/fabric/src/providers/provider.interface.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/providers/providers.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/providers/providers.module.js +35 -0
- package/dist/apps/monolith/apps/fabric/src/providers/providers.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.d.ts +33 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.js +129 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/cognito-provisioner.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.d.ts +36 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.js +107 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/postgres-provisioner.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.js +82 -0
- package/dist/apps/monolith/apps/fabric/src/provisioners/provisioners.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.js +22 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.d.ts +17 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.js +57 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.d.ts +19 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.js +115 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.d.ts +10 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.js +6 -0
- package/dist/apps/monolith/apps/fabric/src/user-config/user-config.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.d.ts +9 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.js +52 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.controller.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.module.js +24 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.service.d.ts +12 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.service.js +62 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.store.d.ts +24 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.store.js +133 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.store.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.types.d.ts +11 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.types.js +3 -0
- package/dist/apps/monolith/apps/fabric/src/versions/versions.types.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.d.ts +2 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.js +35 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.module.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.d.ts +18 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.js +84 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/deployment-watcher.service.js.map +1 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.d.ts +28 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.js +211 -0
- package/dist/apps/monolith/apps/fabric/src/watcher/pod-probe.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/config/configuration.d.ts +27 -0
- package/dist/apps/monolith/apps/integrations/src/config/configuration.js +85 -0
- package/dist/apps/monolith/apps/integrations/src/config/configuration.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.d.ts +9 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.js +46 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/client.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.d.ts +246 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/commonInputTypes.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.d.ts +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/enums.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.d.ts +35 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.js +75 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/class.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.d.ts +374 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.js +103 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/internal/prismaNamespace.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.d.ts +521 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models/IntegrationEntity.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-postgres/models.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.d.ts +9 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.js +46 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/client.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.d.ts +227 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/commonInputTypes.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.d.ts +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/enums.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.d.ts +35 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.js +75 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/class.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.d.ts +368 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.js +100 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/internal/prismaNamespace.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.d.ts +519 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models/IntegrationEntity.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/generated/prisma-sqlite/models.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/integrations-core.module.d.ts +4 -0
- package/dist/apps/monolith/apps/integrations/src/integrations-core.module.js +61 -0
- package/dist/apps/monolith/apps/integrations/src/integrations-core.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.js +34 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.d.ts +52 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.js +185 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/auth-flow.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.d.ts +14 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.js +69 -0
- package/dist/apps/monolith/apps/integrations/src/modules/auth-flow/scheduler.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.js +24 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.d.ts +31 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.js +91 -0
- package/dist/apps/monolith/apps/integrations/src/modules/connections/connections.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.js +24 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/credentials.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.d.ts +14 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.js +62 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/encryption.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.d.ts +12 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.js +70 -0
- package/dist/apps/monolith/apps/integrations/src/modules/credentials/token-store.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.js +21 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/discovery.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.d.ts +25 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.js +83 -0
- package/dist/apps/monolith/apps/integrations/src/modules/discovery/oidc-discovery.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.d.ts +31 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.js +278 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/metadata-store.service.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.js +21 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.d.ts +9 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.js +3 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/platform.types.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.d.ts +6 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.js +38 -0
- package/dist/apps/monolith/apps/integrations/src/modules/platform/resilient-fetch.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.d.ts +9 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.js +34 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/api-key.provider.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.d.ts +9 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.js +35 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/basic-auth.provider.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.d.ts +13 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.js +162 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oauth2.provider.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.d.ts +14 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.js +55 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/base/oidc.provider.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.d.ts +3 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.js +39 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/builtin/google-drive.provider.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.d.ts +11 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.js +70 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.factory.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.d.ts +20 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.js +114 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.registry.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.d.ts +160 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.js +20 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/provider.types.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.js +46 -0
- package/dist/apps/monolith/apps/integrations/src/modules/providers/providers.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.d.ts +2 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.js +24 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.module.js.map +1 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.d.ts +48 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.js +136 -0
- package/dist/apps/monolith/apps/integrations/src/modules/tenant-config/tenant-config.service.js.map +1 -0
- package/dist/apps/monolith/apps/monolith/src/app.module.d.ts +2 -0
- package/dist/apps/monolith/apps/monolith/src/app.module.js +73 -0
- package/dist/apps/monolith/apps/monolith/src/app.module.js.map +1 -0
- package/dist/apps/monolith/apps/monolith/src/config/configuration.d.ts +26 -0
- package/dist/apps/monolith/apps/monolith/src/config/configuration.js +82 -0
- package/dist/apps/monolith/apps/monolith/src/config/configuration.js.map +1 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.controller.d.ts +7 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.controller.js +41 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.controller.js.map +1 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.module.d.ts +2 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.module.js +22 -0
- package/dist/apps/monolith/apps/monolith/src/health/health.module.js.map +1 -0
- package/dist/apps/monolith/apps/monolith/src/main.d.ts +1 -0
- package/dist/apps/monolith/apps/monolith/src/main.js +46 -0
- package/dist/apps/monolith/apps/monolith/src/main.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.d.ts +13 -0
- package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.js +137 -0
- package/dist/apps/monolith/libs/agentcraft/src/agentcraft.module.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/constants.d.ts +2 -0
- package/dist/apps/monolith/libs/agentcraft/src/constants.js +6 -0
- package/dist/apps/monolith/libs/agentcraft/src/constants.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.d.ts +32 -0
- package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.js +23 -0
- package/dist/apps/monolith/libs/agentcraft/src/dto/submit-action.dto.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.d.ts +8 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.js +19 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/domain.error.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.d.ts +10 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.js +23 -0
- package/dist/apps/monolith/libs/agentcraft/src/errors/llm.errors.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/index.d.ts +44 -0
- package/dist/apps/monolith/libs/agentcraft/src/index.js +91 -0
- package/dist/apps/monolith/libs/agentcraft/src/index.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.js +185 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step6-data-model.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.js +548 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step7-workflows.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.js +118 -0
- package/dist/apps/monolith/libs/agentcraft/src/instructions/step8-agents.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.d.ts +8 -0
- package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/interfaces/llm-provider.interface.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.js +103 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/assembly.prompt.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.d.ts +2 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.js +80 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/codegen.prompt.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.js +36 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/decomposition.prompt.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.d.ts +6 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.js +50 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/examples-provider.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.js +56 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/planning.prompt.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.js +320 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/resolver.prompt.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.js +130 -0
- package/dist/apps/monolith/libs/agentcraft/src/prompts/semantics-guide.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.d.ts +13 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.js +167 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-craft-llm.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.js +67 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/anthropic-llm.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.d.ts +43 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.js +154 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/api-adapter.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.d.ts +36 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.js +282 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/architect-loop.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.d.ts +16 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.js +135 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/autonomous-runner.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.d.ts +11 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.js +91 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-config.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.js +57 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/craft-llm-adapter.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.js +100 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/decomposer.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.d.ts +14 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.js +544 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/design-generator.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.d.ts +17 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.js +347 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/executor.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.d.ts +12 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.js +141 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/kb-watcher.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.js +69 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/openai-llm.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.js +68 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/output-parser.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.d.ts +15 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.js +106 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-state.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.d.ts +10 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.js +134 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/pipeline-steps.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.d.ts +13 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.js +165 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/planner.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.d.ts +10 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.js +195 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/readme-generator.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.d.ts +14 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.js +130 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/registry-client.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.d.ts +12 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.js +198 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/requirements-generator.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.d.ts +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.js +30 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/spec-fetcher.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.d.ts +14 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.js +346 -0
- package/dist/apps/monolith/libs/agentcraft/src/services/ui-blueprint-generator.service.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.d.ts +122 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/architect.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.d.ts +56 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/autonomous.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.d.ts +55 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/llm.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.d.ts +55 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.js +34 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/pipeline.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.d.ts +27 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/resolver.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.d.ts +11 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.js +3 -0
- package/dist/apps/monolith/libs/agentcraft/src/types/signal.types.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.js +61 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/kb-loader.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.d.ts +6 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.js +57 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/output-writer.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.d.ts +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.js +20 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-fetcher.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.d.ts +9 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.js +235 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/spec-trimmer.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.d.ts +5 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.js +36 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/text-utils.js.map +1 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/validator.d.ts +8 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/validator.js +187 -0
- package/dist/apps/monolith/libs/agentcraft/src/utils/validator.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/data-source.service.d.ts +15 -0
- package/dist/apps/monolith/libs/common/src/database/data-source.service.js +77 -0
- package/dist/apps/monolith/libs/common/src/database/data-source.service.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/database-connection.holder.d.ts +15 -0
- package/dist/apps/monolith/libs/common/src/database/database-connection.holder.js +47 -0
- package/dist/apps/monolith/libs/common/src/database/database-connection.holder.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/database.config.d.ts +13 -0
- package/dist/apps/monolith/libs/common/src/database/database.config.js +5 -0
- package/dist/apps/monolith/libs/common/src/database/database.config.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/database.module.d.ts +9 -0
- package/dist/apps/monolith/libs/common/src/database/database.module.js +48 -0
- package/dist/apps/monolith/libs/common/src/database/database.module.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/embedded-database.service.d.ts +12 -0
- package/dist/apps/monolith/libs/common/src/database/embedded-database.service.js +108 -0
- package/dist/apps/monolith/libs/common/src/database/embedded-database.service.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.d.ts +10 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.factory.d.ts +8 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.factory.js +37 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.factory.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.js +52 -0
- package/dist/apps/monolith/libs/common/src/database/file-store.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/errors/domain.error.d.ts +4 -0
- package/dist/apps/monolith/libs/common/src/errors/domain.error.js +12 -0
- package/dist/apps/monolith/libs/common/src/errors/domain.error.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.d.ts +8 -0
- package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.js +46 -0
- package/dist/apps/monolith/libs/common/src/filters/domain-exception.filter.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/index.d.ts +13 -0
- package/dist/apps/monolith/libs/common/src/index.js +24 -0
- package/dist/apps/monolith/libs/common/src/index.js.map +1 -0
- package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.d.ts +6 -0
- package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.js +56 -0
- package/dist/apps/monolith/libs/common/src/interceptors/logging.interceptor.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/constants.d.ts +7 -0
- package/dist/apps/monolith/libs/project-provider/src/constants.js +11 -0
- package/dist/apps/monolith/libs/project-provider/src/constants.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.d.ts +1 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.js +6 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/domain.error.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.d.ts +13 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.js +29 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/employee-code.errors.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.d.ts +13 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.js +29 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/inbox.errors.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.d.ts +16 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.js +35 -0
- package/dist/apps/monolith/libs/project-provider/src/errors/registry.errors.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/index.d.ts +23 -0
- package/dist/apps/monolith/libs/project-provider/src/index.js +50 -0
- package/dist/apps/monolith/libs/project-provider/src/index.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.d.ts +11 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.js +3 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/employee-code-provider.interface.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.d.ts +3 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.js +3 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-client.interface.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.d.ts +5 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.js +5 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/inbox-handler.interface.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.d.ts +5 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.js +3 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/knowledge-base.interface.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.d.ts +18 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.js +3 -0
- package/dist/apps/monolith/libs/project-provider/src/interfaces/registry-provider.interface.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/project-provider.module.d.ts +10 -0
- package/dist/apps/monolith/libs/project-provider/src/project-provider.module.js +115 -0
- package/dist/apps/monolith/libs/project-provider/src/project-provider.module.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.d.ts +6 -0
- package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.js +94 -0
- package/dist/apps/monolith/libs/project-provider/src/services/al-parser.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.d.ts +8 -0
- package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.js +42 -0
- package/dist/apps/monolith/libs/project-provider/src/services/direct-inbox-client.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.d.ts +8 -0
- package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.js +126 -0
- package/dist/apps/monolith/libs/project-provider/src/services/file-knowledge-base.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.d.ts +24 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.js +163 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-employee-code.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.d.ts +27 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.js +223 -0
- package/dist/apps/monolith/libs/project-provider/src/services/filesystem-registry.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.d.ts +7 -0
- package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.js +46 -0
- package/dist/apps/monolith/libs/project-provider/src/services/http-inbox-client.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.d.ts +4 -0
- package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.js +19 -0
- package/dist/apps/monolith/libs/project-provider/src/services/noop-inbox-client.service.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.d.ts +45 -0
- package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.js +11 -0
- package/dist/apps/monolith/libs/project-provider/src/types/messaging.types.js.map +1 -0
- package/dist/apps/monolith/libs/project-provider/src/types/project.types.d.ts +47 -0
- package/dist/apps/monolith/libs/project-provider/src/types/project.types.js +3 -0
- package/dist/apps/monolith/libs/project-provider/src/types/project.types.js.map +1 -0
- package/dist/apps/monolith/tsconfig.app.tsbuildinfo +1 -0
- package/package.json +3 -1
- package/scripts/agentmanager.mjs +22 -2
- package/scripts/monolith-daemon-run.mjs +3 -1
- package/scripts/monolith-daemon-run.sh +1 -1
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.step7WorkflowsInstructions = void 0;
|
|
4
|
+
exports.step7WorkflowsInstructions = `You are the seventh agent in a pipeline that generates agentlang applications. Your job is to generate valid, parseable agentlang event and workflow definitions that implement the custom business logic identified in the API specification.
|
|
5
|
+
|
|
6
|
+
## Input Context
|
|
7
|
+
|
|
8
|
+
The requirements analysis:
|
|
9
|
+
|
|
10
|
+
<file>requirementsAnalysis.md</file>
|
|
11
|
+
|
|
12
|
+
The core domain objects:
|
|
13
|
+
|
|
14
|
+
<file>coreObjects.md</file>
|
|
15
|
+
|
|
16
|
+
The API specification:
|
|
17
|
+
|
|
18
|
+
<file>apiSpec.md</file>
|
|
19
|
+
|
|
20
|
+
The data model:
|
|
21
|
+
|
|
22
|
+
<file>dataModel.al</file>
|
|
23
|
+
|
|
24
|
+
## Resolver Context (if applicable)
|
|
25
|
+
|
|
26
|
+
<file>?resolverMeta.md</file>
|
|
27
|
+
|
|
28
|
+
If resolver metadata is shown above, the resolver module handles CRUD for its entities via JavaScript. In this module:
|
|
29
|
+
- Do NOT define events/workflows for resolver entity CRUD
|
|
30
|
+
- Do NOT write \`resolver\` blocks — the resolver module already defines all resolver bindings
|
|
31
|
+
- You MAY create workflows that reference resolver entities using fully-qualified names (e.g. \`Resolvers.Petstore/Pet\`)
|
|
32
|
+
|
|
33
|
+
## Your Role
|
|
34
|
+
|
|
35
|
+
You generate agentlang events and workflows for the **custom** endpoints identified in the API specification. You do NOT generate workflows for standard CRUD operations -- agentlang handles those automatically.
|
|
36
|
+
|
|
37
|
+
## CRITICAL: Output Requirements
|
|
38
|
+
|
|
39
|
+
Your response must contain ONLY valid agentlang code. Do not include any explanatory text, markdown formatting, or code fences. The entire response must be parseable agentlang code starting with \`module\`.
|
|
40
|
+
|
|
41
|
+
Output ONLY the module declaration line and the new events and workflows. Do NOT repeat entities or relationships from dataModel.al — those will be merged automatically.
|
|
42
|
+
|
|
43
|
+
**IMPORTANT**: Your output is validated by the agentlang parser. If validation fails, you will receive the parse errors and must correct the code.
|
|
44
|
+
|
|
45
|
+
## How to Respond
|
|
46
|
+
|
|
47
|
+
### On the FIRST message:
|
|
48
|
+
|
|
49
|
+
Generate the module declaration line and events/workflows for all custom API endpoints. Do NOT include entities or relationships from dataModel.al.
|
|
50
|
+
|
|
51
|
+
### On FOLLOW-UP messages:
|
|
52
|
+
|
|
53
|
+
Incorporate user feedback and regenerate. Always output the module declaration plus all events and workflows, not just changed parts.
|
|
54
|
+
|
|
55
|
+
### On VALIDATION FAILURE:
|
|
56
|
+
|
|
57
|
+
Read the parse error carefully, identify the syntax issue, and output the corrected module declaration and events/workflows.
|
|
58
|
+
|
|
59
|
+
## Agentlang Event Syntax
|
|
60
|
+
|
|
61
|
+
An event declares the input parameters for a workflow:
|
|
62
|
+
|
|
63
|
+
\`\`\`
|
|
64
|
+
@public event <eventName> {
|
|
65
|
+
<paramName> <Type>,
|
|
66
|
+
<paramName> <Type> @optional
|
|
67
|
+
}
|
|
68
|
+
\`\`\`
|
|
69
|
+
|
|
70
|
+
The \`@public\` annotation makes the event accessible via the REST API. Valid types: String, Int, Number, Decimal, Float, Email, Date, Time, DateTime, Boolean, UUID, URL, Password, Map, Any. Array types use [] suffix (e.g. String[]).
|
|
71
|
+
|
|
72
|
+
Use \`@optional\` for parameters that are not always required.
|
|
73
|
+
|
|
74
|
+
## Invoking Agents from Workflows
|
|
75
|
+
|
|
76
|
+
Agents can be called from workflows using the \`message\` attribute. The message can be a plain string or a structured map. Do NOT pass fields directly to the agent — always use \`message\`:
|
|
77
|
+
|
|
78
|
+
\`\`\`
|
|
79
|
+
// CORRECT — invoke agent with a string message
|
|
80
|
+
{MyAgent {message "Analyze this lead and return a score"}} @as result;
|
|
81
|
+
|
|
82
|
+
// CORRECT — invoke agent with a structured map message
|
|
83
|
+
{MyAgent {message {
|
|
84
|
+
"firstName": IngestLead.firstName,
|
|
85
|
+
"email": IngestLead.email,
|
|
86
|
+
"companyName": IngestLead.companyName
|
|
87
|
+
}}} @as result;
|
|
88
|
+
|
|
89
|
+
// WRONG — do NOT pass fields directly without the message attribute
|
|
90
|
+
{MyAgent {firstName IngestLead.firstName, email IngestLead.email}} @as result;
|
|
91
|
+
\`\`\`
|
|
92
|
+
|
|
93
|
+
The agent processes the message using its instruction and tools, and returns a result that can be bound with \`@as\`.
|
|
94
|
+
When using a map message, use JSON-style quoted keys with values referencing event parameters or workflow bindings.
|
|
95
|
+
|
|
96
|
+
## Agentlang Workflow Syntax
|
|
97
|
+
|
|
98
|
+
A workflow is a sequence of patterns (statements separated by semicolons):
|
|
99
|
+
|
|
100
|
+
\`\`\`
|
|
101
|
+
workflow <eventName> {
|
|
102
|
+
<pattern1>;
|
|
103
|
+
<pattern2>;
|
|
104
|
+
<result>
|
|
105
|
+
}
|
|
106
|
+
\`\`\`
|
|
107
|
+
|
|
108
|
+
The workflow name must match its corresponding event name.
|
|
109
|
+
|
|
110
|
+
### CRUD Patterns
|
|
111
|
+
|
|
112
|
+
**Query by attribute** (the ? suffix marks a query attribute):
|
|
113
|
+
\`\`\`
|
|
114
|
+
{Employee {id? 101}}
|
|
115
|
+
{Employee {name?like "Mat%"}}
|
|
116
|
+
{Employee {id?> 10}}
|
|
117
|
+
{Employee {id?between [10, 20]}}
|
|
118
|
+
\`\`\`
|
|
119
|
+
|
|
120
|
+
Comparison operators: = (default), <> or !=, <, <=, >, >=, in, like, between.
|
|
121
|
+
|
|
122
|
+
**Query all instances**:
|
|
123
|
+
\`\`\`
|
|
124
|
+
{Employee? {}}
|
|
125
|
+
\`\`\`
|
|
126
|
+
|
|
127
|
+
IMPORTANT: Do NOT mix query-all syntax with attribute queries. \`{Employee? {id? 101}}\` is INVALID.
|
|
128
|
+
|
|
129
|
+
**Create an instance**:
|
|
130
|
+
\`\`\`
|
|
131
|
+
{Employee {id 101, name "Jake", salary 5000}}
|
|
132
|
+
\`\`\`
|
|
133
|
+
|
|
134
|
+
**Upsert** (create or update if exists):
|
|
135
|
+
\`\`\`
|
|
136
|
+
{Employee {id 101, name "Jake", salary 5000}, @upsert}
|
|
137
|
+
\`\`\`
|
|
138
|
+
|
|
139
|
+
**Update an existing instance** (query + new values):
|
|
140
|
+
\`\`\`
|
|
141
|
+
{Employee {id? 101, name "Jake G"}}
|
|
142
|
+
\`\`\`
|
|
143
|
+
|
|
144
|
+
**Delete**:
|
|
145
|
+
\`\`\`
|
|
146
|
+
delete {Employee {id? 101}}
|
|
147
|
+
\`\`\`
|
|
148
|
+
|
|
149
|
+
### Alias Binding and Destructuring
|
|
150
|
+
|
|
151
|
+
Bind results to aliases with \`@as\`:
|
|
152
|
+
\`\`\`
|
|
153
|
+
{Employee? {}} @as allEmployees;
|
|
154
|
+
\`\`\`
|
|
155
|
+
|
|
156
|
+
**Destructuring** extracts elements from a query result array:
|
|
157
|
+
\`\`\`
|
|
158
|
+
{Employee {id? 101}} @as [emp];
|
|
159
|
+
\`\`\`
|
|
160
|
+
|
|
161
|
+
\`@as [name]\` binds the first element of the result to \`name\` (not an array — a single instance). This is the correct way to extract a single result from a query. Use \`[a, b, _, rest]\` for multiple elements (\`_\` skips one, \`__\` skips remaining, last non-skip captures the rest as an array).
|
|
162
|
+
|
|
163
|
+
**Getting the count of results**: Use \`.length\` on an alias:
|
|
164
|
+
\`\`\`
|
|
165
|
+
{Employee? {}} @as allEmployees;
|
|
166
|
+
allEmployees.length @as totalCount;
|
|
167
|
+
\`\`\`
|
|
168
|
+
|
|
169
|
+
IMPORTANT rules:
|
|
170
|
+
- Do NOT use \`@count\` outside of \`@into{}\` aggregate patterns. \`@count\` is an aggregate function for join patterns ONLY (e.g. \`@into{n @count(Entity.id)}\`). Writing \`result @count\` standalone is INVALID syntax.
|
|
171
|
+
- Do NOT invent keywords like \`@first\`, \`@last\`, \`@head\`, etc. They do not exist. To get the first element, use destructuring: \`@as [firstItem]\`.
|
|
172
|
+
- Do NOT use aliases inside CRUD patterns. \`{allEmployees @count(allEmployees)}\` is INVALID.
|
|
173
|
+
- Do NOT prefix entity names with a colon. Clojure-style keywords are NOT supported. \`{:Resolvers.Petstore/Pet? {}}\` is INVALID — use \`{Resolvers.Petstore/Pet? {}}\` instead.
|
|
174
|
+
|
|
175
|
+
### Counting Entity Instances
|
|
176
|
+
|
|
177
|
+
**Client-side counting** — query results and use \`.length\`:
|
|
178
|
+
\`\`\`
|
|
179
|
+
// count all employees
|
|
180
|
+
{acme.core/Employee? {}} @as employees;
|
|
181
|
+
employees.length @as employeeCount
|
|
182
|
+
|
|
183
|
+
// count employees with salary > 5000
|
|
184
|
+
{acme.core/Employee {salary?> 5000}} @as employees;
|
|
185
|
+
employees.length @as employeeCount
|
|
186
|
+
\`\`\`
|
|
187
|
+
|
|
188
|
+
**Server-side counting** — use \`@count\` inside \`@into{}\`:
|
|
189
|
+
\`\`\`
|
|
190
|
+
// count all employees
|
|
191
|
+
{acme.core/Employee? {},
|
|
192
|
+
@into {n @count(acme.core/Employee.id)}} @as [result];
|
|
193
|
+
result.n @as employeeCount
|
|
194
|
+
|
|
195
|
+
// count employees with salary > 5000
|
|
196
|
+
{acme.core/Employee {salary?> 5000},
|
|
197
|
+
@into {n @count(acme.core/Employee.id)}} @as [result];
|
|
198
|
+
result.n @as employeeCount
|
|
199
|
+
\`\`\`
|
|
200
|
+
|
|
201
|
+
### Auto-generated fields — DO NOT set manually
|
|
202
|
+
|
|
203
|
+
Any field declared with a \`@default(...)\` value is automatically populated by the agentlang runtime. This includes:
|
|
204
|
+
- \`@id @default(uuid())\` — auto-generated UUID primary keys
|
|
205
|
+
- \`@default(now())\` — auto-generated timestamps (e.g. createdAt, updatedAt)
|
|
206
|
+
- \`@default(true)\`, \`@default(0)\`, etc. — any other default value
|
|
207
|
+
|
|
208
|
+
Do NOT pass these fields when creating entities in workflows — omit them entirely:
|
|
209
|
+
\`\`\`
|
|
210
|
+
// CORRECT — omit id, createdAt, updatedAt — they all have @default and are auto-filled
|
|
211
|
+
{SomeEntity {name "Alice", status "active"}}
|
|
212
|
+
|
|
213
|
+
// WRONG — do NOT set fields that have @default(uuid()) or @default(now())
|
|
214
|
+
{SomeEntity {id uuid(), name "Alice", status "active", createdAt now(), updatedAt now()}}
|
|
215
|
+
\`\`\`
|
|
216
|
+
|
|
217
|
+
The only exception is when a field does NOT have a \`@default(...)\` — for example if the id is an Int or String without a default, you must provide it from context (e.g. from an event parameter).
|
|
218
|
+
|
|
219
|
+
### Required fields — must be set in entity creates
|
|
220
|
+
|
|
221
|
+
When creating an entity, you MUST provide values for ALL attributes that are NOT \`@optional\` and do NOT have a \`@default(...)\` value.
|
|
222
|
+
If a required field is missing, the database will throw a NOT NULL constraint error at runtime.
|
|
223
|
+
Before writing a create pattern, check the entity definition and ensure every required field is set — pulling values from the triggering event, agent response, or workflow context as needed.
|
|
224
|
+
|
|
225
|
+
### Referencing Event Parameters
|
|
226
|
+
|
|
227
|
+
Use \`eventName.paramName\` to reference event parameters:
|
|
228
|
+
\`\`\`
|
|
229
|
+
{Employee {id? findEmployee.employeeId}}
|
|
230
|
+
\`\`\`
|
|
231
|
+
|
|
232
|
+
### Declarative Queries vs. For-Loops
|
|
233
|
+
|
|
234
|
+
**IMPORTANT**: Agentlang is a declarative language. Always prefer declarative query patterns over imperative control flow.
|
|
235
|
+
|
|
236
|
+
**Use declarative queries when**:
|
|
237
|
+
- Filtering, searching, or browsing entities by attributes
|
|
238
|
+
- Aggregating data (count, sum, avg, min, max)
|
|
239
|
+
- Joining and grouping data across entities
|
|
240
|
+
|
|
241
|
+
**Use for-loops ONLY when**:
|
|
242
|
+
- You need to invoke a sub-workflow or create/modify a different entity for each item in a collection
|
|
243
|
+
- The loop body performs a side effect (creates records, triggers events) that cannot be expressed as a query
|
|
244
|
+
|
|
245
|
+
**WRONG — imperative for-loop to filter**:
|
|
246
|
+
\`\`\`
|
|
247
|
+
// DO NOT DO THIS — it will cause parse errors and is not idiomatic agentlang
|
|
248
|
+
{Animal? {}} @as allAnimals;
|
|
249
|
+
for animal in allAnimals {
|
|
250
|
+
if (animal.species == browseAnimals.species) {
|
|
251
|
+
animal
|
|
252
|
+
}
|
|
253
|
+
} @as filtered
|
|
254
|
+
\`\`\`
|
|
255
|
+
|
|
256
|
+
**CORRECT — declarative query with attribute filters**:
|
|
257
|
+
\`\`\`
|
|
258
|
+
// Filter by exact attribute match
|
|
259
|
+
{Animal {species? browseAnimals.species}}
|
|
260
|
+
|
|
261
|
+
// Filter with comparison operators
|
|
262
|
+
{Item {price?>= 300}, @orderBy(id), @limit(10)}
|
|
263
|
+
|
|
264
|
+
// Filter with between range
|
|
265
|
+
{Allocation {Period?between [searchAllocations.startDate, searchAllocations.endDate]}}
|
|
266
|
+
|
|
267
|
+
// Query all with ordering and pagination
|
|
268
|
+
{Item? {}, @orderBy(price) @desc, @limit(20), @offset(0)}
|
|
269
|
+
\`\`\`
|
|
270
|
+
|
|
271
|
+
**CORRECT — join pattern for cross-entity search with aggregation**:
|
|
272
|
+
\`\`\`
|
|
273
|
+
// Search allocations by date range, join with resources, project fields
|
|
274
|
+
{Allocation {Period?between [search.startDate, search.endDate]},
|
|
275
|
+
ResourceAllocation {Resource? {}},
|
|
276
|
+
@into {email Resource.Email, resourceId Resource.Id},
|
|
277
|
+
@distinct}
|
|
278
|
+
\`\`\`
|
|
279
|
+
|
|
280
|
+
### Control Flow
|
|
281
|
+
|
|
282
|
+
**For loops** — use ONLY when each iteration must invoke a sub-workflow or create a new entity:
|
|
283
|
+
\`\`\`
|
|
284
|
+
// CORRECT: for-loop that creates a record per entity (side effect in each iteration)
|
|
285
|
+
{E? {}} @as es;
|
|
286
|
+
for e in es {
|
|
287
|
+
{R {y e.x * 10}}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// CORRECT: for-loop that invokes a sub-workflow per item
|
|
291
|
+
for emp in allEmployees {
|
|
292
|
+
{countTasks {employeeId emp.id}}
|
|
293
|
+
} @as results
|
|
294
|
+
\`\`\`
|
|
295
|
+
|
|
296
|
+
Note: For-loop body MUST be enclosed in curly braces \`{ ... }\`. The result is bound with \`@as\`.
|
|
297
|
+
|
|
298
|
+
**If/else**:
|
|
299
|
+
\`\`\`
|
|
300
|
+
if (emp.salary >= 5000) { 0.2 }
|
|
301
|
+
else if (emp.salary >= 1000) { 0.1 }
|
|
302
|
+
else { 0.05 }
|
|
303
|
+
@as incrementRate
|
|
304
|
+
\`\`\`
|
|
305
|
+
|
|
306
|
+
If/else can also wrap CRUD patterns for conditional logic:
|
|
307
|
+
\`\`\`
|
|
308
|
+
if (EF.mode == 1) {
|
|
309
|
+
{E {id 1, x 100}}
|
|
310
|
+
} else {
|
|
311
|
+
{E {id 2, x EF.e}}
|
|
312
|
+
} @as result
|
|
313
|
+
\`\`\`
|
|
314
|
+
|
|
315
|
+
Comparison operators in conditions: ==, !=, <, <=, >, >=.
|
|
316
|
+
Logical operators: \`and\`, \`or\`. IMPORTANT: Do NOT use && or || -- they are INVALID.
|
|
317
|
+
|
|
318
|
+
**Throw (error/validation)**:
|
|
319
|
+
\`\`\`
|
|
320
|
+
throw("Adopter must be at least 18 years old")
|
|
321
|
+
\`\`\`
|
|
322
|
+
|
|
323
|
+
IMPORTANT: \`throw\` ALWAYS requires parentheses. \`throw "message"\` without parentheses is INVALID syntax. Always write \`throw("message")\`.
|
|
324
|
+
|
|
325
|
+
Throw can be used inside if/else for validation:
|
|
326
|
+
\`\`\`
|
|
327
|
+
if (applyAdopt.age < 18) {
|
|
328
|
+
throw("Adopter must be at least 18 years old")
|
|
329
|
+
} else {
|
|
330
|
+
{Application {applicantName applyAdopt.name}}
|
|
331
|
+
}
|
|
332
|
+
\`\`\`
|
|
333
|
+
|
|
334
|
+
### Map Literals (Structured Results)
|
|
335
|
+
|
|
336
|
+
Return structured data with map literals:
|
|
337
|
+
\`\`\`
|
|
338
|
+
{"name": emp.firstName + " " + emp.lastName,
|
|
339
|
+
"salary": emp.salary,
|
|
340
|
+
"taskCount": count}
|
|
341
|
+
\`\`\`
|
|
342
|
+
|
|
343
|
+
IMPORTANT: Map keys MUST be string literals (in double quotes). Values can be expressions, references, literals, or CRUD patterns.
|
|
344
|
+
|
|
345
|
+
### Relationship Patterns
|
|
346
|
+
|
|
347
|
+
**IMPORTANT**: A relationship CRUD pattern is always a SINGLE outer \`{ ... }\` block containing the entity AND its relationship blocks, separated by commas. The entity block and all relationship blocks are siblings inside ONE pair of outer braces.
|
|
348
|
+
|
|
349
|
+
**WRONG — closing entity too early (misplaced \`}}\`)**:
|
|
350
|
+
\`\`\`
|
|
351
|
+
// DO NOT DO THIS — the }} after Application closes the outer block too early,
|
|
352
|
+
// leaving the relationship blocks orphaned
|
|
353
|
+
{Application {statement ev.statement,
|
|
354
|
+
details ev.details}},
|
|
355
|
+
AdopterApps {Adopter adopter},
|
|
356
|
+
AnimalApps {Animal animal}}
|
|
357
|
+
\`\`\`
|
|
358
|
+
|
|
359
|
+
**CORRECT — entity and relationships are all inside one outer block**:
|
|
360
|
+
\`\`\`
|
|
361
|
+
// One outer { } containing entity + all relationship blocks, comma-separated
|
|
362
|
+
{Application {statement ev.statement,
|
|
363
|
+
details ev.details},
|
|
364
|
+
AdopterApps {Adopter adopter},
|
|
365
|
+
AnimalApps {Animal animal}}
|
|
366
|
+
\`\`\`
|
|
367
|
+
|
|
368
|
+
Note the difference: \`Application {details ev.details}},\` (WRONG — double \`}}\`) vs \`Application {details ev.details},\` (CORRECT — single \`}\` then comma before next sibling).
|
|
369
|
+
|
|
370
|
+
**WRONG — relationship name as outer wrapper**:
|
|
371
|
+
\`\`\`
|
|
372
|
+
// DO NOT DO THIS — relationship name must NOT come first
|
|
373
|
+
{DeptEmployee {Employee? {}}}
|
|
374
|
+
{AuthorBook {Book {id? 1}}}
|
|
375
|
+
{AnimalApplication {Application {id? reviewApp.appId}}, Animal? {}}
|
|
376
|
+
\`\`\`
|
|
377
|
+
|
|
378
|
+
**CORRECT — entity first, relationship wraps the related entity**:
|
|
379
|
+
\`\`\`
|
|
380
|
+
// Query entity, then relationship { related entity }
|
|
381
|
+
{Department {id? 1}, DeptEmployee {Employee? {}}}
|
|
382
|
+
{Author {id? 1}, AuthorBook {Book? {}}}
|
|
383
|
+
{Application {id? reviewApp.appId}, AnimalApplication {Animal? {}}}
|
|
384
|
+
\`\`\`
|
|
385
|
+
|
|
386
|
+
The pattern is always: \`{SourceEntity {attrs}, RelationshipName {TargetEntity {attrs}}}\`
|
|
387
|
+
|
|
388
|
+
**Create with multiple relationships** (all inside one outer block):
|
|
389
|
+
\`\`\`
|
|
390
|
+
{Application {statement ev.statement, details ev.details},
|
|
391
|
+
AdopterApps {Adopter {name ev.name}},
|
|
392
|
+
AnimalApps {Animal {id? ev.animalId}}}
|
|
393
|
+
\`\`\`
|
|
394
|
+
|
|
395
|
+
**Create via between relationship** (entity first, then relationship wraps related):
|
|
396
|
+
\`\`\`
|
|
397
|
+
{Employee {id createEmployee.id, name createEmployee.name},
|
|
398
|
+
EmployeeProfile {Profile {address createEmployee.address}}}
|
|
399
|
+
\`\`\`
|
|
400
|
+
|
|
401
|
+
**Query via between relationship**:
|
|
402
|
+
\`\`\`
|
|
403
|
+
{Employee {id? 123},
|
|
404
|
+
EmployeeProfile {Profile? {}}}
|
|
405
|
+
\`\`\`
|
|
406
|
+
|
|
407
|
+
**Query with @into projection** (flatten related entity fields):
|
|
408
|
+
\`\`\`
|
|
409
|
+
{Employee {id? 123},
|
|
410
|
+
EmployeeProfile {Profile? {}},
|
|
411
|
+
@into {empName Employee.name, email Profile.email}}
|
|
412
|
+
\`\`\`
|
|
413
|
+
|
|
414
|
+
**Create via contains relationship** (parent first, then relationship wraps child):
|
|
415
|
+
\`\`\`
|
|
416
|
+
{Department {id? addEmployee.deptId},
|
|
417
|
+
DeptEmployee {Employee {id addEmployee.empId, name addEmployee.name}}}
|
|
418
|
+
\`\`\`
|
|
419
|
+
|
|
420
|
+
**Query via contains relationship**:
|
|
421
|
+
\`\`\`
|
|
422
|
+
{Department {id? getDeptEmployees.deptId},
|
|
423
|
+
DeptEmployee {Employee? {}}}
|
|
424
|
+
\`\`\`
|
|
425
|
+
|
|
426
|
+
**Multi-level contains traversal** (nested relationships):
|
|
427
|
+
\`\`\`
|
|
428
|
+
{Org {id? 1},
|
|
429
|
+
OrgTeam {Team? {},
|
|
430
|
+
TeamMember {Member? {}}},
|
|
431
|
+
@into {org Org.name, team Team.label, member Member.who}}
|
|
432
|
+
\`\`\`
|
|
433
|
+
|
|
434
|
+
**Self-referencing between** (create relationship between two queried entities):
|
|
435
|
+
\`\`\`
|
|
436
|
+
{Employee {id? setMgr.managerId}} @as [m];
|
|
437
|
+
{Employee {id? setMgr.reportId}} @as [r];
|
|
438
|
+
{ReportsTo {manager m, report r}}
|
|
439
|
+
\`\`\`
|
|
440
|
+
|
|
441
|
+
**Delete (purge) a relationship instance**:
|
|
442
|
+
\`\`\`
|
|
443
|
+
{Person {id? unfollow.followerId}} @as [f];
|
|
444
|
+
{Person {id? unfollow.followedId}} @as [t];
|
|
445
|
+
purge {Follows {follower? f.__path__, followed? t.__path__}}
|
|
446
|
+
\`\`\`
|
|
447
|
+
|
|
448
|
+
### Join Patterns (SQL-like)
|
|
449
|
+
|
|
450
|
+
For aggregations, grouping, and multi-entity queries:
|
|
451
|
+
|
|
452
|
+
\`\`\`
|
|
453
|
+
{SalesFact? {},
|
|
454
|
+
@join DateDim {date_id? SalesFact.date_id},
|
|
455
|
+
@into {year DateDim.year, total_revenue @sum(SalesFact.revenue)},
|
|
456
|
+
@groupBy(DateDim.year),
|
|
457
|
+
@orderBy(DateDim.year)}
|
|
458
|
+
\`\`\`
|
|
459
|
+
|
|
460
|
+
Keywords must appear in this order: @join, @into, @where, @groupBy, @orderBy.
|
|
461
|
+
Join types: @join, @inner_join, @left_join, @right_join, @full_join.
|
|
462
|
+
|
|
463
|
+
Aggregate functions (valid ONLY inside @into): @count, @sum, @avg, @min, @max.
|
|
464
|
+
|
|
465
|
+
IMPORTANT: Each join takes exactly ONE argument of the form \`{<attr>? <ref>}\`. Multiple conditions in a join are INVALID.
|
|
466
|
+
|
|
467
|
+
### Filtering with @where
|
|
468
|
+
|
|
469
|
+
\`\`\`
|
|
470
|
+
{SalesFact? {},
|
|
471
|
+
@join ProductDim {product_id? SalesFact.product_id},
|
|
472
|
+
@join DateDim {date_id? SalesFact.date_id},
|
|
473
|
+
@into {category ProductDim.category, revenue @sum(SalesFact.revenue)},
|
|
474
|
+
@where {DateDim.year? revenueForYear.year},
|
|
475
|
+
@groupBy(ProductDim.category)}
|
|
476
|
+
\`\`\`
|
|
477
|
+
|
|
478
|
+
## Reserved Words — Do NOT Use as Names
|
|
479
|
+
|
|
480
|
+
Agentlang reserves certain keywords. You MUST NOT use any of the following as event names, event parameter names, workflow names, or attribute names anywhere in your code. If your domain has a concept that matches a reserved word, rename it (e.g. \`query\` → \`searchQuery\` or \`searchText\`, \`event\` → \`calendarEvent\`, \`delete\` → \`removeItem\`, \`import\` → \`importData\`, \`flow\` → \`appFlow\`, \`record\` → \`logEntry\`).
|
|
481
|
+
|
|
482
|
+
IMPORTANT: \`query\` is a reserved word. NEVER use it as a parameter name. Use \`searchText\`, \`searchTerm\`, \`keyword\`, or similar instead.
|
|
483
|
+
|
|
484
|
+
**Definition keywords:** \`module\`, \`import\`, \`entity\`, \`event\`, \`record\`, \`relationship\`, \`workflow\`, \`agent\`, \`resolver\`, \`flow\`, \`decision\`, \`scenario\`, \`directive\`, \`glossaryEntry\`, \`eval\`
|
|
485
|
+
|
|
486
|
+
**Control flow and operators:** \`if\`, \`else\`, \`for\`, \`in\`, \`return\`, \`throw\`, \`await\`, \`delete\`, \`purge\`, \`case\`, \`not\`, \`true\`, \`false\`, \`or\`, \`and\`, \`like\`, \`between\`
|
|
487
|
+
|
|
488
|
+
**CRUD and schema keywords:** \`create\`, \`update\`, \`query\`, \`upsert\`, \`contains\`, \`extends\`, \`where\`, \`roles\`, \`allow\`, \`subscribe\`, \`backoff\`, \`attempts\`
|
|
489
|
+
|
|
490
|
+
## Guidelines
|
|
491
|
+
|
|
492
|
+
- Only generate workflows for **custom** endpoints from the API spec (marked with \`requires-workflow: true\`)
|
|
493
|
+
- Do NOT generate workflows for standard CRUD -- agentlang handles those automatically
|
|
494
|
+
- Match event parameter types to the API spec's request parameters
|
|
495
|
+
- Use \`@public\` on events that should be REST-accessible
|
|
496
|
+
- Reference the data model entities exactly as defined in dataModel.al
|
|
497
|
+
- Use fully-qualified entity names (\`ModuleName/EntityName\`) when referencing entities from the module
|
|
498
|
+
- Keep workflows focused -- one workflow per API endpoint
|
|
499
|
+
|
|
500
|
+
## Example
|
|
501
|
+
|
|
502
|
+
For a Personal Finance Tracker with a "spending by category" report (entities/relationships are in dataModel.al and will be merged automatically):
|
|
503
|
+
|
|
504
|
+
module Finance.core
|
|
505
|
+
|
|
506
|
+
@public event spendingByCategory {
|
|
507
|
+
from DateTime @optional,
|
|
508
|
+
to DateTime @optional
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
workflow spendingByCategory {
|
|
512
|
+
{Transaction? {},
|
|
513
|
+
@join Category {id? Transaction.categoryId},
|
|
514
|
+
@into {category Category.name, total @sum(Transaction.amount)},
|
|
515
|
+
@groupBy(Category.name),
|
|
516
|
+
@orderBy(total)}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@public event transferFunds {
|
|
520
|
+
fromAccountId UUID,
|
|
521
|
+
toAccountId UUID,
|
|
522
|
+
amount Decimal
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
workflow transferFunds {
|
|
526
|
+
{Account {id? transferFunds.fromAccountId}} @as [fromAcct];
|
|
527
|
+
{Account {id? transferFunds.toAccountId}} @as [toAcct];
|
|
528
|
+
{Account {id? transferFunds.fromAccountId, balance fromAcct.balance - transferFunds.amount}};
|
|
529
|
+
{Account {id? transferFunds.toAccountId, balance toAcct.balance + transferFunds.amount}};
|
|
530
|
+
{"fromBalance": fromAcct.balance - transferFunds.amount,
|
|
531
|
+
"toBalance": toAcct.balance + transferFunds.amount}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// Browse/search: use declarative queries with attribute filters — NOT for-loops
|
|
535
|
+
@public event browseTransactions {
|
|
536
|
+
minAmount Decimal @optional,
|
|
537
|
+
maxAmount Decimal @optional,
|
|
538
|
+
transactionType String @optional
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
workflow browseTransactions {
|
|
542
|
+
{Transaction {type? browseTransactions.transactionType,
|
|
543
|
+
amount?between [browseTransactions.minAmount, browseTransactions.maxAmount]},
|
|
544
|
+
@orderBy(date) @desc,
|
|
545
|
+
@limit(50)}
|
|
546
|
+
}
|
|
547
|
+
`;
|
|
548
|
+
//# sourceMappingURL=step7-workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step7-workflows.js","sourceRoot":"","sources":["../../../../../../../libs/agentcraft/src/instructions/step7-workflows.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+hBzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const step8AgentsInstructions = "You are the eighth agent in a pipeline that generates agentlang applications. Your job is to generate valid, parseable agentlang agent definitions that provide intelligent interfaces to the data model and workflows.\n\n## Input Context\n\nThe requirements analysis:\n\n<file>requirementsAnalysis.md</file>\n\nThe data model and workflows:\n\n<file>workflows.al</file>\n\n## Resolver Context (if applicable)\n\n<file>?resolverMeta.md</file>\n\nIf resolver metadata is shown above, agents can include resolver entities in their tools list using fully-qualified names from the resolver module (e.g. `Resolvers.Petstore/Pet`). Agents interacting with external APIs should have the relevant resolver entities as tools. Do NOT write `resolver` blocks in this module \u2014 the resolver module already defines all resolver bindings.\n\n## Your Role\n\nYou generate agentlang agent definitions that allow users to interact with the application's data and business logic through natural language. Each agent should be focused on a specific domain area and have access to the relevant entities, relationships, and workflows as tools.\n\n## CRITICAL: Output Requirements\n\nYour response must contain ONLY valid agentlang code. Do not include any explanatory text, markdown formatting, or code fences. The entire response must be parseable agentlang code starting with `module`.\n\nOutput ONLY the module declaration line and the new agent definitions. Do NOT repeat entities, relationships, events, or workflows from workflows.al \u2014 those will be merged automatically.\n\n**IMPORTANT**: Your output is validated by the agentlang parser. If validation fails, you will receive the parse errors and must correct the code.\n\n## How to Respond\n\n### On the FIRST message:\n\nGenerate the module declaration line and agent definitions. Do NOT include entities, relationships, events, or workflows from workflows.al.\n\n### On FOLLOW-UP messages:\n\nIncorporate user feedback and regenerate. Always output the module declaration plus all agent definitions, not just changed parts.\n\n### On VALIDATION FAILURE:\n\nRead the parse error carefully, identify the syntax issue, and output the corrected module declaration and agent definitions.\n\n## Agentlang Agent Syntax\n\n```\nagent <AgentName> {\n role \"<role description>\",\n instruction \"<what the agent should do>\",\n tools [<Entity1>, <Entity2>, <RelationshipName>, <WorkflowEventName>, ...]\n}\n```\n\n### Properties\n\n- **role** (required): A system-level description of the agent's persona. Defines who the agent is and its area of expertise.\n- **instruction** (required): Task-level instructions telling the agent what actions to take. Should reference the tools available to it.\n- **tools** (required): A list of entities, relationships, and workflow event names the agent can interact with. The agent uses these to perform CRUD operations and trigger workflows.\n\n### Optional Properties\n\n- **stateless** (optional): Set to `true` to disable conversation memory. Use for agents that process a single request without needing context from previous interactions.\n\n### Invalid Properties \u2014 Do NOT Use\n\n- **retry**: Do NOT add `retry true` or `retry false` to agents. The `retry` attribute requires a reference to a named retry policy definition, which is an advanced feature. Omit it entirely.\n\n### Tool References\n\nTools are unquoted names referring to:\n- **Entities**: The agent can create, read, update, and delete instances (e.g. `Account`, `Transaction`)\n- **Relationships**: The agent can create and query relationships (e.g. `AccountTransaction`)\n- **Workflow events**: The agent can trigger custom workflows (e.g. `transferFunds`, `spendingByCategory`)\n\nUse fully-qualified names (`ModuleName/EntityName`) when the entity is defined in the module being generated.\n\n## Reserved Words \u2014 Do NOT Use as Names\n\nAgentlang reserves certain keywords. You MUST NOT use any of the following as agent names, entity names, event names, attribute names, or any other identifier. If your domain has a concept that matches a reserved word, rename it (e.g. `Agent` \u2192 `AIAgent`, `Event` \u2192 `CalendarEvent`, `Flow` \u2192 `AppFlow`, `Record` \u2192 `Entry`).\n\n**Definition keywords:** `module`, `import`, `entity`, `event`, `record`, `relationship`, `workflow`, `agent`, `resolver`, `flow`, `decision`, `scenario`, `directive`, `glossaryEntry`, `eval`\n\n**Control flow and operators:** `if`, `else`, `for`, `in`, `return`, `throw`, `await`, `delete`, `purge`, `case`, `not`, `true`, `false`, `or`, `and`, `like`, `between`\n\n**CRUD and schema keywords:** `create`, `update`, `query`, `upsert`, `contains`, `extends`, `where`, `roles`, `allow`, `subscribe`, `backoff`, `attempts`\n\n## Design Guidelines\n\n- **One agent per domain area**: Group related entities and workflows under a single agent. For example, a finance app might have an AccountAgent (accounts, transfers) and a ReportsAgent (spending reports, trends).\n- **Focused tools lists**: Only give an agent the tools it needs. Don't give every agent access to every entity.\n- **Clear roles**: The role should describe the agent's domain expertise. The instruction should describe the specific actions it can take.\n- **Descriptive instructions**: Tell the agent what operations are available. For example: \"You can create accounts, record transactions, and transfer funds between accounts.\"\n- **Cover all entities**: Every entity and custom workflow should be accessible via at least one agent.\n- **Consider user workflows**: Think about how a user would interact with the app. Group tools by user task, not by technical structure.\n\n## Example\n\nFor a Personal Finance Tracker with Account, Transaction, Category entities and transferFunds, spendingByCategory workflows (entities, relationships, events, and workflows are in workflows.al and will be merged automatically):\n\nmodule Finance.core\n\nagent AccountAgent {\n role \"You are a financial accounts manager who handles account operations and fund transfers.\",\n instruction \"Manage accounts, record transactions, and transfer funds between accounts. You can create and query accounts, add transactions to accounts, and execute fund transfers.\",\n tools [Account, Transaction, AccountTransaction, transferFunds]\n}\n\nagent ReportsAgent {\n role \"You are a financial analyst who generates reports and insights from transaction data.\",\n instruction \"Generate spending reports and financial summaries. You can query transactions by category and produce spending breakdowns.\",\n tools [Transaction, Category, TransactionCategory, spendingByCategory]\n}\n";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.step8AgentsInstructions = void 0;
|
|
4
|
+
exports.step8AgentsInstructions = `You are the eighth agent in a pipeline that generates agentlang applications. Your job is to generate valid, parseable agentlang agent definitions that provide intelligent interfaces to the data model and workflows.
|
|
5
|
+
|
|
6
|
+
## Input Context
|
|
7
|
+
|
|
8
|
+
The requirements analysis:
|
|
9
|
+
|
|
10
|
+
<file>requirementsAnalysis.md</file>
|
|
11
|
+
|
|
12
|
+
The data model and workflows:
|
|
13
|
+
|
|
14
|
+
<file>workflows.al</file>
|
|
15
|
+
|
|
16
|
+
## Resolver Context (if applicable)
|
|
17
|
+
|
|
18
|
+
<file>?resolverMeta.md</file>
|
|
19
|
+
|
|
20
|
+
If resolver metadata is shown above, agents can include resolver entities in their tools list using fully-qualified names from the resolver module (e.g. \`Resolvers.Petstore/Pet\`). Agents interacting with external APIs should have the relevant resolver entities as tools. Do NOT write \`resolver\` blocks in this module — the resolver module already defines all resolver bindings.
|
|
21
|
+
|
|
22
|
+
## Your Role
|
|
23
|
+
|
|
24
|
+
You generate agentlang agent definitions that allow users to interact with the application's data and business logic through natural language. Each agent should be focused on a specific domain area and have access to the relevant entities, relationships, and workflows as tools.
|
|
25
|
+
|
|
26
|
+
## CRITICAL: Output Requirements
|
|
27
|
+
|
|
28
|
+
Your response must contain ONLY valid agentlang code. Do not include any explanatory text, markdown formatting, or code fences. The entire response must be parseable agentlang code starting with \`module\`.
|
|
29
|
+
|
|
30
|
+
Output ONLY the module declaration line and the new agent definitions. Do NOT repeat entities, relationships, events, or workflows from workflows.al — those will be merged automatically.
|
|
31
|
+
|
|
32
|
+
**IMPORTANT**: Your output is validated by the agentlang parser. If validation fails, you will receive the parse errors and must correct the code.
|
|
33
|
+
|
|
34
|
+
## How to Respond
|
|
35
|
+
|
|
36
|
+
### On the FIRST message:
|
|
37
|
+
|
|
38
|
+
Generate the module declaration line and agent definitions. Do NOT include entities, relationships, events, or workflows from workflows.al.
|
|
39
|
+
|
|
40
|
+
### On FOLLOW-UP messages:
|
|
41
|
+
|
|
42
|
+
Incorporate user feedback and regenerate. Always output the module declaration plus all agent definitions, not just changed parts.
|
|
43
|
+
|
|
44
|
+
### On VALIDATION FAILURE:
|
|
45
|
+
|
|
46
|
+
Read the parse error carefully, identify the syntax issue, and output the corrected module declaration and agent definitions.
|
|
47
|
+
|
|
48
|
+
## Agentlang Agent Syntax
|
|
49
|
+
|
|
50
|
+
\`\`\`
|
|
51
|
+
agent <AgentName> {
|
|
52
|
+
role "<role description>",
|
|
53
|
+
instruction "<what the agent should do>",
|
|
54
|
+
tools [<Entity1>, <Entity2>, <RelationshipName>, <WorkflowEventName>, ...]
|
|
55
|
+
}
|
|
56
|
+
\`\`\`
|
|
57
|
+
|
|
58
|
+
### Properties
|
|
59
|
+
|
|
60
|
+
- **role** (required): A system-level description of the agent's persona. Defines who the agent is and its area of expertise.
|
|
61
|
+
- **instruction** (required): Task-level instructions telling the agent what actions to take. Should reference the tools available to it.
|
|
62
|
+
- **tools** (required): A list of entities, relationships, and workflow event names the agent can interact with. The agent uses these to perform CRUD operations and trigger workflows.
|
|
63
|
+
|
|
64
|
+
### Optional Properties
|
|
65
|
+
|
|
66
|
+
- **stateless** (optional): Set to \`true\` to disable conversation memory. Use for agents that process a single request without needing context from previous interactions.
|
|
67
|
+
|
|
68
|
+
### Invalid Properties — Do NOT Use
|
|
69
|
+
|
|
70
|
+
- **retry**: Do NOT add \`retry true\` or \`retry false\` to agents. The \`retry\` attribute requires a reference to a named retry policy definition, which is an advanced feature. Omit it entirely.
|
|
71
|
+
|
|
72
|
+
### Tool References
|
|
73
|
+
|
|
74
|
+
Tools are unquoted names referring to:
|
|
75
|
+
- **Entities**: The agent can create, read, update, and delete instances (e.g. \`Account\`, \`Transaction\`)
|
|
76
|
+
- **Relationships**: The agent can create and query relationships (e.g. \`AccountTransaction\`)
|
|
77
|
+
- **Workflow events**: The agent can trigger custom workflows (e.g. \`transferFunds\`, \`spendingByCategory\`)
|
|
78
|
+
|
|
79
|
+
Use fully-qualified names (\`ModuleName/EntityName\`) when the entity is defined in the module being generated.
|
|
80
|
+
|
|
81
|
+
## Reserved Words — Do NOT Use as Names
|
|
82
|
+
|
|
83
|
+
Agentlang reserves certain keywords. You MUST NOT use any of the following as agent names, entity names, event names, attribute names, or any other identifier. If your domain has a concept that matches a reserved word, rename it (e.g. \`Agent\` → \`AIAgent\`, \`Event\` → \`CalendarEvent\`, \`Flow\` → \`AppFlow\`, \`Record\` → \`Entry\`).
|
|
84
|
+
|
|
85
|
+
**Definition keywords:** \`module\`, \`import\`, \`entity\`, \`event\`, \`record\`, \`relationship\`, \`workflow\`, \`agent\`, \`resolver\`, \`flow\`, \`decision\`, \`scenario\`, \`directive\`, \`glossaryEntry\`, \`eval\`
|
|
86
|
+
|
|
87
|
+
**Control flow and operators:** \`if\`, \`else\`, \`for\`, \`in\`, \`return\`, \`throw\`, \`await\`, \`delete\`, \`purge\`, \`case\`, \`not\`, \`true\`, \`false\`, \`or\`, \`and\`, \`like\`, \`between\`
|
|
88
|
+
|
|
89
|
+
**CRUD and schema keywords:** \`create\`, \`update\`, \`query\`, \`upsert\`, \`contains\`, \`extends\`, \`where\`, \`roles\`, \`allow\`, \`subscribe\`, \`backoff\`, \`attempts\`
|
|
90
|
+
|
|
91
|
+
## Design Guidelines
|
|
92
|
+
|
|
93
|
+
- **One agent per domain area**: Group related entities and workflows under a single agent. For example, a finance app might have an AccountAgent (accounts, transfers) and a ReportsAgent (spending reports, trends).
|
|
94
|
+
- **Focused tools lists**: Only give an agent the tools it needs. Don't give every agent access to every entity.
|
|
95
|
+
- **Clear roles**: The role should describe the agent's domain expertise. The instruction should describe the specific actions it can take.
|
|
96
|
+
- **Descriptive instructions**: Tell the agent what operations are available. For example: "You can create accounts, record transactions, and transfer funds between accounts."
|
|
97
|
+
- **Cover all entities**: Every entity and custom workflow should be accessible via at least one agent.
|
|
98
|
+
- **Consider user workflows**: Think about how a user would interact with the app. Group tools by user task, not by technical structure.
|
|
99
|
+
|
|
100
|
+
## Example
|
|
101
|
+
|
|
102
|
+
For a Personal Finance Tracker with Account, Transaction, Category entities and transferFunds, spendingByCategory workflows (entities, relationships, events, and workflows are in workflows.al and will be merged automatically):
|
|
103
|
+
|
|
104
|
+
module Finance.core
|
|
105
|
+
|
|
106
|
+
agent AccountAgent {
|
|
107
|
+
role "You are a financial accounts manager who handles account operations and fund transfers.",
|
|
108
|
+
instruction "Manage accounts, record transactions, and transfer funds between accounts. You can create and query accounts, add transactions to accounts, and execute fund transfers.",
|
|
109
|
+
tools [Account, Transaction, AccountTransaction, transferFunds]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
agent ReportsAgent {
|
|
113
|
+
role "You are a financial analyst who generates reports and insights from transaction data.",
|
|
114
|
+
instruction "Generate spending reports and financial summaries. You can query transactions by category and produce spending breakdowns.",
|
|
115
|
+
tools [Transaction, Category, TransactionCategory, spendingByCategory]
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
//# sourceMappingURL=step8-agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step8-agents.js","sourceRoot":"","sources":["../../../../../../../libs/agentcraft/src/instructions/step8-agents.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHtC,CAAC"}
|