@itphx/synth-shared 0.13.4 → 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 (89) hide show
  1. package/dist/config/defaults.js +102 -3
  2. package/dist/config/env-overrides.d.ts +39 -4
  3. package/dist/config/env-overrides.js +174 -4
  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 +3 -0
  9. package/dist/config/index.js +3 -0
  10. package/dist/config/loader.d.ts +8 -0
  11. package/dist/config/loader.js +6 -1
  12. package/dist/config/redact.d.ts +22 -0
  13. package/dist/config/redact.js +53 -0
  14. package/dist/config/security.d.ts +77 -0
  15. package/dist/config/security.js +116 -0
  16. package/dist/config/tls.d.ts +7 -4
  17. package/dist/config/tls.js +10 -23
  18. package/dist/config/types.d.ts +568 -38
  19. package/dist/config/types.js +390 -33
  20. package/dist/i18n/index.d.ts +1 -1
  21. package/dist/i18n/index.js +325 -13
  22. package/dist/index.d.ts +7 -6
  23. package/dist/index.js +17 -4
  24. package/dist/model-metadata.d.ts +10 -0
  25. package/dist/model-metadata.js +10 -0
  26. package/dist/schemas/index.d.ts +444 -30
  27. package/dist/schemas/index.js +354 -17
  28. package/dist/skills/frontmatter.js +1 -1
  29. package/dist/types/agent.d.ts +29 -1
  30. package/dist/types/authority.d.ts +10 -0
  31. package/dist/types/authority.js +8 -0
  32. package/dist/types/bus-events.d.ts +88 -2
  33. package/dist/types/catalog.d.ts +1 -1
  34. package/dist/types/catalog.js +1 -1
  35. package/dist/types/command-audit.d.ts +91 -0
  36. package/dist/types/command-audit.js +44 -0
  37. package/dist/types/commands.d.ts +29 -11
  38. package/dist/types/commands.js +2 -2
  39. package/dist/types/egress.d.ts +18 -3
  40. package/dist/types/egress.js +18 -3
  41. package/dist/types/events.d.ts +23 -2
  42. package/dist/types/execution.d.ts +424 -0
  43. package/dist/types/execution.js +355 -0
  44. package/dist/types/file-kind.d.ts +3 -2
  45. package/dist/types/file-kind.js +11 -2
  46. package/dist/types/git.d.ts +131 -0
  47. package/dist/types/git.js +101 -1
  48. package/dist/types/host-pattern.d.ts +41 -0
  49. package/dist/types/host-pattern.js +143 -0
  50. package/dist/types/index.d.ts +8 -0
  51. package/dist/types/index.js +25 -3
  52. package/dist/types/maintenance.d.ts +1 -1
  53. package/dist/types/mcp.d.ts +90 -0
  54. package/dist/types/mcp.js +11 -0
  55. package/dist/types/mentions.d.ts +96 -0
  56. package/dist/types/mentions.js +9 -0
  57. package/dist/types/message-stream.d.ts +41 -0
  58. package/dist/types/message.d.ts +24 -1
  59. package/dist/types/message.js +13 -0
  60. package/dist/types/pack.d.ts +21 -21
  61. package/dist/types/pack.js +4 -4
  62. package/dist/types/permission.d.ts +20 -3
  63. package/dist/types/pipeline.d.ts +2 -2
  64. package/dist/types/plugin-protocol.d.ts +203 -4
  65. package/dist/types/plugin-protocol.js +77 -4
  66. package/dist/types/project-access.d.ts +94 -0
  67. package/dist/types/project-access.js +140 -0
  68. package/dist/types/project.d.ts +89 -2
  69. package/dist/types/project.js +36 -0
  70. package/dist/types/prompt.d.ts +4 -2
  71. package/dist/types/schedules.d.ts +49 -3
  72. package/dist/types/schedules.js +50 -1
  73. package/dist/types/scripts.d.ts +98 -0
  74. package/dist/types/scripts.js +14 -0
  75. package/dist/types/service-keys.d.ts +16 -3
  76. package/dist/types/service-keys.js +19 -1
  77. package/dist/types/session.d.ts +68 -3
  78. package/dist/types/skills.d.ts +21 -11
  79. package/dist/types/skills.js +6 -6
  80. package/dist/types/timers.d.ts +402 -0
  81. package/dist/types/timers.js +166 -0
  82. package/dist/types/tools.d.ts +160 -1
  83. package/dist/types/tools.js +70 -0
  84. package/dist/types/user.d.ts +24 -0
  85. package/dist/types/worktree.d.ts +1 -1
  86. package/dist/utils/index.js +1 -1
  87. package/dist/version.d.ts +1 -1
  88. package/dist/version.js +1 -1
  89. package/package.json +3 -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.steps_limit", "session.stopped", "session.stopped_reason_denied", "session.denied_blocked", "session.role_tool_blocked", "session.empty_response", "session.output_limit", "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.model_not_in_catalog", "task.subagent_exec_error_after_retries", "task.depth_limit", "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.context_budget", "subagent.context_budget", "task.background_started", "task.background_limit", "task.background_disabled", "task.resume_foreign_child", "task.resume_child_busy", "tool.args_error", "tool.exec_error", "tool.malformed_call", "tool.not_found", "tool.permission_denied_default", "tool.doom_loop", "tool.disabled_by_step_limit", "tool.empty_output", "tool.output_truncated", "tool.output_bounded", "tool.shell_error", "tool.shell_timeout", "tool.search_timeout", "tool.command_failed_default", "tool.aborted", "tool.binary_missing", "fs.file_written", "fs.file_edited", "fs.replace_not_found", "fs.replace_multiple", "fs.no_changes", "fs.empty_old_string", "fs.mixed_line_endings", "fs.edit_binary", "fs.write_binary", "fs.file_too_large", "fs.file_not_found", "fs.dir_created", "fs.file_deleted", "fs.patch_applied", "fs.patch_file_line", "fs.patch_not_found", "fs.patch_multiple", "fs.patch_write_failed", "fs.patch_file_missing", "fs.patch_not_regular", "fs.patch_too_large", "fs.patch_binary", "fs.patch_summary", "fs.patch_file_added", "fs.patch_file_deleted", "fs.patch_file_renamed", "fs.patch_add_exists", "fs.patch_delete_missing", "fs.patch_rename_missing", "fs.patch_rename_exists", "fs.patch_path_escapes", "fsread.empty_directory", "fsread.empty_file", "fsread.no_files", "fsread.glob_error", "fsread.truncated", "fsread.directory_truncated", "fsread.line_truncated", "fsread.offset_out_of_range", "fsread.binary", "fsread.glob_truncated", "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.body_truncated", "web.block_timeout", "web.block_error", "web.fetch_all_failed", "web.no_results", "web.search_error", "web.search_rate_limited", "web.search_auth_failed", "web.ssrf_blocked", "web.too_many_redirects", "search.no_matches", "search.matches_truncated", "search.rg_not_installed", "search.error", "search.path_not_found", "search.path_not_directory", "search.invalid_regex", "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", "todo.summary", "todo.line", "todo.more", "todo.added", "todo.updated", "todo.deleted", "todo.hint_priority", "todo.hint_plan", "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_cancelled", "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_disabled", "router.provider_unspecified", "router.model_disabled", "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", "context.compression_empty", "context.compression_failed", "context.compression_template", "context.compression_output_limit", "context.summary_applied", "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.ssh_key_required_hint", "git.ssh_keys_none", "sshkeys.tool.header", "sshkeys.tool.empty", "sshkeys.tool.deps_unavailable", "git.repo_path_invalid", "git.repo_not_a_repo", "git.repo_exists", "git.repo_occupied_repo", "git.repo_occupied_stub", "git.repo_occupied_dir", "git.repo_path_unreadable", "git.clone_timeout", "git.fetch_timeout", "git.timeout", "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", "steer.dropped_aborted", "steer.dropped_turn_ended", "steer.requeued_aborted", "steer.requeued_turn_ended", "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", "process.tool.not_running", "process.tool.running", "process.tool.stopping", "process.tool.deleted", "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"];
14
+ export declare const ENGINE_MESSAGE_KEYS: readonly ["session.max_iterations", "session.steps_limit", "session.stopped", "session.stopped_reason_denied", "session.denied_blocked", "session.role_tool_blocked", "session.empty_response", "session.output_limit", "session.default_title", "session.reference_label", "session.reference_link", "session.retry_cancelled", "session.subtask_title", "session.list", "session.list_empty", "session.details", "session.not_found", "session.rename_ok", "session.save_error", "session.remote_truncated", "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.model_not_in_catalog", "task.subagent_exec_error_after_retries", "task.depth_limit", "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.context_budget", "subagent.context_budget", "task.background_limit", "task.background_disabled", "task.resume_foreign_child", "task.resume_child_busy", "task.agent_switch_unsupported", "task.continuation_prompt_required", "task.delivery_rejected", "tool.args_error", "tool.exec_error", "tool.malformed_call", "tool.not_found", "tool.permission_denied_default", "tool.doom_loop", "tool.disabled_by_step_limit", "tool.empty_output", "tool.output_truncated", "tool.output_bounded", "tool.shell_error", "tool.shell_timeout", "tool.search_timeout", "tool.command_failed_default", "tool.aborted", "tool.binary_missing", "fs.file_written", "fs.file_edited", "fs.replace_not_found", "fs.replace_multiple", "fs.no_changes", "fs.empty_old_string", "fs.mixed_line_endings", "fs.edit_binary", "fs.write_binary", "fs.file_too_large", "fs.file_not_found", "fs.dir_created", "fs.file_deleted", "fs.patch_applied", "fs.patch_file_line", "fs.patch_not_found", "fs.patch_multiple", "fs.patch_write_failed", "fs.patch_file_missing", "fs.patch_not_regular", "fs.patch_too_large", "fs.patch_binary", "fs.patch_summary", "fs.patch_file_added", "fs.patch_file_deleted", "fs.patch_file_renamed", "fs.patch_add_exists", "fs.patch_delete_missing", "fs.patch_rename_missing", "fs.patch_rename_exists", "fs.patch_path_escapes", "fsread.empty_directory", "fsread.empty_file", "fsread.no_files", "fsread.glob_error", "fsread.truncated", "fsread.directory_truncated", "fsread.line_truncated", "fsread.offset_out_of_range", "fsread.binary", "fsread.glob_truncated", "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.body_truncated", "web.block_timeout", "web.block_error", "web.fetch_all_failed", "web.no_results", "web.search_error", "web.search_rate_limited", "web.search_auth_failed", "web.ssrf_blocked", "web.too_many_redirects", "search.no_matches", "search.matches_truncated", "search.line_truncated", "search.matches_excluded", "search.rg_not_installed", "search.error", "search.path_not_found", "search.path_not_directory", "search.invalid_regex", "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", "todo.summary", "todo.line", "todo.more", "todo.added", "todo.updated", "todo.deleted", "todo.hint_priority", "todo.hint_plan", "project.deps_unavailable", "project.session_read_error", "project.query_not_found", "project.query_ambiguous", "project.list", "project.list_empty", "project.details", "project.attached_no_workspace", "project.cross_instance", "project.hybrid_ambiguous", "project.remote_unavailable", "project.remote_truncated", "project.session_not_found", "project.save_error", "project.workspace_create_error", "project.created", "project.read_error", "project.not_found", "project.attached", "project.move_blocked", "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_cancelled", "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.ask_external", "shellguard.ask_command", "shellguard.ask_code", "shellguard.ask_stdin_code", "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_disabled", "router.provider_unspecified", "router.model_disabled", "router.escalation", "router.context_length_exceeded", "router.rate_limit_exceeded", "router.quota_exceeded", "router.no_user_query", "router.remote_auth_expired", "stop.steps_limit", "stop.context_budget", "stop.stopped_by_user", "stop.denied", "stop.restarted", "stop.orphaned", "stop.internal", "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.compact_enqueued", "command.compact_unavailable", "context.compression_empty", "context.compression_failed", "context.compression_template", "context.compression_output_limit", "context.summary_applied", "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", "ssh.access.key_not_found", "ssh.access.usage_denied", "ssh.access.agent_not_linked", "ssh.access.host_denied", "ssh.access.port_denied", "ssh.access.policy_required", "ssh.access.ambiguous", "ssh.copy.uploaded", "ssh.copy.downloaded", "ssh.tunnel.started", "ssh.tunnel.socks_unsupported", "git.ssh_key_required", "git.ssh_key_required_hint", "git.ssh_keys_none", "sshkeys.tool.header", "sshkeys.tool.empty", "sshkeys.tool.deps_unavailable", "git.repo_path_invalid", "git.repo_not_a_repo", "git.repo_exists", "git.repo_occupied_repo", "git.repo_occupied_stub", "git.repo_occupied_dir", "git.repo_path_unreadable", "git.clone_timeout", "git.fetch_timeout", "git.timeout", "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", "steer.dropped_aborted", "steer.dropped_turn_ended", "steer.requeued_aborted", "steer.requeued_turn_ended", "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", "timer.tool.deps_unavailable", "timer.tool.no_project", "timer.tool.not_found", "timer.tool.created", "timer.tool.updated", "timer.tool.cancelled", "timer.tool.stopped", "timer.tool.already_fired", "timer.tool.already_stopped", "timer.tool.deleted", "timer.tool.show_header", "timer.tool.duplicate", "timer.tool.wrong_kind", "timer.tool.time_in_past", "timer.tool.not_active", "timer.tool.list_header", "timer.tool.list_empty", "timer.tool.invalid_comment", "timer.tool.invalid_interval", "timer.tool.invalid_time", "timer.tool.invalid_timezone", "timer.tool.invalid_horizon", "timer.tool.invalid_target", "timer.tool.limit_exceeded", "execution.remote_url_required", "execution.remote_unavailable", "question.answered", "question.cancelled", "question.timeout", "question.deps_unavailable", "background.started.process", "background.started.subagent", "background.detached.process", "background.detached.subagent", "background.detached.process_message", "background.detached.subagent_message", "process.deps_unavailable", "process.background_limit", "process.background_unsupported", "process.background_disabled", "process.tool.empty", "process.tool.not_found", "process.tool.deps_unavailable", "process.tool.header", "process.tool.no_log", "process.tool.child_history", "process.tool.not_running", "process.tool.running", "process.tool.stopping", "process.tool.deleted", "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", "instance.deps_unavailable", "instance.info", "instance.mcp_list", "instance.mcp_not_found", "instance.mcp_test_ok", "instance.mcp_test_failed", "instance.mcp_add.added", "instance.mcp_update.updated", "instance.mcp_remove.removed", "instance.mcp_enable.session_ok", "instance.mcp_enable.project_ok", "instance.mcp_enable.instance_ok", "instance.mcp_enable.no_project", "instance.mcp_enable.no_session", "instance.mcp_enable.session_forbidden", "instance.mcp_reconnect.ok", "instance.mcp_reconnect.failed", "instance.mcp.forbidden", "instance.mcp.instance_forbidden", "instance.mcp.project_forbidden", "instance.mcp.credential_unsupported", "instance.mcp.secret_header", "instance.mcp.network_denied", "instance.mcp.invalid_config", "instance.mcp.exists", "terminal.tool.deps_unavailable", "terminal.tool.disabled", "terminal.tool.project_required", "terminal.tool.empty", "terminal.tool.header", "terminal.tool.not_found", "terminal.tool.no_output", "terminal.tool.opened", "terminal.tool.written", "terminal.tool.signalled", "terminal.tool.closed", "terminal.tool.command_denied", "terminal.tool.command_requires_approval", "terminal.tool.limit", "terminal.tool.unavailable", "terminal.tool.history_empty", "terminal.tool.snapshot_empty", "terminal.tool.run_background_started", "terminal.tool.run_result_header", "terminal.tool.run_finished", "terminal.tool.run_timeout", "terminal.tool.run_exited", "terminal.tool.run_still_running", "terminal.tool.run_busy", "terminal.tool.foreground_app", "terminal.tool.foreground_busy", "terminal.tool.exit_code", "script.tool.deps_unavailable", "script.tool.run_hint", "script.tool.empty", "script.tool.header", "script.tool.audit_failed", "script.not_found", "script.untrusted", "script.denied", "script.args_not_allowed", "script.args_invalid", "script.cwd_outside", "script.background_disabled", "script.started", "script.plan_blocked", "script.gateway_unsupported"];
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}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
@@ -25,6 +25,14 @@ export const ENGINE_MESSAGE_KEYS = [
25
25
  'session.reference_link',
26
26
  'session.retry_cancelled',
27
27
  'session.subtask_title',
28
+ // Управление сессиями из чата (list_sessions/get_session_info/session_rename).
29
+ 'session.list',
30
+ 'session.list_empty',
31
+ 'session.details',
32
+ 'session.not_found',
33
+ 'session.rename_ok',
34
+ 'session.save_error',
35
+ 'session.remote_truncated',
28
36
  'task.stopped_by_user',
29
37
  'task.stopped_before_completion',
30
38
  'task.stopped_by_deny',
@@ -51,11 +59,15 @@ export const ENGINE_MESSAGE_KEYS = [
51
59
  'task.steps_limit_empty',
52
60
  'task.context_budget',
53
61
  'subagent.context_budget',
54
- 'task.background_started',
55
62
  'task.background_limit',
56
63
  'task.background_disabled',
57
64
  'task.resume_foreign_child',
58
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',
59
71
  'tool.args_error',
60
72
  'tool.exec_error',
61
73
  // Вызов инструмента без имени/идентификатора — результат всё равно должен
@@ -141,6 +153,10 @@ export const ENGINE_MESSAGE_KEYS = [
141
153
  'web.too_many_redirects',
142
154
  'search.no_matches',
143
155
  'search.matches_truncated',
156
+ // Кап длины строки совпадения (общий с `read_file`).
157
+ 'search.line_truncated',
158
+ // Скрытые совпадения в исключённых путях (зависимости/артефакты сборки).
159
+ 'search.matches_excluded',
144
160
  'search.rg_not_installed',
145
161
  'search.error',
146
162
  // Различимые причины отказа поиска (ADR-041): путь не найден / путь не
@@ -191,6 +207,17 @@ export const ENGINE_MESSAGE_KEYS = [
191
207
  'todo.hint_plan',
192
208
  'project.deps_unavailable',
193
209
  'project.session_read_error',
210
+ // Поиск/список проектов (list_projects/get_project, project_attach по имени).
211
+ 'project.query_not_found',
212
+ 'project.query_ambiguous',
213
+ 'project.list',
214
+ 'project.list_empty',
215
+ 'project.details',
216
+ 'project.attached_no_workspace',
217
+ 'project.cross_instance',
218
+ 'project.hybrid_ambiguous',
219
+ 'project.remote_unavailable',
220
+ 'project.remote_truncated',
194
221
  'project.session_not_found',
195
222
  'project.save_error',
196
223
  'project.workspace_create_error',
@@ -198,6 +225,7 @@ export const ENGINE_MESSAGE_KEYS = [
198
225
  'project.read_error',
199
226
  'project.not_found',
200
227
  'project.attached',
228
+ 'project.move_blocked',
201
229
  'project.log_no_project',
202
230
  'project.log_save_error',
203
231
  'project.log_added',
@@ -282,6 +310,10 @@ export const ENGINE_MESSAGE_KEYS = [
282
310
  'shellguard.deny_prefix',
283
311
  'shellguard.deny_path',
284
312
  'shellguard.ask_path',
313
+ 'shellguard.ask_external',
314
+ 'shellguard.ask_command',
315
+ 'shellguard.ask_code',
316
+ 'shellguard.ask_stdin_code',
285
317
  'shellguard.deny_dir',
286
318
  'protectedpaths.unresolvable',
287
319
  'protectedpaths.dynamic',
@@ -302,7 +334,17 @@ export const ENGINE_MESSAGE_KEYS = [
302
334
  'router.escalation',
303
335
  'router.context_length_exceeded',
304
336
  'router.rate_limit_exceeded',
337
+ 'router.quota_exceeded',
305
338
  'router.no_user_query',
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',
306
348
  'qc.min_length_ok',
307
349
  'qc.min_length_fail_detail',
308
350
  'qc.min_length_fail',
@@ -332,14 +374,14 @@ export const ENGINE_MESSAGE_KEYS = [
332
374
  'micro.intent.debug',
333
375
  'micro.intent.fix',
334
376
  'micro.intent.test',
335
- // --- Скиллы (ADR-046) ---
377
+ // --- Скиллы (ADR-126) ---
336
378
  'skill.args_error',
337
379
  'skill.not_found',
338
380
  'skill.untrusted',
339
381
  'skill.delegation',
340
382
  'skill.file_not_found',
341
383
  'skill.scope_disabled',
342
- // --- Slash-команды (ADR-046 §7) ---
384
+ // --- Slash-команды (ADR-126 §1) ---
343
385
  'command.unknown',
344
386
  'command.denied',
345
387
  'command.unavailable',
@@ -348,13 +390,15 @@ export const ENGINE_MESSAGE_KEYS = [
348
390
  'command.skills_empty',
349
391
  'command.summary_enqueued',
350
392
  'command.summary_unavailable',
393
+ 'command.compact_enqueued',
394
+ 'command.compact_unavailable',
351
395
  // --- Сжатие контекста (summarization / compaction) ---
352
396
  'context.compression_empty',
353
397
  'context.compression_failed',
354
398
  'context.compression_template',
355
399
  'context.compression_output_limit',
356
400
  'context.summary_applied',
357
- // --- Inline shell (ADR-046 §7.4) ---
401
+ // --- Inline shell (ADR-126 §15) ---
358
402
  'command.inline_shell_disabled',
359
403
  'command.inline_shell_denied',
360
404
  'command.inline_shell_failed',
@@ -366,6 +410,20 @@ export const ENGINE_MESSAGE_KEYS = [
366
410
  'sshkey.encryption_unavailable',
367
411
  'sshkey.decrypt_failed',
368
412
  'sshkey.env_failed',
413
+ // Отказы единого гейта SSH-ключей (PROP-124 §3) — по одному ключу на
414
+ // машинный код отказа (`SshAccessErrorCode`).
415
+ 'ssh.access.key_not_found',
416
+ 'ssh.access.usage_denied',
417
+ 'ssh.access.agent_not_linked',
418
+ 'ssh.access.host_denied',
419
+ 'ssh.access.port_denied',
420
+ 'ssh.access.policy_required',
421
+ 'ssh.access.ambiguous',
422
+ 'ssh.copy.uploaded',
423
+ 'ssh.copy.downloaded',
424
+ // PROP-124 §4c: адресный ssh-тул проброса порта (`ssh_tunnel`).
425
+ 'ssh.tunnel.started',
426
+ 'ssh.tunnel.socks_unsupported',
369
427
  'git.ssh_key_required',
370
428
  'git.ssh_key_required_hint',
371
429
  'git.ssh_keys_none',
@@ -479,6 +537,31 @@ export const ENGINE_MESSAGE_KEYS = [
479
537
  'schedule.tool.jobs_empty',
480
538
  'schedule.tool.target_forbidden',
481
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',
482
565
  // --- Исполнение (ADR-077) ---
483
566
  'execution.remote_url_required',
484
567
  'execution.remote_unavailable',
@@ -487,13 +570,21 @@ export const ENGINE_MESSAGE_KEYS = [
487
570
  'question.cancelled',
488
571
  'question.timeout',
489
572
  'question.deps_unavailable',
490
- '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',
491
584
  'process.deps_unavailable',
492
585
  'process.background_limit',
493
586
  'process.background_unsupported',
494
587
  'process.background_disabled',
495
- // ADR-113 §detach: идущая команда переведена в фон (без перезапуска).
496
- 'process.detached_started',
497
588
  'process.tool.empty',
498
589
  'process.tool.not_found',
499
590
  'process.tool.deps_unavailable',
@@ -534,6 +625,78 @@ export const ENGINE_MESSAGE_KEYS = [
534
625
  'models.list.provider_unknown',
535
626
  'models.list.deps_unavailable',
536
627
  'models.list.unavailable',
628
+ // --- Инстанс и MCP-реестр (Workstream A1): synth_info/synth_mcp_* ---
629
+ 'instance.deps_unavailable',
630
+ 'instance.info',
631
+ 'instance.mcp_list',
632
+ 'instance.mcp_not_found',
633
+ 'instance.mcp_test_ok',
634
+ 'instance.mcp_test_failed',
635
+ // --- Write-мутации MCP (Workstream A2) ---
636
+ 'instance.mcp_add.added',
637
+ 'instance.mcp_update.updated',
638
+ 'instance.mcp_remove.removed',
639
+ 'instance.mcp_enable.session_ok',
640
+ 'instance.mcp_enable.project_ok',
641
+ 'instance.mcp_enable.instance_ok',
642
+ 'instance.mcp_enable.no_project',
643
+ 'instance.mcp_enable.no_session',
644
+ 'instance.mcp_enable.session_forbidden',
645
+ 'instance.mcp_reconnect.ok',
646
+ 'instance.mcp_reconnect.failed',
647
+ 'instance.mcp.forbidden',
648
+ 'instance.mcp.instance_forbidden',
649
+ 'instance.mcp.project_forbidden',
650
+ 'instance.mcp.credential_unsupported',
651
+ 'instance.mcp.secret_header',
652
+ 'instance.mcp.network_denied',
653
+ 'instance.mcp.invalid_config',
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',
537
700
  ];
538
701
  export const ENGINE_MESSAGE_PARAMS = {
539
702
  'session.max_iterations': [],
@@ -549,6 +712,13 @@ export const ENGINE_MESSAGE_PARAMS = {
549
712
  'session.reference_link': ["label", "id", "from", "to"],
550
713
  'session.retry_cancelled': [],
551
714
  'session.subtask_title': ["description"],
715
+ 'session.list': ["count", "items"],
716
+ 'session.list_empty': [],
717
+ 'session.details': ["name", "id", "json"],
718
+ 'session.not_found': ["id"],
719
+ 'session.rename_ok': ["title"],
720
+ 'session.save_error': ["error"],
721
+ 'session.remote_truncated': [],
552
722
  'task.stopped_by_user': [],
553
723
  'task.stopped_before_completion': [],
554
724
  'task.stopped_by_deny': [],
@@ -575,11 +745,13 @@ export const ENGINE_MESSAGE_PARAMS = {
575
745
  'task.steps_limit_empty': ["limit"],
576
746
  'task.context_budget': ["tokens", "steps", "tasks"],
577
747
  'subagent.context_budget': ["tokens", "steps"],
578
- 'task.background_started': ["id"],
579
748
  'task.background_limit': ["limit"],
580
749
  'task.background_disabled': [],
581
750
  'task.resume_foreign_child': ["id"],
582
751
  'task.resume_child_busy': ["id"],
752
+ 'task.agent_switch_unsupported': ["current", "requested"],
753
+ 'task.continuation_prompt_required': [],
754
+ 'task.delivery_rejected': ["reason"],
583
755
  'tool.args_error': ["tool", "issues"],
584
756
  'tool.exec_error': ["tool", "error"],
585
757
  'tool.malformed_call': ["tool", "id"],
@@ -656,6 +828,8 @@ export const ENGINE_MESSAGE_PARAMS = {
656
828
  'web.too_many_redirects': [],
657
829
  'search.no_matches': [],
658
830
  'search.matches_truncated': ["shown", "total"],
831
+ 'search.line_truncated': [],
832
+ 'search.matches_excluded': ["count", "categories"],
659
833
  'search.rg_not_installed': [],
660
834
  'search.error': ["error"],
661
835
  'search.path_not_found': ["path"],
@@ -703,6 +877,16 @@ export const ENGINE_MESSAGE_PARAMS = {
703
877
  'todo.hint_plan': ["plan"],
704
878
  'project.deps_unavailable': ["tool"],
705
879
  'project.session_read_error': [],
880
+ 'project.query_not_found': ["name"],
881
+ 'project.query_ambiguous': ["name", "items"],
882
+ 'project.list': ["count", "items"],
883
+ 'project.list_empty': [],
884
+ 'project.details': ["name", "id", "json"],
885
+ 'project.attached_no_workspace': ["name"],
886
+ 'project.cross_instance': ["name", "id"],
887
+ 'project.hybrid_ambiguous': ["name", "items"],
888
+ 'project.remote_unavailable': [],
889
+ 'project.remote_truncated': [],
706
890
  'project.session_not_found': [],
707
891
  'project.save_error': ["error"],
708
892
  'project.workspace_create_error': ["error"],
@@ -710,6 +894,7 @@ export const ENGINE_MESSAGE_PARAMS = {
710
894
  'project.read_error': [],
711
895
  'project.not_found': ["id"],
712
896
  'project.attached': ["name"],
897
+ 'project.move_blocked': ["details"],
713
898
  'project.log_no_project': [],
714
899
  'project.log_save_error': ["error"],
715
900
  'project.log_added': ["count"],
@@ -794,6 +979,10 @@ export const ENGINE_MESSAGE_PARAMS = {
794
979
  'shellguard.deny_prefix': ["prefix"],
795
980
  'shellguard.deny_path': ["path"],
796
981
  'shellguard.ask_path': ["path"],
982
+ 'shellguard.ask_external': ["path"],
983
+ 'shellguard.ask_command': ["command"],
984
+ 'shellguard.ask_code': ["code"],
985
+ 'shellguard.ask_stdin_code': [],
797
986
  'shellguard.deny_dir': ["path", "dir"],
798
987
  'protectedpaths.unresolvable': [],
799
988
  'protectedpaths.dynamic': [],
@@ -814,7 +1003,16 @@ export const ENGINE_MESSAGE_PARAMS = {
814
1003
  'router.escalation': ["provider", "model", "reason"],
815
1004
  'router.context_length_exceeded': [],
816
1005
  'router.rate_limit_exceeded': [],
1006
+ 'router.quota_exceeded': [],
817
1007
  'router.no_user_query': [],
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': [],
818
1016
  'qc.min_length_ok': ["length", "min"],
819
1017
  'qc.min_length_fail_detail': ["min", "length"],
820
1018
  'qc.min_length_fail': ["min"],
@@ -844,14 +1042,14 @@ export const ENGINE_MESSAGE_PARAMS = {
844
1042
  'micro.intent.debug': [],
845
1043
  'micro.intent.fix': [],
846
1044
  'micro.intent.test': [],
847
- // --- Скиллы (ADR-046) ---
1045
+ // --- Скиллы (ADR-126) ---
848
1046
  'skill.args_error': ["issues"],
849
1047
  'skill.not_found': ["name"],
850
1048
  'skill.untrusted': ["name"],
851
1049
  'skill.delegation': ["name", "capabilities", "agent"],
852
1050
  'skill.file_not_found': ["path"],
853
1051
  'skill.scope_disabled': ["name", "reason"],
854
- // --- Slash-команды (ADR-046 §7) ---
1052
+ // --- Slash-команды (ADR-126 §1) ---
855
1053
  'command.unknown': ["name"],
856
1054
  'command.denied': ["name"],
857
1055
  'command.unavailable': ["name", "capabilities"],
@@ -860,13 +1058,15 @@ export const ENGINE_MESSAGE_PARAMS = {
860
1058
  'command.skills_empty': [],
861
1059
  'command.summary_enqueued': [],
862
1060
  'command.summary_unavailable': [],
1061
+ 'command.compact_enqueued': [],
1062
+ 'command.compact_unavailable': [],
863
1063
  // --- Сжатие контекста (summarization / compaction) ---
864
1064
  'context.compression_empty': [],
865
1065
  'context.compression_failed': ["mode", "reason"],
866
1066
  'context.compression_template': [],
867
1067
  'context.compression_output_limit': [],
868
1068
  'context.summary_applied': ["mode"],
869
- // --- Inline shell (ADR-046 §7.4) ---
1069
+ // --- Inline shell (ADR-126 §15) ---
870
1070
  'command.inline_shell_disabled': [],
871
1071
  'command.inline_shell_denied': ["command", "reason"],
872
1072
  'command.inline_shell_failed': ["output"],
@@ -878,6 +1078,19 @@ export const ENGINE_MESSAGE_PARAMS = {
878
1078
  'sshkey.encryption_unavailable': [],
879
1079
  'sshkey.decrypt_failed': ["id"],
880
1080
  'sshkey.env_failed': [],
1081
+ // Отказы гейта SSH-ключей (PROP-124 §3).
1082
+ 'ssh.access.key_not_found': ["key"],
1083
+ 'ssh.access.usage_denied': ["key", "usage"],
1084
+ 'ssh.access.agent_not_linked': ["key", "agent"],
1085
+ 'ssh.access.host_denied': ["key", "host"],
1086
+ 'ssh.access.port_denied': ["key", "port"],
1087
+ 'ssh.access.policy_required': ["key"],
1088
+ 'ssh.access.ambiguous': ["keys"],
1089
+ 'ssh.copy.uploaded': ["local", "remote", "host"],
1090
+ 'ssh.copy.downloaded': ["remote", "host", "local"],
1091
+ // PROP-124 §4c: адресный ssh-тул проброса порта (`ssh_tunnel`).
1092
+ 'ssh.tunnel.started': ["direction", "listen_port", "target", "host", "id", "log"],
1093
+ 'ssh.tunnel.socks_unsupported': [],
881
1094
  'git.ssh_key_required': ["path"],
882
1095
  'git.ssh_key_required_hint': ["path", "keys"],
883
1096
  'git.ssh_keys_none': [],
@@ -991,6 +1204,31 @@ export const ENGINE_MESSAGE_PARAMS = {
991
1204
  'schedule.tool.jobs_empty': [],
992
1205
  'schedule.tool.target_forbidden': ["reason"],
993
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"],
994
1232
  // --- Исполнение (ADR-077) ---
995
1233
  'execution.remote_url_required': [],
996
1234
  'execution.remote_unavailable': ["reason"],
@@ -999,12 +1237,16 @@ export const ENGINE_MESSAGE_PARAMS = {
999
1237
  'question.cancelled': ["reason"],
1000
1238
  'question.timeout': [],
1001
1239
  'question.deps_unavailable': [],
1002
- '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"],
1003
1246
  'process.deps_unavailable': [],
1004
1247
  'process.background_limit': ["limit"],
1005
1248
  'process.background_unsupported': [],
1006
1249
  'process.background_disabled': [],
1007
- 'process.detached_started': ["id", "log"],
1008
1250
  'process.tool.empty': [],
1009
1251
  'process.tool.not_found': ["id"],
1010
1252
  'process.tool.deps_unavailable': [],
@@ -1040,6 +1282,76 @@ export const ENGINE_MESSAGE_PARAMS = {
1040
1282
  'models.list.provider_unknown': ["provider"],
1041
1283
  'models.list.deps_unavailable': [],
1042
1284
  'models.list.unavailable': ["reason"],
1285
+ 'instance.deps_unavailable': ["tool"],
1286
+ 'instance.info': ["json"],
1287
+ 'instance.mcp_list': ["count", "json"],
1288
+ 'instance.mcp_not_found': ["name", "available"],
1289
+ 'instance.mcp_test_ok': ["name", "count"],
1290
+ 'instance.mcp_test_failed': ["name", "error"],
1291
+ 'instance.mcp_add.added': ["name", "origin"],
1292
+ 'instance.mcp_update.updated': ["name"],
1293
+ 'instance.mcp_remove.removed': ["name"],
1294
+ 'instance.mcp_enable.session_ok': ["name", "enabled"],
1295
+ 'instance.mcp_enable.project_ok': ["name", "enabled"],
1296
+ 'instance.mcp_enable.instance_ok': ["name", "enabled"],
1297
+ 'instance.mcp_enable.no_project': [],
1298
+ 'instance.mcp_enable.no_session': [],
1299
+ 'instance.mcp_enable.session_forbidden': [],
1300
+ 'instance.mcp_reconnect.ok': ["name", "count"],
1301
+ 'instance.mcp_reconnect.failed': ["name", "error"],
1302
+ 'instance.mcp.forbidden': [],
1303
+ 'instance.mcp.instance_forbidden': [],
1304
+ 'instance.mcp.project_forbidden': [],
1305
+ 'instance.mcp.credential_unsupported': [],
1306
+ 'instance.mcp.secret_header': ["error"],
1307
+ 'instance.mcp.network_denied': ["url", "reason"],
1308
+ 'instance.mcp.invalid_config': ["error"],
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': [],
1043
1355
  };
1044
1356
  /** Достаёт имена {param}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
1045
1357
  export function extractParams(template) {