@itphx/synth-shared 0.12.4 → 0.13.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.
Files changed (41) hide show
  1. package/dist/config/defaults.js +97 -4
  2. package/dist/config/env-overrides.js +29 -0
  3. package/dist/config/resolve.d.ts +17 -0
  4. package/dist/config/resolve.js +40 -1
  5. package/dist/config/types.d.ts +394 -7
  6. package/dist/config/types.js +275 -6
  7. package/dist/i18n/index.d.ts +1 -1
  8. package/dist/i18n/index.js +188 -3
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.js +2 -2
  11. package/dist/schemas/index.d.ts +90 -10
  12. package/dist/schemas/index.js +55 -4
  13. package/dist/types/agent.d.ts +8 -1
  14. package/dist/types/bus-events.d.ts +59 -1
  15. package/dist/types/egress.d.ts +1 -1
  16. package/dist/types/egress.js +1 -1
  17. package/dist/types/file-kind.d.ts +40 -0
  18. package/dist/types/file-kind.js +157 -0
  19. package/dist/types/fs.d.ts +54 -1
  20. package/dist/types/fs.js +43 -0
  21. package/dist/types/git.d.ts +5 -0
  22. package/dist/types/index.d.ts +2 -0
  23. package/dist/types/index.js +6 -0
  24. package/dist/types/llm.d.ts +95 -0
  25. package/dist/types/llm.js +58 -0
  26. package/dist/types/message-stream.d.ts +348 -0
  27. package/dist/types/message-stream.js +41 -0
  28. package/dist/types/message.d.ts +49 -0
  29. package/dist/types/pack.d.ts +6 -6
  30. package/dist/types/permission.d.ts +26 -0
  31. package/dist/types/pipeline-engine.d.ts +2 -2
  32. package/dist/types/provider.d.ts +280 -0
  33. package/dist/types/provider.js +289 -0
  34. package/dist/types/session.d.ts +170 -3
  35. package/dist/types/tools.d.ts +21 -0
  36. package/dist/types/tools.js +1 -1
  37. package/dist/utils/reasoning.d.ts +18 -2
  38. package/dist/utils/reasoning.js +16 -7
  39. package/dist/version.d.ts +1 -1
  40. package/dist/version.js +1 -1
  41. package/package.json +2 -2
@@ -13,12 +13,13 @@
13
13
  */
14
14
  export const ENGINE_MESSAGE_KEYS = [
15
15
  'session.max_iterations',
16
+ 'session.steps_limit',
16
17
  'session.stopped',
17
18
  'session.stopped_reason_denied',
18
19
  'session.denied_blocked',
19
20
  'session.role_tool_blocked',
20
21
  'session.empty_response',
21
- 'session.dialog_title',
22
+ 'session.output_limit',
22
23
  'session.default_title',
23
24
  'session.reference_label',
24
25
  'session.reference_link',
@@ -33,7 +34,9 @@ export const ENGINE_MESSAGE_KEYS = [
33
34
  'task.subagent_not_allowed',
34
35
  'task.deps_unavailable',
35
36
  'task.model_unavailable',
37
+ 'task.model_not_in_catalog',
36
38
  'task.subagent_exec_error_after_retries',
39
+ 'task.depth_limit',
37
40
  'task.resume_marker',
38
41
  'task.resume_result',
39
42
  'task.resume_failed',
@@ -46,6 +49,8 @@ export const ENGINE_MESSAGE_KEYS = [
46
49
  'task.resume_provider_unavailable',
47
50
  'task.steps_limit',
48
51
  'task.steps_limit_empty',
52
+ 'task.context_budget',
53
+ 'subagent.context_budget',
49
54
  'task.background_started',
50
55
  'task.background_limit',
51
56
  'task.background_disabled',
@@ -53,14 +58,22 @@ export const ENGINE_MESSAGE_KEYS = [
53
58
  'task.resume_child_busy',
54
59
  'tool.args_error',
55
60
  'tool.exec_error',
61
+ // Вызов инструмента без имени/идентификатора — результат всё равно должен
62
+ // быть записан парным `tool`-сообщением (иначе у провайдера рвётся цепочка).
63
+ 'tool.malformed_call',
56
64
  'tool.not_found',
57
65
  'tool.permission_denied_default',
58
66
  'tool.doom_loop',
67
+ 'tool.disabled_by_step_limit',
59
68
  'tool.empty_output',
60
69
  'tool.output_truncated',
70
+ // Общий предел вывода инструментов: результат усечён по строкам/байтам.
71
+ 'tool.output_bounded',
61
72
  'tool.shell_error',
62
73
  // ADR-113 §detach: сообщение о таймауте detach-готового foreground-пути.
63
74
  'tool.shell_timeout',
75
+ // Таймаут поиска (`grep_files`/`glob`) — actionable-текст с подсказкой.
76
+ 'tool.search_timeout',
64
77
  'tool.command_failed_default',
65
78
  'tool.aborted',
66
79
  'tool.binary_missing',
@@ -68,11 +81,47 @@ export const ENGINE_MESSAGE_KEYS = [
68
81
  'fs.file_edited',
69
82
  'fs.replace_not_found',
70
83
  'fs.replace_multiple',
84
+ // Отказы до записи: идентичные строки, пустой old_string, смешанные переводы строк.
85
+ 'fs.no_changes',
86
+ 'fs.empty_old_string',
87
+ 'fs.mixed_line_endings',
88
+ // Защита от бинаря и гигантских файлов.
89
+ 'fs.edit_binary',
90
+ 'fs.write_binary',
91
+ 'fs.file_too_large',
92
+ 'fs.file_not_found',
71
93
  'fs.dir_created',
72
94
  'fs.file_deleted',
95
+ // Мультифайловая атомарная правка (`patch`, JSON-edits).
96
+ 'fs.patch_applied',
97
+ 'fs.patch_file_line',
98
+ 'fs.patch_not_found',
99
+ 'fs.patch_multiple',
100
+ 'fs.patch_write_failed',
101
+ 'fs.patch_file_missing',
102
+ 'fs.patch_not_regular',
103
+ 'fs.patch_too_large',
104
+ 'fs.patch_binary',
105
+ // Операции патча add/delete/rename (сводка + строки по файлам).
106
+ 'fs.patch_summary',
107
+ 'fs.patch_file_added',
108
+ 'fs.patch_file_deleted',
109
+ 'fs.patch_file_renamed',
110
+ 'fs.patch_add_exists',
111
+ 'fs.patch_delete_missing',
112
+ 'fs.patch_rename_missing',
113
+ 'fs.patch_rename_exists',
114
+ 'fs.patch_path_escapes',
73
115
  'fsread.empty_directory',
116
+ 'fsread.empty_file',
74
117
  'fsread.no_files',
75
118
  'fsread.glob_error',
119
+ 'fsread.truncated',
120
+ 'fsread.directory_truncated',
121
+ 'fsread.line_truncated',
122
+ 'fsread.offset_out_of_range',
123
+ 'fsread.binary',
124
+ 'fsread.glob_truncated',
76
125
  'web.duckduckgo_blocked',
77
126
  'web.search_failed',
78
127
  'web.search_results',
@@ -80,17 +129,25 @@ export const ENGINE_MESSAGE_KEYS = [
80
129
  'web.js_framework_warning',
81
130
  'web.low_content_warning',
82
131
  'web.content_truncated',
132
+ 'web.body_truncated',
83
133
  'web.block_timeout',
84
134
  'web.block_error',
85
135
  'web.fetch_all_failed',
86
136
  'web.no_results',
87
137
  'web.search_error',
138
+ 'web.search_rate_limited',
139
+ 'web.search_auth_failed',
88
140
  'web.ssrf_blocked',
89
141
  'web.too_many_redirects',
90
142
  'search.no_matches',
91
143
  'search.matches_truncated',
92
144
  'search.rg_not_installed',
93
145
  'search.error',
146
+ // Различимые причины отказа поиска (ADR-041): путь не найден / путь не
147
+ // каталог / невалидный regex — у каждой своя подсказка модели.
148
+ 'search.path_not_found',
149
+ 'search.path_not_directory',
150
+ 'search.invalid_regex',
94
151
  'plan.enter_success',
95
152
  'plan.exit_success',
96
153
  'plan.session_manager_unavailable',
@@ -123,6 +180,15 @@ export const ENGINE_MESSAGE_KEYS = [
123
180
  'todo.priority_high',
124
181
  'todo.priority_medium',
125
182
  'todo.priority_low',
183
+ // Компактный вывод тулов todo (по образцу opencode): сводка + строки пунктов.
184
+ 'todo.summary',
185
+ 'todo.line',
186
+ 'todo.more',
187
+ 'todo.added',
188
+ 'todo.updated',
189
+ 'todo.deleted',
190
+ 'todo.hint_priority',
191
+ 'todo.hint_plan',
126
192
  'project.deps_unavailable',
127
193
  'project.session_read_error',
128
194
  'project.session_not_found',
@@ -205,6 +271,7 @@ export const ENGINE_MESSAGE_KEYS = [
205
271
  'permission.rule_prefix_matched',
206
272
  'permission.rule_command_matched',
207
273
  'permission.ask_timeout',
274
+ 'permission.ask_cancelled',
208
275
  'permission.ask_no_subscribers',
209
276
  'permission.ask_denied',
210
277
  'permission.authority_denied_unknown',
@@ -229,7 +296,9 @@ export const ENGINE_MESSAGE_KEYS = [
229
296
  'router.timeout',
230
297
  'router.network_error',
231
298
  'router.provider_not_found',
299
+ 'router.provider_disabled',
232
300
  'router.provider_unspecified',
301
+ 'router.model_disabled',
233
302
  'router.escalation',
234
303
  'router.context_length_exceeded',
235
304
  'router.rate_limit_exceeded',
@@ -279,6 +348,12 @@ export const ENGINE_MESSAGE_KEYS = [
279
348
  'command.skills_empty',
280
349
  'command.summary_enqueued',
281
350
  'command.summary_unavailable',
351
+ // --- Сжатие контекста (summarization / compaction) ---
352
+ 'context.compression_empty',
353
+ 'context.compression_failed',
354
+ 'context.compression_template',
355
+ 'context.compression_output_limit',
356
+ 'context.summary_applied',
282
357
  // --- Inline shell (ADR-046 §7.4) ---
283
358
  'command.inline_shell_disabled',
284
359
  'command.inline_shell_denied',
@@ -292,8 +367,22 @@ export const ENGINE_MESSAGE_KEYS = [
292
367
  'sshkey.decrypt_failed',
293
368
  'sshkey.env_failed',
294
369
  'git.ssh_key_required',
370
+ 'git.ssh_key_required_hint',
371
+ 'git.ssh_keys_none',
372
+ 'sshkeys.tool.header',
373
+ 'sshkeys.tool.empty',
374
+ 'sshkeys.tool.deps_unavailable',
295
375
  'git.repo_path_invalid',
376
+ 'git.repo_not_a_repo',
296
377
  'git.repo_exists',
378
+ 'git.repo_occupied_repo',
379
+ 'git.repo_occupied_stub',
380
+ 'git.repo_occupied_dir',
381
+ 'git.repo_path_unreadable',
382
+ 'git.clone_timeout',
383
+ 'git.fetch_timeout',
384
+ // Таймаут git-тула агента: величина лимита + что делать дальше.
385
+ 'git.timeout',
297
386
  // --- Git worktrees: per-session рабочий каталог (ADR-114) ---
298
387
  'worktree.directory_missing',
299
388
  'worktree.tool.deps_unavailable',
@@ -321,6 +410,10 @@ export const ENGINE_MESSAGE_KEYS = [
321
410
  'steer.injected',
322
411
  'steer.limit_exceeded',
323
412
  'steer.interrupted',
413
+ 'steer.dropped_aborted',
414
+ 'steer.dropped_turn_ended',
415
+ 'steer.requeued_aborted',
416
+ 'steer.requeued_turn_ended',
324
417
  // --- Профиль пользователя и онбординг ---
325
418
  'profile.deps_unavailable',
326
419
  'profile.session_read_error',
@@ -407,6 +500,11 @@ export const ENGINE_MESSAGE_KEYS = [
407
500
  'process.tool.header',
408
501
  'process.tool.no_log',
409
502
  'process.tool.child_history',
503
+ // ADR-111: управление фоновыми прогонами из агента.
504
+ 'process.tool.not_running',
505
+ 'process.tool.running',
506
+ 'process.tool.stopping',
507
+ 'process.tool.deleted',
410
508
  // --- Повторная привязка файла из workspace (ADR-115) ---
411
509
  'attach.message.from_workspace',
412
510
  'attach.tool.attached',
@@ -439,12 +537,13 @@ export const ENGINE_MESSAGE_KEYS = [
439
537
  ];
440
538
  export const ENGINE_MESSAGE_PARAMS = {
441
539
  'session.max_iterations': [],
540
+ 'session.steps_limit': ["limit"],
442
541
  'session.stopped': ["reason"],
443
542
  'session.stopped_reason_denied': [],
444
543
  'session.denied_blocked': [],
445
544
  'session.role_tool_blocked': ["tool", "agent"],
446
545
  'session.empty_response': [],
447
- 'session.dialog_title': ["id"],
546
+ 'session.output_limit': ["limit", "reasoning"],
448
547
  'session.default_title': [],
449
548
  'session.reference_label': [],
450
549
  'session.reference_link': ["label", "id", "from", "to"],
@@ -459,7 +558,9 @@ export const ENGINE_MESSAGE_PARAMS = {
459
558
  'task.subagent_not_allowed': ["type", "modes"],
460
559
  'task.deps_unavailable': [],
461
560
  'task.model_unavailable': ["provider", "model"],
561
+ 'task.model_not_in_catalog': ["provider", "model", "available"],
462
562
  'task.subagent_exec_error_after_retries': ["type", "attempts", "error"],
563
+ 'task.depth_limit': ["limit"],
463
564
  'task.resume_marker': [],
464
565
  'task.resume_result': ["type", "summary"],
465
566
  'task.resume_failed': ["type", "error"],
@@ -472,6 +573,8 @@ export const ENGINE_MESSAGE_PARAMS = {
472
573
  'task.resume_provider_unavailable': ["id"],
473
574
  'task.steps_limit': ["limit"],
474
575
  'task.steps_limit_empty': ["limit"],
576
+ 'task.context_budget': ["tokens", "steps", "tasks"],
577
+ 'subagent.context_budget': ["tokens", "steps"],
475
578
  'task.background_started': ["id"],
476
579
  'task.background_limit': ["limit"],
477
580
  'task.background_disabled': [],
@@ -479,13 +582,17 @@ export const ENGINE_MESSAGE_PARAMS = {
479
582
  'task.resume_child_busy': ["id"],
480
583
  'tool.args_error': ["tool", "issues"],
481
584
  'tool.exec_error': ["tool", "error"],
585
+ 'tool.malformed_call': ["tool", "id"],
482
586
  'tool.not_found': ["tool"],
483
587
  'tool.permission_denied_default': [],
484
588
  'tool.doom_loop': ["tool", "count"],
589
+ 'tool.disabled_by_step_limit': ["tool", "limit"],
485
590
  'tool.empty_output': [],
486
591
  'tool.output_truncated': [],
592
+ 'tool.output_bounded': ["shown", "total"],
487
593
  'tool.shell_error': ["message"],
488
594
  'tool.shell_timeout': ["timeout"],
595
+ 'tool.search_timeout': ["seconds"],
489
596
  'tool.command_failed_default': [],
490
597
  'tool.aborted': [],
491
598
  'tool.binary_missing': ["tool", "binary"],
@@ -493,11 +600,43 @@ export const ENGINE_MESSAGE_PARAMS = {
493
600
  'fs.file_edited': ["path", "count"],
494
601
  'fs.replace_not_found': ["path"],
495
602
  'fs.replace_multiple': ["count"],
603
+ 'fs.no_changes': [],
604
+ 'fs.empty_old_string': [],
605
+ 'fs.mixed_line_endings': [],
606
+ 'fs.edit_binary': ["path"],
607
+ 'fs.write_binary': ["path"],
608
+ 'fs.file_too_large': ["limit"],
609
+ 'fs.file_not_found': ["path"],
496
610
  'fs.dir_created': ["path"],
497
611
  'fs.file_deleted': ["path"],
612
+ 'fs.patch_applied': ["files", "replacements"],
613
+ 'fs.patch_file_line': ["path", "count"],
614
+ 'fs.patch_not_found': ["path", "index"],
615
+ 'fs.patch_multiple': ["path", "index", "count"],
616
+ 'fs.patch_write_failed': ["path", "error"],
617
+ 'fs.patch_file_missing': ["path"],
618
+ 'fs.patch_not_regular': ["path"],
619
+ 'fs.patch_too_large': ["path", "bytes", "limit"],
620
+ 'fs.patch_binary': ["path"],
621
+ 'fs.patch_summary': ["added", "updated", "deleted", "renamed"],
622
+ 'fs.patch_file_added': ["path"],
623
+ 'fs.patch_file_deleted': ["path"],
624
+ 'fs.patch_file_renamed': ["from", "to"],
625
+ 'fs.patch_add_exists': ["path"],
626
+ 'fs.patch_delete_missing': ["path"],
627
+ 'fs.patch_rename_missing': ["from"],
628
+ 'fs.patch_rename_exists': ["to"],
629
+ 'fs.patch_path_escapes': ["path"],
498
630
  'fsread.empty_directory': [],
631
+ 'fsread.empty_file': [],
499
632
  'fsread.no_files': [],
500
633
  'fsread.glob_error': [],
634
+ 'fsread.truncated': ["count", "next"],
635
+ 'fsread.directory_truncated': ["count", "next"],
636
+ 'fsread.line_truncated': [],
637
+ 'fsread.offset_out_of_range': ["offset", "total"],
638
+ 'fsread.binary': ["path"],
639
+ 'fsread.glob_truncated': ["count", "total"],
501
640
  'web.duckduckgo_blocked': [],
502
641
  'web.search_failed': [],
503
642
  'web.search_results': ["query", "count", "items"],
@@ -505,17 +644,23 @@ export const ENGINE_MESSAGE_PARAMS = {
505
644
  'web.js_framework_warning': [],
506
645
  'web.low_content_warning': [],
507
646
  'web.content_truncated': [],
647
+ 'web.body_truncated': ["limit"],
508
648
  'web.block_timeout': [],
509
649
  'web.block_error': ["error"],
510
650
  'web.fetch_all_failed': [],
511
651
  'web.no_results': ["query"],
512
652
  'web.search_error': ["error"],
653
+ 'web.search_rate_limited': [],
654
+ 'web.search_auth_failed': [],
513
655
  'web.ssrf_blocked': ["reason"],
514
656
  'web.too_many_redirects': [],
515
657
  'search.no_matches': [],
516
- 'search.matches_truncated': ["total"],
658
+ 'search.matches_truncated': ["shown", "total"],
517
659
  'search.rg_not_installed': [],
518
660
  'search.error': ["error"],
661
+ 'search.path_not_found': ["path"],
662
+ 'search.path_not_directory': ["path"],
663
+ 'search.invalid_regex': ["error"],
519
664
  'plan.enter_success': [],
520
665
  'plan.exit_success': [],
521
666
  'plan.session_manager_unavailable': ["tool"],
@@ -548,6 +693,14 @@ export const ENGINE_MESSAGE_PARAMS = {
548
693
  'todo.priority_high': [],
549
694
  'todo.priority_medium': [],
550
695
  'todo.priority_low': [],
696
+ 'todo.summary': ["completed", "total", "inProgress"],
697
+ 'todo.line': ["mark", "title", "status"],
698
+ 'todo.more': ["count"],
699
+ 'todo.added': ["ids"],
700
+ 'todo.updated': ["id"],
701
+ 'todo.deleted': ["count"],
702
+ 'todo.hint_priority': ["priority"],
703
+ 'todo.hint_plan': ["plan"],
551
704
  'project.deps_unavailable': ["tool"],
552
705
  'project.session_read_error': [],
553
706
  'project.session_not_found': [],
@@ -630,6 +783,7 @@ export const ENGINE_MESSAGE_PARAMS = {
630
783
  'permission.rule_prefix_matched': ["key", "action"],
631
784
  'permission.rule_command_matched': ["key", "pattern", "action", "command"],
632
785
  'permission.ask_timeout': [],
786
+ 'permission.ask_cancelled': [],
633
787
  'permission.ask_no_subscribers': [],
634
788
  'permission.ask_denied': [],
635
789
  'permission.authority_denied_unknown': ["action"],
@@ -654,7 +808,9 @@ export const ENGINE_MESSAGE_PARAMS = {
654
808
  'router.timeout': [],
655
809
  'router.network_error': [],
656
810
  'router.provider_not_found': ["provider"],
811
+ 'router.provider_disabled': ["provider"],
657
812
  'router.provider_unspecified': [],
813
+ 'router.model_disabled': ["provider", "model"],
658
814
  'router.escalation': ["provider", "model", "reason"],
659
815
  'router.context_length_exceeded': [],
660
816
  'router.rate_limit_exceeded': [],
@@ -704,6 +860,12 @@ export const ENGINE_MESSAGE_PARAMS = {
704
860
  'command.skills_empty': [],
705
861
  'command.summary_enqueued': [],
706
862
  'command.summary_unavailable': [],
863
+ // --- Сжатие контекста (summarization / compaction) ---
864
+ 'context.compression_empty': [],
865
+ 'context.compression_failed': ["mode", "reason"],
866
+ 'context.compression_template': [],
867
+ 'context.compression_output_limit': [],
868
+ 'context.summary_applied': ["mode"],
707
869
  // --- Inline shell (ADR-046 §7.4) ---
708
870
  'command.inline_shell_disabled': [],
709
871
  'command.inline_shell_denied': ["command", "reason"],
@@ -717,8 +879,23 @@ export const ENGINE_MESSAGE_PARAMS = {
717
879
  'sshkey.decrypt_failed': ["id"],
718
880
  'sshkey.env_failed': [],
719
881
  'git.ssh_key_required': ["path"],
882
+ 'git.ssh_key_required_hint': ["path", "keys"],
883
+ 'git.ssh_keys_none': [],
884
+ 'sshkeys.tool.header': ["count"],
885
+ 'sshkeys.tool.empty': [],
886
+ 'sshkeys.tool.deps_unavailable': [],
720
887
  'git.repo_path_invalid': ["path"],
888
+ 'git.repo_not_a_repo': ["path"],
721
889
  'git.repo_exists': ["path"],
890
+ // ADR-076: занятый путь различается по состоянию (полноценный репозиторий /
891
+ // след прерванного клона / непустой каталог) — сообщения actionable.
892
+ 'git.repo_occupied_repo': ["path"],
893
+ 'git.repo_occupied_stub': ["path"],
894
+ 'git.repo_occupied_dir': ["path", "entries"],
895
+ 'git.repo_path_unreadable': ["path"],
896
+ 'git.clone_timeout': ["timeout"],
897
+ 'git.fetch_timeout': ["timeout"],
898
+ 'git.timeout': ["tool", "timeout"],
722
899
  // --- Git worktrees: per-session рабочий каталог (ADR-114) ---
723
900
  'worktree.directory_missing': ["path"],
724
901
  'worktree.tool.deps_unavailable': [],
@@ -746,6 +923,10 @@ export const ENGINE_MESSAGE_PARAMS = {
746
923
  'steer.injected': [],
747
924
  'steer.limit_exceeded': ["limit"],
748
925
  'steer.interrupted': [],
926
+ 'steer.dropped_aborted': ["count"],
927
+ 'steer.dropped_turn_ended': ["count"],
928
+ 'steer.requeued_aborted': ["count"],
929
+ 'steer.requeued_turn_ended': ["count"],
749
930
  // --- Профиль пользователя и онбординг ---
750
931
  'profile.deps_unavailable': ["tool"],
751
932
  'profile.session_read_error': [],
@@ -830,6 +1011,10 @@ export const ENGINE_MESSAGE_PARAMS = {
830
1011
  'process.tool.header': ["count"],
831
1012
  'process.tool.no_log': [],
832
1013
  'process.tool.child_history': ["child_session"],
1014
+ 'process.tool.not_running': ["id"],
1015
+ 'process.tool.running': ["id"],
1016
+ 'process.tool.stopping': ["id"],
1017
+ 'process.tool.deleted': ["id"],
833
1018
  'attach.message.from_workspace': ["path"],
834
1019
  'attach.tool.attached': ["path"],
835
1020
  'attach.tool.deps_unavailable': [],
package/dist/index.d.ts CHANGED
@@ -18,9 +18,9 @@ export { PIPELINE_MODES, pipelineModeSchema, pipelineNodeKindSchema, pipelineExi
18
18
  export type { PipelineMode, PipelineNodeKind, PipelineExitKind, PipelineConditionOp, JsonSchemaLike, PipelineCondition, PipelineTransition, PipelineNode, PipelineExit, PipelineSpec, PipelineRunTrigger, StepResult, PipelineRunStatus, PipelineRun, PipelineRunEventType, PipelineRunEvent, PipelineSpecValidationResult, } from './types/pipeline-engine.js';
19
19
  export { SYNTH_VERSION } from './version.js';
20
20
  export * from './model-metadata.js';
21
- export { type SynthConfig, type ServerConfig, type StorageConfig, type PostgresStorageConfig, postgresStorageConfigSchema, type AuthConfig as SynthAuthConfig, type LLMConfig, type CoreConfig, type RunnerConfig, type UIConfig, type I18nConfig, type LoggingConfig, type TsmConfig, type ContextConfigSchema, type SummarizationConfig, type McpServerConfig, type McpServerAuth, mcpServerAuthSchema, type McpConfig, type ToolsDisabledConfig, toolsDisabledConfigSchema, type SkillsConfig, skillsConfigSchema, type CommandsConfig, commandsConfigSchema, type InstructionsConfig, type InstructionsLazyConfig, type InstructionsFetchConfig, type InstructionSourceConfig, instructionsConfigSchema, instructionSourceConfigSchema, type RouterConfig, type RouterContentConfig, type RouterEscalationConfig, type RouterCostConfig, type RouterSubagentConfig, type DecisionConfig, decisionConfigSchema, type PluginsConfig, pluginsConfigSchema, type AttachmentsConfig, attachmentsConfigSchema, type AttachmentFamily, type ModalityModelRef, type ModalityModelAssignments, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, type WebhooksConfig, webhooksConfigSchema, type RemoteConfig, type MicroFirstConfig, type SecurityConfig, securityTlsConfigSchema, type SecurityTlsConfig, type PromptInjectionConfig, type ProtectedPathsConfig, type LLMGatewayConfig, type LLMGatewayRateLimitConfig, type LLMGatewayAuditConfig, } from './config/index.js';
21
+ export { type SynthConfig, type ServerConfig, type StorageConfig, type PostgresStorageConfig, postgresStorageConfigSchema, type AuthConfig as SynthAuthConfig, type LLMConfig, type CoreConfig, type RunnerConfig, type UIConfig, type I18nConfig, type LoggingConfig, type TsmConfig, type ContextConfigSchema, CONTEXT_WINDOW_POLICIES, type ContextWindowPolicy, type SummarizationConfig, type McpServerConfig, type McpServerAuth, mcpServerAuthSchema, type McpConfig, type ToolsDisabledConfig, toolsDisabledConfigSchema, type SkillsConfig, skillsConfigSchema, type CommandsConfig, commandsConfigSchema, type InstructionsConfig, type InstructionsLazyConfig, type InstructionsFetchConfig, type InstructionSourceConfig, instructionsConfigSchema, instructionSourceConfigSchema, type RouterConfig, type RouterContentConfig, type RouterEscalationConfig, type RouterCostConfig, type RouterSubagentConfig, type DecisionConfig, decisionConfigSchema, type PluginsConfig, pluginsConfigSchema, type AttachmentsConfig, attachmentsConfigSchema, type AttachmentsCompressionSettings, type AttachmentCompressionImageSettings, type AttachmentCompressionVideoSettings, type AttachmentCompressionAudioSettings, type AttachmentsThumbnailSettings, attachmentsCompressionSchema, attachmentCompressionImageSchema, attachmentCompressionVideoSchema, attachmentCompressionAudioSchema, attachmentsThumbnailSchema, type AttachmentFamily, type ModalityModelRef, type ModalityModelAssignments, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, type WebhooksConfig, webhooksConfigSchema, type RemoteConfig, type MicroFirstConfig, type SecurityConfig, securityTlsConfigSchema, type SecurityTlsConfig, type PromptInjectionConfig, type ProtectedPathsConfig, type LLMGatewayConfig, type LLMGatewayRateLimitConfig, type LLMGatewayAuditConfig, } from './config/index.js';
22
22
  export { defaultConfig, loadConfig } from './config/index.js';
23
- export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveStorageBackend, resolvePostgresConfig, resolvePostgresPassword, resolveDegradedMode, resolveStorageFallbackDir, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel, resolveMaxUploadBytes } from './config/index.js';
23
+ export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveStorageBackend, resolvePostgresConfig, resolvePostgresPassword, resolveDegradedMode, resolveStorageFallbackDir, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel, resolveMaxUploadBytes, resolveMaxReadBytes, resolveMaxPreviewBytes } from './config/index.js';
24
24
  export type { StorageBackend, ResolvedPostgresConfig } from './config/index.js';
25
25
  export { applyEnvOverrides, envOverrideName, toSnakeCase, parseEnvValue, ENV_OVERRIDES } from './config/index.js';
26
26
  export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, isExecutionMode, isExecutionFailMode, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
package/dist/index.js CHANGED
@@ -22,9 +22,9 @@ export { PIPELINE_MODES, pipelineModeSchema, pipelineNodeKindSchema, pipelineExi
22
22
  export { SYNTH_VERSION } from './version.js';
23
23
  export * from './model-metadata.js';
24
24
  // Конфигурация — выборочный экспорт (избегаем конфликта AuthConfig/TestUser)
25
- export { postgresStorageConfigSchema, mcpServerAuthSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, pluginsConfigSchema, attachmentsConfigSchema, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, webhooksConfigSchema, securityTlsConfigSchema, } from './config/index.js';
25
+ export { postgresStorageConfigSchema, CONTEXT_WINDOW_POLICIES, mcpServerAuthSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, pluginsConfigSchema, attachmentsConfigSchema, attachmentsCompressionSchema, attachmentCompressionImageSchema, attachmentCompressionVideoSchema, attachmentCompressionAudioSchema, attachmentsThumbnailSchema, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, webhooksConfigSchema, securityTlsConfigSchema, } from './config/index.js';
26
26
  export { defaultConfig, loadConfig } from './config/index.js';
27
- export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveStorageBackend, resolvePostgresConfig, resolvePostgresPassword, resolveDegradedMode, resolveStorageFallbackDir, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel, resolveMaxUploadBytes } from './config/index.js';
27
+ export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveStorageBackend, resolvePostgresConfig, resolvePostgresPassword, resolveDegradedMode, resolveStorageFallbackDir, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel, resolveMaxUploadBytes, resolveMaxReadBytes, resolveMaxPreviewBytes } from './config/index.js';
28
28
  export { applyEnvOverrides, envOverrideName, toSnakeCase, parseEnvValue, ENV_OVERRIDES } from './config/index.js';
29
29
  // ADR-077: секция `execution` — топология исполнения (переключатель запуска).
30
30
  export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, isExecutionMode, isExecutionFailMode, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';