@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,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
45
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
46
|
+
};
|
|
47
|
+
var DeploymentsService_1;
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.DeploymentsService = void 0;
|
|
50
|
+
const common_1 = require("@nestjs/common");
|
|
51
|
+
const config_1 = require("@nestjs/config");
|
|
52
|
+
const promises_1 = require("node:fs/promises");
|
|
53
|
+
const path = __importStar(require("node:path"));
|
|
54
|
+
const project_provider_1 = require("../../../../libs/project-provider/src");
|
|
55
|
+
const deployment_errors_1 = require("./errors/deployment.errors");
|
|
56
|
+
let DeploymentsService = DeploymentsService_1 = class DeploymentsService {
|
|
57
|
+
config;
|
|
58
|
+
logger = new common_1.Logger(DeploymentsService_1.name);
|
|
59
|
+
registryPath;
|
|
60
|
+
deploymentServiceUrl;
|
|
61
|
+
constructor(registryPath, config) {
|
|
62
|
+
this.config = config;
|
|
63
|
+
this.registryPath = registryPath;
|
|
64
|
+
this.deploymentServiceUrl = this.config.get('deploymentService.baseUrl');
|
|
65
|
+
}
|
|
66
|
+
get isConfigured() {
|
|
67
|
+
return !!this.deploymentServiceUrl;
|
|
68
|
+
}
|
|
69
|
+
employeeDir(projectId, employeeId) {
|
|
70
|
+
return path.resolve(this.registryPath, projectId, employeeId);
|
|
71
|
+
}
|
|
72
|
+
async getLocalDeployment(projectId, employeeId) {
|
|
73
|
+
const filePath = path.join(this.employeeDir(projectId, employeeId), 'deployment.json');
|
|
74
|
+
let raw;
|
|
75
|
+
try {
|
|
76
|
+
raw = await (0, promises_1.readFile)(filePath, 'utf-8');
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
throw new deployment_errors_1.DeploymentNotFoundError(projectId, employeeId);
|
|
80
|
+
}
|
|
81
|
+
return JSON.parse(raw);
|
|
82
|
+
}
|
|
83
|
+
async getLiveStatus(deploymentId) {
|
|
84
|
+
if (!this.deploymentServiceUrl) {
|
|
85
|
+
throw new deployment_errors_1.DeploymentServiceUnavailableError('Deployment service URL not configured');
|
|
86
|
+
}
|
|
87
|
+
const url = `${this.deploymentServiceUrl}/deployments/${deploymentId}`;
|
|
88
|
+
let res;
|
|
89
|
+
try {
|
|
90
|
+
res = await fetch(url);
|
|
91
|
+
}
|
|
92
|
+
catch (err) {
|
|
93
|
+
throw new deployment_errors_1.DeploymentServiceUnavailableError(`Failed to reach deployment service: ${err instanceof Error ? err.message : err}`);
|
|
94
|
+
}
|
|
95
|
+
if (!res.ok) {
|
|
96
|
+
throw new deployment_errors_1.DeploymentServiceUnavailableError(`Deployment service returned ${res.status} for deployment ${deploymentId}`);
|
|
97
|
+
}
|
|
98
|
+
return (await res.json());
|
|
99
|
+
}
|
|
100
|
+
async getEmployeeStatus(projectId, employeeId) {
|
|
101
|
+
const local = await this.getLocalDeployment(projectId, employeeId);
|
|
102
|
+
let deployment = local;
|
|
103
|
+
try {
|
|
104
|
+
deployment = await this.getLiveStatus(local.id);
|
|
105
|
+
}
|
|
106
|
+
catch (err) {
|
|
107
|
+
this.logger.warn(`Could not fetch live status for ${projectId}/${employeeId}, using local: ${err instanceof Error ? err.message : err}`);
|
|
108
|
+
}
|
|
109
|
+
return { projectId, employeeId, deployment };
|
|
110
|
+
}
|
|
111
|
+
async isRunning(projectId, employeeId) {
|
|
112
|
+
try {
|
|
113
|
+
const info = await this.getEmployeeStatus(projectId, employeeId);
|
|
114
|
+
return info.deployment.status === 'running';
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
this.logger.debug(`isRunning check failed for ${projectId}/${employeeId}: ${err instanceof Error ? err.message : err}`);
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async listDeployments() {
|
|
122
|
+
const results = [];
|
|
123
|
+
let projectDirs;
|
|
124
|
+
try {
|
|
125
|
+
projectDirs = await (0, promises_1.readdir)(this.registryPath);
|
|
126
|
+
}
|
|
127
|
+
catch (err) {
|
|
128
|
+
this.logger.warn(`Failed to read registry path ${this.registryPath}: ${err instanceof Error ? err.message : err}`);
|
|
129
|
+
return results;
|
|
130
|
+
}
|
|
131
|
+
for (const projectId of projectDirs) {
|
|
132
|
+
const projectPath = path.join(this.registryPath, projectId);
|
|
133
|
+
const projectStat = await (0, promises_1.stat)(projectPath).catch(() => null);
|
|
134
|
+
if (!projectStat?.isDirectory())
|
|
135
|
+
continue;
|
|
136
|
+
let employeeDirs;
|
|
137
|
+
try {
|
|
138
|
+
employeeDirs = await (0, promises_1.readdir)(projectPath);
|
|
139
|
+
}
|
|
140
|
+
catch (err) {
|
|
141
|
+
this.logger.debug(`Failed to read project directory ${projectPath}: ${err instanceof Error ? err.message : err}`);
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
for (const employeeId of employeeDirs) {
|
|
145
|
+
const employeePath = path.join(projectPath, employeeId);
|
|
146
|
+
const empStat = await (0, promises_1.stat)(employeePath).catch(() => null);
|
|
147
|
+
if (!empStat?.isDirectory())
|
|
148
|
+
continue;
|
|
149
|
+
const deploymentFile = path.join(employeePath, 'deployment.json');
|
|
150
|
+
try {
|
|
151
|
+
const raw = await (0, promises_1.readFile)(deploymentFile, 'utf-8');
|
|
152
|
+
const deployment = JSON.parse(raw);
|
|
153
|
+
results.push({ projectId, employeeId, deployment });
|
|
154
|
+
}
|
|
155
|
+
catch (err) {
|
|
156
|
+
this.logger.debug(`No deployment.json for ${projectId}/${employeeId}: ${err instanceof Error ? err.message : err}`);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return results;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
exports.DeploymentsService = DeploymentsService;
|
|
164
|
+
exports.DeploymentsService = DeploymentsService = DeploymentsService_1 = __decorate([
|
|
165
|
+
(0, common_1.Injectable)(),
|
|
166
|
+
__param(0, (0, common_1.Inject)(project_provider_1.REGISTRY_PATH)),
|
|
167
|
+
__metadata("design:paramtypes", [String, config_1.ConfigService])
|
|
168
|
+
], DeploymentsService);
|
|
169
|
+
//# sourceMappingURL=deployments.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments.service.js","sourceRoot":"","sources":["../../../../../../../apps/agentmanager/src/deployments/deployments.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4D;AAC5D,2CAA+C;AAC/C,+CAA2D;AAC3D,gDAAkC;AAClC,4EAAsD;AACtD,kEAGoC;AAgB7B,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAOV;IANF,MAAM,GAAG,IAAI,eAAM,CAAC,oBAAkB,CAAC,IAAI,CAAC,CAAC;IAC7C,YAAY,CAAS;IACrB,oBAAoB,CAAU;IAE/C,YACyB,YAAoB,EAC1B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;QAEtC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CACzC,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED,IAAI,YAAY;QACd,OAAO,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IAEO,WAAW,CAAC,SAAiB,EAAE,UAAkB;QACvD,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;gBAEtC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;gBAClE,IAAI,CAAC;oBACH,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAQ,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;oBACpD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAmB,CAAC;oBACrD,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;gBACtD,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,0BAA0B,SAAS,IAAI,UAAU,KAAK,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CACjG,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA7IY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,eAAM,EAAC,gCAAa,CAAC,CAAA;6CACG,sBAAa;GAP7B,kBAAkB,CA6I9B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DomainError } from '@app/project-provider';
|
|
2
|
+
export declare class DeploymentNotFoundError extends DomainError {
|
|
3
|
+
constructor(projectId: string, employeeId: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class DeploymentServiceUnavailableError extends DomainError {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeploymentServiceUnavailableError = exports.DeploymentNotFoundError = void 0;
|
|
4
|
+
const project_provider_1 = require("../../../../../libs/project-provider/src");
|
|
5
|
+
class DeploymentNotFoundError extends project_provider_1.DomainError {
|
|
6
|
+
constructor(projectId, employeeId) {
|
|
7
|
+
super(`No deployment.json found for ${projectId}/${employeeId}`, 404);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.DeploymentNotFoundError = DeploymentNotFoundError;
|
|
11
|
+
class DeploymentServiceUnavailableError extends project_provider_1.DomainError {
|
|
12
|
+
constructor(message) {
|
|
13
|
+
super(message, 503);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.DeploymentServiceUnavailableError = DeploymentServiceUnavailableError;
|
|
17
|
+
//# sourceMappingURL=deployment.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.errors.js","sourceRoot":"","sources":["../../../../../../../../apps/agentmanager/src/deployments/errors/deployment.errors.ts"],"names":[],"mappings":";;;AAAA,+EAAoD;AAEpD,MAAa,uBAAwB,SAAQ,8BAAW;IACtD,YAAY,SAAiB,EAAE,UAAkB;QAC/C,KAAK,CAAC,gCAAgC,SAAS,IAAI,UAAU,EAAE,EAAE,GAAG,CAAC,CAAC;IACxE,CAAC;CACF;AAJD,0DAIC;AAED,MAAa,iCAAkC,SAAQ,8BAAW;IAChE,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACtB,CAAC;CACF;AAJD,8EAIC"}
|
package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DeploymentSource {
|
|
2
|
+
type: string;
|
|
3
|
+
org: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
branch: string;
|
|
6
|
+
}
|
|
7
|
+
export type DeploymentStatus = 'running' | 'pending' | 'paused' | 'stopped';
|
|
8
|
+
export interface DeploymentInfo {
|
|
9
|
+
id: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
source: DeploymentSource;
|
|
12
|
+
provider: string;
|
|
13
|
+
status: DeploymentStatus;
|
|
14
|
+
port: number;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EmployeeDeploymentInfo {
|
|
19
|
+
projectId: string;
|
|
20
|
+
employeeId: string;
|
|
21
|
+
deployment: DeploymentInfo;
|
|
22
|
+
}
|
package/dist/apps/monolith/apps/agentmanager/src/deployments/interfaces/deployment.interfaces.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.interfaces.js","sourceRoot":"","sources":["../../../../../../../../apps/agentmanager/src/deployments/interfaces/deployment.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DiscoveryService } from './discovery.service';
|
|
2
|
+
import { DiscoverDto } from './dto/discover.dto';
|
|
3
|
+
export declare class DiscoveryController {
|
|
4
|
+
private readonly discoveryService;
|
|
5
|
+
constructor(discoveryService: DiscoveryService);
|
|
6
|
+
discover(dto: DiscoverDto): Promise<import("./discovery.service").DiscoveryResult>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DiscoveryController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const discovery_service_1 = require("./discovery.service");
|
|
18
|
+
const discover_dto_1 = require("./dto/discover.dto");
|
|
19
|
+
let DiscoveryController = class DiscoveryController {
|
|
20
|
+
discoveryService;
|
|
21
|
+
constructor(discoveryService) {
|
|
22
|
+
this.discoveryService = discoveryService;
|
|
23
|
+
}
|
|
24
|
+
async discover(dto) {
|
|
25
|
+
return this.discoveryService.discover(dto.query);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.DiscoveryController = DiscoveryController;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, common_1.Post)(),
|
|
31
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
32
|
+
__param(0, (0, common_1.Body)()),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", [discover_dto_1.DiscoverDto]),
|
|
35
|
+
__metadata("design:returntype", Promise)
|
|
36
|
+
], DiscoveryController.prototype, "discover", null);
|
|
37
|
+
exports.DiscoveryController = DiscoveryController = __decorate([
|
|
38
|
+
(0, common_1.Controller)('discover'),
|
|
39
|
+
__metadata("design:paramtypes", [discovery_service_1.DiscoveryService])
|
|
40
|
+
], DiscoveryController);
|
|
41
|
+
//# sourceMappingURL=discovery.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.controller.js","sourceRoot":"","sources":["../../../../../../../apps/agentmanager/src/discovery/discovery.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA8E;AAC9E,2DAAuD;AACvD,qDAAiD;AAG1C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACD;IAA7B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAI7D,AAAN,KAAK,CAAC,QAAQ,CAAS,GAAgB;QACrC,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;CACF,CAAA;AARY,kDAAmB;AAKxB;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACR,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,0BAAW;;mDAEtC;8BAPU,mBAAmB;IAD/B,IAAA,mBAAU,EAAC,UAAU,CAAC;qCAE0B,oCAAgB;GADpD,mBAAmB,CAQ/B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.DiscoveryModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const config_1 = require("@nestjs/config");
|
|
12
|
+
const discovery_controller_1 = require("./discovery.controller");
|
|
13
|
+
const discovery_service_1 = require("./discovery.service");
|
|
14
|
+
const llm_provider_interface_1 = require("./llm/llm-provider.interface");
|
|
15
|
+
const anthropic_llm_service_1 = require("./llm/anthropic-llm.service");
|
|
16
|
+
const openai_llm_service_1 = require("./llm/openai-llm.service");
|
|
17
|
+
let DiscoveryModule = class DiscoveryModule {
|
|
18
|
+
};
|
|
19
|
+
exports.DiscoveryModule = DiscoveryModule;
|
|
20
|
+
exports.DiscoveryModule = DiscoveryModule = __decorate([
|
|
21
|
+
(0, common_1.Module)({
|
|
22
|
+
controllers: [discovery_controller_1.DiscoveryController],
|
|
23
|
+
providers: [
|
|
24
|
+
discovery_service_1.DiscoveryService,
|
|
25
|
+
{
|
|
26
|
+
provide: llm_provider_interface_1.LLM_PROVIDER,
|
|
27
|
+
useFactory: (config) => {
|
|
28
|
+
const llmConfig = config.get('llm');
|
|
29
|
+
if (!llmConfig?.apiKey)
|
|
30
|
+
return null;
|
|
31
|
+
if (llmConfig.provider === 'openai') {
|
|
32
|
+
return new openai_llm_service_1.OpenaiLlmService(llmConfig.model, llmConfig.apiKey, llmConfig.baseUrl);
|
|
33
|
+
}
|
|
34
|
+
return new anthropic_llm_service_1.AnthropicLlmService(llmConfig.model, llmConfig.apiKey, llmConfig.baseUrl);
|
|
35
|
+
},
|
|
36
|
+
inject: [config_1.ConfigService],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
})
|
|
40
|
+
], DiscoveryModule);
|
|
41
|
+
//# sourceMappingURL=discovery.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.module.js","sourceRoot":"","sources":["../../../../../../../apps/agentmanager/src/discovery/discovery.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA+C;AAC/C,iEAA6D;AAC7D,2DAAuD;AACvD,yEAA4D;AAC5D,uEAAkE;AAClE,iEAA4D;AA6BrD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IA3B3B,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,0CAAmB,CAAC;QAClC,SAAS,EAAE;YACT,oCAAgB;YAChB;gBACE,OAAO,EAAE,qCAAY;gBACrB,UAAU,EAAE,CAAC,MAAqB,EAAE,EAAE;oBACpC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACpC,IAAI,CAAC,SAAS,EAAE,MAAM;wBAAE,OAAO,IAAI,CAAC;oBAEpC,IAAI,SAAS,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;wBACpC,OAAO,IAAI,qCAAgB,CACzB,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,MAAM,EAChB,SAAS,CAAC,OAAO,CAClB,CAAC;oBACJ,CAAC;oBACD,OAAO,IAAI,2CAAmB,CAC5B,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,MAAM,EAChB,SAAS,CAAC,OAAO,CAClB,CAAC;gBACJ,CAAC;gBACD,MAAM,EAAE,CAAC,sBAAa,CAAC;aACxB;SACF;KACF,CAAC;GACW,eAAe,CAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { RegistryProvider } from '@app/project-provider';
|
|
3
|
+
import { LlmProvider } from './llm/llm-provider.interface';
|
|
4
|
+
import type { DiscoveryMatch, DiscoveryResult } from './interfaces/discovery.interfaces';
|
|
5
|
+
export type { DiscoveryMatch, DiscoveryResult };
|
|
6
|
+
export declare class DiscoveryService {
|
|
7
|
+
private readonly registry;
|
|
8
|
+
private readonly llm;
|
|
9
|
+
private readonly config;
|
|
10
|
+
private readonly logger;
|
|
11
|
+
constructor(registry: RegistryProvider, llm: LlmProvider | null, config: ConfigService);
|
|
12
|
+
discover(query: string): Promise<DiscoveryResult>;
|
|
13
|
+
private buildCatalog;
|
|
14
|
+
private buildUserPrompt;
|
|
15
|
+
private parseResponse;
|
|
16
|
+
private withCreateSuggestion;
|
|
17
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var DiscoveryService_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DiscoveryService = void 0;
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const config_1 = require("@nestjs/config");
|
|
19
|
+
const project_provider_1 = require("../../../../libs/project-provider/src");
|
|
20
|
+
const llm_provider_interface_1 = require("./llm/llm-provider.interface");
|
|
21
|
+
const llm_errors_1 = require("./llm/llm.errors");
|
|
22
|
+
let DiscoveryService = DiscoveryService_1 = class DiscoveryService {
|
|
23
|
+
registry;
|
|
24
|
+
llm;
|
|
25
|
+
config;
|
|
26
|
+
logger = new common_1.Logger(DiscoveryService_1.name);
|
|
27
|
+
constructor(registry, llm, config) {
|
|
28
|
+
this.registry = registry;
|
|
29
|
+
this.llm = llm;
|
|
30
|
+
this.config = config;
|
|
31
|
+
}
|
|
32
|
+
async discover(query) {
|
|
33
|
+
if (!this.llm) {
|
|
34
|
+
throw new llm_errors_1.LlmNotConfiguredError();
|
|
35
|
+
}
|
|
36
|
+
const catalog = await this.buildCatalog();
|
|
37
|
+
if (catalog.length === 0) {
|
|
38
|
+
return this.withCreateSuggestion({ query, matches: [] });
|
|
39
|
+
}
|
|
40
|
+
const systemPrompt = `You are an AI Employee discovery engine. You will be given a user query describing a business need, and a catalog of AI Employees with their capabilities.
|
|
41
|
+
|
|
42
|
+
Your task:
|
|
43
|
+
1. Compare the user query against each AI Employee's capabilities.
|
|
44
|
+
2. Return a JSON array of matches. Each match must have:
|
|
45
|
+
- "employeeId": the employee's ID
|
|
46
|
+
- "projectId": the project it belongs to
|
|
47
|
+
- "relevanceScore": integer 0-100 indicating how well the employee matches the query
|
|
48
|
+
- "reason": a brief explanation of why this employee matches
|
|
49
|
+
- "matchedCapabilities": array of capability names that are relevant to the query
|
|
50
|
+
3. Only include employees with relevanceScore >= 30.
|
|
51
|
+
4. Sort by relevanceScore descending.
|
|
52
|
+
5. If nothing matches, return an empty array [].
|
|
53
|
+
|
|
54
|
+
Return ONLY the JSON array, no other text.`;
|
|
55
|
+
const userPrompt = this.buildUserPrompt(query, catalog);
|
|
56
|
+
const response = await this.llm.complete({
|
|
57
|
+
systemPrompt,
|
|
58
|
+
userPrompt,
|
|
59
|
+
temperature: 0,
|
|
60
|
+
});
|
|
61
|
+
const matches = this.parseResponse(response.text);
|
|
62
|
+
return this.withCreateSuggestion({ query, matches });
|
|
63
|
+
}
|
|
64
|
+
async buildCatalog() {
|
|
65
|
+
const projects = await this.registry.listProjects();
|
|
66
|
+
const catalog = [];
|
|
67
|
+
for (const project of projects) {
|
|
68
|
+
const employees = await this.registry.listEmployees(project.id);
|
|
69
|
+
for (const emp of employees) {
|
|
70
|
+
const detail = await this.registry.getEmployee(project.id, emp.id);
|
|
71
|
+
catalog.push({ employee: detail, projectId: project.id });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return catalog;
|
|
75
|
+
}
|
|
76
|
+
buildUserPrompt(query, catalog) {
|
|
77
|
+
const catalogText = catalog
|
|
78
|
+
.map(({ employee, projectId }) => {
|
|
79
|
+
const caps = employee.capabilities
|
|
80
|
+
.map((c) => {
|
|
81
|
+
let entry = ` - [${c.kind}] ${c.name} (invoke: ${c.invokeEndpoint})`;
|
|
82
|
+
if (c.role)
|
|
83
|
+
entry += `\n Role: ${c.role}`;
|
|
84
|
+
if (c.instruction)
|
|
85
|
+
entry += `\n Instruction: ${c.instruction}`;
|
|
86
|
+
return entry;
|
|
87
|
+
})
|
|
88
|
+
.join('\n');
|
|
89
|
+
return ` Employee: ${employee.id} (project: ${projectId}, module: ${employee.module ?? 'N/A'})\n Capabilities:\n${caps}`;
|
|
90
|
+
})
|
|
91
|
+
.join('\n\n');
|
|
92
|
+
return `User query: "${query}"\n\nAI Employee Catalog:\n${catalogText}`;
|
|
93
|
+
}
|
|
94
|
+
parseResponse(text) {
|
|
95
|
+
let cleaned = text.trim();
|
|
96
|
+
cleaned = cleaned
|
|
97
|
+
.replace(/^```(?:json)?\s*\n?/i, '')
|
|
98
|
+
.replace(/\n?```\s*$/, '');
|
|
99
|
+
cleaned = cleaned.trim();
|
|
100
|
+
let parsed;
|
|
101
|
+
try {
|
|
102
|
+
parsed = JSON.parse(cleaned);
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
return [];
|
|
106
|
+
}
|
|
107
|
+
if (!Array.isArray(parsed)) {
|
|
108
|
+
return [];
|
|
109
|
+
}
|
|
110
|
+
return parsed
|
|
111
|
+
.filter((item) => typeof item.employeeId === 'string' &&
|
|
112
|
+
typeof item.projectId === 'string' &&
|
|
113
|
+
typeof item.relevanceScore === 'number' &&
|
|
114
|
+
item.relevanceScore >= 30)
|
|
115
|
+
.sort((a, b) => b.relevanceScore - a.relevanceScore)
|
|
116
|
+
.map((item) => ({
|
|
117
|
+
employeeId: item.employeeId,
|
|
118
|
+
projectId: item.projectId,
|
|
119
|
+
module: item.module ?? null,
|
|
120
|
+
relevanceScore: item.relevanceScore,
|
|
121
|
+
reason: item.reason ?? '',
|
|
122
|
+
matchedCapabilities: Array.isArray(item.matchedCapabilities)
|
|
123
|
+
? item.matchedCapabilities.map((cap) => typeof cap === 'string'
|
|
124
|
+
? { name: cap, kind: 'unknown', invokeEndpoint: '' }
|
|
125
|
+
: {
|
|
126
|
+
name: cap.name ?? '',
|
|
127
|
+
kind: cap.kind ??
|
|
128
|
+
'unknown',
|
|
129
|
+
invokeEndpoint: cap
|
|
130
|
+
.invokeEndpoint ?? '',
|
|
131
|
+
...(cap.instruction
|
|
132
|
+
? {
|
|
133
|
+
instruction: cap
|
|
134
|
+
.instruction,
|
|
135
|
+
}
|
|
136
|
+
: {}),
|
|
137
|
+
})
|
|
138
|
+
: [],
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
withCreateSuggestion(result) {
|
|
142
|
+
const agentcraftUrl = this.config.get('agentcraft.baseUrl');
|
|
143
|
+
if (result.matches.length === 0 && agentcraftUrl) {
|
|
144
|
+
result.createSuggestion = {
|
|
145
|
+
message: 'No matching AI Employee was found. You can create one using AgentCraft.',
|
|
146
|
+
agentcraftUrl,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
exports.DiscoveryService = DiscoveryService;
|
|
153
|
+
exports.DiscoveryService = DiscoveryService = DiscoveryService_1 = __decorate([
|
|
154
|
+
(0, common_1.Injectable)(),
|
|
155
|
+
__param(0, (0, common_1.Inject)(project_provider_1.REGISTRY_PROVIDER)),
|
|
156
|
+
__param(1, (0, common_1.Inject)(llm_provider_interface_1.LLM_PROVIDER)),
|
|
157
|
+
__param(1, (0, common_1.Optional)()),
|
|
158
|
+
__metadata("design:paramtypes", [Object, Object, config_1.ConfigService])
|
|
159
|
+
], DiscoveryService);
|
|
160
|
+
//# sourceMappingURL=discovery.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.service.js","sourceRoot":"","sources":["../../../../../../../apps/agentmanager/src/discovery/discovery.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAsE;AACtE,2CAA+C;AAC/C,4EAK+B;AAC/B,yEAAyE;AACzE,iDAAyD;AASlD,IAAM,gBAAgB,wB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ZodObject<{
|
|
3
|
+
query: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
declare const DiscoverDto_base: import("nestjs-zod").ZodDto<z.ZodObject<{
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
}, z.core.$strip>, false>;
|
|
8
|
+
export declare class DiscoverDto extends DiscoverDto_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscoverDto = exports.DiscoverSchema = void 0;
|
|
4
|
+
const nestjs_zod_1 = require("nestjs-zod");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.DiscoverSchema = zod_1.z.object({
|
|
7
|
+
query: zod_1.z.string().min(1).max(2000),
|
|
8
|
+
});
|
|
9
|
+
class DiscoverDto extends (0, nestjs_zod_1.createZodDto)(exports.DiscoverSchema) {
|
|
10
|
+
}
|
|
11
|
+
exports.DiscoverDto = DiscoverDto;
|
|
12
|
+
//# sourceMappingURL=discover.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.dto.js","sourceRoot":"","sources":["../../../../../../../../apps/agentmanager/src/discovery/dto/discover.dto.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACnC,CAAC,CAAC;AAEH,MAAa,WAAY,SAAQ,IAAA,yBAAY,EAAC,sBAAc,CAAC;CAAG;AAAhE,kCAAgE"}
|
package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DiscoveryMatch {
|
|
2
|
+
employeeId: string;
|
|
3
|
+
projectId: string;
|
|
4
|
+
module: string | null;
|
|
5
|
+
relevanceScore: number;
|
|
6
|
+
reason: string;
|
|
7
|
+
matchedCapabilities: {
|
|
8
|
+
name: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
invokeEndpoint: string;
|
|
11
|
+
instruction?: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
export interface DiscoveryResult {
|
|
15
|
+
query: string;
|
|
16
|
+
matches: DiscoveryMatch[];
|
|
17
|
+
createSuggestion?: {
|
|
18
|
+
message: string;
|
|
19
|
+
agentcraftUrl: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
package/dist/apps/monolith/apps/agentmanager/src/discovery/interfaces/discovery.interfaces.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.interfaces.js","sourceRoot":"","sources":["../../../../../../../../apps/agentmanager/src/discovery/interfaces/discovery.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LlmProvider, LlmRequest, LlmResponse } from './llm-provider.interface';
|
|
2
|
+
export declare class AnthropicLlmService implements LlmProvider {
|
|
3
|
+
private readonly model;
|
|
4
|
+
private readonly apiKey;
|
|
5
|
+
private readonly baseUrl;
|
|
6
|
+
constructor(model: string, apiKey: string, baseUrl?: string);
|
|
7
|
+
complete(request: LlmRequest): Promise<LlmResponse>;
|
|
8
|
+
}
|