@itphx/synth-backend 0.11.3 → 0.12.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/app/deps.d.ts +31 -5
- package/dist/app/deps.js +769 -36
- package/dist/app/listen.d.ts +7 -1
- package/dist/app/listen.js +126 -9
- package/dist/app/mount-routes.js +374 -11
- package/dist/app.d.ts +28 -2
- package/dist/app.js +52 -8
- package/dist/auth/guards.d.ts +15 -0
- package/dist/auth/guards.js +37 -1
- package/dist/auth/plugin-scope.d.ts +10 -0
- package/dist/auth/plugin-scope.js +69 -0
- package/dist/lib/defaults-store.js +1 -1
- package/dist/lib/i18n.js +107 -2
- package/dist/main.js +50 -3
- package/dist/routes/agents.d.ts +11 -2
- package/dist/routes/agents.js +14 -2
- package/dist/routes/auth.d.ts +11 -1
- package/dist/routes/auth.js +16 -2
- package/dist/routes/llm.js +2 -2
- package/dist/routes/mcp-registry.d.ts +13 -1
- package/dist/routes/mcp-registry.js +120 -19
- package/dist/routes/messages.d.ts +4 -2
- package/dist/routes/messages.js +5 -1
- package/dist/routes/processes.d.ts +34 -0
- package/dist/routes/processes.js +26 -0
- package/dist/routes/projects.d.ts +7 -1
- package/dist/routes/projects.js +8 -1
- package/dist/routes/sessions.d.ts +39 -2
- package/dist/routes/sessions.js +28 -5
- package/package.json +4 -4
package/dist/app/deps.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { ProviderConfig, ModelConfig, DecisionConfig } from '@itphx/synth-shared';
|
|
2
|
-
import {
|
|
1
|
+
import type { ProviderConfig, ModelConfig, DecisionConfig, Message } from '@itphx/synth-shared';
|
|
2
|
+
import type { ResolvedExecutionConfig } from '@itphx/synth-shared';
|
|
3
|
+
import { SessionManager, EventBus, QueueProcessorManager, ContextOptimizer, ChatOrchestrator, McpManager, AuditLogger, OAuthCredentialService, OAuthProviderRegistry, SkillService, CommandService, EventRouter, RequestSessionService, EventIngress, AttachmentService, SchedulerService, QuestionService, BackgroundRunService, ProcessService, WorktreeService, WebhookService, AnalyticsRecorder, ApprovalRegistry, PipelineArtifactStore, PipelineEngine, PipelineRunControl, PluginRuntime } from '@itphx/synth-core';
|
|
3
4
|
import type { EventsRuntimeSettings, MetricsRegistry, StorageContext } from '@itphx/synth-core';
|
|
4
5
|
import type { BackendConfig } from '../lib/app-config.js';
|
|
5
6
|
import { EventHub } from '../events/hub.js';
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* ADR-096 (W2.4): единая точка сборки слоя хранения backend — `app.ts` строит
|
|
8
9
|
* её до `auth` (реестр `serviceKeys` нужен резолверу ключа, `mcpRegistry` —
|
|
9
10
|
* сидированию instance-серверов), а `createBackendDeps` переиспользует инстанс.
|
|
10
11
|
*/
|
|
@@ -14,8 +15,14 @@ export declare function createBackendStorage(config: BackendConfig): Promise<Sto
|
|
|
14
15
|
* событийное ядро/планировщик/webhooks). Роуты монтирует вызывающий
|
|
15
16
|
* (`mountBackendRoutes`), поэтому здесь нет ни одного `app.*`-вызова.
|
|
16
17
|
*/
|
|
17
|
-
export declare function createBackendDeps(config: BackendConfig, storage?: StorageContext, metrics?: MetricsRegistry
|
|
18
|
+
export declare function createBackendDeps(config: BackendConfig, storage?: StorageContext, metrics?: MetricsRegistry,
|
|
19
|
+
/**
|
|
20
|
+
* ADR-077: эффективная секция `execution` (режим исполнения + параметры
|
|
21
|
+
* удалённого исполнителя). Не задана — резолвится из конфигу инстанса.
|
|
22
|
+
*/
|
|
23
|
+
executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
18
24
|
dataDir: string;
|
|
25
|
+
approvalRegistry: ApprovalRegistry | undefined;
|
|
19
26
|
storageContext: StorageContext;
|
|
20
27
|
metrics: MetricsRegistry | undefined;
|
|
21
28
|
stopMetricsCollectors: (() => void)[];
|
|
@@ -49,8 +56,25 @@ export declare function createBackendDeps(config: BackendConfig, storage?: Stora
|
|
|
49
56
|
stopEgressLogPruner: () => void;
|
|
50
57
|
mcpManager: McpManager;
|
|
51
58
|
mcpRegistryStore: import("@itphx/synth-core").McpRegistryRepository;
|
|
59
|
+
oauthProviders: OAuthProviderRegistry;
|
|
60
|
+
oauthCredentialService: OAuthCredentialService;
|
|
61
|
+
pipelines: import("@itphx/synth-core").PipelineRepository;
|
|
62
|
+
pipelineEngine: PipelineEngine;
|
|
63
|
+
pipelineArtifacts: PipelineArtifactStore;
|
|
64
|
+
pipelineAttachments: AttachmentService;
|
|
65
|
+
pipelineRunControl: PipelineRunControl;
|
|
66
|
+
packs: import("@itphx/synth-core").PackRepository;
|
|
52
67
|
eventBus: EventBus;
|
|
53
68
|
queueManager: QueueProcessorManager;
|
|
69
|
+
questionService: QuestionService | undefined;
|
|
70
|
+
stopQuestionPruner: () => void;
|
|
71
|
+
backgroundService: BackgroundRunService | undefined;
|
|
72
|
+
stopBackgroundRunPruner: () => void;
|
|
73
|
+
processService: ProcessService | undefined;
|
|
74
|
+
stopProcessLogPruner: () => void;
|
|
75
|
+
stopAttachmentPruner: () => void;
|
|
76
|
+
attachmentsSettings: import("@itphx/synth-core").LiveAttachmentsSettings;
|
|
77
|
+
worktreeService: WorktreeService | undefined;
|
|
54
78
|
webhookStore: import("@itphx/synth-core").WebhookRepository;
|
|
55
79
|
webhookDeliveryStore: import("@itphx/synth-core").WebhookDeliveryRepository;
|
|
56
80
|
webhookService: WebhookService;
|
|
@@ -90,7 +114,9 @@ export declare function createBackendDeps(config: BackendConfig, storage?: Stora
|
|
|
90
114
|
bundleStore: import("@itphx/synth-core").SkillBundleRepository;
|
|
91
115
|
commandService: CommandService;
|
|
92
116
|
orchestrator: ChatOrchestrator;
|
|
93
|
-
|
|
117
|
+
pluginRuntime: PluginRuntime;
|
|
118
|
+
executionPort: import("@itphx/synth-core").ExecutionPort;
|
|
119
|
+
processMessage: (session: import("@itphx/synth-shared").Session, message: Message, signal: AbortSignal, publishChunk: (event: string, data: Record<string, unknown>) => void, attempt?: number) => Promise<import("@itphx/synth-core").ProcessMessageResult>;
|
|
94
120
|
eventBindingStore: import("@itphx/synth-core").EventBindingRepository;
|
|
95
121
|
eventApiKeyStore: import("@itphx/synth-core").EventApiKeyRepository;
|
|
96
122
|
eventJournal: import("@itphx/synth-core").EventJournalRepository;
|