@itphx/synth-shared 0.10.1 → 0.12.3

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 (104) hide show
  1. package/dist/config/defaults.js +172 -3
  2. package/dist/config/env-overrides.d.ts +33 -1
  3. package/dist/config/env-overrides.js +191 -5
  4. package/dist/config/execution.d.ts +66 -0
  5. package/dist/config/execution.js +146 -0
  6. package/dist/config/index.d.ts +4 -0
  7. package/dist/config/index.js +4 -0
  8. package/dist/config/loader.js +19 -0
  9. package/dist/config/proxy.d.ts +415 -0
  10. package/dist/config/proxy.js +1567 -0
  11. package/dist/config/resolve.d.ts +67 -0
  12. package/dist/config/resolve.js +187 -1
  13. package/dist/config/tls-runtime.d.ts +78 -0
  14. package/dist/config/tls-runtime.js +356 -0
  15. package/dist/config/tls.d.ts +215 -0
  16. package/dist/config/tls.js +394 -0
  17. package/dist/config/types.d.ts +1571 -2835
  18. package/dist/config/types.js +717 -58
  19. package/dist/i18n/index.d.ts +1 -1
  20. package/dist/i18n/index.js +279 -0
  21. package/dist/index.d.ts +24 -3
  22. package/dist/index.js +25 -2
  23. package/dist/model-metadata.d.ts +10 -0
  24. package/dist/protocols/index.d.ts +0 -1
  25. package/dist/schemas/index.d.ts +1014 -2231
  26. package/dist/schemas/index.js +222 -14
  27. package/dist/types/analytics.d.ts +113 -0
  28. package/dist/types/analytics.js +61 -0
  29. package/dist/types/authority.d.ts +464 -0
  30. package/dist/types/authority.js +445 -0
  31. package/dist/types/background.d.ts +96 -0
  32. package/dist/types/background.js +24 -0
  33. package/dist/types/bus-events.d.ts +23 -1
  34. package/dist/types/catalog.d.ts +349 -0
  35. package/dist/types/catalog.js +393 -0
  36. package/dist/types/decision.d.ts +28 -337
  37. package/dist/types/egress.d.ts +114 -0
  38. package/dist/types/egress.js +68 -0
  39. package/dist/types/events.d.ts +54 -2
  40. package/dist/types/external-credentials.d.ts +352 -0
  41. package/dist/types/external-credentials.js +200 -0
  42. package/dist/types/fs.d.ts +11 -0
  43. package/dist/types/fs.js +11 -0
  44. package/dist/types/hooks.d.ts +50 -9
  45. package/dist/types/index.d.ts +23 -0
  46. package/dist/types/index.js +55 -0
  47. package/dist/types/llm-filters.d.ts +150 -0
  48. package/dist/types/llm-filters.js +54 -0
  49. package/dist/types/maintenance.d.ts +39 -0
  50. package/dist/types/maintenance.js +11 -0
  51. package/dist/types/mcp.d.ts +101 -5
  52. package/dist/types/mcp.js +127 -5
  53. package/dist/types/message.d.ts +45 -1
  54. package/dist/types/pack.d.ts +1102 -0
  55. package/dist/types/pack.js +1003 -0
  56. package/dist/types/permission.d.ts +31 -15
  57. package/dist/types/permission.js +1 -1
  58. package/dist/types/pipeline-engine.d.ts +453 -0
  59. package/dist/types/pipeline-engine.js +440 -0
  60. package/dist/types/pipeline.d.ts +275 -0
  61. package/dist/types/pipeline.js +212 -0
  62. package/dist/types/plugin-audit.d.ts +110 -0
  63. package/dist/types/plugin-audit.js +185 -0
  64. package/dist/types/plugin-hybrid.d.ts +85 -0
  65. package/dist/types/plugin-hybrid.js +68 -0
  66. package/dist/types/plugin-lock.d.ts +95 -0
  67. package/dist/types/plugin-lock.js +1 -0
  68. package/dist/types/plugin-protocol.d.ts +221 -0
  69. package/dist/types/plugin-protocol.js +322 -0
  70. package/dist/types/plugin-runtime.d.ts +25 -0
  71. package/dist/types/plugin-runtime.js +11 -0
  72. package/dist/types/plugin-scan.d.ts +159 -0
  73. package/dist/types/plugin-scan.js +166 -0
  74. package/dist/types/plugin-tools.d.ts +51 -0
  75. package/dist/types/plugin-tools.js +72 -0
  76. package/dist/types/project.d.ts +14 -0
  77. package/dist/types/prompt-blocks.d.ts +102 -0
  78. package/dist/types/prompt-blocks.js +24 -0
  79. package/dist/types/prompt.d.ts +47 -4
  80. package/dist/types/provider.d.ts +11 -0
  81. package/dist/types/question.d.ts +153 -0
  82. package/dist/types/question.js +65 -0
  83. package/dist/types/schedules.d.ts +26 -3
  84. package/dist/types/semver.d.ts +48 -0
  85. package/dist/types/semver.js +218 -0
  86. package/dist/types/service-keys.d.ts +41 -3
  87. package/dist/types/service-keys.js +44 -2
  88. package/dist/types/session.d.ts +54 -1
  89. package/dist/types/steering.d.ts +74 -0
  90. package/dist/types/steering.js +75 -0
  91. package/dist/types/tools.d.ts +125 -5
  92. package/dist/types/tools.js +75 -0
  93. package/dist/types/trust.d.ts +31 -0
  94. package/dist/types/trust.js +27 -0
  95. package/dist/types/webhooks.d.ts +1 -1
  96. package/dist/types/worktree.d.ts +170 -0
  97. package/dist/types/worktree.js +101 -0
  98. package/dist/utils/index.d.ts +46 -1
  99. package/dist/utils/index.js +145 -12
  100. package/dist/utils/reasoning.d.ts +16 -0
  101. package/dist/utils/reasoning.js +37 -0
  102. package/dist/version.d.ts +1 -1
  103. package/dist/version.js +1 -1
  104. package/package.json +2 -2
@@ -11,7 +11,7 @@
11
11
  * - `ENGINE_MESSAGE_PARAMS` — для каждого ключа имена {param}-плейсхолдеров en-шаблона.
12
12
  * - `extractParams` — утилита извлечения плейсхолдеров (без логики движка).
13
13
  */
14
- export declare const ENGINE_MESSAGE_KEYS: readonly ["session.max_iterations", "session.stopped", "session.stopped_reason_denied", "session.denied_blocked", "session.empty_response", "session.dialog_title", "session.default_title", "session.reference_label", "session.reference_link", "session.retry_cancelled", "session.subtask_title", "task.stopped_by_user", "task.stopped_before_completion", "task.stopped_by_deny", "task.empty_response", "task.subagent_exec_error", "task.subagent_not_found", "task.subagent_not_allowed", "task.deps_unavailable", "task.subagent_exec_error_after_retries", "task.resume_marker", "task.resume_result", "task.resume_failed", "task.resume_aborted", "task.resume_session_not_found", "task.resume_no_parent", "task.resume_parent_not_found", "task.resume_locked", "task.resume_agent_not_found", "task.resume_provider_unavailable", "tool.args_error", "tool.exec_error", "tool.not_found", "tool.permission_denied_default", "tool.doom_loop", "tool.empty_output", "tool.output_truncated", "tool.shell_error", "tool.command_failed_default", "tool.aborted", "tool.binary_missing", "fs.file_written", "fs.file_edited", "fs.replace_not_found", "fs.replace_multiple", "fs.dir_created", "fs.file_deleted", "fsread.empty_directory", "fsread.no_files", "fsread.glob_error", "web.duckduckgo_blocked", "web.search_failed", "web.search_results", "web.fetch_args_url_required", "web.js_framework_warning", "web.low_content_warning", "web.content_truncated", "web.block_timeout", "web.block_error", "web.fetch_all_failed", "web.no_results", "web.search_error", "web.ssrf_blocked", "web.too_many_redirects", "search.no_matches", "search.matches_truncated", "search.rg_not_installed", "search.error", "plan.enter_success", "plan.exit_success", "plan.session_manager_unavailable", "plan.enter_failed", "plan.exit_failed", "plan.project_store_unavailable", "plan.no_project", "plan.no_project_read", "plan.column_not_found", "plan.item_not_found", "plan.save_error", "plan.markdown_title", "plan.markdown_empty", "plan.markdown_column_empty", "plan.markdown_dependencies", "plan.default_column_backlog", "plan.default_column_todo", "plan.default_column_in_progress", "plan.default_column_done", "todo.save_error", "todo.read_error", "todo.list_empty", "todo.list", "todo.item_not_found", "todo.items_not_found", "todo.status_pending", "todo.status_in_progress", "todo.status_completed", "todo.status_cancelled", "todo.priority_high", "todo.priority_medium", "todo.priority_low", "project.deps_unavailable", "project.session_read_error", "project.session_not_found", "project.save_error", "project.workspace_create_error", "project.created", "project.read_error", "project.not_found", "project.attached", "project.log_no_project", "project.log_save_error", "project.log_added", "project.log_empty", "project.log_list", "project.invariants_no_project", "project.invariants_empty", "project.invariants_saved", "project.invariants_save_error", "project.write_forbidden", "project.updated", "project.updated_ok", "project.invalid_icon", "project.invalid_color", "project.no_project", "project.workspace_set", "project.workspace_invalid", "project.workspace_denied", "project.workspace_confirm_required", "project.workspace_missing", "project.repo_cloned", "project.repo_initialized", "project.repo_registered", "project.repo_fetched", "project.repo_removed", "project.repo_not_found", "projectctx.info_title", "projectctx.info_id", "projectctx.info_workspace", "projectctx.info_description", "projectctx.not_found", "projectctx.missing", "projectctx.working_dir", "projectctx.no_plan_hint", "projectctx.git_section", "projectctx.repo_branch", "projectctx.repo_remote", "projectctx.repo_state", "projectctx.repo_state_dirty", "projectctx.repo_state_clean", "projectctx.repo_last_commit", "projectctx.repos_title", "projectctx.repo_not_found", "projectctx.repos_none", "projectctx.repos_found", "projectctx.repo_destination", "projectctx.repo_name", "projectctx.repo_url", "projectctx.repo_type", "projectctx.repo_default_branch", "projectctx.repo_ssh_key", "projectctx.repo_last_fetch", "tool.classified", "reference.session_manager_unavailable", "reference.session_not_found", "reference.no_messages", "reference.session_title", "permission.yolo_auto_approved", "permission.plan_write_blocked", "permission.plan_source_mode", "permission.plan_source_strict", "permission.plan_shell_denied", "permission.mcp_unavailable", "permission.dep_unavailable", "permission.workspace_unavailable", "permission.external_directory_default", "permission.no_rules", "permission.rule_matched", "permission.rule_pattern_matched", "permission.rule_prefix_matched", "permission.rule_command_matched", "permission.ask_timeout", "permission.ask_no_subscribers", "permission.ask_denied", "shellguard.allow_default", "shellguard.deny_prefix", "shellguard.deny_path", "shellguard.ask_path", "shellguard.deny_dir", "protectedpaths.unresolvable", "protectedpaths.dynamic", "protectedpaths.allow_default", "security.warn_prefix", "security.injection_blocked", "gateway.input_blocked", "gateway.rate_limit_warning", "gateway.output_secrets_reason", "router.timeout", "router.network_error", "router.provider_not_found", "router.provider_unspecified", "router.escalation", "router.context_length_exceeded", "router.rate_limit_exceeded", "router.no_user_query", "qc.min_length_ok", "qc.min_length_fail_detail", "qc.min_length_fail", "qc.constraint_empty", "qc.constraint_parse_error", "qc.constraint_ok", "qc.self_check_skipped", "qc.self_check_unparsed", "qc.self_check_low", "qc.self_check_low_reason", "qc.self_check_ok", "qc.self_check_error", "qc.all_passed", "micro.greeting", "micro.farewell", "micro.thanks", "micro.enum.yes", "micro.enum.no", "micro.enum.approve", "micro.enum.reject", "micro.enum.mode_plan", "micro.enum.mode_act", "micro.intent.question", "micro.intent.command", "micro.intent.review", "micro.intent.explain", "micro.intent.debug", "micro.intent.fix", "micro.intent.test", "skill.args_error", "skill.not_found", "skill.untrusted", "skill.delegation", "skill.file_not_found", "skill.scope_disabled", "command.unknown", "command.denied", "command.unavailable", "command.help", "command.list_empty", "command.skills_empty", "command.summary_enqueued", "command.summary_unavailable", "command.inline_shell_disabled", "command.inline_shell_denied", "command.inline_shell_failed", "command.inline_shell_truncated", "command.inline_shell_unavailable", "sshkey.not_found", "sshkey.name_exists", "sshkey.encryption_unavailable", "sshkey.decrypt_failed", "sshkey.env_failed", "git.ssh_key_required", "git.repo_path_invalid", "git.repo_exists", "event.ingested", "event.routed.bound", "event.routed.ephemeral", "event.routed.queue", "event.routed.drop", "event.binding.not_found", "event.source_not_allowed", "event.duplicate", "hook.blocked", "profile.deps_unavailable", "profile.session_read_error", "profile.session_not_found", "profile.user_unavailable", "profile.save_error", "profile.updated"];
14
+ export declare const ENGINE_MESSAGE_KEYS: readonly ["session.max_iterations", "session.stopped", "session.stopped_reason_denied", "session.denied_blocked", "session.role_tool_blocked", "session.empty_response", "session.dialog_title", "session.default_title", "session.reference_label", "session.reference_link", "session.retry_cancelled", "session.subtask_title", "task.stopped_by_user", "task.stopped_before_completion", "task.stopped_by_deny", "task.empty_response", "task.subagent_exec_error", "task.subagent_not_found", "task.subagent_not_allowed", "task.deps_unavailable", "task.model_unavailable", "task.subagent_exec_error_after_retries", "task.resume_marker", "task.resume_result", "task.resume_failed", "task.resume_aborted", "task.resume_session_not_found", "task.resume_no_parent", "task.resume_parent_not_found", "task.resume_locked", "task.resume_agent_not_found", "task.resume_provider_unavailable", "task.steps_limit", "task.steps_limit_empty", "task.background_started", "task.background_limit", "task.background_disabled", "task.resume_foreign_child", "task.resume_child_busy", "tool.args_error", "tool.exec_error", "tool.not_found", "tool.permission_denied_default", "tool.doom_loop", "tool.empty_output", "tool.output_truncated", "tool.shell_error", "tool.shell_timeout", "tool.command_failed_default", "tool.aborted", "tool.binary_missing", "fs.file_written", "fs.file_edited", "fs.replace_not_found", "fs.replace_multiple", "fs.dir_created", "fs.file_deleted", "fsread.empty_directory", "fsread.no_files", "fsread.glob_error", "web.duckduckgo_blocked", "web.search_failed", "web.search_results", "web.fetch_args_url_required", "web.js_framework_warning", "web.low_content_warning", "web.content_truncated", "web.block_timeout", "web.block_error", "web.fetch_all_failed", "web.no_results", "web.search_error", "web.ssrf_blocked", "web.too_many_redirects", "search.no_matches", "search.matches_truncated", "search.rg_not_installed", "search.error", "plan.enter_success", "plan.exit_success", "plan.session_manager_unavailable", "plan.enter_failed", "plan.exit_failed", "plan.project_store_unavailable", "plan.no_project", "plan.no_project_read", "plan.column_not_found", "plan.item_not_found", "plan.save_error", "plan.markdown_title", "plan.markdown_empty", "plan.markdown_column_empty", "plan.markdown_dependencies", "plan.default_column_backlog", "plan.default_column_todo", "plan.default_column_in_progress", "plan.default_column_done", "todo.save_error", "todo.read_error", "todo.list_empty", "todo.list", "todo.item_not_found", "todo.items_not_found", "todo.status_pending", "todo.status_in_progress", "todo.status_completed", "todo.status_cancelled", "todo.priority_high", "todo.priority_medium", "todo.priority_low", "project.deps_unavailable", "project.session_read_error", "project.session_not_found", "project.save_error", "project.workspace_create_error", "project.created", "project.read_error", "project.not_found", "project.attached", "project.log_no_project", "project.log_save_error", "project.log_added", "project.log_empty", "project.log_list", "project.invariants_no_project", "project.invariants_empty", "project.invariants_saved", "project.invariants_save_error", "project.write_forbidden", "project.updated", "project.updated_ok", "project.invalid_icon", "project.invalid_color", "project.no_project", "project.workspace_set", "project.workspace_invalid", "project.workspace_denied", "project.workspace_confirm_required", "project.workspace_missing", "project.repo_cloned", "project.repo_initialized", "project.repo_registered", "project.repo_fetched", "project.repo_removed", "project.repo_not_found", "projectctx.info_title", "projectctx.info_id", "projectctx.info_workspace", "projectctx.info_description", "projectctx.not_found", "projectctx.missing", "projectctx.working_dir", "projectctx.no_plan_hint", "projectctx.git_section", "projectctx.repo_branch", "projectctx.repo_remote", "projectctx.repo_state", "projectctx.repo_state_dirty", "projectctx.repo_state_clean", "projectctx.repo_last_commit", "projectctx.repos_title", "projectctx.repo_not_found", "projectctx.repos_none", "projectctx.repos_found", "projectctx.repo_destination", "projectctx.repo_name", "projectctx.repo_url", "projectctx.repo_type", "projectctx.repo_default_branch", "projectctx.repo_ssh_key", "projectctx.repo_last_fetch", "tool.classified", "reference.session_manager_unavailable", "reference.session_not_found", "reference.no_messages", "reference.session_title", "permission.yolo_auto_approved", "permission.plan_write_blocked", "permission.plan_source_mode", "permission.plan_source_strict", "permission.plan_shell_denied", "permission.mcp_unavailable", "permission.dep_unavailable", "permission.workspace_unavailable", "permission.storage_unavailable", "permission.external_directory_default", "permission.no_rules", "permission.rule_matched", "permission.rule_pattern_matched", "permission.rule_prefix_matched", "permission.rule_command_matched", "permission.ask_timeout", "permission.ask_no_subscribers", "permission.ask_denied", "permission.authority_denied_unknown", "permission.authority_denied_explicit", "permission.authority_denied_no_grant", "permission.authority_ask", "shellguard.allow_default", "shellguard.deny_prefix", "shellguard.deny_path", "shellguard.ask_path", "shellguard.deny_dir", "protectedpaths.unresolvable", "protectedpaths.dynamic", "protectedpaths.allow_default", "security.warn_prefix", "security.injection_blocked", "gateway.input_blocked", "gateway.rate_limit_warning", "gateway.output_secrets_reason", "gateway.filter_denied", "gateway.filter_unavailable", "router.timeout", "router.network_error", "router.provider_not_found", "router.provider_unspecified", "router.escalation", "router.context_length_exceeded", "router.rate_limit_exceeded", "router.no_user_query", "qc.min_length_ok", "qc.min_length_fail_detail", "qc.min_length_fail", "qc.constraint_empty", "qc.constraint_parse_error", "qc.constraint_ok", "qc.self_check_skipped", "qc.self_check_unparsed", "qc.self_check_low", "qc.self_check_low_reason", "qc.self_check_ok", "qc.self_check_error", "qc.all_passed", "micro.greeting", "micro.farewell", "micro.thanks", "micro.enum.yes", "micro.enum.no", "micro.enum.approve", "micro.enum.reject", "micro.enum.mode_plan", "micro.enum.mode_act", "micro.intent.question", "micro.intent.command", "micro.intent.review", "micro.intent.explain", "micro.intent.debug", "micro.intent.fix", "micro.intent.test", "skill.args_error", "skill.not_found", "skill.untrusted", "skill.delegation", "skill.file_not_found", "skill.scope_disabled", "command.unknown", "command.denied", "command.unavailable", "command.help", "command.list_empty", "command.skills_empty", "command.summary_enqueued", "command.summary_unavailable", "command.inline_shell_disabled", "command.inline_shell_denied", "command.inline_shell_failed", "command.inline_shell_truncated", "command.inline_shell_unavailable", "sshkey.not_found", "sshkey.name_exists", "sshkey.encryption_unavailable", "sshkey.decrypt_failed", "sshkey.env_failed", "git.ssh_key_required", "git.repo_path_invalid", "git.repo_exists", "worktree.directory_missing", "worktree.tool.deps_unavailable", "worktree.tool.no_project", "worktree.tool.list_empty", "worktree.tool.list_header", "worktree.tool.list_row", "worktree.tool.created", "worktree.tool.removed", "worktree.tool.pruned", "worktree.tool.force_required", "worktree.tool.busy", "worktree.tool.not_found", "event.ingested", "event.routed.bound", "event.routed.ephemeral", "event.routed.queue", "event.routed.drop", "event.binding.not_found", "event.source_not_allowed", "event.duplicate", "hook.blocked", "steer.injected", "steer.limit_exceeded", "steer.interrupted", "profile.deps_unavailable", "profile.session_read_error", "profile.session_not_found", "profile.user_unavailable", "profile.save_error", "profile.updated", "pipeline.not_found", "pipeline.not_published", "pipeline.invalid_spec", "pipeline.loop_limit", "pipeline.cancelled", "pipeline.executor_missing", "pipeline.gate_rejected", "pipeline.gate_timeout", "pipeline.step_failed", "pipeline.step_timeout", "pipeline.run_not_found", "pipeline.invalid_state", "pipeline.tool_not_found", "pipeline.tool_failed", "pipeline.script_failed", "pipeline.script_no_command", "pipeline.permission_denied", "pipeline.agent_unavailable", "pipeline.provider_not_found", "pipeline.llm_failed", "pipeline.llm_unrecoverable", "pipeline.tool.deps_unavailable", "pipeline.tool.no_project", "pipeline.tool.forbidden", "pipeline.tool.not_found", "pipeline.tool.already_running", "pipeline.tool.invalid_spec", "pipeline.tool.not_published", "pipeline.tool.run_not_found", "pipeline.tool.run_foreign", "pipeline.tool.run_not_waiting", "pipeline.tool.template_not_found", "pipeline.tool.template_unsupported", "pipeline.tool.saved", "pipeline.tool.published", "pipeline.tool.deleted", "pipeline.tool.run_started", "pipeline.tool.run_resumed", "pipeline.tool.run_cancelled", "pipeline.tool.instantiated", "pipeline.tool.list_empty", "pipeline.tool.runs_empty", "pipeline.tool.templates_empty", "schedule.tool.deps_unavailable", "schedule.tool.forbidden", "schedule.tool.not_found", "schedule.tool.invalid", "schedule.tool.saved", "schedule.tool.deleted", "schedule.tool.ran", "schedule.tool.list_empty", "schedule.tool.jobs_empty", "schedule.tool.target_forbidden", "schedule.tool.not_published", "execution.remote_url_required", "execution.remote_unavailable", "question.answered", "question.cancelled", "question.timeout", "question.deps_unavailable", "process.background_started", "process.deps_unavailable", "process.background_limit", "process.background_unsupported", "process.background_disabled", "process.detached_started", "process.tool.empty", "process.tool.not_found", "process.tool.deps_unavailable", "process.tool.header", "process.tool.no_log", "process.tool.child_history", "attach.message.from_workspace", "attach.tool.attached", "attach.tool.deps_unavailable", "attach.tool.delivery_unavailable", "attach.tool.disabled", "attach.tool.not_found", "attach.tool.not_a_file", "attach.tool.too_large", "attach.tool.unsupported_mime", "attach.tool.modality_unsupported", "attach.tool.unrecognized", "attach.tool.queued", "attach.tool.saved", "attach.tool.ambiguous", "attach.tool.no_attachment", "attach.tool.exists", "attach.tool.save_failed", "models.list.header", "models.list.current", "models.list.defaults", "models.list.skipped", "models.list.empty", "models.list.provider_unknown", "models.list.deps_unavailable", "models.list.unavailable"];
15
15
  export type EngineMessageKey = (typeof ENGINE_MESSAGE_KEYS)[number];
16
16
  export declare const ENGINE_MESSAGE_PARAMS: Record<EngineMessageKey, readonly string[]>;
17
17
  /** Достаёт имена {param}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
@@ -16,6 +16,7 @@ export const ENGINE_MESSAGE_KEYS = [
16
16
  'session.stopped',
17
17
  'session.stopped_reason_denied',
18
18
  'session.denied_blocked',
19
+ 'session.role_tool_blocked',
19
20
  'session.empty_response',
20
21
  'session.dialog_title',
21
22
  'session.default_title',
@@ -31,6 +32,7 @@ export const ENGINE_MESSAGE_KEYS = [
31
32
  'task.subagent_not_found',
32
33
  'task.subagent_not_allowed',
33
34
  'task.deps_unavailable',
35
+ 'task.model_unavailable',
34
36
  'task.subagent_exec_error_after_retries',
35
37
  'task.resume_marker',
36
38
  'task.resume_result',
@@ -42,6 +44,13 @@ export const ENGINE_MESSAGE_KEYS = [
42
44
  'task.resume_locked',
43
45
  'task.resume_agent_not_found',
44
46
  'task.resume_provider_unavailable',
47
+ 'task.steps_limit',
48
+ 'task.steps_limit_empty',
49
+ 'task.background_started',
50
+ 'task.background_limit',
51
+ 'task.background_disabled',
52
+ 'task.resume_foreign_child',
53
+ 'task.resume_child_busy',
45
54
  'tool.args_error',
46
55
  'tool.exec_error',
47
56
  'tool.not_found',
@@ -50,6 +59,8 @@ export const ENGINE_MESSAGE_KEYS = [
50
59
  'tool.empty_output',
51
60
  'tool.output_truncated',
52
61
  'tool.shell_error',
62
+ // ADR-113 §detach: сообщение о таймауте detach-готового foreground-пути.
63
+ 'tool.shell_timeout',
53
64
  'tool.command_failed_default',
54
65
  'tool.aborted',
55
66
  'tool.binary_missing',
@@ -186,6 +197,7 @@ export const ENGINE_MESSAGE_KEYS = [
186
197
  'permission.mcp_unavailable',
187
198
  'permission.dep_unavailable',
188
199
  'permission.workspace_unavailable',
200
+ 'permission.storage_unavailable',
189
201
  'permission.external_directory_default',
190
202
  'permission.no_rules',
191
203
  'permission.rule_matched',
@@ -195,6 +207,10 @@ export const ENGINE_MESSAGE_KEYS = [
195
207
  'permission.ask_timeout',
196
208
  'permission.ask_no_subscribers',
197
209
  'permission.ask_denied',
210
+ 'permission.authority_denied_unknown',
211
+ 'permission.authority_denied_explicit',
212
+ 'permission.authority_denied_no_grant',
213
+ 'permission.authority_ask',
198
214
  'shellguard.allow_default',
199
215
  'shellguard.deny_prefix',
200
216
  'shellguard.deny_path',
@@ -208,6 +224,8 @@ export const ENGINE_MESSAGE_KEYS = [
208
224
  'gateway.input_blocked',
209
225
  'gateway.rate_limit_warning',
210
226
  'gateway.output_secrets_reason',
227
+ 'gateway.filter_denied',
228
+ 'gateway.filter_unavailable',
211
229
  'router.timeout',
212
230
  'router.network_error',
213
231
  'router.provider_not_found',
@@ -276,6 +294,19 @@ export const ENGINE_MESSAGE_KEYS = [
276
294
  'git.ssh_key_required',
277
295
  'git.repo_path_invalid',
278
296
  'git.repo_exists',
297
+ // --- Git worktrees: per-session рабочий каталог (ADR-114) ---
298
+ 'worktree.directory_missing',
299
+ 'worktree.tool.deps_unavailable',
300
+ 'worktree.tool.no_project',
301
+ 'worktree.tool.list_empty',
302
+ 'worktree.tool.list_header',
303
+ 'worktree.tool.list_row',
304
+ 'worktree.tool.created',
305
+ 'worktree.tool.removed',
306
+ 'worktree.tool.pruned',
307
+ 'worktree.tool.force_required',
308
+ 'worktree.tool.busy',
309
+ 'worktree.tool.not_found',
279
310
  // --- Внешние события и хуки (ADR-030 / ADR-089) ---
280
311
  'event.ingested',
281
312
  'event.routed.bound',
@@ -286,6 +317,10 @@ export const ENGINE_MESSAGE_KEYS = [
286
317
  'event.source_not_allowed',
287
318
  'event.duplicate',
288
319
  'hook.blocked',
320
+ // --- Steering: форсированная отправка во время хода (ADR-104) ---
321
+ 'steer.injected',
322
+ 'steer.limit_exceeded',
323
+ 'steer.interrupted',
289
324
  // --- Профиль пользователя и онбординг ---
290
325
  'profile.deps_unavailable',
291
326
  'profile.session_read_error',
@@ -293,12 +328,121 @@ export const ENGINE_MESSAGE_KEYS = [
293
328
  'profile.user_unavailable',
294
329
  'profile.save_error',
295
330
  'profile.updated',
331
+ // --- Движок пайплайнов (ADR-101) ---
332
+ 'pipeline.not_found',
333
+ 'pipeline.not_published',
334
+ 'pipeline.invalid_spec',
335
+ 'pipeline.loop_limit',
336
+ 'pipeline.cancelled',
337
+ 'pipeline.executor_missing',
338
+ 'pipeline.gate_rejected',
339
+ 'pipeline.gate_timeout',
340
+ 'pipeline.step_failed',
341
+ 'pipeline.step_timeout',
342
+ 'pipeline.run_not_found',
343
+ 'pipeline.invalid_state',
344
+ 'pipeline.tool_not_found',
345
+ 'pipeline.tool_failed',
346
+ 'pipeline.script_failed',
347
+ 'pipeline.script_no_command',
348
+ 'pipeline.permission_denied',
349
+ // --- Исполнитель agent-шага (ADR-101 §4, Э4.3) ---
350
+ 'pipeline.agent_unavailable',
351
+ 'pipeline.provider_not_found',
352
+ 'pipeline.llm_failed',
353
+ 'pipeline.llm_unrecoverable',
354
+ // --- Встроенные тулы пайплайнов (ADR-101) ---
355
+ 'pipeline.tool.deps_unavailable',
356
+ 'pipeline.tool.no_project',
357
+ 'pipeline.tool.forbidden',
358
+ 'pipeline.tool.not_found',
359
+ 'pipeline.tool.already_running',
360
+ 'pipeline.tool.invalid_spec',
361
+ 'pipeline.tool.not_published',
362
+ 'pipeline.tool.run_not_found',
363
+ 'pipeline.tool.run_foreign',
364
+ 'pipeline.tool.run_not_waiting',
365
+ 'pipeline.tool.template_not_found',
366
+ 'pipeline.tool.template_unsupported',
367
+ 'pipeline.tool.saved',
368
+ 'pipeline.tool.published',
369
+ 'pipeline.tool.deleted',
370
+ 'pipeline.tool.run_started',
371
+ 'pipeline.tool.run_resumed',
372
+ 'pipeline.tool.run_cancelled',
373
+ 'pipeline.tool.instantiated',
374
+ 'pipeline.tool.list_empty',
375
+ 'pipeline.tool.runs_empty',
376
+ 'pipeline.tool.templates_empty',
377
+ // --- Встроенные тулы расписаний (ADR-051) ---
378
+ 'schedule.tool.deps_unavailable',
379
+ 'schedule.tool.forbidden',
380
+ 'schedule.tool.not_found',
381
+ 'schedule.tool.invalid',
382
+ 'schedule.tool.saved',
383
+ 'schedule.tool.deleted',
384
+ 'schedule.tool.ran',
385
+ 'schedule.tool.list_empty',
386
+ 'schedule.tool.jobs_empty',
387
+ 'schedule.tool.target_forbidden',
388
+ 'schedule.tool.not_published',
389
+ // --- Исполнение (ADR-077) ---
390
+ 'execution.remote_url_required',
391
+ 'execution.remote_unavailable',
392
+ // --- Вопрос пользователю и фоновые процессы (этап 1 roadmap 0.13) ---
393
+ 'question.answered',
394
+ 'question.cancelled',
395
+ 'question.timeout',
396
+ 'question.deps_unavailable',
397
+ 'process.background_started',
398
+ 'process.deps_unavailable',
399
+ 'process.background_limit',
400
+ 'process.background_unsupported',
401
+ 'process.background_disabled',
402
+ // ADR-113 §detach: идущая команда переведена в фон (без перезапуска).
403
+ 'process.detached_started',
404
+ 'process.tool.empty',
405
+ 'process.tool.not_found',
406
+ 'process.tool.deps_unavailable',
407
+ 'process.tool.header',
408
+ 'process.tool.no_log',
409
+ 'process.tool.child_history',
410
+ // --- Повторная привязка файла из workspace (ADR-115) ---
411
+ 'attach.message.from_workspace',
412
+ 'attach.tool.attached',
413
+ 'attach.tool.deps_unavailable',
414
+ 'attach.tool.delivery_unavailable',
415
+ 'attach.tool.disabled',
416
+ 'attach.tool.not_found',
417
+ 'attach.tool.not_a_file',
418
+ 'attach.tool.too_large',
419
+ 'attach.tool.unsupported_mime',
420
+ 'attach.tool.modality_unsupported',
421
+ 'attach.tool.unrecognized',
422
+ // --- Отправка файла в ответе (ADR-115): тул `send_attachment` ---
423
+ 'attach.tool.queued',
424
+ // --- Сохранение вложения в workspace (ADR-115): тул `save_attachment` ---
425
+ 'attach.tool.saved',
426
+ 'attach.tool.ambiguous',
427
+ 'attach.tool.no_attachment',
428
+ 'attach.tool.exists',
429
+ 'attach.tool.save_failed',
430
+ // --- Каталог моделей для агента (ADR-115): тул `list_models` ---
431
+ 'models.list.header',
432
+ 'models.list.current',
433
+ 'models.list.defaults',
434
+ 'models.list.skipped',
435
+ 'models.list.empty',
436
+ 'models.list.provider_unknown',
437
+ 'models.list.deps_unavailable',
438
+ 'models.list.unavailable',
296
439
  ];
297
440
  export const ENGINE_MESSAGE_PARAMS = {
298
441
  'session.max_iterations': [],
299
442
  'session.stopped': ["reason"],
300
443
  'session.stopped_reason_denied': [],
301
444
  'session.denied_blocked': [],
445
+ 'session.role_tool_blocked': ["tool", "agent"],
302
446
  'session.empty_response': [],
303
447
  'session.dialog_title': ["id"],
304
448
  'session.default_title': [],
@@ -314,6 +458,7 @@ export const ENGINE_MESSAGE_PARAMS = {
314
458
  'task.subagent_not_found': ["type", "types"],
315
459
  'task.subagent_not_allowed': ["type", "modes"],
316
460
  'task.deps_unavailable': [],
461
+ 'task.model_unavailable': ["provider", "model"],
317
462
  'task.subagent_exec_error_after_retries': ["type", "attempts", "error"],
318
463
  'task.resume_marker': [],
319
464
  'task.resume_result': ["type", "summary"],
@@ -325,6 +470,13 @@ export const ENGINE_MESSAGE_PARAMS = {
325
470
  'task.resume_locked': ["id"],
326
471
  'task.resume_agent_not_found': ["type"],
327
472
  'task.resume_provider_unavailable': ["id"],
473
+ 'task.steps_limit': ["limit"],
474
+ 'task.steps_limit_empty': ["limit"],
475
+ 'task.background_started': ["id"],
476
+ 'task.background_limit': ["limit"],
477
+ 'task.background_disabled': [],
478
+ 'task.resume_foreign_child': ["id"],
479
+ 'task.resume_child_busy': ["id"],
328
480
  'tool.args_error': ["tool", "issues"],
329
481
  'tool.exec_error': ["tool", "error"],
330
482
  'tool.not_found': ["tool"],
@@ -333,6 +485,7 @@ export const ENGINE_MESSAGE_PARAMS = {
333
485
  'tool.empty_output': [],
334
486
  'tool.output_truncated': [],
335
487
  'tool.shell_error': ["message"],
488
+ 'tool.shell_timeout': ["timeout"],
336
489
  'tool.command_failed_default': [],
337
490
  'tool.aborted': [],
338
491
  'tool.binary_missing': ["tool", "binary"],
@@ -469,6 +622,7 @@ export const ENGINE_MESSAGE_PARAMS = {
469
622
  'permission.mcp_unavailable': ["mode"],
470
623
  'permission.dep_unavailable': ["binary"],
471
624
  'permission.workspace_unavailable': [],
625
+ 'permission.storage_unavailable': [],
472
626
  'permission.external_directory_default': ["path", "action"],
473
627
  'permission.no_rules': ["tool"],
474
628
  'permission.rule_matched': ["key", "action"],
@@ -478,6 +632,10 @@ export const ENGINE_MESSAGE_PARAMS = {
478
632
  'permission.ask_timeout': [],
479
633
  'permission.ask_no_subscribers': [],
480
634
  'permission.ask_denied': [],
635
+ 'permission.authority_denied_unknown': ["action"],
636
+ 'permission.authority_denied_explicit': ["action"],
637
+ 'permission.authority_denied_no_grant': ["action"],
638
+ 'permission.authority_ask': ["action"],
481
639
  'shellguard.allow_default': [],
482
640
  'shellguard.deny_prefix': ["prefix"],
483
641
  'shellguard.deny_path': ["path"],
@@ -491,6 +649,8 @@ export const ENGINE_MESSAGE_PARAMS = {
491
649
  'gateway.input_blocked': ["reason"],
492
650
  'gateway.rate_limit_warning': [],
493
651
  'gateway.output_secrets_reason': [],
652
+ 'gateway.filter_denied': ["reason"],
653
+ 'gateway.filter_unavailable': ["reason"],
494
654
  'router.timeout': [],
495
655
  'router.network_error': [],
496
656
  'router.provider_not_found': ["provider"],
@@ -559,6 +719,19 @@ export const ENGINE_MESSAGE_PARAMS = {
559
719
  'git.ssh_key_required': ["path"],
560
720
  'git.repo_path_invalid': ["path"],
561
721
  'git.repo_exists': ["path"],
722
+ // --- Git worktrees: per-session рабочий каталог (ADR-114) ---
723
+ 'worktree.directory_missing': ["path"],
724
+ 'worktree.tool.deps_unavailable': [],
725
+ 'worktree.tool.no_project': [],
726
+ 'worktree.tool.list_empty': [],
727
+ 'worktree.tool.list_header': ["count"],
728
+ 'worktree.tool.list_row': ["name", "branch", "directory", "dirty", "attached", "exists"],
729
+ 'worktree.tool.created': ["name", "branch", "directory", "worktree_id"],
730
+ 'worktree.tool.removed': ["name"],
731
+ 'worktree.tool.pruned': ["records", "git_pruned"],
732
+ 'worktree.tool.force_required': ["name"],
733
+ 'worktree.tool.busy': ["name", "session"],
734
+ 'worktree.tool.not_found': ["id"],
562
735
  // --- Внешние события и хуки (ADR-030 / ADR-089) ---
563
736
  'event.ingested': ["id", "source"],
564
737
  'event.routed.bound': ["sessionId"],
@@ -569,6 +742,10 @@ export const ENGINE_MESSAGE_PARAMS = {
569
742
  'event.source_not_allowed': ["source"],
570
743
  'event.duplicate': ["dedupKey"],
571
744
  'hook.blocked': ["hook", "reason"],
745
+ // --- Steering: форсированная отправка во время хода (ADR-104) ---
746
+ 'steer.injected': [],
747
+ 'steer.limit_exceeded': ["limit"],
748
+ 'steer.interrupted': [],
572
749
  // --- Профиль пользователя и онбординг ---
573
750
  'profile.deps_unavailable': ["tool"],
574
751
  'profile.session_read_error': [],
@@ -576,6 +753,108 @@ export const ENGINE_MESSAGE_PARAMS = {
576
753
  'profile.user_unavailable': [],
577
754
  'profile.save_error': ["error"],
578
755
  'profile.updated': ["fields"],
756
+ // --- Движок пайплайнов (ADR-101) ---
757
+ 'pipeline.not_found': ["id"],
758
+ 'pipeline.not_published': ["id"],
759
+ 'pipeline.invalid_spec': ["problems"],
760
+ 'pipeline.loop_limit': ["limit"],
761
+ 'pipeline.cancelled': [],
762
+ 'pipeline.executor_missing': ["kind"],
763
+ 'pipeline.gate_rejected': ["node"],
764
+ 'pipeline.gate_timeout': ["node", "timeoutSec"],
765
+ 'pipeline.step_failed': ["node", "error"],
766
+ 'pipeline.step_timeout': ["node", "timeoutSec"],
767
+ 'pipeline.run_not_found': ["id"],
768
+ 'pipeline.invalid_state': ["id", "status"],
769
+ 'pipeline.tool_not_found': ["tool", "node"],
770
+ 'pipeline.tool_failed': ["node", "tool", "error"],
771
+ 'pipeline.script_failed': ["node", "code", "error"],
772
+ 'pipeline.script_no_command': ["node"],
773
+ 'pipeline.permission_denied': ["node", "tool", "reason"],
774
+ 'pipeline.agent_unavailable': ["node"],
775
+ 'pipeline.provider_not_found': ["node", "provider"],
776
+ 'pipeline.llm_failed': ["node", "type"],
777
+ 'pipeline.llm_unrecoverable': ["node", "type"],
778
+ // --- Встроенные тулы пайплайнов (ADR-101) ---
779
+ 'pipeline.tool.deps_unavailable': ["tool"],
780
+ 'pipeline.tool.no_project': [],
781
+ 'pipeline.tool.forbidden': [],
782
+ 'pipeline.tool.not_found': ["id"],
783
+ 'pipeline.tool.already_running': ["id"],
784
+ 'pipeline.tool.invalid_spec': ["problems"],
785
+ 'pipeline.tool.not_published': ["id"],
786
+ 'pipeline.tool.run_not_found': ["id"],
787
+ 'pipeline.tool.run_foreign': ["id"],
788
+ 'pipeline.tool.run_not_waiting': ["id", "status"],
789
+ 'pipeline.tool.template_not_found': ["id"],
790
+ 'pipeline.tool.template_unsupported': ["id", "problems"],
791
+ 'pipeline.tool.saved': ["id", "version"],
792
+ 'pipeline.tool.published': ["id", "version"],
793
+ 'pipeline.tool.deleted': ["id"],
794
+ 'pipeline.tool.run_started': ["run_id"],
795
+ 'pipeline.tool.run_resumed': ["run_id"],
796
+ 'pipeline.tool.run_cancelled': ["run_id"],
797
+ 'pipeline.tool.instantiated': ["id"],
798
+ 'pipeline.tool.list_empty': [],
799
+ 'pipeline.tool.runs_empty': [],
800
+ 'pipeline.tool.templates_empty': [],
801
+ // --- Встроенные тулы расписаний (ADR-051) ---
802
+ 'schedule.tool.deps_unavailable': ["tool"],
803
+ 'schedule.tool.forbidden': [],
804
+ 'schedule.tool.not_found': ["id"],
805
+ 'schedule.tool.invalid': ["problems"],
806
+ 'schedule.tool.saved': ["id"],
807
+ 'schedule.tool.deleted': ["id"],
808
+ 'schedule.tool.ran': ["id", "status"],
809
+ 'schedule.tool.list_empty': [],
810
+ 'schedule.tool.jobs_empty': [],
811
+ 'schedule.tool.target_forbidden': ["reason"],
812
+ 'schedule.tool.not_published': ["id"],
813
+ // --- Исполнение (ADR-077) ---
814
+ 'execution.remote_url_required': [],
815
+ 'execution.remote_unavailable': ["reason"],
816
+ // --- Вопрос пользователю и фоновые процессы (этап 1 roadmap 0.13) ---
817
+ 'question.answered': ["answers"],
818
+ 'question.cancelled': ["reason"],
819
+ 'question.timeout': [],
820
+ 'question.deps_unavailable': [],
821
+ 'process.background_started': ["id", "log"],
822
+ 'process.deps_unavailable': [],
823
+ 'process.background_limit': ["limit"],
824
+ 'process.background_unsupported': [],
825
+ 'process.background_disabled': [],
826
+ 'process.detached_started': ["id", "log"],
827
+ 'process.tool.empty': [],
828
+ 'process.tool.not_found': ["id"],
829
+ 'process.tool.deps_unavailable': [],
830
+ 'process.tool.header': ["count"],
831
+ 'process.tool.no_log': [],
832
+ 'process.tool.child_history': ["child_session"],
833
+ 'attach.message.from_workspace': ["path"],
834
+ 'attach.tool.attached': ["path"],
835
+ 'attach.tool.deps_unavailable': [],
836
+ 'attach.tool.delivery_unavailable': [],
837
+ 'attach.tool.disabled': [],
838
+ 'attach.tool.not_found': ["path"],
839
+ 'attach.tool.not_a_file': ["path"],
840
+ 'attach.tool.too_large': ["path", "size", "limit"],
841
+ 'attach.tool.unsupported_mime': ["path", "detail"],
842
+ 'attach.tool.modality_unsupported': ["path", "modality"],
843
+ 'attach.tool.unrecognized': ["path"],
844
+ 'attach.tool.queued': ["name"],
845
+ 'attach.tool.saved': ["path", "size"],
846
+ 'attach.tool.ambiguous': ["query", "list"],
847
+ 'attach.tool.no_attachment': [],
848
+ 'attach.tool.exists': ["path"],
849
+ 'attach.tool.save_failed': ["error"],
850
+ 'models.list.header': ["filter", "shown", "total"],
851
+ 'models.list.current': ["model", "modalities"],
852
+ 'models.list.defaults': ["assignments"],
853
+ 'models.list.skipped': ["count"],
854
+ 'models.list.empty': [],
855
+ 'models.list.provider_unknown': ["provider"],
856
+ 'models.list.deps_unavailable': [],
857
+ 'models.list.unavailable': ["reason"],
579
858
  };
580
859
  /** Достаёт имена {param}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
581
860
  export function extractParams(template) {
package/dist/index.d.ts CHANGED
@@ -1,16 +1,37 @@
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 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, 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';
7
7
  export * from './utils/index.js';
8
8
  export * from './skills/frontmatter.js';
9
+ export { PACK_KINDS, PACK_TYPES, PACK_NAME_REGEX, PACK_VERSION_REGEX, PACK_HOST_RANGE_REGEX, PACK_AGENT_MODES, PACK_PLUGIN_MODES, DEFAULT_EXTENSION_CONTRACT, packKindSchema, packTypeSchema, packNameSchema, packVersionSchema, packHostSchema, packMcpProvideSchema, packSkillMetadataSchema, packSkillProvideSchema, packAgentProvideSchema, packPipelineProvideSchema, packMcpProvidesSchema, packPluginModeSchema, packPermissionsSchema, packTrustSchema, packToolsProvideSchema, packPromptBlockProvideSchema, packLlmFilterProvideSchema, packProvidesSchema, packManifestSchema, packAuthorityProvidesSchema, isPackHostRange, normalizePackProvides, validatePackManifest, diffPackProvides, checkExtensionCompatibility, summarizePackAuthority, hasPackAuthorityContent, } from './types/pack.js';
10
+ export type { PackKind, PackType, PackManifest, PackProvides, PackAgentProvide, PackSkillProvide, PackMcpProvide, PackPipelineProvide, PackAgentMode, PackPluginMode, PackPermissions, PackTrust, PackToolsProvide, PackPromptBlockProvide, PackLlmFilterProvide, PackAuthorityProvides, PackAuthorityAgentProvide, PackAuthoritySummary, PackAuthoritySummaryRole, PackAuthoritySummaryAction, PackAuthoritySummaryTarget, PackAuthoritySummaryAgent, PackProvidesKind, PackProvidesMismatch, DeclaredPackProvides, RegisteredPackProvides, ExtensionCompatibilityReason, ExtensionCompatibilityVerdict, } from './types/pack.js';
11
+ export { SEMVER_RANGE_REGEX, isSemverRange, parseSemver, satisfiesSemverRange, } from './types/semver.js';
12
+ export type { SemverParts } from './types/semver.js';
13
+ export { CATALOG_INDEX_FORMAT, CATALOG_TRUST_LEVELS, CATALOG_SOURCES, CATALOG_UNKNOWN_LICENSE, CATALOG_DEFAULT_SKILL_CATEGORY, CATALOG_UNKNOWN_VERSION, catalogLocalizedTextSchema, catalogTrustLevelSchema, trustLevelRank, catalogSourceSchema, catalogSourceAdapterSchema, catalogTimestampSchema, catalogVersionSchema, catalogEntrySchema, catalogCategorySchema, catalogLabelSchema, catalogIndexSchema, isCatalogSkillEntry, isCatalogIndexDocument, parseCatalogEntries, } from './types/catalog.js';
14
+ export type { CatalogLocalizedText, CatalogTrustLevel, CatalogSource, CatalogSourceAdapter, CatalogVersion, CatalogEntry, CatalogCategory, CatalogLabel, CatalogIndex, } from './types/catalog.js';
15
+ export { PIPELINE_ARTIFACT_BLOB_KIND, isBlobPipelineArtifact, pipelineStepKindSchema, eventMatchSchema, pipelineArtifactSchema, pipelineStepSchema, pipelineErrorPolicySchema, pipelineDefinitionSchema, pipelineInstanceStatusSchema, pipelineStepStatusSchema, pipelineStepStateSchema, pipelineTriggerSchema, pipelineInstanceSchema, } from './types/pipeline.js';
16
+ export type { PipelineStepKind, EventMatch, PipelineArtifact, PipelineBlobArtifact, PipelineStep, PipelineErrorPolicy, PipelineDefinition, PipelineInstanceStatus, PipelineStepStatus, PipelineStepState, PipelineTrigger, PipelineInstance, } from './types/pipeline.js';
17
+ export { PIPELINE_MODES, pipelineModeSchema, pipelineNodeKindSchema, pipelineExitKindSchema, pipelineConditionOpSchema, jsonSchemaLikeSchema, pipelineConditionSchema, pipelineSpecEdgeSchema, pipelineSpecNodeSchema, pipelineExitSchema, pipelineSpecSchema, pipelineRunTriggerSchema, pipelineStepResultSchema, pipelineRunStatusSchema, pipelineRunSchema, pipelineRunEventTypeSchema, pipelineRunEventSchema, validatePipelineSpec, } from './types/pipeline-engine.js';
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';
9
19
  export { SYNTH_VERSION } from './version.js';
10
20
  export * from './model-metadata.js';
11
- export { type SynthConfig, type ServerConfig, type StorageConfig, 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 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 WebhooksConfig, webhooksConfigSchema, type RemoteConfig, type MicroFirstConfig, type SecurityConfig, 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, 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';
12
22
  export { defaultConfig, loadConfig } from './config/index.js';
13
- export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel } 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';
24
+ export type { StorageBackend, ResolvedPostgresConfig } from './config/index.js';
14
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';
28
+ export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, matchTlsHostPattern, normalizeTlsHost, isPemContent, TLS_ENV, } from './config/index.js';
29
+ export type { ResolvedTlsConfig, ResolvedTlsTrust, ResolvedTlsProfiles, TlsClientProfile, TlsClientMaterial, TlsMappingSettings, TlsRuntimeSettings, TlsSource, TlsConfigSource, } from './config/index.js';
30
+ 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';
31
+ export { PROXY_ENV, PROXY_PASSWORD_ENV, PROXY_TLS_ENV, PROXY_URL_FIELDS, STANDARD_PROXY_ENV, ProxyConfigError, NoProxyMatcher, parseProxyUrl, isSocksProxyProtocol, redactProxyUrl, resolveProxyConfig, resolveProxyRoute, resolveProxyTls, mergeProxyConfig, validateProxyConfig, validateProxyHostPatterns, emptyResolvedProxyConfig, proxyUrlFor, proxyEntryFor, defaultProxyEntry, shouldProxyUrl, proxyStatus, proxyProfilePasswordEnv, proxyProfilePasswordPath, readProxyPasswordFile, } from './config/index.js';
32
+ export type { ProxyConfigSource, ProxyConfigOrigin, ResolveProxyConfigOptions, ProxyCredentials, ProxyCredentialSet, ProxyUrlField, ProxyMode, ProxyRuleAction, ProxyRouteReason, ResolvedProxyConfig, ResolvedProxyProfile, ResolvedProxyRule, ResolvedProxyRoute, ResolvedProxyTls, EgressProxyStatus, ProxyStatusAuth, ProxyStatusProfile, ProxyStatusRule, ProxyStatusTlsMeta, ProxyPasswordStatus, ProxyAuthChallenge, ProxyCheckResult, ParsedProxyUrl, } from './config/index.js';
33
+ export { type ProxyConfig, type ProxyAuthConfig, type ProxyAuthType, type ProxyTlsConfig, type ProxyProfileConfig, type ProxyRuleConfig, proxyConfigSchema, proxyAuthConfigSchema, proxyTlsConfigSchema, proxyProfileSchema, proxyRuleSchema, proxyProfileNameSchema, proxyRuleActionSchema, PROXY_AUTH_TYPES, PROXY_MODES, PROXY_PROFILE_NAME_RE, } from './config/index.js';
34
+ export { buildPostgresSslOptions, findDsnTlsParams, normalizePostgresSslMode, POSTGRES_SSL_MODES, POSTGRES_SSL_MODE_ALIASES, DSN_TLS_PARAMS, } from './config/index.js';
35
+ export type { PostgresSslMode, PostgresSslBuildInput, PostgresSslBuildResult, } from './config/index.js';
15
36
  export type { DeployMode } from './config/index.js';
16
37
  export type { EnvOverrideDefinition, EnvOverrideType, ParsedEnvValue } from './config/index.js';
package/dist/index.js CHANGED
@@ -7,10 +7,33 @@ export * from './schemas/index.js';
7
7
  export * from './protocols/index.js';
8
8
  export * from './utils/index.js';
9
9
  export * from './skills/frontmatter.js';
10
+ // ADR-086/ADR-090: контракт манифеста расширения `synth.pack` (типы + zod).
11
+ export { PACK_KINDS, PACK_TYPES, PACK_NAME_REGEX, PACK_VERSION_REGEX, PACK_HOST_RANGE_REGEX, PACK_AGENT_MODES, PACK_PLUGIN_MODES, DEFAULT_EXTENSION_CONTRACT, packKindSchema, packTypeSchema, packNameSchema, packVersionSchema, packHostSchema, packMcpProvideSchema, packSkillMetadataSchema, packSkillProvideSchema, packAgentProvideSchema, packPipelineProvideSchema, packMcpProvidesSchema, packPluginModeSchema, packPermissionsSchema, packTrustSchema, packToolsProvideSchema, packPromptBlockProvideSchema, packLlmFilterProvideSchema, packProvidesSchema, packManifestSchema, packAuthorityProvidesSchema, isPackHostRange, normalizePackProvides, validatePackManifest, diffPackProvides, checkExtensionCompatibility, summarizePackAuthority, hasPackAuthorityContent, } from './types/pack.js';
12
+ // ADR-090: semver-матчер диапазонов версий (host/контракты расширения).
13
+ export { SEMVER_RANGE_REGEX, isSemverRange, parseSemver, satisfiesSemverRange, } from './types/semver.js';
14
+ // PROP-068 §3/§12: контракт индекса каталога расширений (`format: 1`) —
15
+ // канонический документ, карточка записи и tolerant-парсер форм индекса.
16
+ export { CATALOG_INDEX_FORMAT, CATALOG_TRUST_LEVELS, CATALOG_SOURCES, CATALOG_UNKNOWN_LICENSE, CATALOG_DEFAULT_SKILL_CATEGORY, CATALOG_UNKNOWN_VERSION, catalogLocalizedTextSchema, catalogTrustLevelSchema, trustLevelRank, catalogSourceSchema, catalogSourceAdapterSchema, catalogTimestampSchema, catalogVersionSchema, catalogEntrySchema, catalogCategorySchema, catalogLabelSchema, catalogIndexSchema, isCatalogSkillEntry, isCatalogIndexDocument, parseCatalogEntries, } from './types/catalog.js';
17
+ // ADR-051/ADR-100: контракт пайплайна (определение, шаг, состояние, экземпляр).
18
+ export { PIPELINE_ARTIFACT_BLOB_KIND, isBlobPipelineArtifact, pipelineStepKindSchema, eventMatchSchema, pipelineArtifactSchema, pipelineStepSchema, pipelineErrorPolicySchema, pipelineDefinitionSchema, pipelineInstanceStatusSchema, pipelineStepStatusSchema, pipelineStepStateSchema, pipelineTriggerSchema, pipelineInstanceSchema, } from './types/pipeline.js';
19
+ // ADR-101: контракты пайплайна как второго движка (спецификация, узлы,
20
+ // условные переходы, триггер прогона, результат узла, прогон, журнал).
21
+ export { PIPELINE_MODES, pipelineModeSchema, pipelineNodeKindSchema, pipelineExitKindSchema, pipelineConditionOpSchema, jsonSchemaLikeSchema, pipelineConditionSchema, pipelineSpecEdgeSchema, pipelineSpecNodeSchema, pipelineExitSchema, pipelineSpecSchema, pipelineRunTriggerSchema, pipelineStepResultSchema, pipelineRunStatusSchema, pipelineRunSchema, pipelineRunEventTypeSchema, pipelineRunEventSchema, validatePipelineSpec, } from './types/pipeline-engine.js';
10
22
  export { SYNTH_VERSION } from './version.js';
11
23
  export * from './model-metadata.js';
12
24
  // Конфигурация — выборочный экспорт (избегаем конфликта AuthConfig/TestUser)
13
- export { toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, webhooksConfigSchema, } from './config/index.js';
25
+ export { postgresStorageConfigSchema, mcpServerAuthSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, pluginsConfigSchema, attachmentsConfigSchema, modalityModelRefSchema, modalityModelsSchema, ATTACHMENT_FAMILIES, webhooksConfigSchema, securityTlsConfigSchema, } from './config/index.js';
14
26
  export { defaultConfig, loadConfig } from './config/index.js';
15
- export { resolveDataDir, resolvePort, resolveWorkspacesRoot, resolveDefaultWorkspace, resolveWorkspaceOutsideRootPolicy, resolveSecretKey, resolveIgnoreRules, resolveHome, resolveProfilesPath, resolveCredentialsPath, ensureDataDir, createDefaultConfig, resolveDeployMode, findConfigPath, defaultConfigPath, ensureConfigFile, ensureFirstRun, resolveDecisionProvider, resolveDecisionModel } 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';
16
28
  export { applyEnvOverrides, envOverrideName, toSnakeCase, parseEnvValue, ENV_OVERRIDES } from './config/index.js';
29
+ // ADR-077: секция `execution` — топология исполнения (переключатель запуска).
30
+ export { resolveExecutionConfig, resolveExecutionMode, defaultExecutionConcurrency, parseExecutionUrlList, isExecutionMode, isExecutionFailMode, EXECUTION_ENV, EXECUTION_MODE_CLI_FLAG, } from './config/index.js';
31
+ // ADR-099: резолверы доверия TLS/CA (`security.tls`).
32
+ export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, matchTlsHostPattern, normalizeTlsHost, isPemContent, TLS_ENV, } from './config/index.js';
33
+ // ADR-099: bootstrap-хранилище runtime-настроек TLS ({dataDir}/security-tls.json).
34
+ 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';
35
+ // ADR-099 (D1): HTTP/HTTPS-прокси единого egress-слоя.
36
+ export { PROXY_ENV, PROXY_PASSWORD_ENV, PROXY_TLS_ENV, PROXY_URL_FIELDS, STANDARD_PROXY_ENV, ProxyConfigError, NoProxyMatcher, parseProxyUrl, isSocksProxyProtocol, redactProxyUrl, resolveProxyConfig, resolveProxyRoute, resolveProxyTls, mergeProxyConfig, validateProxyConfig, validateProxyHostPatterns, emptyResolvedProxyConfig, proxyUrlFor, proxyEntryFor, defaultProxyEntry, shouldProxyUrl, proxyStatus, proxyProfilePasswordEnv, proxyProfilePasswordPath, readProxyPasswordFile, } from './config/index.js';
37
+ export { proxyConfigSchema, proxyAuthConfigSchema, proxyTlsConfigSchema, proxyProfileSchema, proxyRuleSchema, proxyProfileNameSchema, proxyRuleActionSchema, PROXY_AUTH_TYPES, PROXY_MODES, PROXY_PROFILE_NAME_RE, } from './config/index.js';
38
+ // ADR-099 × ADR-097: единый построитель TLS-опций PostgreSQL (sslmode + security.tls).
39
+ export { buildPostgresSslOptions, findDsnTlsParams, normalizePostgresSslMode, POSTGRES_SSL_MODES, POSTGRES_SSL_MODE_ALIASES, DSN_TLS_PARAMS, } from './config/index.js';
@@ -3,6 +3,16 @@
3
3
  * Используется при fetch для автоматического заполнения contextWindow.
4
4
  * Источники: официальная документация провайдеров, OpenRouter.
5
5
  */
6
+ /**
7
+ * ADR-115: модальность входа модели — какие типы вложений она принимает.
8
+ *
9
+ * `text` — обычный текстовый промпт (есть у любой модели); остальные —
10
+ * vision/pdf/audio/video. Источник истины — каталог провайдера, сохраняемый
11
+ * в `ModelConfig.modalities` при синхронизации моделей (ручной override —
12
+ * `POST /api/v2/models`); захардкоженного справочника модальностей нет.
13
+ * Не задано — модальности неизвестны, и вложения **не фильтруются** (ADR-115 §4).
14
+ */
15
+ export type AttachmentModality = 'text' | 'image' | 'pdf' | 'audio' | 'video';
6
16
  export declare const KNOWN_MODEL_WINDOWS: Record<string, number>;
7
17
  /**
8
18
  * Ищет известное контекстное окно для модели по её ID или имени.
@@ -11,7 +11,6 @@ export interface WSServerMessage {
11
11
  type: string;
12
12
  sessionId?: string;
13
13
  clientId?: string;
14
- engine?: string;
15
14
  data?: Record<string, unknown>;
16
15
  content?: string;
17
16
  isFinal?: boolean;