@itphx/synth-shared 0.10.0 → 0.11.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.
- package/dist/config/defaults.js +60 -14
- package/dist/config/env-overrides.d.ts +7 -4
- package/dist/config/env-overrides.js +46 -13
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.js +3 -0
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/loader.js +23 -4
- package/dist/config/proxy.d.ts +415 -0
- package/dist/config/proxy.js +1565 -0
- package/dist/config/resolve.d.ts +77 -10
- package/dist/config/resolve.js +203 -17
- package/dist/config/tls-runtime.d.ts +78 -0
- package/dist/config/tls-runtime.js +356 -0
- package/dist/config/tls.d.ts +215 -0
- package/dist/config/tls.js +394 -0
- package/dist/config/types.d.ts +1820 -334
- package/dist/config/types.js +320 -54
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +18 -10
- package/dist/index.d.ts +11 -2
- package/dist/index.js +11 -2
- package/dist/interfaces/index.d.ts +3 -3
- package/dist/protocols/index.d.ts +0 -1
- package/dist/schemas/index.d.ts +230 -105
- package/dist/schemas/index.js +121 -74
- package/dist/skills/frontmatter.js +1 -1
- package/dist/types/agent.d.ts +30 -0
- package/dist/types/agent.js +1 -0
- package/dist/types/analytics.d.ts +113 -0
- package/dist/types/analytics.js +61 -0
- package/dist/types/bus-events.d.ts +7 -0
- package/dist/types/bus-events.js +1 -0
- package/dist/types/commands.d.ts +10 -10
- package/dist/types/commands.js +2 -2
- package/dist/types/decision.d.ts +16 -16
- package/dist/types/decision.js +4 -4
- package/dist/types/egress.d.ts +114 -0
- package/dist/types/egress.js +68 -0
- package/dist/types/events.d.ts +22 -23
- package/dist/types/fs.d.ts +55 -0
- package/dist/types/fs.js +27 -0
- package/dist/types/git.d.ts +63 -0
- package/dist/types/git.js +1 -0
- package/dist/types/hooks.d.ts +24 -4
- package/dist/types/index.d.ts +15 -1165
- package/dist/types/index.js +44 -244
- package/dist/types/llm.d.ts +32 -0
- package/dist/types/llm.js +8 -0
- package/dist/types/maintenance.d.ts +39 -0
- package/dist/types/maintenance.js +11 -0
- package/dist/types/mcp.d.ts +169 -0
- package/dist/types/mcp.js +119 -0
- package/dist/types/message.d.ts +63 -0
- package/dist/types/message.js +12 -0
- package/dist/types/permission.d.ts +9 -7
- package/dist/types/permission.js +1 -1
- package/dist/types/project.d.ts +134 -0
- package/dist/types/project.js +67 -0
- package/dist/types/prompt.d.ts +237 -0
- package/dist/types/prompt.js +15 -0
- package/dist/types/provider.d.ts +84 -0
- package/dist/types/provider.js +35 -0
- package/dist/types/schedules.d.ts +8 -8
- package/dist/types/schedules.js +1 -1
- package/dist/types/service-keys.d.ts +10 -10
- package/dist/types/service-keys.js +3 -3
- package/dist/types/session.d.ts +268 -0
- package/dist/types/session.js +13 -0
- package/dist/types/skills.d.ts +11 -11
- package/dist/types/skills.js +6 -6
- package/dist/types/tools.d.ts +3 -3
- package/dist/types/user.d.ts +113 -0
- package/dist/types/user.js +31 -0
- package/dist/types/webhooks.d.ts +6 -6
- package/dist/types/webhooks.js +1 -1
- package/dist/utils/glob.d.ts +1 -1
- package/dist/utils/glob.js +1 -1
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +55 -2
- package/dist/utils/workspace.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/i18n/index.d.ts
CHANGED
|
@@ -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", "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.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.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.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", "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"];
|
|
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}-плейсхолдеров из шаблона. Уникальные, в порядке появления. */
|
package/dist/i18n/index.js
CHANGED
|
@@ -74,6 +74,8 @@ export const ENGINE_MESSAGE_KEYS = [
|
|
|
74
74
|
'web.fetch_all_failed',
|
|
75
75
|
'web.no_results',
|
|
76
76
|
'web.search_error',
|
|
77
|
+
'web.ssrf_blocked',
|
|
78
|
+
'web.too_many_redirects',
|
|
77
79
|
'search.no_matches',
|
|
78
80
|
'search.matches_truncated',
|
|
79
81
|
'search.rg_not_installed',
|
|
@@ -184,6 +186,8 @@ export const ENGINE_MESSAGE_KEYS = [
|
|
|
184
186
|
'permission.mcp_unavailable',
|
|
185
187
|
'permission.dep_unavailable',
|
|
186
188
|
'permission.workspace_unavailable',
|
|
189
|
+
'permission.storage_unavailable',
|
|
190
|
+
'permission.external_directory_default',
|
|
187
191
|
'permission.no_rules',
|
|
188
192
|
'permission.rule_matched',
|
|
189
193
|
'permission.rule_pattern_matched',
|
|
@@ -242,14 +246,14 @@ export const ENGINE_MESSAGE_KEYS = [
|
|
|
242
246
|
'micro.intent.debug',
|
|
243
247
|
'micro.intent.fix',
|
|
244
248
|
'micro.intent.test',
|
|
245
|
-
// --- Скиллы (
|
|
249
|
+
// --- Скиллы (ADR-046) ---
|
|
246
250
|
'skill.args_error',
|
|
247
251
|
'skill.not_found',
|
|
248
252
|
'skill.untrusted',
|
|
249
253
|
'skill.delegation',
|
|
250
254
|
'skill.file_not_found',
|
|
251
255
|
'skill.scope_disabled',
|
|
252
|
-
// --- Slash-команды (
|
|
256
|
+
// --- Slash-команды (ADR-046 §7) ---
|
|
253
257
|
'command.unknown',
|
|
254
258
|
'command.denied',
|
|
255
259
|
'command.unavailable',
|
|
@@ -258,13 +262,13 @@ export const ENGINE_MESSAGE_KEYS = [
|
|
|
258
262
|
'command.skills_empty',
|
|
259
263
|
'command.summary_enqueued',
|
|
260
264
|
'command.summary_unavailable',
|
|
261
|
-
// --- Inline shell (
|
|
265
|
+
// --- Inline shell (ADR-046 §7.4) ---
|
|
262
266
|
'command.inline_shell_disabled',
|
|
263
267
|
'command.inline_shell_denied',
|
|
264
268
|
'command.inline_shell_failed',
|
|
265
269
|
'command.inline_shell_truncated',
|
|
266
270
|
'command.inline_shell_unavailable',
|
|
267
|
-
// --- Git-репозитории и SSH-ключи (
|
|
271
|
+
// --- Git-репозитории и SSH-ключи (ADR-076) ---
|
|
268
272
|
'sshkey.not_found',
|
|
269
273
|
'sshkey.name_exists',
|
|
270
274
|
'sshkey.encryption_unavailable',
|
|
@@ -273,7 +277,7 @@ export const ENGINE_MESSAGE_KEYS = [
|
|
|
273
277
|
'git.ssh_key_required',
|
|
274
278
|
'git.repo_path_invalid',
|
|
275
279
|
'git.repo_exists',
|
|
276
|
-
// --- Внешние события и хуки (
|
|
280
|
+
// --- Внешние события и хуки (ADR-030 / ADR-089) ---
|
|
277
281
|
'event.ingested',
|
|
278
282
|
'event.routed.bound',
|
|
279
283
|
'event.routed.ephemeral',
|
|
@@ -354,6 +358,8 @@ export const ENGINE_MESSAGE_PARAMS = {
|
|
|
354
358
|
'web.fetch_all_failed': [],
|
|
355
359
|
'web.no_results': ["query"],
|
|
356
360
|
'web.search_error': ["error"],
|
|
361
|
+
'web.ssrf_blocked': ["reason"],
|
|
362
|
+
'web.too_many_redirects': [],
|
|
357
363
|
'search.no_matches': [],
|
|
358
364
|
'search.matches_truncated': ["total"],
|
|
359
365
|
'search.rg_not_installed': [],
|
|
@@ -464,6 +470,8 @@ export const ENGINE_MESSAGE_PARAMS = {
|
|
|
464
470
|
'permission.mcp_unavailable': ["mode"],
|
|
465
471
|
'permission.dep_unavailable': ["binary"],
|
|
466
472
|
'permission.workspace_unavailable': [],
|
|
473
|
+
'permission.storage_unavailable': [],
|
|
474
|
+
'permission.external_directory_default': ["path", "action"],
|
|
467
475
|
'permission.no_rules': ["tool"],
|
|
468
476
|
'permission.rule_matched': ["key", "action"],
|
|
469
477
|
'permission.rule_pattern_matched': ["key", "pattern", "action", "path"],
|
|
@@ -522,14 +530,14 @@ export const ENGINE_MESSAGE_PARAMS = {
|
|
|
522
530
|
'micro.intent.debug': [],
|
|
523
531
|
'micro.intent.fix': [],
|
|
524
532
|
'micro.intent.test': [],
|
|
525
|
-
// --- Скиллы (
|
|
533
|
+
// --- Скиллы (ADR-046) ---
|
|
526
534
|
'skill.args_error': ["issues"],
|
|
527
535
|
'skill.not_found': ["name"],
|
|
528
536
|
'skill.untrusted': ["name"],
|
|
529
537
|
'skill.delegation': ["name", "capabilities", "agent"],
|
|
530
538
|
'skill.file_not_found': ["path"],
|
|
531
539
|
'skill.scope_disabled': ["name", "reason"],
|
|
532
|
-
// --- Slash-команды (
|
|
540
|
+
// --- Slash-команды (ADR-046 §7) ---
|
|
533
541
|
'command.unknown': ["name"],
|
|
534
542
|
'command.denied': ["name"],
|
|
535
543
|
'command.unavailable': ["name", "capabilities"],
|
|
@@ -538,13 +546,13 @@ export const ENGINE_MESSAGE_PARAMS = {
|
|
|
538
546
|
'command.skills_empty': [],
|
|
539
547
|
'command.summary_enqueued': [],
|
|
540
548
|
'command.summary_unavailable': [],
|
|
541
|
-
// --- Inline shell (
|
|
549
|
+
// --- Inline shell (ADR-046 §7.4) ---
|
|
542
550
|
'command.inline_shell_disabled': [],
|
|
543
551
|
'command.inline_shell_denied': ["command", "reason"],
|
|
544
552
|
'command.inline_shell_failed': ["output"],
|
|
545
553
|
'command.inline_shell_truncated': ["limit"],
|
|
546
554
|
'command.inline_shell_unavailable': [],
|
|
547
|
-
// --- Git-репозитории и SSH-ключи (
|
|
555
|
+
// --- Git-репозитории и SSH-ключи (ADR-076) ---
|
|
548
556
|
'sshkey.not_found': ["id"],
|
|
549
557
|
'sshkey.name_exists': ["name"],
|
|
550
558
|
'sshkey.encryption_unavailable': [],
|
|
@@ -553,7 +561,7 @@ export const ENGINE_MESSAGE_PARAMS = {
|
|
|
553
561
|
'git.ssh_key_required': ["path"],
|
|
554
562
|
'git.repo_path_invalid': ["path"],
|
|
555
563
|
'git.repo_exists': ["path"],
|
|
556
|
-
// --- Внешние события и хуки (
|
|
564
|
+
// --- Внешние события и хуки (ADR-030 / ADR-089) ---
|
|
557
565
|
'event.ingested': ["id", "source"],
|
|
558
566
|
'event.routed.bound': ["sessionId"],
|
|
559
567
|
'event.routed.ephemeral': ["agentTemplate"],
|
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,18 @@ export * from './utils/index.js';
|
|
|
8
8
|
export * from './skills/frontmatter.js';
|
|
9
9
|
export { SYNTH_VERSION } from './version.js';
|
|
10
10
|
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';
|
|
11
|
+
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 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, securityTlsConfigSchema, type SecurityTlsConfig, type PromptInjectionConfig, type ProtectedPathsConfig, type LLMGatewayConfig, type LLMGatewayRateLimitConfig, type LLMGatewayAuditConfig, } from './config/index.js';
|
|
12
12
|
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';
|
|
13
|
+
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';
|
|
14
|
+
export type { StorageBackend, ResolvedPostgresConfig } from './config/index.js';
|
|
14
15
|
export { applyEnvOverrides, envOverrideName, toSnakeCase, parseEnvValue, ENV_OVERRIDES } from './config/index.js';
|
|
16
|
+
export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, matchTlsHostPattern, normalizeTlsHost, isPemContent, TLS_ENV, } from './config/index.js';
|
|
17
|
+
export type { ResolvedTlsConfig, ResolvedTlsTrust, ResolvedTlsProfiles, TlsClientProfile, TlsClientMaterial, TlsMappingSettings, TlsRuntimeSettings, TlsSource, TlsConfigSource, } from './config/index.js';
|
|
18
|
+
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';
|
|
19
|
+
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';
|
|
20
|
+
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';
|
|
21
|
+
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';
|
|
22
|
+
export { buildPostgresSslOptions, findDsnTlsParams, normalizePostgresSslMode, POSTGRES_SSL_MODES, POSTGRES_SSL_MODE_ALIASES, DSN_TLS_PARAMS, } from './config/index.js';
|
|
23
|
+
export type { PostgresSslMode, PostgresSslBuildInput, PostgresSslBuildResult, } from './config/index.js';
|
|
15
24
|
export type { DeployMode } from './config/index.js';
|
|
16
25
|
export type { EnvOverrideDefinition, EnvOverrideType, ParsedEnvValue } from './config/index.js';
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,16 @@ export * from './skills/frontmatter.js';
|
|
|
10
10
|
export { SYNTH_VERSION } from './version.js';
|
|
11
11
|
export * from './model-metadata.js';
|
|
12
12
|
// Конфигурация — выборочный экспорт (избегаем конфликта AuthConfig/TestUser)
|
|
13
|
-
export { toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, webhooksConfigSchema, } from './config/index.js';
|
|
13
|
+
export { postgresStorageConfigSchema, toolsDisabledConfigSchema, skillsConfigSchema, commandsConfigSchema, instructionsConfigSchema, instructionSourceConfigSchema, decisionConfigSchema, webhooksConfigSchema, securityTlsConfigSchema, } from './config/index.js';
|
|
14
14
|
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';
|
|
15
|
+
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
16
|
export { applyEnvOverrides, envOverrideName, toSnakeCase, parseEnvValue, ENV_OVERRIDES } from './config/index.js';
|
|
17
|
+
// ADR-099: резолверы доверия TLS/CA (`security.tls`).
|
|
18
|
+
export { resolveTlsConfig, resolveTlsTrust, resolveTlsProfiles, selectTlsClientProfile, matchTlsHostPattern, normalizeTlsHost, isPemContent, TLS_ENV, } from './config/index.js';
|
|
19
|
+
// ADR-099: bootstrap-хранилище runtime-настроек TLS ({dataDir}/security-tls.json).
|
|
20
|
+
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';
|
|
21
|
+
// ADR-099 (D1): HTTP/HTTPS-прокси единого egress-слоя.
|
|
22
|
+
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';
|
|
23
|
+
export { proxyConfigSchema, proxyAuthConfigSchema, proxyTlsConfigSchema, proxyProfileSchema, proxyRuleSchema, proxyProfileNameSchema, proxyRuleActionSchema, PROXY_AUTH_TYPES, PROXY_MODES, PROXY_PROFILE_NAME_RE, } from './config/index.js';
|
|
24
|
+
// ADR-099 × PROP-032: единый построитель TLS-опций PostgreSQL (sslmode + security.tls).
|
|
25
|
+
export { buildPostgresSslOptions, findDsnTlsParams, normalizePostgresSslMode, POSTGRES_SSL_MODES, POSTGRES_SSL_MODE_ALIASES, DSN_TLS_PARAMS, } from './config/index.js';
|
|
@@ -93,11 +93,11 @@ export interface ProfileStore {
|
|
|
93
93
|
getProfileByEmail(email: string): Promise<ProfileData | null>;
|
|
94
94
|
getOrCreateProfile(params: CreateProfileParams): Promise<ProfileData>;
|
|
95
95
|
updateLastLogin(id: string): Promise<void>;
|
|
96
|
-
/**
|
|
96
|
+
/** ADR-089: профиль по внешней идентичности (provider+externalId); null — нет. */
|
|
97
97
|
findProfileByExternalId(provider: string, externalId: string): Promise<ProfileData | null>;
|
|
98
|
-
/**
|
|
98
|
+
/** ADR-089: привязать идентичность (идемпотентно). Занята другим профилем → null (конфликт). */
|
|
99
99
|
linkIdentity(userId: string, identity: ExternalIdentity): Promise<ProfileData | null>;
|
|
100
|
-
/**
|
|
100
|
+
/** ADR-089: отвязать идентичность; null — профиля/идентичности нет. */
|
|
101
101
|
unlinkIdentity(userId: string, provider: string, externalId: string): Promise<ProfileData | null>;
|
|
102
102
|
}
|
|
103
103
|
import type { BusEvent } from '../types/index.js';
|