@itphx/synth-backend 0.12.4 → 0.13.8
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 +15 -1
- package/dist/app/deps.js +553 -34
- package/dist/app/listen.js +56 -7
- package/dist/app/mount-routes.js +273 -32
- package/dist/app/public-routes.d.ts +2 -0
- package/dist/app/public-routes.js +11 -0
- package/dist/app/sse-events.d.ts +4 -0
- package/dist/app/sse-events.js +53 -6
- package/dist/app.d.ts +3 -1
- package/dist/app.js +33 -0
- package/dist/auth/api-key.d.ts +19 -0
- package/dist/auth/api-key.js +56 -0
- package/dist/auth/middleware.js +7 -3
- package/dist/events/hub.d.ts +17 -0
- package/dist/events/hub.js +50 -15
- package/dist/init.d.ts +1 -0
- package/dist/init.js +96 -0
- package/dist/lib/app-config.d.ts +4 -0
- package/dist/lib/app-config.js +16 -3
- package/dist/lib/bind-host.d.ts +10 -0
- package/dist/lib/bind-host.js +32 -0
- package/dist/lib/defaults-store.d.ts +1 -1
- package/dist/lib/defaults-store.js +1 -1
- package/dist/lib/i18n.js +26 -0
- package/dist/lib/recalc-can-summarize.js +8 -3
- package/dist/main.js +7 -2
- package/dist/middleware/rate-limiter.d.ts +4 -1
- package/dist/middleware/rate-limiter.js +15 -2
- package/dist/routes/agents.js +1 -0
- package/dist/routes/auth.js +29 -16
- package/dist/routes/llm.js +92 -12
- package/dist/routes/mcp-remote.d.ts +23 -0
- package/dist/routes/mcp-remote.js +152 -0
- package/dist/routes/mcp.d.ts +11 -6
- package/dist/routes/mcp.js +35 -6
- package/dist/routes/messages.js +2 -0
- package/dist/routes/projects.d.ts +9 -3
- package/dist/routes/projects.js +32 -3
- package/dist/routes/providers.d.ts +4 -1
- package/dist/routes/providers.js +19 -99
- package/dist/routes/queue.d.ts +4 -1
- package/dist/routes/queue.js +4 -1
- package/dist/routes/sessions.d.ts +49 -9
- package/dist/routes/sessions.js +299 -256
- package/package.json +6 -6
- package/dist/routes/audit.d.ts +0 -17
- package/dist/routes/audit.js +0 -64
- package/dist/routes/context.d.ts +0 -4
- package/dist/routes/context.js +0 -93
- package/dist/routes/debug.d.ts +0 -3
- package/dist/routes/debug.js +0 -30
- package/dist/routes/gateway-patterns.d.ts +0 -9
- package/dist/routes/gateway-patterns.js +0 -57
- package/dist/routes/logs.d.ts +0 -24
- package/dist/routes/logs.js +0 -100
- package/dist/routes/mcp-registry.d.ts +0 -28
- package/dist/routes/mcp-registry.js +0 -483
package/dist/app/deps.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ProviderConfig, ModelConfig, DecisionConfig, Message } from '@itphx/synth-shared';
|
|
2
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
|
+
import { SessionManager, EventBus, QueueProcessorManager, ContextOptimizer, ChatOrchestrator, McpManager, AuditLogger, OAuthCredentialService, OAuthProviderRegistry, SkillService, CommandService, EventRouter, RequestSessionService, EventIngress, AttachmentService, SchedulerService, QuestionService, BackgroundRunService, ProcessService, ThumbnailService, WorktreeService, WebhookService, AnalyticsRecorder, ApprovalRegistry, PipelineArtifactStore, PipelineEngine, PipelineRunControl, PluginRuntime } from '@itphx/synth-core';
|
|
4
4
|
import type { EventsRuntimeSettings, MetricsRegistry, StorageContext } from '@itphx/synth-core';
|
|
5
5
|
import type { BackendConfig } from '../lib/app-config.js';
|
|
6
6
|
import { EventHub } from '../events/hub.js';
|
|
@@ -42,6 +42,12 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
42
42
|
defaultsStore: import("@itphx/synth-core").DefaultsRepository;
|
|
43
43
|
defaultWorkingDir: string;
|
|
44
44
|
getDefaultAgentId: () => Promise<string>;
|
|
45
|
+
/**
|
|
46
|
+
* ADR-046/ADR-069: эффективный project-trust гейт скиллов/команд/инструкций
|
|
47
|
+
* (runtime > config), снятый на старте; нужен резолверу инструкций в
|
|
48
|
+
* `mount-routes`.
|
|
49
|
+
*/
|
|
50
|
+
skillsTrustedProjectDirs: string[];
|
|
45
51
|
egressResolver: import("@itphx/synth-core").EgressPolicyResolver;
|
|
46
52
|
egressLogConfig: {
|
|
47
53
|
enabled: boolean;
|
|
@@ -62,6 +68,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
62
68
|
pipelineEngine: PipelineEngine;
|
|
63
69
|
pipelineArtifacts: PipelineArtifactStore;
|
|
64
70
|
pipelineAttachments: AttachmentService;
|
|
71
|
+
attachmentThumbnails: ThumbnailService;
|
|
65
72
|
pipelineRunControl: PipelineRunControl;
|
|
66
73
|
packs: import("@itphx/synth-core").PackRepository;
|
|
67
74
|
eventBus: EventBus;
|
|
@@ -73,7 +80,14 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
73
80
|
processService: ProcessService | undefined;
|
|
74
81
|
stopProcessLogPruner: () => void;
|
|
75
82
|
stopAttachmentPruner: () => void;
|
|
83
|
+
stopMediaTempPruner: () => void;
|
|
76
84
|
attachmentsSettings: import("@itphx/synth-core").LiveAttachmentsSettings;
|
|
85
|
+
contextWindowSettings: import("@itphx/synth-core").LiveContextWindowPolicy;
|
|
86
|
+
subagentMaxInputTokensSettings: import("@itphx/synth-core").LiveSubagentMaxInputTokens;
|
|
87
|
+
sessionOpsPerMinuteSettings: import("@itphx/synth-core").LiveSessionOpsPerMinute;
|
|
88
|
+
contextDefaultsSettings: import("@itphx/synth-core").LiveContextDefaults;
|
|
89
|
+
stickyNotesLimitsSettings: import("@itphx/synth-core").LiveStickyNotesLimits;
|
|
90
|
+
sshModeSettings: import("@itphx/synth-core").LiveSshMode;
|
|
77
91
|
worktreeService: WorktreeService | undefined;
|
|
78
92
|
webhookStore: import("@itphx/synth-core").WebhookRepository;
|
|
79
93
|
webhookDeliveryStore: import("@itphx/synth-core").WebhookDeliveryRepository;
|