@itphx/synth-backend 0.13.4 → 0.13.10
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 +22 -1
- package/dist/app/deps.js +743 -63
- package/dist/app/listen.js +30 -35
- package/dist/app/mount-routes.js +405 -46
- package/dist/app/public-routes.d.ts +2 -0
- package/dist/app/public-routes.js +11 -0
- package/dist/app/sse-events.js +2 -0
- package/dist/app.d.ts +8 -1
- package/dist/app.js +45 -11
- package/dist/auth/api-key.d.ts +19 -0
- package/dist/auth/api-key.js +56 -0
- package/dist/auth/middleware.js +11 -15
- package/dist/auth/oidc.d.ts +46 -4
- package/dist/auth/oidc.js +55 -8
- package/dist/events/hub.d.ts +36 -2
- package/dist/events/hub.js +66 -4
- package/dist/events/visible-session-ids.d.ts +35 -0
- package/dist/events/visible-session-ids.js +29 -0
- package/dist/init.d.ts +1 -0
- package/dist/init.js +96 -0
- package/dist/lib/app-config.js +42 -1
- package/dist/lib/bind-host.d.ts +10 -0
- package/dist/lib/bind-host.js +32 -0
- package/dist/lib/i18n.js +24 -0
- package/dist/lib/principal-identity.d.ts +35 -0
- package/dist/lib/principal-identity.js +43 -0
- package/dist/lib/project-principal.d.ts +27 -0
- package/dist/lib/project-principal.js +27 -0
- package/dist/lib/recalc-can-summarize.js +8 -5
- package/dist/main.js +9 -2
- package/dist/middleware/rate-limiter.d.ts +4 -1
- package/dist/middleware/rate-limiter.js +15 -2
- package/dist/routes/agents.d.ts +3 -3
- package/dist/routes/agents.js +6 -2
- package/dist/routes/auth.js +38 -20
- package/dist/routes/llm.js +65 -7
- 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/project-access.d.ts +61 -0
- package/dist/routes/project-access.js +62 -0
- package/dist/routes/projects.d.ts +42 -5
- package/dist/routes/projects.js +128 -17
- package/dist/routes/providers.d.ts +4 -1
- package/dist/routes/providers.js +19 -99
- package/dist/routes/queue.d.ts +7 -1
- package/dist/routes/queue.js +7 -1
- package/dist/routes/schedules.d.ts +46 -0
- package/dist/routes/schedules.js +10 -0
- package/dist/routes/sessions.d.ts +67 -6
- package/dist/routes/sessions.js +348 -208
- package/dist/routes/users.d.ts +14 -1
- package/dist/routes/users.js +91 -1
- package/package.json +5 -5
- 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, ThumbnailService, 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, SnippetService, EventRouter, RequestSessionService, EventIngress, AttachmentService, SchedulerService, TimerService, SessionMoveService, QuestionService, BackgroundRunService, ProcessService, ScriptService, 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';
|
|
@@ -22,6 +22,9 @@ export declare function createBackendDeps(config: BackendConfig, storage?: Stora
|
|
|
22
22
|
*/
|
|
23
23
|
executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
24
24
|
dataDir: string;
|
|
25
|
+
executionRouter: import("@itphx/synth-core").ExecutionRouter;
|
|
26
|
+
executionConfig: ResolvedExecutionConfig;
|
|
27
|
+
fallbackExecutionConfig: ResolvedExecutionConfig;
|
|
25
28
|
approvalRegistry: ApprovalRegistry | undefined;
|
|
26
29
|
storageContext: StorageContext;
|
|
27
30
|
metrics: MetricsRegistry | undefined;
|
|
@@ -42,6 +45,12 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
42
45
|
defaultsStore: import("@itphx/synth-core").DefaultsRepository;
|
|
43
46
|
defaultWorkingDir: string;
|
|
44
47
|
getDefaultAgentId: () => Promise<string>;
|
|
48
|
+
/**
|
|
49
|
+
* ADR-126/ADR-069: эффективный project-trust гейт скиллов/команд/инструкций
|
|
50
|
+
* (runtime > config), снятый на старте; нужен резолверу инструкций в
|
|
51
|
+
* `mount-routes`.
|
|
52
|
+
*/
|
|
53
|
+
skillsTrustedProjectDirs: string[];
|
|
45
54
|
egressResolver: import("@itphx/synth-core").EgressPolicyResolver;
|
|
46
55
|
egressLogConfig: {
|
|
47
56
|
enabled: boolean;
|
|
@@ -49,6 +58,11 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
49
58
|
};
|
|
50
59
|
securityAudit: import("@itphx/synth-core").SecurityAuditRepository;
|
|
51
60
|
egressRequests: import("@itphx/synth-core").EgressRequestLogRepository;
|
|
61
|
+
commandAuditLog: import("@itphx/synth-core").CommandAuditLog;
|
|
62
|
+
terminalService: import("@itphx/synth-core").TerminalService;
|
|
63
|
+
stopTerminalService: () => void;
|
|
64
|
+
moveService: SessionMoveService | undefined;
|
|
65
|
+
commandPolicyProvider: import("@itphx/synth-core").CommandPolicyProvider | null;
|
|
52
66
|
analyticsRollups: import("@itphx/synth-core").AnalyticsRollupRepository;
|
|
53
67
|
analytics: AnalyticsRecorder | undefined;
|
|
54
68
|
detachAnalyticsHooks: () => void;
|
|
@@ -73,13 +87,17 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
73
87
|
stopBackgroundRunPruner: () => void;
|
|
74
88
|
processService: ProcessService | undefined;
|
|
75
89
|
stopProcessLogPruner: () => void;
|
|
90
|
+
scriptService: ScriptService | undefined;
|
|
76
91
|
stopAttachmentPruner: () => void;
|
|
77
92
|
stopMediaTempPruner: () => void;
|
|
78
93
|
attachmentsSettings: import("@itphx/synth-core").LiveAttachmentsSettings;
|
|
79
94
|
contextWindowSettings: import("@itphx/synth-core").LiveContextWindowPolicy;
|
|
80
95
|
subagentMaxInputTokensSettings: import("@itphx/synth-core").LiveSubagentMaxInputTokens;
|
|
96
|
+
sessionOpsPerMinuteSettings: import("@itphx/synth-core").LiveSessionOpsPerMinute;
|
|
81
97
|
contextDefaultsSettings: import("@itphx/synth-core").LiveContextDefaults;
|
|
82
98
|
stickyNotesLimitsSettings: import("@itphx/synth-core").LiveStickyNotesLimits;
|
|
99
|
+
sshModeSettings: import("@itphx/synth-core").LiveSshMode;
|
|
100
|
+
backgroundSettings: import("@itphx/synth-core").LiveBackgroundSettings;
|
|
83
101
|
worktreeService: WorktreeService | undefined;
|
|
84
102
|
webhookStore: import("@itphx/synth-core").WebhookRepository;
|
|
85
103
|
webhookDeliveryStore: import("@itphx/synth-core").WebhookDeliveryRepository;
|
|
@@ -119,6 +137,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
119
137
|
skillService: SkillService;
|
|
120
138
|
bundleStore: import("@itphx/synth-core").SkillBundleRepository;
|
|
121
139
|
commandService: CommandService;
|
|
140
|
+
snippetService: SnippetService;
|
|
122
141
|
orchestrator: ChatOrchestrator;
|
|
123
142
|
pluginRuntime: PluginRuntime;
|
|
124
143
|
executionPort: import("@itphx/synth-core").ExecutionPort;
|
|
@@ -138,6 +157,8 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
138
157
|
requestSessionService: RequestSessionService;
|
|
139
158
|
eventIngress: EventIngress;
|
|
140
159
|
schedulerService: SchedulerService;
|
|
160
|
+
timerService: TimerService | undefined;
|
|
161
|
+
stopTimerService: () => Promise<void> | undefined;
|
|
141
162
|
/**
|
|
142
163
|
* Живые (мутируемые) эффективные настройки — аксессоры, а не значения:
|
|
143
164
|
* обновляются админкой в рантайме (`mountBackendRoutes`), читаются
|