@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.
Files changed (57) hide show
  1. package/dist/app/deps.d.ts +15 -1
  2. package/dist/app/deps.js +553 -34
  3. package/dist/app/listen.js +56 -7
  4. package/dist/app/mount-routes.js +273 -32
  5. package/dist/app/public-routes.d.ts +2 -0
  6. package/dist/app/public-routes.js +11 -0
  7. package/dist/app/sse-events.d.ts +4 -0
  8. package/dist/app/sse-events.js +53 -6
  9. package/dist/app.d.ts +3 -1
  10. package/dist/app.js +33 -0
  11. package/dist/auth/api-key.d.ts +19 -0
  12. package/dist/auth/api-key.js +56 -0
  13. package/dist/auth/middleware.js +7 -3
  14. package/dist/events/hub.d.ts +17 -0
  15. package/dist/events/hub.js +50 -15
  16. package/dist/init.d.ts +1 -0
  17. package/dist/init.js +96 -0
  18. package/dist/lib/app-config.d.ts +4 -0
  19. package/dist/lib/app-config.js +16 -3
  20. package/dist/lib/bind-host.d.ts +10 -0
  21. package/dist/lib/bind-host.js +32 -0
  22. package/dist/lib/defaults-store.d.ts +1 -1
  23. package/dist/lib/defaults-store.js +1 -1
  24. package/dist/lib/i18n.js +26 -0
  25. package/dist/lib/recalc-can-summarize.js +8 -3
  26. package/dist/main.js +7 -2
  27. package/dist/middleware/rate-limiter.d.ts +4 -1
  28. package/dist/middleware/rate-limiter.js +15 -2
  29. package/dist/routes/agents.js +1 -0
  30. package/dist/routes/auth.js +29 -16
  31. package/dist/routes/llm.js +92 -12
  32. package/dist/routes/mcp-remote.d.ts +23 -0
  33. package/dist/routes/mcp-remote.js +152 -0
  34. package/dist/routes/mcp.d.ts +11 -6
  35. package/dist/routes/mcp.js +35 -6
  36. package/dist/routes/messages.js +2 -0
  37. package/dist/routes/projects.d.ts +9 -3
  38. package/dist/routes/projects.js +32 -3
  39. package/dist/routes/providers.d.ts +4 -1
  40. package/dist/routes/providers.js +19 -99
  41. package/dist/routes/queue.d.ts +4 -1
  42. package/dist/routes/queue.js +4 -1
  43. package/dist/routes/sessions.d.ts +49 -9
  44. package/dist/routes/sessions.js +299 -256
  45. package/package.json +6 -6
  46. package/dist/routes/audit.d.ts +0 -17
  47. package/dist/routes/audit.js +0 -64
  48. package/dist/routes/context.d.ts +0 -4
  49. package/dist/routes/context.js +0 -93
  50. package/dist/routes/debug.d.ts +0 -3
  51. package/dist/routes/debug.js +0 -30
  52. package/dist/routes/gateway-patterns.d.ts +0 -9
  53. package/dist/routes/gateway-patterns.js +0 -57
  54. package/dist/routes/logs.d.ts +0 -24
  55. package/dist/routes/logs.js +0 -100
  56. package/dist/routes/mcp-registry.d.ts +0 -28
  57. package/dist/routes/mcp-registry.js +0 -483
@@ -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;