@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.
@@ -1,10 +1,11 @@
1
- import type { ProviderConfig, ModelConfig, DecisionConfig } from '@itphx/synth-shared';
2
- import { SessionManager, EventBus, QueueProcessorManager, ContextOptimizer, ChatOrchestrator, McpManager, AuditLogger, SkillService, CommandService, EventRouter, RequestSessionService, EventIngress, SchedulerService, WebhookService, AnalyticsRecorder } from '@itphx/synth-core';
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
- * PROP-032 (W2.4): единая точка сборки слоя хранения backend — `app.ts` строит
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): Promise<{
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
- processMessage: (session: import("@itphx/synth-shared").Session, message: import("@itphx/synth-shared").Message, signal: AbortSignal, publishChunk: (event: string, data: Record<string, unknown>) => void, attempt?: number) => Promise<import("@itphx/synth-core").ProcessMessageResult>;
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;