@itphx/synth-backend 0.9.0 → 0.10.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/dist/app.d.ts +23 -1
- package/dist/app.js +486 -10
- package/dist/auth/guards.d.ts +20 -0
- package/dist/auth/guards.js +65 -0
- package/dist/auth/middleware.d.ts +15 -1
- package/dist/auth/middleware.js +38 -0
- package/dist/auth/service-scope.d.ts +14 -0
- package/dist/auth/service-scope.js +40 -0
- package/dist/events/hub.d.ts +9 -0
- package/dist/events/hub.js +29 -0
- package/dist/lib/i18n.js +60 -0
- package/dist/main.js +10 -1
- package/dist/routes/auth.js +7 -1
- package/dist/routes/llm.js +3 -1
- package/dist/routes/mcp-registry.js +35 -12
- package/dist/routes/projects.d.ts +3 -0
- package/dist/routes/projects.js +12 -2
- package/dist/routes/sessions.d.ts +7 -1
- package/dist/routes/sessions.js +37 -2
- package/dist/routes/users.js +17 -4
- package/package.json +4 -4
- package/dist/agents/definitions/admin.json +0 -24
- package/dist/agents/definitions/analyst.json +0 -20
- package/dist/agents/definitions/assistant.json +0 -25
- package/dist/agents/definitions/auditor.json +0 -19
- package/dist/agents/definitions/developer.json +0 -23
- package/dist/agents/definitions/devops.json +0 -23
- package/dist/agents/definitions/explore.json +0 -15
- package/dist/agents/definitions/general.json +0 -15
- package/dist/agents/definitions/pm.json +0 -20
- package/dist/agents/definitions/qa.json +0 -22
package/dist/app.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createServer } from 'node:http';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
3
|
import { Hono } from 'hono';
|
|
4
|
-
import { SessionManager, EventBus, QueueProcessorManager, ChatOrchestrator, RuntimeSettingsStore } from '@itphx/synth-core';
|
|
4
|
+
import { SessionManager, EventBus, QueueProcessorManager, ChatOrchestrator, RuntimeSettingsStore, EventBindingStore, EventJournalStore, EventRouter, RequestSessionService, EventIngress, ScheduleStore, SchedulerService, WebhookStore, WebhookService } from '@itphx/synth-core';
|
|
5
5
|
import type { BackendConfig } from './lib/app-config.js';
|
|
6
6
|
import type { AuthKit } from './auth/middleware.js';
|
|
7
7
|
import { ProjectStore } from '@itphx/synth-core';
|
|
@@ -33,6 +33,28 @@ export interface BackendAppHandle {
|
|
|
33
33
|
orchestrator: ChatOrchestrator;
|
|
34
34
|
queueManager: QueueProcessorManager;
|
|
35
35
|
settingsStore: RuntimeSettingsStore;
|
|
36
|
+
eventRouter: EventRouter;
|
|
37
|
+
requestSessionService: RequestSessionService;
|
|
38
|
+
eventBindingStore: EventBindingStore;
|
|
39
|
+
eventJournal: EventJournalStore;
|
|
40
|
+
/** AD-089: ingress-точка приёма внешних событий. */
|
|
41
|
+
ingress: EventIngress;
|
|
42
|
+
scheduleStore: ScheduleStore;
|
|
43
|
+
scheduler: SchedulerService;
|
|
44
|
+
/** AD-051 (срез): остановка планировщика (на graceful shutdown). */
|
|
45
|
+
stopScheduler: () => void;
|
|
46
|
+
/** AD-089: остановка sweeper'а авто-архивации ephemeral-сессий. */
|
|
47
|
+
stopEphemeralSweeper: () => void;
|
|
48
|
+
/** AD-089: остановка периодической retention-очистки журнала событий. */
|
|
49
|
+
stopEventJournalPruner: () => void;
|
|
50
|
+
/** AD-052 (этап II): реестр подписок webhooks (для тестов/диагностики). */
|
|
51
|
+
webhookStore: WebhookStore;
|
|
52
|
+
/** AD-052 (этап II): движок исходящих webhooks. */
|
|
53
|
+
webhookService: WebhookService;
|
|
54
|
+
/** AD-052 (этап II): остановка движка webhooks (на graceful shutdown). */
|
|
55
|
+
stopWebhookService: () => void;
|
|
56
|
+
/** AD-052 (этап II): остановка retention-очистки журнала доставок. */
|
|
57
|
+
stopWebhookDeliveryPruner: () => void;
|
|
36
58
|
/**
|
|
37
59
|
* Поднять HTTP-сервер (+ WebSocket /ws/events) на указанном порту.
|
|
38
60
|
* Порт 0 → эфемерный; возвращает фактический порт.
|