@itphx/synth-backend 0.13.8 → 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 +15 -2
- package/dist/app/deps.js +620 -57
- package/dist/app/listen.js +30 -35
- package/dist/app/mount-routes.js +258 -22
- package/dist/app/sse-events.js +2 -0
- package/dist/app.d.ts +7 -0
- package/dist/app.js +14 -11
- package/dist/auth/middleware.js +4 -12
- 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 +62 -3
- package/dist/events/visible-session-ids.d.ts +35 -0
- package/dist/events/visible-session-ids.js +29 -0
- package/dist/lib/app-config.js +35 -5
- package/dist/lib/i18n.js +14 -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 +5 -1
- package/dist/routes/agents.d.ts +3 -3
- package/dist/routes/agents.js +6 -2
- package/dist/routes/auth.js +33 -0
- package/dist/routes/project-access.d.ts +61 -0
- package/dist/routes/project-access.js +62 -0
- package/dist/routes/projects.d.ts +41 -4
- package/dist/routes/projects.js +117 -15
- 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 +53 -1
- package/dist/routes/sessions.js +92 -26
- package/dist/routes/users.d.ts +14 -1
- package/dist/routes/users.js +91 -1
- package/package.json +5 -5
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;
|
|
@@ -43,7 +46,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
43
46
|
defaultWorkingDir: string;
|
|
44
47
|
getDefaultAgentId: () => Promise<string>;
|
|
45
48
|
/**
|
|
46
|
-
* ADR-
|
|
49
|
+
* ADR-126/ADR-069: эффективный project-trust гейт скиллов/команд/инструкций
|
|
47
50
|
* (runtime > config), снятый на старте; нужен резолверу инструкций в
|
|
48
51
|
* `mount-routes`.
|
|
49
52
|
*/
|
|
@@ -55,6 +58,11 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
55
58
|
};
|
|
56
59
|
securityAudit: import("@itphx/synth-core").SecurityAuditRepository;
|
|
57
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;
|
|
58
66
|
analyticsRollups: import("@itphx/synth-core").AnalyticsRollupRepository;
|
|
59
67
|
analytics: AnalyticsRecorder | undefined;
|
|
60
68
|
detachAnalyticsHooks: () => void;
|
|
@@ -79,6 +87,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
79
87
|
stopBackgroundRunPruner: () => void;
|
|
80
88
|
processService: ProcessService | undefined;
|
|
81
89
|
stopProcessLogPruner: () => void;
|
|
90
|
+
scriptService: ScriptService | undefined;
|
|
82
91
|
stopAttachmentPruner: () => void;
|
|
83
92
|
stopMediaTempPruner: () => void;
|
|
84
93
|
attachmentsSettings: import("@itphx/synth-core").LiveAttachmentsSettings;
|
|
@@ -88,6 +97,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
88
97
|
contextDefaultsSettings: import("@itphx/synth-core").LiveContextDefaults;
|
|
89
98
|
stickyNotesLimitsSettings: import("@itphx/synth-core").LiveStickyNotesLimits;
|
|
90
99
|
sshModeSettings: import("@itphx/synth-core").LiveSshMode;
|
|
100
|
+
backgroundSettings: import("@itphx/synth-core").LiveBackgroundSettings;
|
|
91
101
|
worktreeService: WorktreeService | undefined;
|
|
92
102
|
webhookStore: import("@itphx/synth-core").WebhookRepository;
|
|
93
103
|
webhookDeliveryStore: import("@itphx/synth-core").WebhookDeliveryRepository;
|
|
@@ -127,6 +137,7 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
127
137
|
skillService: SkillService;
|
|
128
138
|
bundleStore: import("@itphx/synth-core").SkillBundleRepository;
|
|
129
139
|
commandService: CommandService;
|
|
140
|
+
snippetService: SnippetService;
|
|
130
141
|
orchestrator: ChatOrchestrator;
|
|
131
142
|
pluginRuntime: PluginRuntime;
|
|
132
143
|
executionPort: import("@itphx/synth-core").ExecutionPort;
|
|
@@ -146,6 +157,8 @@ executionConfig?: ResolvedExecutionConfig): Promise<{
|
|
|
146
157
|
requestSessionService: RequestSessionService;
|
|
147
158
|
eventIngress: EventIngress;
|
|
148
159
|
schedulerService: SchedulerService;
|
|
160
|
+
timerService: TimerService | undefined;
|
|
161
|
+
stopTimerService: () => Promise<void> | undefined;
|
|
149
162
|
/**
|
|
150
163
|
* Живые (мутируемые) эффективные настройки — аксессоры, а не значения:
|
|
151
164
|
* обновляются админкой в рантайме (`mountBackendRoutes`), читаются
|