@tonycasey/lisa 1.2.0 → 2.0.0
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/README.md +22 -15
- package/dist/hooks/session-start.js +43114 -0
- package/dist/hooks/session-stop.js +42699 -0
- package/dist/hooks/user-prompt-submit.js +42757 -0
- package/dist/lib/application/handlers/PromptSubmitHandler.d.ts +27 -0
- package/dist/lib/application/handlers/PromptSubmitHandler.d.ts.map +1 -0
- package/dist/lib/application/handlers/PromptSubmitHandler.js +53 -0
- package/dist/lib/application/handlers/PromptSubmitHandler.js.map +1 -0
- package/dist/lib/application/handlers/SessionStartHandler.d.ts +50 -0
- package/dist/lib/application/handlers/SessionStartHandler.d.ts.map +1 -0
- package/dist/lib/application/handlers/SessionStartHandler.js +448 -0
- package/dist/lib/application/handlers/SessionStartHandler.js.map +1 -0
- package/dist/lib/application/handlers/SessionStopHandler.d.ts +15 -0
- package/dist/lib/application/handlers/SessionStopHandler.d.ts.map +1 -0
- package/dist/lib/application/handlers/SessionStopHandler.js +35 -0
- package/dist/lib/application/handlers/SessionStopHandler.js.map +1 -0
- package/dist/lib/application/handlers/index.d.ts +8 -0
- package/dist/lib/application/handlers/index.d.ts.map +1 -0
- package/dist/lib/application/handlers/index.js +14 -0
- package/dist/lib/application/handlers/index.js.map +1 -0
- package/dist/lib/application/index.d.ts +13 -0
- package/dist/lib/application/index.d.ts.map +1 -0
- package/dist/lib/application/index.js +31 -0
- package/dist/lib/application/index.js.map +1 -0
- package/dist/lib/application/interfaces/ISessionStartResult.d.ts +22 -0
- package/dist/lib/application/interfaces/ISessionStartResult.d.ts.map +1 -0
- package/dist/lib/application/interfaces/ISessionStartResult.js +3 -0
- package/dist/lib/application/interfaces/ISessionStartResult.js.map +1 -0
- package/dist/lib/application/interfaces/index.d.ts +5 -0
- package/dist/lib/application/interfaces/index.d.ts.map +1 -0
- package/dist/lib/application/interfaces/index.js +6 -0
- package/dist/lib/application/interfaces/index.js.map +1 -0
- package/dist/lib/cli.d.ts +34 -0
- package/dist/lib/cli.d.ts.map +1 -0
- package/dist/lib/cli.js +664 -0
- package/dist/lib/cli.js.map +1 -0
- package/dist/lib/domain/errors/LisaError.d.ts +41 -0
- package/dist/lib/domain/errors/LisaError.d.ts.map +1 -0
- package/dist/lib/domain/errors/LisaError.js +69 -0
- package/dist/lib/domain/errors/LisaError.js.map +1 -0
- package/dist/lib/domain/errors/index.d.ts +5 -0
- package/dist/lib/domain/errors/index.d.ts.map +1 -0
- package/dist/lib/domain/errors/index.js +14 -0
- package/dist/lib/domain/errors/index.js.map +1 -0
- package/dist/lib/domain/index.d.ts +14 -0
- package/dist/lib/domain/index.d.ts.map +1 -0
- package/dist/lib/domain/index.js +33 -0
- package/dist/lib/domain/index.js.map +1 -0
- package/dist/lib/domain/interfaces/IEventEmitter.d.ts +32 -0
- package/dist/lib/domain/interfaces/IEventEmitter.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/IEventEmitter.js +3 -0
- package/dist/lib/domain/interfaces/IEventEmitter.js.map +1 -0
- package/dist/lib/domain/interfaces/ILisaContext.d.ts +25 -0
- package/dist/lib/domain/interfaces/ILisaContext.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/ILisaContext.js +3 -0
- package/dist/lib/domain/interfaces/ILisaContext.js.map +1 -0
- package/dist/lib/domain/interfaces/ILisaServices.d.ts +34 -0
- package/dist/lib/domain/interfaces/ILisaServices.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/ILisaServices.js +3 -0
- package/dist/lib/domain/interfaces/ILisaServices.js.map +1 -0
- package/dist/lib/domain/interfaces/ILogger.d.ts +94 -0
- package/dist/lib/domain/interfaces/ILogger.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/ILogger.js +3 -0
- package/dist/lib/domain/interfaces/ILogger.js.map +1 -0
- package/dist/lib/domain/interfaces/IMcpClient.d.ts +31 -0
- package/dist/lib/domain/interfaces/IMcpClient.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/IMcpClient.js +3 -0
- package/dist/lib/domain/interfaces/IMcpClient.js.map +1 -0
- package/dist/lib/domain/interfaces/IMemoryService.d.ts +56 -0
- package/dist/lib/domain/interfaces/IMemoryService.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/IMemoryService.js +3 -0
- package/dist/lib/domain/interfaces/IMemoryService.js.map +1 -0
- package/dist/lib/domain/interfaces/IRecursionService.d.ts +52 -0
- package/dist/lib/domain/interfaces/IRecursionService.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/IRecursionService.js +3 -0
- package/dist/lib/domain/interfaces/IRecursionService.js.map +1 -0
- package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts +16 -0
- package/dist/lib/domain/interfaces/ISessionCaptureService.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/ISessionCaptureService.js +3 -0
- package/dist/lib/domain/interfaces/ISessionCaptureService.js.map +1 -0
- package/dist/lib/domain/interfaces/ITaskService.d.ts +52 -0
- package/dist/lib/domain/interfaces/ITaskService.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/ITaskService.js +3 -0
- package/dist/lib/domain/interfaces/ITaskService.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/IConnectionManager.d.ts +110 -0
- package/dist/lib/domain/interfaces/dal/IConnectionManager.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/IConnectionManager.js +8 -0
- package/dist/lib/domain/interfaces/dal/IConnectionManager.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts +93 -0
- package/dist/lib/domain/interfaces/dal/IMemoryRepository.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/IMemoryRepository.js +9 -0
- package/dist/lib/domain/interfaces/dal/IMemoryRepository.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/IRepositoryRouter.d.ts +88 -0
- package/dist/lib/domain/interfaces/dal/IRepositoryRouter.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js +23 -0
- package/dist/lib/domain/interfaces/dal/IRepositoryRouter.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/ITaskRepository.d.ts +87 -0
- package/dist/lib/domain/interfaces/dal/ITaskRepository.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/ITaskRepository.js +9 -0
- package/dist/lib/domain/interfaces/dal/ITaskRepository.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/index.d.ts +14 -0
- package/dist/lib/domain/interfaces/dal/index.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/index.js +15 -0
- package/dist/lib/domain/interfaces/dal/index.js.map +1 -0
- package/dist/lib/domain/interfaces/dal/types.d.ts +81 -0
- package/dist/lib/domain/interfaces/dal/types.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/dal/types.js +28 -0
- package/dist/lib/domain/interfaces/dal/types.js.map +1 -0
- package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts +27 -0
- package/dist/lib/domain/interfaces/events/IMemoryEvent.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/IMemoryEvent.js +26 -0
- package/dist/lib/domain/interfaces/events/IMemoryEvent.js.map +1 -0
- package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.d.ts +20 -0
- package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.js +16 -0
- package/dist/lib/domain/interfaces/events/IPromptSubmitEvent.js.map +1 -0
- package/dist/lib/domain/interfaces/events/ISessionStartEvent.d.ts +19 -0
- package/dist/lib/domain/interfaces/events/ISessionStartEvent.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/ISessionStartEvent.js +15 -0
- package/dist/lib/domain/interfaces/events/ISessionStartEvent.js.map +1 -0
- package/dist/lib/domain/interfaces/events/ISessionStopEvent.d.ts +22 -0
- package/dist/lib/domain/interfaces/events/ISessionStopEvent.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/ISessionStopEvent.js +15 -0
- package/dist/lib/domain/interfaces/events/ISessionStopEvent.js.map +1 -0
- package/dist/lib/domain/interfaces/events/LisaEvent.d.ts +13 -0
- package/dist/lib/domain/interfaces/events/LisaEvent.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/LisaEvent.js +3 -0
- package/dist/lib/domain/interfaces/events/LisaEvent.js.map +1 -0
- package/dist/lib/domain/interfaces/events/index.d.ts +9 -0
- package/dist/lib/domain/interfaces/events/index.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/events/index.js +16 -0
- package/dist/lib/domain/interfaces/events/index.js.map +1 -0
- package/dist/lib/domain/interfaces/index.d.ts +16 -0
- package/dist/lib/domain/interfaces/index.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/index.js +25 -0
- package/dist/lib/domain/interfaces/index.js.map +1 -0
- package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts +14 -0
- package/dist/lib/domain/interfaces/types/ICapturedWork.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/types/ICapturedWork.js +14 -0
- package/dist/lib/domain/interfaces/types/ICapturedWork.js.map +1 -0
- package/dist/lib/domain/interfaces/types/IMemoryResult.d.ts +39 -0
- package/dist/lib/domain/interfaces/types/IMemoryResult.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/types/IMemoryResult.js +29 -0
- package/dist/lib/domain/interfaces/types/IMemoryResult.js.map +1 -0
- package/dist/lib/domain/interfaces/types/ITask.d.ts +46 -0
- package/dist/lib/domain/interfaces/types/ITask.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/types/ITask.js +17 -0
- package/dist/lib/domain/interfaces/types/ITask.js.map +1 -0
- package/dist/lib/domain/interfaces/types/index.d.ts +7 -0
- package/dist/lib/domain/interfaces/types/index.d.ts.map +1 -0
- package/dist/lib/domain/interfaces/types/index.js +14 -0
- package/dist/lib/domain/interfaces/types/index.js.map +1 -0
- package/dist/lib/domain/types/ISOTimestamp.d.ts +19 -0
- package/dist/lib/domain/types/ISOTimestamp.d.ts.map +1 -0
- package/dist/lib/domain/types/ISOTimestamp.js +18 -0
- package/dist/lib/domain/types/ISOTimestamp.js.map +1 -0
- package/dist/lib/domain/types/index.d.ts +7 -0
- package/dist/lib/domain/types/index.d.ts.map +1 -0
- package/dist/lib/domain/types/index.js +12 -0
- package/dist/lib/domain/types/index.js.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/index.d.ts +8 -0
- package/dist/lib/infrastructure/adapters/claude/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/index.js +18 -0
- package/dist/lib/infrastructure/adapters/claude/index.js.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/session-start.d.ts +9 -0
- package/dist/lib/infrastructure/adapters/claude/session-start.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/session-start.js +54 -0
- package/dist/lib/infrastructure/adapters/claude/session-start.js.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts +13 -0
- package/dist/lib/infrastructure/adapters/claude/session-stop.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/session-stop.js +43 -0
- package/dist/lib/infrastructure/adapters/claude/session-stop.js.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/stdin.d.ts +13 -0
- package/dist/lib/infrastructure/adapters/claude/stdin.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/stdin.js +36 -0
- package/dist/lib/infrastructure/adapters/claude/stdin.js.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.d.ts +13 -0
- package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js +58 -0
- package/dist/lib/infrastructure/adapters/claude/user-prompt-submit.js.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/index.d.ts +7 -0
- package/dist/lib/infrastructure/adapters/opencode/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/index.js +18 -0
- package/dist/lib/infrastructure/adapters/opencode/index.js.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/opencode-events.d.ts +73 -0
- package/dist/lib/infrastructure/adapters/opencode/opencode-events.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/opencode-events.js +131 -0
- package/dist/lib/infrastructure/adapters/opencode/opencode-events.js.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts +60 -0
- package/dist/lib/infrastructure/adapters/opencode/plugin.d.ts.map +1 -0
- package/dist/lib/infrastructure/adapters/opencode/plugin.js +147 -0
- package/dist/lib/infrastructure/adapters/opencode/plugin.js.map +1 -0
- package/dist/lib/infrastructure/context/ContextDetector.d.ts +92 -0
- package/dist/lib/infrastructure/context/ContextDetector.d.ts.map +1 -0
- package/dist/lib/infrastructure/context/ContextDetector.js +415 -0
- package/dist/lib/infrastructure/context/ContextDetector.js.map +1 -0
- package/dist/lib/infrastructure/context/index.d.ts +5 -0
- package/dist/lib/infrastructure/context/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/context/index.js +9 -0
- package/dist/lib/infrastructure/context/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts +71 -0
- package/dist/lib/infrastructure/dal/RepositoryFactory.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/RepositoryFactory.js +134 -0
- package/dist/lib/infrastructure/dal/RepositoryFactory.js.map +1 -0
- package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts +56 -0
- package/dist/lib/infrastructure/dal/connections/McpConnectionManager.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js +98 -0
- package/dist/lib/infrastructure/dal/connections/McpConnectionManager.js.map +1 -0
- package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.d.ts +60 -0
- package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.js +181 -0
- package/dist/lib/infrastructure/dal/connections/Neo4jConnectionManager.js.map +1 -0
- package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts +53 -0
- package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js +168 -0
- package/dist/lib/infrastructure/dal/connections/ZepConnectionManager.js.map +1 -0
- package/dist/lib/infrastructure/dal/connections/index.d.ts +9 -0
- package/dist/lib/infrastructure/dal/connections/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/connections/index.js +18 -0
- package/dist/lib/infrastructure/dal/connections/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/index.d.ts +27 -0
- package/dist/lib/infrastructure/dal/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/index.js +50 -0
- package/dist/lib/infrastructure/dal/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/index.d.ts +7 -0
- package/dist/lib/infrastructure/dal/repositories/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/index.js +19 -0
- package/dist/lib/infrastructure/dal/repositories/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts +54 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js +131 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpMemoryRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts +60 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js +182 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/McpTaskRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts +6 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/index.js +11 -0
- package/dist/lib/infrastructure/dal/repositories/mcp/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts +47 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js +144 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jMemoryRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts +46 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js +160 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/Neo4jTaskRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts +6 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/index.js +11 -0
- package/dist/lib/infrastructure/dal/repositories/neo4j/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts +55 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js +165 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepMemoryRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts +58 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js +206 -0
- package/dist/lib/infrastructure/dal/repositories/zep/ZepTaskRepository.js.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts +6 -0
- package/dist/lib/infrastructure/dal/repositories/zep/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/repositories/zep/index.js +11 -0
- package/dist/lib/infrastructure/dal/repositories/zep/index.js.map +1 -0
- package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts +73 -0
- package/dist/lib/infrastructure/dal/routing/RepositoryRouter.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js +170 -0
- package/dist/lib/infrastructure/dal/routing/RepositoryRouter.js.map +1 -0
- package/dist/lib/infrastructure/dal/routing/index.d.ts +5 -0
- package/dist/lib/infrastructure/dal/routing/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/dal/routing/index.js +10 -0
- package/dist/lib/infrastructure/dal/routing/index.js.map +1 -0
- package/dist/lib/infrastructure/di/ServiceFactory.d.ts +44 -0
- package/dist/lib/infrastructure/di/ServiceFactory.d.ts.map +1 -0
- package/dist/lib/infrastructure/di/ServiceFactory.js +141 -0
- package/dist/lib/infrastructure/di/ServiceFactory.js.map +1 -0
- package/dist/lib/infrastructure/di/index.d.ts +5 -0
- package/dist/lib/infrastructure/di/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/di/index.js +10 -0
- package/dist/lib/infrastructure/di/index.js.map +1 -0
- package/dist/lib/infrastructure/index.d.ts +17 -0
- package/dist/lib/infrastructure/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/index.js +41 -0
- package/dist/lib/infrastructure/index.js.map +1 -0
- package/dist/lib/infrastructure/logging/Logger.d.ts +50 -0
- package/dist/lib/infrastructure/logging/Logger.d.ts.map +1 -0
- package/dist/lib/infrastructure/logging/Logger.js +167 -0
- package/dist/lib/infrastructure/logging/Logger.js.map +1 -0
- package/dist/lib/infrastructure/logging/context.d.ts +51 -0
- package/dist/lib/infrastructure/logging/context.d.ts.map +1 -0
- package/dist/lib/infrastructure/logging/context.js +77 -0
- package/dist/lib/infrastructure/logging/context.js.map +1 -0
- package/dist/lib/infrastructure/logging/factory.d.ts +36 -0
- package/dist/lib/infrastructure/logging/factory.d.ts.map +1 -0
- package/dist/lib/infrastructure/logging/factory.js +122 -0
- package/dist/lib/infrastructure/logging/factory.js.map +1 -0
- package/dist/lib/infrastructure/logging/index.d.ts +26 -0
- package/dist/lib/infrastructure/logging/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/logging/index.js +45 -0
- package/dist/lib/infrastructure/logging/index.js.map +1 -0
- package/dist/lib/infrastructure/mcp/McpClient.d.ts +36 -0
- package/dist/lib/infrastructure/mcp/McpClient.d.ts.map +1 -0
- package/dist/lib/infrastructure/mcp/McpClient.js +155 -0
- package/dist/lib/infrastructure/mcp/McpClient.js.map +1 -0
- package/dist/lib/infrastructure/mcp/index.d.ts +5 -0
- package/dist/lib/infrastructure/mcp/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/mcp/index.js +9 -0
- package/dist/lib/infrastructure/mcp/index.js.map +1 -0
- package/dist/lib/infrastructure/services/EventEmitter.d.ts +24 -0
- package/dist/lib/infrastructure/services/EventEmitter.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/EventEmitter.js +41 -0
- package/dist/lib/infrastructure/services/EventEmitter.js.map +1 -0
- package/dist/lib/infrastructure/services/MemoryService.d.ts +48 -0
- package/dist/lib/infrastructure/services/MemoryService.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/MemoryService.js +298 -0
- package/dist/lib/infrastructure/services/MemoryService.js.map +1 -0
- package/dist/lib/infrastructure/services/RecursionService.d.ts +50 -0
- package/dist/lib/infrastructure/services/RecursionService.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/RecursionService.js +233 -0
- package/dist/lib/infrastructure/services/RecursionService.js.map +1 -0
- package/dist/lib/infrastructure/services/SessionCaptureService.d.ts +31 -0
- package/dist/lib/infrastructure/services/SessionCaptureService.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/SessionCaptureService.js +38 -0
- package/dist/lib/infrastructure/services/SessionCaptureService.js.map +1 -0
- package/dist/lib/infrastructure/services/TaskService.d.ts +38 -0
- package/dist/lib/infrastructure/services/TaskService.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/TaskService.js +227 -0
- package/dist/lib/infrastructure/services/TaskService.js.map +1 -0
- package/dist/lib/infrastructure/services/index.d.ts +9 -0
- package/dist/lib/infrastructure/services/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/services/index.js +17 -0
- package/dist/lib/infrastructure/services/index.js.map +1 -0
- package/dist/lib/interfaces/IDockerClient.d.ts +6 -0
- package/dist/lib/interfaces/IDockerClient.d.ts.map +1 -0
- package/dist/lib/interfaces/IDockerClient.js +1 -0
- package/dist/lib/interfaces/IDockerClient.js.map +1 -0
- package/dist/lib/interfaces/IMcpClient.d.ts +7 -0
- package/dist/lib/interfaces/IMcpClient.d.ts.map +1 -0
- package/dist/lib/interfaces/IMcpClient.js +1 -0
- package/dist/lib/interfaces/IMcpClient.js.map +1 -0
- package/dist/lib/interfaces/IServices.d.ts +9 -0
- package/dist/lib/interfaces/IServices.d.ts.map +1 -0
- package/dist/lib/interfaces/IServices.js +1 -0
- package/dist/lib/interfaces/IServices.js.map +1 -0
- package/dist/lib/interfaces/ITemplateCopier.d.ts +6 -0
- package/dist/lib/interfaces/ITemplateCopier.d.ts.map +1 -0
- package/dist/lib/interfaces/ITemplateCopier.js +1 -0
- package/dist/lib/interfaces/ITemplateCopier.js.map +1 -0
- package/dist/lib/mcp.d.ts +5 -0
- package/dist/lib/mcp.d.ts.map +1 -0
- package/dist/lib/mcp.js +12 -1
- package/dist/lib/mcp.js.map +1 -0
- package/dist/lib/scanner/analyzer.d.ts +51 -0
- package/dist/lib/scanner/analyzer.d.ts.map +1 -0
- package/dist/lib/scanner/analyzer.js +6 -1
- package/dist/lib/scanner/analyzer.js.map +1 -0
- package/dist/lib/scanner/discovery.d.ts +25 -0
- package/dist/lib/scanner/discovery.d.ts.map +1 -0
- package/dist/lib/scanner/discovery.js +4 -3
- package/dist/lib/scanner/discovery.js.map +1 -0
- package/dist/lib/scanner/facts.d.ts +33 -0
- package/dist/lib/scanner/facts.d.ts.map +1 -0
- package/dist/lib/scanner/facts.js +23 -5
- package/dist/lib/scanner/facts.js.map +1 -0
- package/dist/lib/scanner/index.d.ts +31 -0
- package/dist/lib/scanner/index.d.ts.map +1 -0
- package/dist/lib/scanner/index.js +1 -6
- package/dist/lib/scanner/index.js.map +1 -0
- package/dist/lib/scanner/reviewer.d.ts +62 -0
- package/dist/lib/scanner/reviewer.d.ts.map +1 -0
- package/dist/lib/scanner/reviewer.js +26 -8
- package/dist/lib/scanner/reviewer.js.map +1 -0
- package/dist/lib/services.d.ts +7 -0
- package/dist/lib/services.d.ts.map +1 -0
- package/dist/lib/services.js +1 -0
- package/dist/lib/services.js.map +1 -0
- package/dist/opencode/lisa.js +43344 -0
- package/dist/package.json +15 -3
- package/dist/project/.lisa/.env.template +18 -0
- package/dist/{templates → project/.lisa}/rules/shared/git-rules.md +6 -6
- package/dist/project/.lisa/skills/common/group-id.d.ts.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/common/group-id.js +1 -0
- package/dist/project/.lisa/skills/common/group-id.js.map +1 -0
- package/dist/project/.lisa/skills/common/type-mappings.d.ts.map +1 -0
- package/dist/project/.lisa/skills/common/type-mappings.js +93 -0
- package/dist/project/.lisa/skills/common/type-mappings.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/git/SKILL.md +7 -7
- package/dist/project/.lisa/skills/git/scripts/bump-version.d.ts.map +1 -0
- package/dist/project/.lisa/skills/git/scripts/bump-version.js +58 -0
- package/dist/project/.lisa/skills/git/scripts/bump-version.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/init-review/SKILL.md +2 -2
- package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.d.ts.map +1 -0
- package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.js +177 -0
- package/dist/project/.lisa/skills/init-review/scripts/ai-enrich.js.map +1 -0
- package/dist/project/.lisa/skills/init-review/scripts/init-review.d.ts.map +1 -0
- package/dist/project/.lisa/skills/init-review/scripts/init-review.js +143 -0
- package/dist/project/.lisa/skills/init-review/scripts/init-review.js.map +1 -0
- package/dist/project/.lisa/skills/jira/scripts/jira.d.ts.map +1 -0
- package/dist/project/.lisa/skills/jira/scripts/jira.js +159 -0
- package/dist/project/.lisa/skills/jira/scripts/jira.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/lisa/SKILL.md +17 -15
- package/dist/project/.lisa/skills/lisa/scripts/compile-skills.d.ts.map +1 -0
- package/dist/project/.lisa/skills/lisa/scripts/compile-skills.js +75 -0
- package/dist/project/.lisa/skills/lisa/scripts/compile-skills.js.map +1 -0
- package/dist/project/.lisa/skills/lisa/scripts/storage.d.ts.map +1 -0
- package/dist/project/.lisa/skills/lisa/scripts/storage.js +114 -0
- package/dist/project/.lisa/skills/lisa/scripts/storage.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/memory/SKILL.md +3 -3
- package/dist/project/.lisa/skills/memory/scripts/memory.d.ts.map +1 -0
- package/dist/project/.lisa/skills/memory/scripts/memory.js +95 -0
- package/dist/project/.lisa/skills/memory/scripts/memory.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/prompt/SKILL.md +1 -1
- package/dist/project/.lisa/skills/prompt/scripts/prompt.d.ts.map +1 -0
- package/dist/project/.lisa/skills/prompt/scripts/prompt.js +80 -0
- package/dist/project/.lisa/skills/prompt/scripts/prompt.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/McpClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/McpClient.js +117 -0
- package/dist/project/.lisa/skills/shared/clients/McpClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/Neo4jClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/Neo4jClient.js +81 -0
- package/dist/project/.lisa/skills/shared/clients/Neo4jClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/ZepClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/ZepClient.js +238 -0
- package/dist/project/.lisa/skills/shared/clients/ZepClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/index.js +33 -0
- package/dist/project/.lisa/skills/shared/clients/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.js +3 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IMcpClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.js +3 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/INeo4jClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.js +3 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/IZepClient.js.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/index.js +23 -0
- package/dist/project/.lisa/skills/shared/clients/interfaces/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/group-id.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/group-id.js +18 -0
- package/dist/project/.lisa/skills/shared/group-id.js.map +1 -0
- package/dist/project/.lisa/skills/shared/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/index.js +31 -0
- package/dist/project/.lisa/skills/shared/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/logger.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/logger.js +18 -0
- package/dist/project/.lisa/skills/shared/logger.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/InitReviewService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/InitReviewService.js +287 -0
- package/dist/project/.lisa/skills/shared/services/InitReviewService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/JiraService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/JiraService.js +257 -0
- package/dist/project/.lisa/skills/shared/services/JiraService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/MemoryCliService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/MemoryCliService.js +36 -0
- package/dist/project/.lisa/skills/shared/services/MemoryCliService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/MemoryService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/MemoryService.js +146 -0
- package/dist/project/.lisa/skills/shared/services/MemoryService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/PromptService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/PromptService.js +53 -0
- package/dist/project/.lisa/skills/shared/services/PromptService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/SkillCompilerService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/SkillCompilerService.js +115 -0
- package/dist/project/.lisa/skills/shared/services/SkillCompilerService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/StorageService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/StorageService.js +257 -0
- package/dist/project/.lisa/skills/shared/services/StorageService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/TaskCliService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/TaskCliService.js +40 -0
- package/dist/project/.lisa/skills/shared/services/TaskCliService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/TaskService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/TaskService.js +158 -0
- package/dist/project/.lisa/skills/shared/services/TaskService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/VersionService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/VersionService.js +88 -0
- package/dist/project/.lisa/skills/shared/services/VersionService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/index.js +47 -0
- package/dist/project/.lisa/skills/shared/services/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.js +7 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/IMemoryService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.js +7 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/ITaskService.js.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/index.js +22 -0
- package/dist/project/.lisa/skills/shared/services/interfaces/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/FileCache.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/FileCache.js +119 -0
- package/dist/project/.lisa/skills/shared/utils/FileCache.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/Logger.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/Logger.js +197 -0
- package/dist/project/.lisa/skills/shared/utils/Logger.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/cache.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/cache.js +76 -0
- package/dist/project/.lisa/skills/shared/utils/cache.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/cli.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/cli.js +87 -0
- package/dist/project/.lisa/skills/shared/utils/cli.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/env.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/env.js +103 -0
- package/dist/project/.lisa/skills/shared/utils/env.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/group-id.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/group-id.js +91 -0
- package/dist/project/.lisa/skills/shared/utils/group-id.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/index.js +55 -0
- package/dist/project/.lisa/skills/shared/utils/index.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.js +3 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ICache.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.js +3 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/ILogger.js.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/index.d.ts.map +1 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/index.js +22 -0
- package/dist/project/.lisa/skills/shared/utils/interfaces/index.js.map +1 -0
- package/dist/{templates/agents → project/.lisa}/skills/tasks/SKILL.md +2 -2
- package/dist/project/.lisa/skills/tasks/scripts/tasks.d.ts.map +1 -0
- package/dist/project/.lisa/skills/tasks/scripts/tasks.js +98 -0
- package/dist/project/.lisa/skills/tasks/scripts/tasks.js.map +1 -0
- package/package.json +31 -10
- package/scripts/postinstall.js +93 -60
- package/dist/cli.js +0 -414
- package/dist/templates/agents/.sample.env +0 -12
- package/dist/templates/agents/docs/EXTENDING-SKILLS.md +0 -291
- package/dist/templates/agents/docs/EXTENDING-rules.md +0 -57
- package/dist/templates/agents/docs/STORAGE_SETUP.md +0 -161
- package/dist/templates/agents/skills/git/scripts/bump-version.js +0 -112
- package/dist/templates/agents/skills/init-review/scripts/ai-enrich.js +0 -258
- package/dist/templates/agents/skills/init-review/scripts/init-review.js +0 -769
- package/dist/templates/agents/skills/jira/scripts/jira.js +0 -406
- package/dist/templates/agents/skills/lisa/scripts/compile-skills.js +0 -177
- package/dist/templates/agents/skills/lisa/scripts/storage.js +0 -374
- package/dist/templates/agents/skills/memory/scripts/memory.js +0 -533
- package/dist/templates/agents/skills/prompt/scripts/prompt.js +0 -184
- package/dist/templates/agents/skills/tasks/scripts/tasks.js +0 -489
- package/dist/templates/claude/config.js +0 -40
- package/dist/templates/claude/hooks/README.md +0 -158
- package/dist/templates/claude/hooks/common/complexity-rater.js +0 -290
- package/dist/templates/claude/hooks/common/context.js +0 -263
- package/dist/templates/claude/hooks/common/group-id.js +0 -188
- package/dist/templates/claude/hooks/common/mcp-client.js +0 -131
- package/dist/templates/claude/hooks/common/transcript-parser.js +0 -256
- package/dist/templates/claude/hooks/common/zep-client.js +0 -175
- package/dist/templates/claude/hooks/session-start.js +0 -511
- package/dist/templates/claude/hooks/session-stop-worker.js +0 -484
- package/dist/templates/claude/hooks/session-stop.js +0 -122
- package/dist/templates/claude/hooks/user-prompt-submit.js +0 -479
- package/dist/templates/claude/settings.json +0 -46
- package/dist/templates/docker/.env.lisa.example +0 -17
- /package/dist/{templates → project/.lisa}/docker/docker-compose.graphiti.yml +0 -0
- /package/dist/{templates → project/.lisa}/rules/shared/clean-architecture.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/shared/code-quality-rules.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/shared/git-rules.local.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/shared/testing-principles.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/typescript/coding-standards.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/typescript/testing.md +0 -0
- /package/dist/{templates → project/.lisa}/rules/typescript/typescript-config-guide.md +0 -0
- /package/dist/{templates/agents → project/.lisa}/skills/git/scripts/poll-ci.sh +0 -0
- /package/dist/{templates/agents → project/.lisa}/skills/jira/SKILL.md +0 -0
- /package/dist/{templates/agents → project/.lisa}/skills/lisa/cache/.gitkeep +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Repository Router
|
|
4
|
+
*
|
|
5
|
+
* Routes queries to the optimal backend based on operation type.
|
|
6
|
+
* Enables using Neo4j for date-ordered queries while using MCP for semantic search.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.RepositoryRouter = void 0;
|
|
10
|
+
exports.createRouter = createRouter;
|
|
11
|
+
const dal_1 = require("../../../domain/interfaces/dal");
|
|
12
|
+
const logging_1 = require("../../logging");
|
|
13
|
+
/**
|
|
14
|
+
* Repository Router implementation.
|
|
15
|
+
* Routes to the optimal backend based on operation type.
|
|
16
|
+
*/
|
|
17
|
+
class RepositoryRouter {
|
|
18
|
+
constructor(config, logger) {
|
|
19
|
+
this.logger = logger ?? new logging_1.NullLogger();
|
|
20
|
+
this.memoryRepositories = new Map();
|
|
21
|
+
this.taskRepositories = new Map();
|
|
22
|
+
this.availableBackends = new Set(config?.backends || []);
|
|
23
|
+
// Initialize routing rules from config or defaults
|
|
24
|
+
this.routingRules = new Map();
|
|
25
|
+
const rules = config?.rules || dal_1.DEFAULT_ROUTING_RULES;
|
|
26
|
+
for (const rule of rules) {
|
|
27
|
+
this.routingRules.set(rule.operation, rule);
|
|
28
|
+
}
|
|
29
|
+
this.logger.debug('Router initialized', {
|
|
30
|
+
backends: [...this.availableBackends],
|
|
31
|
+
rulesCount: this.routingRules.size,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Register a memory repository for a backend.
|
|
36
|
+
*/
|
|
37
|
+
registerMemoryRepository(backend, repository) {
|
|
38
|
+
this.memoryRepositories.set(backend, repository);
|
|
39
|
+
this.availableBackends.add(backend);
|
|
40
|
+
this.logger.debug('Registered memory repository', { backend });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Register a task repository for a backend.
|
|
44
|
+
*/
|
|
45
|
+
registerTaskRepository(backend, repository) {
|
|
46
|
+
this.taskRepositories.set(backend, repository);
|
|
47
|
+
this.availableBackends.add(backend);
|
|
48
|
+
this.logger.debug('Registered task repository', { backend });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get the optimal memory repository for the given operation.
|
|
52
|
+
*/
|
|
53
|
+
getMemoryRepository(operation) {
|
|
54
|
+
const backend = this.resolveBackend(operation, this.memoryRepositories);
|
|
55
|
+
const repo = this.memoryRepositories.get(backend);
|
|
56
|
+
if (!repo) {
|
|
57
|
+
throw new Error(`No memory repository available for operation '${operation}'. ` +
|
|
58
|
+
`Tried: ${this.getTriedBackends(operation).join(', ')}`);
|
|
59
|
+
}
|
|
60
|
+
return repo;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get the optimal task repository for the given operation.
|
|
64
|
+
*/
|
|
65
|
+
getTaskRepository(operation) {
|
|
66
|
+
const backend = this.resolveBackend(operation, this.taskRepositories);
|
|
67
|
+
const repo = this.taskRepositories.get(backend);
|
|
68
|
+
if (!repo) {
|
|
69
|
+
throw new Error(`No task repository available for operation '${operation}'. ` +
|
|
70
|
+
`Tried: ${this.getTriedBackends(operation).join(', ')}`);
|
|
71
|
+
}
|
|
72
|
+
return repo;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get a specific memory repository by backend.
|
|
76
|
+
*/
|
|
77
|
+
getMemoryRepositoryByBackend(backend) {
|
|
78
|
+
return this.memoryRepositories.get(backend) || null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get a specific task repository by backend.
|
|
82
|
+
*/
|
|
83
|
+
getTaskRepositoryByBackend(backend) {
|
|
84
|
+
return this.taskRepositories.get(backend) || null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a backend is available.
|
|
88
|
+
*/
|
|
89
|
+
isBackendAvailable(backend) {
|
|
90
|
+
return (this.memoryRepositories.has(backend) || this.taskRepositories.has(backend));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get the list of available backends.
|
|
94
|
+
*/
|
|
95
|
+
getAvailableBackends() {
|
|
96
|
+
return [...this.availableBackends];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get the current routing rules.
|
|
100
|
+
*/
|
|
101
|
+
getRoutingRules() {
|
|
102
|
+
return [...this.routingRules.values()];
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Update a routing rule at runtime.
|
|
106
|
+
*/
|
|
107
|
+
setRoutingRule(operation, preferred, fallback) {
|
|
108
|
+
this.routingRules.set(operation, {
|
|
109
|
+
operation,
|
|
110
|
+
preferred,
|
|
111
|
+
fallback,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Resolve the best available backend for an operation.
|
|
116
|
+
*/
|
|
117
|
+
resolveBackend(operation, repositories) {
|
|
118
|
+
const rule = this.routingRules.get(operation);
|
|
119
|
+
if (!rule) {
|
|
120
|
+
// No rule - try any available backend
|
|
121
|
+
for (const backend of repositories.keys()) {
|
|
122
|
+
this.logger.debug('Resolved backend (no rule)', { operation, backend });
|
|
123
|
+
return backend;
|
|
124
|
+
}
|
|
125
|
+
throw new Error(`No repositories available`);
|
|
126
|
+
}
|
|
127
|
+
// Try preferred backend
|
|
128
|
+
if (repositories.has(rule.preferred)) {
|
|
129
|
+
this.logger.debug('Resolved backend (preferred)', { operation, backend: rule.preferred });
|
|
130
|
+
return rule.preferred;
|
|
131
|
+
}
|
|
132
|
+
// Try fallback
|
|
133
|
+
if (rule.fallback && repositories.has(rule.fallback)) {
|
|
134
|
+
this.logger.debug('Resolved backend (fallback)', {
|
|
135
|
+
operation,
|
|
136
|
+
preferred: rule.preferred,
|
|
137
|
+
backend: rule.fallback
|
|
138
|
+
});
|
|
139
|
+
return rule.fallback;
|
|
140
|
+
}
|
|
141
|
+
// Try any available backend
|
|
142
|
+
for (const backend of repositories.keys()) {
|
|
143
|
+
this.logger.debug('Resolved backend (any available)', { operation, backend });
|
|
144
|
+
return backend;
|
|
145
|
+
}
|
|
146
|
+
throw new Error(`No backend available for operation '${operation}'`);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get the backends that were tried for an operation (for error messages).
|
|
150
|
+
*/
|
|
151
|
+
getTriedBackends(operation) {
|
|
152
|
+
const rule = this.routingRules.get(operation);
|
|
153
|
+
if (!rule) {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
const tried = [rule.preferred];
|
|
157
|
+
if (rule.fallback) {
|
|
158
|
+
tried.push(rule.fallback);
|
|
159
|
+
}
|
|
160
|
+
return tried;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
exports.RepositoryRouter = RepositoryRouter;
|
|
164
|
+
/**
|
|
165
|
+
* Create a repository router with the specified backends registered.
|
|
166
|
+
*/
|
|
167
|
+
function createRouter(config) {
|
|
168
|
+
return new RepositoryRouter(config);
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=RepositoryRouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryRouter.js","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/dal/routing/RepositoryRouter.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAgOH,oCAEC;AApND,wDAAuE;AACvE,2CAA2C;AAE3C;;;GAGG;AACH,MAAa,gBAAgB;IAO3B,YAAY,MAAsB,EAAE,MAAgB;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,oBAAU,EAAE,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,IAAI,GAAG,EAAE,CAAC;QAClC,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,QAAQ,IAAI,EAAE,CAAC,CAAC;QAEzD,mDAAmD;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,2BAAqB,CAAC;QACrD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,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CAAC,MAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;YAC9E,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,uCAAuC,SAAS,GAAG,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACK,gBAAgB,CAAC,SAAwB;QAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,KAAK,GAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAtMD,4CAsMC;AAED;;GAEG;AACH,SAAgB,YAAY,CAAC,MAAsB;IACjD,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/dal/routing/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DAL Routing Exports
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createRouter = exports.RepositoryRouter = void 0;
|
|
7
|
+
var RepositoryRouter_1 = require("./RepositoryRouter");
|
|
8
|
+
Object.defineProperty(exports, "RepositoryRouter", { enumerable: true, get: function () { return RepositoryRouter_1.RepositoryRouter; } });
|
|
9
|
+
Object.defineProperty(exports, "createRouter", { enumerable: true, get: function () { return RepositoryRouter_1.createRouter; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/infrastructure/dal/routing/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAAoE;AAA3D,oHAAA,gBAAgB,OAAA;AAAE,gHAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ILisaServices, ILogger } from '../../domain/interfaces';
|
|
2
|
+
import { type IRepositoryFactoryConfig } from '../dal';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for creating Lisa services.
|
|
5
|
+
*/
|
|
6
|
+
export interface IServiceConfig {
|
|
7
|
+
/** Project root directory (defaults to cwd) */
|
|
8
|
+
projectRoot?: string;
|
|
9
|
+
/** Git worktree path (for multi-worktree setups) */
|
|
10
|
+
gitWorktree?: string;
|
|
11
|
+
/** MCP endpoint URL */
|
|
12
|
+
mcpEndpoint?: string;
|
|
13
|
+
/** API key for Zep Cloud (if using) */
|
|
14
|
+
apiKey?: string;
|
|
15
|
+
/** Source CLI adapter ('claude-code' | 'opencode') */
|
|
16
|
+
source?: 'claude-code' | 'opencode';
|
|
17
|
+
/** Enable DAL router for multi-backend support (default: true) */
|
|
18
|
+
enableRouter?: boolean;
|
|
19
|
+
/** DAL router configuration overrides */
|
|
20
|
+
dalConfig?: IRepositoryFactoryConfig;
|
|
21
|
+
/** Custom logger instance (uses default if not provided) */
|
|
22
|
+
logger?: ILogger;
|
|
23
|
+
/** Disable logging entirely (for testing) */
|
|
24
|
+
disableLogging?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Extended services result including connection cleanup.
|
|
28
|
+
*/
|
|
29
|
+
export interface IServicesWithCleanup extends ILisaServices {
|
|
30
|
+
/** Call to clean up connections when done */
|
|
31
|
+
cleanup: () => Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create Lisa services with dependency injection.
|
|
35
|
+
*/
|
|
36
|
+
export declare function createServices(config?: IServiceConfig): Promise<ILisaServices>;
|
|
37
|
+
/**
|
|
38
|
+
* Create Lisa services with cleanup function for connection management.
|
|
39
|
+
*
|
|
40
|
+
* Use this when you need explicit control over connection lifecycle,
|
|
41
|
+
* e.g., in scripts or CLI commands that should clean up on exit.
|
|
42
|
+
*/
|
|
43
|
+
export declare function createServicesWithCleanup(config?: IServiceConfig): Promise<IServicesWithCleanup>;
|
|
44
|
+
//# sourceMappingURL=ServiceFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceFactory.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/di/ServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAKtE,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,QAAQ,CAAC;AAGhB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,sDAAsD;IACtD,MAAM,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;IAEpC,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,yCAAyC;IACzC,SAAS,CAAC,EAAE,wBAAwB,CAAC;IAErC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD,6CAA6C;IAC7C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAgBD;;GAEG;AACH,wBAAsB,cAAc,CAAC,MAAM,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CA4DxF;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,GAAE,cAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAiE1G"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createServices = createServices;
|
|
4
|
+
exports.createServicesWithCleanup = createServicesWithCleanup;
|
|
5
|
+
const context_1 = require("../context");
|
|
6
|
+
const mcp_1 = require("../mcp");
|
|
7
|
+
const services_1 = require("../services");
|
|
8
|
+
const dal_1 = require("../dal");
|
|
9
|
+
const logging_1 = require("../logging");
|
|
10
|
+
/**
|
|
11
|
+
* Default MCP endpoint from environment or fallback.
|
|
12
|
+
*/
|
|
13
|
+
function getDefaultEndpoint() {
|
|
14
|
+
return process.env.MCP_ENDPOINT || process.env.GRAPHITI_ENDPOINT || 'http://localhost:8000/mcp/';
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Default API key from environment.
|
|
18
|
+
*/
|
|
19
|
+
function getDefaultApiKey() {
|
|
20
|
+
return process.env.ZEP_API_KEY;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create Lisa services with dependency injection.
|
|
24
|
+
*/
|
|
25
|
+
async function createServices(config = {}) {
|
|
26
|
+
const projectRoot = config.projectRoot || process.cwd();
|
|
27
|
+
const mcpEndpoint = config.mcpEndpoint || getDefaultEndpoint();
|
|
28
|
+
const apiKey = config.apiKey || getDefaultApiKey();
|
|
29
|
+
const enableRouter = config.enableRouter !== false; // Default to true
|
|
30
|
+
// Create logger (or use provided/null logger)
|
|
31
|
+
const logger = config.logger ?? (config.disableLogging ? (0, logging_1.createNullLogger)() : (0, logging_1.createLogger)());
|
|
32
|
+
const log = logger.child({ component: 'ServiceFactory' });
|
|
33
|
+
// Detect context
|
|
34
|
+
const context = context_1.ContextDetector.detect(projectRoot);
|
|
35
|
+
// Create MCP client (always needed for fallback)
|
|
36
|
+
const mcp = new mcp_1.McpClient(mcpEndpoint, apiKey);
|
|
37
|
+
// Try to create DAL router for multi-backend support
|
|
38
|
+
let router;
|
|
39
|
+
if (enableRouter) {
|
|
40
|
+
try {
|
|
41
|
+
const dalConfig = {
|
|
42
|
+
mcpEndpoint,
|
|
43
|
+
mcpApiKey: apiKey,
|
|
44
|
+
logger: logger.child({ component: 'DAL' }),
|
|
45
|
+
...config.dalConfig,
|
|
46
|
+
};
|
|
47
|
+
const result = await (0, dal_1.createRepositoryRouter)(dalConfig);
|
|
48
|
+
router = result.router;
|
|
49
|
+
// Log available backends
|
|
50
|
+
const backends = result.availableBackends.join(', ');
|
|
51
|
+
log.info('DAL router initialized', { backends });
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
// DAL initialization failed - continue without router
|
|
55
|
+
log.warn('DAL router initialization failed, using MCP-only mode', {
|
|
56
|
+
error: error.message
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// Create services (inject router if available)
|
|
61
|
+
const memory = new services_1.MemoryService(mcp, router, logger.child({ service: 'memory' }));
|
|
62
|
+
const tasks = new services_1.TaskService(mcp, router, logger.child({ service: 'tasks' }));
|
|
63
|
+
const events = new services_1.EventEmitter();
|
|
64
|
+
const sessionCapture = new services_1.SessionCaptureService();
|
|
65
|
+
const recursion = new services_1.RecursionService(memory, tasks);
|
|
66
|
+
return {
|
|
67
|
+
context,
|
|
68
|
+
memory,
|
|
69
|
+
tasks,
|
|
70
|
+
mcp,
|
|
71
|
+
events,
|
|
72
|
+
sessionCapture,
|
|
73
|
+
logger,
|
|
74
|
+
router,
|
|
75
|
+
recursion,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create Lisa services with cleanup function for connection management.
|
|
80
|
+
*
|
|
81
|
+
* Use this when you need explicit control over connection lifecycle,
|
|
82
|
+
* e.g., in scripts or CLI commands that should clean up on exit.
|
|
83
|
+
*/
|
|
84
|
+
async function createServicesWithCleanup(config = {}) {
|
|
85
|
+
const projectRoot = config.projectRoot || process.cwd();
|
|
86
|
+
const mcpEndpoint = config.mcpEndpoint || getDefaultEndpoint();
|
|
87
|
+
const apiKey = config.apiKey || getDefaultApiKey();
|
|
88
|
+
const enableRouter = config.enableRouter !== false;
|
|
89
|
+
// Create logger (or use provided/null logger)
|
|
90
|
+
const logger = config.logger ?? (config.disableLogging ? (0, logging_1.createNullLogger)() : (0, logging_1.createLogger)());
|
|
91
|
+
const log = logger.child({ component: 'ServiceFactory' });
|
|
92
|
+
// Detect context
|
|
93
|
+
const context = context_1.ContextDetector.detect(projectRoot);
|
|
94
|
+
// Create MCP client
|
|
95
|
+
const mcp = new mcp_1.McpClient(mcpEndpoint, apiKey);
|
|
96
|
+
// Try to create DAL router
|
|
97
|
+
let router;
|
|
98
|
+
let connections = {};
|
|
99
|
+
if (enableRouter) {
|
|
100
|
+
try {
|
|
101
|
+
const dalConfig = {
|
|
102
|
+
mcpEndpoint,
|
|
103
|
+
mcpApiKey: apiKey,
|
|
104
|
+
logger: logger.child({ component: 'DAL' }),
|
|
105
|
+
...config.dalConfig,
|
|
106
|
+
};
|
|
107
|
+
const result = await (0, dal_1.createRepositoryRouter)(dalConfig);
|
|
108
|
+
router = result.router;
|
|
109
|
+
connections = result.connections;
|
|
110
|
+
const backends = result.availableBackends.join(', ');
|
|
111
|
+
log.info('DAL router initialized', { backends });
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
log.warn('DAL router initialization failed', { error: error.message });
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// Create services
|
|
118
|
+
const memory = new services_1.MemoryService(mcp, router, logger.child({ service: 'memory' }));
|
|
119
|
+
const tasks = new services_1.TaskService(mcp, router, logger.child({ service: 'tasks' }));
|
|
120
|
+
const events = new services_1.EventEmitter();
|
|
121
|
+
const sessionCapture = new services_1.SessionCaptureService();
|
|
122
|
+
const recursion = new services_1.RecursionService(memory, tasks);
|
|
123
|
+
// Cleanup function to close all connections
|
|
124
|
+
const cleanup = async () => {
|
|
125
|
+
log.debug('Cleaning up connections');
|
|
126
|
+
await (0, dal_1.closeConnections)(connections);
|
|
127
|
+
};
|
|
128
|
+
return {
|
|
129
|
+
context,
|
|
130
|
+
memory,
|
|
131
|
+
tasks,
|
|
132
|
+
mcp,
|
|
133
|
+
events,
|
|
134
|
+
sessionCapture,
|
|
135
|
+
logger,
|
|
136
|
+
router,
|
|
137
|
+
recursion,
|
|
138
|
+
cleanup,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=ServiceFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceFactory.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/di/ServiceFactory.ts"],"names":[],"mappings":";;AAsEA,wCA4DC;AAQD,8DAiEC;AAzMD,wCAA6C;AAC7C,gCAAmC;AACnC,0CAAgH;AAChH,gCAKgB;AAChB,wCAA4D;AA0C5D;;GAEG;AACH,SAAS,kBAAkB;IACzB,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,4BAA4B,CAAC;AACnG,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB;IACvB,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;AACjC,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,cAAc,CAAC,SAAyB,EAAE;IAC9D,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IACxD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,kBA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,sBAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAC/E,MAAM,MAAM,GAAG,IAAI,uBAAY,EAAE,CAAC;IAClC,MAAM,cAAc,GAAG,IAAI,gCAAqB,EAAE,CAAC;IACnD,MAAM,SAAS,GAAG,IAAI,2BAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEtD,4CAA4C;IAC5C,MAAM,OAAO,GAAG,KAAK,IAAmB,EAAE;QACxC,GAAG,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACrC,MAAM,IAAA,sBAAgB,EAAC,WAAW,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO;QACL,OAAO;QACP,MAAM;QACN,KAAK;QACL,GAAG;QACH,MAAM;QACN,cAAc;QACd,MAAM;QACN,MAAM;QACN,SAAS;QACT,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/di/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Dependency injection infrastructure.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createServicesWithCleanup = exports.createServices = void 0;
|
|
7
|
+
var ServiceFactory_1 = require("./ServiceFactory");
|
|
8
|
+
Object.defineProperty(exports, "createServices", { enumerable: true, get: function () { return ServiceFactory_1.createServices; } });
|
|
9
|
+
Object.defineProperty(exports, "createServicesWithCleanup", { enumerable: true, get: function () { return ServiceFactory_1.createServicesWithCleanup; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/infrastructure/di/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,mDAK0B;AAFxB,gHAAA,cAAc,OAAA;AACd,2HAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infrastructure Layer
|
|
3
|
+
*
|
|
4
|
+
* Contains implementations of domain interfaces.
|
|
5
|
+
* This layer depends on Domain and Application layers.
|
|
6
|
+
*
|
|
7
|
+
* Layer Dependencies:
|
|
8
|
+
* Domain <- Application <- Infrastructure
|
|
9
|
+
* (Infrastructure implements Domain interfaces)
|
|
10
|
+
*/
|
|
11
|
+
export * from './context';
|
|
12
|
+
export * from './mcp';
|
|
13
|
+
export * from './services';
|
|
14
|
+
export * from './di';
|
|
15
|
+
export * from './dal';
|
|
16
|
+
export * from './logging';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/infrastructure/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,cAAc,WAAW,CAAC;AAG1B,cAAc,OAAO,CAAC;AAGtB,cAAc,YAAY,CAAC;AAG3B,cAAc,MAAM,CAAC;AAGrB,cAAc,OAAO,CAAC;AAGtB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Infrastructure Layer
|
|
4
|
+
*
|
|
5
|
+
* Contains implementations of domain interfaces.
|
|
6
|
+
* This layer depends on Domain and Application layers.
|
|
7
|
+
*
|
|
8
|
+
* Layer Dependencies:
|
|
9
|
+
* Domain <- Application <- Infrastructure
|
|
10
|
+
* (Infrastructure implements Domain interfaces)
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
// Context detection
|
|
28
|
+
__exportStar(require("./context"), exports);
|
|
29
|
+
// MCP client
|
|
30
|
+
__exportStar(require("./mcp"), exports);
|
|
31
|
+
// Service implementations
|
|
32
|
+
__exportStar(require("./services"), exports);
|
|
33
|
+
// Dependency injection
|
|
34
|
+
__exportStar(require("./di"), exports);
|
|
35
|
+
// Data Access Layer (DAL) for multi-backend support
|
|
36
|
+
__exportStar(require("./dal"), exports);
|
|
37
|
+
// Logging infrastructure
|
|
38
|
+
__exportStar(require("./logging"), exports);
|
|
39
|
+
// Note: CLI adapters (./adapters/claude/, ./adapters/opencode/)
|
|
40
|
+
// are entry points, not exported from here.
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/infrastructure/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,oBAAoB;AACpB,4CAA0B;AAE1B,aAAa;AACb,wCAAsB;AAEtB,0BAA0B;AAC1B,6CAA2B;AAE3B,uBAAuB;AACvB,uCAAqB;AAErB,oDAAoD;AACpD,wCAAsB;AAEtB,yBAAyB;AACzB,4CAA0B;AAE1B,gEAAgE;AAChE,4CAA4C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Logger as PinoLogger } from 'pino';
|
|
2
|
+
import type { ILogger, ILoggerOptions, LogLevel } from '../../domain/interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Default logger configuration.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_LOGGER_OPTIONS: ILoggerOptions;
|
|
7
|
+
/**
|
|
8
|
+
* Pino-based logger implementation.
|
|
9
|
+
* Wraps pino to implement ILogger interface with correlation ID support.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Logger implements ILogger {
|
|
12
|
+
private readonly pino;
|
|
13
|
+
private readonly options;
|
|
14
|
+
private readonly getCorrelationId;
|
|
15
|
+
constructor(options: ILoggerOptions, pinoInstance?: PinoLogger, getCorrelationId?: () => string | undefined);
|
|
16
|
+
/**
|
|
17
|
+
* Create a pino instance with configured transports.
|
|
18
|
+
*/
|
|
19
|
+
private createPinoInstance;
|
|
20
|
+
/**
|
|
21
|
+
* Ensure log directory exists.
|
|
22
|
+
*/
|
|
23
|
+
private ensureLogDir;
|
|
24
|
+
/**
|
|
25
|
+
* Add correlation ID to context if available.
|
|
26
|
+
*/
|
|
27
|
+
private withCorrelation;
|
|
28
|
+
trace(message: string, context?: Record<string, unknown>): void;
|
|
29
|
+
debug(message: string, context?: Record<string, unknown>): void;
|
|
30
|
+
info(message: string, context?: Record<string, unknown>): void;
|
|
31
|
+
warn(message: string, context?: Record<string, unknown>): void;
|
|
32
|
+
error(message: string, context?: Record<string, unknown>): void;
|
|
33
|
+
fatal(message: string, context?: Record<string, unknown>): void;
|
|
34
|
+
child(bindings: Record<string, unknown>): ILogger;
|
|
35
|
+
isLevelEnabled(level: LogLevel): boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* No-op logger for testing or when logging is disabled.
|
|
39
|
+
*/
|
|
40
|
+
export declare class NullLogger implements ILogger {
|
|
41
|
+
trace(_message: string, _context?: Record<string, unknown>): void;
|
|
42
|
+
debug(_message: string, _context?: Record<string, unknown>): void;
|
|
43
|
+
info(_message: string, _context?: Record<string, unknown>): void;
|
|
44
|
+
warn(_message: string, _context?: Record<string, unknown>): void;
|
|
45
|
+
error(_message: string, _context?: Record<string, unknown>): void;
|
|
46
|
+
fatal(_message: string, _context?: Record<string, unknown>): void;
|
|
47
|
+
child(_bindings: Record<string, unknown>): ILogger;
|
|
48
|
+
isLevelEnabled(_level: LogLevel): boolean;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../../src/lib/infrastructure/logging/Logger.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,MAAM,IAAI,UAAU,EAAsC,MAAM,MAAM,CAAC;AAGtF,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAMpC,CAAC;AAcF;;;GAGG;AACH,qBAAa,MAAO,YAAW,OAAO;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA2B;gBAG1D,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,UAAU,EACzB,gBAAgB,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS;IAO7C;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAmD1B;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MA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