opencode-windows-scheduler 1.3.0 → 1.5.0

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 (85) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/README.md +11 -5
  3. package/ROADMAP-STRATEGY.md +45 -26
  4. package/ROADMAP.md +279 -35
  5. package/dist/core/audit.d.ts +68 -0
  6. package/dist/core/audit.d.ts.map +1 -0
  7. package/dist/core/audit.js +206 -0
  8. package/dist/core/dry-run.d.ts +31 -0
  9. package/dist/core/dry-run.d.ts.map +1 -1
  10. package/dist/core/dry-run.js +129 -1
  11. package/dist/core/file-watcher.d.ts.map +1 -1
  12. package/dist/core/file-watcher.js +53 -10
  13. package/dist/core/git-trigger.d.ts +80 -0
  14. package/dist/core/git-trigger.d.ts.map +1 -0
  15. package/dist/core/git-trigger.js +288 -0
  16. package/dist/core/glob.d.ts +38 -0
  17. package/dist/core/glob.d.ts.map +1 -0
  18. package/dist/core/glob.js +233 -0
  19. package/dist/core/ps-wrapper.d.ts.map +1 -1
  20. package/dist/core/ps-wrapper.js +7 -0
  21. package/dist/core/schedule-gate.js +55 -30
  22. package/dist/core/schedule-v2.d.ts +29 -1
  23. package/dist/core/schedule-v2.d.ts.map +1 -1
  24. package/dist/core/schedule-v2.js +81 -3
  25. package/dist/core/scheduler/types.d.ts +1 -1
  26. package/dist/core/scheduler/types.d.ts.map +1 -1
  27. package/dist/core/secrets.d.ts +57 -0
  28. package/dist/core/secrets.d.ts.map +1 -0
  29. package/dist/core/secrets.js +331 -0
  30. package/dist/core/structured-log.d.ts.map +1 -1
  31. package/dist/core/structured-log.js +9 -0
  32. package/dist/core/wrappers/bash.d.ts.map +1 -1
  33. package/dist/core/wrappers/bash.js +4 -0
  34. package/dist/db/git-state-repo.d.ts +16 -0
  35. package/dist/db/git-state-repo.d.ts.map +1 -0
  36. package/dist/db/git-state-repo.js +38 -0
  37. package/dist/db/schema.d.ts +1 -1
  38. package/dist/db/schema.d.ts.map +1 -1
  39. package/dist/db/schema.js +23 -0
  40. package/dist/index.d.ts +68 -4
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +589 -45
  43. package/dist/rpc.d.ts +623 -0
  44. package/dist/rpc.d.ts.map +1 -1
  45. package/dist/rpc.js +219 -0
  46. package/dist/server.d.ts.map +1 -1
  47. package/dist/server.js +67 -0
  48. package/dist/settings.d.ts +16 -0
  49. package/dist/settings.d.ts.map +1 -1
  50. package/dist/settings.js +29 -0
  51. package/dist/task-transfer.d.ts +30 -3
  52. package/dist/task-transfer.d.ts.map +1 -1
  53. package/dist/task-transfer.js +83 -6
  54. package/dist/templates.d.ts +1 -1
  55. package/dist/templates.d.ts.map +1 -1
  56. package/dist/workspaces.d.ts +8 -2
  57. package/dist/workspaces.d.ts.map +1 -1
  58. package/dist/workspaces.js +21 -4
  59. package/docs/ARCHITECTURE.md +14 -5
  60. package/docs/FEATURES.md +80 -1
  61. package/docs/README.ru.md +15 -5
  62. package/gui-experimental.cjs +9 -4
  63. package/package.json +8 -3
  64. package/src/core/audit.ts +291 -0
  65. package/src/core/dry-run.ts +188 -1
  66. package/src/core/file-watcher.ts +65 -10
  67. package/src/core/git-trigger.ts +367 -0
  68. package/src/core/glob.ts +226 -0
  69. package/src/core/ps-wrapper.ts +7 -0
  70. package/src/core/schedule-gate.ts +67 -33
  71. package/src/core/schedule-v2.ts +108 -3
  72. package/src/core/scheduler/types.ts +1 -1
  73. package/src/core/secrets.ts +385 -0
  74. package/src/core/structured-log.ts +9 -0
  75. package/src/core/wrappers/bash.ts +4 -0
  76. package/src/db/git-state-repo.ts +62 -0
  77. package/src/db/schema.ts +23 -0
  78. package/src/gui.tsx +548 -4
  79. package/src/index.ts +790 -47
  80. package/src/rpc.ts +230 -0
  81. package/src/server.ts +67 -0
  82. package/src/settings.ts +51 -0
  83. package/src/task-transfer.ts +124 -5
  84. package/src/templates.ts +1 -1
  85. package/src/workspaces.ts +22 -4
package/src/gui.tsx CHANGED
@@ -103,7 +103,7 @@ interface Job {
103
103
  beforeScript?: string
104
104
  /** Post-flight команда (undefined — не задана). */
105
105
  afterScript?: string
106
- triggerType?: "cron" | "file" | "mcp-event" | "once"
106
+ triggerType?: "cron" | "file" | "git" | "mcp-event" | "once"
107
107
  /** Для triggerType "once" — время одного запуска (ISO-8601). */
108
108
  runAt?: string | null
109
109
  /** OpenCode-сессия: new — каждый запуск новая, reuse — переиспользовать, last — --continue. */
@@ -142,6 +142,22 @@ interface Job {
142
142
  notBefore?: string | null
143
143
  /** Окно запуска: конец "HH:MM" (может быть меньше notBefore). */
144
144
  notAfter?: string | null
145
+ /** Разрешённые дни недели 0=Вс..6=Сб (null — все дни). */
146
+ activeDays?: number[] | null
147
+ /** Поведение вне окна: skip / postpone / run (null — postpone). */
148
+ windowPolicy?: "skip" | "postpone" | "run" | null
149
+ /** Glob-маски файлового триггера (null — любое изменение). */
150
+ watchGlobs?: string[] | null
151
+ /** Glob-маски игнорируемых файлов файлового триггера. */
152
+ watchIgnore?: string[] | null
153
+ /** Git-триггер: фильтр по ветке (glob, через запятую). */
154
+ gitBranch?: string | null
155
+ /** Git-триггер: маски изменённых файлов, запускающих задачу. */
156
+ gitPaths?: string[] | null
157
+ /** Git-триггер: маски игнорируемых изменённых файлов. */
158
+ gitIgnore?: string[] | null
159
+ /** Git-триггер: период опроса, секунды. */
160
+ gitPollSeconds?: number | null
145
161
  /** Пауза до даты (ISO) — задача включится автоматически. */
146
162
  pausedUntil?: string | null
147
163
  }
@@ -161,9 +177,17 @@ interface CustomTemplate {
161
177
  beforeScript?: string
162
178
  afterScript?: string
163
179
  dependsOn?: string[]
164
- triggerType?: "cron" | "file" | "mcp-event"
180
+ triggerType?: "cron" | "file" | "git" | "mcp-event"
165
181
  mcpEvent?: { server: string; event: string; filter?: string }
166
182
  watchPath?: string
183
+ watchGlobs?: string[]
184
+ watchIgnore?: string[]
185
+ gitBranch?: string
186
+ gitPaths?: string[]
187
+ gitIgnore?: string[]
188
+ gitPollSeconds?: number
189
+ activeDays?: number[]
190
+ windowPolicy?: "skip" | "postpone" | "run"
167
191
  workingDirectory?: string
168
192
  workspaceId?: string
169
193
  allowedTools?: string[]
@@ -246,6 +270,19 @@ function shortError(msg: string, limit = 150): string {
246
270
  return firstLine.length > limit ? firstLine.slice(0, limit - 1).trimEnd() + "…" : firstLine
247
271
  }
248
272
 
273
+ /** Разбивает строку из textarea в список: по запятым и переводам строк. */
274
+ function splitListInput(raw: string): string[] {
275
+ return (raw || "")
276
+ .split(/[\r\n,]+/)
277
+ .map((item) => item.trim())
278
+ .filter(Boolean)
279
+ }
280
+
281
+ /** Обратное преобразование списка масок в строку для textarea. */
282
+ function joinListInput(list?: string[] | null): string {
283
+ return Array.isArray(list) ? list.join("\n") : ""
284
+ }
285
+
249
286
  /** Пресеты cron-расписаний */
250
287
  const CRON_PRESETS: Array<{ label: string; value: string }> = [
251
288
  { label: "Каждую минуту", value: "* * * * *" },
@@ -377,6 +414,25 @@ export default Plugin.define({
377
414
  const [quietTo, setQuietTo] = createSignal("08:00")
378
415
  const [digestBusy, setDigestBusy] = createSignal(false)
379
416
 
417
+ // Секреты (Спринт 26): зашифрованное хранилище.
418
+ const [secretsList, setSecretsList] = createSignal<{ name: string; preview: string; updatedAt: string }[]>([])
419
+ const [secretsBusy, setSecretsBusy] = createSignal(false)
420
+ const [secretName, setSecretName] = createSignal("")
421
+ const [secretValue, setSecretValue] = createSignal("")
422
+
423
+ // Аудит (Спринт 26): журнал мутаций.
424
+ const [auditRecords, setAuditRecords] = createSignal<{ id: number; ts: string; action: string; targetType: string | null; target: string | null; actor: string; source: string | null; details: unknown; remote: string | null }[]>([])
425
+ const [auditBusy, setAuditBusy] = createSignal(false)
426
+ const [auditCollapsed, setAuditCollapsed] = createSignal(true)
427
+ const [auditFilterAction, setAuditFilterAction] = createSignal("")
428
+ const [auditFilterActor, setAuditFilterActor] = createSignal("")
429
+ const [auditFilterTarget, setAuditFilterTarget] = createSignal("")
430
+
431
+ // Настройки аудита (ретеншн).
432
+ const [auditRetentionEnabled, setAuditRetentionEnabled] = createSignal(true)
433
+ const [auditRetentionDays, setAuditRetentionDays] = createSignal(90)
434
+ const [auditMaxRecords, setAuditMaxRecords] = createSignal(10000)
435
+
380
436
  // Настройки ретеншна истории (Спринт 18): очистка старых записей.
381
437
  const [historyRetentionDays, setHistoryRetentionDays] = createSignal(30)
382
438
  const [historyMaxRecords, setHistoryMaxRecords] = createSignal(5000)
@@ -439,6 +495,10 @@ export default Plugin.define({
439
495
  setQuietEnabled(Boolean(n?.quietHours?.enabled))
440
496
  setQuietFrom(n?.quietHours?.from ?? "22:00")
441
497
  setQuietTo(n?.quietHours?.to ?? "08:00")
498
+ const a = n?.audit
499
+ setAuditRetentionEnabled(Boolean(a?.enabled !== false))
500
+ setAuditRetentionDays(Number(a?.retentionDays ?? 90))
501
+ setAuditMaxRecords(Number(a?.maxRecords ?? 10000))
442
502
  }
443
503
 
444
504
  async function loadSettingsGui() {
@@ -452,9 +512,16 @@ export default Plugin.define({
452
512
  setHistoryMaxRecords(Number(h?.maxRecords ?? 5000))
453
513
  setHistoryLastCleanupAt(h?.lastCleanupAt ?? null)
454
514
  setHistoryLastCleanupDeleted(Number(h?.lastCleanupDeleted ?? 0))
515
+ const au = s.audit
516
+ setAuditRetentionEnabled(Boolean(au?.enabled !== false))
517
+ setAuditRetentionDays(Number(au?.retentionDays ?? 90))
518
+ setAuditMaxRecords(Number(au?.maxRecords ?? 10000))
455
519
  } catch (err: any) {
456
520
  console.error("RPC Error (get_settings):", err)
457
521
  }
522
+
523
+ void loadSecretsGui()
524
+ void loadAuditGui()
458
525
  }
459
526
 
460
527
  /** Текущие настройки уведомлений из сигналов формы. */
@@ -516,6 +583,11 @@ export default Plugin.define({
516
583
  time: (digestTime() || "09:00").trim(),
517
584
  lastSentAt: digestLastSentAt(),
518
585
  },
586
+ audit: {
587
+ enabled: auditRetentionEnabled(),
588
+ retentionDays: auditRetentionDays(),
589
+ maxRecords: auditMaxRecords(),
590
+ },
519
591
  }
520
592
  }
521
593
 
@@ -549,6 +621,12 @@ export default Plugin.define({
549
621
  setHistoryLastCleanupAt(h?.lastCleanupAt ?? null)
550
622
  setHistoryLastCleanupDeleted(Number(h?.lastCleanupDeleted ?? 0))
551
623
  }
624
+ if (patch.audit !== undefined) {
625
+ const au = s.audit
626
+ setAuditRetentionEnabled(Boolean(au?.enabled !== false))
627
+ setAuditRetentionDays(Number(au?.retentionDays ?? 90))
628
+ setAuditMaxRecords(Number(au?.maxRecords ?? 10000))
629
+ }
552
630
  } catch (err: any) {
553
631
  console.error("RPC Error (save_settings):", err)
554
632
  ctx.toast.show({ title: "Не удалось сохранить настройки", variant: "error", description: errorMessage(err) })
@@ -596,6 +674,87 @@ export default Plugin.define({
596
674
  }
597
675
  }
598
676
 
677
+ /** Загрузка списка секретов (имена + превью, без значений). */
678
+ async function loadSecretsGui() {
679
+ setSecretsBusy(true)
680
+ try {
681
+ const result = await rpc.list_secrets({})
682
+ setSecretsList(result?.secrets ?? [])
683
+ } catch (err: any) {
684
+ console.error("RPC Error (list_secrets):", err)
685
+ } finally {
686
+ setSecretsBusy(false)
687
+ }
688
+ }
689
+
690
+ /** Сохранить/создать секрет. */
691
+ async function handleSaveSecret() {
692
+ const name = secretName().trim()
693
+ const value = secretValue()
694
+ if (!name || !value) return
695
+ setSecretsBusy(true)
696
+ try {
697
+ const result = await rpc.save_secret({ name, value })
698
+ if (result?.success) {
699
+ setSecretName("")
700
+ setSecretValue("")
701
+ ctx.toast.show({ title: "Секрет сохранён", variant: "success", description: result.message })
702
+ void loadSecretsGui()
703
+ } else {
704
+ ctx.toast.show({ title: "Секрет не сохранён", variant: "error", description: result?.message ?? "" })
705
+ }
706
+ } catch (err: any) {
707
+ console.error("RPC Error (save_secret):", err)
708
+ ctx.toast.show({ title: "Секрет не сохранён", variant: "error", description: errorMessage(err) })
709
+ } finally {
710
+ setSecretsBusy(false)
711
+ }
712
+ }
713
+
714
+ /** Удалить секрет по имени. */
715
+ async function handleDeleteSecret(name: string) {
716
+ setSecretsBusy(true)
717
+ try {
718
+ const result = await rpc.delete_secret({ name })
719
+ if (result?.success) {
720
+ ctx.toast.show({ title: "Секрет удалён", variant: "success", description: result?.message ?? "" })
721
+ void loadSecretsGui()
722
+ } else {
723
+ ctx.toast.show({ title: "Секрет не удалён", variant: "error", description: result?.message ?? "" })
724
+ }
725
+ } catch (err: any) {
726
+ console.error("RPC Error (delete_secret):", err)
727
+ ctx.toast.show({ title: "Секрет не удалён", variant: "error", description: errorMessage(err) })
728
+ } finally {
729
+ setSecretsBusy(false)
730
+ }
731
+ }
732
+
733
+ /** Загрузка журнала аудита с фильтрами. */
734
+ async function loadAuditGui() {
735
+ setAuditBusy(true)
736
+ try {
737
+ const result = await rpc.get_audit({
738
+ action: auditFilterAction() || undefined,
739
+ actor: auditFilterActor() || undefined,
740
+ target: auditFilterTarget() || undefined,
741
+ limit: 200,
742
+ })
743
+ if (result?.success) {
744
+ setAuditRecords(result?.records ?? [])
745
+ }
746
+ } catch (err: any) {
747
+ console.error("RPC Error (get_audit):", err)
748
+ } finally {
749
+ setAuditBusy(false)
750
+ }
751
+ }
752
+
753
+ /** Сохраняет настройки аудита. */
754
+ async function saveAuditSettings() {
755
+ await persistSettings({ audit: { enabled: auditRetentionEnabled(), retentionDays: auditRetentionDays(), maxRecords: auditMaxRecords() } })
756
+ }
757
+
599
758
  /** Кнопка «🧪 Тестовое уведомление». */
600
759
  async function handleTestNotification() {
601
760
  setTestNotificationBusy(true)
@@ -683,8 +842,8 @@ export default Plugin.define({
683
842
  const [beforeScript, setBeforeScript] = createSignal("")
684
843
  const [afterScript, setAfterScript] = createSignal("")
685
844
 
686
- // Триггеры (cron / file / mcp-event / once) и рабочая директория
687
- const [triggerType, setTriggerType] = createSignal<"cron" | "file" | "mcp-event" | "once">("cron")
845
+ // Триггеры (cron / file / git / mcp-event / once) и рабочая директория
846
+ const [triggerType, setTriggerType] = createSignal<"cron" | "file" | "git" | "mcp-event" | "once">("cron")
688
847
  const [watchPath, setWatchPath] = createSignal("")
689
848
  // Разовое время: ISO-8601 или задержка в секундах от нажатия "Запланировать".
690
849
  const [runAt, setRunAt] = createSignal("")
@@ -696,6 +855,15 @@ export default Plugin.define({
696
855
  const [timezone, setTimezone] = createSignal("")
697
856
  const [notBefore, setNotBefore] = createSignal("")
698
857
  const [notAfter, setNotAfter] = createSignal("")
858
+ // Спринт 27: дни недели, политика вне окна, glob- и git-фильтры.
859
+ const [activeDays, setActiveDays] = createSignal<number[]>([])
860
+ const [windowPolicy, setWindowPolicy] = createSignal<"skip" | "postpone" | "run">("postpone")
861
+ const [watchGlobs, setWatchGlobs] = createSignal("")
862
+ const [watchIgnore, setWatchIgnore] = createSignal("")
863
+ const [gitBranch, setGitBranch] = createSignal("")
864
+ const [gitPaths, setGitPaths] = createSignal("")
865
+ const [gitIgnore, setGitIgnore] = createSignal("")
866
+ const [gitPollSeconds, setGitPollSeconds] = createSignal("")
699
867
  const [mcpServer, setMcpServer] = createSignal("")
700
868
  const [mcpEventName, setMcpEventName] = createSignal("")
701
869
  const [mcpFilter, setMcpFilter] = createSignal("")
@@ -810,6 +978,24 @@ export default Plugin.define({
810
978
  }
811
979
  }
812
980
 
981
+ /** Спринт 27: дни недели, политика окна и glob/git-фильтры для payload. */
982
+ const triggerExtrasPayload = () => {
983
+ const pollRaw = gitPollSeconds().trim()
984
+ const poll = pollRaw ? Number(pollRaw) : undefined
985
+ return {
986
+ activeDays: activeDays().length > 0 ? activeDays() : undefined,
987
+ windowPolicy: windowPolicy(),
988
+ watchGlobs: splitListInput(watchGlobs()),
989
+ watchIgnore: splitListInput(watchIgnore()),
990
+ gitBranch: (gitBranch() || "").trim(),
991
+ gitPaths: splitListInput(gitPaths()),
992
+ gitIgnore: splitListInput(gitIgnore()),
993
+ ...(poll !== undefined && Number.isFinite(poll) && poll >= 5
994
+ ? { gitPollSeconds: Math.floor(poll) }
995
+ : {}),
996
+ }
997
+ }
998
+
813
999
  /** Сбрасывает поля формы матрицы. */
814
1000
  function resetMatrixForm() {
815
1001
  setMatrixMode(false)
@@ -1159,11 +1345,21 @@ export default Plugin.define({
1159
1345
  setTriggerType(
1160
1346
  t.triggerType === "file"
1161
1347
  ? "file"
1348
+ : t.triggerType === "git"
1349
+ ? "git"
1162
1350
  : t.triggerType === "mcp-event"
1163
1351
  ? "mcp-event"
1164
1352
  : "cron"
1165
1353
  )
1166
1354
  setWatchPath(t.watchPath ?? "")
1355
+ setWatchGlobs(joinListInput(t.watchGlobs))
1356
+ setWatchIgnore(joinListInput(t.watchIgnore))
1357
+ setGitBranch(t.gitBranch ?? "")
1358
+ setGitPaths(joinListInput(t.gitPaths))
1359
+ setGitIgnore(joinListInput(t.gitIgnore))
1360
+ setGitPollSeconds(t.gitPollSeconds ? String(t.gitPollSeconds) : "")
1361
+ setActiveDays(Array.isArray(t.activeDays) ? t.activeDays : [])
1362
+ setWindowPolicy(t.windowPolicy ?? "postpone")
1167
1363
  setTimezone(t.timezone ?? "")
1168
1364
  setNotBefore(t.notBefore ?? "")
1169
1365
  setNotAfter(t.notAfter ?? "")
@@ -1237,6 +1433,7 @@ export default Plugin.define({
1237
1433
  }
1238
1434
  : undefined,
1239
1435
  watchPath: (watchPath() || "").trim(),
1436
+ ...triggerExtrasPayload(),
1240
1437
  workingDirectory: (workingDirectory() || "").trim(),
1241
1438
  workspaceId: (workspaceId() || "").trim() || undefined,
1242
1439
  allowedTools: allowedTools().length > 0 ? allowedTools() : undefined,
@@ -1431,6 +1628,7 @@ export default Plugin.define({
1431
1628
  }
1432
1629
  : undefined,
1433
1630
  watchPath: (watchPath() || "").trim(),
1631
+ ...triggerExtrasPayload(),
1434
1632
  workingDirectory: (workingDirectory() || "").trim(),
1435
1633
  workspaceId: (workspaceId() || "").trim() || undefined,
1436
1634
  allowedTools: allowedTools().length > 0 ? allowedTools() : undefined,
@@ -1699,6 +1897,7 @@ export default Plugin.define({
1699
1897
  }
1700
1898
  : undefined,
1701
1899
  watchPath: (watchPath() || "").trim(),
1900
+ ...triggerExtrasPayload(),
1702
1901
  workingDirectory: (workingDirectory() || "").trim(),
1703
1902
  workspaceId: (workspaceId() || "").trim() || undefined,
1704
1903
  allowedTools: allowedTools().length > 0 ? allowedTools() : [],
@@ -1768,6 +1967,16 @@ export default Plugin.define({
1768
1967
  setAfterScript(job.afterScript ?? "")
1769
1968
  setTriggerType(job.triggerType ?? "cron")
1770
1969
  setWatchPath(job.watchPath ?? "")
1970
+ setWatchGlobs(joinListInput(job.watchGlobs))
1971
+ setWatchIgnore(joinListInput(job.watchIgnore))
1972
+ setGitBranch(job.gitBranch ?? "")
1973
+ setGitPaths(joinListInput(job.gitPaths))
1974
+ setGitIgnore(joinListInput(job.gitIgnore))
1975
+ setGitPollSeconds(
1976
+ typeof job.gitPollSeconds === "number" ? String(job.gitPollSeconds) : ""
1977
+ )
1978
+ setActiveDays(Array.isArray(job.activeDays) ? job.activeDays : [])
1979
+ setWindowPolicy(job.windowPolicy ?? "postpone")
1771
1980
  setRunAt(job.runAt ?? "")
1772
1981
  setDelaySeconds("")
1773
1982
  setSession(job.session === "reuse" || job.session === "last" ? job.session : "new")
@@ -1841,6 +2050,13 @@ export default Plugin.define({
1841
2050
  if (triggerType() === "once" && !(runAt() || "").trim() && !(delaySeconds() || "").trim()) {
1842
2051
  return "Укажите время запуска или задержку."
1843
2052
  }
2053
+ // Спринт 27: git-триггер работает только в git-репозитории задачи.
2054
+ if (triggerType() === "git" && !(workspaceId() || "").trim() && !(workingDirectory() || "").trim()) {
2055
+ return "Для git-триггера выберите workspace или укажите рабочую директорию."
2056
+ }
2057
+ if ((gitPollSeconds() || "").trim() && !/^([5-9]|[1-9]\d+)$/.test(gitPollSeconds().trim())) {
2058
+ return "Период опроса git — целое число секунд не меньше 5."
2059
+ }
1844
2060
  if (matrixMode() && matrixWorkspaceIds().length === 0) return "Выберите хотя бы один workspace для матрицы."
1845
2061
  if (session() === "reuse" && (sessionMaxRuns() || "").trim() && !/^[1-9]\d*$/.test(sessionMaxRuns().trim())) {
1846
2062
  return "Лимит запусков сессии — целое положительное число."
@@ -1966,6 +2182,15 @@ export default Plugin.define({
1966
2182
  {job.watchPath && (
1967
2183
  <span title={`Отслеживание файла: ${job.watchPath}`} style="font-size:13px;flex-shrink:0;cursor:help">👁️</span>
1968
2184
  )}
2185
+ {Array.isArray(job.watchGlobs) && job.watchGlobs.length > 0 && (
2186
+ <span title={`Glob-маски файлового триггера: ${job.watchGlobs.join(", ")}`} style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #5ac8fa;color:#5ac8fa;background:rgba(90,200,250,0.12)">✳ {job.watchGlobs.length} масок</span>
2187
+ )}
2188
+ {job.triggerType === "git" && (
2189
+ <span title={`Git-триггер: новый коммит${job.gitBranch ? ` в ветке ${job.gitBranch}` : ""}${Array.isArray(job.gitPaths) && job.gitPaths.length > 0 ? `, пути: ${job.gitPaths.join(", ")}` : ""}. Опрос каждые ${job.gitPollSeconds ?? 60} с.`} style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #ff9f0a;color:#ff9f0a;background:rgba(255,159,10,0.12)">🔀 git</span>
2190
+ )}
2191
+ {Array.isArray(job.activeDays) && job.activeDays.length > 0 && (
2192
+ <span title={`Запуск только в дни: ${job.activeDays.map((d) => ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"][d] ?? d).join(", ")}`} style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #30d158;color:#30d158;background:rgba(48,209,88,0.12)">📅 {job.activeDays.length}/7</span>
2193
+ )}
1969
2194
  {job.timezone && (
1970
2195
  <span title={`Часовой пояс задачи: ${job.timezone}`} style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #64d2ff;color:#64d2ff;background:rgba(100,210,255,0.12)">🌍 {job.timezone}</span>
1971
2196
  )}
@@ -2765,6 +2990,65 @@ export default Plugin.define({
2765
2990
  </div>
2766
2991
  </div>
2767
2992
 
2993
+ {/* 🔐 Секреты (Спринт 26) */}
2994
+ <div style="width:100%;max-width:700px;box-sizing:border-box;margin-top:8px;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden">
2995
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px">
2996
+ <span style="font-size:12px;font-weight:600;color:#e0e0e0">🔐 Секреты</span>
2997
+ <span style="font-size:11px;color:#8e8e93">{secretsList().length}</span>
2998
+ </div>
2999
+ <div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px">
3000
+ <div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap">
3001
+ <input
3002
+ type="text"
3003
+ value={secretName()}
3004
+ placeholder="Имя секрета (A-Za-z0-9_.-)"
3005
+ onInput={(e) => setSecretName(e.currentTarget.value)}
3006
+ style="width:220px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3007
+ />
3008
+ <input
3009
+ type="password"
3010
+ autocomplete="new-password"
3011
+ value={secretValue()}
3012
+ placeholder="Значение (не возвращается при чтении)"
3013
+ onInput={(e) => setSecretValue(e.currentTarget.value)}
3014
+ style="width:320px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3015
+ />
3016
+ <button
3017
+ onClick={() => void handleSaveSecret()}
3018
+ disabled={secretsBusy() || !secretName().trim() || !secretValue()}
3019
+ style={secretsBusy() || !secretName().trim() || !secretValue()
3020
+ ? "padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6"
3021
+ : "padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1"}
3022
+ >
3023
+ {secretsBusy() ? "Сохранение..." : "💾 Сохранить"}
3024
+ </button>
3025
+ </div>
3026
+ <div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:auto">
3027
+ {secretsList().map((item) => (
3028
+ <span
3029
+ key={item.name}
3030
+ style="display:flex;align-items:center;gap:6px;padding:4px 8px;background:#252526;border:1px solid #333;border-radius:4px;font-size:11px;color:#e0e0e0"
3031
+ >
3032
+ <span style="font-weight:600;color:#569cd6">{item.name}</span>
3033
+ <span style="color:#ce9178">•••• {item.preview}</span>
3034
+ <button
3035
+ onClick={() => void handleDeleteSecret(item.name)}
3036
+ title="Удалить"
3037
+ style="padding:2px 6px;background:#c43b2b;color:white;border:none;border-radius:3px;cursor:pointer;font-size:10px;font-weight:600;line-height:1"
3038
+ >
3039
+ ×
3040
+ </button>
3041
+ </span>
3042
+ ))}
3043
+ {secretsList().length === 0 && (
3044
+ <span style="font-size:11px;color:#8e8e93">Секретов нет. Значения хранятся зашифрованно в secrets.json.</span>
3045
+ )}
3046
+ </div>
3047
+ <div style="font-size:11px;color:#8e8e93">
3048
+ В задачах используйте ссылку <code style="color:#dcdcaa">${"{secret:NAME}"}</code> — значение подставляется из хранилища при запуске и маскируется в логах.
3049
+ </div>
3050
+ </div>
3051
+ </div>
2768
3052
  {/* Уведомления о матрицах (Спринт 20) */}
2769
3053
  <div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px">
2770
3054
  <div style="font-size:12px;color:#e0e0e0;font-weight:600">Матрицы</div>
@@ -2964,6 +3248,148 @@ export default Plugin.define({
2964
3248
  )}
2965
3249
  </div>
2966
3250
 
3251
+ {/* 📜 Журнал аудита (Спринт 26) */}
3252
+ <div style="width:100%;max-width:900px;box-sizing:border-box;margin-top:8px;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden">
3253
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px">
3254
+ <button
3255
+ onClick={() => setAuditCollapsed(!auditCollapsed())}
3256
+ style="display:flex;align-items:center;gap:8px;background:transparent;border:none;color:#e0e0e0;font-size:12px;font-weight:600;cursor:pointer;text-align:left;padding:0"
3257
+ >
3258
+ <span>📜 Журнал аудита</span>
3259
+ <span style="font-size:11px;font-weight:400;color:#8e8e93">{auditRecords().length}</span>
3260
+ <span style="font-size:11px;color:#8e8e93">{auditCollapsed() ? "▾" : "▴"}</span>
3261
+ </button>
3262
+ </div>
3263
+
3264
+ {!auditCollapsed() && (
3265
+ <div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px">
3266
+ <div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap">
3267
+ <label style="font-size:12px;color:#e0e0e0;white-space:nowrap">Действие</label>
3268
+ <input
3269
+ type="text"
3270
+ value={auditFilterAction()}
3271
+ placeholder="например task.create"
3272
+ onInput={(e) => setAuditFilterAction(e.currentTarget.value)}
3273
+ onChange={() => void loadAuditGui()}
3274
+ style="width:150px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3275
+ />
3276
+ <label style="font-size:12px;color:#e0e0e0;white-space:nowrap">Источник</label>
3277
+ <input
3278
+ type="text"
3279
+ value={auditFilterActor()}
3280
+ placeholder="mcp/gui/http"
3281
+ onInput={(e) => setAuditFilterActor(e.currentTarget.value)}
3282
+ onChange={() => void loadAuditGui()}
3283
+ style="width:110px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3284
+ />
3285
+ <label style="font-size:12px;color:#e0e0e0;white-space:nowrap">Цель</label>
3286
+ <input
3287
+ type="text"
3288
+ value={auditFilterTarget()}
3289
+ placeholder="имя задачи/секрета"
3290
+ onInput={(e) => setAuditFilterTarget(e.currentTarget.value)}
3291
+ onChange={() => void loadAuditGui()}
3292
+ style="width:180px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3293
+ />
3294
+ <button
3295
+ onClick={() => void loadAuditGui()}
3296
+ disabled={auditBusy()}
3297
+ style={auditBusy()
3298
+ ? "padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6"
3299
+ : "padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1"}
3300
+ >
3301
+ {auditBusy() ? "Загрузка..." : "Обновить"}
3302
+ </button>
3303
+ </div>
3304
+ <div style="width:100%;overflow:auto;border:1px solid #333;border-radius:6px;background:#0f0f0f">
3305
+ <table style="width:100%;border-collapse:collapse;font-size:11px">
3306
+ <thead>
3307
+ <tr style="border-bottom:1px solid #333">
3308
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Время</th>
3309
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Действие</th>
3310
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Цель</th>
3311
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Источник</th>
3312
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Автор</th>
3313
+ <th style="text-align:left;padding:6px 8px;color:#8e8e93">Удалён с</th>
3314
+ </tr>
3315
+ </thead>
3316
+ <tbody>
3317
+ {auditRecords().map((r) => (
3318
+ <tr key={r.id} style="border-bottom:1px solid #222">
3319
+ <td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap">{new Date(r.ts).toLocaleString()}</td>
3320
+ <td style="padding:5px 8px;color:#569cd6">{r.action}</td>
3321
+ <td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap">{r.targetType ?? ""}: {r.target ?? "—"}</td>
3322
+ <td style="padding:5px 8px;color:#ce9178">{r.source ?? "—"}</td>
3323
+ <td style="padding:5px 8px;color:#e0e0e0">{r.actor}</td>
3324
+ <td style="padding:5px 8px;color:#8e8e93;white-space:nowrap">{r.remote ?? "—"}</td>
3325
+ </tr>
3326
+ ))}
3327
+ {auditRecords().length === 0 && (
3328
+ <tr>
3329
+ <td colspan="6" style="padding:10px 8px;color:#8e8e93;text-align:center">Записей аудита нет.</td>
3330
+ </tr>
3331
+ )}
3332
+ </tbody>
3333
+ </table>
3334
+ </div>
3335
+ <div style="font-size:11px;color:#8e8e93">
3336
+ Записываются мутации задач, настроек, шаблонов, профилей, рабочих зон, секретов, импорта и очистки истории. Детали маскируются (секреты заменены на <code style="color:#dcdcaa">***</code>).
3337
+ </div>
3338
+ </div>
3339
+ )}
3340
+ </div>
3341
+
3342
+ {/* 🧹 Настройки аудита (ретеншн) */}
3343
+ <div style="width:100%;max-width:700px;box-sizing:border-box;margin-top:8px;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden">
3344
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px">
3345
+ <span style="font-size:12px;font-weight:600;color:#e0e0e0">Журнал аудита — хранение</span>
3346
+ </div>
3347
+ <div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px">
3348
+ <div style="display:flex;align-items:center;gap:8px;flex-wrap:wrap">
3349
+ <label style="display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer">
3350
+ <input
3351
+ type="checkbox"
3352
+ checked={auditRetentionEnabled()}
3353
+ onChange={(e) => {
3354
+ setAuditRetentionEnabled(e.currentTarget.checked)
3355
+ void saveAuditSettings()
3356
+ }}
3357
+ style="accent-color:#5ac8fa;cursor:pointer;margin:0"
3358
+ />
3359
+ Включить аудит
3360
+ </label>
3361
+ </div>
3362
+ <div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap">
3363
+ <label style="font-size:12px;color:#e0e0e0;white-space:nowrap">Удалять записи старше, дней</label>
3364
+ <input
3365
+ type="number"
3366
+ min="0"
3367
+ value={auditRetentionDays()}
3368
+ onChange={(e) => {
3369
+ setAuditRetentionDays(Math.max(0, Math.floor(Number(e.currentTarget.value) || 0)))
3370
+ void saveAuditSettings()
3371
+ }}
3372
+ style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3373
+ />
3374
+ <span style="font-size:11px;color:#8e8e93">0 = не удалять по возрасту</span>
3375
+ </div>
3376
+ <div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap">
3377
+ <label style="font-size:12px;color:#e0e0e0;white-space:nowrap">Хранить не более записей</label>
3378
+ <input
3379
+ type="number"
3380
+ min="0"
3381
+ value={auditMaxRecords()}
3382
+ onChange={(e) => {
3383
+ setAuditMaxRecords(Math.max(0, Math.floor(Number(e.currentTarget.value) || 0)))
3384
+ void saveAuditSettings()
3385
+ }}
3386
+ style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"
3387
+ />
3388
+ <span style="font-size:11px;color:#8e8e93">0 = без ограничения</span>
3389
+ </div>
3390
+ </div>
3391
+ </div>
3392
+
2967
3393
  {/* 📦 Multi-repo workspaces */}
2968
3394
  <div style="width:100%;max-width:700px;box-sizing:border-box;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden">
2969
3395
  <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px">
@@ -3331,6 +3757,16 @@ export default Plugin.define({
3331
3757
  />
3332
3758
  При изменении файла
3333
3759
  </label>
3760
+ <label style="display:flex;align-items:center;gap:6px;cursor:pointer;flex:1">
3761
+ <input
3762
+ type="radio"
3763
+ name="triggerType"
3764
+ checked={triggerType() === "git"}
3765
+ onChange={() => setTriggerType("git")}
3766
+ style="accent-color:#007acc"
3767
+ />
3768
+ Новый коммит (Git)
3769
+ </label>
3334
3770
  <label style="display:flex;align-items:center;gap:6px;cursor:pointer;flex:1">
3335
3771
  <input
3336
3772
  type="radio"
@@ -3364,9 +3800,73 @@ export default Plugin.define({
3364
3800
  placeholder="например, C:\project\src\main.ts"
3365
3801
  style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"
3366
3802
  />
3803
+ <label style="display:block;margin:12px 0 6px;font-size:12px;color:#b0b0b0;font-weight:500">Glob-маски (по одной в строке, пусто — любое изменение)</label>
3804
+ <textarea
3805
+ value={watchGlobs() || ""}
3806
+ onInput={(e) => setWatchGlobs(e.currentTarget.value)}
3807
+ rows={3}
3808
+ placeholder={"**/*.md\nsrc/**"}
3809
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none;resize:vertical;font-family:ui-monospace,Consolas,monospace"
3810
+ />
3811
+ <label style="display:block;margin:12px 0 6px;font-size:12px;color:#b0b0b0;font-weight:500">Исключения (glob, по одной в строке)</label>
3812
+ <textarea
3813
+ value={watchIgnore() || ""}
3814
+ onInput={(e) => setWatchIgnore(e.currentTarget.value)}
3815
+ rows={2}
3816
+ placeholder={"node_modules/**\n*.log"}
3817
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none;resize:vertical;font-family:ui-monospace,Consolas,monospace"
3818
+ />
3819
+ <div style="font-size:11px;color:#8e8e93;margin-top:6px">Маски считаются от пути watchPath. Поддерживаются *, **, ? и классы [abc]; маска каталога с /** рекурсивна.</div>
3367
3820
  </div>
3368
3821
  )}
3369
3822
 
3823
+ {triggerType() === "git" && (
3824
+ <>
3825
+ <div style="display:block;width:100%;margin-bottom:12px">
3826
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Ветки (glob, через запятую; пусто — любая)</label>
3827
+ <input
3828
+ type="text"
3829
+ value={gitBranch() || ""}
3830
+ onInput={(e) => setGitBranch(e.currentTarget.value)}
3831
+ placeholder="main, release/*"
3832
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"
3833
+ />
3834
+ </div>
3835
+ <div style="display:block;width:100%;margin-bottom:12px">
3836
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Пути изменений (glob, по одной в строке; пусто — любой файл)</label>
3837
+ <textarea
3838
+ value={gitPaths() || ""}
3839
+ onInput={(e) => setGitPaths(e.currentTarget.value)}
3840
+ rows={3}
3841
+ placeholder={"src/**\n**/*.md"}
3842
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none;resize:vertical;font-family:ui-monospace,Consolas,monospace"
3843
+ />
3844
+ </div>
3845
+ <div style="display:block;width:100%;margin-bottom:12px">
3846
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Игнорируемые пути (glob, по одной в строке)</label>
3847
+ <textarea
3848
+ value={gitIgnore() || ""}
3849
+ onInput={(e) => setGitIgnore(e.currentTarget.value)}
3850
+ rows={2}
3851
+ placeholder={"docs/**\n*.lock"}
3852
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none;resize:vertical;font-family:ui-monospace,Consolas,monospace"
3853
+ />
3854
+ </div>
3855
+ <div style="display:block;width:100%;margin-bottom:12px">
3856
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Период опроса, секунды (минимум 5, по умолчанию 60)</label>
3857
+ <input
3858
+ type="number"
3859
+ min="5"
3860
+ value={gitPollSeconds() || ""}
3861
+ onInput={(e) => setGitPollSeconds(e.currentTarget.value)}
3862
+ placeholder="60"
3863
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"
3864
+ />
3865
+ <div style="font-size:11px;color:#8e8e93;margin-top:6px">Первый опрос запоминает текущий HEAD без запуска задачи — дальше задача стартует на новом коммите, затронувшем подходящие файлы.</div>
3866
+ </div>
3867
+ </>
3868
+ )}
3869
+
3370
3870
  {triggerType() === "mcp-event" && (
3371
3871
  <>
3372
3872
  <div style="display:block;width:100%;margin-bottom:12px">
@@ -3558,6 +4058,50 @@ export default Plugin.define({
3558
4058
  <div style="display:block;margin-top:6px;font-size:11px;color:#808080">
3559
4059
  Вне окна запуск переносится на его открытие, а не пропускается. Например 22:00 — 06:00.
3560
4060
  </div>
4061
+ <div style="display:block;margin-top:12px">
4062
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Дни недели (пусто — все дни)</label>
4063
+ <div style="display:flex;gap:10px;flex-wrap:wrap">
4064
+ {[
4065
+ { value: 1, label: "Пн" },
4066
+ { value: 2, label: "Вт" },
4067
+ { value: 3, label: "Ср" },
4068
+ { value: 4, label: "Чт" },
4069
+ { value: 5, label: "Пт" },
4070
+ { value: 6, label: "Сб" },
4071
+ { value: 0, label: "Вс" },
4072
+ ].map((day) => (
4073
+ <label style="display:flex;align-items:center;gap:5px;cursor:pointer;font-size:12px;color:#d0d0d5">
4074
+ <input
4075
+ type="checkbox"
4076
+ checked={activeDays().includes(day.value)}
4077
+ onChange={(e) => {
4078
+ const next = e.currentTarget.checked
4079
+ ? [...activeDays(), day.value]
4080
+ : activeDays().filter((d) => d !== day.value)
4081
+ setActiveDays([...next].sort((a, b) => a - b))
4082
+ }}
4083
+ style="accent-color:#007acc"
4084
+ />
4085
+ {day.label}
4086
+ </label>
4087
+ ))}
4088
+ </div>
4089
+ </div>
4090
+ <div style="display:block;margin-top:12px">
4091
+ <label style="display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500">Вне окна или в неразрешённый день</label>
4092
+ <select
4093
+ value={windowPolicy()}
4094
+ onChange={(e) => setWindowPolicy(e.currentTarget.value as "skip" | "postpone" | "run")}
4095
+ style="display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"
4096
+ >
4097
+ <option value="postpone">Перенести на открытие окна (по умолчанию)</option>
4098
+ <option value="skip">Пропустить запуск</option>
4099
+ <option value="run">Выполнить всё равно</option>
4100
+ </select>
4101
+ <div style="display:block;margin-top:6px;font-size:11px;color:#808080">
4102
+ Для cron политика применяется в обёртке, для файловых и git-триггеров — при обработке события. Перенос ждёт не дольше 12 часов.
4103
+ </div>
4104
+ </div>
3561
4105
  </div>
3562
4106
  </div>
3563
4107