@itphx/synth-shared 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.
Files changed (71) hide show
  1. package/dist/config/defaults.js +74 -2
  2. package/dist/config/env-overrides.d.ts +16 -0
  3. package/dist/config/env-overrides.js +103 -3
  4. package/dist/config/execution-runtime.d.ts +89 -0
  5. package/dist/config/execution-runtime.js +506 -0
  6. package/dist/config/execution.d.ts +202 -1
  7. package/dist/config/execution.js +459 -3
  8. package/dist/config/index.d.ts +2 -0
  9. package/dist/config/index.js +2 -0
  10. package/dist/config/security.d.ts +77 -0
  11. package/dist/config/security.js +116 -0
  12. package/dist/config/types.d.ts +466 -34
  13. package/dist/config/types.js +317 -33
  14. package/dist/i18n/index.d.ts +1 -1
  15. package/dist/i18n/index.js +196 -13
  16. package/dist/index.d.ts +5 -4
  17. package/dist/index.js +15 -2
  18. package/dist/schemas/index.d.ts +156 -19
  19. package/dist/schemas/index.js +126 -15
  20. package/dist/skills/frontmatter.js +1 -1
  21. package/dist/types/agent.d.ts +29 -1
  22. package/dist/types/authority.d.ts +10 -0
  23. package/dist/types/authority.js +8 -0
  24. package/dist/types/bus-events.d.ts +87 -1
  25. package/dist/types/catalog.d.ts +1 -1
  26. package/dist/types/catalog.js +1 -1
  27. package/dist/types/command-audit.d.ts +91 -0
  28. package/dist/types/command-audit.js +44 -0
  29. package/dist/types/commands.d.ts +29 -11
  30. package/dist/types/commands.js +2 -2
  31. package/dist/types/egress.d.ts +18 -3
  32. package/dist/types/egress.js +18 -3
  33. package/dist/types/events.d.ts +23 -2
  34. package/dist/types/execution.d.ts +424 -0
  35. package/dist/types/execution.js +355 -0
  36. package/dist/types/file-kind.d.ts +3 -2
  37. package/dist/types/file-kind.js +11 -2
  38. package/dist/types/git.d.ts +48 -0
  39. package/dist/types/index.d.ts +6 -0
  40. package/dist/types/index.js +18 -2
  41. package/dist/types/mentions.d.ts +96 -0
  42. package/dist/types/mentions.js +9 -0
  43. package/dist/types/message.d.ts +24 -1
  44. package/dist/types/message.js +13 -0
  45. package/dist/types/pack.d.ts +21 -21
  46. package/dist/types/pack.js +4 -4
  47. package/dist/types/permission.d.ts +8 -1
  48. package/dist/types/pipeline.d.ts +2 -2
  49. package/dist/types/plugin-protocol.d.ts +203 -4
  50. package/dist/types/plugin-protocol.js +77 -4
  51. package/dist/types/project-access.d.ts +94 -0
  52. package/dist/types/project-access.js +140 -0
  53. package/dist/types/project.d.ts +59 -2
  54. package/dist/types/project.js +20 -0
  55. package/dist/types/schedules.d.ts +49 -3
  56. package/dist/types/schedules.js +50 -1
  57. package/dist/types/scripts.d.ts +98 -0
  58. package/dist/types/scripts.js +14 -0
  59. package/dist/types/service-keys.d.ts +12 -2
  60. package/dist/types/service-keys.js +13 -0
  61. package/dist/types/session.d.ts +60 -3
  62. package/dist/types/skills.d.ts +15 -11
  63. package/dist/types/skills.js +6 -6
  64. package/dist/types/timers.d.ts +402 -0
  65. package/dist/types/timers.js +166 -0
  66. package/dist/types/tools.d.ts +124 -1
  67. package/dist/types/tools.js +22 -0
  68. package/dist/types/user.d.ts +17 -0
  69. package/dist/version.d.ts +1 -1
  70. package/dist/version.js +1 -1
  71. package/package.json +2 -2
@@ -59,11 +59,15 @@ export const ENGINE_MESSAGE_KEYS = [
59
59
  'task.steps_limit_empty',
60
60
  'task.context_budget',
61
61
  'subagent.context_budget',
62
- 'task.background_started',
63
62
  'task.background_limit',
64
63
  'task.background_disabled',
65
64
  'task.resume_foreign_child',
66
65
  'task.resume_child_busy',
66
+ // PROP-142 §1–§2: доставка сообщения идущему сабагенту и продолжение с
67
+ // новыми указаниями.
68
+ 'task.agent_switch_unsupported',
69
+ 'task.continuation_prompt_required',
70
+ 'task.delivery_rejected',
67
71
  'tool.args_error',
68
72
  'tool.exec_error',
69
73
  // Вызов инструмента без имени/идентификатора — результат всё равно должен
@@ -221,6 +225,7 @@ export const ENGINE_MESSAGE_KEYS = [
221
225
  'project.read_error',
222
226
  'project.not_found',
223
227
  'project.attached',
228
+ 'project.move_blocked',
224
229
  'project.log_no_project',
225
230
  'project.log_save_error',
226
231
  'project.log_added',
@@ -305,6 +310,7 @@ export const ENGINE_MESSAGE_KEYS = [
305
310
  'shellguard.deny_prefix',
306
311
  'shellguard.deny_path',
307
312
  'shellguard.ask_path',
313
+ 'shellguard.ask_external',
308
314
  'shellguard.ask_command',
309
315
  'shellguard.ask_code',
310
316
  'shellguard.ask_stdin_code',
@@ -328,8 +334,17 @@ export const ENGINE_MESSAGE_KEYS = [
328
334
  'router.escalation',
329
335
  'router.context_length_exceeded',
330
336
  'router.rate_limit_exceeded',
337
+ 'router.quota_exceeded',
331
338
  'router.no_user_query',
332
339
  'router.remote_auth_expired',
340
+ // --- Остановка хода: durable-запись причины (PROP-143) ---
341
+ 'stop.steps_limit',
342
+ 'stop.context_budget',
343
+ 'stop.stopped_by_user',
344
+ 'stop.denied',
345
+ 'stop.restarted',
346
+ 'stop.orphaned',
347
+ 'stop.internal',
333
348
  'qc.min_length_ok',
334
349
  'qc.min_length_fail_detail',
335
350
  'qc.min_length_fail',
@@ -359,14 +374,14 @@ export const ENGINE_MESSAGE_KEYS = [
359
374
  'micro.intent.debug',
360
375
  'micro.intent.fix',
361
376
  'micro.intent.test',
362
- // --- Скиллы (ADR-046) ---
377
+ // --- Скиллы (ADR-126) ---
363
378
  'skill.args_error',
364
379
  'skill.not_found',
365
380
  'skill.untrusted',
366
381
  'skill.delegation',
367
382
  'skill.file_not_found',
368
383
  'skill.scope_disabled',
369
- // --- Slash-команды (ADR-046 §7) ---
384
+ // --- Slash-команды (ADR-126 §1) ---
370
385
  'command.unknown',
371
386
  'command.denied',
372
387
  'command.unavailable',
@@ -375,13 +390,15 @@ export const ENGINE_MESSAGE_KEYS = [
375
390
  'command.skills_empty',
376
391
  'command.summary_enqueued',
377
392
  'command.summary_unavailable',
393
+ 'command.compact_enqueued',
394
+ 'command.compact_unavailable',
378
395
  // --- Сжатие контекста (summarization / compaction) ---
379
396
  'context.compression_empty',
380
397
  'context.compression_failed',
381
398
  'context.compression_template',
382
399
  'context.compression_output_limit',
383
400
  'context.summary_applied',
384
- // --- Inline shell (ADR-046 §7.4) ---
401
+ // --- Inline shell (ADR-126 §15) ---
385
402
  'command.inline_shell_disabled',
386
403
  'command.inline_shell_denied',
387
404
  'command.inline_shell_failed',
@@ -520,6 +537,31 @@ export const ENGINE_MESSAGE_KEYS = [
520
537
  'schedule.tool.jobs_empty',
521
538
  'schedule.tool.target_forbidden',
522
539
  'schedule.tool.not_published',
540
+ // --- Встроенные тулы таймеров и будильников (PROP-141, этап 6) ---
541
+ 'timer.tool.deps_unavailable',
542
+ 'timer.tool.no_project',
543
+ 'timer.tool.not_found',
544
+ 'timer.tool.created',
545
+ 'timer.tool.updated',
546
+ 'timer.tool.cancelled',
547
+ 'timer.tool.stopped',
548
+ 'timer.tool.already_fired',
549
+ 'timer.tool.already_stopped',
550
+ 'timer.tool.deleted',
551
+ 'timer.tool.show_header',
552
+ 'timer.tool.duplicate',
553
+ 'timer.tool.wrong_kind',
554
+ 'timer.tool.time_in_past',
555
+ 'timer.tool.not_active',
556
+ 'timer.tool.list_header',
557
+ 'timer.tool.list_empty',
558
+ 'timer.tool.invalid_comment',
559
+ 'timer.tool.invalid_interval',
560
+ 'timer.tool.invalid_time',
561
+ 'timer.tool.invalid_timezone',
562
+ 'timer.tool.invalid_horizon',
563
+ 'timer.tool.invalid_target',
564
+ 'timer.tool.limit_exceeded',
523
565
  // --- Исполнение (ADR-077) ---
524
566
  'execution.remote_url_required',
525
567
  'execution.remote_unavailable',
@@ -528,13 +570,21 @@ export const ENGINE_MESSAGE_KEYS = [
528
570
  'question.cancelled',
529
571
  'question.timeout',
530
572
  'question.deps_unavailable',
531
- 'process.background_started',
573
+ // ADR-111/ADR-113: запуск фоновой работы (процесс/саб-агент). Правило
574
+ // поведения («не опрашивай статус») — в системном блоке `background`.
575
+ 'background.started.process',
576
+ 'background.started.subagent',
577
+ // ADR-111 §detach: перевод в фон **по инициативе пользователя** — отдельные
578
+ // ключи (причина перевода отличается от агентского `background: true`);
579
+ // авто-detach из-за нового сообщения — свои ключи (`*_message`).
580
+ 'background.detached.process',
581
+ 'background.detached.subagent',
582
+ 'background.detached.process_message',
583
+ 'background.detached.subagent_message',
532
584
  'process.deps_unavailable',
533
585
  'process.background_limit',
534
586
  'process.background_unsupported',
535
587
  'process.background_disabled',
536
- // ADR-113 §detach: идущая команда переведена в фон (без перезапуска).
537
- 'process.detached_started',
538
588
  'process.tool.empty',
539
589
  'process.tool.not_found',
540
590
  'process.tool.deps_unavailable',
@@ -602,6 +652,51 @@ export const ENGINE_MESSAGE_KEYS = [
602
652
  'instance.mcp.network_denied',
603
653
  'instance.mcp.invalid_config',
604
654
  'instance.mcp.exists',
655
+ // --- Интерактивные терминалы (PROP-132, Ф5) ---
656
+ 'terminal.tool.deps_unavailable',
657
+ 'terminal.tool.disabled',
658
+ 'terminal.tool.project_required',
659
+ 'terminal.tool.empty',
660
+ 'terminal.tool.header',
661
+ 'terminal.tool.not_found',
662
+ 'terminal.tool.no_output',
663
+ 'terminal.tool.opened',
664
+ 'terminal.tool.written',
665
+ 'terminal.tool.signalled',
666
+ 'terminal.tool.closed',
667
+ 'terminal.tool.command_denied',
668
+ 'terminal.tool.command_requires_approval',
669
+ 'terminal.tool.limit',
670
+ 'terminal.tool.unavailable',
671
+ // --- Запуски команд в терминале (PROP-132, Ф5) ---
672
+ 'terminal.tool.history_empty',
673
+ 'terminal.tool.snapshot_empty',
674
+ 'terminal.tool.run_background_started',
675
+ 'terminal.tool.run_result_header',
676
+ 'terminal.tool.run_finished',
677
+ 'terminal.tool.run_timeout',
678
+ 'terminal.tool.run_exited',
679
+ 'terminal.tool.run_still_running',
680
+ 'terminal.tool.run_busy',
681
+ 'terminal.tool.foreground_app',
682
+ 'terminal.tool.foreground_busy',
683
+ 'terminal.tool.exit_code',
684
+ // --- Скрипты проекта (`!`-запуск, ADR-126 §5) ---
685
+ 'script.tool.deps_unavailable',
686
+ 'script.tool.run_hint',
687
+ 'script.tool.empty',
688
+ 'script.tool.header',
689
+ 'script.tool.audit_failed',
690
+ 'script.not_found',
691
+ 'script.untrusted',
692
+ 'script.denied',
693
+ 'script.args_not_allowed',
694
+ 'script.args_invalid',
695
+ 'script.cwd_outside',
696
+ 'script.background_disabled',
697
+ 'script.started',
698
+ 'script.plan_blocked',
699
+ 'script.gateway_unsupported',
605
700
  ];
606
701
  export const ENGINE_MESSAGE_PARAMS = {
607
702
  'session.max_iterations': [],
@@ -650,11 +745,13 @@ export const ENGINE_MESSAGE_PARAMS = {
650
745
  'task.steps_limit_empty': ["limit"],
651
746
  'task.context_budget': ["tokens", "steps", "tasks"],
652
747
  'subagent.context_budget': ["tokens", "steps"],
653
- 'task.background_started': ["id"],
654
748
  'task.background_limit': ["limit"],
655
749
  'task.background_disabled': [],
656
750
  'task.resume_foreign_child': ["id"],
657
751
  'task.resume_child_busy': ["id"],
752
+ 'task.agent_switch_unsupported': ["current", "requested"],
753
+ 'task.continuation_prompt_required': [],
754
+ 'task.delivery_rejected': ["reason"],
658
755
  'tool.args_error': ["tool", "issues"],
659
756
  'tool.exec_error': ["tool", "error"],
660
757
  'tool.malformed_call': ["tool", "id"],
@@ -797,6 +894,7 @@ export const ENGINE_MESSAGE_PARAMS = {
797
894
  'project.read_error': [],
798
895
  'project.not_found': ["id"],
799
896
  'project.attached': ["name"],
897
+ 'project.move_blocked': ["details"],
800
898
  'project.log_no_project': [],
801
899
  'project.log_save_error': ["error"],
802
900
  'project.log_added': ["count"],
@@ -881,6 +979,7 @@ export const ENGINE_MESSAGE_PARAMS = {
881
979
  'shellguard.deny_prefix': ["prefix"],
882
980
  'shellguard.deny_path': ["path"],
883
981
  'shellguard.ask_path': ["path"],
982
+ 'shellguard.ask_external': ["path"],
884
983
  'shellguard.ask_command': ["command"],
885
984
  'shellguard.ask_code': ["code"],
886
985
  'shellguard.ask_stdin_code': [],
@@ -904,8 +1003,16 @@ export const ENGINE_MESSAGE_PARAMS = {
904
1003
  'router.escalation': ["provider", "model", "reason"],
905
1004
  'router.context_length_exceeded': [],
906
1005
  'router.rate_limit_exceeded': [],
1006
+ 'router.quota_exceeded': [],
907
1007
  'router.no_user_query': [],
908
1008
  'router.remote_auth_expired': [],
1009
+ 'stop.steps_limit': ["limit"],
1010
+ 'stop.context_budget': ["tokens", "steps"],
1011
+ 'stop.stopped_by_user': [],
1012
+ 'stop.denied': [],
1013
+ 'stop.restarted': [],
1014
+ 'stop.orphaned': [],
1015
+ 'stop.internal': [],
909
1016
  'qc.min_length_ok': ["length", "min"],
910
1017
  'qc.min_length_fail_detail': ["min", "length"],
911
1018
  'qc.min_length_fail': ["min"],
@@ -935,14 +1042,14 @@ export const ENGINE_MESSAGE_PARAMS = {
935
1042
  'micro.intent.debug': [],
936
1043
  'micro.intent.fix': [],
937
1044
  'micro.intent.test': [],
938
- // --- Скиллы (ADR-046) ---
1045
+ // --- Скиллы (ADR-126) ---
939
1046
  'skill.args_error': ["issues"],
940
1047
  'skill.not_found': ["name"],
941
1048
  'skill.untrusted': ["name"],
942
1049
  'skill.delegation': ["name", "capabilities", "agent"],
943
1050
  'skill.file_not_found': ["path"],
944
1051
  'skill.scope_disabled': ["name", "reason"],
945
- // --- Slash-команды (ADR-046 §7) ---
1052
+ // --- Slash-команды (ADR-126 §1) ---
946
1053
  'command.unknown': ["name"],
947
1054
  'command.denied': ["name"],
948
1055
  'command.unavailable': ["name", "capabilities"],
@@ -951,13 +1058,15 @@ export const ENGINE_MESSAGE_PARAMS = {
951
1058
  'command.skills_empty': [],
952
1059
  'command.summary_enqueued': [],
953
1060
  'command.summary_unavailable': [],
1061
+ 'command.compact_enqueued': [],
1062
+ 'command.compact_unavailable': [],
954
1063
  // --- Сжатие контекста (summarization / compaction) ---
955
1064
  'context.compression_empty': [],
956
1065
  'context.compression_failed': ["mode", "reason"],
957
1066
  'context.compression_template': [],
958
1067
  'context.compression_output_limit': [],
959
1068
  'context.summary_applied': ["mode"],
960
- // --- Inline shell (ADR-046 §7.4) ---
1069
+ // --- Inline shell (ADR-126 §15) ---
961
1070
  'command.inline_shell_disabled': [],
962
1071
  'command.inline_shell_denied': ["command", "reason"],
963
1072
  'command.inline_shell_failed': ["output"],
@@ -1095,6 +1204,31 @@ export const ENGINE_MESSAGE_PARAMS = {
1095
1204
  'schedule.tool.jobs_empty': [],
1096
1205
  'schedule.tool.target_forbidden': ["reason"],
1097
1206
  'schedule.tool.not_published': ["id"],
1207
+ // --- Встроенные тулы таймеров и будильников (PROP-141, этап 6) ---
1208
+ 'timer.tool.deps_unavailable': [],
1209
+ 'timer.tool.no_project': [],
1210
+ 'timer.tool.not_found': ["noun", "id"],
1211
+ 'timer.tool.created': ["noun", "id", "fires_at"],
1212
+ 'timer.tool.updated': ["noun", "id"],
1213
+ 'timer.tool.cancelled': ["id"],
1214
+ 'timer.tool.stopped': ["noun", "id"],
1215
+ 'timer.tool.already_fired': ["noun", "id"],
1216
+ 'timer.tool.already_stopped': ["noun", "id"],
1217
+ 'timer.tool.deleted': ["noun", "id"],
1218
+ 'timer.tool.show_header': ["id"],
1219
+ 'timer.tool.duplicate': ["noun", "id"],
1220
+ 'timer.tool.wrong_kind': ["id", "actual", "expected"],
1221
+ 'timer.tool.time_in_past': [],
1222
+ 'timer.tool.not_active': [],
1223
+ 'timer.tool.list_header': ["count"],
1224
+ 'timer.tool.list_empty': [],
1225
+ 'timer.tool.invalid_comment': [],
1226
+ 'timer.tool.invalid_interval': ["field"],
1227
+ 'timer.tool.invalid_time': ["field"],
1228
+ 'timer.tool.invalid_timezone': ["field"],
1229
+ 'timer.tool.invalid_horizon': ["field"],
1230
+ 'timer.tool.invalid_target': ["field"],
1231
+ 'timer.tool.limit_exceeded': ["limit"],
1098
1232
  // --- Исполнение (ADR-077) ---
1099
1233
  'execution.remote_url_required': [],
1100
1234
  'execution.remote_unavailable': ["reason"],
@@ -1103,12 +1237,16 @@ export const ENGINE_MESSAGE_PARAMS = {
1103
1237
  'question.cancelled': ["reason"],
1104
1238
  'question.timeout': [],
1105
1239
  'question.deps_unavailable': [],
1106
- 'process.background_started': ["id", "log"],
1240
+ 'background.started.process': ["id", "log"],
1241
+ 'background.started.subagent': ["id"],
1242
+ 'background.detached.process': ["id", "log"],
1243
+ 'background.detached.subagent': ["id"],
1244
+ 'background.detached.process_message': ["id", "log"],
1245
+ 'background.detached.subagent_message': ["id"],
1107
1246
  'process.deps_unavailable': [],
1108
1247
  'process.background_limit': ["limit"],
1109
1248
  'process.background_unsupported': [],
1110
1249
  'process.background_disabled': [],
1111
- 'process.detached_started': ["id", "log"],
1112
1250
  'process.tool.empty': [],
1113
1251
  'process.tool.not_found': ["id"],
1114
1252
  'process.tool.deps_unavailable': [],
@@ -1169,6 +1307,51 @@ export const ENGINE_MESSAGE_PARAMS = {
1169
1307
  'instance.mcp.network_denied': ["url", "reason"],
1170
1308
  'instance.mcp.invalid_config': ["error"],
1171
1309
  'instance.mcp.exists': ["name"],
1310
+ // --- Интерактивные терминалы (PROP-132, Ф5) ---
1311
+ 'terminal.tool.deps_unavailable': [],
1312
+ 'terminal.tool.disabled': [],
1313
+ 'terminal.tool.project_required': [],
1314
+ 'terminal.tool.empty': [],
1315
+ 'terminal.tool.header': ["count"],
1316
+ 'terminal.tool.not_found': ["id"],
1317
+ 'terminal.tool.no_output': [],
1318
+ 'terminal.tool.opened': ["id"],
1319
+ 'terminal.tool.written': ["id"],
1320
+ 'terminal.tool.signalled': ["terminal_id", "signal"],
1321
+ 'terminal.tool.closed': ["id"],
1322
+ 'terminal.tool.command_denied': ["reason"],
1323
+ 'terminal.tool.command_requires_approval': ["reason"],
1324
+ 'terminal.tool.limit': ["limit"],
1325
+ 'terminal.tool.unavailable': ["reason"],
1326
+ // --- Запуски команд в терминале (PROP-132, Ф5) ---
1327
+ 'terminal.tool.history_empty': [],
1328
+ 'terminal.tool.snapshot_empty': [],
1329
+ 'terminal.tool.run_background_started': ["run_id"],
1330
+ 'terminal.tool.run_result_header': ["run_id", "status"],
1331
+ 'terminal.tool.run_finished': ["terminal_id", "exit_code"],
1332
+ 'terminal.tool.run_timeout': ["terminal_id", "timeout"],
1333
+ 'terminal.tool.run_exited': ["terminal_id"],
1334
+ 'terminal.tool.run_still_running': ["run_id", "terminal_id"],
1335
+ 'terminal.tool.run_busy': ["terminal_id"],
1336
+ 'terminal.tool.foreground_app': [],
1337
+ 'terminal.tool.foreground_busy': ["terminal_id", "command"],
1338
+ 'terminal.tool.exit_code': ["exit_code"],
1339
+ // --- Скрипты проекта (`!`-запуск, ADR-126 §5) ---
1340
+ 'script.tool.deps_unavailable': [],
1341
+ 'script.tool.run_hint': [],
1342
+ 'script.tool.empty': [],
1343
+ 'script.tool.header': ["count"],
1344
+ 'script.tool.audit_failed': ["reason"],
1345
+ 'script.not_found': ["name"],
1346
+ 'script.untrusted': ["name"],
1347
+ 'script.denied': ["name"],
1348
+ 'script.args_not_allowed': ["name"],
1349
+ 'script.args_invalid': ["name"],
1350
+ 'script.cwd_outside': ["name"],
1351
+ 'script.background_disabled': ["name"],
1352
+ 'script.started': ["name", "run"],
1353
+ 'script.plan_blocked': [],
1354
+ 'script.gateway_unsupported': [],
1172
1355
  };
1173
1356
  /** Достаёт имена {param}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
1174
1357
  export function extractParams(template) {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './types/index.js';
2
2
  export * from './i18n/index.js';
3
- export { type ToolDefinition, type ToolForLLM, type ToolContext, type ToolResult, type ToolAttachmentRef, type ToolExecutor, type PendingToolCall, type CompletedToolCall, ToolCapability, TOOL_CAPABILITY_META, } from './types/tools.js';
3
+ export { type ToolDefinition, type ToolForLLM, type ToolContext, type ToolResult, type ToolAttachmentRef, type ToolExecutor, type PendingToolCall, type CompletedToolCall, type PluginRuntime, type PluginRuntimeExecOptions, type PluginRuntimeExecResult, type PluginRuntimeFs, ToolCapability, TOOL_CAPABILITY_META, } from './types/tools.js';
4
4
  export * from './interfaces/index.js';
5
5
  export * from './schemas/index.js';
6
6
  export * from './protocols/index.js';
@@ -18,13 +18,14 @@ 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, 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 UpdatesConfig, updatesConfigSchema, UPDATE_CHANNEL_CHOICES, type UpdateChannelChoiceSetting, 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 ScriptsConfig, scriptsConfigSchema, 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 UpdatesConfig, updatesConfigSchema, UPDATE_CHANNEL_CHOICES, type UpdateChannelChoiceSetting, type WebhooksConfig, webhooksConfigSchema, type RemoteConfig, type MicroFirstConfig, type SecurityConfig, securityTlsConfigSchema, type SecurityTlsConfig, type CommandAuditConfig, commandAuditConfigSchema, type CommandPolicyConfig, commandPolicyConfigSchema, type CommandPolicyProviderName, type CommandPolicyFailMode, COMMAND_POLICY_PROVIDERS, COMMAND_POLICY_FAIL_MODES, type PromptInjectionConfig, type ProtectedPathsConfig, type LLMGatewayConfig, type LLMGatewayRateLimitConfig, type LLMGatewayAuditConfig, } from './config/index.js';
22
22
  export { defaultConfig, loadConfig, redactConfigSecrets } from './config/index.js';
23
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
- export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, isExecutionMode, isExecutionFailMode, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
27
- export type { ExecutionConfig, ExecutionRemoteConfig, ExecutionMode, ExecutionFailMode, ResolvedExecutionConfig, ResolvedExecutionRemoteConfig, ExecutionCliOverride, } from './config/index.js';
26
+ export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, normalizeProfileNameList, resolveBrowserProfileNames, resolveExecutionProfileNames, effectiveProfileClass, isExecutionMode, isExecutionFailMode, isExecutionPooling, isExecutionFallback, isExecutionPoolProvider, EXECUTION_PROFILE_NETWORKS, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
27
+ export type { ExecutionConfig, ExecutionRemoteConfig, ExecutionMode, ExecutionFailMode, ExecutionPooling, ExecutionFallback, ExecutionPoolProviderKind, ExecutionProfileNetwork, ExecutionProfileResourceList, ExecutionProfileResources, ResolvedExecutionConfig, ResolvedExecutionRemoteConfig, ResolvedExecutionProfile, ResolvedExecutionProvisioner, ExecutionCliOverride, } from './config/index.js';
28
+ export { applyExecutionRuntimeSettings, parseExecutionRuntimeSettings, executionRuntimeSettingsFromResolved, mergeExecutionRuntimeSettings, effectiveExecutionProfileNames, effectiveExecutionCatalog, executionRuntimeFingerprint, } from './config/index.js';
28
29
  export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, isPemContent, TLS_ENV, } from './config/index.js';
29
30
  export type { ResolvedTlsConfig, ResolvedTlsTrust, ResolvedTlsProfiles, TlsClientProfile, TlsClientMaterial, TlsMappingSettings, TlsRuntimeSettings, TlsSource, TlsConfigSource, } from './config/index.js';
30
31
  export { TLS_RUNTIME_FILENAME, TLS_SECRETS_SUBDIR, TLS_MATERIAL_NAMES, tlsRuntimePath, tlsSecretsDir, tlsSecretFilePath, tlsMappingFileName, readTlsRuntimeSettings, writeTlsRuntimeSettings, writeTlsSecretFile, readTlsSecretFile, validateTlsRuntimeSettings, validateCaPem, validateClientPem, isValidHostPattern, assertCertMatchesKey, certificateSubjectFromPem, certificateSubjectFromFile, certificateSubjectsFromPem, countCertificates, } from './config/index.js';
package/dist/index.js CHANGED
@@ -22,12 +22,25 @@ 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, CONTEXT_WINDOW_POLICIES, mcpServerAuthSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, pluginsConfigSchema, attachmentsConfigSchema, attachmentsCompressionSchema, attachmentCompressionImageSchema, attachmentCompressionVideoSchema, attachmentCompressionAudioSchema, attachmentsThumbnailSchema, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, updatesConfigSchema, UPDATE_CHANNEL_CHOICES, webhooksConfigSchema, securityTlsConfigSchema, } from './config/index.js';
25
+ export { postgresStorageConfigSchema, CONTEXT_WINDOW_POLICIES, mcpServerAuthSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, scriptsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, pluginsConfigSchema, attachmentsConfigSchema, attachmentsCompressionSchema, attachmentCompressionImageSchema, attachmentCompressionVideoSchema, attachmentCompressionAudioSchema, attachmentsThumbnailSchema, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, updatesConfigSchema, UPDATE_CHANNEL_CHOICES, webhooksConfigSchema, securityTlsConfigSchema, commandAuditConfigSchema, commandPolicyConfigSchema, COMMAND_POLICY_PROVIDERS, COMMAND_POLICY_FAIL_MODES, } from './config/index.js';
26
26
  export { defaultConfig, loadConfig, redactConfigSecrets } from './config/index.js';
27
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
- export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, isExecutionMode, isExecutionFailMode, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
30
+ export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList,
31
+ // PROP-135 (браузерный контур): каталоги профилей (exec — без браузерных).
32
+ normalizeProfileNameList, resolveBrowserProfileNames, resolveExecutionProfileNames,
33
+ // ADR-135 (аддендум §11): эффективный класс профиля (exec|browser|both).
34
+ effectiveProfileClass, isExecutionMode, isExecutionFailMode,
35
+ // PROP-135 Ф4a: пулы и профили исполнения.
36
+ isExecutionPooling, isExecutionFallback,
37
+ // PROP-135 Ф4b-1: провайдер пулов исполнения.
38
+ isExecutionPoolProvider,
39
+ // PROP-135: метаданные профилей исполнения (description/image/network/…).
40
+ EXECUTION_PROFILE_NETWORKS, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
41
+ // ADR-135: runtime-каталог профилей исполнения (admin-owned runtime-секция:
42
+ // `/api/v2/settings/execution`). Приоритет env/CLI > runtime > config.yaml.
43
+ export { applyExecutionRuntimeSettings, parseExecutionRuntimeSettings, executionRuntimeSettingsFromResolved, mergeExecutionRuntimeSettings, effectiveExecutionProfileNames, effectiveExecutionCatalog, executionRuntimeFingerprint, } from './config/index.js';
31
44
  // ADR-099: резолверы доверия TLS/CA (`security.tls`).
32
45
  export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, isPemContent, TLS_ENV, } from './config/index.js';
33
46
  // ADR-099: bootstrap-хранилище runtime-настроек TLS ({dataDir}/security-tls.json).