Add temporary AI commands and request transcripts

This commit is contained in:
Azimkin
2026-08-28 23:53:42 +02:00
parent d3c02ca203
commit 01d3173254
11 changed files with 355 additions and 8 deletions

View File

@@ -41,7 +41,9 @@ class AccountManager:
loaded = load_persistent_commands(self.config.ai.workspace_dir / "commands", self.command_registry)
if loaded:
log.info("Loaded persistent commands: %s", ", ".join(loaded))
self.ai_service = AIService(self.config.ai) if self.config.ai is not None else None
self.ai_service = (
AIService(self.config.ai, self.command_registry) if self.config.ai is not None else None
)
self.states = [AccountState(config=account) for account in self.config.accounts]
self.github_webhook_server = GitHubWebhookServer(self, self.config.github_webhook)
@@ -162,3 +164,5 @@ class AccountManager:
finally:
await self.github_webhook_server.stop()
await self.stop_all()
if self.ai_service is not None:
self.ai_service.close()