@itphx/synth-shared 0.10.0 → 0.10.1

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 (65) hide show
  1. package/dist/config/defaults.js +11 -11
  2. package/dist/config/env-overrides.d.ts +3 -3
  3. package/dist/config/env-overrides.js +9 -9
  4. package/dist/config/loader.d.ts +2 -2
  5. package/dist/config/loader.js +4 -4
  6. package/dist/config/resolve.d.ts +10 -10
  7. package/dist/config/resolve.js +16 -16
  8. package/dist/config/types.d.ts +190 -190
  9. package/dist/config/types.js +47 -47
  10. package/dist/i18n/index.d.ts +1 -1
  11. package/dist/i18n/index.js +16 -10
  12. package/dist/interfaces/index.d.ts +3 -3
  13. package/dist/schemas/index.d.ts +96 -96
  14. package/dist/schemas/index.js +70 -70
  15. package/dist/skills/frontmatter.js +1 -1
  16. package/dist/types/agent.d.ts +30 -0
  17. package/dist/types/agent.js +1 -0
  18. package/dist/types/bus-events.d.ts +7 -0
  19. package/dist/types/bus-events.js +1 -0
  20. package/dist/types/commands.d.ts +10 -10
  21. package/dist/types/commands.js +2 -2
  22. package/dist/types/decision.d.ts +16 -16
  23. package/dist/types/decision.js +4 -4
  24. package/dist/types/events.d.ts +22 -22
  25. package/dist/types/fs.d.ts +44 -0
  26. package/dist/types/fs.js +16 -0
  27. package/dist/types/git.d.ts +63 -0
  28. package/dist/types/git.js +1 -0
  29. package/dist/types/hooks.d.ts +4 -4
  30. package/dist/types/index.d.ts +12 -1165
  31. package/dist/types/index.js +38 -244
  32. package/dist/types/llm.d.ts +32 -0
  33. package/dist/types/llm.js +8 -0
  34. package/dist/types/mcp.d.ts +104 -0
  35. package/dist/types/mcp.js +40 -0
  36. package/dist/types/message.d.ts +63 -0
  37. package/dist/types/message.js +12 -0
  38. package/dist/types/permission.d.ts +2 -2
  39. package/dist/types/permission.js +1 -1
  40. package/dist/types/project.d.ts +134 -0
  41. package/dist/types/project.js +67 -0
  42. package/dist/types/prompt.d.ts +236 -0
  43. package/dist/types/prompt.js +15 -0
  44. package/dist/types/provider.d.ts +84 -0
  45. package/dist/types/provider.js +35 -0
  46. package/dist/types/schedules.d.ts +8 -8
  47. package/dist/types/schedules.js +1 -1
  48. package/dist/types/service-keys.d.ts +10 -10
  49. package/dist/types/service-keys.js +3 -3
  50. package/dist/types/session.d.ts +269 -0
  51. package/dist/types/session.js +13 -0
  52. package/dist/types/skills.d.ts +11 -11
  53. package/dist/types/skills.js +6 -6
  54. package/dist/types/tools.d.ts +3 -3
  55. package/dist/types/user.d.ts +113 -0
  56. package/dist/types/user.js +31 -0
  57. package/dist/types/webhooks.d.ts +5 -5
  58. package/dist/types/webhooks.js +1 -1
  59. package/dist/utils/glob.d.ts +1 -1
  60. package/dist/utils/glob.js +1 -1
  61. package/dist/utils/index.js +2 -2
  62. package/dist/utils/workspace.js +1 -1
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
@@ -23,7 +23,7 @@ export declare const storageConfigSchema: z.ZodObject<{
23
23
  /** Рабочий каталог по умолчанию для сессий без проекта. Резолвится от dataDir: {dataDir}/workspaces/default. */
24
24
  defaultWorkspace: z.ZodDefault<z.ZodString>;
25
25
  /**
26
- * AD-075: политика для абсолютного `project.workspace` вне `workspacesRoot`
26
+ * ADR-075: политика для абсолютного `project.workspace` вне `workspacesRoot`
27
27
  * (`confirm` — подтверждение, `deny` — запрет). `''` — не задано (эффективно
28
28
  * `confirm`), читать через `resolveWorkspaceOutsideRootPolicy`.
29
29
  */
@@ -124,20 +124,20 @@ export declare const llmConfigSchema: z.ZodObject<{
124
124
  defaultModel: z.ZodDefault<z.ZodString>;
125
125
  maxRetries: z.ZodDefault<z.ZodNumber>;
126
126
  timeout: z.ZodDefault<z.ZodNumber>;
127
- /** AD-070 §2.2: политика prompt-cache — auto (ставить маркеры) | none (отключить). */
127
+ /** ADR-070 §2.2: политика prompt-cache — auto (ставить маркеры) | none (отключить). */
128
128
  cache: z.ZodDefault<z.ZodEnum<["auto", "none"]>>;
129
129
  }, "strip", z.ZodTypeAny, {
130
130
  defaultProvider: string;
131
131
  defaultModel: string;
132
132
  maxRetries: number;
133
133
  timeout: number;
134
- cache: "none" | "auto";
134
+ cache: "auto" | "none";
135
135
  }, {
136
136
  defaultProvider?: string | undefined;
137
137
  defaultModel?: string | undefined;
138
138
  maxRetries?: number | undefined;
139
139
  timeout?: number | undefined;
140
- cache?: "none" | "auto" | undefined;
140
+ cache?: "auto" | "none" | undefined;
141
141
  }>;
142
142
  export declare const coreConfigSchema: z.ZodObject<{
143
143
  port: z.ZodDefault<z.ZodNumber>;
@@ -264,7 +264,7 @@ export declare const summarizationConfigSchema: z.ZodObject<{
264
264
  }>;
265
265
  export declare const mcpServerConfigSchema: z.ZodObject<{
266
266
  type: z.ZodEnum<["stdio", "sse", "http"]>;
267
- /** AD-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
267
+ /** ADR-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
268
268
  description: z.ZodOptional<z.ZodString>;
269
269
  command: z.ZodOptional<z.ZodString>;
270
270
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -310,7 +310,7 @@ export declare const mcpServerConfigSchema: z.ZodObject<{
310
310
  connectTimeout?: number | undefined;
311
311
  }>;
312
312
  /**
313
- * AD-071 §2.3.1: политика сетевого доступа пользовательских HTTP MCP-серверов.
313
+ * ADR-071 §2.3.1: политика сетевого доступа пользовательских HTTP MCP-серверов.
314
314
  * Дефолт — `deny` приватных/служебных диапазонов (SSRF/egress).
315
315
  */
316
316
  export declare const mcpNetworkPolicySchema: z.ZodObject<{
@@ -326,7 +326,7 @@ export declare const mcpNetworkPolicySchema: z.ZodObject<{
326
326
  export declare const mcpConfigSchema: z.ZodObject<{
327
327
  servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
328
328
  type: z.ZodEnum<["stdio", "sse", "http"]>;
329
- /** AD-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
329
+ /** ADR-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
330
330
  description: z.ZodOptional<z.ZodString>;
331
331
  command: z.ZodOptional<z.ZodString>;
332
332
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -382,7 +382,7 @@ export declare const mcpConfigSchema: z.ZodObject<{
382
382
  list?: string[] | undefined;
383
383
  }>>;
384
384
  /**
385
- * AD-071 §2.3: глобальная админская политика включения **MCP**-инструментов.
385
+ * ADR-071 §2.3: глобальная админская политика включения **MCP**-инструментов.
386
386
  * Независима от `tools.policy` (только встроенные). Per-session override —
387
387
  * `SessionSettings.mcpPolicy`.
388
388
  */
@@ -427,7 +427,7 @@ export declare const mcpConfigSchema: z.ZodObject<{
427
427
  } | undefined;
428
428
  }>;
429
429
  /**
430
- * AD-071 §2.6: instance-wide жёсткое отключение инструментов администратором.
430
+ * ADR-071 §2.6: instance-wide жёсткое отключение инструментов администратором.
431
431
  * Отключённые тулы не попадают в запрос независимо от `tools.policy`.
432
432
  * `runtime`-capability неотключаема (ядро сессии).
433
433
  */
@@ -435,45 +435,45 @@ export declare const toolsDisabledConfigSchema: z.ZodObject<{
435
435
  capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">> | z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
436
436
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
437
437
  }, "strip", z.ZodTypeAny, {
438
- capabilities: string[];
439
438
  tools: string[];
439
+ capabilities: string[];
440
440
  }, {
441
- capabilities?: string[] | undefined;
442
441
  tools?: string[] | undefined;
442
+ capabilities?: string[] | undefined;
443
443
  }>;
444
444
  /**
445
- * AD-071 §2.3: глобальная админская политика включения **встроенных**
445
+ * ADR-071 §2.3: глобальная админская политика включения **встроенных**
446
446
  * инструментов (MCP — отдельная `mcp.policy`). Per-session override —
447
447
  * `SessionSettings.toolsPolicy`.
448
448
  */
449
449
  export declare const toolsConfigSchema: z.ZodObject<{
450
450
  policy: z.ZodDefault<z.ZodEnum<["consistency", "available", "auto"]>>;
451
- /** AD-071 §2.6: instance-wide отключение инструментов (admin). */
451
+ /** ADR-071 §2.6: instance-wide отключение инструментов (admin). */
452
452
  disabled: z.ZodDefault<z.ZodObject<{
453
453
  capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">> | z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
454
454
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
455
455
  }, "strip", z.ZodTypeAny, {
456
- capabilities: string[];
457
456
  tools: string[];
457
+ capabilities: string[];
458
458
  }, {
459
- capabilities?: string[] | undefined;
460
459
  tools?: string[] | undefined;
460
+ capabilities?: string[] | undefined;
461
461
  }>>;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  disabled: {
464
- capabilities: string[];
465
464
  tools: string[];
465
+ capabilities: string[];
466
466
  };
467
467
  policy: "auto" | "consistency" | "available";
468
468
  }, {
469
469
  disabled?: {
470
- capabilities?: string[] | undefined;
471
470
  tools?: string[] | undefined;
471
+ capabilities?: string[] | undefined;
472
472
  } | undefined;
473
473
  policy?: "auto" | "consistency" | "available" | undefined;
474
474
  }>;
475
475
  /**
476
- * AD-046 §4.2/§4.4/§7.4: конфигурация механизма скиллов.
476
+ * ADR-046 §4.2/§4.4/§7.4: конфигурация механизма скиллов.
477
477
  * `paths` — дополнительные пользовательские каталоги; `trustedProjectDirs` —
478
478
  * доверенные проектные каталоги (бинарный trust); `inlineShell` — выключатель
479
479
  * `!`cmd`` в шаблонных командах (по умолчанию выключено).
@@ -481,19 +481,19 @@ export declare const toolsConfigSchema: z.ZodObject<{
481
481
  * `urls` — внешние удалённые каталоги (opencode-совместимый `index.json`):
482
482
  * **только read-only индексация** — скачиваются в `{dataDir}/skills-cache/urls`,
483
483
  * видны в реестре/диагностике, но `trusted: false` (в каталог для модели не
484
- * попадают, тело не грузится). Установка/доверие/подписи/`lock.json` — AD-068.
484
+ * попадают, тело не грузится). Установка/доверие/подписи/`lock.json` — PROP-068.
485
485
  *
486
486
  * Внешние локальные каталоги совместимости (`.opencode`, `.claude`, `.agents`,
487
- * `~/.config/opencode`) подключаются как read-only discovery в core (AD-046 §4.2).
487
+ * `~/.config/opencode`) подключаются как read-only discovery в core (ADR-046 §4.2).
488
488
  */
489
489
  export declare const skillsConfigSchema: z.ZodObject<{
490
490
  paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
491
- /** AD-046 §4.2/§4.3: удалённые каталоги — read-only индексация (`trusted: false`). */
491
+ /** ADR-046 §4.2/§4.3: удалённые каталоги — read-only индексация (`trusted: false`). */
492
492
  urls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
493
493
  trustedProjectDirs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
494
494
  inlineShell: z.ZodDefault<z.ZodBoolean>;
495
495
  /**
496
- * AD-046 §3.2/§12: именованные группы тулов → capabilities. Используется
496
+ * ADR-046 §3.2/§12: именованные группы тулов → capabilities. Используется
497
497
  * для экспансии `metadata.synth.requires_toolsets` в проверку доступности
498
498
  * скилла (union с `requires_capabilities`).
499
499
  */
@@ -512,7 +512,7 @@ export declare const skillsConfigSchema: z.ZodObject<{
512
512
  toolsets?: Record<string, ToolCapability[]> | undefined;
513
513
  }>;
514
514
  /**
515
- * AD-046 §7/§9.4: конфигурация slash-команд. `paths` — дополнительные каталоги
515
+ * ADR-046 §7/§9.4: конфигурация slash-команд. `paths` — дополнительные каталоги
516
516
  * шаблонных `.md`-команд; `bundlesPath` — подкаталог `{dataDir}` для YAML-бандлов;
517
517
  * `conflict` — режим разрешения конфликтов имён (см. resolver).
518
518
  */
@@ -551,7 +551,7 @@ export declare const commandsConfigSchema: z.ZodObject<{
551
551
  maxRenderedBytes?: number | undefined;
552
552
  }>;
553
553
  /**
554
- * AD-089: конфигурация приёма внешних событий.
554
+ * ADR-089: конфигурация приёма внешних событий.
555
555
  * - `enabled` — мастер-выключатель приёма событий;
556
556
  * - `defaultMode` — режим по умолчанию, если Router не выбрал иной;
557
557
  * - `ephemeralTtl` — TTL ephemeral-сессий по умолчанию;
@@ -566,18 +566,18 @@ export declare const commandsConfigSchema: z.ZodObject<{
566
566
  * `default-agent` — не задавать `agentRole` (сессия возьмёт агента по умолчанию);
567
567
  * - `keyRateLimitPerMinute` — глобальный дефолт лимита запросов/мин на API-ключ
568
568
  * привязки (0 — без лимита; конкретный ключ может переопределить);
569
- * - `decisionRouting` — AD-084 × AD-089: умная классификация внешних событий
569
+ * - `decisionRouting` — ADR-084 × ADR-089: умная классификация внешних событий
570
570
  * decision-моделью. `false` (default, opt-in) — только декларативные правила
571
571
  * (`ProjectRuleProvider`); `true` — при промахе правил decision-модель выбирает
572
572
  * шаблон агента для ephemeral-сессии. Fail-safe: ошибка/неуверенность/пустой
573
573
  * список агентов → фоллбек Router (`defaultMode`);
574
- * - `autoBind` — AD-089: фоллбек Router закрепляет событие с `identity.chatKey`/
574
+ * - `autoBind` — ADR-089: фоллбек Router закрепляет событие с `identity.chatKey`/
575
575
  * `threadKey` за новой сессией (`EventBinding` `mode='bound'`) вместо
576
576
  * `defaultMode`. `false` (default) — поведение не меняется; влияет только на
577
577
  * фоллбек;
578
578
  * - `autoBindAgentTemplate` — шаблон агента для auto-bind-сессий (пусто — агент
579
579
  * по умолчанию);
580
- * - `identityMap` — AD-089: маппинг идентичности внешнего отправителя на
580
+ * - `identityMap` — ADR-089: маппинг идентичности внешнего отправителя на
581
581
  * владельца синт-сессии. Ключ — `identity.chatKey` (`chat:telegram:<id>`) или
582
582
  * `identity.principalId` (`tg:<id>`), значение — id пользователя
583
583
  * синт-инстанса. Применяется при материализации сессий `ephemeral`/`bind`:
@@ -594,19 +594,19 @@ export declare const eventsConfigSchema: z.ZodObject<{
594
594
  dedupStore: z.ZodDefault<z.ZodEnum<["memory", "file"]>>;
595
595
  unknownAgentTemplate: z.ZodDefault<z.ZodEnum<["drop", "default-agent"]>>;
596
596
  /**
597
- * Глобальный дефолт лимита запросов/мин на API-ключ привязки (AD-089/AD-052).
597
+ * Глобальный дефолт лимита запросов/мин на API-ключ привязки (ADR-089/ADR-052).
598
598
  * `0` — без лимита; конкретный ключ может переопределить своим
599
599
  * `rateLimitPerMinute`.
600
600
  */
601
601
  keyRateLimitPerMinute: z.ZodDefault<z.ZodNumber>;
602
602
  /**
603
- * AD-084 × AD-089: decision-маршрутизация внешних событий. По умолчанию
603
+ * ADR-084 × ADR-089: decision-маршрутизация внешних событий. По умолчанию
604
604
  * выключена (поведение не меняется) — включение требует настроенного
605
605
  * decision-провайдера (`decision.enabled`).
606
606
  */
607
607
  decisionRouting: z.ZodDefault<z.ZodBoolean>;
608
608
  /**
609
- * AD-089 (auto-bind): фоллбек Router — если у события есть `identity.chatKey`
609
+ * ADR-089 (auto-bind): фоллбек Router — если у события есть `identity.chatKey`
610
610
  * или `identity.threadKey`, закрепить его за новой сессией (создать
611
611
  * `EventBinding` `mode='bound'`) вместо `defaultMode`. По умолчанию выключено
612
612
  * (поведение не меняется). Влияет **только** на фоллбек — явный binding,
@@ -614,12 +614,12 @@ export declare const eventsConfigSchema: z.ZodObject<{
614
614
  */
615
615
  autoBind: z.ZodDefault<z.ZodBoolean>;
616
616
  /**
617
- * AD-089 (auto-bind): шаблон агента для auto-bind-сессий (пусто — агент по
617
+ * ADR-089 (auto-bind): шаблон агента для auto-bind-сессий (пусто — агент по
618
618
  * умолчанию; резолвится через `AgentRegistry` с политикой `unknownAgentTemplate`).
619
619
  */
620
620
  autoBindAgentTemplate: z.ZodDefault<z.ZodString>;
621
621
  /**
622
- * AD-089: маппинг идентичности внешнего отправителя (`identity.chatKey` или
622
+ * ADR-089: маппинг идентичности внешнего отправителя (`identity.chatKey` или
623
623
  * `identity.principalId`) на владельца синт-сессии (id пользователя
624
624
  * инстанса). Применяется при материализации `ephemeral`/`bind`; пусто —
625
625
  * владелец не переопределяется (аутентифицированный пользователь запроса,
@@ -654,7 +654,7 @@ export declare const eventsConfigSchema: z.ZodObject<{
654
654
  identityMap?: Record<string, string> | undefined;
655
655
  }>;
656
656
  /**
657
- * AD-051 (минимальный срез) / AD-089: конфигурация cron/interval-планировщика.
657
+ * ADR-051 (минимальный срез) / ADR-089: конфигурация cron/interval-планировщика.
658
658
  * - `enabled` — мастер-выключатель сервиса (в standalone гейтит `start()`);
659
659
  * - `tickSec` — период тика, секунды (1..3600);
660
660
  * - `catchUp` — дефолт поведения при пропущенном срабатывании (`skip`/`once`);
@@ -678,18 +678,18 @@ export declare const schedulerConfigSchema: z.ZodObject<{
678
678
  catchUp: "skip" | "once";
679
679
  tickSec: number;
680
680
  jobRetentionDays: number;
681
- leaderElection: "file" | "none";
681
+ leaderElection: "none" | "file";
682
682
  crossProcessLocks: boolean;
683
683
  }, {
684
684
  enabled?: boolean | undefined;
685
685
  catchUp?: "skip" | "once" | undefined;
686
686
  tickSec?: number | undefined;
687
687
  jobRetentionDays?: number | undefined;
688
- leaderElection?: "file" | "none" | undefined;
688
+ leaderElection?: "none" | "file" | undefined;
689
689
  crossProcessLocks?: boolean | undefined;
690
690
  }>;
691
691
  /**
692
- * AD-084: конфигурация класса decision-моделей (System One: Clef/Jev/…).
692
+ * ADR-084: конфигурация класса decision-моделей (System One: Clef/Jev/…).
693
693
  * - `enabled` — мастер-выключатель decision-слоя (по умолчанию выключен);
694
694
  * - `provider` — имя провайдера decision-типа (`decision`/`systemone`);
695
695
  * - `model` — модель decision-слоя (напр. `clef-flash`);
@@ -706,9 +706,9 @@ export declare const decisionConfigSchema: z.ZodObject<{
706
706
  provider: z.ZodDefault<z.ZodString>;
707
707
  model: z.ZodDefault<z.ZodString>;
708
708
  confidenceThreshold: z.ZodDefault<z.ZodNumber>;
709
- /** AD-084: провайдер тира эскалации; пусто — эскалации нет. */
709
+ /** ADR-084: провайдер тира эскалации; пусто — эскалации нет. */
710
710
  escalationProvider: z.ZodDefault<z.ZodString>;
711
- /** AD-084: модель тира эскалации; пусто — эскалации нет. */
711
+ /** ADR-084: модель тира эскалации; пусто — эскалации нет. */
712
712
  escalationModel: z.ZodDefault<z.ZodString>;
713
713
  }, "strip", z.ZodTypeAny, {
714
714
  provider: string;
@@ -726,7 +726,7 @@ export declare const decisionConfigSchema: z.ZodObject<{
726
726
  escalationModel?: string | undefined;
727
727
  }>;
728
728
  /**
729
- * AD-052 (этап II): конфигурация исходящих webhooks.
729
+ * ADR-052 (этап II): конфигурация исходящих webhooks.
730
730
  * - `enabled` — мастер-выключатель доставки (по умолчанию выключен);
731
731
  * - `maxAttempts` — число HTTP-попыток на доставку (экспоненциальный backoff с джиттером);
732
732
  * - `timeoutMs` — таймаут одного HTTP-запроса;
@@ -754,7 +754,7 @@ export declare const webhooksConfigSchema: z.ZodObject<{
754
754
  deliveryRetentionDays?: number | undefined;
755
755
  }>;
756
756
  /**
757
- * AD-069 §3.4/§11: дополнительный источник проектных инструкций.
757
+ * ADR-069 §3.4/§11: дополнительный источник проектных инструкций.
758
758
  * `position` задаёт место в порядке: `before` — перед merged chain, `after` —
759
759
  * после. `ttlSec` (только для URL) переопределяет `instructions.fetch.cacheTtlSec`.
760
760
  */
@@ -778,7 +778,7 @@ export declare const instructionSourceConfigSchema: z.ZodObject<{
778
778
  ttlSec?: number | undefined;
779
779
  }>;
780
780
  /**
781
- * AD-069 §4: параметры lazy-догрузки подкаталогов (реализация — Фаза 2;
781
+ * ADR-069 §4: параметры lazy-догрузки подкаталогов (реализация — Фаза 2;
782
782
  * схема заводится в Фазе 1).
783
783
  */
784
784
  export declare const instructionsLazyConfigSchema: z.ZodObject<{
@@ -798,7 +798,7 @@ export declare const instructionsLazyConfigSchema: z.ZodObject<{
798
798
  excludeDirs?: string[] | undefined;
799
799
  }>;
800
800
  /**
801
- * AD-069 §5.1/§9.1: параметры fetch URL-источников (без фонового таймера —
801
+ * ADR-069 §5.1/§9.1: параметры fetch URL-источников (без фонового таймера —
802
802
  * загрузка при старте + TTL-кэш). Реализация fetch — Фаза 2.
803
803
  */
804
804
  export declare const instructionsFetchConfigSchema: z.ZodObject<{
@@ -815,7 +815,7 @@ export declare const instructionsFetchConfigSchema: z.ZodObject<{
815
815
  maxBytes?: number | undefined;
816
816
  }>;
817
817
  /**
818
- * AD-069 §5.1/§9.1: конфигурация проектных инструкций (`AGENTS.md` и совместимые).
818
+ * ADR-069 §5.1/§9.1: конфигурация проектных инструкций (`AGENTS.md` и совместимые).
819
819
  * Порядок: `sources` с `position: before` → merged chain (`git root → … → cwd`) →
820
820
  * `sources` с `position: after`. Кап — динамический от окна модели.
821
821
  */
@@ -976,7 +976,7 @@ export declare const protectedPathsConfigSchema: z.ZodObject<{
976
976
  enabled?: boolean | undefined;
977
977
  }>;
978
978
  /**
979
- * AD-052/O1: installer service-key, провижининг которого делается при старте из
979
+ * ADR-052/O1: installer service-key, провижининг которого делается при старте из
980
980
  * конфига/Secret (идемпотентно). `secret` — plaintext-секрет `synth_svc_…`
981
981
  * (приходит из env/Secret; in config.yaml держать не рекомендуется). `scopes` —
982
982
  * только известные (`serviceScopeSchema`); `roles` не заданы — дефолт хранилища.
@@ -985,39 +985,39 @@ export declare const bootstrapServiceKeySchema: z.ZodObject<{
985
985
  label: z.ZodString;
986
986
  secret: z.ZodString;
987
987
  scopes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
988
- roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/index.js").GlobalRole>, "many">>;
988
+ roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/user.js").GlobalRole>, "many">>;
989
989
  description: z.ZodOptional<z.ZodString>;
990
990
  }, "strip", z.ZodTypeAny, {
991
991
  label: string;
992
992
  scopes: string[];
993
993
  secret: string;
994
994
  description?: string | undefined;
995
- roles?: import("../types/index.js").GlobalRole[] | undefined;
995
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
996
996
  }, {
997
997
  label: string;
998
998
  scopes: string[];
999
999
  secret: string;
1000
1000
  description?: string | undefined;
1001
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1001
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1002
1002
  }>;
1003
1003
  export declare const bootstrapServiceKeysSchema: z.ZodArray<z.ZodObject<{
1004
1004
  label: z.ZodString;
1005
1005
  secret: z.ZodString;
1006
1006
  scopes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1007
- roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/index.js").GlobalRole>, "many">>;
1007
+ roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/user.js").GlobalRole>, "many">>;
1008
1008
  description: z.ZodOptional<z.ZodString>;
1009
1009
  }, "strip", z.ZodTypeAny, {
1010
1010
  label: string;
1011
1011
  scopes: string[];
1012
1012
  secret: string;
1013
1013
  description?: string | undefined;
1014
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1014
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1015
1015
  }, {
1016
1016
  label: string;
1017
1017
  scopes: string[];
1018
1018
  secret: string;
1019
1019
  description?: string | undefined;
1020
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1020
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1021
1021
  }>, "many">;
1022
1022
  export declare const securityConfigSchema: z.ZodObject<{
1023
1023
  promptInjection: z.ZodDefault<z.ZodObject<{
@@ -1045,13 +1045,13 @@ export declare const securityConfigSchema: z.ZodObject<{
1045
1045
  enabled?: boolean | undefined;
1046
1046
  }>>;
1047
1047
  /**
1048
- * AD-076: мастер-ключ для шифрования секретов at-rest (SSH-ключи, AES-256-GCM).
1048
+ * ADR-076: мастер-ключ для шифрования секретов at-rest (SSH-ключи, AES-256-GCM).
1049
1049
  * Приоритет — env `SYNTH_SECRET_KEY` (читать через `resolveSecretKey`).
1050
1050
  * Пусто — core использует файл `{dataDir}/secrets/master.key`.
1051
1051
  */
1052
1052
  secretKey: z.ZodDefault<z.ZodString>;
1053
1053
  /**
1054
- * AD-052/O1: installer service-key'и, провижининг которых выполняется
1054
+ * ADR-052/O1: installer service-key'и, провижининг которых выполняется
1055
1055
  * идемпотентно при старте (core standalone и backend). Может задаваться
1056
1056
  * JSON-строкой через env `SYNTH_BOOTSTRAP_SERVICE_KEYS` (приоритетнее
1057
1057
  * config.yaml) — так секрет не попадает в файл конфигурации.
@@ -1061,20 +1061,20 @@ export declare const securityConfigSchema: z.ZodObject<{
1061
1061
  label: z.ZodString;
1062
1062
  secret: z.ZodString;
1063
1063
  scopes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1064
- roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/index.js").GlobalRole>, "many">>;
1064
+ roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/user.js").GlobalRole>, "many">>;
1065
1065
  description: z.ZodOptional<z.ZodString>;
1066
1066
  }, "strip", z.ZodTypeAny, {
1067
1067
  label: string;
1068
1068
  scopes: string[];
1069
1069
  secret: string;
1070
1070
  description?: string | undefined;
1071
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1071
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1072
1072
  }, {
1073
1073
  label: string;
1074
1074
  scopes: string[];
1075
1075
  secret: string;
1076
1076
  description?: string | undefined;
1077
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1077
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1078
1078
  }>, "many">>;
1079
1079
  }, "strip", z.ZodTypeAny, {
1080
1080
  promptInjection: {
@@ -1091,7 +1091,7 @@ export declare const securityConfigSchema: z.ZodObject<{
1091
1091
  scopes: string[];
1092
1092
  secret: string;
1093
1093
  description?: string | undefined;
1094
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1094
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1095
1095
  }[] | undefined;
1096
1096
  }, {
1097
1097
  promptInjection?: {
@@ -1108,7 +1108,7 @@ export declare const securityConfigSchema: z.ZodObject<{
1108
1108
  scopes: string[];
1109
1109
  secret: string;
1110
1110
  description?: string | undefined;
1111
- roles?: import("../types/index.js").GlobalRole[] | undefined;
1111
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
1112
1112
  }[] | undefined;
1113
1113
  }>;
1114
1114
  export declare const llmGatewayRateLimitConfigSchema: z.ZodObject<{
@@ -1219,11 +1219,11 @@ export declare const routerContentConfigSchema: z.ZodObject<{
1219
1219
  model?: string | undefined;
1220
1220
  }>>;
1221
1221
  }, "strip", z.ZodTypeAny, {
1222
- chat: {
1222
+ coding: {
1223
1223
  provider: string;
1224
1224
  model: string;
1225
1225
  };
1226
- coding: {
1226
+ chat: {
1227
1227
  provider: string;
1228
1228
  model: string;
1229
1229
  };
@@ -1232,11 +1232,11 @@ export declare const routerContentConfigSchema: z.ZodObject<{
1232
1232
  model: string;
1233
1233
  };
1234
1234
  }, {
1235
- chat?: {
1235
+ coding?: {
1236
1236
  provider?: string | undefined;
1237
1237
  model?: string | undefined;
1238
1238
  } | undefined;
1239
- coding?: {
1239
+ chat?: {
1240
1240
  provider?: string | undefined;
1241
1241
  model?: string | undefined;
1242
1242
  } | undefined;
@@ -1368,11 +1368,11 @@ export declare const routerConfigSchema: z.ZodObject<{
1368
1368
  model?: string | undefined;
1369
1369
  }>>;
1370
1370
  }, "strip", z.ZodTypeAny, {
1371
- chat: {
1371
+ coding: {
1372
1372
  provider: string;
1373
1373
  model: string;
1374
1374
  };
1375
- coding: {
1375
+ chat: {
1376
1376
  provider: string;
1377
1377
  model: string;
1378
1378
  };
@@ -1381,11 +1381,11 @@ export declare const routerConfigSchema: z.ZodObject<{
1381
1381
  model: string;
1382
1382
  };
1383
1383
  }, {
1384
- chat?: {
1384
+ coding?: {
1385
1385
  provider?: string | undefined;
1386
1386
  model?: string | undefined;
1387
1387
  } | undefined;
1388
- coding?: {
1388
+ chat?: {
1389
1389
  provider?: string | undefined;
1390
1390
  model?: string | undefined;
1391
1391
  } | undefined;
@@ -1452,13 +1452,17 @@ export declare const routerConfigSchema: z.ZodObject<{
1452
1452
  enabled?: boolean | undefined;
1453
1453
  }>>;
1454
1454
  }, "strip", z.ZodTypeAny, {
1455
- enabled: boolean;
1455
+ subagent: {
1456
+ provider: string;
1457
+ model: string;
1458
+ enabled: boolean;
1459
+ };
1456
1460
  content: {
1457
- chat: {
1461
+ coding: {
1458
1462
  provider: string;
1459
1463
  model: string;
1460
1464
  };
1461
- coding: {
1465
+ chat: {
1462
1466
  provider: string;
1463
1467
  model: string;
1464
1468
  };
@@ -1467,11 +1471,6 @@ export declare const routerConfigSchema: z.ZodObject<{
1467
1471
  model: string;
1468
1472
  };
1469
1473
  };
1470
- subagent: {
1471
- provider: string;
1472
- model: string;
1473
- enabled: boolean;
1474
- };
1475
1474
  cost: {
1476
1475
  enabled: boolean;
1477
1476
  cheapProvider: string;
@@ -1480,6 +1479,7 @@ export declare const routerConfigSchema: z.ZodObject<{
1480
1479
  expensiveModel: string;
1481
1480
  maxCheapTokens: number;
1482
1481
  };
1482
+ enabled: boolean;
1483
1483
  strategy: "auto" | "content" | "cost" | "content+cost";
1484
1484
  escalation: {
1485
1485
  enabled: boolean;
@@ -1490,13 +1490,17 @@ export declare const routerConfigSchema: z.ZodObject<{
1490
1490
  checks: ("min_length" | "constraint" | "self_check")[];
1491
1491
  };
1492
1492
  }, {
1493
- enabled?: boolean | undefined;
1493
+ subagent?: {
1494
+ provider?: string | undefined;
1495
+ model?: string | undefined;
1496
+ enabled?: boolean | undefined;
1497
+ } | undefined;
1494
1498
  content?: {
1495
- chat?: {
1499
+ coding?: {
1496
1500
  provider?: string | undefined;
1497
1501
  model?: string | undefined;
1498
1502
  } | undefined;
1499
- coding?: {
1503
+ chat?: {
1500
1504
  provider?: string | undefined;
1501
1505
  model?: string | undefined;
1502
1506
  } | undefined;
@@ -1505,11 +1509,6 @@ export declare const routerConfigSchema: z.ZodObject<{
1505
1509
  model?: string | undefined;
1506
1510
  } | undefined;
1507
1511
  } | undefined;
1508
- subagent?: {
1509
- provider?: string | undefined;
1510
- model?: string | undefined;
1511
- enabled?: boolean | undefined;
1512
- } | undefined;
1513
1512
  cost?: {
1514
1513
  enabled?: boolean | undefined;
1515
1514
  cheapProvider?: string | undefined;
@@ -1518,6 +1517,7 @@ export declare const routerConfigSchema: z.ZodObject<{
1518
1517
  expensiveModel?: string | undefined;
1519
1518
  maxCheapTokens?: number | undefined;
1520
1519
  } | undefined;
1520
+ enabled?: boolean | undefined;
1521
1521
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
1522
1522
  escalation?: {
1523
1523
  enabled?: boolean | undefined;
@@ -1576,7 +1576,7 @@ export declare const remoteConfigSchema: z.ZodObject<{
1576
1576
  issuer: string;
1577
1577
  clientId: string;
1578
1578
  };
1579
- llm: "server" | "local";
1579
+ llm: "local" | "server";
1580
1580
  worlds: {
1581
1581
  local: boolean;
1582
1582
  remote: boolean;
@@ -1592,7 +1592,7 @@ export declare const remoteConfigSchema: z.ZodObject<{
1592
1592
  issuer?: string | undefined;
1593
1593
  clientId?: string | undefined;
1594
1594
  } | undefined;
1595
- llm?: "server" | "local" | undefined;
1595
+ llm?: "local" | "server" | undefined;
1596
1596
  worlds?: {
1597
1597
  local?: boolean | undefined;
1598
1598
  remote?: boolean | undefined;
@@ -1622,7 +1622,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1622
1622
  /** Рабочий каталог по умолчанию для сессий без проекта. Резолвится от dataDir: {dataDir}/workspaces/default. */
1623
1623
  defaultWorkspace: z.ZodDefault<z.ZodString>;
1624
1624
  /**
1625
- * AD-075: политика для абсолютного `project.workspace` вне `workspacesRoot`
1625
+ * ADR-075: политика для абсолютного `project.workspace` вне `workspacesRoot`
1626
1626
  * (`confirm` — подтверждение, `deny` — запрет). `''` — не задано (эффективно
1627
1627
  * `confirm`), читать через `resolveWorkspaceOutsideRootPolicy`.
1628
1628
  */
@@ -1723,20 +1723,20 @@ export declare const synthConfigSchema: z.ZodObject<{
1723
1723
  defaultModel: z.ZodDefault<z.ZodString>;
1724
1724
  maxRetries: z.ZodDefault<z.ZodNumber>;
1725
1725
  timeout: z.ZodDefault<z.ZodNumber>;
1726
- /** AD-070 §2.2: политика prompt-cache — auto (ставить маркеры) | none (отключить). */
1726
+ /** ADR-070 §2.2: политика prompt-cache — auto (ставить маркеры) | none (отключить). */
1727
1727
  cache: z.ZodDefault<z.ZodEnum<["auto", "none"]>>;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
1729
  defaultProvider: string;
1730
1730
  defaultModel: string;
1731
1731
  maxRetries: number;
1732
1732
  timeout: number;
1733
- cache: "none" | "auto";
1733
+ cache: "auto" | "none";
1734
1734
  }, {
1735
1735
  defaultProvider?: string | undefined;
1736
1736
  defaultModel?: string | undefined;
1737
1737
  maxRetries?: number | undefined;
1738
1738
  timeout?: number | undefined;
1739
- cache?: "none" | "auto" | undefined;
1739
+ cache?: "auto" | "none" | undefined;
1740
1740
  }>>;
1741
1741
  core: z.ZodDefault<z.ZodObject<{
1742
1742
  port: z.ZodDefault<z.ZodNumber>;
@@ -1864,7 +1864,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1864
1864
  mcp: z.ZodDefault<z.ZodObject<{
1865
1865
  servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1866
1866
  type: z.ZodEnum<["stdio", "sse", "http"]>;
1867
- /** AD-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
1867
+ /** ADR-071 §2.2: человекочитаемое описание сервера (попадает в блок `mcp.servers`). */
1868
1868
  description: z.ZodOptional<z.ZodString>;
1869
1869
  command: z.ZodOptional<z.ZodString>;
1870
1870
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1920,7 +1920,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1920
1920
  list?: string[] | undefined;
1921
1921
  }>>;
1922
1922
  /**
1923
- * AD-071 §2.3: глобальная админская политика включения **MCP**-инструментов.
1923
+ * ADR-071 §2.3: глобальная админская политика включения **MCP**-инструментов.
1924
1924
  * Независима от `tools.policy` (только встроенные). Per-session override —
1925
1925
  * `SessionSettings.mcpPolicy`.
1926
1926
  */
@@ -1966,38 +1966,38 @@ export declare const synthConfigSchema: z.ZodObject<{
1966
1966
  }>>;
1967
1967
  tools: z.ZodDefault<z.ZodObject<{
1968
1968
  policy: z.ZodDefault<z.ZodEnum<["consistency", "available", "auto"]>>;
1969
- /** AD-071 §2.6: instance-wide отключение инструментов (admin). */
1969
+ /** ADR-071 §2.6: instance-wide отключение инструментов (admin). */
1970
1970
  disabled: z.ZodDefault<z.ZodObject<{
1971
1971
  capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">> | z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1972
1972
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1973
1973
  }, "strip", z.ZodTypeAny, {
1974
- capabilities: string[];
1975
1974
  tools: string[];
1975
+ capabilities: string[];
1976
1976
  }, {
1977
- capabilities?: string[] | undefined;
1978
1977
  tools?: string[] | undefined;
1978
+ capabilities?: string[] | undefined;
1979
1979
  }>>;
1980
1980
  }, "strip", z.ZodTypeAny, {
1981
1981
  disabled: {
1982
- capabilities: string[];
1983
1982
  tools: string[];
1983
+ capabilities: string[];
1984
1984
  };
1985
1985
  policy: "auto" | "consistency" | "available";
1986
1986
  }, {
1987
1987
  disabled?: {
1988
- capabilities?: string[] | undefined;
1989
1988
  tools?: string[] | undefined;
1989
+ capabilities?: string[] | undefined;
1990
1990
  } | undefined;
1991
1991
  policy?: "auto" | "consistency" | "available" | undefined;
1992
1992
  }>>;
1993
1993
  skills: z.ZodDefault<z.ZodObject<{
1994
1994
  paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1995
- /** AD-046 §4.2/§4.3: удалённые каталоги — read-only индексация (`trusted: false`). */
1995
+ /** ADR-046 §4.2/§4.3: удалённые каталоги — read-only индексация (`trusted: false`). */
1996
1996
  urls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1997
1997
  trustedProjectDirs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1998
1998
  inlineShell: z.ZodDefault<z.ZodBoolean>;
1999
1999
  /**
2000
- * AD-046 §3.2/§12: именованные группы тулов → capabilities. Используется
2000
+ * ADR-046 §3.2/§12: именованные группы тулов → capabilities. Используется
2001
2001
  * для экспансии `metadata.synth.requires_toolsets` в проверку доступности
2002
2002
  * скилла (union с `requires_capabilities`).
2003
2003
  */
@@ -2058,19 +2058,19 @@ export declare const synthConfigSchema: z.ZodObject<{
2058
2058
  dedupStore: z.ZodDefault<z.ZodEnum<["memory", "file"]>>;
2059
2059
  unknownAgentTemplate: z.ZodDefault<z.ZodEnum<["drop", "default-agent"]>>;
2060
2060
  /**
2061
- * Глобальный дефолт лимита запросов/мин на API-ключ привязки (AD-089/AD-052).
2061
+ * Глобальный дефолт лимита запросов/мин на API-ключ привязки (ADR-089/ADR-052).
2062
2062
  * `0` — без лимита; конкретный ключ может переопределить своим
2063
2063
  * `rateLimitPerMinute`.
2064
2064
  */
2065
2065
  keyRateLimitPerMinute: z.ZodDefault<z.ZodNumber>;
2066
2066
  /**
2067
- * AD-084 × AD-089: decision-маршрутизация внешних событий. По умолчанию
2067
+ * ADR-084 × ADR-089: decision-маршрутизация внешних событий. По умолчанию
2068
2068
  * выключена (поведение не меняется) — включение требует настроенного
2069
2069
  * decision-провайдера (`decision.enabled`).
2070
2070
  */
2071
2071
  decisionRouting: z.ZodDefault<z.ZodBoolean>;
2072
2072
  /**
2073
- * AD-089 (auto-bind): фоллбек Router — если у события есть `identity.chatKey`
2073
+ * ADR-089 (auto-bind): фоллбек Router — если у события есть `identity.chatKey`
2074
2074
  * или `identity.threadKey`, закрепить его за новой сессией (создать
2075
2075
  * `EventBinding` `mode='bound'`) вместо `defaultMode`. По умолчанию выключено
2076
2076
  * (поведение не меняется). Влияет **только** на фоллбек — явный binding,
@@ -2078,12 +2078,12 @@ export declare const synthConfigSchema: z.ZodObject<{
2078
2078
  */
2079
2079
  autoBind: z.ZodDefault<z.ZodBoolean>;
2080
2080
  /**
2081
- * AD-089 (auto-bind): шаблон агента для auto-bind-сессий (пусто — агент по
2081
+ * ADR-089 (auto-bind): шаблон агента для auto-bind-сессий (пусто — агент по
2082
2082
  * умолчанию; резолвится через `AgentRegistry` с политикой `unknownAgentTemplate`).
2083
2083
  */
2084
2084
  autoBindAgentTemplate: z.ZodDefault<z.ZodString>;
2085
2085
  /**
2086
- * AD-089: маппинг идентичности внешнего отправителя (`identity.chatKey` или
2086
+ * ADR-089: маппинг идентичности внешнего отправителя (`identity.chatKey` или
2087
2087
  * `identity.principalId`) на владельца синт-сессии (id пользователя
2088
2088
  * инстанса). Применяется при материализации `ephemeral`/`bind`; пусто —
2089
2089
  * владелец не переопределяется (аутентифицированный пользователь запроса,
@@ -2129,14 +2129,14 @@ export declare const synthConfigSchema: z.ZodObject<{
2129
2129
  catchUp: "skip" | "once";
2130
2130
  tickSec: number;
2131
2131
  jobRetentionDays: number;
2132
- leaderElection: "file" | "none";
2132
+ leaderElection: "none" | "file";
2133
2133
  crossProcessLocks: boolean;
2134
2134
  }, {
2135
2135
  enabled?: boolean | undefined;
2136
2136
  catchUp?: "skip" | "once" | undefined;
2137
2137
  tickSec?: number | undefined;
2138
2138
  jobRetentionDays?: number | undefined;
2139
- leaderElection?: "file" | "none" | undefined;
2139
+ leaderElection?: "none" | "file" | undefined;
2140
2140
  crossProcessLocks?: boolean | undefined;
2141
2141
  }>>;
2142
2142
  decision: z.ZodDefault<z.ZodObject<{
@@ -2144,9 +2144,9 @@ export declare const synthConfigSchema: z.ZodObject<{
2144
2144
  provider: z.ZodDefault<z.ZodString>;
2145
2145
  model: z.ZodDefault<z.ZodString>;
2146
2146
  confidenceThreshold: z.ZodDefault<z.ZodNumber>;
2147
- /** AD-084: провайдер тира эскалации; пусто — эскалации нет. */
2147
+ /** ADR-084: провайдер тира эскалации; пусто — эскалации нет. */
2148
2148
  escalationProvider: z.ZodDefault<z.ZodString>;
2149
- /** AD-084: модель тира эскалации; пусто — эскалации нет. */
2149
+ /** ADR-084: модель тира эскалации; пусто — эскалации нет. */
2150
2150
  escalationModel: z.ZodDefault<z.ZodString>;
2151
2151
  }, "strip", z.ZodTypeAny, {
2152
2152
  provider: string;
@@ -2349,11 +2349,11 @@ export declare const synthConfigSchema: z.ZodObject<{
2349
2349
  model?: string | undefined;
2350
2350
  }>>;
2351
2351
  }, "strip", z.ZodTypeAny, {
2352
- chat: {
2352
+ coding: {
2353
2353
  provider: string;
2354
2354
  model: string;
2355
2355
  };
2356
- coding: {
2356
+ chat: {
2357
2357
  provider: string;
2358
2358
  model: string;
2359
2359
  };
@@ -2362,11 +2362,11 @@ export declare const synthConfigSchema: z.ZodObject<{
2362
2362
  model: string;
2363
2363
  };
2364
2364
  }, {
2365
- chat?: {
2365
+ coding?: {
2366
2366
  provider?: string | undefined;
2367
2367
  model?: string | undefined;
2368
2368
  } | undefined;
2369
- coding?: {
2369
+ chat?: {
2370
2370
  provider?: string | undefined;
2371
2371
  model?: string | undefined;
2372
2372
  } | undefined;
@@ -2433,13 +2433,17 @@ export declare const synthConfigSchema: z.ZodObject<{
2433
2433
  enabled?: boolean | undefined;
2434
2434
  }>>;
2435
2435
  }, "strip", z.ZodTypeAny, {
2436
- enabled: boolean;
2436
+ subagent: {
2437
+ provider: string;
2438
+ model: string;
2439
+ enabled: boolean;
2440
+ };
2437
2441
  content: {
2438
- chat: {
2442
+ coding: {
2439
2443
  provider: string;
2440
2444
  model: string;
2441
2445
  };
2442
- coding: {
2446
+ chat: {
2443
2447
  provider: string;
2444
2448
  model: string;
2445
2449
  };
@@ -2448,11 +2452,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2448
2452
  model: string;
2449
2453
  };
2450
2454
  };
2451
- subagent: {
2452
- provider: string;
2453
- model: string;
2454
- enabled: boolean;
2455
- };
2456
2455
  cost: {
2457
2456
  enabled: boolean;
2458
2457
  cheapProvider: string;
@@ -2461,6 +2460,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2461
2460
  expensiveModel: string;
2462
2461
  maxCheapTokens: number;
2463
2462
  };
2463
+ enabled: boolean;
2464
2464
  strategy: "auto" | "content" | "cost" | "content+cost";
2465
2465
  escalation: {
2466
2466
  enabled: boolean;
@@ -2471,13 +2471,17 @@ export declare const synthConfigSchema: z.ZodObject<{
2471
2471
  checks: ("min_length" | "constraint" | "self_check")[];
2472
2472
  };
2473
2473
  }, {
2474
- enabled?: boolean | undefined;
2474
+ subagent?: {
2475
+ provider?: string | undefined;
2476
+ model?: string | undefined;
2477
+ enabled?: boolean | undefined;
2478
+ } | undefined;
2475
2479
  content?: {
2476
- chat?: {
2480
+ coding?: {
2477
2481
  provider?: string | undefined;
2478
2482
  model?: string | undefined;
2479
2483
  } | undefined;
2480
- coding?: {
2484
+ chat?: {
2481
2485
  provider?: string | undefined;
2482
2486
  model?: string | undefined;
2483
2487
  } | undefined;
@@ -2486,11 +2490,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2486
2490
  model?: string | undefined;
2487
2491
  } | undefined;
2488
2492
  } | undefined;
2489
- subagent?: {
2490
- provider?: string | undefined;
2491
- model?: string | undefined;
2492
- enabled?: boolean | undefined;
2493
- } | undefined;
2494
2493
  cost?: {
2495
2494
  enabled?: boolean | undefined;
2496
2495
  cheapProvider?: string | undefined;
@@ -2499,6 +2498,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2499
2498
  expensiveModel?: string | undefined;
2500
2499
  maxCheapTokens?: number | undefined;
2501
2500
  } | undefined;
2501
+ enabled?: boolean | undefined;
2502
2502
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
2503
2503
  escalation?: {
2504
2504
  enabled?: boolean | undefined;
@@ -2557,7 +2557,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2557
2557
  issuer: string;
2558
2558
  clientId: string;
2559
2559
  };
2560
- llm: "server" | "local";
2560
+ llm: "local" | "server";
2561
2561
  worlds: {
2562
2562
  local: boolean;
2563
2563
  remote: boolean;
@@ -2573,7 +2573,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2573
2573
  issuer?: string | undefined;
2574
2574
  clientId?: string | undefined;
2575
2575
  } | undefined;
2576
- llm?: "server" | "local" | undefined;
2576
+ llm?: "local" | "server" | undefined;
2577
2577
  worlds?: {
2578
2578
  local?: boolean | undefined;
2579
2579
  remote?: boolean | undefined;
@@ -2703,13 +2703,13 @@ export declare const synthConfigSchema: z.ZodObject<{
2703
2703
  enabled?: boolean | undefined;
2704
2704
  }>>;
2705
2705
  /**
2706
- * AD-076: мастер-ключ для шифрования секретов at-rest (SSH-ключи, AES-256-GCM).
2706
+ * ADR-076: мастер-ключ для шифрования секретов at-rest (SSH-ключи, AES-256-GCM).
2707
2707
  * Приоритет — env `SYNTH_SECRET_KEY` (читать через `resolveSecretKey`).
2708
2708
  * Пусто — core использует файл `{dataDir}/secrets/master.key`.
2709
2709
  */
2710
2710
  secretKey: z.ZodDefault<z.ZodString>;
2711
2711
  /**
2712
- * AD-052/O1: installer service-key'и, провижининг которых выполняется
2712
+ * ADR-052/O1: installer service-key'и, провижининг которых выполняется
2713
2713
  * идемпотентно при старте (core standalone и backend). Может задаваться
2714
2714
  * JSON-строкой через env `SYNTH_BOOTSTRAP_SERVICE_KEYS` (приоритетнее
2715
2715
  * config.yaml) — так секрет не попадает в файл конфигурации.
@@ -2719,20 +2719,20 @@ export declare const synthConfigSchema: z.ZodObject<{
2719
2719
  label: z.ZodString;
2720
2720
  secret: z.ZodString;
2721
2721
  scopes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2722
- roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/index.js").GlobalRole>, "many">>;
2722
+ roles: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../types/user.js").GlobalRole>, "many">>;
2723
2723
  description: z.ZodOptional<z.ZodString>;
2724
2724
  }, "strip", z.ZodTypeAny, {
2725
2725
  label: string;
2726
2726
  scopes: string[];
2727
2727
  secret: string;
2728
2728
  description?: string | undefined;
2729
- roles?: import("../types/index.js").GlobalRole[] | undefined;
2729
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
2730
2730
  }, {
2731
2731
  label: string;
2732
2732
  scopes: string[];
2733
2733
  secret: string;
2734
2734
  description?: string | undefined;
2735
- roles?: import("../types/index.js").GlobalRole[] | undefined;
2735
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
2736
2736
  }>, "many">>;
2737
2737
  }, "strip", z.ZodTypeAny, {
2738
2738
  promptInjection: {
@@ -2749,7 +2749,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2749
2749
  scopes: string[];
2750
2750
  secret: string;
2751
2751
  description?: string | undefined;
2752
- roles?: import("../types/index.js").GlobalRole[] | undefined;
2752
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
2753
2753
  }[] | undefined;
2754
2754
  }, {
2755
2755
  promptInjection?: {
@@ -2766,10 +2766,26 @@ export declare const synthConfigSchema: z.ZodObject<{
2766
2766
  scopes: string[];
2767
2767
  secret: string;
2768
2768
  description?: string | undefined;
2769
- roles?: import("../types/index.js").GlobalRole[] | undefined;
2769
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
2770
2770
  }[] | undefined;
2771
2771
  }>>;
2772
2772
  }, "strip", z.ZodTypeAny, {
2773
+ summarization: {
2774
+ provider: string;
2775
+ model: string;
2776
+ temperature: number;
2777
+ promptFile: string;
2778
+ };
2779
+ context: {
2780
+ enabledFiles: string[];
2781
+ };
2782
+ tools: {
2783
+ disabled: {
2784
+ tools: string[];
2785
+ capabilities: string[];
2786
+ };
2787
+ policy: "auto" | "consistency" | "available";
2788
+ };
2773
2789
  mcp: {
2774
2790
  policy: "auto" | "consistency" | "available";
2775
2791
  servers: Record<string, {
@@ -2796,12 +2812,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2796
2812
  corsOrigin: string;
2797
2813
  allowedOrigins: string[];
2798
2814
  };
2799
- summarization: {
2800
- provider: string;
2801
- model: string;
2802
- temperature: number;
2803
- promptFile: string;
2804
- };
2805
2815
  skills: {
2806
2816
  paths: string[];
2807
2817
  urls: string[];
@@ -2809,13 +2819,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2809
2819
  inlineShell: boolean;
2810
2820
  toolsets: Record<string, ToolCapability[]>;
2811
2821
  };
2812
- tools: {
2813
- disabled: {
2814
- capabilities: string[];
2815
- tools: string[];
2816
- };
2817
- policy: "auto" | "consistency" | "available";
2818
- };
2819
2822
  events: {
2820
2823
  enabled: boolean;
2821
2824
  defaultMode: "bound" | "ephemeral";
@@ -2862,7 +2865,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2862
2865
  defaultModel: string;
2863
2866
  maxRetries: number;
2864
2867
  timeout: number;
2865
- cache: "none" | "auto";
2868
+ cache: "auto" | "none";
2866
2869
  };
2867
2870
  remote: {
2868
2871
  enabled: boolean;
@@ -2874,7 +2877,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2874
2877
  issuer: string;
2875
2878
  clientId: string;
2876
2879
  };
2877
- llm: "server" | "local";
2880
+ llm: "local" | "server";
2878
2881
  worlds: {
2879
2882
  local: boolean;
2880
2883
  remote: boolean;
@@ -2922,9 +2925,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2922
2925
  session: {
2923
2926
  planMode: "auto" | "strict" | "off";
2924
2927
  };
2925
- context: {
2926
- enabledFiles: string[];
2927
- };
2928
2928
  commands: {
2929
2929
  paths: string[];
2930
2930
  bundlesPath: string;
@@ -2940,7 +2940,7 @@ export declare const synthConfigSchema: z.ZodObject<{
2940
2940
  catchUp: "skip" | "once";
2941
2941
  tickSec: number;
2942
2942
  jobRetentionDays: number;
2943
- leaderElection: "file" | "none";
2943
+ leaderElection: "none" | "file";
2944
2944
  crossProcessLocks: boolean;
2945
2945
  };
2946
2946
  webhooks: {
@@ -2982,13 +2982,17 @@ export declare const synthConfigSchema: z.ZodObject<{
2982
2982
  maxChars?: number | undefined;
2983
2983
  };
2984
2984
  router: {
2985
- enabled: boolean;
2985
+ subagent: {
2986
+ provider: string;
2987
+ model: string;
2988
+ enabled: boolean;
2989
+ };
2986
2990
  content: {
2987
- chat: {
2991
+ coding: {
2988
2992
  provider: string;
2989
2993
  model: string;
2990
2994
  };
2991
- coding: {
2995
+ chat: {
2992
2996
  provider: string;
2993
2997
  model: string;
2994
2998
  };
@@ -2997,11 +3001,6 @@ export declare const synthConfigSchema: z.ZodObject<{
2997
3001
  model: string;
2998
3002
  };
2999
3003
  };
3000
- subagent: {
3001
- provider: string;
3002
- model: string;
3003
- enabled: boolean;
3004
- };
3005
3004
  cost: {
3006
3005
  enabled: boolean;
3007
3006
  cheapProvider: string;
@@ -3010,6 +3009,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3010
3009
  expensiveModel: string;
3011
3010
  maxCheapTokens: number;
3012
3011
  };
3012
+ enabled: boolean;
3013
3013
  strategy: "auto" | "content" | "cost" | "content+cost";
3014
3014
  escalation: {
3015
3015
  enabled: boolean;
@@ -3064,10 +3064,26 @@ export declare const synthConfigSchema: z.ZodObject<{
3064
3064
  scopes: string[];
3065
3065
  secret: string;
3066
3066
  description?: string | undefined;
3067
- roles?: import("../types/index.js").GlobalRole[] | undefined;
3067
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
3068
3068
  }[] | undefined;
3069
3069
  };
3070
3070
  }, {
3071
+ summarization?: {
3072
+ provider?: string | undefined;
3073
+ model?: string | undefined;
3074
+ temperature?: number | undefined;
3075
+ promptFile?: string | undefined;
3076
+ } | undefined;
3077
+ context?: {
3078
+ enabledFiles?: string[] | undefined;
3079
+ } | undefined;
3080
+ tools?: {
3081
+ disabled?: {
3082
+ tools?: string[] | undefined;
3083
+ capabilities?: string[] | undefined;
3084
+ } | undefined;
3085
+ policy?: "auto" | "consistency" | "available" | undefined;
3086
+ } | undefined;
3071
3087
  mcp?: {
3072
3088
  policy?: "auto" | "consistency" | "available" | undefined;
3073
3089
  servers?: Record<string, {
@@ -3094,12 +3110,6 @@ export declare const synthConfigSchema: z.ZodObject<{
3094
3110
  corsOrigin?: string | undefined;
3095
3111
  allowedOrigins?: string[] | undefined;
3096
3112
  } | undefined;
3097
- summarization?: {
3098
- provider?: string | undefined;
3099
- model?: string | undefined;
3100
- temperature?: number | undefined;
3101
- promptFile?: string | undefined;
3102
- } | undefined;
3103
3113
  skills?: {
3104
3114
  paths?: string[] | undefined;
3105
3115
  urls?: string[] | undefined;
@@ -3107,13 +3117,6 @@ export declare const synthConfigSchema: z.ZodObject<{
3107
3117
  inlineShell?: boolean | undefined;
3108
3118
  toolsets?: Record<string, ToolCapability[]> | undefined;
3109
3119
  } | undefined;
3110
- tools?: {
3111
- disabled?: {
3112
- capabilities?: string[] | undefined;
3113
- tools?: string[] | undefined;
3114
- } | undefined;
3115
- policy?: "auto" | "consistency" | "available" | undefined;
3116
- } | undefined;
3117
3120
  events?: {
3118
3121
  enabled?: boolean | undefined;
3119
3122
  defaultMode?: "bound" | "ephemeral" | undefined;
@@ -3160,7 +3163,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3160
3163
  defaultModel?: string | undefined;
3161
3164
  maxRetries?: number | undefined;
3162
3165
  timeout?: number | undefined;
3163
- cache?: "none" | "auto" | undefined;
3166
+ cache?: "auto" | "none" | undefined;
3164
3167
  } | undefined;
3165
3168
  remote?: {
3166
3169
  enabled?: boolean | undefined;
@@ -3172,7 +3175,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3172
3175
  issuer?: string | undefined;
3173
3176
  clientId?: string | undefined;
3174
3177
  } | undefined;
3175
- llm?: "server" | "local" | undefined;
3178
+ llm?: "local" | "server" | undefined;
3176
3179
  worlds?: {
3177
3180
  local?: boolean | undefined;
3178
3181
  remote?: boolean | undefined;
@@ -3220,9 +3223,6 @@ export declare const synthConfigSchema: z.ZodObject<{
3220
3223
  session?: {
3221
3224
  planMode?: "auto" | "strict" | "off" | undefined;
3222
3225
  } | undefined;
3223
- context?: {
3224
- enabledFiles?: string[] | undefined;
3225
- } | undefined;
3226
3226
  commands?: {
3227
3227
  paths?: string[] | undefined;
3228
3228
  bundlesPath?: string | undefined;
@@ -3238,7 +3238,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3238
3238
  catchUp?: "skip" | "once" | undefined;
3239
3239
  tickSec?: number | undefined;
3240
3240
  jobRetentionDays?: number | undefined;
3241
- leaderElection?: "file" | "none" | undefined;
3241
+ leaderElection?: "none" | "file" | undefined;
3242
3242
  crossProcessLocks?: boolean | undefined;
3243
3243
  } | undefined;
3244
3244
  webhooks?: {
@@ -3280,13 +3280,17 @@ export declare const synthConfigSchema: z.ZodObject<{
3280
3280
  allowInstallTreeFallback?: boolean | undefined;
3281
3281
  } | undefined;
3282
3282
  router?: {
3283
- enabled?: boolean | undefined;
3283
+ subagent?: {
3284
+ provider?: string | undefined;
3285
+ model?: string | undefined;
3286
+ enabled?: boolean | undefined;
3287
+ } | undefined;
3284
3288
  content?: {
3285
- chat?: {
3289
+ coding?: {
3286
3290
  provider?: string | undefined;
3287
3291
  model?: string | undefined;
3288
3292
  } | undefined;
3289
- coding?: {
3293
+ chat?: {
3290
3294
  provider?: string | undefined;
3291
3295
  model?: string | undefined;
3292
3296
  } | undefined;
@@ -3295,11 +3299,6 @@ export declare const synthConfigSchema: z.ZodObject<{
3295
3299
  model?: string | undefined;
3296
3300
  } | undefined;
3297
3301
  } | undefined;
3298
- subagent?: {
3299
- provider?: string | undefined;
3300
- model?: string | undefined;
3301
- enabled?: boolean | undefined;
3302
- } | undefined;
3303
3302
  cost?: {
3304
3303
  enabled?: boolean | undefined;
3305
3304
  cheapProvider?: string | undefined;
@@ -3308,6 +3307,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3308
3307
  expensiveModel?: string | undefined;
3309
3308
  maxCheapTokens?: number | undefined;
3310
3309
  } | undefined;
3310
+ enabled?: boolean | undefined;
3311
3311
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
3312
3312
  escalation?: {
3313
3313
  enabled?: boolean | undefined;
@@ -3362,7 +3362,7 @@ export declare const synthConfigSchema: z.ZodObject<{
3362
3362
  scopes: string[];
3363
3363
  secret: string;
3364
3364
  description?: string | undefined;
3365
- roles?: import("../types/index.js").GlobalRole[] | undefined;
3365
+ roles?: import("../types/user.js").GlobalRole[] | undefined;
3366
3366
  }[] | undefined;
3367
3367
  } | undefined;
3368
3368
  }>;