opencode-windows-scheduler 1.5.2 → 1.5.5

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 (231) hide show
  1. package/CHANGELOG.md +107 -2
  2. package/CROSS_PLATFORM.md +107 -71
  3. package/LICENSE +21 -21
  4. package/README.md +74 -26
  5. package/ROADMAP-STRATEGY.md +11 -4
  6. package/ROADMAP.md +322 -112
  7. package/dist/core/analytics.d.ts +3 -0
  8. package/dist/core/analytics.d.ts.map +1 -1
  9. package/dist/core/analytics.js +4 -0
  10. package/dist/core/audit.d.ts +2 -1
  11. package/dist/core/audit.d.ts.map +1 -1
  12. package/dist/core/audit.js +32 -1
  13. package/dist/core/cron-to-schtasks.d.ts.map +1 -1
  14. package/dist/core/cron-to-schtasks.js +21 -4
  15. package/dist/core/file-watcher.d.ts.map +1 -1
  16. package/dist/core/file-watcher.js +16 -1
  17. package/dist/core/git-trigger.d.ts +4 -2
  18. package/dist/core/git-trigger.d.ts.map +1 -1
  19. package/dist/core/git-trigger.js +34 -16
  20. package/dist/core/local-ai.d.ts +52 -0
  21. package/dist/core/local-ai.d.ts.map +1 -0
  22. package/dist/core/local-ai.js +119 -0
  23. package/dist/core/lock.d.ts +14 -0
  24. package/dist/core/lock.d.ts.map +1 -1
  25. package/dist/core/lock.js +81 -4
  26. package/dist/core/matrix.d.ts.map +1 -1
  27. package/dist/core/matrix.js +3 -2
  28. package/dist/core/native-notify.d.ts.map +1 -1
  29. package/dist/core/native-notify.js +3 -0
  30. package/dist/core/one-shot.d.ts +7 -1
  31. package/dist/core/one-shot.d.ts.map +1 -1
  32. package/dist/core/one-shot.js +15 -2
  33. package/dist/core/permissions.d.ts +69 -0
  34. package/dist/core/permissions.d.ts.map +1 -0
  35. package/dist/core/permissions.js +143 -0
  36. package/dist/core/ps-wrapper.d.ts +9 -30
  37. package/dist/core/ps-wrapper.d.ts.map +1 -1
  38. package/dist/core/ps-wrapper.js +477 -108
  39. package/dist/core/record-history.d.ts +11 -0
  40. package/dist/core/record-history.d.ts.map +1 -1
  41. package/dist/core/record-history.js +106 -4
  42. package/dist/core/savings.d.ts +70 -0
  43. package/dist/core/savings.d.ts.map +1 -0
  44. package/dist/core/savings.js +87 -0
  45. package/dist/core/schedule-gate.js +7 -3
  46. package/dist/core/schedule-v2.js +1 -1
  47. package/dist/core/scheduler/index.d.ts +13 -1
  48. package/dist/core/scheduler/index.d.ts.map +1 -1
  49. package/dist/core/scheduler/index.js +35 -4
  50. package/dist/core/scheduler/linux.d.ts +4 -1
  51. package/dist/core/scheduler/linux.d.ts.map +1 -1
  52. package/dist/core/scheduler/linux.js +53 -20
  53. package/dist/core/scheduler/mac.d.ts +2 -1
  54. package/dist/core/scheduler/mac.d.ts.map +1 -1
  55. package/dist/core/scheduler/mac.js +24 -6
  56. package/dist/core/scheduler/posix.d.ts +1 -1
  57. package/dist/core/scheduler/posix.d.ts.map +1 -1
  58. package/dist/core/scheduler/posix.js +2 -2
  59. package/dist/core/scheduler/registry.d.ts +3 -2
  60. package/dist/core/scheduler/registry.d.ts.map +1 -1
  61. package/dist/core/scheduler/registry.js +6 -5
  62. package/dist/core/scheduler/windows.d.ts +49 -1
  63. package/dist/core/scheduler/windows.d.ts.map +1 -1
  64. package/dist/core/scheduler/windows.js +219 -34
  65. package/dist/core/secrets.d.ts +5 -3
  66. package/dist/core/secrets.d.ts.map +1 -1
  67. package/dist/core/secrets.js +86 -8
  68. package/dist/core/self-analysis.d.ts +117 -0
  69. package/dist/core/self-analysis.d.ts.map +1 -0
  70. package/dist/core/self-analysis.js +539 -0
  71. package/dist/core/session.d.ts +11 -3
  72. package/dist/core/session.d.ts.map +1 -1
  73. package/dist/core/session.js +34 -5
  74. package/dist/core/shutdown.d.ts +26 -0
  75. package/dist/core/shutdown.d.ts.map +1 -0
  76. package/dist/core/shutdown.js +49 -0
  77. package/dist/core/summary.d.ts +69 -0
  78. package/dist/core/summary.d.ts.map +1 -0
  79. package/dist/core/summary.js +250 -0
  80. package/dist/core/telegram.d.ts +10 -0
  81. package/dist/core/telegram.d.ts.map +1 -1
  82. package/dist/core/telegram.js +228 -47
  83. package/dist/core/triage-chain.d.ts +40 -0
  84. package/dist/core/triage-chain.d.ts.map +1 -0
  85. package/dist/core/triage-chain.js +80 -0
  86. package/dist/core/triage-compare.d.ts +68 -0
  87. package/dist/core/triage-compare.d.ts.map +1 -0
  88. package/dist/core/triage-compare.js +184 -0
  89. package/dist/core/triage-rules.d.ts +23 -0
  90. package/dist/core/triage-rules.d.ts.map +1 -0
  91. package/dist/core/triage-rules.js +196 -0
  92. package/dist/core/triage-shadow.d.ts +91 -0
  93. package/dist/core/triage-shadow.d.ts.map +1 -0
  94. package/dist/core/triage-shadow.js +160 -0
  95. package/dist/core/triage-worker.d.ts +55 -0
  96. package/dist/core/triage-worker.d.ts.map +1 -0
  97. package/dist/core/triage-worker.js +314 -0
  98. package/dist/core/triage.d.ts +76 -0
  99. package/dist/core/triage.d.ts.map +1 -0
  100. package/dist/core/triage.js +271 -0
  101. package/dist/core/watch-paths.d.ts +6 -0
  102. package/dist/core/watch-paths.d.ts.map +1 -0
  103. package/dist/core/watch-paths.js +62 -0
  104. package/dist/core/wrappers/bash.d.ts +15 -3
  105. package/dist/core/wrappers/bash.d.ts.map +1 -1
  106. package/dist/core/wrappers/bash.js +153 -120
  107. package/dist/db/history-repo.d.ts +1 -1
  108. package/dist/db/history-repo.d.ts.map +1 -1
  109. package/dist/db/history-repo.js +29 -14
  110. package/dist/db/schema.d.ts +1 -1
  111. package/dist/db/schema.d.ts.map +1 -1
  112. package/dist/db/schema.js +31 -0
  113. package/dist/history.d.ts +2 -2
  114. package/dist/history.d.ts.map +1 -1
  115. package/dist/history.js +3 -3
  116. package/dist/i18n.d.ts +25 -2
  117. package/dist/i18n.d.ts.map +1 -1
  118. package/dist/i18n.js +75 -10
  119. package/dist/index.d.ts +66 -3
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +527 -68
  122. package/dist/integrations.d.ts +9 -1
  123. package/dist/integrations.d.ts.map +1 -1
  124. package/dist/integrations.js +34 -6
  125. package/dist/notifications.d.ts +30 -2
  126. package/dist/notifications.d.ts.map +1 -1
  127. package/dist/notifications.js +289 -10
  128. package/dist/profiles.d.ts +1 -1
  129. package/dist/profiles.d.ts.map +1 -1
  130. package/dist/profiles.js +21 -3
  131. package/dist/rpc.d.ts +401 -5
  132. package/dist/rpc.d.ts.map +1 -1
  133. package/dist/rpc.js +138 -5
  134. package/dist/server.d.ts +20 -0
  135. package/dist/server.d.ts.map +1 -1
  136. package/dist/server.js +136 -14
  137. package/dist/settings.d.ts +167 -3
  138. package/dist/settings.d.ts.map +1 -1
  139. package/dist/settings.js +322 -3
  140. package/dist/task-transfer.d.ts +8 -1
  141. package/dist/task-transfer.d.ts.map +1 -1
  142. package/dist/task-transfer.js +2 -2
  143. package/dist/types.d.ts +8 -1
  144. package/dist/types.d.ts.map +1 -1
  145. package/dist/types.js +23 -5
  146. package/dist/workspaces.d.ts +9 -0
  147. package/dist/workspaces.d.ts.map +1 -1
  148. package/dist/workspaces.js +25 -0
  149. package/docs/ARCHITECTURE.md +48 -28
  150. package/docs/CONCEPT.md +230 -0
  151. package/docs/CROSS_PLATFORM.ru.md +150 -0
  152. package/docs/CROSS_PLATFORM.zh.md +146 -0
  153. package/docs/FAQ.md +52 -0
  154. package/docs/FAQ.ru.md +53 -0
  155. package/docs/FAQ.zh.md +43 -0
  156. package/docs/FEATURES.md +141 -44
  157. package/docs/FEATURES.zh.md +655 -0
  158. package/docs/LOCAL-AI.md +300 -0
  159. package/docs/MIGRATION.md +17 -0
  160. package/docs/README.ru.md +22 -16
  161. package/docs/README.zh.md +286 -0
  162. package/docs/SAVINGS.md +61 -0
  163. package/docs/SAVINGS.ru.md +60 -0
  164. package/docs/SAVINGS.zh.md +52 -0
  165. package/docs/ZH-LOCALE-PLAN.md +324 -0
  166. package/docs/spikes/local-model-structured-output.md +81 -0
  167. package/docs/spikes/ollama-qwen3-4b-smoke.json +28 -0
  168. package/docs/spikes/ollama-qwen3-4b.json +163 -0
  169. package/gui-experimental.cjs +8 -8
  170. package/locales/en.json +85 -0
  171. package/locales/ru.json +85 -0
  172. package/locales/zh.json +780 -0
  173. package/package.json +31 -7
  174. package/scripts/bench-local.mjs +321 -0
  175. package/scripts/check-zh-locale.mjs +218 -0
  176. package/scripts/run-tests.mjs +236 -0
  177. package/scripts/spike-local-structured.mjs +182 -0
  178. package/scripts/test-locale.mjs +4 -3
  179. package/skills/scheduled-job-best-practices/SKILL.md +6 -3
  180. package/skills/scheduled-job-best-practices/references/recipes.md +40 -0
  181. package/src/core/analytics.ts +10 -0
  182. package/src/core/audit.ts +39 -1
  183. package/src/core/cron-to-schtasks.ts +23 -4
  184. package/src/core/file-watcher.ts +20 -1
  185. package/src/core/git-trigger.ts +34 -16
  186. package/src/core/local-ai.ts +173 -0
  187. package/src/core/lock.ts +88 -3
  188. package/src/core/matrix.ts +5 -1
  189. package/src/core/native-notify.ts +3 -0
  190. package/src/core/one-shot.ts +18 -2
  191. package/src/core/permissions.ts +200 -0
  192. package/src/core/ps-wrapper.ts +492 -108
  193. package/src/core/record-history.ts +111 -4
  194. package/src/core/savings.ts +150 -0
  195. package/src/core/schedule-gate.ts +9 -3
  196. package/src/core/schedule-v2.ts +1 -1
  197. package/src/core/scheduler/index.ts +41 -3
  198. package/src/core/scheduler/linux.ts +67 -22
  199. package/src/core/scheduler/mac.ts +24 -7
  200. package/src/core/scheduler/posix.ts +2 -2
  201. package/src/core/scheduler/registry.ts +7 -5
  202. package/src/core/scheduler/windows.ts +237 -32
  203. package/src/core/secrets.ts +101 -7
  204. package/src/core/self-analysis.ts +744 -0
  205. package/src/core/session.ts +40 -5
  206. package/src/core/shutdown.ts +69 -0
  207. package/src/core/summary.ts +318 -0
  208. package/src/core/telegram.ts +266 -55
  209. package/src/core/triage-chain.ts +125 -0
  210. package/src/core/triage-compare.ts +277 -0
  211. package/src/core/triage-rules.ts +238 -0
  212. package/src/core/triage-shadow.ts +240 -0
  213. package/src/core/triage-worker.ts +344 -0
  214. package/src/core/triage.ts +366 -0
  215. package/src/core/watch-paths.ts +70 -0
  216. package/src/core/wrappers/bash.ts +181 -138
  217. package/src/db/history-repo.ts +31 -18
  218. package/src/db/schema.ts +31 -0
  219. package/src/gui.tsx +551 -14
  220. package/src/history.ts +7 -3
  221. package/src/i18n.ts +87 -13
  222. package/src/index.ts +649 -71
  223. package/src/integrations.ts +50 -6
  224. package/src/notifications.ts +468 -5
  225. package/src/profiles.ts +21 -3
  226. package/src/rpc.ts +143 -5
  227. package/src/server.ts +135 -16
  228. package/src/settings.ts +582 -5
  229. package/src/task-transfer.ts +10 -3
  230. package/src/types.ts +24 -5
  231. package/src/workspaces.ts +22 -0
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("solid-js/web"),d=require("solid-js"),wa=require("@opencode/plugin/gui"),ju=require("@opencode/plugin/rpc"),Yl=require("node:fs"),gn=require("node:path"),Nu=require("node:url");var ka=typeof document<"u"?document.currentScript:null;const Wi={type:["object","null"],properties:{server:{type:"string"},event:{type:"string"},filter:{type:"string"}},required:["server","event"]},Ea={type:["object","null"],properties:{workspaceIds:{type:"array",items:{type:"string"}},strategy:{type:["string","null"]},failureMode:{type:["string","null"]},aggregation:{type:["string","null"]},createAggregator:{type:["boolean","null"]},concurrency:{type:["number","null"]},overrides:{type:["object","null"],additionalProperties:{type:"object",properties:{prompt:{type:["string","null"]},model:{type:["string","null"]},qualityGate:{type:["string","null"]},beforeScript:{type:["string","null"]},afterScript:{type:["string","null"]}}}}},required:["workspaceIds"]},qu={type:"object",properties:{name:{type:"string"},schedule:{type:"string"},status:{type:"string"},nextRun:{type:["string","null"]},model:{type:["string","null"]},priority:{type:["number","null"]},retryCount:{type:["number","null"]},retryDelay:{type:["number","null"]},qualityGate:{type:["string","null"]},nextTaskOnSuccess:{type:["string","null"]},nextTaskOnError:{type:["string","null"]},dependsOn:{type:"array",items:{type:"string"}},prompt:{type:"string"},beforeScript:{type:["string","null"]},afterScript:{type:["string","null"]},triggerType:{type:["string","null"]},runAt:{type:["string","null"]},session:{type:["string","null"]},sessionId:{type:["string","null"]},sessionMaxRuns:{type:["number","null"]},mcpEvent:Wi,watchPath:{type:["string","null"]},timezone:{type:["string","null"]},notBefore:{type:["string","null"]},notAfter:{type:["string","null"]},activeDays:{type:["array","null"],items:{type:"number"}},windowPolicy:{type:["string","null"]},watchGlobs:{type:["array","null"],items:{type:"string"}},watchIgnore:{type:["array","null"],items:{type:"string"}},gitBranch:{type:["string","null"]},gitPaths:{type:["array","null"],items:{type:"string"}},gitIgnore:{type:["array","null"],items:{type:"string"}},gitPollSeconds:{type:["number","null"]},pausedUntil:{type:["string","null"]},workingDirectory:{type:["string","null"]},workspaceId:{type:["string","null"]},workspaceName:{type:["string","null"]},workspaceColor:{type:["string","null"]},allowedTools:{type:["array","null"],items:{type:"string"}},deniedTools:{type:["array","null"],items:{type:"string"}},matrix:Ea,matrixParentId:{type:["string","null"]},isMatrixParent:{type:"boolean"},paused:{type:"boolean"},orphaned:{type:"boolean"},runsTotal:{type:"number"},runsSuccess:{type:"number"},runsError:{type:"number"},runsPartial:{type:"number"},matrixSummary:{type:["object","null"],properties:{totalCount:{type:"number"},successCount:{type:"number"},errorCount:{type:"number"},pendingCount:{type:"number"},status:{type:"string"},message:{type:"string"}}}},required:["name","schedule","status"]},$a={type:"object",properties:{},additionalProperties:!1},Hu={type:"object",properties:{tasks:{type:"array",items:qu}},required:["tasks"]},Wu={type:"object",properties:{name:{type:"string"},schedule:{type:"string"},prompt:{type:"string"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},runAt:{type:"string"},delaySeconds:{type:"number"},session:{type:"string"},sessionMaxRuns:{type:"number"},mcpEvent:Wi,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}},matrix:Ea,timezone:{type:"string"},notBefore:{type:"string"},notAfter:{type:"string"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"}},required:["name","prompt"]},Bu={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},mn={type:"object",properties:{name:{type:"string"}},required:["name"]},Uu=mn,Gu=mn,qi={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Vu=qi,Ku=mn,Yu={type:"object",properties:{success:{type:"boolean"},logs:{type:"string"},error:{type:"string"}},required:["success","logs"]},Ju={type:"object",properties:{taskName:{type:"string"},status:{type:"string"},startedAt:{type:"string"},finishedAt:{type:"string"},durationMs:{type:"number"},error:{type:["string","null"]},nextTask:{type:["string","null"]},model:{type:["string","null"]},preFlightStatus:{type:["string","null"]},postFlightStatus:{type:["string","null"]},allowedTools:{type:["array","null"],items:{type:"string"}},deniedTools:{type:["array","null"],items:{type:"string"}}},required:["taskName","status","startedAt","finishedAt","durationMs","error"]},Qu={type:"object",properties:{limit:{type:"number"},taskName:{type:"string"},status:{type:"string"}},additionalProperties:!1},Zu={type:"object",properties:{records:{type:"array",items:Ju}},required:["records"]},Xu={type:"object",properties:{total:{type:"number"},success:{type:"number"},error:{type:"number"}},required:["total","success","error"]},ep={type:"object",properties:{},additionalProperties:!1},tp=Xu,rp={type:"object",properties:{},additionalProperties:!1},ip={type:"object",properties:{port:{type:["number","null"]}},required:["port"]},op={type:"object",properties:{},additionalProperties:!1},np={type:"object",properties:{platform:{type:"string"},title:{type:"string"}},required:["platform","title"]},ap={type:"object",properties:{},additionalProperties:!1},sp={type:"object",properties:{success:{type:"boolean"},data:{type:"string"},count:{type:"number"},error:{type:"string"}},required:["success"]},lp={type:"object",properties:{data:{type:"string"}},required:["data"]},dp={type:"object",properties:{success:{type:"boolean"},imported:{type:"number"},errors:{type:"array",items:{type:"string"}},error:{type:"string"}},required:["success"]},up={type:"object",properties:{},additionalProperties:!1},Pa={type:"object",properties:{enabled:{type:"boolean"},onlyOnError:{type:"boolean"},webhook:{type:"object",properties:{enabled:{type:"boolean"},url:{type:"string"},timeoutMs:{type:"number"},retryCount:{type:"number"},retryDelayMs:{type:"number"}},required:["enabled","url"]},templates:{type:"object",properties:{success:{type:"string"},error:{type:"string"}},required:["success","error"]},filters:{type:"object",properties:{include:{type:"array",items:{type:"string"}},exclude:{type:"array",items:{type:"string"}}},required:["include","exclude"]},telegram:{type:"object",properties:{enabled:{type:"boolean"},botToken:{type:"string"},chatId:{type:"string"},parseMode:{type:"string",enum:["","HTML","Markdown","MarkdownV2"]},disableNotification:{type:"boolean"},messageThreadId:{type:["number","null"]},includeDashboardLink:{type:"boolean"},apiBase:{type:"string"}},required:["enabled"]},native:{type:"object",properties:{enabled:{type:"boolean"},sound:{type:"boolean"}},required:["enabled"]},quietHours:{type:"object",properties:{enabled:{type:"boolean"},from:{type:"string"},to:{type:"string"}},required:["enabled","from","to"]},dashboardUrl:{type:"string"},matrix:{type:"object",properties:{enabled:{type:"boolean"},onPartial:{type:"boolean"},onAllFailed:{type:"boolean"},stuckAfterMinutes:{type:"number"}},required:["enabled","onPartial","onAllFailed","stuckAfterMinutes"]},digest:{type:"object",properties:{enabled:{type:"boolean"},frequency:{type:"string",enum:["daily","weekly"]},time:{type:"string"},lastSentAt:{type:["string","null"]}},required:["enabled","frequency","time"]}},required:["enabled","onlyOnError"]},za={type:"object",properties:{retentionDays:{type:"number"},maxRecords:{type:"number"},lastCleanupAt:{type:["string","null"]},lastCleanupDeleted:{type:"number"}},required:["retentionDays","maxRecords"]},Ra={type:"object",properties:{enabled:{type:"boolean"},retentionDays:{type:"number"},maxRecords:{type:"number"}},required:["enabled","retentionDays","maxRecords"]},pp={type:"object",properties:{maxConcurrent:{type:"number"},locale:{type:"string",enum:["ru","en"]},winterMode:{type:"boolean"},notifications:Pa,history:za,audit:Ra},required:["maxConcurrent","locale","winterMode","notifications"]},cp={type:"object",properties:{maxConcurrent:{type:"number"},locale:{type:"string",enum:["ru","en"]},winterMode:{type:"boolean"},notifications:Pa,history:za,audit:Ra},additionalProperties:!1},gp={type:"object",properties:{success:{type:"boolean"},maxConcurrent:{type:"number"},locale:{type:"string",enum:["ru","en"]},winterMode:{type:"boolean"},notifications:Pa,history:za,audit:Ra},required:["success","maxConcurrent","locale","winterMode","notifications"]},mp={type:"object",properties:{retentionDays:{type:"number"},maxRecords:{type:"number"}},additionalProperties:!1},fp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},deleted:{type:"number"},deletedByAge:{type:"number"},deletedByCount:{type:"number"},kept:{type:"number"},retentionDays:{type:"number"},maxRecords:{type:"number"},vacuumed:{type:"boolean"}},required:["success","message","deleted","kept"]},yp={type:"object",properties:{days:{type:"number"},topLimit:{type:"number"}},additionalProperties:!1},bp={type:"object",properties:{success:{type:"boolean"},report:{type:["object","null"]},error:{type:"string"}},required:["success","report"]},xp={type:"object",properties:{},additionalProperties:!1},hp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},vp={type:"object",properties:{},additionalProperties:!1},wp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Jl={type:"object",properties:{name:{type:"string"},preview:{type:"string"},updatedAt:{type:"string"}},required:["name","preview"]},kp={type:"object",properties:{},additionalProperties:!1},$p={type:"object",properties:{success:{type:"boolean"},secrets:{type:"array",items:Jl}},required:["success","secrets"]},Sp={type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"],additionalProperties:!1},_p={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},secret:Jl},required:["success"]},Tp={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},Cp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Ep={type:"object",properties:{id:{type:"number"},ts:{type:"string"},action:{type:"string"},targetType:{type:["string","null"]},target:{type:["string","null"]},actor:{type:"string"},source:{type:["string","null"]},details:{},remote:{type:["string","null"]}},required:["id","ts","action","actor"]},Pp={type:"object",properties:{action:{type:"string"},target:{type:"string"},actor:{type:"string"},since:{type:"string"},until:{type:"string"},limit:{type:"number"}},additionalProperties:!1},zp={type:"object",properties:{success:{type:"boolean"},records:{type:"array",items:Ep},total:{type:"number"}},required:["success","records","total"]},Ql={type:"object",properties:{id:{type:"string"},name:{type:"string"},prompt:{type:"string"},schedule:{type:"string"},timeoutSeconds:{type:"number"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},mcpEvent:Wi,watchPath:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}}},required:["id","name","prompt"]},Rp={type:"object",properties:{},additionalProperties:!1},Lp={type:"object",properties:{templates:{type:"array",items:Ql}},required:["templates"]},Ap={type:"object",properties:{id:{type:"string"},name:{type:"string"},prompt:{type:"string"},schedule:{type:"string"},timeoutSeconds:{type:"number"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},mcpEvent:Wi,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}}},required:["name","prompt"],additionalProperties:!1},Dp={type:"object",properties:{success:{type:"boolean"},template:Ql,error:{type:"string"}},required:["success"]},Mp={type:"object",properties:{id:{type:"string"}},required:["id"]},Fp={type:"object",properties:{success:{type:"boolean"},error:{type:"string"}},required:["success"]},Al={type:"object",properties:{name:{type:"string"},until:{type:"string"}},required:["name"]},Op={type:"object",properties:{name:{type:"string"},newSchedule:{type:"string"},newPrompt:{type:"string"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},runAt:{type:"string"},delaySeconds:{type:"number"},session:{type:"string"},sessionMaxRuns:{type:"number"},mcpEvent:Wi,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}},matrix:Ea,timezone:{type:"string"},notBefore:{type:"string"},notAfter:{type:"string"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"}},required:["name"]},Ip=qi,Zl={type:"object",properties:{id:{type:"string"},name:{type:"string"},path:{type:"string"},gitRemote:{type:["string","null"]},gitBranch:{type:["string","null"]},color:{type:["string","null"]},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]},createdAt:{type:"string"}},required:["id","name","path","createdAt"]},jp={type:"object",properties:{},additionalProperties:!1},Np={type:"object",properties:{workspaces:{type:"array",items:Zl}},required:["workspaces"]},qp={type:"object",properties:{name:{type:"string"},path:{type:"string"},color:{type:"string"},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]}},required:["path"],additionalProperties:!1},Dl={type:"object",properties:{success:{type:"boolean"},workspace:Zl,error:{type:"string"}},required:["success"]},Hp={type:"object",properties:{id:{type:"string"},name:{type:"string"},path:{type:"string"},color:{type:"string"},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]}},required:["id"],additionalProperties:!1},Wp={type:"object",properties:{id:{type:"string"}},required:["id"]},Bp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success"]},Up={type:"object",properties:{eventName:{type:"string"},payload:{type:["object","null","string","number","boolean","array"]}},required:["eventName"]},Gp={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},triggered:{type:"array",items:{type:"string"}}},required:["success","triggered"]},Vp={type:"object",properties:{name:{type:"string"},order:{type:"number"},trigger:{type:"string"},cwd:{type:"string"},command:{type:"string"},workspace:{type:["object","null"],properties:{name:{type:"string"},path:{type:"string"}},required:["name","path"]},preFlight:{type:["string","null"]},postFlight:{type:["string","null"]},qualityGate:{type:["string","null"]},roleScoped:{type:["object","null"],properties:{allowed:{type:"array",items:{type:"string"}},denied:{type:"array",items:{type:"string"}}}},estimatedDurationSec:{type:["number","null"]},estimatedCostUsd:{type:["number","null"]},estimatedTokens:{type:["number","null"]},matrixParent:{type:"string"}},required:["name","order","trigger","cwd","command"]},Xl={type:"object",properties:{success:{type:"boolean"},taskName:{type:"string"},tasks:{type:"array",items:Vp},totals:{type:"object",properties:{estimatedDurationSec:{type:["number","null"]},estimatedCostUsd:{type:["number","null"]},estimatedTokens:{type:["number","null"]}},required:[]},warnings:{type:"array",items:{type:"string"}},error:{type:"string"}},required:["success","taskName","tasks","warnings"]},Kp={type:"object",properties:{taskName:{type:"string"}},required:["taskName"],additionalProperties:!1},Yp={type:"object",properties:{success:{type:"boolean"},reports:{type:"array",items:Xl}},required:["success","reports"]},Jp={type:"object",properties:{name:{type:"string"},workspaceId:{type:["string","null"]},workspaceName:{type:["string","null"]},status:{type:"string"},error:{type:["string","null"]},finishedAt:{type:["string","null"]}},required:["name","status"]},Qp={type:"object",properties:{parentId:{type:"string"}},required:["parentId"],additionalProperties:!1},Zp={type:"object",properties:{parentId:{type:"string"},totalCount:{type:"number"},successCount:{type:"number"},errorCount:{type:"number"},pendingCount:{type:"number"},status:{type:"string"},message:{type:"string"},clones:{type:"array",items:Jp}},required:["parentId","totalCount","successCount","errorCount","status"]},Xp={type:"object",properties:{success:{type:"boolean"},report:Zp,error:{type:"string"}},required:["success"]},ec={type:"object",properties:{name:{type:"string"},workspaceIds:{type:"array",items:{type:"string"}},strategy:{type:"string"},failureMode:{type:"string"},aggregation:{type:"string"}},required:["workspaceIds"],additionalProperties:!1},tc={type:"object",properties:{success:{type:"boolean"},clones:{type:"array",items:{type:"object",properties:{name:{type:"string"},workspaceId:{type:"string"},workspaceName:{type:["string","null"]}},required:["name","workspaceId"]}},error:{type:"string"}},required:["success","clones"]},rc={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},cancelled:{type:"array",items:{type:"string"}}},required:["success","message","cancelled"]},ic={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},removed:{type:"array",items:{type:"string"}}},required:["success","message","removed"]},ed={type:"object",properties:{name:{type:"string"},dir:{type:"string"},port:{type:["number","null"]},isDefault:{type:"boolean"},active:{type:"boolean"}},required:["name","dir","isDefault","active"]},oc={type:"object",properties:{},additionalProperties:!1},nc={type:"object",properties:{current:{type:"string"},pinnedByEnv:{type:"boolean"},profiles:{type:"array",items:ed}},required:["current","pinnedByEnv","profiles"]},ac={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},sc={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},current:{type:"string"},restartRequired:{type:"boolean"}},required:["success","message","current","restartRequired"]},lc={type:"object",properties:{name:{type:"string"},port:{type:"number"}},required:["name"],additionalProperties:!1},dc={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},profile:ed,error:{type:"string"}},required:["success"]},uc={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},pc={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},cc=ju.Rpc.define({id:"opencode-windows-scheduler",methods:{get_tasks:{input:$a,output:Hu},create_task:{input:Wu,output:Bu},delete_task:{input:Uu,output:qi},run_task:{input:Gu,output:Vu},pause_task:{input:Al,output:qi},resume_task:{input:Al,output:qi},update_task:{input:Op,output:Ip},get_task_logs:{input:Ku,output:Yu},get_history:{input:Qu,output:Zu},get_metrics:{input:ep,output:tp},get_dashboard_port:{input:rp,output:ip},get_platform:{input:op,output:np},dry_run:{input:Kp,output:Xl},dry_run_all:{input:$a,output:Yp},get_matrix_results:{input:Qp,output:Xp},cancel_matrix:{input:mn,output:rc},cleanup_matrix_orphans:{input:$a,output:ic},cleanup_history:{input:mp,output:fp},get_analytics:{input:yp,output:bp},expand_matrix_preview:{input:ec,output:tc},get_workspaces:{input:jp,output:Np},add_workspace:{input:qp,output:Dl},update_workspace:{input:Hp,output:Dl},delete_workspace:{input:Wp,output:Bp},get_profiles:{input:oc,output:nc},set_profile:{input:ac,output:sc},create_profile:{input:lc,output:dc},delete_profile:{input:uc,output:pc},export_tasks:{input:ap,output:sp},import_tasks:{input:lp,output:dp},get_settings:{input:up,output:pp},save_settings:{input:cp,output:gp},get_templates:{input:Rp,output:Lp},save_template:{input:Ap,output:Dp},delete_template:{input:Mp,output:Fp},emit_event:{input:Up,output:Gp},test_notification:{input:xp,output:hp},send_digest:{input:vp,output:wp},list_secrets:{input:kp,output:$p},save_secret:{input:Sp,output:_p},delete_secret:{input:Tp,output:Cp},get_audit:{input:Pp,output:zp}},events:{}}),gc=["ru","en"],Hi="ru",Ml=gn.dirname(Nu.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:ka&&ka.tagName.toUpperCase()==="SCRIPT"&&ka.src||new URL("gui-experimental.cjs",document.baseURI).href));function mc(){return[gn.resolve(Ml,"../locales"),gn.resolve(Ml,"locales")]}const Ta=new Map,Fl=new Map,fc=td(process.env.OPENCODE_SCHEDULER_LOCALE);let Ca=fc;function yc(s){return typeof s=="string"&&gc.includes(s)}function td(s,y=Hi){return yc(s)?s:y}function bc(s){return Ca=td(s,Hi),Ca}function xc(s){for(const y of mc()){const w=gn.join(y,`${s}.json`);try{if(Yl.statSync(w).isFile())return w}catch{}}return null}function Ol(s){const y=Ta.get(s);if(y)return y;const w=xc(s),N={};if(w)try{const P=JSON.parse(Yl.readFileSync(w,"utf8"));if(P&&typeof P=="object"&&!Array.isArray(P))for(const[te,Te]of Object.entries(P))typeof Te=="string"&&Te.length>0&&(N[te]=Te)}catch(P){console.error(`[i18n] Не удалось прочитать ${w}: ${P instanceof Error?P.message:String(P)}`)}return Ta.set(s,N),N}function rd(s,y){const w={};for(const[N,P]of Object.entries(y))typeof P=="string"&&P.length>0&&(w[N]=P);Ta.set(s,w)}function hc(s,y){let w=Fl.get(y);return w||(w=new Intl.PluralRules(y),Fl.set(y,w)),w.select(s)}function vc(s,y){try{return new Intl.NumberFormat(y).format(s)}catch{return String(s)}}function id(s,y){let w=0;for(let N=y;N<s.length;N++){const P=s[N];if(P==="{")w++;else if(P==="}"&&(w--,w===0))return N}return-1}function wc(s){let y=0;for(let w=0;w<s.length;w++){const N=s[w];if(N==="{")y++;else if(N==="}")y--;else if(N===","&&y===0)return w}return-1}function kc(s){const y={};let w=0;for(;w<s.length;){for(;w<s.length&&/[\s,]/.test(s[w]);)w++;const N=w;for(;w<s.length&&s[w]!=="{";)w++;if(w>=s.length)break;const P=s.slice(N,w).trim(),te=id(s,w);if(te===-1)break;P&&(y[P]=s.slice(w+1,te)),w=te+1}return y}function od(s,y,w,N){let P="",te=0;for(;te<s.length;){const Te=s[te];if(Te==="#"&&N!==void 0){P+=vc(N,y),te++;continue}if(Te!=="{"){P+=Te,te++;continue}const Tt=id(s,te);if(Tt===-1){P+=s.slice(te);break}P+=$c(s.slice(te+1,Tt),y,w),te=Tt+1}return P}function $c(s,y,w){const N=wc(s),P=(N===-1?s:s.slice(0,N)).trim(),te=w[P];if(N===-1)return te==null?`{${s}}`:String(te);const Te=s.slice(N+1).trim(),Tt=/^([a-zA-Z]+)/.exec(Te),lt=Tt?Tt[1]:"";if(lt==="plural"){const jr=Number(te),dt=Number.isFinite(jr)?jr:0,je=kc(Te.slice(lt.length)),ut=hc(dt,y),Ke=je[ut]??je.other??"";return od(Ke,y,w,dt)}return te==null?`{${s}}`:String(te)}function Sc(s,y){const w=Ca;let N=Ol(w)[s],P=w;return N===void 0&&w!==Hi&&(N=Ol(Hi)[s],P=Hi),N===void 0?s:od(N,P,y??{})}const _c={"app.dashboardTitle":"Веб-дашборд","common.runsCount":"запусков: {count, plural, one {# запуск} few {# запуска} many {# запусков} other {# запуска}}","dryRun.cron":"По расписанию «{schedule}».","dryRun.cronParseError":'Не удалось разобрать cron "{schedule}" для расчёта ближайших запусков.',"dryRun.cronTimezone":"По расписанию «{schedule}» ({timezone}).","dryRun.cwdImplicit":"Рабочая директория не задана явно — будет использована папка текущего проекта.","dryRun.cwdMissing":'Рабочая директория "{path}" не существует на диске.',"dryRun.cwdNotDir":'Путь "{path}" существует, но не является директорией.',"dryRun.cycle":'Обнаружена циклическая зависимость вокруг задачи "{task}" — конвейер разорван на этом узле.',"dryRun.danger.forcePush":"принудительный push в git (`git push --force`)","dryRun.danger.rmRoot":"возможна рекурсивная очистка корня файловой системы (`rm -rf /`)","dryRun.dangerPattern":"Опасный паттерн: {message}.","dryRun.dependencyMissing":'Зависимость "{task}" не найдена среди задач — узел пропущен.',"dryRun.file.any":"Файловый триггер: любое изменение подходит.","dryRun.file.globs":"маски: {count}","dryRun.file.ignore":"исключения: {count}","dryRun.file.trigger":"Файловый триггер: {parts}.","dryRun.git.branchMismatch":"Ветка не подходит под фильтр «{branch}».","dryRun.git.checkError":"Git-триггер: ошибка проверки — {error}.","dryRun.git.notRepo":"Задача с git-триггером, но рабочая директория не является git-репозиторием.","dryRun.manual":"Запуск вручную (в составе конвейера).","dryRun.matrix.expandError":"Матрица не может быть развёрнута: {error}","dryRun.matrix.parent":"[{name}] Родитель матрицы не выполняется сам — показаны {count} клон(а/ов) по workspace.","dryRun.mcp.event":"MCP-событие {server}:{event}{filter}.","dryRun.mcp.filter":" (фильтр «{filter}»)","dryRun.mcp.missing":"MCP-событие (параметры не заданы).","dryRun.noHistory":"Нет успешных запусков в истории — оценка длительности/токенов/стоимости недоступна.","dryRun.once":"Однократный запуск.","dryRun.once.at":"Однократно в {runAt}.","dryRun.taskNotFound":'Задача "{task}" не найдена.',"dryRun.window.noOpening":"Сейчас {reason}: открытие окна не найдено, запуск пропущен.","dryRun.window.outside":"вне окна","dryRun.window.postpone":"Сейчас {reason}: запуск будет перенесён на {nextOpenAt}.","dryRun.window.run":"Сейчас {reason}: политика run — задача выполнится всё равно.","dryRun.window.skip":"Сейчас {reason}: при политике skip запуск будет пропущен.","gitTrigger.baseline":"Запомнен текущий коммит {commit} — задача запустится на следующем изменении.","gitTrigger.branchMismatch":"Ветка {branch} не подходит под фильтр «{pattern}».","gitTrigger.changed":"Новый коммит {commit}: изменено файлов {count} ({files}).","gitTrigger.ignored":"Изменено файлов: {count}, но ни один не подходит под фильтры.","gitTrigger.noChanges":"Новых коммитов нет.","gitTrigger.noRepo":"«{cwd}» не git-репозиторий — git-триггер не сработает.","gui.add":"+ Добавить","gui.addWorkspaceFirst":"Сначала добавьте хотя бы один workspace.","gui.aggregation":"Агрегация","gui.allowedToolsLabel":"Белый список (allowedTools)","gui.app.title":"Планировщик задач","gui.auditAction":"Действие","gui.auditActionPlaceholder":"например task.create","gui.auditActor":"Автор","gui.auditDeletedFrom":"Удалён с","gui.auditEmpty":"Записей аудита нет.","gui.auditEnable":"Включить аудит","gui.auditHeading":"📜 Журнал аудита","gui.auditHint":"Записываются мутации задач, настроек, шаблонов, профилей, рабочих зон, секретов, импорта и очистки истории. Детали маскируются (секреты заменены на {redacted}).","gui.auditSource":"Источник","gui.auditStorageHeading":"Журнал аудита — хранение","gui.auditTarget":"Цель","gui.auditTargetPlaceholder":"имя задачи/секрета","gui.auditTime":"Время","gui.botTokenEnvHint":"Токен можно не хранить в settings.json: задайте OPENCODE_SCHEDULER_TELEGRAM_BOT_TOKEN и OPENCODE_SCHEDULER_TELEGRAM_CHAT_ID.","gui.botTokenPlaceholder":"Токен бота из @BotFather","gui.cancel":"Отмена","gui.chatIdPlaceholder":"chat_id (например, 123456789 или -100...)","gui.cleaningUp":"Очистка...","gui.cleanupNow":"🧹 Очистить сейчас","gui.collapseFormTitle":"Свернуть форму","gui.common.projectDir":"(папка проекта)","gui.common.unknownError":"Неизвестная ошибка","gui.concurrencySequentialPlaceholder":"1 (sequential)","gui.concurrencyUnlimitedPlaceholder":"без лимита","gui.createProfile":"+ Создать","gui.createTask":"➕ Создать задачу","gui.createTaskSubmit":"Создать задачу","gui.creating":"Создание...","gui.cron.custom":"Свое расписание…","gui.cron.dailyAt9":"Каждый день в 09:00","gui.cron.everyHour":"Каждый час","gui.cron.everyMinute":"Каждую минуту","gui.cron.mondayAt10":"Каждый понедельник в 10:00","gui.cronExprLabel":"Cron-выражение","gui.customTemplate":"Кастомный шаблон:","gui.dashboardLink":"ссылка на дашборд","gui.defaultSuffix":"(по умолчанию)","gui.delete":"Удалить","gui.deleteTemplateTitle":"Удалить шаблон","gui.deniedToolsLabel":"Чёрный список (deniedTools)","gui.dependsOnHint":"Задача запустится автоматически, когда все отмеченные задачи завершатся успешно.","gui.dependsOnLabel":"Зависит от задач (успешное завершение)","gui.digestChannels":"Каналы: webhook, Telegram, нативные уведомления ОС.","gui.digestDaily":"ежедневно","gui.digestEnable":"Отправлять дайджест","gui.digestHeading":"Дайджест","gui.digestHint":"Запуски, success rate, стоимость и топ ошибок за сутки/неделю.","gui.digestLastSent":"последняя отправка: {when}","gui.digestNeverSent":"ещё не отправлялся","gui.digestWeekly":"еженедельно (Пн)","gui.dryRunButton":"🧪 Превью","gui.dryRunLocalTitle":"🧪 Превью (локальное, по полям формы)","gui.dryRunMatrixPreview":"Matrix: будет создано {count, plural, one {# клон} few {# клона} many {# клонов} other {# клонов}} по workspace; родитель сам не выполняется.","gui.dryRunNoNameWarning":"Не указано имя — превью локальное (форма не сохранена).","gui.dryRunPreviewTitle":"Локальное превью команды по текущим полям формы (без RPC и без запуска)","gui.editingTask":"Редактирование задачи","gui.emptyNormal":"Нет активных задач. Создайте первую и доверьте рутину ИИ!","gui.emptyWinter":"Задач пока нет. Самое время украсить ёлку!","gui.errorBoundaryDetail":"Произошла ошибка отображения. Попробуйте перезагрузить панель.","gui.expandFormTitle":"Развернуть форму создания задачи","gui.export":"Экспорт","gui.exportBusy":"Экспорт...","gui.filterExcludePlaceholder":"Исключить задачи (через запятую, * — маска)","gui.filterHint":"Пустой список «только» = все задачи. Исключения важнее включений.","gui.filterIncludePlaceholder":"Только эти задачи (через запятую, * — маска)","gui.filterSummary":"Фильтр: {scope} · показано {visible} из {total}","gui.gitBranchesLabel":"Ветки (glob, через запятую; пусто — любая)","gui.gitIgnoreLabel":"Игнорируемые пути (glob, по одной в строке)","gui.gitPathsLabel":"Пути изменений (glob, по одной в строке; пусто — любой файл)","gui.gitPollHint":"Первый опрос запоминает текущий HEAD без запуска задачи — дальше задача стартует на новом коммите, затронувшем подходящие файлы.","gui.gitPollLabel":"Период опроса, секунды (минимум 5, по умолчанию 60)","gui.hideForm":"Скрыть форму ▴","gui.history.durationMs":"{ms} мс","gui.history.error":"❌ Ошибка","gui.history.modelTitle":"Модель: {model}","gui.history.nextTaskTitle":"Запущена следующая задача в цепочке","gui.history.success":"✅ Успех","gui.historyCleanupHint":"Удаляются только завершённые записи; незавершённые запуски не трогаются.","gui.historyDeleteOlderLabel":"Удалять записи старше, дней","gui.historyHeading":"🧹 История и ретеншн","gui.historyKeepMaxLabel":"Хранить не более записей","gui.historyNoExpiry":"без срока","gui.historyNoLimit":"без лимита","gui.historyOlderThan":"старше {days} дн.","gui.historyUpToRecords":"до {count} записей","gui.import":"Импорт","gui.importBusy":"Импорт...","gui.job.activeDaysTitle":"Запуск только в дни: {days}","gui.job.cancelMatrixTitle":'Отменить выполняющиеся клоны матрицы "{name}"',"gui.job.deleteMatrixTitle":'Удалить матрицу "{name}" вместе с клонами',"gui.job.deleteTitle":'Удалить "{name}"',"gui.job.dependsOn":"🔗 Зависит от: {list}","gui.job.dryRunTitle":'Dry-Run симуляция "{name}"',"gui.job.durationEst":"⏱ ~{seconds} с","gui.job.editTitle":'Редактировать "{name}"',"gui.job.fanoutConcurrency":", одновременно: {concurrency}","gui.job.fanoutOverrides":", переопределено workspace: {overrides}","gui.job.fanoutTitle":"Matrix fan-out: {count} клонов, стратегия: {strategy}, при ошибке: {failureMode}{concurrency}{overrides}","gui.job.gitTriggerBranch":" в ветке {branch}","gui.job.gitTriggerPaths":", пути: {paths}","gui.job.gitTriggerTitle":"Git-триггер: новый коммит{branch}{paths}. Опрос каждые {seconds} с.","gui.job.historyEmpty":"Запусков пока нет.","gui.job.historyPanelTitle":"📜 История последних запусков","gui.job.historyTitle":'История "{name}"',"gui.job.logonModeUnknown":"неизвестен","gui.job.logsTitle":'Логи "{name}"',"gui.job.matrixClone":"Клон матрицы. Родитель: {parent}","gui.job.matrixDone":"📦 Matrix: {success}/{total} успешных","gui.job.mcpEventFilterSuffix":" (фильтр: {filter})","gui.job.mcpEventTitle":"MCP-событие: {event}{filterSuffix}","gui.job.modelTitle":"Модель LLM: {model}","gui.job.pauseTitle":'Поставить на паузу "{name}"',"gui.job.pauseUnavailable":'Задача "{name}" отсутствует в планировщике ОС — пауза недоступна',"gui.job.pausedUntilShort":"⏸ до {date}","gui.job.pausedUntilTitle":"Пауза до {date} — задача включится автоматически.","gui.job.priorityTitle":"Приоритет: {label} ({priority})","gui.job.resumeTitle":'Возобновить "{name}"',"gui.job.runTitle":'Запустить "{name}"',"gui.job.runWhenLoggedOffShort":"без входа","gui.job.runWhenLoggedOffTitle":"Задача запускается без входа пользователя. Режим в планировщике: {mode}","gui.job.runsLine":"📊 Всего: {total} | ✅ {success} | 🟠 {partial} | ❌ {error}","gui.job.runsTitle":"Запуски именно этой задачи: успешные / частичные / ошибки и таймауты","gui.job.sessionContinueShort":"↪ продолжение","gui.job.sessionContinueTitle":"Продолжение последней сессии OpenCode (--continue)","gui.job.sessionReuseShort":"⟳ сессия","gui.job.sessionReuseTitle":"Переиспользуемая сессия OpenCode","gui.job.sessionReuseTitleId":"Переиспользуемая сессия OpenCode: {id}","gui.job.simulating":"Симуляция…","gui.job.simulationFailed":"Симуляция не удалась","gui.job.timezoneTitle":"Часовой пояс задачи: {tz}","gui.job.tokensEst":"· ~{tokens} ток.","gui.job.toolLimitsTitle":"Ограничения инструментов: {limits}","gui.job.totalsLine":"Σ {duration} с · {tokens} токенов{cost}","gui.job.watchFile":"Отслеживание файла: {path}","gui.job.watchGlobsCount":"✳ {count, plural, one {# маска} few {# маски} many {# масок} other {# масок}}","gui.job.watchGlobsTitle":"Glob-маски файлового триггера: {globs}","gui.job.windowTitle":"Окно запуска: {from}–{to}. Вне окна запуск переносится на его открытие.","gui.jobStatus.error":"🔴 Ошибка","gui.jobStatus.never":"⚪ Не запускалась","gui.jobStatus.orphan":"🧟 Нет в планировщике","gui.jobStatus.partial":"🟠 Частично","gui.jobStatus.paused":"⏸ Пауза","gui.jobStatus.running":"🟡 Выполняется: {seconds} сек","gui.jobStatus.success":"🟢 Готова","gui.jobStatus.unknown":"⚪ Неизвестно","gui.jobsTitle":"Планировщик","gui.lastCleanupDone":"{when} · удалено {deleted}","gui.lastCleanupLabel":"Последняя очистка:","gui.lastCleanupNever":"ещё не выполнялась","gui.loading":"Загрузка...","gui.logs.empty":"(пусто)","gui.logs.loadFailed":"Не удалось загрузить логи","gui.logs.loading":"Загрузка логов…","gui.logs.readError":"Ошибка чтения логов:","gui.logsHeading":"Логи","gui.matrix.cancelClonesConfirm":'Отменить выполняющиеся клоны матрицы "{name}"?',"gui.matrix.deleteConfirm":'Удалить матрицу "{name}" вместе со всеми клонами и агрегатором?',"gui.matrixAggregator":"Создать aggregator-задачу matrix-complete (запустится после всех клонов)","gui.matrixAllFailed":"все упали","gui.matrixConcurrency":"Одновременно клонов (concurrency)","gui.matrixContinue":"continue — продолжать","gui.matrixHint":"Задача-шаблон раскладывается на клоны по workspace. Родитель сам не выполняется — он запускает клоны и агрегирует результат.","gui.matrixModelPlaceholder":"Модель (override)","gui.matrixNotifyEnable":"Уведомлять о завершении матриц","gui.matrixNotifyHeading":"Матрицы","gui.matrixOverridesTitle":"⚙ Настройки по workspace — переопределено {count}","gui.matrixParallel":"parallel — все сразу","gui.matrixPerTask":"per-task — по задачам","gui.matrixPromptPlaceholder":"Промпт (по умолчанию — общий промпт формы)","gui.matrixSelectHint":"Выберите хотя бы один workspace — превью клонов появится здесь.","gui.matrixSequential":"sequential — по одному","gui.matrixStop":"stop — остановить","gui.matrixStuckHint":"Клон, выполняющийся дольше указанного времени, уведомляется один раз. 0 — выключить.","gui.matrixStuckMinutes":"зависший клон, мин:","gui.matrixSummary":"summary — сводка","gui.matrixWillCreate":"Будет создано {count, plural, one {# клон} few {# клона} many {# клонов} other {# клонов}}:","gui.matrixWorkspacesSelected":"Workspaces (для матрицы) — выбрано","gui.maxConcurrentLabel":"Макс. одновременных задач:","gui.maxRetriesLabel":"Кол-во повторов при ошибке","gui.mcpEventLabel":"Имя события","gui.mcpEventPlaceholder":"например, github.pr.opened","gui.mcpFilterHint":"key=value сравнивается с полем payload, иначе фильтр считается regex/подстрокой. События приходят через RPC emit_event.","gui.mcpFilterLabel":"Фильтр (опционально)","gui.mcpFilterPlaceholder":'например, repo="my-project" или regex',"gui.mcpSourceLabel":"MCP-сервер / источник","gui.mcpSourcePlaceholder":"например, github","gui.metricsTotalsLine":"📊 Всего по всем задачам: {total} · ✅ {success} · ❌ {error}","gui.metricsTotalsTitle":"Суммарные метрики по всем задачам (включая архивные записи метрик)","gui.modalShortcutHint":"Ctrl+Enter — сохранить, Escape — отмена","gui.modelHint":"Пусто — модель OpenCode по умолчанию. Иначе будет передан флаг --model.","gui.modelLabel":"Модель LLM","gui.modelPlaceholder":"по умолчанию (как в OpenCode)","gui.nativeHint":"Windows Toast, macOS Notification Center, Linux notify-send. Без внешних зависимостей.","gui.nativeNotifications":"Нативные уведомления ОС","gui.newTask":"Новая задача","gui.noNameFallback":"(без имени)","gui.noOtherTasks":"Других задач пока нет","gui.noWorkspaceOption":"Без workspace — рабочая директория","gui.notifications":"🔔 Уведомления","gui.notifyAllRuns":"все запуски","gui.notifyDisabled":"выключены","gui.notifyEnable":"Включить уведомления","gui.notifyOnlyErrors":"только ошибки","gui.notifyOnlyOnError":"Только при ошибке","gui.ok":"ОК","gui.onFailure":"При ошибке","gui.oneShotDelayHint":"Или задержка в секундах от нажатия кнопки «Создать задачу»:","gui.oneShotDelayPlaceholder":"например, 3600","gui.oneShotHint":"Приоритет у runAt: если задано время, delaySeconds игнорируется. После запуска задача больше не повторится.","gui.oneShotTimeLabel":"Время однократного запуска","gui.oneShotTimePlaceholder":"2026-11-14T10:00:00.000Z или локальная дата","gui.openDashboard":"🌐 Открыть дашборд","gui.openDashboardTitle":"Открыть локальный веб-дашборд (фактический порт сервера)","gui.otherPriorityOption":"Другой ({priority})","gui.outsideWindowLabel":"Вне окна или в неразрешённый день","gui.parseModeLabel":"разметка:","gui.postflightHint":"Например: git push или npm run build. Выполняется в рабочей директории задачи даже при ошибке основной задачи.","gui.postflightLabel":"Команда после запуска (Post-flight)","gui.postflightPlaceholder":"например: git push","gui.preflightHint":"Например: git pull или npm install. Выполняется в рабочей директории задачи. Ненулевой код отменяет запуск (Pre-flight script failed).","gui.preflightLabel":"Команда перед запуском (Pre-flight)","gui.preflightPlaceholder":"например: git pull","gui.priority.critical":"Критический","gui.priority.high":"Высокий","gui.priority.low":"Низкий","gui.priority.normal":"Обычный","gui.priorityHint":"Если готовы несколько задач сразу, первой запускается задача с более высоким приоритетом.","gui.priorityLabel":"Приоритет","gui.profile.deleteConfirm":'Удалить профиль "{name}" вместе с его БД, настройками и логами?',"gui.profile.namePrompt":"Имя нового профиля (латиница, цифры, - и _)","gui.profileActive":"активен","gui.profileDelete":"Удалить","gui.profileEnvLocked":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE. Переключение в GUI недоступно.","gui.profileEnvLockedTitle":"Профиль задан переменной окружения OPENCODE_SCHEDULER_PROFILE — переключение в GUI недоступно","gui.profilePort":"порт {port}","gui.profilePortDefault":"порт по умолчанию","gui.profileSwitch":"Переключить","gui.profilesHeading":"👤 Профили","gui.profilesHint":"У каждого профиля своя БД, настройки, логи и порт дашборда. После переключения перезапустите OpenCode.","gui.profilesTitle":"Профили: отдельные БД, настройки и порт дашборда","gui.projectFolderFallback":"(папка проекта)","gui.promptLabel":"Промпт","gui.promptPlaceholder":"Напиши краткий отчет о состоянии рынка","gui.promptTemplateLabel":"Шаблон промпта","gui.promptTemplates.codeHygiene":"Гигиена кода","gui.promptTemplates.codeHygienePrompt":"Проведи аудит гигиены кода: найди неиспользуемые импорты, неиспользуемые переменные, лишние зависимости и предложи правки.","gui.promptTemplates.custom":"Свой промпт","gui.promptTemplates.morningDigest":"Утренний дайджест","gui.promptTemplates.morningDigestPrompt":"Собери утренний дайджест: какие изменения были за ночь, есть ли проваленные сборки, что требует внимания сегодня.","gui.promptTemplates.nightWatch":"Ночной сторож (тесты)","gui.promptTemplates.nightWatchPrompt":"Запусти ночные проверки: прогнали тесты, зафиксируй ошибки и составь краткий отчёт о состоянии репозитория.","gui.qualityGateHint":"Выполняется после успешного ответа ИИ. Ненулевой код = ошибка задачи.","gui.qualityGateLabel":"Проверочная команда (Quality Gate)","gui.qualityGatePlaceholder":"например: npm run test","gui.quietFrom":"с","gui.quietHours":"Тихие часы","gui.quietHoursHint":"В тихие часы success и partial подавляются, ошибки и таймауты отправляются.","gui.quietTo":"до","gui.refresh":"Обновить","gui.remoteNotSet":"remote не задан","gui.retryCount":"повторов:","gui.retryDelayLabel":"Задержка перед повтором (сек)","gui.retryDelayMs":"пауза, мс:","gui.retryHint":"Повтор при сетевой ошибке, таймауте, 5xx и 429 (экспоненциальная пауза).","gui.runWhenLoggedOffHint":"Windows: задача будет запускаться и тогда, когда никто не вошёл в систему (/ru SYSTEM). Она работает в session 0 — без вашего профиля, сетевых дисков и сохранённых паролей, поэтому задачи, которым нужны ваши файлы или сеть, могут не сработать. Обычно требуется запуск OpenCode от имени администратора.","gui.runWhenLoggedOffLabel":"Запускать без входа пользователя","gui.save":"💾 Сохранить","gui.saveAsTemplate":"💾 Сохранить как шаблон","gui.saveAsTemplateTitle":"Сохранить текущие настройки формы как шаблон","gui.saving":"Сохранение...","gui.scheduleLabel":"Расписание","gui.secretNamePlaceholder":"Имя секрета (A-Za-z0-9_.-)","gui.secretValuePlaceholder":"Значение (не возвращается при чтении)","gui.secrets":"🔐 Секреты","gui.secretsEmpty":"Секретов нет. Значения хранятся зашифрованно в secrets.json.","gui.secretsUsage":"В задачах используйте ссылку {secretRef} — значение подставляется из хранилища при запуске и маскируется в логах.","gui.sendDigestNow":"📊 Отправить дайджест сейчас","gui.sendTestNotification":"🧪 Тестовое уведомление","gui.sending":"Отправка...","gui.sessionContinue":"Последняя (--continue)","gui.sessionLabel":"Сессия OpenCode","gui.sessionMaxRunsHint":"sessionId генерируется плагином автоматически. При достижении лимита сессия удаляется, следующий запуск начинает чистую сессию.","gui.sessionMaxRunsLabel":"Сколько запусков переживает сессия (sessionMaxRuns, необязательно)","gui.sessionNew":"Новая","gui.sessionReuse":"Переиспользовать","gui.silent":"без звука","gui.strategy":"Стратегия","gui.task.deleteConfirm":'Удалить задачу "{name}"?',"gui.taskFiltersHeading":"Фильтры по задачам","gui.taskNameLabel":"Имя задачи","gui.taskNamePlaceholder":"например, Gui-Test","gui.tasksHeading":"Задачи","gui.templateErrorPlaceholder":'❌ Задача "{task}" упала ({duration}){error}',"gui.templateHint":"Плейсхолдеры: {task} {status} {duration} {error} {emoji} {cost} {tokens}. Пусто = шаблон по умолчанию.","gui.templateSuccessPlaceholder":'✅ Задача "{task}" выполнена ({duration})',"gui.templates.deleteConfirm":'Удалить шаблон "{name}"?',"gui.templates.namePrompt":"Название шаблона","gui.templatesHeading":"Шаблоны сообщений","gui.timeoutMs":"Таймаут, мс:","gui.timezoneHint":"Другая зона — задача будится каждую минуту, cron проверяется с учётом пояса.","gui.timezoneLabel":"Часовой пояс (IANA)","gui.timezonePlaceholder":"Пусто — системный пояс","gui.toast.chooseFile":"Выберите файл","gui.toast.deleteFailed":"Ошибка удаления","gui.toast.digestFailed":"Дайджест не отправлен","gui.toast.digestSent":"Дайджест отправлен","gui.toast.envInvalid":"Неверный формат env","gui.toast.envSaveError":"Ошибка сохранения env","gui.toast.envSaveFailed":"Не удалось сохранить env","gui.toast.envSaved":"Env-переменные сохранены","gui.toast.exportFailed":"Ошибка экспорта","gui.toast.exported":"Экспортировано задач: {count}","gui.toast.historyCleanupDone":"Очистка истории завершена","gui.toast.historyCleanupFailed":"Очистка не удалась","gui.toast.historyLoadFailed":"Ошибка загрузки истории","gui.toast.importFailed":"Ошибка импорта","gui.toast.imported":"Импортировано задач: {count}","gui.toast.jobsLoadFailed":"Ошибка загрузки задач","gui.toast.logsReadFailed":"Ошибка чтения логов","gui.toast.matrixCancelError":"Ошибка отмены матрицы","gui.toast.matrixCancelFailed":"Не удалось отменить матрицу","gui.toast.noFileForImport":"Не выбран файл для импорта.","gui.toast.nothingToSave":"Нечего сохранять","gui.toast.pauseError":"Ошибка паузы","gui.toast.pauseFailed":'Не удалось поставить на паузу "{name}"',"gui.toast.paused":'Задача "{name}" поставлена на паузу',"gui.toast.profileCreateError":"Ошибка создания профиля","gui.toast.profileCreateFailed":"Не удалось создать профиль","gui.toast.profileCreated":"Профиль создан","gui.toast.profileDeleteError":"Ошибка удаления профиля","gui.toast.profileDeleteFailed":"Не удалось удалить профиль","gui.toast.profileDeleted":"Профиль удалён","gui.toast.profileSwitchError":"Ошибка переключения профиля","gui.toast.profileSwitchFailed":"Не удалось переключить профиль","gui.toast.profileSwitched":"Профиль переключён","gui.toast.promptRequired":"Сначала заполните промпт — он обязателен для шаблона.","gui.toast.resumeError":"Ошибка возобновления","gui.toast.resumeFailed":'Не удалось возобновить "{name}"',"gui.toast.resumed":'Задача "{name}" возобновлена',"gui.toast.runFailed":"Ошибка запуска","gui.toast.secretDeleted":"Секрет удалён","gui.toast.secretNotDeleted":"Секрет не удалён","gui.toast.secretNotSaved":"Секрет не сохранён","gui.toast.secretSaved":"Секрет сохранён","gui.toast.settingsSaveFailed":"Не удалось сохранить настройки","gui.toast.taskCrashed":'Задача "{name}" упала',"gui.toast.taskCreateFailed":"Ошибка создания задачи","gui.toast.taskCreated":"Задача создана","gui.toast.taskDeleted":'Задача "{name}" удалена',"gui.toast.taskDone":'Задача "{name}" выполнена',"gui.toast.taskStartFailed":'Не удалось запустить "{name}"',"gui.toast.taskStarted":'Задача "{name}" запущена',"gui.toast.taskUpdateFailed":"Ошибка обновления задачи","gui.toast.taskUpdated":"Задача обновлена","gui.toast.templateDeleteError":"Ошибка удаления шаблона","gui.toast.templateDeleteFailed":"Не удалось удалить шаблон","gui.toast.templateDeleted":'Шаблон "{name}" удалён',"gui.toast.templateSaveError":"Ошибка сохранения шаблона","gui.toast.templateSaveFailed":"Не удалось сохранить шаблон","gui.toast.templateSaved":'Шаблон "{name}" сохранён',"gui.toast.testFailed":"Тест не удался","gui.toast.testSent":"Тестовое уведомление отправлено","gui.toast.workspaceAddFailed":"Ошибка добавления workspace","gui.toast.workspaceAdded":"Workspace добавлен","gui.toast.workspaceDeleteFailed":"Ошибка удаления workspace","gui.toast.workspaceDeleted":"Workspace удалён","gui.toast.workspaceUpdateFailed":"Ошибка обновления workspace","gui.toast.workspaceUpdated":"Workspace обновлён","gui.toolLimitsDenied":"При конфликте приоритет у denied. Пустой allowedTools запрещён.","gui.toolLimitsHeading":"🔒 Ограничения инструментов","gui.toolLimitsNote":"⚠ Metadata-only: opencode 2.2.3 не поддерживает allow/deny флаги — ограничения фиксируются в логе и истории.","gui.toolPlaceholder":"свой инструмент, например websearch","gui.triggerCron":"По расписанию (Cron)","gui.triggerFile":"При изменении файла","gui.triggerGit":"Новый коммит (Git)","gui.triggerOnce":"Разово","gui.triggerTypeLabel":"Тип триггера","gui.uiError":"Ошибка UI: {message}","gui.unboundedPlaceholder":"без ограничения","gui.validation.cronRequired":"Укажите cron-расписание.","gui.validation.dependsOnSelf":"Задача не может зависеть от самой себя.","gui.validation.gitPollInvalid":"Период опроса git — целое число секунд не меньше 5.","gui.validation.gitWorkspaceRequired":"Для git-триггера выберите workspace или укажите рабочую директорию.","gui.validation.matrixConcurrencyInvalid":"Concurrency матрицы — целое положительное число.","gui.validation.matrixWorkspacesRequired":"Выберите хотя бы один workspace для матрицы.","gui.validation.priorityInvalid":"Приоритет — целое число от 0 до 10.","gui.validation.promptRequired":"Укажите промпт.","gui.validation.retryCountInvalid":"Количество повторов — целое число ≥ 0.","gui.validation.retryDelayInvalid":"Задержка повтора — целое число секунд ≥ 0.","gui.validation.runAtRequired":"Укажите время запуска или задержку.","gui.validation.sessionMaxRunsInvalid":"Лимит запусков сессии — целое положительное число.","gui.validation.taskNameRequired":"Укажите имя задачи.","gui.validation.timezoneInvalid":"Неизвестная таймзона. Укажите IANA-пояс, например Europe/Moscow.","gui.validation.windowPairRequired":"Окно запуска задаётся только парой «с/по».","gui.watchFileLabel":"Путь к файлу для отслеживания","gui.watchFilePlaceholder":"например, C:\\project\\src\\main.ts","gui.watchGlobsHint":"Маски считаются от пути watchPath. Поддерживаются *, **, ? и классы [abc]; маска каталога с /** рекурсивна.","gui.watchGlobsLabel":"Glob-маски (по одной в строке, пусто — любое изменение)","gui.watchIgnoreLabel":"Исключения (glob, по одной в строке)","gui.webhookLabel":"Webhook (Discord / Slack / generic)","gui.webhookPostHint":"POST с JSON {payload} — совместимо с Discord и Slack.","gui.weekday.0":"Вс","gui.weekday.1":"Пн","gui.weekday.2":"Вт","gui.weekday.3":"Ср","gui.weekday.4":"Чт","gui.weekday.5":"Пт","gui.weekday.6":"Сб","gui.weekdaysLabel":"Дни недели (пусто — все дни)","gui.windowEndTitle":"Конец окна (может быть меньше начала)","gui.windowHint":"Вне окна запуск переносится на его открытие, а не пропускается. Например 22:00 — 06:00.","gui.windowLabel":"Окно запуска (необязательно)","gui.windowPolicyHint":"Для cron политика применяется в обёртке, для файловых и git-триггеров — при обработке события. Перенос ждёт не дольше 12 часов.","gui.windowPostpone":"Перенести на открытие окна (по умолчанию)","gui.windowRun":"Выполнить всё равно","gui.windowSkip":"Пропустить запуск","gui.windowStartTitle":"Начало окна","gui.winterMode":"❄️ Зимний режим","gui.winterModeTitle":"Переключить зимнюю тему","gui.withSound":"со звуком","gui.workingDirectoryHint":"В этой папке задача запустит opencode run — здесь подхватятся MCP-серверы из opencode.json.","gui.workingDirectoryLabel":"Рабочая директория","gui.workingDirectoryPlaceholder":"по умолчанию — папка проекта","gui.workspace.deleteConfirm":'Удалить workspace "{name}"? Задачи сохранены, привязка будет очищена.',"gui.workspace.envFilePrompt":"Путь к .env-файлу workspace (необязательно, пусто — без файла)","gui.workspace.envInvalidHelp":"Нужны строки KEY=VALUE, имя — латиница/цифры/_","gui.workspace.envPrompt":"Env-переменные workspace, по одной в строке KEY=VALUE\\n(пустое поле — очистить)","gui.workspace.envSecretsMasked":"Секреты маскируются в логах","gui.workspace.namePrompt":"Название workspace (необязательно)","gui.workspace.namePromptShort":"Название workspace","gui.workspace.pathPrompt":"Путь к git-репозиторию (workspace)","gui.workspace.pathPromptShort":"Путь к git-репозиторию","gui.workspaceAddTitle":"Добавить workspace (git-репозиторий)","gui.workspaceAll":"Все workspace","gui.workspaceDeleteTitle":"Удалить workspace (задачи сохраняются)","gui.workspaceEditTitle":"Редактировать workspace","gui.workspaceEmpty":"Workspace не добавлен. Задача без workspace использует рабочую директорию проекта.","gui.workspaceEnvFile":" · .env-файл","gui.workspaceEnvLine":"{count} перем.","gui.workspaceEnvTitle":"Env-переменные workspace (секреты маскируются в логах)","gui.workspaceFilterTitle":"Фильтр задач по workspace","gui.workspaceGitInfo":"git: {branch} · {remote}","gui.workspaceMultiRepo":"Workspace (multi-repo)","gui.workspaceNone":"Без workspace","gui.zeroKeepByAge":"0 = не удалять по возрасту","gui.zeroNoLimit":"0 = без ограничения","gui.zeroUnlimited":"(0 = без ограничений)","matrix.aggregate.empty":'У матрицы "{parent}" нет клонов.',"matrix.aggregate.partial":"Частичный успех: {success} из {total} успешно, {errors} с ошибкой.","matrix.aggregate.running":"Выполняется: {done} из {total}.","matrix.aggregate.stopped":"Остановлено после первой ошибки: {errors} из {total} с ошибкой.","matrix.aggregate.stoppedFirst":" Первая ошибка ({name}): {error}","matrix.aggregate.success":"Все {total} клонов завершились успешно.","matrix.aggregator.prompt":'Все клоны матрицы "{parent}" завершились. Проверь результаты: {clones}.',"matrix.cancel.defaultReason":"Отменено пользователем.","matrix.clone.runningChanges":'Клон "{name}" выполняется — изменения применятся после завершения.',"matrix.clone.runningDeletion":'Клон "{name}" выполняется — удаление отложено до завершения.',"matrix.deletionGuard":'Задача "{name}" — клон матрицы "{parent}". Удалите матрицу целиком (родитель + все клоны) или измените список workspace-ов родителя.',"matrix.error.cloneCreation":'Задача "{task}": не удалось создать ни одного клона матрицы.',"matrix.error.noClones":'У матрицы "{task}" нет клонов — пересоздайте задачу, чтобы развернуть её по workspace.',"matrix.error.notMatrix":'Задача "{task}" не является матрицей.',"matrix.error.workspaceIdsEmpty":'Задача "{task}": matrix.workspaceIds не может быть пустым.',"matrix.error.workspaceMissing":'Задача "{task}": workspace "{workspace}" не найден.',"notify.digest.cost":"Стоимость: {cost} · токенов: {tokens}","notify.digest.noErrors":"Ошибок нет 🎉","notify.digest.period.daily":"за сутки","notify.digest.period.weekly":"за неделю","notify.digest.runs":"Запусков: {total} — ✅ {success}, ❌ {error}, ⚠️ {partial} ({rate}%)","notify.digest.title":"📊 Дайджест {period} ({date})","notify.digest.topErrorRow":"• {message} — {count}","notify.digest.topErrors":"Топ ошибок:","notify.error.digestDisabled":"Уведомления выключены.","notify.error.digestFailed":"Не удалось отправить дайджест ни в один канал.","notify.error.digestMissing":"Настройки дайджеста не найдены.","notify.error.digestNoChannels":"Все каналы выключены. Включите webhook, Telegram или нативные уведомления.","notify.error.nativeFailed":"не удалось показать уведомление","notify.error.telegramApiBaseInvalid":"Некорректный адрес Telegram API.","notify.error.telegramChatMissing":"Не задан chat_id Telegram.","notify.error.telegramNoCreds":"Telegram включён, но не заданы botToken/chatId.","notify.error.telegramScheme":"Telegram API поддерживает только http:// или https://.","notify.error.telegramTimeout":"Таймаут Telegram API ({seconds} с).","notify.error.telegramTokenInvalid":"Некорректный токен Telegram-бота.","notify.error.telegramTokenMissing":"Не задан токен Telegram-бота.","notify.error.testChannelOff":"Канал {channel} выключен.","notify.error.testDisabled":"Уведомления выключены. Включите главный переключатель.","notify.error.testNoChannels":"Все каналы выключены. Включите webhook, Telegram или нативные уведомления.","notify.error.testNotSent":"Тестовое уведомление не отправлено.","notify.error.testUnknown":"неизвестная ошибка","notify.error.webhookScheme":"Вебхук поддерживает только http:// или https://.","notify.error.webhookTimeout":"Таймаут запроса ({seconds} с).","notify.error.webhookUrlInvalid":"Некорректный URL вебхука.","notify.error.webhookUrlMissing":"URL вебхука не задан.","notify.matrix.failed":'❌ Матрица "{parent}" завершилась с ошибками: успешно {success}, ошибок {error} из {total}.',"notify.matrix.failedAll":'❌ Матрица "{parent}": все {total} клонов упали.',"notify.matrix.partial":'⚠️ Матрица "{parent}" завершилась частично: успешно {success} из {total}, ошибок {error}.',"notify.matrix.success":'✅ Матрица "{parent}" завершилась: {success} из {total} клонов успешно.',"notify.native.title":"OpenCode Scheduler","notify.ok.digestSent":"Дайджест отправлен.","notify.reason":": {error}","notify.stuck":'⏳ Матрица "{parent}": клон "{clone}" выполняется дольше {minutes} мин (запущен {startedAt}).',"notify.task.error":'❌ Задача "{task}" упала ({duration}){error}{cost}',"notify.task.success":'✅ Задача "{task}" выполнена ({duration}){cost}',"notify.telegram.openDashboard":"📊 Открыть дашборд","notify.telegram.openDashboardUrl":"📊 Открыть дашборд: {url}","notify.test.body":"🧪 Тестовое уведомление от OpenCode Scheduler — канал настроен корректно.","notify.test.errors":"Ошибки: {errors}.","notify.test.sent":"Отправлено: {channels}.","notify.usage.tokens":"{tokens} tok","schedule.error.cronEmptyItem":"Пустой элемент в списке «{token}».","schedule.error.cronFields":"Ожидается 5 полей cron, получено {count}: «{raw}».","schedule.error.cronRangeBounds":"Диапазон «{item}» вне границ {min}..{max}.","schedule.error.cronRangeInvalid":"Недопустимый диапазон «{item}».","schedule.error.cronStepInvalid":"Недопустимый шаг «/{step}» в «{raw}».","schedule.error.cronStepMissing":"Некорректный шаг в «{raw}»: перед «/» ничего нет.","schedule.error.cronValueBounds":"Значение «{raw}» вне границ {min}..{max}.","schedule.error.everyInterval":"Неподдерживаемый интервал «@every {value}» (m: 1..59, h: 1..23, d: 1..31).","schedule.error.lastDomOnly":"«L» поддерживается только в поле дня месяца.","schedule.error.notAfterFormat":'notAfter должен быть в формате HH:MM, не "{value}".',"schedule.error.notBeforeFormat":'notBefore должен быть в формате HH:MM, не "{value}".',"schedule.error.weekdayBounds":"День недели «{value}» вне границ 0..7 в «{field}».","schedule.reason.dayNotAllowed":"день недели не разрешён ({days})","schedule.reason.outsideWindow":"время вне окна {notBefore}–{notAfter}","schedule.weekday.0":"Вс","schedule.weekday.1":"Пн","schedule.weekday.2":"Вт","schedule.weekday.3":"Ср","schedule.weekday.4":"Чт","schedule.weekday.5":"Пт","schedule.weekday.6":"Сб","server.hookTaskMissing":'Задача "{task}" не найдена — хук отклонён.',"server.matrixNotFound":'Матрица "{parentId}" не найдена.',"server.methodNotAllowed":"Метод не поддерживается.","server.notFound":"Страница не найдена.","server.taskNotFound":'Задача "{task}" не найдена.',"tool.error.allowedToolsEmpty":'Задача "{task}": пустой allowedTools запрещён — задайте список инструментов или уберите поле.',"tool.error.cronSchedule":"Для triggerType=cron нужно cron-выражение schedule.","tool.error.gitCwdRequired":'Задача "{task}": для git-триггера нужна рабочая директория или workspace.',"tool.error.gitNoRepo":'Задача "{task}": git-триггер требует git-репозиторий в "{path}".',"tool.error.matrixCloneFailed":'клон "{clone}" (workspace "{workspace}"): {error}',"tool.error.matrixConcurrency":'Задача "{task}": matrix.concurrency должен быть числом не меньше 1.',"tool.error.matrixExpandRuntime":'Не удалось развернуть матрицу "{name}": {error}. Созданные клоны удалены.',"tool.error.matrixNoClones":'У матрицы "{name}" нет клонов.',"tool.error.matrixNotMatrix":'Задача "{name}" не является матрицей.',"tool.error.matrixOverride":'Задача "{task}": matrix.overrides содержит workspace "{workspace}", которого нет в workspaceIds.',"tool.error.mcpEventRequired":"Для MCP-триггера нужно указать имя события (mcpEvent.event).","tool.error.onceFields":"runAt/delaySeconds допустимы только при triggerType=once.","tool.error.onceMatrixSchema":"One-shot нельзя комбинировать с matrix: матрица запускается только вручную.","tool.error.onceMatrixUpdate":"One-shot нельзя комбинировать с matrix.","tool.error.onceSchedule":"Для triggerType=once нужен runAt (ISO-8601) или delaySeconds.","tool.error.oneShotMatrix":'Задача "{name}": one-shot нельзя комбинировать с matrix. Запустите матрицу вручную или используйте cron/file-триггер.',"tool.error.pauseDateInvalid":'Задача "{name}": некорректная дата паузы "{until}". Нужен ISO-момент, например 2026-12-01T09:00:00Z.',"tool.error.pauseDatePast":'Задача "{name}": дата паузы уже прошла.',"tool.error.prepareFiles":"Не удалось подготовить файлы задачи: {error}","tool.error.schedulerKeptFiles":"Файлы обёртки оставлены для диагностики.","tool.error.schedulerNotConfirmed":'Планировщик не подтвердил создание задачи "{task}": её нет в списке {scheduler}.',"tool.error.schedulerRemovedFiles":"Файлы задачи удалены, запись в БД не создана.","tool.error.sessionMaxRuns":'Задача "{name}": sessionMaxRuns должен быть целым числом ≥ 1.',"tool.error.sessionUnknown":'Задача "{name}": неизвестный режим сессии "{session}".',"tool.error.taskNameMissing":"Не передано имя задачи.","tool.error.taskNotFound":'Задача "{name}" не найдена.',"tool.error.taskReason":'Задача "{name}": {error}',"tool.error.timezone":'Задача "{task}": неизвестный часовой пояс "{timezone}". Укажите IANA-зону, например Europe/Moscow.',"tool.error.updateCron":'Для обновления задачи "{name}" нужен cron-график.',"tool.error.updatePrompt":'Для обновления задачи "{name}" нужен промпт.',"tool.error.window":'Задача "{task}": {error}',"tool.error.workspaceIdConflict":'Задача "{task}": нельзя одновременно workspaceId и matrix.workspaceIds.',"tool.error.workspaceIdMissing":"Workspace '{id}' не найден.","tool.error.workspaceIdsEmpty":'Задача "{task}": matrix.workspaceIds не может быть пустым.',"tool.error.workspaceMissing":'Задача "{task}": workspace "{id}" не найден.',"tool.error.workspacePathMissing":"Workspace '{name}' недоступен по пути '{path}'","tool.error.workspaceUnavailable":'Задача "{task}": workspace "{workspace}" недоступен по пути "{path}".',"tool.error.wrapper":"Не удалось создать обёртку задачи: {error}","tool.event.nameRequired":"Не передано имя события.","tool.event.nameRequiredShort":"Не передано имя события (eventName).","tool.event.none":'Нет задач, подписанных на событие "{event}".',"tool.event.processed":'Событие "{event}" обработано. Запущено задач: {count}.',"tool.event.triggered":"Запущено задач: {count}.","tool.history.cleanFailed":"Не удалось очистить историю: {error}","tool.history.cleaned":"Удалено {deleted} записей (по возрасту: {byAge}, по лимиту: {byCount}), осталось {kept}.","tool.matrix.actionName":"Для action={action} нужен name матрицы.","tool.matrix.cancelFinished":"Уже завершены и не тронуты: {count}.","tool.matrix.cancelRunning":"Остановлено выполнявшихся: {count}.","tool.matrix.cancelSummary":'Матрица "{matrix}": отменено {cancelled} из {total} клонов.',"tool.matrix.cancelWarnings":"Предупреждения: {warnings}.","tool.matrix.completed":'Матрица "{name}" завершена. Проверь результаты клонов: {clones}.',"tool.matrix.limit":"Достигнут лимит одновременных задач. Дождитесь завершения текущих.","tool.matrix.orphansNone":"Осиротевших задач не найдено.","tool.matrix.orphansRemoved":"Удалено осиротевших задач: {count}.","tool.matrix.parentMissing":"Не передан parentId матрицы.","tool.matrix.recreateFailed":"{clone}: не удалось пересоздать — {error}","tool.matrix.started":'Матрица "{name}": запущено {started} из {total}',"tool.matrix.startedErrors":". Ошибки: {errors}","tool.matrix.startedSkipped":", пропущено {count}","tool.matrix.stopFailed":"{clone}: не удалось остановить — {error}","tool.profile.active":"Активный профиль: {name}. Перезапустите OpenCode, чтобы применить изменения.","tool.profile.created":'Профиль "{name}" создан (порт дашборда {port}).',"tool.profile.deleted":'Профиль "{name}" удалён вместе с его БД и настройками.',"tool.profile.envVar":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE={name}. Перезапустите OpenCode.","tool.profile.envVarLong":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE={name}. Перезапустите OpenCode, чтобы применить изменения.","tool.profile.nameRequired":"Для action={action} нужно имя профиля.","tool.profile.notFound":"Профиль не найден.","tool.secret.deleted":"Секрет {name} удалён.","tool.secret.nameRequired":"Для set/delete нужно имя секрета.","tool.secret.needName":"Нужно имя секрета.","tool.secret.needValue":"Нужно непустое значение секрета.","tool.secret.notFound":"Секрет {name} не найден.","tool.secret.saved":"Секрет {name} сохранён в зашифрованном виде.","tool.secret.valueRequired":"Для action=set нужно непустое значение value.","tool.settings.updateFields":"Для action=update передайте хотя бы одно поле: maxConcurrent, locale, winterMode, notifications, history, integrations или audit.","tool.task.alreadyAbsent":'Задача "{name}" уже отсутствует (удалена или не существовала).',"tool.task.alreadyRunning":'Задача "{name}" уже выполняется.',"tool.task.autosave":"не удалось сохранить автопродолжение: {error}","tool.task.created":'Задача "{name}" успешно создана.',"tool.task.deleted":'Задача "{name}" успешно удалена.',"tool.task.found":"Найдено задач: {count}.","tool.task.foundOsUnavailable":"Найдено задач: {count}. Статус планировщика ОС недоступен — показано состояние из БД.","tool.task.listEmpty":"Задачи плагина не найдены.","tool.task.listOsUnavailable":"Статус планировщика ОС недоступен — показано состояние из БД.","tool.task.matrixDeletedCount":'Матрица "{name}" удалена вместе с {count} задачами (клоны и агрегатор).',"tool.task.matrixDeletedList":'Матрица "{name}" удалена вместе с клонами: {list}.',"tool.task.matrixPauseErrors":" Ошибки: {warnings}.","tool.task.matrixPaused":'Матрица "{name}" {verb}{until}: {affected} из {total} клонов.',"tool.task.pauseError":" Ошибка: {warnings}.","tool.task.paused":"поставлена на паузу","tool.task.pausedText":'Задача "{name}" {verb}{until}.',"tool.task.resumed":"возобновлена","tool.task.rollbackFailed":'{cause} Откат не удался: {restore}. Задача "{name}" отсутствует в планировщике — создайте её заново.',"tool.task.rollbackKept":"{cause} Прежняя версия не тронута: удалить задачу из планировщика не удалось.","tool.task.rollbackRestored":"{cause} Обновление отменено, прежняя версия восстановлена.","tool.task.started":'Задача "{name}" запущена.',"tool.task.until":" до {date}","tool.task.updated":'Задача "{name}" обновлена.',"tool.template.deleted":"Шаблон {id} удалён.","tool.template.namePromptRequired":"Нужны непустые название шаблона и промпт.","tool.template.needDeleteId":"Для action=delete нужен id шаблона.","tool.template.needId":"Не передан id шаблона.","tool.template.notFound":"Шаблон {id} не найден.","tool.template.saveRequired":"Для action=save нужны непустые name и prompt.","tool.transfer.importData":"Для action=import нужны данные экспорта.","tool.transfer.noData":"Не переданы данные для импорта.","tool.transfer.noTasks":"В данных нет задач для импорта.","tool.transfer.noTasksInFile":"В файле нет задач для импорта.","tool.workspace.deleted":"Workspace удалён. Задачи сохранены, привязка очищена.","tool.workspace.needDeleteId":"Для action=delete нужен id.","tool.workspace.needPath":"Для action=add нужен path.","tool.workspace.needUpdateId":"Для action=update нужен id.","tool.workspace.notFound":"Workspace не найден."},Tc={"app.dashboardTitle":"Web dashboard","common.runsCount":"runs: {count, plural, one {# run} other {# runs}}","dryRun.cron":'By schedule "{schedule}".',"dryRun.cronParseError":'Failed to parse cron "{schedule}" to compute upcoming runs.',"dryRun.cronTimezone":'By schedule "{schedule}" ({timezone}).',"dryRun.cwdImplicit":"Working directory is not set explicitly — the current project folder will be used.","dryRun.cwdMissing":'Working directory "{path}" does not exist on disk.',"dryRun.cwdNotDir":'Path "{path}" exists but is not a directory.',"dryRun.cycle":'Circular dependency detected around task "{task}" — the pipeline is cut at this node.',"dryRun.danger.forcePush":"forced git push (`git push --force`)","dryRun.danger.rmRoot":"possible recursive wipe of the filesystem root (`rm -rf /`)","dryRun.dangerPattern":"Dangerous pattern: {message}.","dryRun.dependencyMissing":'Dependency "{task}" not found among tasks — node skipped.',"dryRun.file.any":"File trigger: any change matches.","dryRun.file.globs":"globs: {count}","dryRun.file.ignore":"excludes: {count}","dryRun.file.trigger":"File trigger: {parts}.","dryRun.git.branchMismatch":'Branch does not match the filter "{branch}".',"dryRun.git.checkError":"Git trigger: check failed — {error}.","dryRun.git.notRepo":"Task has a git trigger, but the working directory is not a git repository.","dryRun.manual":"Manual run (as part of a pipeline).","dryRun.matrix.expandError":"Matrix cannot be expanded: {error}","dryRun.matrix.parent":"[{name}] The matrix parent is not executed itself — {count} clone(s) per workspace are shown.","dryRun.mcp.event":"MCP event {server}:{event}{filter}.","dryRun.mcp.filter":' (filter "{filter}")',"dryRun.mcp.missing":"MCP event (parameters not set).","dryRun.noHistory":"No successful runs in history — duration/tokens/cost estimate is unavailable.","dryRun.once":"One-time run.","dryRun.once.at":"One-time run at {runAt}.","dryRun.taskNotFound":'Task "{task}" not found.',"dryRun.window.noOpening":"Now {reason}: no window opening found, the run is skipped.","dryRun.window.outside":"outside the window","dryRun.window.postpone":"Now {reason}: the run will be postponed to {nextOpenAt}.","dryRun.window.run":"Now {reason}: run policy — the task will execute anyway.","dryRun.window.skip":"Now {reason}: with the skip policy the run will be skipped.","gitTrigger.baseline":"Remembered current commit {commit} — the task will run on the next change.","gitTrigger.branchMismatch":'Branch {branch} does not match the filter "{pattern}".',"gitTrigger.changed":"New commit {commit}: {count} files changed ({files}).","gitTrigger.ignored":"Files changed: {count}, but none match the filters.","gitTrigger.noChanges":"No new commits.","gitTrigger.noRepo":'"{cwd}" is not a git repository — the git trigger will not fire.',"gui.add":"+ Add","gui.addWorkspaceFirst":"Add at least one workspace first.","gui.aggregation":"Aggregation","gui.allowedToolsLabel":"Allowlist (allowedTools)","gui.app.title":"Task scheduler","gui.auditAction":"Action","gui.auditActionPlaceholder":"e.g. task.create","gui.auditActor":"Actor","gui.auditDeletedFrom":"Deleted from","gui.auditEmpty":"No audit records.","gui.auditEnable":"Enable audit","gui.auditHeading":"📜 Audit log","gui.auditHint":"Records mutations of tasks, settings, templates, profiles, workspaces, secrets, imports and history cleanup. Details are masked (secrets replaced with {redacted}).","gui.auditSource":"Source","gui.auditStorageHeading":"Audit log — storage","gui.auditTarget":"Target","gui.auditTargetPlaceholder":"task/secret name","gui.auditTime":"Time","gui.botTokenEnvHint":"You can avoid storing the token in settings.json: set OPENCODE_SCHEDULER_TELEGRAM_BOT_TOKEN and OPENCODE_SCHEDULER_TELEGRAM_CHAT_ID.","gui.botTokenPlaceholder":"Bot token from @BotFather","gui.cancel":"Cancel","gui.chatIdPlaceholder":"chat_id (e.g. 123456789 or -100...)","gui.cleaningUp":"Cleaning up...","gui.cleanupNow":"🧹 Clean up now","gui.collapseFormTitle":"Collapse the form","gui.common.projectDir":"(project folder)","gui.common.unknownError":"Unknown error","gui.concurrencySequentialPlaceholder":"1 (sequential)","gui.concurrencyUnlimitedPlaceholder":"no limit","gui.createProfile":"+ Create","gui.createTask":"➕ Create task","gui.createTaskSubmit":"Create task","gui.creating":"Creating...","gui.cron.custom":"Custom schedule…","gui.cron.dailyAt9":"Every day at 09:00","gui.cron.everyHour":"Every hour","gui.cron.everyMinute":"Every minute","gui.cron.mondayAt10":"Every Monday at 10:00","gui.cronExprLabel":"Cron expression","gui.customTemplate":"Custom template:","gui.dashboardLink":"dashboard link","gui.defaultSuffix":"(default)","gui.delete":"Delete","gui.deleteTemplateTitle":"Delete template","gui.deniedToolsLabel":"Denylist (deniedTools)","gui.dependsOnHint":"The task starts automatically once all selected tasks finish successfully.","gui.dependsOnLabel":"Depends on tasks (successful completion)","gui.digestChannels":"Channels: webhook, Telegram, native OS notifications.","gui.digestDaily":"daily","gui.digestEnable":"Send digest","gui.digestHeading":"Digest","gui.digestHint":"Runs, success rate, cost and top errors per day/week.","gui.digestLastSent":"last sent: {when}","gui.digestNeverSent":"never sent","gui.digestWeekly":"weekly (Mon)","gui.dryRunButton":"🧪 Preview","gui.dryRunLocalTitle":"🧪 Preview (local, based on form fields)","gui.dryRunMatrixPreview":"Matrix: {count, plural, one {# clone} other {# clones}} will be created per workspace; the parent does not run.","gui.dryRunNoNameWarning":"No name — preview is local (form not saved).","gui.dryRunPreviewTitle":"Local preview of the command based on current form fields (no RPC, no run)","gui.editingTask":"Editing task","gui.emptyNormal":"No active tasks. Create your first one and let AI handle the routine!","gui.emptyWinter":"No tasks yet. Time to decorate the tree!","gui.errorBoundaryDetail":"Display error occurred. Try reloading the panel.","gui.expandFormTitle":"Expand the task creation form","gui.export":"Export","gui.exportBusy":"Exporting...","gui.filterExcludePlaceholder":"Exclude tasks (comma-separated, * — wildcard)","gui.filterHint":"Empty “only” list = all tasks. Exclusions beat inclusions.","gui.filterIncludePlaceholder":"Only these tasks (comma-separated, * — wildcard)","gui.filterSummary":"Filter: {scope} · showing {visible} of {total}","gui.gitBranchesLabel":"Branches (glob, comma-separated; empty — any)","gui.gitIgnoreLabel":"Ignored paths (glob, one per line)","gui.gitPathsLabel":"Changed paths (glob, one per line; empty — any file)","gui.gitPollHint":"The first poll records the current HEAD without running the task — then the task starts on a new commit touching matching files.","gui.gitPollLabel":"Poll interval, seconds (min 5, default 60)","gui.hideForm":"Hide form ▴","gui.history.durationMs":"{ms} ms","gui.history.error":"❌ Error","gui.history.modelTitle":"Model: {model}","gui.history.nextTaskTitle":"Next task in the chain was started","gui.history.success":"✅ Success","gui.historyCleanupHint":"Only finished records are deleted; unfinished runs are kept.","gui.historyDeleteOlderLabel":"Delete records older than, days","gui.historyHeading":"🧹 History & retention","gui.historyKeepMaxLabel":"Keep at most records","gui.historyNoExpiry":"no expiry","gui.historyNoLimit":"no limit","gui.historyOlderThan":"older than {days} d","gui.historyUpToRecords":"up to {count} records","gui.import":"Import","gui.importBusy":"Importing...","gui.job.activeDaysTitle":"Run only on days: {days}","gui.job.cancelMatrixTitle":'Cancel running matrix clones "{name}"',"gui.job.deleteMatrixTitle":'Delete matrix "{name}" along with its clones',"gui.job.deleteTitle":'Delete "{name}"',"gui.job.dependsOn":"🔗 Depends on: {list}","gui.job.dryRunTitle":'Dry-Run simulation "{name}"',"gui.job.durationEst":"⏱ ~{seconds} s","gui.job.editTitle":'Edit "{name}"',"gui.job.fanoutConcurrency":", concurrency: {concurrency}","gui.job.fanoutOverrides":", workspace overrides: {overrides}","gui.job.fanoutTitle":"Matrix fan-out: {count} clones, strategy: {strategy}, on failure: {failureMode}{concurrency}{overrides}","gui.job.gitTriggerBranch":" on branch {branch}","gui.job.gitTriggerPaths":", paths: {paths}","gui.job.gitTriggerTitle":"Git trigger: new commit{branch}{paths}. Polling every {seconds} s.","gui.job.historyEmpty":"No runs yet.","gui.job.historyPanelTitle":"📜 Recent runs history","gui.job.historyTitle":'History "{name}"',"gui.job.logonModeUnknown":"unknown","gui.job.logsTitle":'Logs "{name}"',"gui.job.matrixClone":"Matrix clone. Parent: {parent}","gui.job.matrixDone":"📦 Matrix: {success}/{total} succeeded","gui.job.mcpEventFilterSuffix":" (filter: {filter})","gui.job.mcpEventTitle":"MCP event: {event}{filterSuffix}","gui.job.modelTitle":"LLM model: {model}","gui.job.pauseTitle":'Pause "{name}"',"gui.job.pauseUnavailable":'Task "{name}" is absent from the OS scheduler — pausing is unavailable',"gui.job.pausedUntilShort":"⏸ until {date}","gui.job.pausedUntilTitle":"Paused until {date} — the task resumes automatically.","gui.job.priorityTitle":"Priority: {label} ({priority})","gui.job.resumeTitle":'Resume "{name}"',"gui.job.runTitle":'Run "{name}"',"gui.job.runWhenLoggedOffShort":"no logon","gui.job.runWhenLoggedOffTitle":"The task runs without a logged-on user. Scheduler logon mode: {mode}","gui.job.runsLine":"📊 Total: {total} | ✅ {success} | 🟠 {partial} | ❌ {error}","gui.job.runsTitle":"Runs of this task only: succeeded / partial / errors and timeouts","gui.job.sessionContinueShort":"↪ continue","gui.job.sessionContinueTitle":"Continue the last OpenCode session (--continue)","gui.job.sessionReuseShort":"⟳ session","gui.job.sessionReuseTitle":"Reusable OpenCode session","gui.job.sessionReuseTitleId":"Reusable OpenCode session: {id}","gui.job.simulating":"Simulating…","gui.job.simulationFailed":"Simulation failed","gui.job.timezoneTitle":"Task timezone: {tz}","gui.job.tokensEst":"· ~{tokens} tok.","gui.job.toolLimitsTitle":"Tool limits: {limits}","gui.job.totalsLine":"Σ {duration} s · {tokens} tokens{cost}","gui.job.watchFile":"File watch: {path}","gui.job.watchGlobsCount":"✳ {count, plural, one {# mask} other {# masks}}","gui.job.watchGlobsTitle":"File trigger globs: {globs}","gui.job.windowTitle":"Run window: {from}–{to}. Outside the window the run is postponed to its start.","gui.jobStatus.error":"🔴 Error","gui.jobStatus.never":"⚪ Never ran","gui.jobStatus.orphan":"🧟 Not in OS scheduler","gui.jobStatus.partial":"🟠 Partial","gui.jobStatus.paused":"⏸ Paused","gui.jobStatus.running":"🟡 Running: {seconds} s","gui.jobStatus.success":"🟢 Done","gui.jobStatus.unknown":"⚪ Unknown","gui.jobsTitle":"Scheduler","gui.lastCleanupDone":"{when} · deleted {deleted}","gui.lastCleanupLabel":"Last cleanup:","gui.lastCleanupNever":"never run","gui.loading":"Loading...","gui.logs.empty":"(empty)","gui.logs.loadFailed":"Failed to load logs","gui.logs.loading":"Loading logs…","gui.logs.readError":"Failed to read logs:","gui.logsHeading":"Logs","gui.matrix.cancelClonesConfirm":'Cancel running matrix clones "{name}"?',"gui.matrix.deleteConfirm":'Delete matrix "{name}" along with all its clones and the aggregator?',"gui.matrixAggregator":"Create aggregator task matrix-complete (runs after all clones)","gui.matrixAllFailed":"all failed","gui.matrixConcurrency":"Concurrent clones (concurrency)","gui.matrixContinue":"continue — keep going","gui.matrixHint":"Template task fans out into clones per workspace. The parent itself does not run — it launches clones and aggregates the result.","gui.matrixModelPlaceholder":"Model (override)","gui.matrixNotifyEnable":"Notify about matrix completion","gui.matrixNotifyHeading":"Matrices","gui.matrixOverridesTitle":"⚙ Per-workspace settings — {count} overridden","gui.matrixParallel":"parallel — all at once","gui.matrixPerTask":"per-task — per task","gui.matrixPromptPlaceholder":"Prompt (default — the shared form prompt)","gui.matrixSelectHint":"Select at least one workspace — the clone preview will appear here.","gui.matrixSequential":"sequential — one by one","gui.matrixStop":"stop — halt","gui.matrixStuckHint":"A clone running longer than the given time is notified once. 0 — disabled.","gui.matrixStuckMinutes":"stuck clone, min:","gui.matrixSummary":"summary — summary","gui.matrixWillCreate":"Will create {count, plural, one {# clone} other {# clones}}:","gui.matrixWorkspacesSelected":"Workspaces (for the matrix) — selected","gui.maxConcurrentLabel":"Max concurrent tasks:","gui.maxRetriesLabel":"Retry count on failure","gui.mcpEventLabel":"Event name","gui.mcpEventPlaceholder":"e.g. github.pr.opened","gui.mcpFilterHint":"key=value is compared to the payload field; otherwise the filter is treated as regex/substring. Events arrive via RPC emit_event.","gui.mcpFilterLabel":"Filter (optional)","gui.mcpFilterPlaceholder":'e.g. repo="my-project" or regex',"gui.mcpSourceLabel":"MCP server / source","gui.mcpSourcePlaceholder":"e.g. github","gui.metricsTotalsLine":"📊 Total across all tasks: {total} · ✅ {success} · ❌ {error}","gui.metricsTotalsTitle":"Total metrics across all tasks (including archived metric records)","gui.modalShortcutHint":"Ctrl+Enter — save, Escape — cancel","gui.modelHint":"Empty — the default OpenCode model. Otherwise the --model flag is passed.","gui.modelLabel":"LLM model","gui.modelPlaceholder":"default (as in OpenCode)","gui.nativeHint":"Windows Toast, macOS Notification Center, Linux notify-send. No external dependencies.","gui.nativeNotifications":"Native OS notifications","gui.newTask":"New task","gui.noNameFallback":"(no name)","gui.noOtherTasks":"No other tasks yet","gui.noWorkspaceOption":"No workspace — working directory","gui.notifications":"🔔 Notifications","gui.notifyAllRuns":"all runs","gui.notifyDisabled":"disabled","gui.notifyEnable":"Enable notifications","gui.notifyOnlyErrors":"errors only","gui.notifyOnlyOnError":"Only on error","gui.ok":"OK","gui.onFailure":"On failure","gui.oneShotDelayHint":"Or a delay in seconds from the “Create task” click:","gui.oneShotDelayPlaceholder":"e.g. 3600","gui.oneShotHint":"runAt wins: if a time is set, delaySeconds is ignored. After running, the task never repeats.","gui.oneShotTimeLabel":"One-off run time","gui.oneShotTimePlaceholder":"2026-11-14T10:00:00.000Z or local date","gui.openDashboard":"🌐 Open dashboard","gui.openDashboardTitle":"Open the local web dashboard (actual server port)","gui.otherPriorityOption":"Other ({priority})","gui.outsideWindowLabel":"Outside the window or on a disallowed day","gui.parseModeLabel":"markup:","gui.postflightHint":"E.g. git push or npm run build. Runs in the task's working directory even on failure of the main task.","gui.postflightLabel":"Command after the run (Post-flight)","gui.postflightPlaceholder":"e.g. git push","gui.preflightHint":"E.g. git pull or npm install. Runs in the task's working directory. A non-zero exit cancels the run (Pre-flight script failed).","gui.preflightLabel":"Command before the run (Pre-flight)","gui.preflightPlaceholder":"e.g. git pull","gui.priority.critical":"Critical","gui.priority.high":"High","gui.priority.low":"Low","gui.priority.normal":"Normal","gui.priorityHint":"If several tasks are ready at once, the highest-priority task starts first.","gui.priorityLabel":"Priority","gui.profile.deleteConfirm":'Delete profile "{name}" along with its DB, settings and logs?',"gui.profile.namePrompt":"New profile name (latin letters, digits, - and _)","gui.profileActive":"active","gui.profileDelete":"Delete","gui.profileEnvLocked":"The profile is set via the OPENCODE_SCHEDULER_PROFILE variable. Switching in the GUI is unavailable.","gui.profileEnvLockedTitle":"The profile is set via the OPENCODE_SCHEDULER_PROFILE environment variable — switching in the GUI is unavailable","gui.profilePort":"port {port}","gui.profilePortDefault":"default port","gui.profileSwitch":"Switch","gui.profilesHeading":"👤 Profiles","gui.profilesHint":"Each profile has its own DB, settings, logs and dashboard port. Restart OpenCode after switching.","gui.profilesTitle":"Profiles: separate DBs, settings and dashboard port","gui.projectFolderFallback":"(project folder)","gui.promptLabel":"Prompt","gui.promptPlaceholder":"Write a brief market report","gui.promptTemplateLabel":"Prompt template","gui.promptTemplates.codeHygiene":"Code hygiene","gui.promptTemplates.codeHygienePrompt":"Audit code hygiene: find unused imports, unused variables, extra dependencies and suggest fixes.","gui.promptTemplates.custom":"Custom prompt","gui.promptTemplates.morningDigest":"Morning digest","gui.promptTemplates.morningDigestPrompt":"Put together the morning digest: what changed overnight, any failed builds, what needs attention today.","gui.promptTemplates.nightWatch":"Night watch (tests)","gui.promptTemplates.nightWatchPrompt":"Run nightly checks: run the tests, record failures and write a short repo status report.","gui.qualityGateHint":"Runs after the AI responds successfully. Non-zero exit = task failure.","gui.qualityGateLabel":"Verification command (Quality Gate)","gui.qualityGatePlaceholder":"e.g. npm run test","gui.quietFrom":"from","gui.quietHours":"Quiet hours","gui.quietHoursHint":"In quiet hours, success and partial are suppressed; errors and timeouts are sent.","gui.quietTo":"to","gui.refresh":"Refresh","gui.remoteNotSet":"remote not set","gui.retryCount":"retries:","gui.retryDelayLabel":"Delay before retry (sec)","gui.retryDelayMs":"pause, ms:","gui.retryHint":"Retry on network error, timeout, 5xx and 429 (exponential backoff).","gui.runWhenLoggedOffHint":"Windows: the task also runs when nobody is signed in (/ru SYSTEM). It runs in session 0 — without your profile, mapped drives or saved credentials — so tasks that need your files or network may fail. Creating such a task usually requires running OpenCode as administrator.","gui.runWhenLoggedOffLabel":"Run without a logged-on user","gui.save":"💾 Save","gui.saveAsTemplate":"💾 Save as template","gui.saveAsTemplateTitle":"Save current form settings as a template","gui.saving":"Saving...","gui.scheduleLabel":"Schedule","gui.secretNamePlaceholder":"Secret name (A-Za-z0-9_.-)","gui.secretValuePlaceholder":"Value (not returned on read)","gui.secrets":"🔐 Secrets","gui.secretsEmpty":"No secrets. Values are stored encrypted in secrets.json.","gui.secretsUsage":"Use the {secretRef} reference in tasks — the value is injected from the vault at run time and masked in logs.","gui.sendDigestNow":"📊 Send digest now","gui.sendTestNotification":"🧪 Test notification","gui.sending":"Sending...","gui.sessionContinue":"Last (--continue)","gui.sessionLabel":"OpenCode session","gui.sessionMaxRunsHint":"sessionId is generated by the plugin automatically. When the limit is reached the session is removed; the next run starts a clean session.","gui.sessionMaxRunsLabel":"How many runs a session survives (sessionMaxRuns, optional)","gui.sessionNew":"New","gui.sessionReuse":"Reuse","gui.silent":"silent","gui.strategy":"Strategy","gui.task.deleteConfirm":'Delete task "{name}"?',"gui.taskFiltersHeading":"Task filters","gui.taskNameLabel":"Task name","gui.taskNamePlaceholder":"e.g. Gui-Test","gui.tasksHeading":"Tasks","gui.templateErrorPlaceholder":'❌ Task "{task}" failed ({duration}){error}',"gui.templateHint":"Placeholders: {task} {status} {duration} {error} {emoji} {cost} {tokens}. Empty = default template.","gui.templateSuccessPlaceholder":'✅ Task "{task}" completed ({duration})',"gui.templates.deleteConfirm":'Delete template "{name}"?',"gui.templates.namePrompt":"Template name","gui.templatesHeading":"Message templates","gui.timeoutMs":"Timeout, ms:","gui.timezoneHint":"Another zone — the task wakes every minute, cron is checked in that zone.","gui.timezoneLabel":"Time zone (IANA)","gui.timezonePlaceholder":"Empty — system zone","gui.toast.chooseFile":"Choose a file","gui.toast.deleteFailed":"Delete failed","gui.toast.digestFailed":"Digest was not sent","gui.toast.digestSent":"Digest sent","gui.toast.envInvalid":"Invalid env format","gui.toast.envSaveError":"Failed to save env","gui.toast.envSaveFailed":"Could not save env","gui.toast.envSaved":"Env variables saved","gui.toast.exportFailed":"Export failed","gui.toast.exported":"Tasks exported: {count}","gui.toast.historyCleanupDone":"History cleanup completed","gui.toast.historyCleanupFailed":"History cleanup failed","gui.toast.historyLoadFailed":"Failed to load history","gui.toast.importFailed":"Import failed","gui.toast.imported":"Tasks imported: {count}","gui.toast.jobsLoadFailed":"Failed to load tasks","gui.toast.logsReadFailed":"Failed to read logs","gui.toast.matrixCancelError":"Matrix cancel failed","gui.toast.matrixCancelFailed":"Could not cancel the matrix","gui.toast.noFileForImport":"No file selected for import.","gui.toast.nothingToSave":"Nothing to save","gui.toast.pauseError":"Pause failed","gui.toast.pauseFailed":'Could not pause "{name}"',"gui.toast.paused":'Task "{name}" paused',"gui.toast.profileCreateError":"Profile creation failed","gui.toast.profileCreateFailed":"Could not create the profile","gui.toast.profileCreated":"Profile created","gui.toast.profileDeleteError":"Profile deletion failed","gui.toast.profileDeleteFailed":"Could not delete the profile","gui.toast.profileDeleted":"Profile deleted","gui.toast.profileSwitchError":"Profile switch failed","gui.toast.profileSwitchFailed":"Could not switch the profile","gui.toast.profileSwitched":"Profile switched","gui.toast.promptRequired":"Fill in the prompt first — it is required for a template.","gui.toast.resumeError":"Resume failed","gui.toast.resumeFailed":'Could not resume "{name}"',"gui.toast.resumed":'Task "{name}" resumed',"gui.toast.runFailed":"Run failed","gui.toast.secretDeleted":"Secret deleted","gui.toast.secretNotDeleted":"Secret not deleted","gui.toast.secretNotSaved":"Secret not saved","gui.toast.secretSaved":"Secret saved","gui.toast.settingsSaveFailed":"Could not save settings","gui.toast.taskCrashed":'Task "{name}" failed',"gui.toast.taskCreateFailed":"Task creation failed","gui.toast.taskCreated":"Task created","gui.toast.taskDeleted":'Task "{name}" deleted',"gui.toast.taskDone":'Task "{name}" completed',"gui.toast.taskStartFailed":'Could not start "{name}"',"gui.toast.taskStarted":'Task "{name}" started',"gui.toast.taskUpdateFailed":"Task update failed","gui.toast.taskUpdated":"Task updated","gui.toast.templateDeleteError":"Template deletion failed","gui.toast.templateDeleteFailed":"Could not delete the template","gui.toast.templateDeleted":'Template "{name}" deleted',"gui.toast.templateSaveError":"Template save failed","gui.toast.templateSaveFailed":"Could not save the template","gui.toast.templateSaved":'Template "{name}" saved',"gui.toast.testFailed":"Test failed","gui.toast.testSent":"Test notification sent","gui.toast.workspaceAddFailed":"Workspace add failed","gui.toast.workspaceAdded":"Workspace added","gui.toast.workspaceDeleteFailed":"Workspace delete failed","gui.toast.workspaceDeleted":"Workspace deleted","gui.toast.workspaceUpdateFailed":"Workspace update failed","gui.toast.workspaceUpdated":"Workspace updated","gui.toolLimitsDenied":"On conflict, denied wins. An empty allowedTools is forbidden.","gui.toolLimitsHeading":"🔒 Tool limits","gui.toolLimitsNote":"⚠ Metadata-only: opencode 2.2.3 has no allow/deny flags — limits are recorded in logs and history.","gui.toolPlaceholder":"custom tool, e.g. websearch","gui.triggerCron":"On a schedule (Cron)","gui.triggerFile":"On file change","gui.triggerGit":"New commit (Git)","gui.triggerOnce":"Once","gui.triggerTypeLabel":"Trigger type","gui.uiError":"UI error: {message}","gui.unboundedPlaceholder":"no limit","gui.validation.cronRequired":"Specify a cron schedule.","gui.validation.dependsOnSelf":"A task cannot depend on itself.","gui.validation.gitPollInvalid":"Git poll interval — a whole number of seconds of at least 5.","gui.validation.gitWorkspaceRequired":"For a git trigger, pick a workspace or set a working directory.","gui.validation.matrixConcurrencyInvalid":"Matrix concurrency — a positive whole number.","gui.validation.matrixWorkspacesRequired":"Select at least one workspace for the matrix.","gui.validation.priorityInvalid":"Priority — a whole number from 0 to 10.","gui.validation.promptRequired":"Specify a prompt.","gui.validation.retryCountInvalid":"Retry count — a whole number ≥ 0.","gui.validation.retryDelayInvalid":"Retry delay — a whole number of seconds ≥ 0.","gui.validation.runAtRequired":"Specify a run time or a delay.","gui.validation.sessionMaxRunsInvalid":"Session run limit — a positive whole number.","gui.validation.taskNameRequired":"Specify a task name.","gui.validation.timezoneInvalid":"Unknown time zone. Use an IANA zone, e.g. Europe/Moscow.","gui.validation.windowPairRequired":"The run window is set only as a from/to pair.","gui.watchFileLabel":"Path of the file to watch","gui.watchFilePlaceholder":"e.g. C:\\project\\src\\main.ts","gui.watchGlobsHint":"Globs are resolved from the watchPath. Supports *, **, ? and [abc] classes; a directory glob with /** is recursive.","gui.watchGlobsLabel":"Glob patterns (one per line, empty — any change)","gui.watchIgnoreLabel":"Excludes (glob, one per line)","gui.webhookLabel":"Webhook (Discord / Slack / generic)","gui.webhookPostHint":"POST with JSON {payload} — compatible with Discord and Slack.","gui.weekday.0":"Sun","gui.weekday.1":"Mon","gui.weekday.2":"Tue","gui.weekday.3":"Wed","gui.weekday.4":"Thu","gui.weekday.5":"Fri","gui.weekday.6":"Sat","gui.weekdaysLabel":"Days of week (empty — all days)","gui.windowEndTitle":"Window end (may be earlier than the start)","gui.windowHint":"Outside the window the run is postponed to the start of the window, not skipped. E.g. 22:00 — 06:00.","gui.windowLabel":"Run window (optional)","gui.windowPolicyHint":"For cron the policy is applied in the wrapper; for file and git triggers — when the event is handled. A postpone waits no longer than 12 hours.","gui.windowPostpone":"Postpone to window start (default)","gui.windowRun":"Run anyway","gui.windowSkip":"Skip the run","gui.windowStartTitle":"Window start","gui.winterMode":"❄️ Winter mode","gui.winterModeTitle":"Toggle the winter theme","gui.withSound":"with sound","gui.workingDirectoryHint":"The task runs opencode run in this folder — MCP servers from opencode.json are picked up here.","gui.workingDirectoryLabel":"Working directory","gui.workingDirectoryPlaceholder":"default — project folder","gui.workspace.deleteConfirm":'Delete workspace "{name}"? Tasks are kept, the binding is cleared.',"gui.workspace.envFilePrompt":"Path to the workspace .env file (optional, empty — none)","gui.workspace.envInvalidHelp":"Lines must be KEY=VALUE; name — latin/digits/_","gui.workspace.envPrompt":`Workspace env variables, one per line KEY=VALUE
2
- (empty clears)`,"gui.workspace.envSecretsMasked":"Secrets are masked in logs","gui.workspace.namePrompt":"Workspace name (optional)","gui.workspace.namePromptShort":"Workspace name","gui.workspace.pathPrompt":"Path to the git repository (workspace)","gui.workspace.pathPromptShort":"Path to the git repository","gui.workspaceAddTitle":"Add a workspace (git repository)","gui.workspaceAll":"All workspaces","gui.workspaceDeleteTitle":"Delete workspace (tasks are kept)","gui.workspaceEditTitle":"Edit workspace","gui.workspaceEmpty":"No workspaces added. A task without a workspace uses the project working directory.","gui.workspaceEnvFile":" · .env file","gui.workspaceEnvLine":"{count} vars","gui.workspaceEnvTitle":"Workspace env variables (secrets are masked in logs)","gui.workspaceFilterTitle":"Filter tasks by workspace","gui.workspaceGitInfo":"git: {branch} · {remote}","gui.workspaceMultiRepo":"Workspace (multi-repo)","gui.workspaceNone":"No workspace","gui.zeroKeepByAge":"0 = don't delete by age","gui.zeroNoLimit":"0 = no limit","gui.zeroUnlimited":"(0 = no limit)","matrix.aggregate.empty":'Matrix "{parent}" has no clones.',"matrix.aggregate.partial":"Partial success: {success} of {total} succeeded, {errors} failed.","matrix.aggregate.running":"Running: {done} of {total}.","matrix.aggregate.stopped":"Stopped after the first error: {errors} of {total} failed.","matrix.aggregate.stoppedFirst":" First error ({name}): {error}","matrix.aggregate.success":"All {total} clones finished successfully.","matrix.aggregator.prompt":'All clones of matrix "{parent}" finished. Check the results: {clones}.',"matrix.cancel.defaultReason":"Cancelled by the user.","matrix.clone.runningChanges":'Clone "{name}" is running — changes will be applied after it finishes.',"matrix.clone.runningDeletion":'Clone "{name}" is running — deletion is postponed until it finishes.',"matrix.deletionGuard":`Task "{name}" is a clone of matrix "{parent}". Delete the whole matrix (parent + all clones) or change the parent's workspace list.`,"matrix.error.cloneCreation":'Task "{task}": failed to create any matrix clone.',"matrix.error.noClones":'Matrix "{task}" has no clones — recreate the task to expand it across workspaces.',"matrix.error.notMatrix":'Task "{task}" is not a matrix.',"matrix.error.workspaceIdsEmpty":'Task "{task}": matrix.workspaceIds cannot be empty.',"matrix.error.workspaceMissing":'Task "{task}": workspace "{workspace}" not found.',"notify.digest.cost":"Cost: {cost} · tokens: {tokens}","notify.digest.noErrors":"No errors 🎉","notify.digest.period.daily":"for the last day","notify.digest.period.weekly":"for the week","notify.digest.runs":"Runs: {total} — ✅ {success}, ❌ {error}, ⚠️ {partial} ({rate}%)","notify.digest.title":"📊 Digest {period} ({date})","notify.digest.topErrorRow":"• {message} — {count}","notify.digest.topErrors":"Top errors:","notify.error.digestDisabled":"Notifications are disabled.","notify.error.digestFailed":"Failed to deliver the digest to any channel.","notify.error.digestMissing":"Digest settings not found.","notify.error.digestNoChannels":"All channels are disabled. Enable webhook, Telegram or native notifications.","notify.error.nativeFailed":"failed to show the notification","notify.error.telegramApiBaseInvalid":"Invalid Telegram API address.","notify.error.telegramChatMissing":"Telegram chat_id is not set.","notify.error.telegramNoCreds":"Telegram is enabled, but botToken/chatId are not set.","notify.error.telegramScheme":"Telegram API supports only http:// or https://.","notify.error.telegramTimeout":"Telegram API timeout ({seconds} s).","notify.error.telegramTokenInvalid":"Invalid Telegram bot token.","notify.error.telegramTokenMissing":"Telegram bot token is not set.","notify.error.testChannelOff":"Channel {channel} is disabled.","notify.error.testDisabled":"Notifications are disabled. Turn on the main switch.","notify.error.testNoChannels":"All channels are disabled. Enable webhook, Telegram or native notifications.","notify.error.testNotSent":"Test notification was not sent.","notify.error.testUnknown":"unknown error","notify.error.webhookScheme":"Webhook supports only http:// or https://.","notify.error.webhookTimeout":"Request timeout ({seconds} s).","notify.error.webhookUrlInvalid":"Invalid webhook URL.","notify.error.webhookUrlMissing":"Webhook URL is not set.","notify.matrix.failed":'❌ Matrix "{parent}" finished with errors: {success} succeeded, {error} failed out of {total}.',"notify.matrix.failedAll":'❌ Matrix "{parent}": all {total} clones failed.',"notify.matrix.partial":'⚠️ Matrix "{parent}" finished partially: {success} of {total} succeeded, {error} failed.',"notify.matrix.success":'✅ Matrix "{parent}" finished: {success} of {total} clones succeeded.',"notify.native.title":"OpenCode Scheduler","notify.ok.digestSent":"Digest sent.","notify.reason":": {error}","notify.stuck":'⏳ Matrix "{parent}": clone "{clone}" has been running longer than {minutes} min (started {startedAt}).',"notify.task.error":'❌ Task "{task}" failed ({duration}){error}{cost}',"notify.task.success":'✅ Task "{task}" completed ({duration}){cost}',"notify.telegram.openDashboard":"📊 Open dashboard","notify.telegram.openDashboardUrl":"📊 Open dashboard: {url}","notify.test.body":"🧪 Test notification from OpenCode Scheduler — the channel is configured correctly.","notify.test.errors":"Errors: {errors}.","notify.test.sent":"Sent: {channels}.","notify.usage.tokens":"{tokens} tok","schedule.error.cronEmptyItem":'Empty item in the list "{token}".',"schedule.error.cronFields":'Expected 5 cron fields, got {count}: "{raw}".',"schedule.error.cronRangeBounds":'Range "{item}" is outside {min}..{max}.',"schedule.error.cronRangeInvalid":'Invalid range "{item}".',"schedule.error.cronStepInvalid":'Invalid step "/{step}" in "{raw}".',"schedule.error.cronStepMissing":'Invalid step in "{raw}": nothing before "/".',"schedule.error.cronValueBounds":'Value "{raw}" is outside {min}..{max}.',"schedule.error.everyInterval":'Unsupported interval "@every {value}" (m: 1..59, h: 1..23, d: 1..31).',"schedule.error.lastDomOnly":'"L" is supported only in the day-of-month field.',"schedule.error.notAfterFormat":'notAfter must be in HH:MM format, not "{value}".',"schedule.error.notBeforeFormat":'notBefore must be in HH:MM format, not "{value}".',"schedule.error.weekdayBounds":'Weekday "{value}" is outside 0..7 in "{field}".',"schedule.reason.dayNotAllowed":"weekday not allowed ({days})","schedule.reason.outsideWindow":"time outside the window {notBefore}–{notAfter}","schedule.weekday.0":"Sun","schedule.weekday.1":"Mon","schedule.weekday.2":"Tue","schedule.weekday.3":"Wed","schedule.weekday.4":"Thu","schedule.weekday.5":"Fri","schedule.weekday.6":"Sat","server.hookTaskMissing":'Task "{task}" not found — hook rejected.',"server.matrixNotFound":'Matrix "{parentId}" not found.',"server.methodNotAllowed":"Method not allowed.","server.notFound":"Page not found.","server.taskNotFound":'Task "{task}" not found.',"tool.error.allowedToolsEmpty":'Task "{task}": an empty allowedTools is not allowed — provide a tool list or omit the field.',"tool.error.cronSchedule":"triggerType=cron requires a schedule cron expression.","tool.error.gitCwdRequired":'Task "{task}": a git trigger requires a working directory or workspace.',"tool.error.gitNoRepo":'Task "{task}": a git trigger requires a git repository at "{path}".',"tool.error.matrixCloneFailed":'clone "{clone}" (workspace "{workspace}"): {error}',"tool.error.matrixConcurrency":'Task "{task}": matrix.concurrency must be a number not less than 1.',"tool.error.matrixExpandRuntime":'Failed to expand matrix "{name}": {error}. Created clones were removed.',"tool.error.matrixNoClones":'Matrix "{name}" has no clones.',"tool.error.matrixNotMatrix":'Task "{name}" is not a matrix.',"tool.error.matrixOverride":'Task "{task}": matrix.overrides contains workspace "{workspace}" that is not listed in workspaceIds.',"tool.error.mcpEventRequired":"An MCP trigger requires an event name (mcpEvent.event).","tool.error.onceFields":"runAt/delaySeconds are only allowed with triggerType=once.","tool.error.onceMatrixSchema":"One-shot cannot be combined with matrix: a matrix is started manually only.","tool.error.onceMatrixUpdate":"One-shot cannot be combined with matrix.","tool.error.onceSchedule":"triggerType=once requires runAt (ISO-8601) or delaySeconds.","tool.error.oneShotMatrix":'Task "{name}": one-shot cannot be combined with matrix. Start the matrix manually or use a cron/file trigger.',"tool.error.pauseDateInvalid":'Task "{name}": invalid pause date "{until}". An ISO instant is required, e.g. 2026-12-01T09:00:00Z.',"tool.error.pauseDatePast":'Task "{name}": the pause date has already passed.',"tool.error.prepareFiles":"Failed to prepare task files: {error}","tool.error.schedulerKeptFiles":"Wrapper files were kept for diagnostics.","tool.error.schedulerNotConfirmed":'The scheduler did not confirm creation of task "{task}": it is missing from {scheduler}.',"tool.error.schedulerRemovedFiles":"Task files were removed; no database record was created.","tool.error.sessionMaxRuns":'Task "{name}": sessionMaxRuns must be an integer ≥ 1.',"tool.error.sessionUnknown":'Task "{name}": unknown session mode "{session}".',"tool.error.taskNameMissing":"Task name is required.","tool.error.taskNotFound":'Task "{name}" not found.',"tool.error.taskReason":'Task "{name}": {error}',"tool.error.timezone":'Task "{task}": unknown timezone "{timezone}". Specify an IANA zone, e.g. Europe/Moscow.',"tool.error.updateCron":'Updating task "{name}" requires a cron schedule.',"tool.error.updatePrompt":'Updating task "{name}" requires a prompt.',"tool.error.window":'Task "{task}": {error}',"tool.error.workspaceIdConflict":'Task "{task}": workspaceId and matrix.workspaceIds cannot be used together.',"tool.error.workspaceIdMissing":"Workspace '{id}' not found.","tool.error.workspaceIdsEmpty":'Task "{task}": matrix.workspaceIds cannot be empty.',"tool.error.workspaceMissing":'Task "{task}": workspace "{id}" not found.',"tool.error.workspacePathMissing":"Workspace '{name}' is unavailable at '{path}'","tool.error.workspaceUnavailable":'Task "{task}": workspace "{workspace}" is unavailable at "{path}".',"tool.error.wrapper":"Failed to create the task wrapper: {error}","tool.event.nameRequired":"Event name is required.","tool.event.nameRequiredShort":"Event name is required (eventName).","tool.event.none":'No tasks are subscribed to event "{event}".',"tool.event.processed":'Event "{event}" processed. Tasks started: {count}.',"tool.event.triggered":"Tasks started: {count}.","tool.history.cleanFailed":"Failed to clean history: {error}","tool.history.cleaned":"Deleted {deleted} records (by age: {byAge}, by limit: {byCount}), {kept} left.","tool.matrix.actionName":"action={action} requires the matrix name.","tool.matrix.cancelFinished":"Already finished and left untouched: {count}.","tool.matrix.cancelRunning":"Stopped running: {count}.","tool.matrix.cancelSummary":'Matrix "{matrix}": cancelled {cancelled} of {total} clones.',"tool.matrix.cancelWarnings":"Warnings: {warnings}.","tool.matrix.completed":'Matrix "{name}" completed. Check the clone results: {clones}.',"tool.matrix.limit":"The concurrent task limit has been reached. Wait for the current tasks to finish.","tool.matrix.orphansNone":"No orphaned tasks found.","tool.matrix.orphansRemoved":"Removed orphaned tasks: {count}.","tool.matrix.parentMissing":"Matrix parentId is required.","tool.matrix.recreateFailed":"{clone}: failed to recreate — {error}","tool.matrix.started":'Matrix "{name}": started {started} of {total}',"tool.matrix.startedErrors":". Errors: {errors}","tool.matrix.startedSkipped":", skipped {count}","tool.matrix.stopFailed":"{clone}: failed to stop — {error}","tool.profile.active":"Active profile: {name}. Restart OpenCode to apply the changes.","tool.profile.created":'Profile "{name}" created (dashboard port {port}).',"tool.profile.deleted":'Profile "{name}" deleted along with its database and settings.',"tool.profile.envVar":"The profile is set by OPENCODE_SCHEDULER_PROFILE={name}. Restart OpenCode.","tool.profile.envVarLong":"The profile is set by OPENCODE_SCHEDULER_PROFILE={name}. Restart OpenCode to apply the changes.","tool.profile.nameRequired":"action={action} requires a profile name.","tool.profile.notFound":"Profile not found.","tool.secret.deleted":"Secret {name} deleted.","tool.secret.nameRequired":"set/delete requires a secret name.","tool.secret.needName":"A secret name is required.","tool.secret.needValue":"A non-empty secret value is required.","tool.secret.notFound":"Secret {name} not found.","tool.secret.saved":"Secret {name} saved in encrypted form.","tool.secret.valueRequired":"action=set requires a non-empty value.","tool.settings.updateFields":"For action=update pass at least one field: maxConcurrent, locale, winterMode, notifications, history, integrations or audit.","tool.task.alreadyAbsent":'Task "{name}" is already absent (deleted or never existed).',"tool.task.alreadyRunning":'Task "{name}" is already running.',"tool.task.autosave":"failed to save auto-resume: {error}","tool.task.created":'Task "{name}" created successfully.',"tool.task.deleted":'Task "{name}" deleted successfully.',"tool.task.found":"Tasks found: {count}.","tool.task.foundOsUnavailable":"Tasks found: {count}. OS scheduler status is unavailable — showing database state.","tool.task.listEmpty":"No plugin tasks found.","tool.task.listOsUnavailable":"OS scheduler status is unavailable — showing database state.","tool.task.matrixDeletedCount":'Matrix "{name}" deleted along with {count} tasks (clones and aggregator).',"tool.task.matrixDeletedList":'Matrix "{name}" deleted along with its clones: {list}.',"tool.task.matrixPauseErrors":" Errors: {warnings}.","tool.task.matrixPaused":'Matrix "{name}" {verb}{until}: {affected} of {total} clones.',"tool.task.pauseError":" Error: {warnings}.","tool.task.paused":"paused","tool.task.pausedText":'Task "{name}" {verb}{until}.',"tool.task.resumed":"resumed","tool.task.rollbackFailed":'{cause} Rollback failed: {restore}. Task "{name}" is missing from the scheduler — create it again.',"tool.task.rollbackKept":"{cause} The previous version was left untouched: the task could not be removed from the scheduler.","tool.task.rollbackRestored":"{cause} The update was cancelled and the previous version restored.","tool.task.started":'Task "{name}" started.',"tool.task.until":" until {date}","tool.task.updated":'Task "{name}" updated.',"tool.template.deleted":"Template {id} deleted.","tool.template.namePromptRequired":"A non-empty template name and prompt are required.","tool.template.needDeleteId":"action=delete requires the template id.","tool.template.needId":"Template id is required.","tool.template.notFound":"Template {id} not found.","tool.template.saveRequired":"action=save requires non-empty name and prompt.","tool.transfer.importData":"action=import requires export data.","tool.transfer.noData":"Import data is required.","tool.transfer.noTasks":"The data contains no tasks to import.","tool.transfer.noTasksInFile":"The file contains no tasks to import.","tool.workspace.deleted":"Workspace deleted. Tasks were kept and their binding was cleared.","tool.workspace.needDeleteId":"action=delete requires id.","tool.workspace.needPath":"action=add requires path.","tool.workspace.needUpdateId":"action=update requires id.","tool.workspace.notFound":"Workspace not found."};var Cc=e.template("<div><div style=display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%><div style=display:flex;align-items:center;gap:12px;flex:1;min-width:0><div style=flex:1;min-width:0><div style=display:flex;align-items:center;gap:6px;min-width:0><div style=font-weight:700;font-size:16px;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></div></div><div style=font-size:12px;color:#a0a0a6;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></div></div><div style=display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:110px></div></div><div style=display:flex;gap:6px><button></button><button></button><button>📄</button><button>🧪</button><button>📜</button><button>✏️"),Ec=e.template("<span>📦 "),Pc=e.template('<span 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)">📦 Matrix (<!>)'),zc=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #8e8e93;color:#b0b0b6;background:rgba(142,142,147,0.12)">↳ matrix '),Rc=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>👁️"),Lc=e.template('<span 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)">'),Ac=e.template('<span 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'),Dc=e.template('<span 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)">📅 <!>/7'),Mc=e.template('<span 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)">🌍 '),Fc=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #bf5af2;color:#bf5af2;background:rgba(191,90,242,0.12)">🪟 <!>–'),Oc=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #ffd60a;color:#ffd60a;background:rgba(255,214,10,0.12)">'),Ic=e.template('<span 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)">🌙 '),jc=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>⚡"),Nc=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>📡"),qc=e.template('<span 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)">'),Hc=e.template("<span style=font-size:12px;flex-shrink:0;cursor:help;color:#c084fc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px>🧠 "),Wc=e.template("<span style=font-size:12px;flex-shrink:0;cursor:help;color:#f5a623;white-space:nowrap>🚀 "),Bc=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>🔒"),Uc=e.template("<div style=display:flex;flex-direction:column;gap:2px;margin-top:4px;font-size:11px;line-height:1.35><span style=color:#5ac8fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),Gc=e.template("<div style=display:flex;flex-direction:column;gap:2px;margin-top:4px;font-size:11px;line-height:1.35><span>"),Vc=e.template("<div style=display:flex;align-items:center;gap:8px;font-size:12px;color:#a0a0a6;margin-top:2px><span style=white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),Kc=e.template("<span>→ "),Yc=e.template("<div style=font-size:12px;color:#f5a623;font-weight:600;white-space:nowrap>"),Jc=e.template("<div style=font-size:12px;font-weight:600;white-space:nowrap>"),Qc=e.template("<button>⛔"),Zc=e.template("<button>🗑"),Xc=e.template('<div style="margin-top:8px;padding:8px 12px;background:#1e1e1e;border:1px solid #333;border-radius:6px;display:flex;flex-direction:column;gap:6px;width:100%"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;align-items:center;gap:6px><button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),Il=e.template('<div style="font-size:12px;color:#8e8e93;padding:6px 0">'),eg=e.template('<div style="display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#e0e0e0;padding:4px 0;border-bottom:1px solid #333"><span style=color:#8e8e93;white-space:nowrap></span><span style=fontWeight:600;whiteSpace:nowrap></span><span style=color:#b0b0b0;white-space:nowrap>'),tg=e.template("<span style=color:#c084fc;white-space:nowrap>🧠 "),rg=e.template("<span style=whiteSpace:nowrap>⚡ pre: "),ig=e.template("<span style=whiteSpace:nowrap>⚡ post: "),og=e.template("<div style=margin-top:2px;color:#ff6b6b;font-size:11px;white-space:pre-wrap;word-break:break-word>"),ng=e.template("<span style=color:#5ac8fa;font-size:11px;white-space:nowrap>🔗 → "),ag=e.template('<div style="margin-top:8px;padding:8px 12px;background:#1e1e1e;border:1px solid #333;border-radius:6px;display:flex;flex-direction:column;gap:6px;width:100%"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;align-items:center;gap:6px>🧪 Dry-Run: <button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),sg=e.template('<div style="font-size:12px;color:#ff6b6b;padding:6px 0">❌ '),lg=e.template("<div style=display:flex;flex-direction:column;gap:4px>"),dg=e.template('<div style="font-size:11px;color:#f5a623;padding:4px 0">⚠ '),ug=e.template('<div style="font-size:11px;color:#e0e0e0;padding:4px 0;border-bottom:1px solid #333;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline"><span style=color:#8e8e93;white-space:nowrap>#<!> </span><span style=font-weight:600;white-space:nowrap>🧪 </span><span style=color:#8e8e93;white-space:nowrap>cwd: </span><div style=width:100%;color:#a0a0a6;overflow-wrap:anywhere>$ '),pg=e.template("<span style=color:#5ac8fa;white-space:nowrap>📦 "),cg=e.template("<span style=color:#ff9f0a;white-space:nowrap>↳ matrix "),gg=e.template("<span style=cursor:help>🔒"),jl=e.template("<span style=color:#8e8e93;white-space:nowrap>"),mg=e.template("<span style=color:#8e8e93;white-space:nowrap>· ~$"),fg=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>⚡ pre: "),yg=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>⚡ post: "),bg=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>✅ QG: "),xg=e.template('<div style="font-size:11px;color:#b0b0b0;padding:4px 0">'),hg=e.template('<div class=scheduler-panel-root><style>.scheduler-panel-root > * { flex-shrink: 0; }</style><div style=display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap><div style=min-width:0><h2 style=margin:0;font-size:22px;font-weight:800;letter-spacing:0.2px;line-height:1.2;color:#ffffff></h2><div style=margin-top:5px;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#8e8e93>Local AI CI/CD Orchestrator</div><div style=margin-top:4px;font-size:11px;color:#8e8e93></div></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><select style="padding:6px 10px;border-radius:999px;cursor:pointer;font-size:12px;border:1px solid #333;background:#1e1e1e;color:#e0e0e0;outline:none;max-width:200px"><option value=all></option><option value=none></option></select><button>👤 </button><button style="display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;transition:background 0.2s ease, border-color 0.2s ease;border:1px solid #333;background:#1e1e1e;color:#e0e0e0"></button><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div></div><div style=display:flex;gap:8px;flex-wrap:wrap;margin-top:8px><button></button><input type=file accept=.json style=display:none><button></button></div><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px><label style=font-size:12px;color:#b0b0b0;font-weight:500;white-space:nowrap></label><input type=number min=0 style="width:60px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93;white-space:nowrap></span></div><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"><button style="display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;background:transparent;border:none;color:#e0e0e0;font-size:12px;font-weight:600;cursor:pointer;text-align:left"><span></span><span style=display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400;color:#8e8e93><span></span></span></button></div><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"><button style="display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;background:transparent;border:none;color:#e0e0e0;font-size:12px;font-weight:600;cursor:pointer;text-align:left"><span></span><span style=display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400;color:#8e8e93> · <span></span></span></button></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><button 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><span></span><span style=font-size:11px;font-weight:400;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93></span></button></div></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><span style=font-size:12px;font-weight:600;color:#e0e0e0></span></div><div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div></div></div><div style="width:100%;max-width:700px;box-sizing:border-box;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><button 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><span>📦 Workspaces</span><span style=font-size:11px;font-weight:400;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93></span></button><button></button></div></div><div style=display:block;width:100%;margin-top:24px><h3 style=margin:0;margin-bottom:8px;font-size:14px;font-weight:600;color:#ffffff>'),Nl=e.template("<div style=padding:16px;color:#ff3b30;font-size:13px>"),ql=e.template("<option>📦 "),vg=e.template('<div style="background:#1e1e1e;border:1px solid #333;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px"><div style=display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap><div style=font-size:12px;font-weight:600;color:#e0e0e0></div><button></button></div><div style=display:flex;flex-direction:column;gap:6px></div><div style=font-size:11px;color:#8e8e93>'),wg=e.template("<div style=font-size:11px;color:#ffd60a>"),kg=e.template("<div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px><span></span><span style=font-size:11px;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93;overflow:hidden;text-overflow:ellipsis;max-width:340px>"),$g=e.template("<span style=font-size:11px;color:#34c759>"),Hl=e.template("<button>"),Sg=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><label style=display:flex;align-items:center;gap:8px;font-size:12px;color:#e0e0e0;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><input type=url placeholder=https://discord.com/api/webhooks/...><div style=font-size:11px;color:#8e8e93></div><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#b0b0b0><span></span><input type=number min=1000 max=120000 step=1000 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=number min=0 max=5 style="width:56px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=number min=100 max=60000 step=100 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0>Telegram</label><input type=password autocomplete=off><input type=text><div><span></span><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=HTML>HTML</option><option value=MarkdownV2>MarkdownV2</option><option value=Markdown>Markdown</option><option value>plain text</option></select><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><span></span><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><input type=text><input type=text><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><input type=text><input type=text><div style=font-size:11px;color:#8e8e93></div></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><span style=font-size:12px;font-weight:600;color:#e0e0e0></span><span style=font-size:11px;color:#8e8e93></span></div><div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><input type=text style="width:220px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><input type=password autocomplete=new-password style="width:320px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><button></button></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:auto></div><div style=font-size:11px;color:#8e8e93></div></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0>partial</label><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><span></span><input type=number min=0 max=10080 style="width:72px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=daily></option><option value=weekly></option></select><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=font-size:11px;color:#8e8e93></div></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><button></button><button></button><span style=font-size:11px;color:#8e8e93>'),_g=e.template('<span 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"><span style=font-weight:600;color:#569cd6></span><span style=color:#ce9178>•••• </span><button style="padding:2px 6px;background:#c43b2b;color:white;border:none;border-radius:3px;cursor:pointer;font-size:10px;font-weight:600;line-height:1">×'),Tg=e.template("<span style=font-size:11px;color:#8e8e93>"),Cg=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:70px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=font-size:11px;color:#8e8e93> </div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><button></button><span style=font-size:11px;color:#8e8e93>'),Eg=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text style="width:150px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text placeholder=mcp/gui/http style="width:110px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text style="width:180px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><button></button></div><div style="width:100%;overflow:auto;border:1px solid #333;border-radius:6px;background:#0f0f0f"><table style=width:100%;border-collapse:collapse;font-size:11px><thead><tr style="border-bottom:1px solid #333"><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th></tr></thead><tbody></tbody></table></div><div style=font-size:11px;color:#8e8e93>'),Pg=e.template('<tr style="border-bottom:1px solid #222"><td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap"></td><td style="padding:5px 8px;color:#569cd6"></td><td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap">: </td><td style="padding:5px 8px;color:#ce9178"></td><td style="padding:5px 8px;color:#e0e0e0"></td><td style="padding:5px 8px;color:#8e8e93;white-space:nowrap">'),zg=e.template('<tr><td colspan=6 style="padding:10px 8px;color:#8e8e93;text-align:center">'),Rg=e.template('<div style="display:flex;flex-direction:column;gap:6px;padding:0 14px 12px">'),Lg=e.template('<div style="font-size:12px;color:#8e8e93;padding:4px 0">'),Ag=e.template('<div style="display:flex;align-items:center;gap:10px;padding:8px 10px;background:#252526;border:1px solid #333;border-radius:8px;min-width:0"><span></span><div style=display:flex;flex-direction:column;gap:2px;flex:1;min-width:0><span style=font-size:12px;font-weight:700;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>📦 </span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span><span style=font-size:10px;color:#a0a0a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span></div><div style=display:flex;gap:4px;flex-shrink:0><button style=background:transparent;border:none;color:#a0a0a6;cursor:pointer;font-size:14px;padding:2px>🔑</button><button style=background:transparent;border:none;color:#a0a0a6;cursor:pointer;font-size:14px;padding:2px>✏️</button><button style=background:transparent;border:none;color:#ff3b30;cursor:pointer;font-size:14px;padding:2px>🗑'),Dg=e.template('<button style="display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:700px;box-sizing:border-box;padding:12px 16px;background:#1e1e1e;border:1px dashed #3a3a3a;border-radius:10px;color:#e0e0e0;font-size:13px;font-weight:600;cursor:pointer;transition:border-color 0.18s ease, background 0.18s ease">'),Mg=e.template('<div style="display:block;width:100%;max-width:700px;box-sizing:border-box;background:#1e1e1e;padding:20px;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,0.2)"><div style=display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;flex-wrap:wrap><h3 style=margin:0;font-size:14px;font-weight:600;color:#ffffff></h3><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><button style="background:transparent;border:1px solid #333;border-radius:6px;padding:4px 10px;color:#a0a0a6;font-size:11px;cursor:pointer;white-space:nowrap;transition:color 0.18s ease, border-color 0.18s ease"></button><button style="background:transparent;border:1px solid #333;border-radius:6px;padding:4px 10px;color:#a0a0a6;font-size:11px;cursor:pointer;white-space:nowrap;transition:color 0.18s ease, border-color 0.18s ease"></button></div></div><div style="display:block;width:100%;margin-bottom:12px;padding:10px 12px;background:#1a1a1a;border:1px solid #333;border-radius:8px"><label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600;color:#fff><input type=checkbox style=accent-color:#ff9f0a>📦 Matrix (Fan-Out)</label><div style=font-size:11px;color:#8e8e93;margin-top:4px;line-height:1.45></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc>MCP Event</label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label></div></div><div style=width:100%;marginBottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select><div style=display:block;width:100%;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text list=iana-timezones 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"><datalist id=iana-timezones><option value=Europe/Moscow></option><option value=Europe/London></option><option value=Europe/Berlin></option><option value=America/New_York></option><option value=America/Los_Angeles></option><option value=Asia/Almaty></option><option value=Asia/Tokyo></option><option value=UTC></option></datalist><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div></div><div style=display:block;width:100%;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;align-items:center><input type=time style="display:block;flex:1;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"><span style=color:#808080;font-size:12px>—</span><input type=time style="display:block;flex:1;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"></div><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div><div style=display:block;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:10px;flex-wrap:wrap></div></div><div style=display:block;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"><option value=postpone></option><option value=skip></option><option value=run></option></select><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div></div></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=2 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"></textarea></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text list=scheduler-model-presets 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"><datalist id=scheduler-model-presets><option value=anthropic/claude-3-5-sonnet></option><option value=openai/gpt-4o></option><option value=deepseek/deepseek-coder></option><option value=google/gemini-2.5-pro></option><option value=openai/gpt-4o-mini></option></datalist><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=0 placeholder=0 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=1 placeholder=60 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style="display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;min-height:38px;box-sizing:border-box"></div><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><details style=display:block;width:100%;margin-bottom:12px><summary style=cursor:pointer;font-size:12px;color:#b0b0b0;font-weight:500;margin-bottom:8px;user-select:none></summary><div style="display:block;width:100%;padding:10px;background:#1e1e1e;border:1px solid #333;border-radius:6px;box-sizing:border-box"><div style=font-size:11px;color:#8e8e93;margin-bottom:8px></div><div style=font-size:11px;color:#b0b0b0;margin-bottom:4px></div><div style=display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px></div><div style=font-size:11px;color:#b0b0b0;margin-bottom:4px></div><div style=display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px></div><div style=display:flex;gap:6px><input type=text style="flex:1;padding:6px 8px;background:#141414;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><button style="padding:6px 10px;background:transparent;border:1px solid #34c759;color:#34c759;border-radius:6px;cursor:pointer;font-size:12px">+ allowed</button><button style="padding:6px 10px;background:transparent;border:1px solid #ff3b30;color:#ff3b30;border-radius:6px;cursor:pointer;font-size:12px">+ denied</button></div></div></details><div style=display:block;width:100%;margin-top:8px><button style="display:block;width:100%;padding:8px;margin-top:4px;background:transparent;border:1px solid #333;border-radius:6px;color:#d4e6ff;cursor:pointer;font-size:12px"></button><button>'),Fg=e.template('<div style=margin-top:10px;display:flex;flex-direction:column;gap:10px><div><div style=font-size:12px;color:#b0b0b0;font-weight:500;margin-bottom:6px></div></div><div style=display:flex;gap:8px;flex-wrap:wrap><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=parallel></option><option value=sequential></option></select></label><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=continue></option><option value=stop></option></select></label><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=summary></option><option value=per-task></option></select></label></div><label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#e0e0e0><input type=checkbox style=accent-color:#ff9f0a></label><label style=font-size:11px;color:#b0b0b0;max-width:240px><input type=number min=1 step=1 style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"></label><div style="padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px;font-size:11px;line-height:1.55;color:#a0a0a6">'),Og=e.template("<div style=font-size:11px;color:#f5a623>"),Ig=e.template('<div style="display:flex;flex-direction:column;gap:4px;max-height:170px;overflow:auto;padding:6px 8px;background:#141414;border:1px solid #333;border-radius:6px">'),jg=e.template("<label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#e0e0e0><input type=checkbox style=accent-color:#ff9f0a><span>📦 </span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),Ng=e.template('<details style="padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px"><summary style=cursor:pointer;font-size:12px;color:#b0b0b0;font-weight:500></summary><div style=margin-top:8px;display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto>'),qg=e.template('<div style="padding:8px;background:#101010;border:1px solid #2a2a2a;border-radius:6px"><div>📦 <span style=margin-left:6px;font-size:10px;color:#8e8e93></span></div><div style=display:flex;flex-direction:column;gap:6px><textarea rows=2 style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;width:100%;resize:vertical;font-family:inherit"></textarea><div style=display:flex;gap:6px;flex-wrap:wrap><input style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"><input placeholder="Quality Gate (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"></div><div style=display:flex;gap:6px;flex-wrap:wrap><input placeholder="beforeScript (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"><input placeholder="afterScript (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px">'),Hg=e.template("<div style=color:#ff9f0a;font-weight:600>"),Wg=e.template("<div style=color:#e0e0e0;word-break:break-all>"),Bg=e.template("<span style=color:#f5a623>"),Ug=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"><option value>'),Gg=e.template('<div style="margin-top:8px;padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px;font-size:11px;line-height:1.55;color:#a0a0a6"><div>cwd = <span style=color:#e0e0e0></span></div><div>git branch = <span style=color:#5ac8fa></span></div><div>git remote = <span style=color:#e0e0e0>'),Wl=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),Vg=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><label style="display:block;margin:12px 0 6px;font-size:12px;color:#b0b0b0;font-weight:500"></label><textarea rows=3 placeholder="**/*.md
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("solid-js/web"),a=require("solid-js"),ol=require("@opencode/plugin/gui"),Jp=require("@opencode/plugin/rpc"),Du=require("node:fs"),Rn=require("node:path"),Xp=require("node:url");var nl=typeof document<"u"?document.currentScript:null;const ro={type:["object","null"],properties:{server:{type:"string"},event:{type:"string"},filter:{type:"string"}},required:["server","event"]},ul={type:["object","null"],properties:{workspaceIds:{type:"array",items:{type:"string"}},strategy:{type:["string","null"]},failureMode:{type:["string","null"]},aggregation:{type:["string","null"]},createAggregator:{type:["boolean","null"]},concurrency:{type:["number","null"]},overrides:{type:["object","null"],additionalProperties:{type:"object",properties:{prompt:{type:["string","null"]},model:{type:["string","null"]},qualityGate:{type:["string","null"]},beforeScript:{type:["string","null"]},afterScript:{type:["string","null"]}}}}},required:["workspaceIds"]},eg={type:"object",properties:{name:{type:"string"},schedule:{type:"string"},timeoutSeconds:{type:["number","null"]},status:{type:"string"},nextRun:{type:["string","null"]},model:{type:["string","null"]},priority:{type:["number","null"]},retryCount:{type:["number","null"]},retryDelay:{type:["number","null"]},qualityGate:{type:["string","null"]},nextTaskOnSuccess:{type:["string","null"]},nextTaskOnError:{type:["string","null"]},dependsOn:{type:"array",items:{type:"string"}},prompt:{type:"string"},beforeScript:{type:["string","null"]},afterScript:{type:["string","null"]},triggerType:{type:["string","null"]},runAt:{type:["string","null"]},session:{type:["string","null"]},sessionId:{type:["string","null"]},sessionMaxRuns:{type:["number","null"]},mcpEvent:ro,watchPath:{type:["string","null"]},timezone:{type:["string","null"]},notBefore:{type:["string","null"]},notAfter:{type:["string","null"]},activeDays:{type:["array","null"],items:{type:"number"}},windowPolicy:{type:["string","null"]},watchGlobs:{type:["array","null"],items:{type:"string"}},watchIgnore:{type:["array","null"],items:{type:"string"}},gitBranch:{type:["string","null"]},gitPaths:{type:["array","null"],items:{type:"string"}},gitIgnore:{type:["array","null"],items:{type:"string"}},gitPollSeconds:{type:["number","null"]},pausedUntil:{type:["string","null"]},workingDirectory:{type:["string","null"]},workspaceId:{type:["string","null"]},workspaceName:{type:["string","null"]},workspaceColor:{type:["string","null"]},allowedTools:{type:["array","null"],items:{type:"string"}},deniedTools:{type:["array","null"],items:{type:"string"}},matrix:ul,matrixParentId:{type:["string","null"]},isMatrixParent:{type:"boolean"},paused:{type:"boolean"},orphaned:{type:"boolean"},runsTotal:{type:"number"},runsSuccess:{type:"number"},runsError:{type:"number"},runsPartial:{type:"number"},matrixSummary:{type:["object","null"],properties:{totalCount:{type:"number"},successCount:{type:"number"},errorCount:{type:"number"},pendingCount:{type:"number"},status:{type:"string"},message:{type:"string"}}}},required:["name","schedule","status"]},al={type:"object",properties:{},additionalProperties:!1},tg={type:"object",properties:{tasks:{type:"array",items:eg}},required:["tasks"]},ig={type:"object",properties:{name:{type:"string"},schedule:{type:"string"},prompt:{type:"string"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},runAt:{type:"string"},delaySeconds:{type:"number"},session:{type:"string"},sessionMaxRuns:{type:"number"},mcpEvent:ro,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}},matrix:ul,timezone:{type:"string"},notBefore:{type:"string"},notAfter:{type:"string"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"}},required:["name","prompt"]},rg={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Ln={type:"object",properties:{name:{type:"string"}},required:["name"]},og=Ln,ng=Ln,io={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},ag=io,lg=Ln,sg={type:"object",properties:{success:{type:"boolean"},logs:{type:"string"},error:{type:"string"}},required:["success","logs"]},dg={type:"object",properties:{taskName:{type:"string"},status:{type:"string"},startedAt:{type:"string"},finishedAt:{type:"string"},durationMs:{type:"number"},error:{type:["string","null"]},nextTask:{type:["string","null"]},model:{type:["string","null"]},preFlightStatus:{type:["string","null"]},postFlightStatus:{type:["string","null"]},allowedTools:{type:["array","null"],items:{type:"string"}},deniedTools:{type:["array","null"],items:{type:"string"}}},required:["taskName","status","startedAt","finishedAt","durationMs","error"]},ug={type:"object",properties:{limit:{type:"number"},taskName:{type:"string"},status:{type:"string"}},additionalProperties:!1},cg={type:"object",properties:{records:{type:"array",items:dg}},required:["records"]},pg={type:"object",properties:{total:{type:"number"},success:{type:"number"},error:{type:"number"}},required:["total","success","error"]},gg={type:"object",properties:{},additionalProperties:!1},mg=pg,fg={type:"object",properties:{},additionalProperties:!1},yg={type:"object",properties:{port:{type:["number","null"]}},required:["port"]},bg={type:"object",properties:{},additionalProperties:!1},hg={type:"object",properties:{platform:{type:"string"},title:{type:"string"}},required:["platform","title"]},xg={type:"object",properties:{},additionalProperties:!1},vg={type:"object",properties:{success:{type:"boolean"},data:{type:"string"},count:{type:"number"},error:{type:"string"}},required:["success"]},wg={type:"object",properties:{data:{type:"string"}},required:["data"]},kg={type:"object",properties:{success:{type:"boolean"},imported:{type:"number"},errors:{type:"array",items:{type:"string"}},error:{type:"string"}},required:["success"]},Sg={type:"object",properties:{},additionalProperties:!1},cl={type:"object",properties:{enabled:{type:"boolean"},onlyOnError:{type:"boolean"},webhook:{type:"object",properties:{enabled:{type:"boolean"},url:{type:"string"},timeoutMs:{type:"number"},retryCount:{type:"number"},retryDelayMs:{type:"number"}},required:["enabled","url"]},templates:{type:"object",properties:{success:{type:"string"},error:{type:"string"}},required:["success","error"]},filters:{type:"object",properties:{include:{type:"array",items:{type:"string"}},exclude:{type:"array",items:{type:"string"}}},required:["include","exclude"]},telegram:{type:"object",properties:{enabled:{type:"boolean"},botToken:{type:"string"},chatId:{type:"string"},parseMode:{type:"string",enum:["","HTML","Markdown","MarkdownV2"]},disableNotification:{type:"boolean"},messageThreadId:{type:["number","null"]},includeDashboardLink:{type:"boolean"},apiBase:{type:"string"}},required:["enabled"]},native:{type:"object",properties:{enabled:{type:"boolean"},sound:{type:"boolean"}},required:["enabled"]},quietHours:{type:"object",properties:{enabled:{type:"boolean"},from:{type:"string"},to:{type:"string"}},required:["enabled","from","to"]},dashboardUrl:{type:"string"},matrix:{type:"object",properties:{enabled:{type:"boolean"},onPartial:{type:"boolean"},onAllFailed:{type:"boolean"},stuckAfterMinutes:{type:"number"}},required:["enabled","onPartial","onAllFailed","stuckAfterMinutes"]},digest:{type:"object",properties:{enabled:{type:"boolean"},frequency:{type:"string",enum:["daily","weekly"]},time:{type:"string"},lastSentAt:{type:["string","null"]}},required:["enabled","frequency","time"]},triage:{type:"object",properties:{mode:{type:"string",enum:["off","rules","llm","auto"]},baseUrl:{type:"string"},model:{type:"string"},timeoutMs:{type:"number"},fallback:{type:"string",enum:["rules","notify","skip"]},confidenceThreshold:{type:"number"},rules:{type:"array",items:{type:"object",properties:{id:{type:"string"},field:{type:"string",enum:["status","task","error","cost"]},operator:{type:"string",enum:["equals","contains","regex","gt","lt","gte","lte"]},value:{type:["string","number"]},category:{type:"string",enum:["quality","timeout","permission","network","unknown"]},severity:{type:"string",enum:["low","medium","high"]},confidence:{type:"number"},action:{type:"string",enum:["notify","skip"]},reason:{type:"string"},priority:{type:"number"}},required:["field","operator","value"]}},shadow:{type:"object",properties:{enabled:{type:"boolean"},days:{type:"number"},startedAt:{type:["string","null"]}},required:["enabled","days","startedAt"]}},required:["mode","baseUrl","model","timeoutMs","fallback","confidenceThreshold"]}},required:["enabled","onlyOnError"]},pl={type:"object",properties:{retentionDays:{type:"number"},maxRecords:{type:"number"},lastCleanupAt:{type:["string","null"]},lastCleanupDeleted:{type:"number"}},required:["retentionDays","maxRecords"]},gl={type:"object",properties:{enabled:{type:"boolean"},retentionDays:{type:"number"},maxRecords:{type:"number"}},required:["enabled","retentionDays","maxRecords"]},ml={type:"object",properties:{defaultPolicy:{type:"string",enum:["hybrid","secure","legacy"]}},required:["defaultPolicy"]},$g={type:"object",properties:{maxConcurrent:{type:"number"},locale:{type:"string",enum:["auto","ru","en","zh"]},uiLocale:{type:"string",enum:["ru","en","zh"]},winterMode:{type:"boolean"},notifications:cl,history:pl,audit:gl,permissions:ml},required:["maxConcurrent","locale","winterMode","notifications"]},_g={type:"object",properties:{maxConcurrent:{type:"number"},locale:{type:"string",enum:["auto","ru","en","zh"]},uiLocale:{type:"string",enum:["ru","en","zh"]},winterMode:{type:"boolean"},notifications:cl,history:pl,audit:gl,permissions:ml},additionalProperties:!1},Tg={type:"object",properties:{success:{type:"boolean"},maxConcurrent:{type:"number"},locale:{type:"string",enum:["auto","ru","en","zh"]},uiLocale:{type:"string",enum:["ru","en","zh"]},winterMode:{type:"boolean"},notifications:cl,history:pl,audit:gl,permissions:ml},required:["success","maxConcurrent","locale","winterMode","notifications"]},Cg={type:"object",properties:{retentionDays:{type:"number"},maxRecords:{type:"number"}},additionalProperties:!1},Ag={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},deleted:{type:"number"},deletedByAge:{type:"number"},deletedByCount:{type:"number"},kept:{type:"number"},retentionDays:{type:"number"},maxRecords:{type:"number"},vacuumed:{type:"boolean"}},required:["success","message","deleted","kept"]},zg={type:"object",properties:{days:{type:"number"},topLimit:{type:"number"}},additionalProperties:!1},Eg={type:"object",properties:{success:{type:"boolean"},report:{type:["object","null"]},error:{type:"string"}},required:["success","report"]},Pg={type:"object",properties:{days:{type:"number"},topLimit:{type:"number"},includeAnomalies:{type:"boolean"},includeTrends:{type:"boolean"},includeRecommendations:{type:"boolean"}},additionalProperties:!1},Rg={type:"object",properties:{success:{type:"boolean"},report:{type:["object","null"]},error:{type:"string"}},required:["success","report"]},Lg={type:"object",properties:{},additionalProperties:!1},Mg={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Dg={type:"object",properties:{},additionalProperties:!1},Fg={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Fu={type:"object",properties:{name:{type:"string"},preview:{type:"string"},updatedAt:{type:"string"}},required:["name","preview"]},Og={type:"object",properties:{},additionalProperties:!1},Ig={type:"object",properties:{success:{type:"boolean"},secrets:{type:"array",items:Fu}},required:["success","secrets"]},jg={type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"],additionalProperties:!1},Ng={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},secret:Fu},required:["success"]},qg={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},Hg={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},Ug={type:"object",properties:{id:{type:"number"},ts:{type:"string"},action:{type:"string"},targetType:{type:["string","null"]},target:{type:["string","null"]},actor:{type:"string"},source:{type:["string","null"]},details:{},remote:{type:["string","null"]}},required:["id","ts","action","actor"]},Wg={type:"object",properties:{action:{type:"string"},target:{type:"string"},actor:{type:"string"},since:{type:"string"},until:{type:"string"},limit:{type:"number"}},additionalProperties:!1},Bg={type:"object",properties:{success:{type:"boolean"},records:{type:"array",items:Ug},total:{type:"number"}},required:["success","records","total"]},Gg={type:"object",properties:{taskName:{type:"string"},status:{type:"string"},error:{type:["string","null"]},durationMs:{type:"number"},tokens:{type:"number"},costUsd:{type:"number"},before:{type:["object","null"]},after:{type:["object","null"]},dedupCount:{type:"number"}},required:["taskName","status"],additionalProperties:!1},Vg={type:"object",properties:{success:{type:"boolean"},result:{type:"object"},error:{type:"string"}},required:["success","result"],additionalProperties:!1},Ou={type:"object",properties:{id:{type:"string"},name:{type:"string"},prompt:{type:"string"},schedule:{type:"string"},timeoutSeconds:{type:"number"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},mcpEvent:ro,watchPath:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}}},required:["id","name","prompt"]},Kg={type:"object",properties:{},additionalProperties:!1},Zg={type:"object",properties:{templates:{type:"array",items:Ou}},required:["templates"]},Qg={type:"object",properties:{id:{type:"string"},name:{type:"string"},prompt:{type:"string"},schedule:{type:"string"},timeoutSeconds:{type:"number"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},mcpEvent:ro,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}}},required:["name","prompt"],additionalProperties:!1},Yg={type:"object",properties:{success:{type:"boolean"},template:Ou,error:{type:"string"}},required:["success"]},Jg={type:"object",properties:{id:{type:"string"}},required:["id"]},Xg={type:"object",properties:{success:{type:"boolean"},error:{type:"string"}},required:["success"]},bu={type:"object",properties:{name:{type:"string"},until:{type:"string"}},required:["name"]},em={type:"object",properties:{name:{type:"string"},newSchedule:{type:"string"},newPrompt:{type:"string"},model:{type:"string"},priority:{type:"number"},retryCount:{type:"number"},retryDelay:{type:"number"},qualityGate:{type:"string"},nextTaskOnSuccess:{type:"string"},nextTaskOnError:{type:"string"},dependsOn:{type:"array",items:{type:"string"}},beforeScript:{type:"string"},afterScript:{type:"string"},triggerType:{type:"string"},runAt:{type:"string"},delaySeconds:{type:"number"},session:{type:"string"},sessionMaxRuns:{type:"number"},mcpEvent:ro,watchPath:{type:"string"},workspaceId:{type:"string"},workingDirectory:{type:"string"},allowedTools:{type:"array",items:{type:"string"}},deniedTools:{type:"array",items:{type:"string"}},matrix:ul,timezone:{type:"string"},notBefore:{type:"string"},notAfter:{type:"string"},activeDays:{type:"array",items:{type:"number"}},windowPolicy:{type:"string"},watchGlobs:{type:"array",items:{type:"string"}},watchIgnore:{type:"array",items:{type:"string"}},gitBranch:{type:"string"},gitPaths:{type:"array",items:{type:"string"}},gitIgnore:{type:"array",items:{type:"string"}},gitPollSeconds:{type:"number"}},required:["name"]},tm=io,Iu={type:"object",properties:{id:{type:"string"},name:{type:"string"},path:{type:"string"},gitRemote:{type:["string","null"]},gitBranch:{type:["string","null"]},color:{type:["string","null"]},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]},createdAt:{type:"string"}},required:["id","name","path","createdAt"]},im={type:"object",properties:{},additionalProperties:!1},rm={type:"object",properties:{workspaces:{type:"array",items:Iu}},required:["workspaces"]},om={type:"object",properties:{name:{type:"string"},path:{type:"string"},color:{type:"string"},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]}},required:["path"],additionalProperties:!1},hu={type:"object",properties:{success:{type:"boolean"},workspace:Iu,error:{type:"string"}},required:["success"]},nm={type:"object",properties:{id:{type:"string"},name:{type:"string"},path:{type:"string"},color:{type:"string"},env:{type:["object","null"],additionalProperties:{type:"string"}},envFile:{type:["string","null"]}},required:["id"],additionalProperties:!1},am={type:"object",properties:{id:{type:"string"}},required:["id"]},lm={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success"]},sm={type:"object",properties:{eventName:{type:"string"},payload:{type:["object","null","string","number","boolean","array"]}},required:["eventName"]},dm={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},triggered:{type:"array",items:{type:"string"}}},required:["success","triggered"]},um={type:"object",properties:{name:{type:"string"},order:{type:"number"},trigger:{type:"string"},cwd:{type:"string"},command:{type:"string"},workspace:{type:["object","null"],properties:{name:{type:"string"},path:{type:"string"}},required:["name","path"]},preFlight:{type:["string","null"]},postFlight:{type:["string","null"]},qualityGate:{type:["string","null"]},roleScoped:{type:["object","null"],properties:{allowed:{type:"array",items:{type:"string"}},denied:{type:"array",items:{type:"string"}}}},estimatedDurationSec:{type:["number","null"]},estimatedCostUsd:{type:["number","null"]},estimatedTokens:{type:["number","null"]},matrixParent:{type:"string"}},required:["name","order","trigger","cwd","command"]},ju={type:"object",properties:{success:{type:"boolean"},taskName:{type:"string"},tasks:{type:"array",items:um},totals:{type:"object",properties:{estimatedDurationSec:{type:["number","null"]},estimatedCostUsd:{type:["number","null"]},estimatedTokens:{type:["number","null"]}},required:[]},warnings:{type:"array",items:{type:"string"}},error:{type:"string"}},required:["success","taskName","tasks","warnings"]},cm={type:"object",properties:{taskName:{type:"string"}},required:["taskName"],additionalProperties:!1},pm={type:"object",properties:{success:{type:"boolean"},reports:{type:"array",items:ju}},required:["success","reports"]},gm={type:"object",properties:{name:{type:"string"},workspaceId:{type:["string","null"]},workspaceName:{type:["string","null"]},status:{type:"string"},error:{type:["string","null"]},finishedAt:{type:["string","null"]}},required:["name","status"]},mm={type:"object",properties:{parentId:{type:"string"}},required:["parentId"],additionalProperties:!1},fm={type:"object",properties:{parentId:{type:"string"},totalCount:{type:"number"},successCount:{type:"number"},errorCount:{type:"number"},pendingCount:{type:"number"},status:{type:"string"},message:{type:"string"},clones:{type:"array",items:gm}},required:["parentId","totalCount","successCount","errorCount","status"]},ym={type:"object",properties:{success:{type:"boolean"},report:fm,error:{type:"string"}},required:["success"]},bm={type:"object",properties:{name:{type:"string"},workspaceIds:{type:"array",items:{type:"string"}},strategy:{type:"string"},failureMode:{type:"string"},aggregation:{type:"string"}},required:["workspaceIds"],additionalProperties:!1},hm={type:"object",properties:{success:{type:"boolean"},clones:{type:"array",items:{type:"object",properties:{name:{type:"string"},workspaceId:{type:"string"},workspaceName:{type:["string","null"]}},required:["name","workspaceId"]}},error:{type:"string"}},required:["success","clones"]},xm={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},cancelled:{type:"array",items:{type:"string"}}},required:["success","message","cancelled"]},vm={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},removed:{type:"array",items:{type:"string"}}},required:["success","message","removed"]},Nu={type:"object",properties:{name:{type:"string"},dir:{type:"string"},port:{type:["number","null"]},isDefault:{type:"boolean"},active:{type:"boolean"}},required:["name","dir","isDefault","active"]},wm={type:"object",properties:{},additionalProperties:!1},km={type:"object",properties:{current:{type:"string"},pinnedByEnv:{type:"boolean"},profiles:{type:"array",items:Nu}},required:["current","pinnedByEnv","profiles"]},Sm={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},$m={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},current:{type:"string"},restartRequired:{type:"boolean"}},required:["success","message","current","restartRequired"]},_m={type:"object",properties:{name:{type:"string"},port:{type:"number"}},required:["name"],additionalProperties:!1},Tm={type:"object",properties:{success:{type:"boolean"},message:{type:"string"},profile:Nu,error:{type:"string"}},required:["success"]},Cm={type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1},Am={type:"object",properties:{success:{type:"boolean"},message:{type:"string"}},required:["success","message"]},zm=Jp.Rpc.define({id:"opencode-windows-scheduler",methods:{get_tasks:{input:al,output:tg},create_task:{input:ig,output:rg},delete_task:{input:og,output:io},run_task:{input:ng,output:ag},pause_task:{input:bu,output:io},resume_task:{input:bu,output:io},update_task:{input:em,output:tm},get_task_logs:{input:lg,output:sg},get_history:{input:ug,output:cg},get_metrics:{input:gg,output:mg},get_dashboard_port:{input:fg,output:yg},get_platform:{input:bg,output:hg},dry_run:{input:cm,output:ju},dry_run_all:{input:al,output:pm},get_matrix_results:{input:mm,output:ym},cancel_matrix:{input:Ln,output:xm},cleanup_matrix_orphans:{input:al,output:vm},cleanup_history:{input:Cg,output:Ag},get_analytics:{input:zg,output:Eg},self_analysis:{input:Pg,output:Rg},expand_matrix_preview:{input:bm,output:hm},get_workspaces:{input:im,output:rm},add_workspace:{input:om,output:hu},update_workspace:{input:nm,output:hu},delete_workspace:{input:am,output:lm},get_profiles:{input:wm,output:km},set_profile:{input:Sm,output:$m},create_profile:{input:_m,output:Tm},delete_profile:{input:Cm,output:Am},export_tasks:{input:xg,output:vg},import_tasks:{input:wg,output:kg},get_settings:{input:Sg,output:$g},save_settings:{input:_g,output:Tg},get_templates:{input:Kg,output:Zg},save_template:{input:Qg,output:Yg},delete_template:{input:Jg,output:Xg},emit_event:{input:sm,output:dm},test_notification:{input:Lg,output:Mg},send_digest:{input:Dg,output:Fg},list_secrets:{input:Og,output:Ig},save_secret:{input:jg,output:Ng},delete_secret:{input:qg,output:Hg},get_audit:{input:Wg,output:Bg},compare_triage:{input:Gg,output:Vg}},events:{}}),Em=["ru","en","zh"],yi="ru",xu="auto";function Pm(){try{return Rn.dirname(Xp.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:nl&&nl.tagName.toUpperCase()==="SCRIPT"&&nl.src||new URL("gui-experimental.cjs",document.baseURI).href))}catch{return null}}function Rm(){const l=Pm();return l?[Rn.resolve(l,"../locales"),Rn.resolve(l,"locales")]:[]}const sl=new Map,vu=new Map;function Lm(){try{return typeof process<"u"&&process.env?process.env.OPENCODE_SCHEDULER_LOCALE:void 0}catch{return}}const Mm=Gi(Lm());let dl=Mm;function qu(l){return typeof l=="string"&&Em.includes(l)}function Dm(l,f=yi){if(typeof l!="string")return f;const S=l.trim().toLowerCase().split(/[-_]/)[0];return qu(S)?S:f}function Gi(l,f=yi){return Dm(l,f)}function En(l,f=yi){if(l===xu)return xu;if(typeof l=="string"){const S=l.trim().toLowerCase().split(/[-_]/)[0];if(qu(S))return S}return f}function Fm(l){return dl=Gi(l,yi),dl}function Om(l){for(const f of Rm()){const S=Rn.join(f,`${l}.json`);try{if(Du.statSync(S).isFile())return S}catch{}}return null}function wu(l){const f=sl.get(l);if(f)return f;const S=Om(l),G={};if(S)try{const D=JSON.parse(Du.readFileSync(S,"utf8"));if(D&&typeof D=="object"&&!Array.isArray(D))for(const[ne,Re]of Object.entries(D))typeof Re=="string"&&Re.length>0&&(G[ne]=Re)}catch(D){console.error(`[i18n] Не удалось прочитать ${S}: ${D instanceof Error?D.message:String(D)}`)}return sl.set(l,G),G}function fl(l,f){const S={};for(const[G,D]of Object.entries(f))typeof D=="string"&&D.length>0&&(S[G]=D);sl.set(l,S)}function Im(l,f){let S=vu.get(f);return S||(S=new Intl.PluralRules(f),vu.set(f,S)),S.select(l)}function jm(l,f){try{return new Intl.NumberFormat(f).format(l)}catch{return String(l)}}function Hu(l,f){let S=0;for(let G=f;G<l.length;G++){const D=l[G];if(D==="{")S++;else if(D==="}"&&(S--,S===0))return G}return-1}function Nm(l){let f=0;for(let S=0;S<l.length;S++){const G=l[S];if(G==="{")f++;else if(G==="}")f--;else if(G===","&&f===0)return S}return-1}function qm(l){const f={};let S=0;for(;S<l.length;){for(;S<l.length&&/[\s,]/.test(l[S]);)S++;const G=S;for(;S<l.length&&l[S]!=="{";)S++;if(S>=l.length)break;const D=l.slice(G,S).trim(),ne=Hu(l,S);if(ne===-1)break;D&&(f[D]=l.slice(S+1,ne)),S=ne+1}return f}function Uu(l,f,S,G){let D="",ne=0;for(;ne<l.length;){const Re=l[ne];if(Re==="#"&&G!==void 0){D+=jm(G,f),ne++;continue}if(Re!=="{"){D+=Re,ne++;continue}const At=Hu(l,ne);if(At===-1){D+=l.slice(ne);break}D+=Hm(l.slice(ne+1,At),f,S),ne=At+1}return D}function Hm(l,f,S){const G=Nm(l),D=(G===-1?l:l.slice(0,G)).trim(),ne=S[D];if(G===-1)return ne==null?`{${l}}`:String(ne);const Re=l.slice(G+1).trim(),At=/^([a-zA-Z]+)/.exec(Re),ut=At?At[1]:"";if(ut==="plural"){const Vi=Number(ne),ct=Number.isFinite(Vi)?Vi:0,Be=qm(Re.slice(ut.length)),pt=Im(ct,f),Qe=Be[pt]??Be.other??"";return Uu(Qe,f,S,ct)}return ne==null?`{${l}}`:String(ne)}function Um(l,f){const S=dl;let G=wu(S)[l],D=S;return G===void 0&&S!==yi&&(G=wu(yi)[l],D=yi),G===void 0?l:Uu(G,D,f??{})}const Wm={"app.dashboardTitle":"Веб-дашборд","common.runsCount":"запусков: {count, plural, one {# запуск} few {# запуска} many {# запусков} other {# запуска}}","dryRun.cron":"По расписанию «{schedule}».","dryRun.cronParseError":'Не удалось разобрать cron "{schedule}" для расчёта ближайших запусков.',"dryRun.cronTimezone":"По расписанию «{schedule}» ({timezone}).","dryRun.cwdImplicit":"Рабочая директория не задана явно — будет использована папка текущего проекта.","dryRun.cwdMissing":'Рабочая директория "{path}" не существует на диске.',"dryRun.cwdNotDir":'Путь "{path}" существует, но не является директорией.',"dryRun.cycle":'Обнаружена циклическая зависимость вокруг задачи "{task}" — конвейер разорван на этом узле.',"dryRun.danger.forcePush":"принудительный push в git (`git push --force`)","dryRun.danger.rmRoot":"возможна рекурсивная очистка корня файловой системы (`rm -rf /`)","dryRun.dangerPattern":"Опасный паттерн: {message}.","dryRun.dependencyMissing":'Зависимость "{task}" не найдена среди задач — узел пропущен.',"dryRun.file.any":"Файловый триггер: любое изменение подходит.","dryRun.file.globs":"маски: {count}","dryRun.file.ignore":"исключения: {count}","dryRun.file.trigger":"Файловый триггер: {parts}.","dryRun.git.branchMismatch":"Ветка не подходит под фильтр «{branch}».","dryRun.git.checkError":"Git-триггер: ошибка проверки — {error}.","dryRun.git.notRepo":"Задача с git-триггером, но рабочая директория не является git-репозиторием.","dryRun.manual":"Запуск вручную (в составе конвейера).","dryRun.matrix.expandError":"Матрица не может быть развёрнута: {error}","dryRun.matrix.parent":"[{name}] Родитель матрицы не выполняется сам — показаны {count} клон(а/ов) по workspace.","dryRun.mcp.event":"MCP-событие {server}:{event}{filter}.","dryRun.mcp.filter":" (фильтр «{filter}»)","dryRun.mcp.missing":"MCP-событие (параметры не заданы).","dryRun.noHistory":"Нет успешных запусков в истории — оценка длительности/токенов/стоимости недоступна.","dryRun.once":"Однократный запуск.","dryRun.once.at":"Однократно в {runAt}.","dryRun.taskNotFound":'Задача "{task}" не найдена.',"dryRun.window.noOpening":"Сейчас {reason}: открытие окна не найдено, запуск пропущен.","dryRun.window.outside":"вне окна","dryRun.window.postpone":"Сейчас {reason}: запуск будет перенесён на {nextOpenAt}.","dryRun.window.run":"Сейчас {reason}: политика run — задача выполнится всё равно.","dryRun.window.skip":"Сейчас {reason}: при политике skip запуск будет пропущен.","gitTrigger.baseline":"Запомнен текущий коммит {commit} — задача запустится на следующем изменении.","gitTrigger.branchMismatch":"Ветка {branch} не подходит под фильтр «{pattern}».","gitTrigger.changed":"Новый коммит {commit}: изменено файлов {count} ({files}).","gitTrigger.ignored":"Изменено файлов: {count}, но ни один не подходит под фильтры.","gitTrigger.noChanges":"Новых коммитов нет.","gitTrigger.noRepo":"«{cwd}» не git-репозиторий — git-триггер не сработает.","gitTrigger.diffFailed":"Не удалось получить изменения git: {error}. Состояние не продвинуто — повтор при следующем опросе.","gui.add":"+ Добавить","gui.addWorkspaceFirst":"Сначала добавьте хотя бы один workspace.","gui.aggregation":"Агрегация","gui.allowedToolsLabel":"Белый список (allowedTools)","gui.app.title":"Планировщик задач","gui.auditAction":"Действие","gui.auditActionPlaceholder":"например task.create","gui.auditActor":"Автор","gui.auditDeletedFrom":"Удалён с","gui.auditEmpty":"Записей аудита нет.","gui.auditEnable":"Включить аудит","gui.auditHeading":"📜 Журнал аудита","gui.auditHint":"Записываются мутации задач, настроек, шаблонов, профилей, рабочих зон, секретов, импорта и очистки истории. Детали маскируются (секреты заменены на {redacted}).","gui.auditSource":"Источник","gui.auditStorageHeading":"Журнал аудита — хранение","gui.auditTarget":"Цель","gui.auditTargetPlaceholder":"имя задачи/секрета","gui.auditTime":"Время","gui.botTokenEnvHint":"Токен можно не хранить в settings.json: задайте OPENCODE_SCHEDULER_TELEGRAM_BOT_TOKEN и OPENCODE_SCHEDULER_TELEGRAM_CHAT_ID.","gui.botTokenPlaceholder":"Токен бота из @BotFather","gui.cancel":"Отмена","gui.chatIdPlaceholder":"chat_id (например, 123456789 или -100...)","gui.cleaningUp":"Очистка...","gui.cleanupNow":"🧹 Очистить сейчас","gui.collapseFormTitle":"Свернуть форму","gui.common.projectDir":"(папка проекта)","gui.common.unknownError":"Неизвестная ошибка","gui.concurrencySequentialPlaceholder":"1 (sequential)","gui.concurrencyUnlimitedPlaceholder":"без лимита","gui.createProfile":"+ Создать","gui.createTask":"➕ Создать задачу","gui.createTaskSubmit":"Создать задачу","gui.creating":"Создание...","gui.cron.custom":"Свое расписание…","gui.cron.dailyAt9":"Каждый день в 09:00","gui.cron.everyHour":"Каждый час","gui.cron.everyMinute":"Каждую минуту","gui.cron.mondayAt10":"Каждый понедельник в 10:00","gui.cronExprLabel":"Cron-выражение","gui.customTemplate":"Кастомный шаблон:","gui.dashboardLink":"ссылка на дашборд","gui.defaultSuffix":"(по умолчанию)","gui.delete":"Удалить","gui.deleteTemplateTitle":"Удалить шаблон","gui.deniedToolsLabel":"Чёрный список (deniedTools)","gui.dependsOnHint":"Задача запустится автоматически, когда все отмеченные задачи завершатся успешно.","gui.dependsOnLabel":"Зависит от задач (успешное завершение)","gui.digestChannels":"Каналы: webhook, Telegram, нативные уведомления ОС.","gui.digestDaily":"ежедневно","gui.digestEnable":"Отправлять дайджест","gui.digestHeading":"Дайджест","gui.digestHint":"Запуски, success rate, стоимость и топ ошибок за сутки/неделю.","gui.digestLastSent":"последняя отправка: {when}","gui.digestNeverSent":"ещё не отправлялся","gui.digestWeekly":"еженедельно (Пн)","gui.days":"Дней","gui.dryRunButton":"🧪 Превью","gui.dryRunLocalTitle":"🧪 Превью (локальное, по полям формы)","gui.dryRunMatrixPreview":"Matrix: будет создано {count, plural, one {# клон} few {# клона} many {# клонов} other {# клонов}} по workspace; родитель сам не выполняется.","gui.dryRunNoNameWarning":"Не указано имя — превью локальное (форма не сохранена).","gui.dryRunPreviewTitle":"Локальное превью команды по текущим полям формы (без RPC и без запуска)","gui.editingTask":"Редактирование задачи","gui.emptyNormal":"Нет активных задач. Создайте первую и доверьте рутину ИИ!","gui.emptyWinter":"Задач пока нет. Самое время украсить ёлку!","gui.errorBoundaryDetail":"Произошла ошибка отображения. Попробуйте перезагрузить панель.","gui.expandFormTitle":"Развернуть форму создания задачи","gui.export":"Экспорт","gui.exportBusy":"Экспорт...","gui.filterExcludePlaceholder":"Исключить задачи (через запятую, * — маска)","gui.filterHint":"Пустой список «только» = все задачи. Исключения важнее включений.","gui.filterIncludePlaceholder":"Только эти задачи (через запятую, * — маска)","gui.filterSummary":"Фильтр: {scope} · показано {visible} из {total}","gui.gitBranchesLabel":"Ветки (glob, через запятую; пусто — любая)","gui.gitIgnoreLabel":"Игнорируемые пути (glob, по одной в строке)","gui.gitPathsLabel":"Пути изменений (glob, по одной в строке; пусто — любой файл)","gui.gitPollHint":"Первый опрос запоминает текущий HEAD без запуска задачи — дальше задача стартует на новом коммите, затронувшем подходящие файлы.","gui.gitPollLabel":"Период опроса, секунды (минимум 5, по умолчанию 60)","gui.hideForm":"Скрыть форму ▴","gui.history.durationMs":"{ms} мс","gui.history.error":"❌ Ошибка","gui.history.modelTitle":"Модель: {model}","gui.history.nextTaskTitle":"Запущена следующая задача в цепочке","gui.history.success":"✅ Успех","gui.historyCleanupHint":"Удаляются только завершённые записи; незавершённые запуски не трогаются.","gui.historyDeleteOlderLabel":"Удалять записи старше, дней","gui.historyHeading":"🧹 История и ретеншн","gui.historyKeepMaxLabel":"Хранить не более записей","gui.historyNoExpiry":"без срока","gui.historyNoLimit":"без лимита","gui.historyOlderThan":"старше {days} дн.","gui.historyUpToRecords":"до {count} записей","gui.import":"Импорт","gui.importBusy":"Импорт...","gui.job.activeDaysTitle":"Запуск только в дни: {days}","gui.job.cancelMatrixTitle":'Отменить выполняющиеся клоны матрицы "{name}"',"gui.job.deleteMatrixTitle":'Удалить матрицу "{name}" вместе с клонами',"gui.job.deleteTitle":'Удалить "{name}"',"gui.job.dependsOn":"🔗 Зависит от: {list}","gui.job.dryRunTitle":'Dry-Run симуляция "{name}"',"gui.job.durationEst":"⏱ ~{seconds} с","gui.job.editTitle":'Редактировать "{name}"',"gui.job.fanoutConcurrency":", одновременно: {concurrency}","gui.job.fanoutOverrides":", переопределено workspace: {overrides}","gui.job.fanoutTitle":"Matrix fan-out: {count} клонов, стратегия: {strategy}, при ошибке: {failureMode}{concurrency}{overrides}","gui.job.gitTriggerBranch":" в ветке {branch}","gui.job.gitTriggerPaths":", пути: {paths}","gui.job.gitTriggerTitle":"Git-триггер: новый коммит{branch}{paths}. Опрос каждые {seconds} с.","gui.job.historyEmpty":"Запусков пока нет.","gui.job.historyPanelTitle":"📜 История последних запусков","gui.job.historyTitle":'История "{name}"',"gui.job.logonModeUnknown":"неизвестен","gui.job.logsTitle":'Логи "{name}"',"gui.job.matrixClone":"Клон матрицы. Родитель: {parent}","gui.job.matrixDone":"📦 Matrix: {success}/{total} успешных","gui.job.mcpEventFilterSuffix":" (фильтр: {filter})","gui.job.mcpEventTitle":"MCP-событие: {event}{filterSuffix}","gui.job.modelTitle":"Модель LLM: {model}","gui.job.pauseTitle":'Поставить на паузу "{name}"',"gui.job.pauseUnavailable":'Задача "{name}" отсутствует в планировщике ОС — пауза недоступна',"gui.job.pausedUntilShort":"⏸ до {date}","gui.job.pausedUntilTitle":"Пауза до {date} — задача включится автоматически.","gui.job.priorityTitle":"Приоритет: {label} ({priority})","gui.job.resumeTitle":'Возобновить "{name}"',"gui.job.runTitle":'Запустить "{name}"',"gui.job.runWhenLoggedOffShort":"без входа","gui.job.runWhenLoggedOffTitle":"Задача запускается без входа пользователя. Режим в планировщике: {mode}","gui.job.runsLine":"📊 Всего: {total} | ✅ {success} | 🟠 {partial} | ❌ {error}","gui.job.runsTitle":"Запуски именно этой задачи: успешные / частичные / ошибки и таймауты","gui.job.sessionContinueShort":"↪ продолжение","gui.job.sessionContinueTitle":"Продолжение последней сессии OpenCode (--continue)","gui.job.sessionReuseShort":"⟳ сессия","gui.job.sessionReuseTitle":"Переиспользуемая сессия OpenCode","gui.job.sessionReuseTitleId":"Переиспользуемая сессия OpenCode: {id}","gui.job.simulating":"Симуляция…","gui.job.simulationFailed":"Симуляция не удалась","gui.job.timezoneTitle":"Часовой пояс задачи: {tz}","gui.job.tokensEst":"· ~{tokens} ток.","gui.job.toolLimitsTitle":"Ограничения инструментов: {limits}","gui.job.totalsLine":"Σ {duration} с · {tokens} токенов{cost}","gui.job.watchFile":"Отслеживание файла: {path}","gui.job.watchGlobsCount":"✳ {count, plural, one {# маска} few {# маски} many {# масок} other {# масок}}","gui.job.watchGlobsTitle":"Glob-маски файлового триггера: {globs}","gui.job.windowTitle":"Окно запуска: {from}–{to}. Вне окна запуск переносится на его открытие.","gui.jobStatus.error":"🔴 Ошибка","gui.jobStatus.never":"⚪ Не запускалась","gui.jobStatus.orphan":"🧟 Нет в планировщике","gui.jobStatus.partial":"🟠 Частично","gui.jobStatus.paused":"⏸ Пауза","gui.jobStatus.running":"🟡 Выполняется: {seconds} сек","gui.jobStatus.success":"🟢 Готова","gui.jobStatus.unknown":"⚪ Неизвестно","gui.jobsTitle":"Планировщик","gui.languageAuto":"Авто (как в OpenCode)","gui.languageEn":"English","gui.languageRu":"Русский","gui.languageTitle":"Язык интерфейса: «Авто» следует за языком OpenCode","gui.languageZh":"中文","gui.lastCleanupDone":"{when} · удалено {deleted}","gui.lastCleanupLabel":"Последняя очистка:","gui.lastCleanupNever":"ещё не выполнялась","gui.loading":"Загрузка...","gui.logs.empty":"(пусто)","gui.logs.loadFailed":"Не удалось загрузить логи","gui.logs.loading":"Загрузка логов…","gui.logs.readError":"Ошибка чтения логов:","gui.logsHeading":"Логи","gui.matrix.cancelClonesConfirm":'Отменить выполняющиеся клоны матрицы "{name}"?',"gui.matrix.deleteConfirm":'Удалить матрицу "{name}" вместе со всеми клонами и агрегатором?',"gui.matrixAggregator":"Создать aggregator-задачу matrix-complete (запустится после всех клонов)","gui.matrixAllFailed":"все упали","gui.matrixConcurrency":"Одновременно клонов (concurrency)","gui.matrixContinue":"continue — продолжать","gui.matrixHint":"Задача-шаблон раскладывается на клоны по workspace. Родитель сам не выполняется — он запускает клоны и агрегирует результат.","gui.matrixModelPlaceholder":"Модель (override)","gui.matrixNotifyEnable":"Уведомлять о завершении матриц","gui.matrixNotifyHeading":"Матрицы","gui.matrixOverridesTitle":"⚙ Настройки по workspace — переопределено {count}","gui.matrixParallel":"parallel — все сразу","gui.matrixPerTask":"per-task — по задачам","gui.matrixPromptPlaceholder":"Промпт (по умолчанию — общий промпт формы)","gui.matrixSelectHint":"Выберите хотя бы один workspace — превью клонов появится здесь.","gui.matrixSequential":"sequential — по одному","gui.matrixStop":"stop — остановить","gui.matrixStuckHint":"Клон, выполняющийся дольше указанного времени, уведомляется один раз. 0 — выключить.","gui.matrixStuckMinutes":"зависший клон, мин:","gui.matrixSummary":"summary — сводка","gui.matrixWillCreate":"Будет создано {count, plural, one {# клон} few {# клона} many {# клонов} other {# клонов}}:","gui.matrixWorkspacesSelected":"Workspaces (для матрицы) — выбрано","gui.maxConcurrentLabel":"Макс. одновременных задач:","gui.maxRetriesLabel":"Кол-во повторов при ошибке","gui.mcpEventLabel":"Имя события","gui.mcpEventPlaceholder":"например, github.pr.opened","gui.mcpFilterHint":"key=value сравнивается с полем payload, иначе фильтр считается regex/подстрокой. События приходят через RPC emit_event.","gui.mcpFilterLabel":"Фильтр (опционально)","gui.mcpFilterPlaceholder":'например, repo="my-project" или regex',"gui.mcpSourceLabel":"MCP-сервер / источник","gui.mcpSourcePlaceholder":"например, github","gui.metricsTotalsLine":"📊 Всего по всем задачам: {total} · ✅ {success} · ❌ {error}","gui.metricsTotalsTitle":"Суммарные метрики по всем задачам (включая архивные записи метрик)","gui.modalShortcutHint":"Ctrl+Enter — сохранить, Escape — отмена","gui.modelHint":"Пусто — модель OpenCode по умолчанию. Иначе будет передан флаг --model.","gui.modelLabel":"Модель LLM","gui.modelPlaceholder":"по умолчанию (как в OpenCode)","gui.nativeHint":"Windows Toast, macOS Notification Center, Linux notify-send. Без внешних зависимостей.","gui.nativeNotifications":"Нативные уведомления ОС","gui.newTask":"Новая задача","gui.noNameFallback":"(без имени)","gui.noOtherTasks":"Других задач пока нет","gui.noWorkspaceOption":"Без workspace — рабочая директория","gui.notifications":"🔔 Уведомления","gui.notifyAllRuns":"все запуски","gui.notifyDisabled":"выключены","gui.notifyEnable":"Включить уведомления","gui.notifyOnlyErrors":"только ошибки","gui.notifyOnlyOnError":"Только при ошибке","gui.ok":"ОК","gui.onFailure":"При ошибке","gui.oneShotDelayHint":"Или задержка в секундах от нажатия кнопки «Создать задачу»:","gui.oneShotDelayPlaceholder":"например, 3600","gui.oneShotHint":"Приоритет у runAt: если задано время, delaySeconds игнорируется. После запуска задача больше не повторится.","gui.oneShotTimeLabel":"Время однократного запуска","gui.oneShotTimePlaceholder":"2026-11-14T10:00:00.000Z или локальная дата","gui.openDashboard":"🌐 Открыть дашборд","gui.openDashboardTitle":"Открыть локальный веб-дашборд (фактический порт сервера)","gui.otherPriorityOption":"Другой ({priority})","gui.outsideWindowLabel":"Вне окна или в неразрешённый день","gui.parseModeLabel":"разметка:","gui.postflightHint":"Например: git push или npm run build. Выполняется в рабочей директории задачи даже при ошибке основной задачи.","gui.postflightLabel":"Команда после запуска (Post-flight)","gui.postflightPlaceholder":"например: git push","gui.preflightHint":"Например: git pull или npm install. Выполняется в рабочей директории задачи. Ненулевой код отменяет запуск (Pre-flight script failed).","gui.preflightLabel":"Команда перед запуском (Pre-flight)","gui.preflightPlaceholder":"например: git pull","gui.priority.critical":"Критический","gui.priority.high":"Высокий","gui.priority.low":"Низкий","gui.priority.normal":"Обычный","gui.priorityHint":"Если готовы несколько задач сразу, первой запускается задача с более высоким приоритетом.","gui.priorityLabel":"Приоритет","gui.profile.deleteConfirm":'Удалить профиль "{name}" вместе с его БД, настройками и логами?',"gui.profile.namePrompt":"Имя нового профиля (латиница, цифры, - и _)","gui.profileActive":"активен","gui.profileDelete":"Удалить","gui.profileEnvLocked":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE. Переключение в GUI недоступно.","gui.profileEnvLockedTitle":"Профиль задан переменной окружения OPENCODE_SCHEDULER_PROFILE — переключение в GUI недоступно","gui.profilePort":"порт {port}","gui.profilePortDefault":"порт по умолчанию","gui.profileSwitch":"Переключить","gui.profilesHeading":"👤 Профили","gui.profilesHint":"У каждого профиля своя БД, настройки, логи и порт дашборда. После переключения перезапустите OpenCode.","gui.profilesTitle":"Профили: отдельные БД, настройки и порт дашборда","gui.projectFolderFallback":"(папка проекта)","gui.promptLabel":"Промпт","gui.promptPlaceholder":"Напиши краткий отчет о состоянии рынка","gui.promptTemplateLabel":"Шаблон промпта","gui.promptTemplates.codeHygiene":"Гигиена кода","gui.promptTemplates.codeHygienePrompt":"Проведи аудит гигиены кода: найди неиспользуемые импорты, неиспользуемые переменные, лишние зависимости и предложи правки.","gui.promptTemplates.custom":"Свой промпт","gui.promptTemplates.morningDigest":"Утренний дайджест","gui.promptTemplates.morningDigestPrompt":"Собери утренний дайджест: какие изменения были за ночь, есть ли проваленные сборки, что требует внимания сегодня.","gui.promptTemplates.nightWatch":"Ночной сторож (тесты)","gui.promptTemplates.nightWatchPrompt":"Запусти ночные проверки: прогнали тесты, зафиксируй ошибки и составь краткий отчёт о состоянии репозитория.","gui.qualityGateHint":"Выполняется после успешного ответа ИИ. Ненулевой код = ошибка задачи.","gui.qualityGateLabel":"Проверочная команда (Quality Gate)","gui.qualityGatePlaceholder":"например: npm run test","gui.quietFrom":"с","gui.quietHours":"Тихие часы","gui.quietHoursHint":"В тихие часы success и partial подавляются, ошибки и таймауты отправляются.","gui.quietTo":"до","gui.refresh":"Обновить","gui.remoteNotSet":"remote не задан","gui.retryCount":"повторов:","gui.retryDelayLabel":"Задержка перед повтором (сек)","gui.retryDelayMs":"пауза, мс:","gui.retryHint":"Повтор при сетевой ошибке, таймауте, 5xx и 429 (экспоненциальная пауза).","gui.runWhenLoggedOffHint":"Windows: задача будет запускаться и тогда, когда никто не вошёл в систему (/ru SYSTEM). Она работает в session 0 — без вашего профиля, сетевых дисков и сохранённых паролей, поэтому задачи, которым нужны ваши файлы или сеть, могут не сработать. Обычно требуется запуск OpenCode от имени администратора.","gui.runWhenLoggedOffLabel":"Запускать без входа пользователя","gui.save":"💾 Сохранить","gui.saveAsTemplate":"💾 Сохранить как шаблон","gui.saveAsTemplateTitle":"Сохранить текущие настройки формы как шаблон","gui.saving":"Сохранение...","gui.scheduleLabel":"Расписание","gui.secretNamePlaceholder":"Имя секрета (A-Za-z0-9_.-)","gui.secretValuePlaceholder":"Значение (не возвращается при чтении)","gui.secrets":"🔐 Секреты","gui.secretsEmpty":"Секретов нет. Значения хранятся зашифрованно в secrets.json.","gui.secretsUsage":"В задачах используйте ссылку {secretRef} — значение подставляется из хранилища при запуске и маскируется в логах.","gui.sendDigestNow":"📊 Отправить дайджест сейчас","gui.sendTestNotification":"🧪 Тестовое уведомление","gui.sending":"Отправка...","gui.sessionContinue":"Последняя (--continue)","gui.sessionLabel":"Сессия OpenCode","gui.sessionMaxRunsHint":"sessionId генерируется плагином автоматически. При достижении лимита сессия удаляется, следующий запуск начинает чистую сессию.","gui.sessionMaxRunsLabel":"Сколько запусков переживает сессия (sessionMaxRuns, необязательно)","gui.sessionNew":"Новая","gui.sessionReuse":"Переиспользовать","gui.silent":"без звука","gui.strategy":"Стратегия","gui.task.deleteConfirm":'Удалить задачу "{name}"?',"gui.taskFiltersHeading":"Фильтры по задачам","gui.taskNameLabel":"Имя задачи","gui.taskNamePlaceholder":"например, Gui-Test","gui.tasksHeading":"Задачи","gui.templateErrorPlaceholder":'❌ Задача "{task}" упала ({duration}){error}',"gui.templateHint":"Плейсхолдеры: {task} {status} {duration} {error} {emoji} {cost} {tokens}. Пусто = шаблон по умолчанию.","gui.templateSuccessPlaceholder":'✅ Задача "{task}" выполнена ({duration})',"gui.templates.deleteConfirm":'Удалить шаблон "{name}"?',"gui.templates.namePrompt":"Название шаблона","gui.templatesHeading":"Шаблоны сообщений","gui.timeoutMs":"Таймаут, мс:","gui.timezoneHint":"Другая зона — задача будится каждую минуту, cron проверяется с учётом пояса.","gui.timezoneLabel":"Часовой пояс (IANA)","gui.timezonePlaceholder":"Пусто — системный пояс","gui.toast.chooseFile":"Выберите файл","gui.toast.deleteFailed":"Ошибка удаления","gui.toast.digestFailed":"Дайджест не отправлен","gui.toast.digestSent":"Дайджест отправлен","gui.toast.envInvalid":"Неверный формат env","gui.toast.envSaveError":"Ошибка сохранения env","gui.toast.envSaveFailed":"Не удалось сохранить env","gui.toast.envSaved":"Env-переменные сохранены","gui.toast.exportFailed":"Ошибка экспорта","gui.toast.exported":"Экспортировано задач: {count}","gui.toast.historyCleanupDone":"Очистка истории завершена","gui.toast.historyCleanupFailed":"Очистка не удалась","gui.toast.historyLoadFailed":"Ошибка загрузки истории","gui.toast.importFailed":"Ошибка импорта","gui.toast.imported":"Импортировано задач: {count}","gui.toast.jobsLoadFailed":"Ошибка загрузки задач","gui.toast.logsReadFailed":"Ошибка чтения логов","gui.toast.matrixCancelError":"Ошибка отмены матрицы","gui.toast.matrixCancelFailed":"Не удалось отменить матрицу","gui.toast.noFileForImport":"Не выбран файл для импорта.","gui.toast.nothingToSave":"Нечего сохранять","gui.toast.pauseError":"Ошибка паузы","gui.toast.pauseFailed":'Не удалось поставить на паузу "{name}"',"gui.toast.paused":'Задача "{name}" поставлена на паузу',"gui.toast.profileCreateError":"Ошибка создания профиля","gui.toast.profileCreateFailed":"Не удалось создать профиль","gui.toast.profileCreated":"Профиль создан","gui.toast.profileDeleteError":"Ошибка удаления профиля","gui.toast.profileDeleteFailed":"Не удалось удалить профиль","gui.toast.profileDeleted":"Профиль удалён","gui.toast.profileSwitchError":"Ошибка переключения профиля","gui.toast.profileSwitchFailed":"Не удалось переключить профиль","gui.toast.profileSwitched":"Профиль переключён","gui.toast.promptRequired":"Сначала заполните промпт — он обязателен для шаблона.","gui.toast.resumeError":"Ошибка возобновления","gui.toast.resumeFailed":'Не удалось возобновить "{name}"',"gui.toast.resumed":'Задача "{name}" возобновлена',"gui.toast.runFailed":"Ошибка запуска","gui.toast.secretDeleted":"Секрет удалён","gui.toast.secretNotDeleted":"Секрет не удалён","gui.toast.secretNotSaved":"Секрет не сохранён","gui.toast.secretSaved":"Секрет сохранён","gui.toast.settingsSaveFailed":"Не удалось сохранить настройки","gui.toast.taskCrashed":'Задача "{name}" упала',"gui.toast.taskCreateFailed":"Ошибка создания задачи","gui.toast.taskCreated":"Задача создана","gui.toast.taskDeleted":'Задача "{name}" удалена',"gui.toast.taskDone":'Задача "{name}" выполнена',"gui.toast.taskStartFailed":'Не удалось запустить "{name}"',"gui.toast.taskStarted":'Задача "{name}" запущена',"gui.toast.taskUpdateFailed":"Ошибка обновления задачи","gui.toast.taskUpdated":"Задача обновлена","gui.toast.templateDeleteError":"Ошибка удаления шаблона","gui.toast.templateDeleteFailed":"Не удалось удалить шаблон","gui.toast.templateDeleted":'Шаблон "{name}" удалён',"gui.toast.templateSaveError":"Ошибка сохранения шаблона","gui.toast.templateSaveFailed":"Не удалось сохранить шаблон","gui.toast.templateSaved":'Шаблон "{name}" сохранён',"gui.toast.testFailed":"Тест не удался","gui.toast.testSent":"Тестовое уведомление отправлено","gui.toast.workspaceAddFailed":"Ошибка добавления workspace","gui.toast.workspaceAdded":"Workspace добавлен","gui.toast.workspaceDeleteFailed":"Ошибка удаления workspace","gui.toast.workspaceDeleted":"Workspace удалён","gui.toast.workspaceUpdateFailed":"Ошибка обновления workspace","gui.toast.workspaceUpdated":"Workspace обновлён","gui.toolLimitsDenied":"При конфликте приоритет у denied. Пустой allowedTools запрещён.","gui.toolLimitsHeading":"🔒 Ограничения инструментов","gui.toolLimitsNote":"⚠ Metadata-only: opencode 2.2.3 не поддерживает allow/deny флаги — ограничения фиксируются в логе и истории.","gui.toolPlaceholder":"свой инструмент, например websearch","gui.triggerCron":"По расписанию (Cron)","gui.triggerFile":"При изменении файла","gui.triggerGit":"Новый коммит (Git)","gui.triggerOnce":"Разово","gui.triggerTypeLabel":"Тип триггера","gui.uiError":"Ошибка UI: {message}","gui.unboundedPlaceholder":"без ограничения","gui.validation.cronRequired":"Укажите cron-расписание.","gui.validation.dependsOnSelf":"Задача не может зависеть от самой себя.","gui.validation.gitPollInvalid":"Период опроса git — целое число секунд не меньше 5.","gui.validation.gitWorkspaceRequired":"Для git-триггера выберите workspace или укажите рабочую директорию.","gui.validation.matrixConcurrencyInvalid":"Concurrency матрицы — целое положительное число.","gui.validation.matrixWorkspacesRequired":"Выберите хотя бы один workspace для матрицы.","gui.validation.priorityInvalid":"Приоритет — целое число от 0 до 10.","gui.validation.promptRequired":"Укажите промпт.","gui.validation.retryCountInvalid":"Количество повторов — целое число ≥ 0.","gui.validation.retryDelayInvalid":"Задержка повтора — целое число секунд ≥ 0.","gui.validation.runAtRequired":"Укажите время запуска или задержку.","gui.validation.sessionMaxRunsInvalid":"Лимит запусков сессии — целое положительное число.","gui.validation.taskNameRequired":"Укажите имя задачи.","gui.validation.timezoneInvalid":"Неизвестная таймзона. Укажите IANA-пояс, например Europe/Moscow.","gui.validation.windowPairRequired":"Окно запуска задаётся только парой «с/по».","gui.watchFileLabel":"Путь к файлу для отслеживания","gui.watchFilePlaceholder":"например, C:\\project\\src\\main.ts","gui.watchGlobsHint":"Маски считаются от пути watchPath. Поддерживаются *, **, ? и классы [abc]; маска каталога с /** рекурсивна.","gui.watchGlobsLabel":"Glob-маски (по одной в строке, пусто — любое изменение)","gui.watchIgnoreLabel":"Исключения (glob, по одной в строке)","gui.webhookLabel":"Webhook (Discord / Slack / generic)","gui.webhookPostHint":"POST с JSON {payload} — совместимо с Discord и Slack.","gui.weekday.0":"Вс","gui.weekday.1":"Пн","gui.weekday.2":"Вт","gui.weekday.3":"Ср","gui.weekday.4":"Чт","gui.weekday.5":"Пт","gui.weekday.6":"Сб","gui.weekdaysLabel":"Дни недели (пусто — все дни)","gui.windowEndTitle":"Конец окна (может быть меньше начала)","gui.windowHint":"Вне окна запуск переносится на его открытие, а не пропускается. Например 22:00 — 06:00.","gui.windowLabel":"Окно запуска (необязательно)","gui.windowPolicyHint":"Для cron политика применяется в обёртке, для файловых и git-триггеров — при обработке события. Перенос ждёт не дольше 12 часов.","gui.windowPostpone":"Перенести на открытие окна (по умолчанию)","gui.windowRun":"Выполнить всё равно","gui.windowSkip":"Пропустить запуск","gui.windowStartTitle":"Начало окна","gui.winterMode":"❄️ Зимний режим","gui.winterModeTitle":"Переключить зимнюю тему","gui.withSound":"со звуком","gui.workingDirectoryHint":"В этой папке задача запустит opencode run — здесь подхватятся MCP-серверы из opencode.json.","gui.workingDirectoryLabel":"Рабочая директория","gui.workingDirectoryPlaceholder":"по умолчанию — папка проекта","gui.workspace.deleteConfirm":'Удалить workspace "{name}"? Задачи сохранены, привязка будет очищена.',"gui.workspace.envFilePrompt":"Путь к .env-файлу workspace (необязательно, пусто — без файла)","gui.workspace.envInvalidHelp":"Нужны строки KEY=VALUE, имя — латиница/цифры/_","gui.workspace.envPrompt":"Env-переменные workspace, по одной в строке KEY=VALUE\\n(пустое поле — очистить)","gui.workspace.envSecretsMasked":"Секреты маскируются в логах","gui.workspace.namePrompt":"Название workspace (необязательно)","gui.workspace.namePromptShort":"Название workspace","gui.workspace.pathPrompt":"Путь к git-репозиторию (workspace)","gui.workspace.pathPromptShort":"Путь к git-репозиторию","gui.workspaceAddTitle":"Добавить workspace (git-репозиторий)","gui.workspaceAll":"Все workspace","gui.workspaceDeleteTitle":"Удалить workspace (задачи сохраняются)","gui.workspaceEditTitle":"Редактировать workspace","gui.workspaceEmpty":"Workspace не добавлен. Задача без workspace использует рабочую директорию проекта.","gui.workspaceEnvFile":" · .env-файл","gui.workspaceEnvLine":"{count} перем.","gui.workspaceEnvTitle":"Env-переменные workspace (секреты маскируются в логах)","gui.workspaceFilterTitle":"Фильтр задач по workspace","gui.workspaceGitInfo":"git: {branch} · {remote}","gui.workspaceMultiRepo":"Workspace (multi-repo)","gui.workspaceNone":"Без workspace","gui.zeroKeepByAge":"0 = не удалять по возрасту","gui.zeroNoLimit":"0 = без ограничения","gui.zeroUnlimited":"(0 = без ограничений)","localAi.asyncHint":"Триаж в режимах llm/auto выполняется асинхронно: уведомление уходит сразу, вердикт пишется в аудит. Если правила должны подавлять уведомления, используйте режим rules.","localAi.rulesHint":'Встроенные правила покрывают ошибки, статус, стоимость и имя задачи. Свои правила: notifications.triage.rules, например {"field":"cost","operator":"gte","value":1}.',"localAi.baseUrl":"Адрес API (Ollama или OpenAI-совместимый)","localAi.fallback":"Если модель не ответила","localAi.fallback.rules":"Правила (fail-open)","localAi.fallback.notify":"Без правил, уведомлять","localAi.hint":"Пустое имя модели или недоступная Ollama не блокируют уведомления: работает fallback. Адрес с /v1 переключает на протокол OpenAI.","localAi.mode":"Режим триажа","localAi.mode.auto":"Модель, затем правила","localAi.mode.llm":"Только модель","localAi.mode.off":"Выключен","localAi.mode.rules":"Только правила","localAi.model":"Модель","localAi.modelPlaceholder":"например qwen3:4b","localAi.status.checking":"Проверяю связь...","localAi.status.error":"Нет связи","localAi.status.idle":"Связь не проверена","localAi.status.ok":"Связь есть","localAi.test":"Проверить связь","localAi.testFailed":"Нет связи: {reason}","localAi.testOk":"Связь есть: {model}, {latency} мс","localAi.testing":"Проверяю...","localAi.threshold":"Порог уверенности","localAi.timeout":"Таймаут, мс","localAi.title":"Локальный ассистент (триаж)","localAi.wizard":"Мастер настройки триажа","localAi.wizard.start":"Начать настройку","localAi.wizard.screen1.title":"Шаг 1 из 3 — Выберите модель","localAi.wizard.screen1.desc":"Локальная модель читает уведомления о завершении задач и помогает решить, стоит ли их отправлять. Выберите поставщика и модель.","localAi.wizard.screen1.provider":"Поставщик","localAi.wizard.screen1.provider.ollama":"Ollama (локально)","localAi.wizard.screen1.provider.openai":"OpenAI-совместимый API","localAi.wizard.screen1.model":"Модель","localAi.wizard.screen1.modelDesc":"Например qwen3:4b, llama3.1:8b или gpt-4o-mini.","localAi.wizard.screen1.consequence":"Если модель не ответит: уведомления всё равно доставятся (резервный режим), а в llm/auto триаж станет рекомендательным.","localAi.wizard.screen2.title":"Шаг 2 из 3 — Предустановка","localAi.wizard.screen2.desc":"Выберите готовый набор настроек под вашу ситуацию.","localAi.wizard.screen2.preset.minimal":"Минимальный","localAi.wizard.screen2.preset.minimal.desc":"Только правила: быстрый и надёжный, без модели. Уведомления не подавляются, если не совпало ни одного правила.","localAi.wizard.screen2.preset.recommended":"Рекомендуемый","localAi.wizard.screen2.preset.recommended.desc":"Правила плюс локальная модель. Если модель не ответит — сработают правила. Лучший баланс скорости и точности.","localAi.wizard.screen3.title":"Шаг 3 из 3 — Порядок правил","localAi.wizard.screen3.desc":"Посмотрите, в каком порядке будут срабатывать правила триажа, и настройте порог уверенности модели.","localAi.wizard.screen3.ruleOrder":"Порядок срабатывания правил (сначала важнее):","localAi.wizard.screen3.confidenceThreshold":"Порог уверенности модели (confidenceThreshold):","localAi.wizard.screen3.confidenceHint":"Это «порог перехода к правилам», а не «фильтр уведомлений». Если уверенность модели ниже порога, управление переходит к правилам (или уведомление отправляется, если задано fallback: notify).","localAi.wizard.screen1.baseUrl":"Base URL провайдера","localAi.wizard.screen1.baseUrlDesc":"http://127.0.0.1:11434 или https://api.openai.com/v1","localAi.wizard.screen1.baseUrlHint":"Для Ollama обычно http://127.0.0.1:11434. Для OpenAI-совместимого API укажите полный базовый URL, например https://api.openai.com/v1.","localAi.wizard.screen1.modelRequired":"Укажите модель — без неё триаж не подключится.","localAi.wizard.screen1.baseUrlRequired":"Укажите Base URL OpenAI-совместимого провайдера.","localAi.wizard.saveFailed":"Не удалось сохранить настройки. Исправьте ошибку и попробуйте снова.","localAi.wizard.rule.errorTimeout":"1. error-timeout — таймаут / сетевая ошибка","localAi.wizard.rule.errorPermission":"2. error-permission — отказ в доступе","localAi.wizard.rule.errorNetwork":"3. error-network — сеть / DNS","localAi.wizard.rule.errorQuality":"4. error-quality — качество / сборка","localAi.wizard.rule.costHigh":"5. cost-high — стоимость ≥ $1","localAi.wizard.rule.taskImportant":"6. task-important — deploy/release/backup/миграция","localAi.wizard.rule.statusError":"7. status-error — ошибка задачи","localAi.wizard.rule.statusSuccess":"8. status-success — успех задачи","localAi.wizard.finish":"Завершить и применить","localAi.wizard.back":"Назад","localAi.wizard.next":"Далее","localAi.wizard.closed":"Мастер закрыт без изменений.","matrix.aggregate.empty":'У матрицы "{parent}" нет клонов.',"matrix.aggregate.partial":"Частичный успех: {success} из {total} успешно, {errors} с ошибкой.","matrix.aggregate.running":"Выполняется: {done} из {total}.","matrix.aggregate.stopped":"Остановлено после первой ошибки: {errors} из {total} с ошибкой.","matrix.aggregate.stoppedFirst":" Первая ошибка ({name}): {error}","matrix.aggregate.success":"Все {total} клонов завершились успешно.","matrix.aggregator.prompt":'Все клоны матрицы "{parent}" завершились. Проверь результаты: {clones}.',"matrix.cancel.defaultReason":"Отменено пользователем.","matrix.clone.runningChanges":'Клон "{name}" выполняется — изменения применятся после завершения.',"matrix.clone.runningDeletion":'Клон "{name}" выполняется — удаление отложено до завершения.',"matrix.deletionGuard":'Задача "{name}" — клон матрицы "{parent}". Удалите матрицу целиком (родитель + все клоны) или измените список workspace-ов родителя.',"matrix.error.cloneCreation":'Задача "{task}": не удалось создать ни одного клона матрицы.',"matrix.error.noClones":'У матрицы "{task}" нет клонов — пересоздайте задачу, чтобы развернуть её по workspace.',"matrix.error.notMatrix":'Задача "{task}" не является матрицей.',"matrix.error.workspaceIdsEmpty":'Задача "{task}": matrix.workspaceIds не может быть пустым.',"matrix.error.workspaceMissing":'Задача "{task}": workspace "{workspace}" не найден.',"matrix.error.duplicateCloneName":'Задача "{task}": имя клона "{name}" уже занято другим workspace. Переименуйте workspace, чтобы имена клонов не совпадали.',"notify.digest.cost":"Стоимость: {cost} · токенов: {tokens}","notify.digest.noErrors":"Ошибок нет 🎉","notify.digest.period.daily":"за сутки","notify.digest.period.weekly":"за неделю","notify.digest.runs":"Запусков: {total} — ✅ {success}, ❌ {error}, ⚠️ {partial} ({rate}%)","notify.digest.title":"📊 Дайджест {period} ({date})","notify.digest.topErrorRow":"• {message} — {count}","notify.digest.topErrors":"Топ ошибок:","notify.error.digestDisabled":"Уведомления выключены.","notify.error.digestFailed":"Не удалось отправить дайджест ни в один канал.","notify.error.digestMissing":"Настройки дайджеста не найдены.","notify.error.digestNoChannels":"Все каналы выключены. Включите webhook, Telegram или нативные уведомления.","notify.error.nativeFailed":"не удалось показать уведомление","notify.error.telegramApiBaseInvalid":"Некорректный адрес Telegram API.","notify.error.telegramChatMissing":"Не задан chat_id Telegram.","notify.error.telegramNoCreds":"Telegram включён, но не заданы botToken/chatId.","notify.error.telegramScheme":"Telegram API поддерживает только http:// или https://.","notify.error.telegramTimeout":"Таймаут Telegram API ({seconds} с).","notify.error.telegramTokenInvalid":"Некорректный токен Telegram-бота.","notify.error.telegramTokenMissing":"Не задан токен Telegram-бота.","notify.error.testChannelOff":"Канал {channel} выключен.","notify.error.testDisabled":"Уведомления выключены. Включите главный переключатель.","notify.error.testNoChannels":"Все каналы выключены. Включите webhook, Telegram или нативные уведомления.","notify.error.testNotSent":"Тестовое уведомление не отправлено.","notify.error.testUnknown":"неизвестная ошибка","notify.error.webhookScheme":"Вебхук поддерживает только http:// или https://.","notify.error.webhookTimeout":"Таймаут запроса ({seconds} с).","notify.error.webhookUrlInvalid":"Некорректный URL вебхука.","notify.error.webhookUrlMissing":"URL вебхука не задан.","notify.matrix.failed":'❌ Матрица "{parent}" завершилась с ошибками: успешно {success}, ошибок {error} из {total}.',"notify.matrix.failedAll":'❌ Матрица "{parent}": все {total} клонов упали.',"notify.matrix.partial":'⚠️ Матрица "{parent}" завершилась частично: успешно {success} из {total}, ошибок {error}.',"notify.matrix.success":'✅ Матрица "{parent}" завершилась: {success} из {total} клонов успешно.',"notify.native.title":"OpenCode Scheduler","notify.ok.digestSent":"Дайджест отправлен.","notify.reason":": {error}","notify.stuck":'⏳ Матрица "{parent}": клон "{clone}" выполняется дольше {minutes} мин (запущен {startedAt}).',"notify.task.error":'❌ Задача "{task}" упала ({duration}){error}{cost}',"notify.task.success":'✅ Задача "{task}" выполнена ({duration}){cost}',"notify.dedup.count":"(повтор {count})","notify.telegram.openDashboard":"📊 Открыть дашборд","notify.telegram.openDashboardUrl":"📊 Открыть дашборд: {url}","notify.test.body":"🧪 Тестовое уведомление от OpenCode Scheduler — канал настроен корректно.","notify.test.errors":"Ошибки: {errors}.","notify.test.sent":"Отправлено: {channels}.","notify.usage.tokens":"{tokens} tok","schedule.error.cronEmptyItem":"Пустой элемент в списке «{token}».","schedule.error.cronFields":"Ожидается 5 полей cron, получено {count}: «{raw}».","schedule.error.cronRangeBounds":"Диапазон «{item}» вне границ {min}..{max}.","schedule.error.cronRangeInvalid":"Недопустимый диапазон «{item}».","schedule.error.cronStepInvalid":"Недопустимый шаг «/{step}» в «{raw}».","schedule.error.cronStepMissing":"Некорректный шаг в «{raw}»: перед «/» ничего нет.","schedule.error.cronValueBounds":"Значение «{raw}» вне границ {min}..{max}.","schedule.error.everyInterval":"Неподдерживаемый интервал «@every {value}» (m: 1..59, h: 1..23, d: 1..31).","schedule.error.lastDomOnly":"«L» поддерживается только в поле дня месяца.","schedule.error.notAfterFormat":'notAfter должен быть в формате HH:MM, не "{value}".',"schedule.error.notBeforeFormat":'notBefore должен быть в формате HH:MM, не "{value}".',"schedule.error.weekdayBounds":"День недели «{value}» вне границ 0..7 в «{field}».","schedule.reason.dayNotAllowed":"день недели не разрешён ({days})","schedule.reason.outsideWindow":"время вне окна {notBefore}–{notAfter}","schedule.weekday.0":"Вс","schedule.weekday.1":"Пн","schedule.weekday.2":"Вт","schedule.weekday.3":"Ср","schedule.weekday.4":"Чт","schedule.weekday.5":"Пт","schedule.weekday.6":"Сб","server.hookTaskMissing":'Задача "{task}" не найдена — хук отклонён.',"server.matrixNotFound":'Матрица "{parentId}" не найдена.',"server.methodNotAllowed":"Метод не поддерживается.","server.notFound":"Страница не найдена.","server.taskNotFound":'Задача "{task}" не найдена.',"shadow.enabled":"Shadow-режим включён","shadow.disabled":"Shadow-режим выключен","shadow.active":"Shadow-режим активен ещё {days} дней","shadow.expired":"Shadow-режим истёк","shadow.total":"Решений зафиксировано: {count}","shadow.skips":"Было бы подавлено: {count}","shadow.noData":"Нет данных","shadow.report":"Отчёт shadow-триажа","shadow.reset":"Сбросить","tool.error.allowedToolsEmpty":'Задача "{task}": пустой allowedTools запрещён — задайте список инструментов или уберите поле.',"tool.error.cronSchedule":"Для triggerType=cron нужно cron-выражение schedule.","tool.error.gitCwdRequired":'Задача "{task}": для git-триггера нужна рабочая директория или workspace.',"tool.error.gitNoRepo":'Задача "{task}": git-триггер требует git-репозиторий в "{path}".',"tool.error.matrixCloneFailed":'клон "{clone}" (workspace "{workspace}"): {error}',"tool.error.matrixConcurrency":'Задача "{task}": matrix.concurrency должен быть числом не меньше 1.',"tool.error.matrixExpandRuntime":'Не удалось развернуть матрицу "{name}": {error}. Созданные клоны удалены.',"tool.error.matrixNoClones":'У матрицы "{name}" нет клонов.',"tool.error.matrixNotMatrix":'Задача "{name}" не является матрицей.',"tool.error.matrixOverride":'Задача "{task}": matrix.overrides содержит workspace "{workspace}", которого нет в workspaceIds.',"tool.error.mcpEventRequired":"Для MCP-триггера нужно указать имя события (mcpEvent.event).","tool.error.onceFields":"runAt/delaySeconds допустимы только при triggerType=once.","tool.error.onceMatrixSchema":"One-shot нельзя комбинировать с matrix: матрица запускается только вручную.","tool.error.onceMatrixUpdate":"One-shot нельзя комбинировать с matrix.","tool.error.onceSchedule":"Для triggerType=once нужен runAt (ISO-8601) или delaySeconds.","tool.error.oneShotMatrix":'Задача "{name}": one-shot нельзя комбинировать с matrix. Запустите матрицу вручную или используйте cron/file-триггер.',"tool.error.pauseDateInvalid":'Задача "{name}": некорректная дата паузы "{until}". Нужен ISO-момент, например 2026-12-01T09:00:00Z.',"tool.error.pauseDatePast":'Задача "{name}": дата паузы уже прошла.',"tool.error.prepareFiles":"Не удалось подготовить файлы задачи: {error}","tool.error.schedulerKeptFiles":"Файлы обёртки оставлены для диагностики.","tool.error.schedulerNotConfirmed":'Планировщик не подтвердил создание задачи "{task}": её нет в списке {scheduler}.',"tool.error.schedulerRemovedFiles":"Файлы задачи удалены, запись в БД не создана.","tool.error.sessionMaxRuns":'Задача "{name}": sessionMaxRuns должен быть целым числом ≥ 1.',"tool.error.sessionUnknown":'Задача "{name}": неизвестный режим сессии "{session}".',"tool.error.taskNameMissing":"Не передано имя задачи.","tool.error.taskNotFound":'Задача "{name}" не найдена.',"tool.error.taskReason":'Задача "{name}": {error}',"tool.error.timezone":'Задача "{task}": неизвестный часовой пояс "{timezone}". Укажите IANA-зону, например Europe/Moscow.',"tool.error.updateCron":'Для обновления задачи "{name}" нужен cron-график.',"tool.error.updatePrompt":'Для обновления задачи "{name}" нужен промпт.',"tool.error.window":'Задача "{task}": {error}',"tool.error.workspaceIdConflict":'Задача "{task}": нельзя одновременно workspaceId и matrix.workspaceIds.',"tool.error.workspaceIdMissing":"Workspace '{id}' не найден.","tool.error.workspaceIdsEmpty":'Задача "{task}": matrix.workspaceIds не может быть пустым.',"tool.error.workspaceMissing":'Задача "{task}": workspace "{id}" не найден.',"tool.error.workspacePathMissing":"Workspace '{name}' недоступен по пути '{path}'","tool.error.workspaceUnavailable":'Задача "{task}": workspace "{workspace}" недоступен по пути "{path}".',"tool.error.wrapper":"Не удалось создать обёртку задачи: {error}","tool.event.nameRequired":"Не передано имя события.","tool.event.nameRequiredShort":"Не передано имя события (eventName).","tool.event.none":'Нет задач, подписанных на событие "{event}".',"tool.event.processed":'Событие "{event}" обработано. Запущено задач: {count}.',"tool.event.triggered":"Запущено задач: {count}.","tool.history.cleanFailed":"Не удалось очистить историю: {error}","tool.history.cleaned":"Удалено {deleted} записей (по возрасту: {byAge}, по лимиту: {byCount}), осталось {kept}.","tool.localAi.unchanged":"Настройки не изменились.","tool.localAi.updateFields":"Для action=update передайте хотя бы одно поле: mode, baseUrl, model, timeoutMs, fallback, confidenceThreshold или shadow.","tool.localAi.updated":"Настройки локального ассистента сохранены: {fields}.","tool.matrix.actionName":"Для action={action} нужен name матрицы.","tool.matrix.cancelFinished":"Уже завершены и не тронуты: {count}.","tool.matrix.cancelRunning":"Остановлено выполнявшихся: {count}.","tool.matrix.cancelSummary":'Матрица "{matrix}": отменено {cancelled} из {total} клонов.',"tool.matrix.cancelWarnings":"Предупреждения: {warnings}.","tool.matrix.completed":'Матрица "{name}" завершена. Проверь результаты клонов: {clones}.',"tool.matrix.limit":"Достигнут лимит одновременных задач. Дождитесь завершения текущих.","tool.matrix.orphansNone":"Осиротевших задач не найдено.","tool.matrix.orphansRemoved":"Удалено осиротевших задач: {count}.","tool.matrix.parentMissing":"Не передан parentId матрицы.","tool.matrix.recreateFailed":"{clone}: не удалось пересоздать — {error}","tool.matrix.started":'Матрица "{name}": запущено {started} из {total}',"tool.matrix.startedErrors":". Ошибки: {errors}","tool.matrix.startedSkipped":", пропущено {count}","tool.matrix.stopFailed":"{clone}: не удалось остановить — {error}","tool.profile.active":"Активный профиль: {name}. Перезапустите OpenCode, чтобы применить изменения.","tool.profile.created":'Профиль "{name}" создан (порт дашборда {port}).',"tool.profile.deleted":'Профиль "{name}" удалён вместе с его БД и настройками.',"tool.profile.envVar":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE={name}. Перезапустите OpenCode.","tool.profile.envVarLong":"Профиль задан переменной OPENCODE_SCHEDULER_PROFILE={name}. Перезапустите OpenCode, чтобы применить изменения.","tool.profile.nameRequired":"Для action={action} нужно имя профиля.","tool.profile.notFound":"Профиль не найден.","tool.secret.deleted":"Секрет {name} удалён.","tool.secret.nameRequired":"Для set/delete нужно имя секрета.","tool.secret.needName":"Нужно имя секрета.","tool.secret.needValue":"Нужно непустое значение секрета.","tool.secret.notFound":"Секрет {name} не найден.","tool.secret.saved":"Секрет {name} сохранён в зашифрованном виде.","tool.secret.valueRequired":"Для action=set нужно непустое значение value.","tool.settings.updateFields":"Для action=update передайте хотя бы одно поле: maxConcurrent, locale, winterMode, notifications, history, integrations или audit.","tool.task.alreadyAbsent":'Задача "{name}" уже отсутствует (удалена или не существовала).',"tool.task.alreadyRunning":'Задача "{name}" уже выполняется.',"tool.task.autosave":"не удалось сохранить автопродолжение: {error}","tool.task.created":'Задача "{name}" успешно создана.',"tool.task.deleted":'Задача "{name}" успешно удалена.',"tool.task.found":"Найдено задач: {count}.","tool.task.foundOsUnavailable":"Найдено задач: {count}. Статус планировщика ОС недоступен — показано состояние из БД.","tool.task.listEmpty":"Задачи плагина не найдены.","tool.task.listOsUnavailable":"Статус планировщика ОС недоступен — показано состояние из БД.","tool.task.matrixDeletedCount":'Матрица "{name}" удалена вместе с {count} задачами (клоны и агрегатор).',"tool.task.matrixDeletedList":'Матрица "{name}" удалена вместе с клонами: {list}.',"tool.task.matrixPauseErrors":" Ошибки: {warnings}.","tool.task.matrixPaused":'Матрица "{name}" {verb}{until}: {affected} из {total} клонов.',"tool.task.pauseError":" Ошибка: {warnings}.","tool.task.paused":"поставлена на паузу","tool.task.pausedText":'Задача "{name}" {verb}{until}.',"tool.task.resumed":"возобновлена","tool.task.rollbackFailed":'{cause} Откат не удался: {restore}. Задача "{name}" отсутствует в планировщике — создайте её заново.',"tool.task.rollbackKept":"{cause} Прежняя версия не тронута: удалить задачу из планировщика не удалось.","tool.task.rollbackRestored":"{cause} Обновление отменено, прежняя версия восстановлена.","tool.task.started":'Задача "{name}" запущена.',"tool.task.until":" до {date}","tool.task.updated":'Задача "{name}" обновлена.',"tool.template.deleted":"Шаблон {id} удалён.","tool.template.namePromptRequired":"Нужны непустые название шаблона и промпт.","tool.template.needDeleteId":"Для action=delete нужен id шаблона.","tool.template.needId":"Не передан id шаблона.","tool.template.notFound":"Шаблон {id} не найден.","tool.template.saveRequired":"Для action=save нужны непустые name и prompt.","tool.transfer.importData":"Для action=import нужны данные экспорта.","tool.transfer.noData":"Не переданы данные для импорта.","tool.transfer.noTasks":"В данных нет задач для импорта.","tool.transfer.noTasksInFile":"В файле нет задач для импорта.","tool.workspace.deleted":"Workspace удалён. Задачи сохранены, привязка очищена.","tool.workspace.needDeleteId":"Для action=delete нужен id.","tool.workspace.needPath":"Для action=add нужен path.","tool.workspace.needUpdateId":"Для action=update нужен id.","tool.workspace.notFound":"Workspace не найден."},Bm={"app.dashboardTitle":"Web dashboard","common.runsCount":"runs: {count, plural, one {# run} other {# runs}}","dryRun.cron":'By schedule "{schedule}".',"dryRun.cronParseError":'Failed to parse cron "{schedule}" to compute upcoming runs.',"dryRun.cronTimezone":'By schedule "{schedule}" ({timezone}).',"dryRun.cwdImplicit":"Working directory is not set explicitly — the current project folder will be used.","dryRun.cwdMissing":'Working directory "{path}" does not exist on disk.',"dryRun.cwdNotDir":'Path "{path}" exists but is not a directory.',"dryRun.cycle":'Circular dependency detected around task "{task}" — the pipeline is cut at this node.',"dryRun.danger.forcePush":"forced git push (`git push --force`)","dryRun.danger.rmRoot":"possible recursive wipe of the filesystem root (`rm -rf /`)","dryRun.dangerPattern":"Dangerous pattern: {message}.","dryRun.dependencyMissing":'Dependency "{task}" not found among tasks — node skipped.',"dryRun.file.any":"File trigger: any change matches.","dryRun.file.globs":"globs: {count}","dryRun.file.ignore":"excludes: {count}","dryRun.file.trigger":"File trigger: {parts}.","dryRun.git.branchMismatch":'Branch does not match the filter "{branch}".',"dryRun.git.checkError":"Git trigger: check failed — {error}.","dryRun.git.notRepo":"Task has a git trigger, but the working directory is not a git repository.","dryRun.manual":"Manual run (as part of a pipeline).","dryRun.matrix.expandError":"Matrix cannot be expanded: {error}","dryRun.matrix.parent":"[{name}] The matrix parent is not executed itself — {count} clone(s) per workspace are shown.","dryRun.mcp.event":"MCP event {server}:{event}{filter}.","dryRun.mcp.filter":' (filter "{filter}")',"dryRun.mcp.missing":"MCP event (parameters not set).","dryRun.noHistory":"No successful runs in history — duration/tokens/cost estimate is unavailable.","dryRun.once":"One-time run.","dryRun.once.at":"One-time run at {runAt}.","dryRun.taskNotFound":'Task "{task}" not found.',"dryRun.window.noOpening":"Now {reason}: no window opening found, the run is skipped.","dryRun.window.outside":"outside the window","dryRun.window.postpone":"Now {reason}: the run will be postponed to {nextOpenAt}.","dryRun.window.run":"Now {reason}: run policy — the task will execute anyway.","dryRun.window.skip":"Now {reason}: with the skip policy the run will be skipped.","gitTrigger.baseline":"Remembered current commit {commit} — the task will run on the next change.","gitTrigger.branchMismatch":'Branch {branch} does not match the filter "{pattern}".',"gitTrigger.changed":"New commit {commit}: {count} files changed ({files}).","gitTrigger.ignored":"Files changed: {count}, but none match the filters.","gitTrigger.noChanges":"No new commits.","gitTrigger.noRepo":'"{cwd}" is not a git repository — the git trigger will not fire.',"gitTrigger.diffFailed":"Failed to read git changes: {error}. State was not advanced — will retry on the next poll.","gui.add":"+ Add","gui.addWorkspaceFirst":"Add at least one workspace first.","gui.aggregation":"Aggregation","gui.allowedToolsLabel":"Allowlist (allowedTools)","gui.app.title":"Task scheduler","gui.auditAction":"Action","gui.auditActionPlaceholder":"e.g. task.create","gui.auditActor":"Actor","gui.auditDeletedFrom":"Deleted from","gui.auditEmpty":"No audit records.","gui.auditEnable":"Enable audit","gui.auditHeading":"📜 Audit log","gui.auditHint":"Records mutations of tasks, settings, templates, profiles, workspaces, secrets, imports and history cleanup. Details are masked (secrets replaced with {redacted}).","gui.auditSource":"Source","gui.auditStorageHeading":"Audit log — storage","gui.auditTarget":"Target","gui.auditTargetPlaceholder":"task/secret name","gui.auditTime":"Time","gui.botTokenEnvHint":"You can avoid storing the token in settings.json: set OPENCODE_SCHEDULER_TELEGRAM_BOT_TOKEN and OPENCODE_SCHEDULER_TELEGRAM_CHAT_ID.","gui.botTokenPlaceholder":"Bot token from @BotFather","gui.cancel":"Cancel","gui.chatIdPlaceholder":"chat_id (e.g. 123456789 or -100...)","gui.cleaningUp":"Cleaning up...","gui.cleanupNow":"🧹 Clean up now","gui.collapseFormTitle":"Collapse the form","gui.common.projectDir":"(project folder)","gui.common.unknownError":"Unknown error","gui.concurrencySequentialPlaceholder":"1 (sequential)","gui.concurrencyUnlimitedPlaceholder":"no limit","gui.createProfile":"+ Create","gui.createTask":"➕ Create task","gui.createTaskSubmit":"Create task","gui.creating":"Creating...","gui.cron.custom":"Custom schedule…","gui.cron.dailyAt9":"Every day at 09:00","gui.cron.everyHour":"Every hour","gui.cron.everyMinute":"Every minute","gui.cron.mondayAt10":"Every Monday at 10:00","gui.cronExprLabel":"Cron expression","gui.customTemplate":"Custom template:","gui.dashboardLink":"dashboard link","gui.defaultSuffix":"(default)","gui.delete":"Delete","gui.deleteTemplateTitle":"Delete template","gui.deniedToolsLabel":"Denylist (deniedTools)","gui.dependsOnHint":"The task starts automatically once all selected tasks finish successfully.","gui.dependsOnLabel":"Depends on tasks (successful completion)","gui.digestChannels":"Channels: webhook, Telegram, native OS notifications.","gui.digestDaily":"daily","gui.digestEnable":"Send digest","gui.digestHeading":"Digest","gui.digestHint":"Runs, success rate, cost and top errors per day/week.","gui.digestLastSent":"last sent: {when}","gui.digestNeverSent":"never sent","gui.digestWeekly":"weekly (Mon)","gui.days":"Days","gui.dryRunButton":"🧪 Preview","gui.dryRunLocalTitle":"🧪 Preview (local, based on form fields)","gui.dryRunMatrixPreview":"Matrix: {count, plural, one {# clone} other {# clones}} will be created per workspace; the parent does not run.","gui.dryRunNoNameWarning":"No name — preview is local (form not saved).","gui.dryRunPreviewTitle":"Local preview of the command based on current form fields (no RPC, no run)","gui.editingTask":"Editing task","gui.emptyNormal":"No active tasks. Create your first one and let AI handle the routine!","gui.emptyWinter":"No tasks yet. Time to decorate the tree!","gui.errorBoundaryDetail":"Display error occurred. Try reloading the panel.","gui.expandFormTitle":"Expand the task creation form","gui.export":"Export","gui.exportBusy":"Exporting...","gui.filterExcludePlaceholder":"Exclude tasks (comma-separated, * — wildcard)","gui.filterHint":"Empty “only” list = all tasks. Exclusions beat inclusions.","gui.filterIncludePlaceholder":"Only these tasks (comma-separated, * — wildcard)","gui.filterSummary":"Filter: {scope} · showing {visible} of {total}","gui.gitBranchesLabel":"Branches (glob, comma-separated; empty — any)","gui.gitIgnoreLabel":"Ignored paths (glob, one per line)","gui.gitPathsLabel":"Changed paths (glob, one per line; empty — any file)","gui.gitPollHint":"The first poll records the current HEAD without running the task — then the task starts on a new commit touching matching files.","gui.gitPollLabel":"Poll interval, seconds (min 5, default 60)","gui.hideForm":"Hide form ▴","gui.history.durationMs":"{ms} ms","gui.history.error":"❌ Error","gui.history.modelTitle":"Model: {model}","gui.history.nextTaskTitle":"Next task in the chain was started","gui.history.success":"✅ Success","gui.historyCleanupHint":"Only finished records are deleted; unfinished runs are kept.","gui.historyDeleteOlderLabel":"Delete records older than, days","gui.historyHeading":"🧹 History & retention","gui.historyKeepMaxLabel":"Keep at most records","gui.historyNoExpiry":"no expiry","gui.historyNoLimit":"no limit","gui.historyOlderThan":"older than {days} d","gui.historyUpToRecords":"up to {count} records","gui.import":"Import","gui.importBusy":"Importing...","gui.job.activeDaysTitle":"Run only on days: {days}","gui.job.cancelMatrixTitle":'Cancel running matrix clones "{name}"',"gui.job.deleteMatrixTitle":'Delete matrix "{name}" along with its clones',"gui.job.deleteTitle":'Delete "{name}"',"gui.job.dependsOn":"🔗 Depends on: {list}","gui.job.dryRunTitle":'Dry-Run simulation "{name}"',"gui.job.durationEst":"⏱ ~{seconds} s","gui.job.editTitle":'Edit "{name}"',"gui.job.fanoutConcurrency":", concurrency: {concurrency}","gui.job.fanoutOverrides":", workspace overrides: {overrides}","gui.job.fanoutTitle":"Matrix fan-out: {count} clones, strategy: {strategy}, on failure: {failureMode}{concurrency}{overrides}","gui.job.gitTriggerBranch":" on branch {branch}","gui.job.gitTriggerPaths":", paths: {paths}","gui.job.gitTriggerTitle":"Git trigger: new commit{branch}{paths}. Polling every {seconds} s.","gui.job.historyEmpty":"No runs yet.","gui.job.historyPanelTitle":"📜 Recent runs history","gui.job.historyTitle":'History "{name}"',"gui.job.logonModeUnknown":"unknown","gui.job.logsTitle":'Logs "{name}"',"gui.job.matrixClone":"Matrix clone. Parent: {parent}","gui.job.matrixDone":"📦 Matrix: {success}/{total} succeeded","gui.job.mcpEventFilterSuffix":" (filter: {filter})","gui.job.mcpEventTitle":"MCP event: {event}{filterSuffix}","gui.job.modelTitle":"LLM model: {model}","gui.job.pauseTitle":'Pause "{name}"',"gui.job.pauseUnavailable":'Task "{name}" is absent from the OS scheduler — pausing is unavailable',"gui.job.pausedUntilShort":"⏸ until {date}","gui.job.pausedUntilTitle":"Paused until {date} — the task resumes automatically.","gui.job.priorityTitle":"Priority: {label} ({priority})","gui.job.resumeTitle":'Resume "{name}"',"gui.job.runTitle":'Run "{name}"',"gui.job.runWhenLoggedOffShort":"no logon","gui.job.runWhenLoggedOffTitle":"The task runs without a logged-on user. Scheduler logon mode: {mode}","gui.job.runsLine":"📊 Total: {total} | ✅ {success} | 🟠 {partial} | ❌ {error}","gui.job.runsTitle":"Runs of this task only: succeeded / partial / errors and timeouts","gui.job.sessionContinueShort":"↪ continue","gui.job.sessionContinueTitle":"Continue the last OpenCode session (--continue)","gui.job.sessionReuseShort":"⟳ session","gui.job.sessionReuseTitle":"Reusable OpenCode session","gui.job.sessionReuseTitleId":"Reusable OpenCode session: {id}","gui.job.simulating":"Simulating…","gui.job.simulationFailed":"Simulation failed","gui.job.timezoneTitle":"Task timezone: {tz}","gui.job.tokensEst":"· ~{tokens} tok.","gui.job.toolLimitsTitle":"Tool limits: {limits}","gui.job.totalsLine":"Σ {duration} s · {tokens} tokens{cost}","gui.job.watchFile":"File watch: {path}","gui.job.watchGlobsCount":"✳ {count, plural, one {# mask} other {# masks}}","gui.job.watchGlobsTitle":"File trigger globs: {globs}","gui.job.windowTitle":"Run window: {from}–{to}. Outside the window the run is postponed to its start.","gui.jobStatus.error":"🔴 Error","gui.jobStatus.never":"⚪ Never ran","gui.jobStatus.orphan":"🧟 Not in OS scheduler","gui.jobStatus.partial":"🟠 Partial","gui.jobStatus.paused":"⏸ Paused","gui.jobStatus.running":"🟡 Running: {seconds} s","gui.jobStatus.success":"🟢 Done","gui.jobStatus.unknown":"⚪ Unknown","gui.jobsTitle":"Scheduler","gui.languageAuto":"Auto (same as OpenCode)","gui.languageEn":"English","gui.languageRu":"Русский","gui.languageTitle":'Interface language: "Auto" follows the OpenCode language',"gui.languageZh":"中文","gui.lastCleanupDone":"{when} · deleted {deleted}","gui.lastCleanupLabel":"Last cleanup:","gui.lastCleanupNever":"never run","gui.loading":"Loading...","gui.logs.empty":"(empty)","gui.logs.loadFailed":"Failed to load logs","gui.logs.loading":"Loading logs…","gui.logs.readError":"Failed to read logs:","gui.logsHeading":"Logs","gui.matrix.cancelClonesConfirm":'Cancel running matrix clones "{name}"?',"gui.matrix.deleteConfirm":'Delete matrix "{name}" along with all its clones and the aggregator?',"gui.matrixAggregator":"Create aggregator task matrix-complete (runs after all clones)","gui.matrixAllFailed":"all failed","gui.matrixConcurrency":"Concurrent clones (concurrency)","gui.matrixContinue":"continue — keep going","gui.matrixHint":"Template task fans out into clones per workspace. The parent itself does not run — it launches clones and aggregates the result.","gui.matrixModelPlaceholder":"Model (override)","gui.matrixNotifyEnable":"Notify about matrix completion","gui.matrixNotifyHeading":"Matrices","gui.matrixOverridesTitle":"⚙ Per-workspace settings — {count} overridden","gui.matrixParallel":"parallel — all at once","gui.matrixPerTask":"per-task — per task","gui.matrixPromptPlaceholder":"Prompt (default — the shared form prompt)","gui.matrixSelectHint":"Select at least one workspace — the clone preview will appear here.","gui.matrixSequential":"sequential — one by one","gui.matrixStop":"stop — halt","gui.matrixStuckHint":"A clone running longer than the given time is notified once. 0 — disabled.","gui.matrixStuckMinutes":"stuck clone, min:","gui.matrixSummary":"summary — summary","gui.matrixWillCreate":"Will create {count, plural, one {# clone} other {# clones}}:","gui.matrixWorkspacesSelected":"Workspaces (for the matrix) — selected","gui.maxConcurrentLabel":"Max concurrent tasks:","gui.maxRetriesLabel":"Retry count on failure","gui.mcpEventLabel":"Event name","gui.mcpEventPlaceholder":"e.g. github.pr.opened","gui.mcpFilterHint":"key=value is compared to the payload field; otherwise the filter is treated as regex/substring. Events arrive via RPC emit_event.","gui.mcpFilterLabel":"Filter (optional)","gui.mcpFilterPlaceholder":'e.g. repo="my-project" or regex',"gui.mcpSourceLabel":"MCP server / source","gui.mcpSourcePlaceholder":"e.g. github","gui.metricsTotalsLine":"📊 Total across all tasks: {total} · ✅ {success} · ❌ {error}","gui.metricsTotalsTitle":"Total metrics across all tasks (including archived metric records)","gui.modalShortcutHint":"Ctrl+Enter — save, Escape — cancel","gui.modelHint":"Empty — the default OpenCode model. Otherwise the --model flag is passed.","gui.modelLabel":"LLM model","gui.modelPlaceholder":"default (as in OpenCode)","gui.nativeHint":"Windows Toast, macOS Notification Center, Linux notify-send. No external dependencies.","gui.nativeNotifications":"Native OS notifications","gui.newTask":"New task","gui.noNameFallback":"(no name)","gui.noOtherTasks":"No other tasks yet","gui.noWorkspaceOption":"No workspace — working directory","gui.notifications":"🔔 Notifications","gui.notifyAllRuns":"all runs","gui.notifyDisabled":"disabled","gui.notifyEnable":"Enable notifications","gui.notifyOnlyErrors":"errors only","gui.notifyOnlyOnError":"Only on error","gui.ok":"OK","gui.onFailure":"On failure","gui.oneShotDelayHint":"Or a delay in seconds from the “Create task” click:","gui.oneShotDelayPlaceholder":"e.g. 3600","gui.oneShotHint":"runAt wins: if a time is set, delaySeconds is ignored. After running, the task never repeats.","gui.oneShotTimeLabel":"One-off run time","gui.oneShotTimePlaceholder":"2026-11-14T10:00:00.000Z or local date","gui.openDashboard":"🌐 Open dashboard","gui.openDashboardTitle":"Open the local web dashboard (actual server port)","gui.otherPriorityOption":"Other ({priority})","gui.outsideWindowLabel":"Outside the window or on a disallowed day","gui.parseModeLabel":"markup:","gui.postflightHint":"E.g. git push or npm run build. Runs in the task's working directory even on failure of the main task.","gui.postflightLabel":"Command after the run (Post-flight)","gui.postflightPlaceholder":"e.g. git push","gui.preflightHint":"E.g. git pull or npm install. Runs in the task's working directory. A non-zero exit cancels the run (Pre-flight script failed).","gui.preflightLabel":"Command before the run (Pre-flight)","gui.preflightPlaceholder":"e.g. git pull","gui.priority.critical":"Critical","gui.priority.high":"High","gui.priority.low":"Low","gui.priority.normal":"Normal","gui.priorityHint":"If several tasks are ready at once, the highest-priority task starts first.","gui.priorityLabel":"Priority","gui.profile.deleteConfirm":'Delete profile "{name}" along with its DB, settings and logs?',"gui.profile.namePrompt":"New profile name (latin letters, digits, - and _)","gui.profileActive":"active","gui.profileDelete":"Delete","gui.profileEnvLocked":"The profile is set via the OPENCODE_SCHEDULER_PROFILE variable. Switching in the GUI is unavailable.","gui.profileEnvLockedTitle":"The profile is set via the OPENCODE_SCHEDULER_PROFILE environment variable — switching in the GUI is unavailable","gui.profilePort":"port {port}","gui.profilePortDefault":"default port","gui.profileSwitch":"Switch","gui.profilesHeading":"👤 Profiles","gui.profilesHint":"Each profile has its own DB, settings, logs and dashboard port. Restart OpenCode after switching.","gui.profilesTitle":"Profiles: separate DBs, settings and dashboard port","gui.projectFolderFallback":"(project folder)","gui.promptLabel":"Prompt","gui.promptPlaceholder":"Write a brief market report","gui.promptTemplateLabel":"Prompt template","gui.promptTemplates.codeHygiene":"Code hygiene","gui.promptTemplates.codeHygienePrompt":"Audit code hygiene: find unused imports, unused variables, extra dependencies and suggest fixes.","gui.promptTemplates.custom":"Custom prompt","gui.promptTemplates.morningDigest":"Morning digest","gui.promptTemplates.morningDigestPrompt":"Put together the morning digest: what changed overnight, any failed builds, what needs attention today.","gui.promptTemplates.nightWatch":"Night watch (tests)","gui.promptTemplates.nightWatchPrompt":"Run nightly checks: run the tests, record failures and write a short repo status report.","gui.qualityGateHint":"Runs after the AI responds successfully. Non-zero exit = task failure.","gui.qualityGateLabel":"Verification command (Quality Gate)","gui.qualityGatePlaceholder":"e.g. npm run test","gui.quietFrom":"from","gui.quietHours":"Quiet hours","gui.quietHoursHint":"In quiet hours, success and partial are suppressed; errors and timeouts are sent.","gui.quietTo":"to","gui.refresh":"Refresh","gui.remoteNotSet":"remote not set","gui.retryCount":"retries:","gui.retryDelayLabel":"Delay before retry (sec)","gui.retryDelayMs":"pause, ms:","gui.retryHint":"Retry on network error, timeout, 5xx and 429 (exponential backoff).","gui.runWhenLoggedOffHint":"Windows: the task also runs when nobody is signed in (/ru SYSTEM). It runs in session 0 — without your profile, mapped drives or saved credentials — so tasks that need your files or network may fail. Creating such a task usually requires running OpenCode as administrator.","gui.runWhenLoggedOffLabel":"Run without a logged-on user","gui.save":"💾 Save","gui.saveAsTemplate":"💾 Save as template","gui.saveAsTemplateTitle":"Save current form settings as a template","gui.saving":"Saving...","gui.scheduleLabel":"Schedule","gui.secretNamePlaceholder":"Secret name (A-Za-z0-9_.-)","gui.secretValuePlaceholder":"Value (not returned on read)","gui.secrets":"🔐 Secrets","gui.secretsEmpty":"No secrets. Values are stored encrypted in secrets.json.","gui.secretsUsage":"Use the {secretRef} reference in tasks — the value is injected from the vault at run time and masked in logs.","gui.sendDigestNow":"📊 Send digest now","gui.sendTestNotification":"🧪 Test notification","gui.sending":"Sending...","gui.sessionContinue":"Last (--continue)","gui.sessionLabel":"OpenCode session","gui.sessionMaxRunsHint":"sessionId is generated by the plugin automatically. When the limit is reached the session is removed; the next run starts a clean session.","gui.sessionMaxRunsLabel":"How many runs a session survives (sessionMaxRuns, optional)","gui.sessionNew":"New","gui.sessionReuse":"Reuse","gui.silent":"silent","gui.strategy":"Strategy","gui.task.deleteConfirm":'Delete task "{name}"?',"gui.taskFiltersHeading":"Task filters","gui.taskNameLabel":"Task name","gui.taskNamePlaceholder":"e.g. Gui-Test","gui.tasksHeading":"Tasks","gui.templateErrorPlaceholder":'❌ Task "{task}" failed ({duration}){error}',"gui.templateHint":"Placeholders: {task} {status} {duration} {error} {emoji} {cost} {tokens}. Empty = default template.","gui.templateSuccessPlaceholder":'✅ Task "{task}" completed ({duration})',"gui.templates.deleteConfirm":'Delete template "{name}"?',"gui.templates.namePrompt":"Template name","gui.templatesHeading":"Message templates","gui.timeoutMs":"Timeout, ms:","gui.timezoneHint":"Another zone — the task wakes every minute, cron is checked in that zone.","gui.timezoneLabel":"Time zone (IANA)","gui.timezonePlaceholder":"Empty — system zone","gui.toast.chooseFile":"Choose a file","gui.toast.deleteFailed":"Delete failed","gui.toast.digestFailed":"Digest was not sent","gui.toast.digestSent":"Digest sent","gui.toast.envInvalid":"Invalid env format","gui.toast.envSaveError":"Failed to save env","gui.toast.envSaveFailed":"Could not save env","gui.toast.envSaved":"Env variables saved","gui.toast.exportFailed":"Export failed","gui.toast.exported":"Tasks exported: {count}","gui.toast.historyCleanupDone":"History cleanup completed","gui.toast.historyCleanupFailed":"History cleanup failed","gui.toast.historyLoadFailed":"Failed to load history","gui.toast.importFailed":"Import failed","gui.toast.imported":"Tasks imported: {count}","gui.toast.jobsLoadFailed":"Failed to load tasks","gui.toast.logsReadFailed":"Failed to read logs","gui.toast.matrixCancelError":"Matrix cancel failed","gui.toast.matrixCancelFailed":"Could not cancel the matrix","gui.toast.noFileForImport":"No file selected for import.","gui.toast.nothingToSave":"Nothing to save","gui.toast.pauseError":"Pause failed","gui.toast.pauseFailed":'Could not pause "{name}"',"gui.toast.paused":'Task "{name}" paused',"gui.toast.profileCreateError":"Profile creation failed","gui.toast.profileCreateFailed":"Could not create the profile","gui.toast.profileCreated":"Profile created","gui.toast.profileDeleteError":"Profile deletion failed","gui.toast.profileDeleteFailed":"Could not delete the profile","gui.toast.profileDeleted":"Profile deleted","gui.toast.profileSwitchError":"Profile switch failed","gui.toast.profileSwitchFailed":"Could not switch the profile","gui.toast.profileSwitched":"Profile switched","gui.toast.promptRequired":"Fill in the prompt first — it is required for a template.","gui.toast.resumeError":"Resume failed","gui.toast.resumeFailed":'Could not resume "{name}"',"gui.toast.resumed":'Task "{name}" resumed',"gui.toast.runFailed":"Run failed","gui.toast.secretDeleted":"Secret deleted","gui.toast.secretNotDeleted":"Secret not deleted","gui.toast.secretNotSaved":"Secret not saved","gui.toast.secretSaved":"Secret saved","gui.toast.settingsSaveFailed":"Could not save settings","gui.toast.taskCrashed":'Task "{name}" failed',"gui.toast.taskCreateFailed":"Task creation failed","gui.toast.taskCreated":"Task created","gui.toast.taskDeleted":'Task "{name}" deleted',"gui.toast.taskDone":'Task "{name}" completed',"gui.toast.taskStartFailed":'Could not start "{name}"',"gui.toast.taskStarted":'Task "{name}" started',"gui.toast.taskUpdateFailed":"Task update failed","gui.toast.taskUpdated":"Task updated","gui.toast.templateDeleteError":"Template deletion failed","gui.toast.templateDeleteFailed":"Could not delete the template","gui.toast.templateDeleted":'Template "{name}" deleted',"gui.toast.templateSaveError":"Template save failed","gui.toast.templateSaveFailed":"Could not save the template","gui.toast.templateSaved":'Template "{name}" saved',"gui.toast.testFailed":"Test failed","gui.toast.testSent":"Test notification sent","gui.toast.workspaceAddFailed":"Workspace add failed","gui.toast.workspaceAdded":"Workspace added","gui.toast.workspaceDeleteFailed":"Workspace delete failed","gui.toast.workspaceDeleted":"Workspace deleted","gui.toast.workspaceUpdateFailed":"Workspace update failed","gui.toast.workspaceUpdated":"Workspace updated","gui.toolLimitsDenied":"On conflict, denied wins. An empty allowedTools is forbidden.","gui.toolLimitsHeading":"🔒 Tool limits","gui.toolLimitsNote":"⚠ Metadata-only: opencode 2.2.3 has no allow/deny flags — limits are recorded in logs and history.","gui.toolPlaceholder":"custom tool, e.g. websearch","gui.triggerCron":"On a schedule (Cron)","gui.triggerFile":"On file change","gui.triggerGit":"New commit (Git)","gui.triggerOnce":"Once","gui.triggerTypeLabel":"Trigger type","gui.uiError":"UI error: {message}","gui.unboundedPlaceholder":"no limit","gui.validation.cronRequired":"Specify a cron schedule.","gui.validation.dependsOnSelf":"A task cannot depend on itself.","gui.validation.gitPollInvalid":"Git poll interval — a whole number of seconds of at least 5.","gui.validation.gitWorkspaceRequired":"For a git trigger, pick a workspace or set a working directory.","gui.validation.matrixConcurrencyInvalid":"Matrix concurrency — a positive whole number.","gui.validation.matrixWorkspacesRequired":"Select at least one workspace for the matrix.","gui.validation.priorityInvalid":"Priority — a whole number from 0 to 10.","gui.validation.promptRequired":"Specify a prompt.","gui.validation.retryCountInvalid":"Retry count — a whole number ≥ 0.","gui.validation.retryDelayInvalid":"Retry delay — a whole number of seconds ≥ 0.","gui.validation.runAtRequired":"Specify a run time or a delay.","gui.validation.sessionMaxRunsInvalid":"Session run limit — a positive whole number.","gui.validation.taskNameRequired":"Specify a task name.","gui.validation.timezoneInvalid":"Unknown time zone. Use an IANA zone, e.g. Europe/Moscow.","gui.validation.windowPairRequired":"The run window is set only as a from/to pair.","gui.watchFileLabel":"Path of the file to watch","gui.watchFilePlaceholder":"e.g. C:\\project\\src\\main.ts","gui.watchGlobsHint":"Globs are resolved from the watchPath. Supports *, **, ? and [abc] classes; a directory glob with /** is recursive.","gui.watchGlobsLabel":"Glob patterns (one per line, empty — any change)","gui.watchIgnoreLabel":"Excludes (glob, one per line)","gui.webhookLabel":"Webhook (Discord / Slack / generic)","gui.webhookPostHint":"POST with JSON {payload} — compatible with Discord and Slack.","gui.weekday.0":"Sun","gui.weekday.1":"Mon","gui.weekday.2":"Tue","gui.weekday.3":"Wed","gui.weekday.4":"Thu","gui.weekday.5":"Fri","gui.weekday.6":"Sat","gui.weekdaysLabel":"Days of week (empty — all days)","gui.windowEndTitle":"Window end (may be earlier than the start)","gui.windowHint":"Outside the window the run is postponed to the start of the window, not skipped. E.g. 22:00 — 06:00.","gui.windowLabel":"Run window (optional)","gui.windowPolicyHint":"For cron the policy is applied in the wrapper; for file and git triggers — when the event is handled. A postpone waits no longer than 12 hours.","gui.windowPostpone":"Postpone to window start (default)","gui.windowRun":"Run anyway","gui.windowSkip":"Skip the run","gui.windowStartTitle":"Window start","gui.winterMode":"❄️ Winter mode","gui.winterModeTitle":"Toggle the winter theme","gui.withSound":"with sound","gui.workingDirectoryHint":"The task runs opencode run in this folder — MCP servers from opencode.json are picked up here.","gui.workingDirectoryLabel":"Working directory","gui.workingDirectoryPlaceholder":"default — project folder","gui.workspace.deleteConfirm":'Delete workspace "{name}"? Tasks are kept, the binding is cleared.',"gui.workspace.envFilePrompt":"Path to the workspace .env file (optional, empty — none)","gui.workspace.envInvalidHelp":"Lines must be KEY=VALUE; name — latin/digits/_","gui.workspace.envPrompt":`Workspace env variables, one per line KEY=VALUE
2
+ (empty clears)`,"gui.workspace.envSecretsMasked":"Secrets are masked in logs","gui.workspace.namePrompt":"Workspace name (optional)","gui.workspace.namePromptShort":"Workspace name","gui.workspace.pathPrompt":"Path to the git repository (workspace)","gui.workspace.pathPromptShort":"Path to the git repository","gui.workspaceAddTitle":"Add a workspace (git repository)","gui.workspaceAll":"All workspaces","gui.workspaceDeleteTitle":"Delete workspace (tasks are kept)","gui.workspaceEditTitle":"Edit workspace","gui.workspaceEmpty":"No workspaces added. A task without a workspace uses the project working directory.","gui.workspaceEnvFile":" · .env file","gui.workspaceEnvLine":"{count} vars","gui.workspaceEnvTitle":"Workspace env variables (secrets are masked in logs)","gui.workspaceFilterTitle":"Filter tasks by workspace","gui.workspaceGitInfo":"git: {branch} · {remote}","gui.workspaceMultiRepo":"Workspace (multi-repo)","gui.workspaceNone":"No workspace","gui.zeroKeepByAge":"0 = don't delete by age","gui.zeroNoLimit":"0 = no limit","gui.zeroUnlimited":"(0 = no limit)","localAi.asyncHint":"Model modes (llm/auto) triage asynchronously: the notification is sent immediately and the verdict is written to the audit log. Use Rules mode if rules must suppress notifications.","localAi.rulesHint":'Built-in rules cover errors, status, cost and task name. Custom rules: notifications.triage.rules, e.g. {"field":"cost","operator":"gte","value":1}.',"localAi.baseUrl":"API base URL (Ollama or OpenAI-compatible)","localAi.fallback":"When the model does not answer","localAi.fallback.rules":"Rules (fail-open)","localAi.fallback.notify":"No rules, notify anyway","localAi.hint":"An empty model name or a missing Ollama does not block notifications: the fallback handles them. A URL ending with /v1 switches to the OpenAI protocol.","localAi.mode":"Triage mode","localAi.mode.auto":"Model, then rules","localAi.mode.llm":"Model only","localAi.mode.off":"Off","localAi.mode.rules":"Rules only","localAi.model":"Model","localAi.modelPlaceholder":"for example qwen3:4b","localAi.status.checking":"Checking connection...","localAi.status.error":"No connection","localAi.status.idle":"Connection not checked","localAi.status.ok":"Connected","localAi.test":"Test connection","localAi.testFailed":"No connection: {reason}","localAi.testOk":"Connected: {model}, {latency} ms","localAi.testing":"Testing...","localAi.threshold":"Confidence threshold","localAi.timeout":"Timeout, ms","localAi.title":"Local assistant (triage)","localAi.wizard":"Triage setup wizard","localAi.wizard.start":"Start setup","localAi.wizard.screen1.title":"Step 1 of 3 — Choose a model","localAi.wizard.screen1.desc":"A local model reads task-completion notifications and helps decide whether to send them. Choose a provider and model.","localAi.wizard.screen1.provider":"Provider","localAi.wizard.screen1.provider.ollama":"Ollama (local)","localAi.wizard.screen1.provider.openai":"OpenAI-compatible API","localAi.wizard.screen1.model":"Model","localAi.wizard.screen1.modelDesc":"For example qwen3:4b, llama3.1:8b or gpt-4o-mini.","localAi.wizard.screen1.consequence":"If the model does not answer: notifications are still delivered (fallback), and in llm/auto mode triage becomes advisory only.","localAi.wizard.screen2.title":"Step 2 of 3 — Preset","localAi.wizard.screen2.desc":"Choose a ready-made settings bundle for your situation.","localAi.wizard.screen2.preset.minimal":"Minimal","localAi.wizard.screen2.preset.minimal.desc":"Rules only: fast and reliable, no model. Notifications are not suppressed unless a rule matches.","localAi.wizard.screen2.preset.recommended":"Recommended","localAi.wizard.screen2.preset.recommended.desc":"Rules plus a local model. If the model does not answer — rules apply. Best balance of speed and accuracy.","localAi.wizard.screen3.title":"Step 3 of 3 — Rule order","localAi.wizard.screen3.desc":"Review the order in which triage rules will fire, and set the model confidence threshold.","localAi.wizard.screen3.ruleOrder":"Rule firing order (more important first):","localAi.wizard.screen3.confidenceThreshold":"Model confidence threshold (confidenceThreshold):","localAi.wizard.screen3.confidenceHint":"This is the «threshold for falling back to rules», not a «notification filter». If model confidence is below the threshold, control passes to the rules (or the notification is sent if fallback: notify).","localAi.wizard.screen1.baseUrl":"Provider Base URL","localAi.wizard.screen1.baseUrlDesc":"http://127.0.0.1:11434 or https://api.openai.com/v1","localAi.wizard.screen1.baseUrlHint":"For Ollama this is usually http://127.0.0.1:11434. For an OpenAI-compatible API, enter the full base URL, e.g. https://api.openai.com/v1.","localAi.wizard.screen1.modelRequired":"Enter a model — triage cannot connect without one.","localAi.wizard.screen1.baseUrlRequired":"Enter the Base URL of the OpenAI-compatible provider.","localAi.wizard.saveFailed":"Could not save settings. Fix the error and try again.","localAi.wizard.rule.errorTimeout":"1. error-timeout — timeout / network error","localAi.wizard.rule.errorPermission":"2. error-permission — permission denied","localAi.wizard.rule.errorNetwork":"3. error-network — network / DNS","localAi.wizard.rule.errorQuality":"4. error-quality — quality / build","localAi.wizard.rule.costHigh":"5. cost-high — cost ≥ $1","localAi.wizard.rule.taskImportant":"6. task-important — deploy/release/backup/migration","localAi.wizard.rule.statusError":"7. status-error — task failed","localAi.wizard.rule.statusSuccess":"8. status-success — task succeeded","localAi.wizard.finish":"Finish and apply","localAi.wizard.back":"Back","localAi.wizard.next":"Next","localAi.wizard.closed":"Wizard closed without changes.","matrix.aggregate.empty":'Matrix "{parent}" has no clones.',"matrix.aggregate.partial":"Partial success: {success} of {total} succeeded, {errors} failed.","matrix.aggregate.running":"Running: {done} of {total}.","matrix.aggregate.stopped":"Stopped after the first error: {errors} of {total} failed.","matrix.aggregate.stoppedFirst":" First error ({name}): {error}","matrix.aggregate.success":"All {total} clones finished successfully.","matrix.aggregator.prompt":'All clones of matrix "{parent}" finished. Check the results: {clones}.',"matrix.cancel.defaultReason":"Cancelled by the user.","matrix.clone.runningChanges":'Clone "{name}" is running — changes will be applied after it finishes.',"matrix.clone.runningDeletion":'Clone "{name}" is running — deletion is postponed until it finishes.',"matrix.deletionGuard":`Task "{name}" is a clone of matrix "{parent}". Delete the whole matrix (parent + all clones) or change the parent's workspace list.`,"matrix.error.cloneCreation":'Task "{task}": failed to create any matrix clone.',"matrix.error.noClones":'Matrix "{task}" has no clones — recreate the task to expand it across workspaces.',"matrix.error.notMatrix":'Task "{task}" is not a matrix.',"matrix.error.workspaceIdsEmpty":'Task "{task}": matrix.workspaceIds cannot be empty.',"matrix.error.workspaceMissing":'Task "{task}": workspace "{workspace}" not found.',"matrix.error.duplicateCloneName":'Task "{task}": clone name "{name}" is already used by another workspace. Rename the workspace so clone names are unique.',"notify.digest.cost":"Cost: {cost} · tokens: {tokens}","notify.digest.noErrors":"No errors 🎉","notify.digest.period.daily":"for the last day","notify.digest.period.weekly":"for the week","notify.digest.runs":"Runs: {total} — ✅ {success}, ❌ {error}, ⚠️ {partial} ({rate}%)","notify.digest.title":"📊 Digest {period} ({date})","notify.digest.topErrorRow":"• {message} — {count}","notify.digest.topErrors":"Top errors:","notify.error.digestDisabled":"Notifications are disabled.","notify.error.digestFailed":"Failed to deliver the digest to any channel.","notify.error.digestMissing":"Digest settings not found.","notify.error.digestNoChannels":"All channels are disabled. Enable webhook, Telegram or native notifications.","notify.error.nativeFailed":"failed to show the notification","notify.error.telegramApiBaseInvalid":"Invalid Telegram API address.","notify.error.telegramChatMissing":"Telegram chat_id is not set.","notify.error.telegramNoCreds":"Telegram is enabled, but botToken/chatId are not set.","notify.error.telegramScheme":"Telegram API supports only http:// or https://.","notify.error.telegramTimeout":"Telegram API timeout ({seconds} s).","notify.error.telegramTokenInvalid":"Invalid Telegram bot token.","notify.error.telegramTokenMissing":"Telegram bot token is not set.","notify.error.testChannelOff":"Channel {channel} is disabled.","notify.error.testDisabled":"Notifications are disabled. Turn on the main switch.","notify.error.testNoChannels":"All channels are disabled. Enable webhook, Telegram or native notifications.","notify.error.testNotSent":"Test notification was not sent.","notify.error.testUnknown":"unknown error","notify.error.webhookScheme":"Webhook supports only http:// or https://.","notify.error.webhookTimeout":"Request timeout ({seconds} s).","notify.error.webhookUrlInvalid":"Invalid webhook URL.","notify.error.webhookUrlMissing":"Webhook URL is not set.","notify.matrix.failed":'❌ Matrix "{parent}" finished with errors: {success} succeeded, {error} failed out of {total}.',"notify.matrix.failedAll":'❌ Matrix "{parent}": all {total} clones failed.',"notify.matrix.partial":'⚠️ Matrix "{parent}" finished partially: {success} of {total} succeeded, {error} failed.',"notify.matrix.success":'✅ Matrix "{parent}" finished: {success} of {total} clones succeeded.',"notify.native.title":"OpenCode Scheduler","notify.ok.digestSent":"Digest sent.","notify.reason":": {error}","notify.stuck":'⏳ Matrix "{parent}": clone "{clone}" has been running longer than {minutes} min (started {startedAt}).',"notify.task.error":'❌ Task "{task}" failed ({duration}){error}{cost}',"notify.task.success":'✅ Task "{task}" completed ({duration}){cost}',"notify.dedup.count":"(repeat {count})","notify.telegram.openDashboard":"📊 Open dashboard","notify.telegram.openDashboardUrl":"📊 Open dashboard: {url}","notify.test.body":"🧪 Test notification from OpenCode Scheduler — the channel is configured correctly.","notify.test.errors":"Errors: {errors}.","notify.test.sent":"Sent: {channels}.","notify.usage.tokens":"{tokens} tok","schedule.error.cronEmptyItem":'Empty item in the list "{token}".',"schedule.error.cronFields":'Expected 5 cron fields, got {count}: "{raw}".',"schedule.error.cronRangeBounds":'Range "{item}" is outside {min}..{max}.',"schedule.error.cronRangeInvalid":'Invalid range "{item}".',"schedule.error.cronStepInvalid":'Invalid step "/{step}" in "{raw}".',"schedule.error.cronStepMissing":'Invalid step in "{raw}": nothing before "/".',"schedule.error.cronValueBounds":'Value "{raw}" is outside {min}..{max}.',"schedule.error.everyInterval":'Unsupported interval "@every {value}" (m: 1..59, h: 1..23, d: 1..31).',"schedule.error.lastDomOnly":'"L" is supported only in the day-of-month field.',"schedule.error.notAfterFormat":'notAfter must be in HH:MM format, not "{value}".',"schedule.error.notBeforeFormat":'notBefore must be in HH:MM format, not "{value}".',"schedule.error.weekdayBounds":'Weekday "{value}" is outside 0..7 in "{field}".',"schedule.reason.dayNotAllowed":"weekday not allowed ({days})","schedule.reason.outsideWindow":"time outside the window {notBefore}–{notAfter}","schedule.weekday.0":"Sun","schedule.weekday.1":"Mon","schedule.weekday.2":"Tue","schedule.weekday.3":"Wed","schedule.weekday.4":"Thu","schedule.weekday.5":"Fri","schedule.weekday.6":"Sat","server.hookTaskMissing":'Task "{task}" not found — hook rejected.',"server.matrixNotFound":'Matrix "{parentId}" not found.',"server.methodNotAllowed":"Method not allowed.","server.notFound":"Page not found.","server.taskNotFound":'Task "{task}" not found.',"shadow.enabled":"Shadow mode enabled","shadow.disabled":"Shadow mode disabled","shadow.active":"Shadow mode active for {days} more days","shadow.expired":"Shadow mode expired","shadow.total":"Decisions recorded: {count}","shadow.skips":"Would have suppressed: {count}","shadow.noData":"No data","shadow.report":"Shadow triage report","shadow.reset":"Reset","tool.error.allowedToolsEmpty":'Task "{task}": an empty allowedTools is not allowed — provide a tool list or omit the field.',"tool.error.cronSchedule":"triggerType=cron requires a schedule cron expression.","tool.error.gitCwdRequired":'Task "{task}": a git trigger requires a working directory or workspace.',"tool.error.gitNoRepo":'Task "{task}": a git trigger requires a git repository at "{path}".',"tool.error.matrixCloneFailed":'clone "{clone}" (workspace "{workspace}"): {error}',"tool.error.matrixConcurrency":'Task "{task}": matrix.concurrency must be a number not less than 1.',"tool.error.matrixExpandRuntime":'Failed to expand matrix "{name}": {error}. Created clones were removed.',"tool.error.matrixNoClones":'Matrix "{name}" has no clones.',"tool.error.matrixNotMatrix":'Task "{name}" is not a matrix.',"tool.error.matrixOverride":'Task "{task}": matrix.overrides contains workspace "{workspace}" that is not listed in workspaceIds.',"tool.error.mcpEventRequired":"An MCP trigger requires an event name (mcpEvent.event).","tool.error.onceFields":"runAt/delaySeconds are only allowed with triggerType=once.","tool.error.onceMatrixSchema":"One-shot cannot be combined with matrix: a matrix is started manually only.","tool.error.onceMatrixUpdate":"One-shot cannot be combined with matrix.","tool.error.onceSchedule":"triggerType=once requires runAt (ISO-8601) or delaySeconds.","tool.error.oneShotMatrix":'Task "{name}": one-shot cannot be combined with matrix. Start the matrix manually or use a cron/file trigger.',"tool.error.pauseDateInvalid":'Task "{name}": invalid pause date "{until}". An ISO instant is required, e.g. 2026-12-01T09:00:00Z.',"tool.error.pauseDatePast":'Task "{name}": the pause date has already passed.',"tool.error.prepareFiles":"Failed to prepare task files: {error}","tool.error.schedulerKeptFiles":"Wrapper files were kept for diagnostics.","tool.error.schedulerNotConfirmed":'The scheduler did not confirm creation of task "{task}": it is missing from {scheduler}.',"tool.error.schedulerRemovedFiles":"Task files were removed; no database record was created.","tool.error.sessionMaxRuns":'Task "{name}": sessionMaxRuns must be an integer ≥ 1.',"tool.error.sessionUnknown":'Task "{name}": unknown session mode "{session}".',"tool.error.taskNameMissing":"Task name is required.","tool.error.taskNotFound":'Task "{name}" not found.',"tool.error.taskReason":'Task "{name}": {error}',"tool.error.timezone":'Task "{task}": unknown timezone "{timezone}". Specify an IANA zone, e.g. Europe/Moscow.',"tool.error.updateCron":'Updating task "{name}" requires a cron schedule.',"tool.error.updatePrompt":'Updating task "{name}" requires a prompt.',"tool.error.window":'Task "{task}": {error}',"tool.error.workspaceIdConflict":'Task "{task}": workspaceId and matrix.workspaceIds cannot be used together.',"tool.error.workspaceIdMissing":"Workspace '{id}' not found.","tool.error.workspaceIdsEmpty":'Task "{task}": matrix.workspaceIds cannot be empty.',"tool.error.workspaceMissing":'Task "{task}": workspace "{id}" not found.',"tool.error.workspacePathMissing":"Workspace '{name}' is unavailable at '{path}'","tool.error.workspaceUnavailable":'Task "{task}": workspace "{workspace}" is unavailable at "{path}".',"tool.error.wrapper":"Failed to create the task wrapper: {error}","tool.event.nameRequired":"Event name is required.","tool.event.nameRequiredShort":"Event name is required (eventName).","tool.event.none":'No tasks are subscribed to event "{event}".',"tool.event.processed":'Event "{event}" processed. Tasks started: {count}.',"tool.event.triggered":"Tasks started: {count}.","tool.history.cleanFailed":"Failed to clean history: {error}","tool.history.cleaned":"Deleted {deleted} records (by age: {byAge}, by limit: {byCount}), {kept} left.","tool.localAi.unchanged":"Settings unchanged.","tool.localAi.updateFields":"For action=update pass at least one field: mode, baseUrl, model, timeoutMs, fallback, confidenceThreshold or shadow.","tool.localAi.updated":"Local assistant settings saved: {fields}.","tool.matrix.actionName":"action={action} requires the matrix name.","tool.matrix.cancelFinished":"Already finished and left untouched: {count}.","tool.matrix.cancelRunning":"Stopped running: {count}.","tool.matrix.cancelSummary":'Matrix "{matrix}": cancelled {cancelled} of {total} clones.',"tool.matrix.cancelWarnings":"Warnings: {warnings}.","tool.matrix.completed":'Matrix "{name}" completed. Check the clone results: {clones}.',"tool.matrix.limit":"The concurrent task limit has been reached. Wait for the current tasks to finish.","tool.matrix.orphansNone":"No orphaned tasks found.","tool.matrix.orphansRemoved":"Removed orphaned tasks: {count}.","tool.matrix.parentMissing":"Matrix parentId is required.","tool.matrix.recreateFailed":"{clone}: failed to recreate — {error}","tool.matrix.started":'Matrix "{name}": started {started} of {total}',"tool.matrix.startedErrors":". Errors: {errors}","tool.matrix.startedSkipped":", skipped {count}","tool.matrix.stopFailed":"{clone}: failed to stop — {error}","tool.profile.active":"Active profile: {name}. Restart OpenCode to apply the changes.","tool.profile.created":'Profile "{name}" created (dashboard port {port}).',"tool.profile.deleted":'Profile "{name}" deleted along with its database and settings.',"tool.profile.envVar":"The profile is set by OPENCODE_SCHEDULER_PROFILE={name}. Restart OpenCode.","tool.profile.envVarLong":"The profile is set by OPENCODE_SCHEDULER_PROFILE={name}. Restart OpenCode to apply the changes.","tool.profile.nameRequired":"action={action} requires a profile name.","tool.profile.notFound":"Profile not found.","tool.secret.deleted":"Secret {name} deleted.","tool.secret.nameRequired":"set/delete requires a secret name.","tool.secret.needName":"A secret name is required.","tool.secret.needValue":"A non-empty secret value is required.","tool.secret.notFound":"Secret {name} not found.","tool.secret.saved":"Secret {name} saved in encrypted form.","tool.secret.valueRequired":"action=set requires a non-empty value.","tool.settings.updateFields":"For action=update pass at least one field: maxConcurrent, locale, winterMode, notifications, history, integrations or audit.","tool.task.alreadyAbsent":'Task "{name}" is already absent (deleted or never existed).',"tool.task.alreadyRunning":'Task "{name}" is already running.',"tool.task.autosave":"failed to save auto-resume: {error}","tool.task.created":'Task "{name}" created successfully.',"tool.task.deleted":'Task "{name}" deleted successfully.',"tool.task.found":"Tasks found: {count}.","tool.task.foundOsUnavailable":"Tasks found: {count}. OS scheduler status is unavailable — showing database state.","tool.task.listEmpty":"No plugin tasks found.","tool.task.listOsUnavailable":"OS scheduler status is unavailable — showing database state.","tool.task.matrixDeletedCount":'Matrix "{name}" deleted along with {count} tasks (clones and aggregator).',"tool.task.matrixDeletedList":'Matrix "{name}" deleted along with its clones: {list}.',"tool.task.matrixPauseErrors":" Errors: {warnings}.","tool.task.matrixPaused":'Matrix "{name}" {verb}{until}: {affected} of {total} clones.',"tool.task.pauseError":" Error: {warnings}.","tool.task.paused":"paused","tool.task.pausedText":'Task "{name}" {verb}{until}.',"tool.task.resumed":"resumed","tool.task.rollbackFailed":'{cause} Rollback failed: {restore}. Task "{name}" is missing from the scheduler — create it again.',"tool.task.rollbackKept":"{cause} The previous version was left untouched: the task could not be removed from the scheduler.","tool.task.rollbackRestored":"{cause} The update was cancelled and the previous version restored.","tool.task.started":'Task "{name}" started.',"tool.task.until":" until {date}","tool.task.updated":'Task "{name}" updated.',"tool.template.deleted":"Template {id} deleted.","tool.template.namePromptRequired":"A non-empty template name and prompt are required.","tool.template.needDeleteId":"action=delete requires the template id.","tool.template.needId":"Template id is required.","tool.template.notFound":"Template {id} not found.","tool.template.saveRequired":"action=save requires non-empty name and prompt.","tool.transfer.importData":"action=import requires export data.","tool.transfer.noData":"Import data is required.","tool.transfer.noTasks":"The data contains no tasks to import.","tool.transfer.noTasksInFile":"The file contains no tasks to import.","tool.workspace.deleted":"Workspace deleted. Tasks were kept and their binding was cleared.","tool.workspace.needDeleteId":"action=delete requires id.","tool.workspace.needPath":"action=add requires path.","tool.workspace.needUpdateId":"action=update requires id.","tool.workspace.notFound":"Workspace not found."},Gm={"app.dashboardTitle":"网页仪表盘","common.runsCount":"运行次数:{count, plural, other {# 次}}","dryRun.cron":"按计划 “{schedule}”。","dryRun.cronParseError":"无法解析 cron “{schedule}”,无法计算后续运行时间。","dryRun.cronTimezone":"按计划 “{schedule}”({timezone})。","dryRun.cwdImplicit":"未显式设置工作目录——将使用当前项目文件夹。","dryRun.cwdMissing":"工作目录 “{path}” 不存在。","dryRun.cwdNotDir":"路径 “{path}” 存在,但不是目录。","dryRun.cycle":"检测到任务 “{task}” 周围的循环依赖——流水线在该节点处中断。","dryRun.danger.forcePush":"强制 git push(`git push --force`)","dryRun.danger.rmRoot":"可能递归清空文件系统根目录(`rm -rf /`)","dryRun.dangerPattern":"危险模式:{message}。","dryRun.dependencyMissing":"在任务中找不到依赖 “{task}”——已跳过该节点。","dryRun.file.any":"文件触发器:任何更改都匹配。","dryRun.file.globs":"通配模式:{count}","dryRun.file.ignore":"排除项:{count}","dryRun.file.trigger":"文件触发器:{parts}。","dryRun.git.branchMismatch":"分支与筛选条件 “{branch}” 不匹配。","dryRun.git.checkError":"Git 触发器:检查失败——{error}。","dryRun.git.notRepo":"任务设置了 Git 触发器,但工作目录不是 Git 仓库。","dryRun.manual":"手动运行(作为流水线的一部分)。","dryRun.matrix.expandError":"无法展开矩阵:{error}","dryRun.matrix.parent":"[{name}] 矩阵父任务本身不会执行——按工作区显示 {count} 个克隆。","dryRun.mcp.event":"MCP 事件 {server}:{event}{filter}。","dryRun.mcp.filter":"(筛选条件 “{filter}”)","dryRun.mcp.missing":"MCP 事件(参数未设置)。","dryRun.noHistory":"历史中没有成功运行——无法估算时长/令牌/成本。","dryRun.once":"一次性运行。","dryRun.once.at":"在 {runAt} 一次性运行。","dryRun.taskNotFound":"任务 “{task}” 不存在。","dryRun.window.noOpening":"当前{reason}:未找到时间窗开放时段,运行已跳过。","dryRun.window.outside":"不在时间窗内","dryRun.window.postpone":"当前{reason}:运行将推迟到 {nextOpenAt}。","dryRun.window.run":"当前{reason}:run 策略——任务仍将执行。","dryRun.window.skip":"当前{reason}:skip 策略下将跳过运行。","gitTrigger.baseline":"已记录当前提交 {commit}——任务将在下次变更时运行。","gitTrigger.branchMismatch":"分支 {branch} 与筛选条件 “{pattern}” 不匹配。","gitTrigger.changed":"新提交 {commit}:{count} 个文件已更改({files})。","gitTrigger.diffFailed":"无法读取 Git 变更:{error}。状态未推进——将在下次轮询时重试。","gitTrigger.ignored":"已更改文件:{count},但没有一个匹配筛选条件。","gitTrigger.noChanges":"没有新提交。","gitTrigger.noRepo":"“{cwd}” 不是 Git 仓库——Git 触发器不会触发。","gui.add":"+ 添加","gui.addWorkspaceFirst":"请先添加至少一个工作区。","gui.aggregation":"聚合","gui.allowedToolsLabel":"白名单(allowedTools)","gui.app.title":"任务调度器","gui.auditAction":"操作","gui.auditActionPlaceholder":"例如 task.create","gui.auditActor":"操作者","gui.auditDeletedFrom":"删除自","gui.auditEmpty":"暂无审计记录。","gui.auditEnable":"启用审计","gui.auditHeading":"📜 审计日志","gui.auditHint":"记录任务、设置、模板、配置、工作区、密钥、导入和历史清理的变更。详情会被遮蔽(密钥替换为 {redacted})。","gui.auditSource":"来源","gui.auditStorageHeading":"审计日志——存储","gui.auditTarget":"目标","gui.auditTargetPlaceholder":"任务/密钥名称","gui.auditTime":"时间","gui.botTokenEnvHint":"无需将令牌保存在 settings.json 中:设置 OPENCODE_SCHEDULER_TELEGRAM_BOT_TOKEN 和 OPENCODE_SCHEDULER_TELEGRAM_CHAT_ID 即可。","gui.botTokenPlaceholder":"来自 @BotFather 的机器人令牌","gui.cancel":"取消","gui.chatIdPlaceholder":"chat_id(例如 123456789 或 -100...)","gui.cleaningUp":"正在清理…","gui.cleanupNow":"🧹 立即清理","gui.collapseFormTitle":"折叠表单","gui.common.projectDir":"(项目文件夹)","gui.common.unknownError":"未知错误","gui.concurrencySequentialPlaceholder":"1(串行)","gui.concurrencyUnlimitedPlaceholder":"无限制","gui.createProfile":"+ 创建","gui.createTask":"➕ 创建任务","gui.createTaskSubmit":"创建任务","gui.creating":"正在创建…","gui.cron.custom":"自定义计划…","gui.cron.dailyAt9":"每天 09:00","gui.cron.everyHour":"每小时","gui.cron.everyMinute":"每分钟","gui.cron.mondayAt10":"每周一 10:00","gui.cronExprLabel":"Cron 表达式","gui.customTemplate":"自定义模板:","gui.dashboardLink":"仪表盘链接","gui.days":"天","gui.defaultSuffix":"(默认)","gui.delete":"删除","gui.deleteTemplateTitle":"删除模板","gui.deniedToolsLabel":"黑名单(deniedTools)","gui.dependsOnHint":"当所有选中的任务成功完成后,该任务将自动启动。","gui.dependsOnLabel":"依赖任务(成功完成)","gui.digestChannels":"渠道:webhook、Telegram、系统原生通知。","gui.digestDaily":"每天","gui.digestEnable":"发送摘要","gui.digestHeading":"摘要","gui.digestHint":"每天/每周的运行次数、成功率、成本和主要错误。","gui.digestLastSent":"上次发送:{when}","gui.digestNeverSent":"尚未发送","gui.digestWeekly":"每周(周一)","gui.dryRunButton":"🧪 预览","gui.dryRunLocalTitle":"🧪 预览(本地,基于表单字段)","gui.dryRunMatrixPreview":"矩阵:每个工作区将创建 {count, plural, other {# 个克隆}};父任务本身不运行。","gui.dryRunNoNameWarning":"未指定名称——预览为本地预览(表单未保存)。","gui.dryRunPreviewTitle":"基于当前表单字段的命令本地预览(无 RPC,不运行)","gui.editingTask":"正在编辑任务","gui.emptyNormal":"没有活动任务。创建第一个任务,把例行工作交给 AI!","gui.emptyWinter":"还没有任务。是时候装饰圣诞树了!","gui.errorBoundaryDetail":"显示发生错误。请尝试重新加载面板。","gui.expandFormTitle":"展开任务创建表单","gui.export":"导出","gui.exportBusy":"正在导出…","gui.filterExcludePlaceholder":"排除任务(逗号分隔,* 为通配符)","gui.filterHint":"空的“仅”列表 = 所有任务。排除优先于包含。","gui.filterIncludePlaceholder":"仅这些任务(逗号分隔,* 为通配符)","gui.filterSummary":"筛选:{scope} · 显示 {visible} / {total}","gui.gitBranchesLabel":"分支(glob,逗号分隔;为空表示任意)","gui.gitIgnoreLabel":"忽略的路径(glob,每行一个)","gui.gitPathsLabel":"变更路径(glob,每行一个;为空表示任意文件)","gui.gitPollHint":"首次轮询会记录当前 HEAD 而不运行任务——之后任务将在触及匹配文件的新提交上启动。","gui.gitPollLabel":"轮询间隔,秒(最少 5,默认 60)","gui.hideForm":"隐藏表单 ▴","gui.history.durationMs":"{ms} 毫秒","gui.history.error":"❌ 失败","gui.history.modelTitle":"模型:{model}","gui.history.nextTaskTitle":"链中的下一个任务已启动","gui.history.success":"✅ 成功","gui.historyCleanupHint":"仅删除已完成的记录;未完成的运行会保留。","gui.historyDeleteOlderLabel":"删除早于以下天数的记录","gui.historyHeading":"🧹 历史记录与保留策略","gui.historyKeepMaxLabel":"最多保留记录数","gui.historyNoExpiry":"无期限","gui.historyNoLimit":"无限制","gui.historyOlderThan":"早于 {days} 天","gui.historyUpToRecords":"最多 {count} 条记录","gui.import":"导入","gui.importBusy":"正在导入…","gui.job.activeDaysTitle":"仅在以下日期运行:{days}","gui.job.cancelMatrixTitle":"取消正在运行的矩阵克隆 “{name}”","gui.job.deleteMatrixTitle":"删除矩阵 “{name}” 及其克隆","gui.job.deleteTitle":"删除 “{name}”","gui.job.dependsOn":"🔗 依赖于:{list}","gui.job.dryRunTitle":"Dry-Run 模拟 “{name}”","gui.job.durationEst":"⏱ 约 {seconds} 秒","gui.job.editTitle":"编辑 “{name}”","gui.job.fanoutConcurrency":",并发:{concurrency}","gui.job.fanoutOverrides":",工作区覆盖:{overrides}","gui.job.fanoutTitle":"矩阵扇出:{count} 个克隆,策略:{strategy},失败时:{failureMode}{concurrency}{overrides}","gui.job.gitTriggerBranch":",分支 {branch}","gui.job.gitTriggerPaths":",路径:{paths}","gui.job.gitTriggerTitle":"Git 触发器:新提交{branch}{paths}。每 {seconds} 秒轮询。","gui.job.historyEmpty":"还没有运行记录。","gui.job.historyPanelTitle":"📜 最近的运行历史","gui.job.historyTitle":"历史 “{name}”","gui.job.logonModeUnknown":"未知","gui.job.logsTitle":"日志 “{name}”","gui.job.matrixClone":"矩阵克隆。父任务:{parent}","gui.job.matrixDone":"📦 矩阵:{success}/{total} 成功","gui.job.mcpEventFilterSuffix":"(筛选条件:{filter})","gui.job.mcpEventTitle":"MCP 事件:{event}{filterSuffix}","gui.job.modelTitle":"LLM 模型:{model}","gui.job.pauseTitle":"暂停 “{name}”","gui.job.pauseUnavailable":"任务 “{name}” 在操作系统计划程序中不存在——无法暂停","gui.job.pausedUntilShort":"⏸ 到 {date}","gui.job.pausedUntilTitle":"已暂停至 {date}——任务将自动恢复。","gui.job.priorityTitle":"优先级:{label}({priority})","gui.job.resumeTitle":"恢复 “{name}”","gui.job.runTitle":"运行 “{name}”","gui.job.runWhenLoggedOffShort":"无需登录","gui.job.runWhenLoggedOffTitle":"任务在无用户登录时运行。计划程序登录模式:{mode}","gui.job.runsLine":"📊 总计:{total} | ✅ {success} | 🟠 {partial} | ❌ {error}","gui.job.runsTitle":"仅此任务的运行:成功 / 部分成功 / 错误与超时","gui.job.sessionContinueShort":"↪ 继续","gui.job.sessionContinueTitle":"继续上一个 OpenCode 会话(--continue)","gui.job.sessionReuseShort":"⟳ 会话","gui.job.sessionReuseTitle":"可复用的 OpenCode 会话","gui.job.sessionReuseTitleId":"可复用的 OpenCode 会话:{id}","gui.job.simulating":"模拟中…","gui.job.simulationFailed":"模拟失败","gui.job.timezoneTitle":"任务时区:{tz}","gui.job.tokensEst":"· 约 {tokens} 令牌","gui.job.toolLimitsTitle":"工具限制:{limits}","gui.job.totalsLine":"Σ {duration} 秒 · {tokens} 令牌{cost}","gui.job.watchFile":"文件监视:{path}","gui.job.watchGlobsCount":"✳ {count, plural, other {# 个模式}}","gui.job.watchGlobsTitle":"文件触发器 Glob 模式:{globs}","gui.job.windowTitle":"运行时间窗:{from}–{to}。在时间窗外,运行会推迟到时间窗开始。","gui.jobStatus.error":"🔴 错误","gui.jobStatus.never":"⚪ 从未运行","gui.jobStatus.orphan":"🧟 不在操作系统计划程序中","gui.jobStatus.partial":"🟠 部分","gui.jobStatus.paused":"⏸ 暂停","gui.jobStatus.running":"🟡 正在运行:{seconds} 秒","gui.jobStatus.success":"🟢 完成","gui.jobStatus.unknown":"⚪ 未知","gui.jobsTitle":"调度器","gui.languageAuto":"自动(跟随 OpenCode)","gui.languageEn":"英语","gui.languageRu":"俄语","gui.languageTitle":"界面语言:「自动」跟随 OpenCode 语言","gui.languageZh":"中文","gui.lastCleanupDone":"{when} · 已删除 {deleted}","gui.lastCleanupLabel":"上次清理:","gui.lastCleanupNever":"尚未运行","gui.loading":"正在加载…","gui.logs.empty":"(空)","gui.logs.loadFailed":"加载日志失败","gui.logs.loading":"加载日志中…","gui.logs.readError":"读取日志失败:","gui.logsHeading":"日志","gui.matrix.cancelClonesConfirm":"取消运行中的矩阵克隆 “{name}”?","gui.matrix.deleteConfirm":"删除矩阵 “{name}” 及其所有克隆和聚合任务?","gui.matrixAggregator":"创建聚合任务 matrix-complete(在所有克隆完成后运行)","gui.matrixAllFailed":"全部失败","gui.matrixConcurrency":"并发克隆数(concurrency)","gui.matrixContinue":"continue — 继续执行","gui.matrixHint":"模板任务会扩展为每个工作区的克隆。父任务本身不执行——它启动克隆并汇总结果。","gui.matrixModelPlaceholder":"模型(覆盖)","gui.matrixNotifyEnable":"通知矩阵完成","gui.matrixNotifyHeading":"矩阵","gui.matrixOverridesTitle":"⚙ 按工作区覆盖 — 已覆盖 {count}","gui.matrixParallel":"parallel — 全部同时","gui.matrixPerTask":"per-task — 按任务","gui.matrixPromptPlaceholder":"提示词(默认——共用表单提示词)","gui.matrixSelectHint":"至少选择一个工作区——克隆预览将在此处显示。","gui.matrixSequential":"sequential — 逐一执行","gui.matrixStop":"stop — 停止","gui.matrixStuckHint":"运行时间超过给定时长的克隆会被通知一次。0 —— 禁用。","gui.matrixStuckMinutes":"停滞克隆,分钟:","gui.matrixSummary":"summary — 汇总","gui.matrixWillCreate":"将创建 {count, plural, other {# 个克隆}}:","gui.matrixWorkspacesSelected":"工作区(用于矩阵)——已选择","gui.maxConcurrentLabel":"最大并发任务数:","gui.maxRetriesLabel":"失败重试次数","gui.mcpEventLabel":"事件名称","gui.mcpEventPlaceholder":"例如 github.pr.opened","gui.mcpFilterHint":"key=value 会与 payload 字段比较;否则筛选条件按正则/子串处理。事件通过 RPC emit_event 到达。","gui.mcpFilterLabel":"筛选(可选)","gui.mcpFilterPlaceholder":'例如 repo="my-project" 或正则',"gui.mcpSourceLabel":"MCP 服务器 / 来源","gui.mcpSourcePlaceholder":"例如 github","gui.metricsTotalsLine":"📊 所有任务合计:{total} · ✅ {success} · ❌ {error}","gui.metricsTotalsTitle":"所有任务的汇总指标(包括归档的指标记录)","gui.modalShortcutHint":"Ctrl+Enter——保存,Escape——取消","gui.modelHint":"留空——使用 OpenCode 默认模型。否则会传入 --model 标志。","gui.modelLabel":"LLM 模型","gui.modelPlaceholder":"默认(同 OpenCode)","gui.nativeHint":"Windows Toast、macOS Notification Center、Linux notify-send。无外部依赖。","gui.nativeNotifications":"操作系统原生通知","gui.newTask":"新建任务","gui.noNameFallback":"(无名称)","gui.noOtherTasks":"暂时没有其他任务","gui.noWorkspaceOption":"无工作区——使用工作目录","gui.notifications":"🔔 通知","gui.notifyAllRuns":"所有运行","gui.notifyDisabled":"已关闭","gui.notifyEnable":"启用通知","gui.notifyOnlyErrors":"仅错误","gui.notifyOnlyOnError":"仅在出错时","gui.ok":"确定","gui.onFailure":"出错时","gui.oneShotDelayHint":"或从点击“创建任务”起的延迟秒数:","gui.oneShotDelayPlaceholder":"例如 3600","gui.oneShotHint":"runAt 优先:若设置了时间,则忽略 delaySeconds。运行一次后任务不再重复。","gui.oneShotTimeLabel":"一次性运行时间","gui.oneShotTimePlaceholder":"2026-11-14T10:00:00.000Z 或本地日期","gui.openDashboard":"🌐 打开仪表盘","gui.openDashboardTitle":"打开本地网页仪表盘(实际服务器端口)","gui.otherPriorityOption":"其他({priority})","gui.outsideWindowLabel":"时间窗之外或不允许的日期","gui.parseModeLabel":"标记:","gui.postflightHint":"例如 git push 或 npm run build。即使主任务失败,也会在任务工作目录中执行。","gui.postflightLabel":"运行后命令(Post-flight)","gui.postflightPlaceholder":"例如 git push","gui.preflightHint":"例如 git pull 或 npm install。在任务工作目录中执行。非零退出码会取消运行(Pre-flight script failed)。","gui.preflightLabel":"运行前命令(Pre-flight)","gui.preflightPlaceholder":"例如 git pull","gui.priority.critical":"严重","gui.priority.high":"高","gui.priority.low":"低","gui.priority.normal":"正常","gui.priorityHint":"如果几个任务同时就绪,优先级最高的任务先启动。","gui.priorityLabel":"优先级","gui.profile.deleteConfirm":"删除配置档 “{name}” 及其数据库、设置和日志?","gui.profile.namePrompt":"新配置档名称(拉丁字母、数字、- 和 _)","gui.profileActive":"当前","gui.profileDelete":"删除","gui.profileEnvLocked":"配置档由 OPENCODE_SCHEDULER_PROFILE 变量指定。无法在 GUI 中切换。","gui.profileEnvLockedTitle":"配置档由 OPENCODE_SCHEDULER_PROFILE 环境变量指定——无法在 GUI 中切换","gui.profilePort":"端口 {port}","gui.profilePortDefault":"默认端口","gui.profileSwitch":"切换","gui.profilesHeading":"👤 配置档","gui.profilesHint":"每个配置档都有自己的数据库、设置、日志和仪表盘端口。切换后请重启 OpenCode。","gui.profilesTitle":"配置档:独立的数据库、设置和仪表盘端口","gui.projectFolderFallback":"(项目文件夹)","gui.promptLabel":"提示词","gui.promptPlaceholder":"写一份简短的市场报告","gui.promptTemplateLabel":"提示词模板","gui.promptTemplates.codeHygiene":"代码卫生","gui.promptTemplates.codeHygienePrompt":"审计代码卫生:查找未使用的导入、未使用的变量、多余的依赖项并提出修复建议。","gui.promptTemplates.custom":"自定义提示词","gui.promptTemplates.morningDigest":"早晨摘要","gui.promptTemplates.morningDigestPrompt":"编制早晨摘要:过夜有哪些变化,是否有构建失败,今天需要关注什么。","gui.promptTemplates.nightWatch":"夜间守护(测试)","gui.promptTemplates.nightWatchPrompt":"运行夜间检查:运行测试,记录失败并撰写简短的仓库状态报告。","gui.qualityGateHint":"在 AI 成功响应后执行。非零退出码 = 任务失败。","gui.qualityGateLabel":"校验命令(Quality Gate)","gui.qualityGatePlaceholder":"例如 npm run test","gui.quietFrom":"从","gui.quietHours":"免打扰时段","gui.quietHoursHint":"在免打扰时段内,success 和 partial 会被抑制;错误和超时会发送。","gui.quietTo":"到","gui.refresh":"刷新","gui.remoteNotSet":"未设置 remote","gui.retryCount":"重试次数:","gui.retryDelayLabel":"重试前延迟(秒)","gui.retryDelayMs":"暂停,毫秒:","gui.retryHint":"在网络错误、超时、5xx 和 429 时重试(指数退避)。","gui.runWhenLoggedOffHint":"Windows:即使无人登录,任务也会运行(/ru SYSTEM)。它运行在 session 0 中——没有你的用户配置、映射驱动器或已保存的凭据——因此需要你的文件或网络的任务可能失败。创建此类任务通常需要以管理员身份运行 OpenCode。","gui.runWhenLoggedOffLabel":"在无用户登录时运行","gui.save":"💾 保存","gui.saveAsTemplate":"💾 另存为模板","gui.saveAsTemplateTitle":"将当前表单设置保存为模板","gui.saving":"正在保存…","gui.scheduleLabel":"调度","gui.secretNamePlaceholder":"密钥名称(A-Za-z0-9_.-)","gui.secretValuePlaceholder":"值(读取时不会返回)","gui.secrets":"🔐 密钥","gui.secretsEmpty":"没有密钥。值以加密形式存储在 secrets.json 中。","gui.secretsUsage":"在任务中使用 {secretRef} 引用——运行时从保险库注入值,并在日志中掩码。","gui.sendDigestNow":"📊 立即发送摘要","gui.sendTestNotification":"🧪 测试通知","gui.sending":"正在发送…","gui.sessionContinue":"上一个(--continue)","gui.sessionLabel":"OpenCode 会话","gui.sessionMaxRunsHint":"sessionId 由插件自动生成。达到上限后会话会被移除,下一次运行将启动一个全新会话。","gui.sessionMaxRunsLabel":"会话可存活的运行次数(sessionMaxRuns,可选)","gui.sessionNew":"新建","gui.sessionReuse":"复用","gui.silent":"静音","gui.strategy":"策略","gui.task.deleteConfirm":"删除任务 “{name}”?","gui.taskFiltersHeading":"任务筛选","gui.taskNameLabel":"任务名称","gui.taskNamePlaceholder":"例如 Gui-Test","gui.tasksHeading":"任务","gui.templateErrorPlaceholder":"❌ 任务 “{task}” 失败({duration}){error}","gui.templateHint":"占位符:{task} {status} {duration} {error} {emoji} {cost} {tokens}。留空 = 默认模板。","gui.templateSuccessPlaceholder":"✅ 任务 “{task}” 已完成({duration})","gui.templates.deleteConfirm":"删除模板“{name}”?","gui.templates.namePrompt":"模板名称","gui.templatesHeading":"消息模板","gui.timeoutMs":"超时,毫秒:","gui.timezoneHint":"其他时区——任务每分钟唤醒,按该时区检查 cron。","gui.timezoneLabel":"时区(IANA)","gui.timezonePlaceholder":"留空——系统时区","gui.toast.chooseFile":"选择文件","gui.toast.deleteFailed":"删除失败","gui.toast.digestFailed":"摘要未发送","gui.toast.digestSent":"摘要已发送","gui.toast.envInvalid":"env 格式无效","gui.toast.envSaveError":"保存 env 时出错","gui.toast.envSaveFailed":"无法保存 env","gui.toast.envSaved":"环境变量已保存","gui.toast.exportFailed":"导出失败","gui.toast.exported":"已导出任务:{count}","gui.toast.historyCleanupDone":"历史记录清理完成","gui.toast.historyCleanupFailed":"历史记录清理失败","gui.toast.historyLoadFailed":"加载历史记录失败","gui.toast.importFailed":"导入失败","gui.toast.imported":"已导入任务:{count}","gui.toast.jobsLoadFailed":"加载任务失败","gui.toast.logsReadFailed":"读取日志失败","gui.toast.matrixCancelError":"取消矩阵失败","gui.toast.matrixCancelFailed":"无法取消矩阵","gui.toast.noFileForImport":"未选择用于导入的文件。","gui.toast.nothingToSave":"没有可保存的内容","gui.toast.pauseError":"暂停失败","gui.toast.pauseFailed":"无法暂停 “{name}”","gui.toast.paused":"任务 “{name}” 已暂停","gui.toast.profileCreateError":"创建配置档失败","gui.toast.profileCreateFailed":"无法创建配置档","gui.toast.profileCreated":"配置档已创建","gui.toast.profileDeleteError":"删除配置档失败","gui.toast.profileDeleteFailed":"无法删除配置档","gui.toast.profileDeleted":"配置档已删除","gui.toast.profileSwitchError":"切换配置档失败","gui.toast.profileSwitchFailed":"无法切换配置档","gui.toast.profileSwitched":"配置档已切换","gui.toast.promptRequired":"请先填写提示词——创建模板时必填。","gui.toast.resumeError":"恢复失败","gui.toast.resumeFailed":"无法恢复 “{name}”","gui.toast.resumed":"任务 “{name}” 已恢复","gui.toast.runFailed":"运行失败","gui.toast.secretDeleted":"密钥已删除","gui.toast.secretNotDeleted":"密钥未删除","gui.toast.secretNotSaved":"密钥未保存","gui.toast.secretSaved":"密钥已保存","gui.toast.settingsSaveFailed":"无法保存设置","gui.toast.taskCrashed":"任务 “{name}” 失败","gui.toast.taskCreateFailed":"创建任务失败","gui.toast.taskCreated":"任务已创建","gui.toast.taskDeleted":"任务 “{name}” 已删除","gui.toast.taskDone":"任务 “{name}” 已完成","gui.toast.taskStartFailed":"无法启动 “{name}”","gui.toast.taskStarted":"任务 “{name}” 已启动","gui.toast.taskUpdateFailed":"更新任务失败","gui.toast.taskUpdated":"任务已更新","gui.toast.templateDeleteError":"删除模板失败","gui.toast.templateDeleteFailed":"无法删除模板","gui.toast.templateDeleted":"模板 “{name}” 已删除","gui.toast.templateSaveError":"保存模板失败","gui.toast.templateSaveFailed":"无法保存模板","gui.toast.templateSaved":"模板 “{name}” 已保存","gui.toast.testFailed":"测试失败","gui.toast.testSent":"测试通知已发送","gui.toast.workspaceAddFailed":"添加工作区失败","gui.toast.workspaceAdded":"工作区已添加","gui.toast.workspaceDeleteFailed":"删除工作区失败","gui.toast.workspaceDeleted":"工作区已删除","gui.toast.workspaceUpdateFailed":"更新工作区失败","gui.toast.workspaceUpdated":"工作区已更新","gui.toolLimitsDenied":"冲突时以 denied 为准。空的 allowedTools 不被允许。","gui.toolLimitsHeading":"🔒 工具限制","gui.toolLimitsNote":"⚠ 仅元数据:opencode 2.2.3 没有 allow/deny 开关——限制只记录在日志和历史中。","gui.toolPlaceholder":"自定义工具,例如 websearch","gui.triggerCron":"按计划(Cron)","gui.triggerFile":"文件变更时","gui.triggerGit":"新提交(Git)","gui.triggerOnce":"一次性","gui.triggerTypeLabel":"触发器类型","gui.uiError":"UI 错误:{message}","gui.unboundedPlaceholder":"无限制","gui.validation.cronRequired":"请指定 cron 计划。","gui.validation.dependsOnSelf":"任务不能依赖自身。","gui.validation.gitPollInvalid":"Git 轮询间隔——不小于 5 的整数秒。","gui.validation.gitWorkspaceRequired":"对于 Git 触发器,请选择工作区或设置工作目录。","gui.validation.matrixConcurrencyInvalid":"矩阵并发数——正整数。","gui.validation.matrixWorkspacesRequired":"请为矩阵选择至少一个工作区。","gui.validation.priorityInvalid":"优先级——0 到 10 的整数。","gui.validation.promptRequired":"请指定提示词。","gui.validation.retryCountInvalid":"重试次数——≥ 0 的整数。","gui.validation.retryDelayInvalid":"重试延迟——≥ 0 的整数秒。","gui.validation.runAtRequired":"请指定运行时间或延迟。","gui.validation.sessionMaxRunsInvalid":"会话运行上限——正整数。","gui.validation.taskNameRequired":"请指定任务名称。","gui.validation.timezoneInvalid":"未知时区。请使用 IANA 时区,例如 Europe/Moscow。","gui.validation.windowPairRequired":"运行时间窗只能以起止成对设置。","gui.watchFileLabel":"要监视的文件路径","gui.watchFilePlaceholder":"例如 C:\\project\\src\\main.ts","gui.watchGlobsHint":"通配模式基于 watchPath 解析。支持 *、**、? 和 [abc] 字符类;带 /** 的目录模式为递归。","gui.watchGlobsLabel":"Glob 模式(每行一个,留空表示任意更改)","gui.watchIgnoreLabel":"排除(glob,每行一个)","gui.webhookLabel":"Webhook(Discord / Slack / 通用)","gui.webhookPostHint":"以 JSON {payload} 发送 POST——兼容 Discord 和 Slack。","gui.weekday.0":"周日","gui.weekday.1":"周一","gui.weekday.2":"周二","gui.weekday.3":"周三","gui.weekday.4":"周四","gui.weekday.5":"周五","gui.weekday.6":"周六","gui.weekdaysLabel":"星期(空 — 全部)","gui.windowEndTitle":"时间窗结束(可早于开始时间)","gui.windowHint":"在时间窗外,运行会被推迟到时间窗开始,而不是跳过。例如 22:00 — 06:00。","gui.windowLabel":"运行时间窗(可选)","gui.windowPolicyHint":"对 cron,策略在包装器中生效;对文件和 Git 触发器,在处理事件时生效。推迟最多等待 12 小时。","gui.windowPostpone":"推迟到时间窗开始(默认)","gui.windowRun":"仍然执行","gui.windowSkip":"跳过本次运行","gui.windowStartTitle":"时间窗开始","gui.winterMode":"❄️ 冬季模式","gui.winterModeTitle":"切换冬季主题","gui.withSound":"带声音","gui.workingDirectoryHint":"任务将在此文件夹中运行 opencode run——会在此处读取 opencode.json 中的 MCP 服务器。","gui.workingDirectoryLabel":"工作目录","gui.workingDirectoryPlaceholder":"默认——项目文件夹","gui.workspace.deleteConfirm":"删除工作区 “{name}”?任务保留,绑定将被清除。","gui.workspace.envFilePrompt":"工作区 .env 文件路径(可选,空 —— 无文件)","gui.workspace.envInvalidHelp":"每行需为 KEY=VALUE;名称——拉丁字母/数字/_","gui.workspace.envPrompt":"工作区环境变量,每行一个 KEY=VALUE(空值清除)","gui.workspace.envSecretsMasked":"秘密在日志中已掩码","gui.workspace.namePrompt":"工作区名称(可选)","gui.workspace.namePromptShort":"工作区名称","gui.workspace.pathPrompt":"git 仓库路径(工作区)","gui.workspace.pathPromptShort":"git 仓库路径","gui.workspaceAddTitle":"添加工作区(git 仓库)","gui.workspaceAll":"全部工作区","gui.workspaceDeleteTitle":"删除工作区(任务保留)","gui.workspaceEditTitle":"编辑工作区","gui.workspaceEmpty":"未添加工作区。无工作区的任务将使用项目工作目录。","gui.workspaceEnvFile":" · .env 文件","gui.workspaceEnvLine":"{count} 个变量","gui.workspaceEnvTitle":"工作区环境变量(秘密在日志中已掩码)","gui.workspaceFilterTitle":"按工作区筛选任务","gui.workspaceGitInfo":"git: {branch} · {remote}","gui.workspaceMultiRepo":"工作区(多仓库)","gui.workspaceNone":"无工作区","gui.zeroKeepByAge":"0 = 不按时间删除","gui.zeroNoLimit":"0 = 无限制","gui.zeroUnlimited":"(0 = 无限制)","localAi.asyncHint":"模型模式(llm/auto)会异步进行分诊:通知立即发送,裁决写入审计日志。如果规则必须抑制通知,请使用规则模式。","localAi.baseUrl":"API 基础 URL(Ollama 或 OpenAI 兼容)","localAi.fallback":"当模型不响应时","localAi.fallback.notify":"无规则也通知","localAi.fallback.rules":"规则(fail-open)","localAi.hint":"模型名称为空或 Ollama 缺失不会阻止通知:由回退机制处理。URL 以 /v1 结尾会切换到 OpenAI 协议。","localAi.mode":"分诊模式","localAi.mode.auto":"先模型,后规则","localAi.mode.llm":"仅模型","localAi.mode.off":"关闭","localAi.mode.rules":"仅规则","localAi.model":"模型","localAi.modelPlaceholder":"例如 qwen3:4b","localAi.rulesHint":'内置规则涵盖错误、状态、成本和任务名称。自定义规则:notifications.triage.rules,例如 {"field":"cost","operator":"gte","value":1}。',"localAi.status.checking":"检查连接中…","localAi.status.error":"无连接","localAi.status.idle":"连接未检查","localAi.status.ok":"已连接","localAi.test":"测试连接","localAi.testFailed":"无连接:{reason}","localAi.testOk":"已连接:{model},{latency} 毫秒","localAi.testing":"检测中…","localAi.threshold":"置信度阈值","localAi.timeout":"超时,毫秒","localAi.title":"本地助手(分诊)","localAi.wizard":"分诊设置向导","localAi.wizard.back":"返回","localAi.wizard.closed":"向导未做更改即关闭。","localAi.wizard.finish":"完成并应用","localAi.wizard.next":"下一步","localAi.wizard.rule.costHigh":"5. cost-high — 成本 ≥ $1","localAi.wizard.rule.errorNetwork":"3. error-network — 网络 / DNS","localAi.wizard.rule.errorPermission":"2. error-permission — 权限拒绝","localAi.wizard.rule.errorQuality":"4. error-quality — 质量 / 构建","localAi.wizard.rule.errorTimeout":"1. error-timeout — 超时 / 网络错误","localAi.wizard.rule.statusError":"7. status-error — 任务失败","localAi.wizard.rule.statusSuccess":"8. status-success — 任务成功","localAi.wizard.rule.taskImportant":"6. task-important — deploy/release/backup/迁移","localAi.wizard.saveFailed":"无法保存设置。修复错误后重试。","localAi.wizard.screen1.baseUrl":"供应商基础 URL","localAi.wizard.screen1.baseUrlDesc":"http://127.0.0.1:11434 或 https://api.openai.com/v1","localAi.wizard.screen1.baseUrlHint":"对于 Ollama 通常是 http://127.0.0.1:11434。对于 OpenAI 兼容 API,请输入完整的基础 URL,例如 https://api.openai.com/v1。","localAi.wizard.screen1.baseUrlRequired":"输入 OpenAI 兼容供应商的基础 URL。","localAi.wizard.screen1.consequence":"如果模型不响应:通知仍会送达(回退模式),且在 llm/auto 模式下分诊仅为建议性质。","localAi.wizard.screen1.desc":"本地模型读取任务完成通知并帮助决定是否发送。选择供应商和模型。","localAi.wizard.screen1.model":"模型","localAi.wizard.screen1.modelDesc":"例如 qwen3:4b、llama3.1:8b 或 gpt-4o-mini。","localAi.wizard.screen1.modelRequired":"输入模型——没有模型分诊无法连接。","localAi.wizard.screen1.provider":"供应商","localAi.wizard.screen1.provider.ollama":"Ollama(本地)","localAi.wizard.screen1.provider.openai":"OpenAI 兼容 API","localAi.wizard.screen1.title":"第 1 步,共 3 步——选择模型","localAi.wizard.screen2.desc":"为您的情况选择现成的设置包。","localAi.wizard.screen2.preset.minimal":"最小化","localAi.wizard.screen2.preset.minimal.desc":"仅规则:快速可靠,无模型。除非规则匹配,否则不会抑制通知。","localAi.wizard.screen2.preset.recommended":"推荐","localAi.wizard.screen2.preset.recommended.desc":"规则加本地模型。如果模型不响应,则应用规则。速度与准确度的最佳平衡。","localAi.wizard.screen2.title":"第 2 步,共 3 步——预设","localAi.wizard.screen3.confidenceHint":"这是“回退到规则的阈值”,而不是“通知过滤器”。如果模型置信度低于阈值,控制权将传递给规则(或如果设置了 fallback: notify,则发送通知)。","localAi.wizard.screen3.confidenceThreshold":"模型置信度阈值(confidenceThreshold):","localAi.wizard.screen3.desc":"查看分诊规则触发顺序,并设置模型置信度阈值。","localAi.wizard.screen3.ruleOrder":"规则触发顺序(先重要):","localAi.wizard.screen3.title":"第 3 步,共 3 步——规则顺序","localAi.wizard.start":"开始设置","matrix.aggregate.empty":"矩阵 “{parent}” 没有克隆。","matrix.aggregate.partial":"部分成功:{success} / {total} 成功,{errors} 失败。","matrix.aggregate.running":"正在运行:{done} / {total}。","matrix.aggregate.stopped":"在第一个错误后停止:{total} 中的 {errors} 失败。","matrix.aggregate.stoppedFirst":" 第一个错误 ({name}): {error}","matrix.aggregate.success":"所有 {total} 个克隆均已成功完成。","matrix.aggregator.prompt":"矩阵 “{parent}” 的所有克隆已完成。请检查结果:{clones}。","matrix.cancel.defaultReason":"用户已取消。","matrix.clone.runningChanges":"克隆 “{name}” 正在运行——更改将在其完成后应用。","matrix.clone.runningDeletion":"克隆 “{name}” 正在运行——删除推迟到其完成后。","matrix.deletionGuard":"任务 “{name}” 是矩阵 “{parent}” 的克隆。请整体删除矩阵(父项 + 所有克隆),或更改父项的工作区列表。","matrix.error.cloneCreation":"任务 “{task}”:未能创建任何矩阵克隆。","matrix.error.noClones":"矩阵 “{task}” 没有克隆——请重新创建任务以将其扩展到工作区。","matrix.error.notMatrix":"任务 “{task}” 不是矩阵。","matrix.error.workspaceIdsEmpty":"任务 “{task}”:matrix.workspaceIds 不能为空。","matrix.error.workspaceMissing":"任务 “{task}”:工作区 “{workspace}” 未找到。","matrix.error.duplicateCloneName":"任务 “{task}”:克隆名称 “{name}” 已被其他工作区占用。请重命名工作区,使克隆名称唯一。","notify.dedup.count":"(重复 {count})","notify.digest.cost":"成本:{cost} · 令牌:{tokens}","notify.digest.noErrors":"无错误 🎉","notify.digest.period.daily":"过去一天内","notify.digest.period.weekly":"本周内","notify.digest.runs":"运行次数:{total} — ✅ {success},❌ {error},⚠️ {partial}({rate}%)","notify.digest.title":"📊 {period} 的 {date} 摘要","notify.digest.topErrorRow":"• {message} — {count}","notify.digest.topErrors":"热门错误:","notify.error.digestDisabled":"通知已禁用。","notify.error.digestFailed":"未能将摘要发送到任何通道。","notify.error.digestMissing":"未找到摘要设置。","notify.error.digestNoChannels":"所有通道都已禁用。请启用 webhook、Telegram 或原生通知。","notify.error.nativeFailed":"显示通知失败。","notify.error.telegramApiBaseInvalid":"Telegram API 地址无效。","notify.error.telegramChatMissing":"未设置 Telegram chat_id。","notify.error.telegramNoCreds":"Telegram 已启用,但未设置 botToken/chatId。","notify.error.telegramScheme":"Telegram API 仅支持 http:// 或 https://。","notify.error.telegramTimeout":"Telegram API 超时({seconds} 秒)。","notify.error.telegramTokenInvalid":"Telegram 机器人令牌无效。","notify.error.telegramTokenMissing":"未设置 Telegram 机器人令牌。","notify.error.testChannelOff":"通道 {channel} 已禁用。","notify.error.testDisabled":"通知已禁用。请打开主开关。","notify.error.testNoChannels":"所有通道都已禁用。请启用 webhook、Telegram 或原生通知。","notify.error.testNotSent":"测试通知未发送。","notify.error.testUnknown":"未知错误","notify.error.webhookScheme":"Webhook 仅支持 http:// 或 https://。","notify.error.webhookTimeout":"请求超时({seconds} 秒)。","notify.error.webhookUrlInvalid":"Webhook URL 无效。","notify.error.webhookUrlMissing":"未设置 Webhook URL。","notify.matrix.failed":"❌ 矩阵 “{parent}” 完成并有错误:成功 {success},失败 {error},共 {total}。","notify.matrix.failedAll":"❌ 矩阵 “{parent}”:所有 {total} 个克隆均失败。","notify.matrix.partial":"⚠️ 矩阵 “{parent}” 部分完成:{total} 中成功 {success},失败 {error}。","notify.matrix.success":"✅ 矩阵 “{parent}” 完成:{total} 中 {success} 个克隆成功。","notify.native.title":"OpenCode Scheduler","notify.ok.digestSent":"摘要已发送。","notify.reason":": {error}","notify.stuck":"⏳ 矩阵 “{parent}”:克隆 “{clone}” 已运行超过 {minutes} 分钟(开始于 {startedAt})。","notify.task.error":"❌ 任务 “{task}” 失败({duration}){error}{cost}","notify.task.success":"✅ 任务 “{task}” 已完成({duration}){cost}","notify.telegram.openDashboard":"📊 打开仪表盘","notify.telegram.openDashboardUrl":"📊 打开仪表盘:{url}","notify.test.body":"🧪 来自 OpenCode Scheduler 的测试通知 — 通道已正确配置。","notify.test.errors":"错误:{errors}。","notify.test.sent":"已发送:{channels}。","notify.usage.tokens":"{tokens} tok","schedule.error.cronEmptyItem":"列表 “{token}” 中有空项。","schedule.error.cronFields":"预期 5 个 cron 字段,实际 {count}: “{raw}”。","schedule.error.cronRangeBounds":"范围 “{item}” 超出 {min}..{max}。","schedule.error.cronRangeInvalid":"无效范围 “{item}”。","schedule.error.cronStepInvalid":"“{raw}” 中的无效步长 “/{step}”。","schedule.error.cronStepMissing":"“{raw}” 中的步长无效:“/” 前无内容。","schedule.error.cronValueBounds":"值 “{raw}” 超出 {min}..{max}。","schedule.error.everyInterval":"不支持的间隔 “@every {value}”(m: 1..59, h: 1..23, d: 1..31)。","schedule.error.lastDomOnly":"“L” 仅在“日”字段中受支持。","schedule.error.notAfterFormat":"notAfter 必须是 HH:MM 格式,而非 “{value}”。","schedule.error.notBeforeFormat":"notBefore 必须是 HH:MM 格式,而非 “{value}”。","schedule.error.weekdayBounds":"星期 “{value}” 在 “{field}” 中超出 0..7 范围。","schedule.reason.dayNotAllowed":"禁止的星期 ({days})","schedule.reason.outsideWindow":"时间不在窗口 {notBefore}–{notAfter} 内","schedule.weekday.0":"周日","schedule.weekday.1":"周一","schedule.weekday.2":"周二","schedule.weekday.3":"周三","schedule.weekday.4":"周四","schedule.weekday.5":"周五","schedule.weekday.6":"周六","server.hookTaskMissing":"任务 “{task}” 不存在——钩子已拒绝。","server.matrixNotFound":"矩阵 “{parentId}” 不存在。","server.methodNotAllowed":"方法不允许。","server.notFound":"页面不存在。","server.taskNotFound":"任务 “{task}” 不存在。","shadow.active":"Shadow 模式还剩 {days} 天激活","shadow.disabled":"Shadow 模式已禁用","shadow.enabled":"Shadow 模式已启用","shadow.expired":"Shadow 模式已过期","shadow.noData":"无数据","shadow.report":"Shadow 分诊报告","shadow.reset":"重置","shadow.skips":"将被抑制:{count}","shadow.total":"已记录决策:{count}","tool.error.allowedToolsEmpty":"任务 “{task}”:不允许空的 allowedTools——请提供工具列表或省略该字段。","tool.error.cronSchedule":"triggerType=cron 需要 cron 表达式 schedule。","tool.error.gitCwdRequired":"任务 “{task}”:Git 触发器需要工作目录或工作区。","tool.error.gitNoRepo":"任务 “{task}”:Git 触发器要求 “{path}” 是 Git 仓库。","tool.error.matrixCloneFailed":"克隆 “{clone}”(工作区 “{workspace}”):{error}","tool.error.matrixConcurrency":"任务 “{task}”:matrix.concurrency 必须是不小于 1 的数字。","tool.error.matrixExpandRuntime":"无法展开矩阵 “{name}”:{error}。已创建的克隆已移除。","tool.error.matrixNoClones":"矩阵 “{name}” 没有克隆。","tool.error.matrixNotMatrix":"任务 “{name}” 不是矩阵。","tool.error.matrixOverride":"任务 “{task}”:matrix.overrides 包含未在 workspaceIds 中列出的工作区 “{workspace}”。","tool.error.mcpEventRequired":"MCP 触发器需要事件名称(mcpEvent.event)。","tool.error.onceFields":"runAt/delaySeconds 仅在 triggerType=once 时允许。","tool.error.onceMatrixSchema":"One-shot 不能与矩阵组合:矩阵仅可手动启动。","tool.error.onceMatrixUpdate":"One-shot 不能与矩阵组合。","tool.error.onceSchedule":"triggerType=once 需要 runAt(ISO-8601)或 delaySeconds。","tool.error.oneShotMatrix":"任务 “{name}”:one-shot 不能与矩阵组合。请手动启动矩阵或使用 cron/文件触发器。","tool.error.pauseDateInvalid":"任务 “{name}”:暂停日期 “{until}” 无效。需要 ISO 瞬间,例如 2026-12-01T09:00:00Z。","tool.error.pauseDatePast":"任务 “{name}”:暂停日期已过。","tool.error.prepareFiles":"准备任务文件失败:{error}","tool.error.schedulerKeptFiles":"封装文件已保留用于诊断。","tool.error.schedulerNotConfirmed":"调度程序未确认创建任务 “{task}”:在 {scheduler} 中找不到它。","tool.error.schedulerRemovedFiles":"任务文件已删除;未创建数据库记录。","tool.error.sessionMaxRuns":"任务 “{name}”:sessionMaxRuns 必须是 ≥ 1 的整数。","tool.error.sessionUnknown":"任务 “{name}”:未知会话模式 “{session}”。","tool.error.taskNameMissing":"未传递任务名称。","tool.error.taskNotFound":"未找到任务 “{name}”。","tool.error.taskReason":"任务 “{name}”:{error}","tool.error.timezone":"任务 “{task}”:未知时区 “{timezone}”。请指定 IANA 时区,例如 Europe/Moscow。","tool.error.updateCron":"更新任务 “{name}” 需要 cron 计划。","tool.error.updatePrompt":"更新任务 “{name}” 需要提示词。","tool.error.window":"任务 “{task}”:{error}","tool.error.workspaceIdConflict":"任务 “{task}”:workspaceId 和 matrix.workspaceIds 不能同时使用。","tool.error.workspaceIdMissing":"未找到工作区 ‘{id}’。","tool.error.workspaceIdsEmpty":"任务 “{task}”:matrix.workspaceIds 不能为空。","tool.error.workspaceMissing":"任务 “{task}”:工作区 “{id}” 未找到。","tool.error.workspacePathMissing":"工作区 ‘{name}’ 在 ‘{path}’ 上不可用","tool.error.workspaceUnavailable":"任务 “{task}”:工作区 “{workspace}” 在 “{path}” 上不可用。","tool.error.wrapper":"创建任务封装失败:{error}","tool.event.nameRequired":"未传递事件名称。","tool.event.nameRequiredShort":"未传递事件名称(eventName)。","tool.event.none":"没有任务订阅事件 “{event}”。","tool.event.processed":"事件 “{event}” 已处理。启动的任务数:{count}。","tool.event.triggered":"启动的任务数:{count}。","tool.history.cleanFailed":"清理历史失败:{error}","tool.history.cleaned":"已删除 {deleted} 条记录(按年龄:{byAge},按上限:{byCount}),剩余 {kept} 条。","tool.localAi.unchanged":"设置未更改。","tool.localAi.updateFields":"action=update 时至少传递一个字段:mode、baseUrl、model、timeoutMs、fallback、confidenceThreshold 或 shadow。","tool.localAi.updated":"本地助手设置已保存:{fields}。","tool.matrix.actionName":"action={action} 需要矩阵名称。","tool.matrix.cancelFinished":"已完成且未动:{count}。","tool.matrix.cancelRunning":"已停止运行中的:{count}。","tool.matrix.cancelSummary":"矩阵 “{matrix}”:取消了 {total} 个克隆中的 {cancelled} 个。","tool.matrix.cancelWarnings":"警告:{warnings}。","tool.matrix.completed":"矩阵 “{name}” 已完成。查看克隆结果:{clones}。","tool.matrix.limit":"已达到并发任务上限。请等待当前任务完成。","tool.matrix.orphansNone":"未找到孤立的任务。","tool.matrix.orphansRemoved":"已删除孤立的任务:{count}。","tool.matrix.parentMissing":"需要矩阵 parentId。","tool.matrix.recreateFailed":"{clone}: 重新创建失败 — {error}","tool.matrix.started":"矩阵 “{name}”:已启动 {total} 中的 {started}","tool.matrix.startedErrors":". 错误:{errors}","tool.matrix.startedSkipped":", 已跳过 {count}","tool.matrix.stopFailed":"{clone}: 停止失败 — {error}","tool.profile.active":"当前配置档:{name}。重启 OpenCode 以应用更改。","tool.profile.created":"配置档 “{name}” 已创建(仪表盘端口 {port})。","tool.profile.deleted":"配置档 “{name}” 已连同其数据库和设置一起删除。","tool.profile.envVar":"配置档由 OPENCODE_SCHEDULER_PROFILE={name} 设置。重启 OpenCode。","tool.profile.envVarLong":"配置档由 OPENCODE_SCHEDULER_PROFILE={name} 设置。重启 OpenCode 以应用更改。","tool.profile.nameRequired":"action={action} 需要配置档名称。","tool.profile.notFound":"未找到配置档。","tool.secret.deleted":"秘密 {name} 已删除。","tool.secret.nameRequired":"set/delete 需要秘密名称。","tool.secret.needName":"需要秘密名称。","tool.secret.needValue":"需要非空的秘密值。","tool.secret.notFound":"未找到秘密 {name}。","tool.secret.saved":"秘密 {name} 已以加密形式保存。","tool.secret.valueRequired":"action=set 需要非空的值 value。","tool.settings.updateFields":"action=update 时至少传递一个字段:maxConcurrent、locale、winterMode、notifications、history、integrations 或 audit。","tool.task.alreadyAbsent":"任务 “{name}” 已不存在(已删除或从未存在)。","tool.task.alreadyRunning":"任务 “{name}” 已在运行。","tool.task.autosave":"保存自动恢复失败:{error}","tool.task.created":"任务 “{name}” 已成功创建。","tool.task.deleted":"任务 “{name}” 已成功删除。","tool.task.found":"找到任务:{count}。","tool.task.foundOsUnavailable":"找到任务:{count}。操作系统计划程序状态不可用——显示数据库状态。","tool.task.listEmpty":"未找到插件任务。","tool.task.listOsUnavailable":"操作系统计划程序状态不可用——显示数据库状态。","tool.task.matrixDeletedCount":"矩阵 “{name}” 已连同 {count} 个任务(克隆和聚合任务)一起删除。","tool.task.matrixDeletedList":"矩阵 “{name}” 已连同其克隆一起删除:{list}。","tool.task.matrixPauseErrors":" 错误:{warnings}。","tool.task.matrixPaused":"矩阵 “{name}” {verb}{until}:{total} 中的 {affected} 个克隆。","tool.task.pauseError":" 错误:{warnings}。","tool.task.paused":"已暂停","tool.task.pausedText":"任务 “{name}” {verb}{until}。","tool.task.resumed":"已恢复","tool.task.rollbackFailed":"{cause} 回滚失败:{restore}。任务 “{name}” 在计划程序中缺失——请重新创建。","tool.task.rollbackKept":"{cause} 先前版本未触动:无法从计划程序中移除任务。","tool.task.rollbackRestored":"{cause} 更新已取消,先前版本已恢复。","tool.task.started":"任务 “{name}” 已启动。","tool.task.until":" 至 {date}","tool.task.updated":"任务 “{name}” 已更新。","tool.template.deleted":"模板 {id} 已删除。","tool.template.namePromptRequired":"需要非空的模板名称和提示词。","tool.template.needDeleteId":"action=delete 需要模板 id。","tool.template.needId":"需要模板 id。","tool.template.notFound":"未找到模板 {id}。","tool.template.saveRequired":"action=save 需要非空的 name 和 prompt。","tool.transfer.importData":"action=import 需要导出数据。","tool.transfer.noData":"需要导入数据。","tool.transfer.noTasks":"数据中不包含要导入的任务。","tool.transfer.noTasksInFile":"文件中不包含要导入的任务。","tool.workspace.deleted":"工作区已删除。任务已保留,绑定已清除。","tool.workspace.needDeleteId":"action=delete 需要 id。","tool.workspace.needPath":"action=add 需要 path。","tool.workspace.needUpdateId":"action=update 需要 id。","tool.workspace.notFound":"未找到工作区。"};var Vm=e.template("<div><div style=display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%><div style=display:flex;align-items:center;gap:12px;flex:1;min-width:0><div style=flex:1;min-width:0><div style=display:flex;align-items:center;gap:6px;min-width:0><div style=font-weight:700;font-size:16px;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></div></div><div style=font-size:12px;color:#a0a0a6;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></div></div><div style=display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:110px></div></div><div style=display:flex;gap:6px><button></button><button></button><button>📄</button><button>🧪</button><button>📜</button><button>✏️"),Km=e.template("<span>📦 "),Zm=e.template('<span 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)">📦 Matrix (<!>)'),Qm=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #8e8e93;color:#b0b0b6;background:rgba(142,142,147,0.12)">↳ matrix '),Ym=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>👁️"),Jm=e.template('<span 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)">'),Xm=e.template('<span 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'),ef=e.template('<span 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)">📅 <!>/7'),tf=e.template('<span 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)">🌍 '),rf=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #bf5af2;color:#bf5af2;background:rgba(191,90,242,0.12)">🪟 <!>–'),of=e.template('<span style="font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid #ffd60a;color:#ffd60a;background:rgba(255,214,10,0.12)">'),nf=e.template('<span 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)">🌙 '),af=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>⚡"),lf=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>📡"),sf=e.template('<span 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)">'),df=e.template("<span style=font-size:12px;flex-shrink:0;cursor:help;color:#c084fc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px>🧠 "),uf=e.template("<span style=font-size:12px;flex-shrink:0;cursor:help;color:#f5a623;white-space:nowrap>🚀 "),cf=e.template("<span style=font-size:13px;flex-shrink:0;cursor:help>🔒"),pf=e.template("<div style=display:flex;flex-direction:column;gap:2px;margin-top:4px;font-size:11px;line-height:1.35><span style=color:#5ac8fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),gf=e.template("<div style=display:flex;flex-direction:column;gap:2px;margin-top:4px;font-size:11px;line-height:1.35><span>"),mf=e.template("<div style=display:flex;align-items:center;gap:8px;font-size:12px;color:#a0a0a6;margin-top:2px><span style=white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),ff=e.template("<span>→ "),yf=e.template("<div style=font-size:12px;color:#f5a623;font-weight:600;white-space:nowrap>"),bf=e.template("<div style=font-size:12px;font-weight:600;white-space:nowrap>"),hf=e.template("<button>⛔"),xf=e.template("<button>🗑"),vf=e.template('<div style="margin-top:8px;padding:8px 12px;background:#1e1e1e;border:1px solid #333;border-radius:6px;display:flex;flex-direction:column;gap:6px;width:100%"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;align-items:center;gap:6px><button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),ku=e.template('<div style="font-size:12px;color:#8e8e93;padding:6px 0">'),wf=e.template('<div style="display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#e0e0e0;padding:4px 0;border-bottom:1px solid #333"><span style=color:#8e8e93;white-space:nowrap></span><span style=fontWeight:600;whiteSpace:nowrap></span><span style=color:#b0b0b0;white-space:nowrap>'),kf=e.template("<span style=color:#c084fc;white-space:nowrap>🧠 "),Sf=e.template("<span style=whiteSpace:nowrap>⚡ pre: "),$f=e.template("<span style=whiteSpace:nowrap>⚡ post: "),_f=e.template("<div style=margin-top:2px;color:#ff6b6b;font-size:11px;white-space:pre-wrap;word-break:break-word>"),Tf=e.template("<span style=color:#5ac8fa;font-size:11px;white-space:nowrap>🔗 → "),Cf=e.template('<div style="margin-top:8px;padding:8px 12px;background:#1e1e1e;border:1px solid #333;border-radius:6px;display:flex;flex-direction:column;gap:6px;width:100%"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;align-items:center;gap:6px>🧪 Dry-Run: <button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),Af=e.template('<div style="font-size:12px;color:#ff6b6b;padding:6px 0">❌ '),zf=e.template("<div style=display:flex;flex-direction:column;gap:4px>"),Ef=e.template('<div style="font-size:11px;color:#f5a623;padding:4px 0">⚠ '),Pf=e.template('<div style="font-size:11px;color:#e0e0e0;padding:4px 0;border-bottom:1px solid #333;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline"><span style=color:#8e8e93;white-space:nowrap>#<!> </span><span style=font-weight:600;white-space:nowrap>🧪 </span><span style=color:#8e8e93;white-space:nowrap>cwd: </span><div style=width:100%;color:#a0a0a6;overflow-wrap:anywhere>$ '),Rf=e.template("<span style=color:#5ac8fa;white-space:nowrap>📦 "),Lf=e.template("<span style=color:#ff9f0a;white-space:nowrap>↳ matrix "),Mf=e.template("<span style=cursor:help>🔒"),Su=e.template("<span style=color:#8e8e93;white-space:nowrap>"),Df=e.template("<span style=color:#8e8e93;white-space:nowrap>· ~$"),Ff=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>⚡ pre: "),Of=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>⚡ post: "),If=e.template("<div style=width:100%;color:#8e8e93;overflow-wrap:anywhere>✅ QG: "),jf=e.template('<div style="font-size:11px;color:#b0b0b0;padding:4px 0">'),Nf=e.template('<div class=scheduler-panel-root><style>.scheduler-panel-root > * { flex-shrink: 0; }</style><div style=display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap><div style=min-width:0><h2 style=margin:0;font-size:22px;font-weight:800;letter-spacing:0.2px;line-height:1.2;color:#ffffff></h2><div style=margin-top:5px;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#8e8e93>Local AI CI/CD Orchestrator</div><div style=margin-top:4px;font-size:11px;color:#8e8e93></div></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><select style="padding:6px 10px;border-radius:999px;cursor:pointer;font-size:12px;border:1px solid #333;background:#1e1e1e;color:#e0e0e0;outline:none"><option value=auto>🌐 </option><option value=ru></option><option value=en></option><option value=zh></option></select><select style="padding:6px 10px;border-radius:999px;cursor:pointer;font-size:12px;border:1px solid #333;background:#1e1e1e;color:#e0e0e0;outline:none;max-width:200px"><option value=all></option><option value=none></option></select><button>👤 </button><button style="display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;transition:background 0.2s ease, border-color 0.2s ease;border:1px solid #333;background:#1e1e1e;color:#e0e0e0"></button><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div></div><div style=display:flex;gap:8px;flex-wrap:wrap;margin-top:8px><button></button><input type=file accept=.json style=display:none><button></button></div><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px><label style=font-size:12px;color:#b0b0b0;font-weight:500;white-space:nowrap></label><input type=number min=0 style="width:60px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93;white-space:nowrap></span></div><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"><button style="display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;background:transparent;border:none;color:#e0e0e0;font-size:12px;font-weight:600;cursor:pointer;text-align:left"><span></span><span style=display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400;color:#8e8e93><span></span></span></button></div><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"><button style="display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;background:transparent;border:none;color:#e0e0e0;font-size:12px;font-weight:600;cursor:pointer;text-align:left"><span></span><span style=display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400;color:#8e8e93> · <span></span></span></button></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><button 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><span></span><span style=font-size:11px;font-weight:400;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93></span></button></div></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><span style=font-size:12px;font-weight:600;color:#e0e0e0></span></div><div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div></div></div><div style="width:100%;max-width:700px;box-sizing:border-box;background:#1e1e1e;border:1px solid #333;border-radius:10px;overflow:hidden"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><button 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><span>📦 Workspaces</span><span style=font-size:11px;font-weight:400;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93></span></button><button></button></div></div><div style=display:block;width:100%;margin-top:24px><h3 style=margin:0;margin-bottom:8px;font-size:14px;font-weight:600;color:#ffffff>'),$u=e.template("<div style=padding:16px;color:#ff3b30;font-size:13px>"),_u=e.template("<option>📦 "),qf=e.template('<div style="background:#1e1e1e;border:1px solid #333;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px"><div style=display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap><div style=font-size:12px;font-weight:600;color:#e0e0e0></div><button></button></div><div style=display:flex;flex-direction:column;gap:6px></div><div style=font-size:11px;color:#8e8e93>'),Hf=e.template("<div style=font-size:11px;color:#ffd60a>"),Uf=e.template("<div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px><span></span><span style=font-size:11px;color:#8e8e93></span><span style=font-size:11px;color:#8e8e93;overflow:hidden;text-overflow:ellipsis;max-width:340px>"),Wf=e.template("<span style=font-size:11px;color:#34c759>"),Tu=e.template("<button>"),Bf=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><label style=display:flex;align-items:center;gap:8px;font-size:12px;color:#e0e0e0;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><input type=url placeholder=https://discord.com/api/webhooks/...><div style=font-size:11px;color:#8e8e93></div><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#b0b0b0><span></span><input type=number min=1000 max=120000 step=1000 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=number min=0 max=5 style="width:56px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=number min=100 max=60000 step=100 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0>Telegram</label><input type=password autocomplete=off><input type=text><div><span></span><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=HTML>HTML</option><option value=MarkdownV2>MarkdownV2</option><option value=Markdown>Markdown</option><option value>plain text</option></select><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><span></span><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span></span><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><input type=text><input type=text><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><input type=text><input type=text><div style=font-size:11px;color:#8e8e93></div></div><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"><div style="display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px"><span style=font-size:12px;font-weight:600;color:#e0e0e0></span><span style=font-size:11px;color:#8e8e93></span></div><div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><input type=text style="width:220px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><input type=password autocomplete=new-password style="width:320px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><button></button></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:auto></div><div style=font-size:11px;color:#8e8e93></div></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0>partial</label><label style=display:flex;align-items:center;gap:6px;cursor:pointer><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><span></span><input type=number min=0 max=10080 style="width:72px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;color:#e0e0e0;font-weight:600></div><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=daily></option><option value=weekly></option></select><input type=time style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=font-size:11px;color:#8e8e93></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><div style=font-size:12px;font-weight:600;color:#e0e0e0></div><div><label style=white-space:nowrap></label><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=off></option><option value=rules></option><option value=llm></option><option value=auto></option></select><label style=white-space:nowrap></label><select style="padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><option value=rules></option><option value=notify></option></select></div><div><input type=text placeholder=http://127.0.0.1:11434 style="width:220px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><input type=text style="width:160px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=white-space:nowrap></label><input type=number min=1000 max=120000 step=1000 style="width:90px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=white-space:nowrap></label><input type=number min=0 max=1 step=0.05 style="width:70px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"></div><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px><button></button><span style=display:inline-flex;align-items:center;gap:6px;font-size:11px><span></span><span></span></span></div><div style=font-size:11px;color:#8e8e93></div><button></button><div style=font-size:11px;color:#8e8e93;margin-top:4px></div></div><div style="border-top:1px solid #333;padding-top:10px;display:flex;flex-direction:column;gap:8px"><label><input type=checkbox style=accent-color:#5ac8fa;cursor:pointer;margin:0></label><div><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=1 max=365 style="width:70px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div><span style=font-weight:600> </span><span style=color:#ff6b6b> </span><button></button></div></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><button></button><button></button><span style=font-size:11px;color:#8e8e93>'),Gf=e.template('<span 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"><span style=font-weight:600;color:#569cd6></span><span style=color:#ce9178>•••• </span><button style="padding:2px 6px;background:#c43b2b;color:white;border:none;border-radius:3px;cursor:pointer;font-size:10px;font-weight:600;line-height:1">×'),Cu=e.template("<span style=font-size:11px;color:#8e8e93>"),Vf=e.template("<div style=font-size:11px;color:#d9a441;margin-top:4px>"),Kf=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:70px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=number min=0 style="width:80px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><span style=font-size:11px;color:#8e8e93></span></div><div style=font-size:11px;color:#8e8e93> </div><div style=display:flex;align-items:center;gap:10px;flex-wrap:wrap><button></button><span style=font-size:11px;color:#8e8e93>'),Zf=e.template('<div style="padding:0 14px 14px;display:flex;flex-direction:column;gap:10px"><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text style="width:150px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text placeholder=mcp/gui/http style="width:110px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><label style=font-size:12px;color:#e0e0e0;white-space:nowrap></label><input type=text style="width:180px;padding:4px 6px;background:#1e1e1e;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px;outline:none"><button></button></div><div style="width:100%;overflow:auto;border:1px solid #333;border-radius:6px;background:#0f0f0f"><table style=width:100%;border-collapse:collapse;font-size:11px><thead><tr style="border-bottom:1px solid #333"><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th><th style="text-align:left;padding:6px 8px;color:#8e8e93"></th></tr></thead><tbody></tbody></table></div><div style=font-size:11px;color:#8e8e93>'),Qf=e.template('<tr style="border-bottom:1px solid #222"><td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap"></td><td style="padding:5px 8px;color:#569cd6"></td><td style="padding:5px 8px;color:#e0e0e0;white-space:nowrap">: </td><td style="padding:5px 8px;color:#ce9178"></td><td style="padding:5px 8px;color:#e0e0e0"></td><td style="padding:5px 8px;color:#8e8e93;white-space:nowrap">'),Yf=e.template('<tr><td colspan=6 style="padding:10px 8px;color:#8e8e93;text-align:center">'),Jf=e.template('<div style="display:flex;flex-direction:column;gap:6px;padding:0 14px 12px">'),Xf=e.template('<div style="font-size:12px;color:#8e8e93;padding:4px 0">'),ey=e.template('<div style="display:flex;align-items:center;gap:10px;padding:8px 10px;background:#252526;border:1px solid #333;border-radius:8px;min-width:0"><span></span><div style=display:flex;flex-direction:column;gap:2px;flex:1;min-width:0><span style=font-size:12px;font-weight:700;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>📦 </span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span><span style=font-size:10px;color:#a0a0a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis></span></div><div style=display:flex;gap:4px;flex-shrink:0><button style=background:transparent;border:none;color:#a0a0a6;cursor:pointer;font-size:14px;padding:2px>🔑</button><button style=background:transparent;border:none;color:#a0a0a6;cursor:pointer;font-size:14px;padding:2px>✏️</button><button style=background:transparent;border:none;color:#ff3b30;cursor:pointer;font-size:14px;padding:2px>🗑'),ty=e.template('<button style="display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:700px;box-sizing:border-box;padding:12px 16px;background:#1e1e1e;border:1px dashed #3a3a3a;border-radius:10px;color:#e0e0e0;font-size:13px;font-weight:600;cursor:pointer;transition:border-color 0.18s ease, background 0.18s ease">'),iy=e.template('<div style="display:block;width:100%;max-width:700px;box-sizing:border-box;background:#1e1e1e;padding:20px;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,0.2)"><div style=display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;flex-wrap:wrap><h3 style=margin:0;font-size:14px;font-weight:600;color:#ffffff></h3><div style=display:flex;align-items:center;gap:8px;flex-wrap:wrap><button style="background:transparent;border:1px solid #333;border-radius:6px;padding:4px 10px;color:#a0a0a6;font-size:11px;cursor:pointer;white-space:nowrap;transition:color 0.18s ease, border-color 0.18s ease"></button><button style="background:transparent;border:1px solid #333;border-radius:6px;padding:4px 10px;color:#a0a0a6;font-size:11px;cursor:pointer;white-space:nowrap;transition:color 0.18s ease, border-color 0.18s ease"></button></div></div><div style="display:block;width:100%;margin-bottom:12px;padding:10px 12px;background:#1a1a1a;border:1px solid #333;border-radius:8px"><label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600;color:#fff><input type=checkbox style=accent-color:#ff9f0a>📦 Matrix (Fan-Out)</label><div style=font-size:11px;color:#8e8e93;margin-top:4px;line-height:1.45></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc>MCP Event</label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=triggerType style=accent-color:#007acc></label></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;flex-wrap:wrap><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label><label style=display:flex;align-items:center;gap:6px;cursor:pointer;flex:1><input type=radio name=sessionMode style=accent-color:#007acc></label></div></div><div style=width:100%;marginBottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select><div style=display:block;width:100%;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text list=iana-timezones 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"><datalist id=iana-timezones><option value=Europe/Moscow></option><option value=Europe/London></option><option value=Europe/Berlin></option><option value=America/New_York></option><option value=America/Los_Angeles></option><option value=Asia/Almaty></option><option value=Asia/Tokyo></option><option value=UTC></option></datalist><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div></div><div style=display:block;width:100%;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:8px;align-items:center><input type=time style="display:block;flex:1;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"><span style=color:#808080;font-size:12px>—</span><input type=time style="display:block;flex:1;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:13px;outline:none"></div><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div><div style=display:block;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style=display:flex;gap:10px;flex-wrap:wrap></div></div><div style=display:block;margin-top:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"><option value=postpone></option><option value=skip></option><option value=run></option></select><div style=display:block;margin-top:6px;font-size:11px;color:#808080></div></div></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=2 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"></textarea></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text list=scheduler-model-presets 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"><datalist id=scheduler-model-presets><option value=anthropic/claude-3-5-sonnet></option><option value=openai/gpt-4o></option><option value=deepseek/deepseek-coder></option><option value=google/gemini-2.5-pro></option><option value=openai/gpt-4o-mini></option></datalist><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"></select><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=0 placeholder=0 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=1 placeholder=60 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"></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><div style="display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;min-height:38px;box-sizing:border-box"></div><div style=font-size:11px;color:#8e8e93;margin-top:6px></div></div><details style=display:block;width:100%;margin-bottom:12px><summary style=cursor:pointer;font-size:12px;color:#b0b0b0;font-weight:500;margin-bottom:8px;user-select:none></summary><div style="display:block;width:100%;padding:10px;background:#1e1e1e;border:1px solid #333;border-radius:6px;box-sizing:border-box"><div style=font-size:11px;color:#8e8e93;margin-bottom:8px></div><div style=font-size:11px;color:#b0b0b0;margin-bottom:4px></div><div style=display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px></div><div style=font-size:11px;color:#b0b0b0;margin-bottom:4px></div><div style=display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px></div><div style=display:flex;gap:6px><input type=text style="flex:1;padding:6px 8px;background:#141414;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><button style="padding:6px 10px;background:transparent;border:1px solid #34c759;color:#34c759;border-radius:6px;cursor:pointer;font-size:12px">+ allowed</button><button style="padding:6px 10px;background:transparent;border:1px solid #ff3b30;color:#ff3b30;border-radius:6px;cursor:pointer;font-size:12px">+ denied</button></div></div></details><div style=display:block;width:100%;margin-top:8px><button style="display:block;width:100%;padding:8px;margin-top:4px;background:transparent;border:1px solid #333;border-radius:6px;color:#d4e6ff;cursor:pointer;font-size:12px"></button><button>'),ry=e.template('<div style=margin-top:10px;display:flex;flex-direction:column;gap:10px><div><div style=font-size:12px;color:#b0b0b0;font-weight:500;margin-bottom:6px></div></div><div style=display:flex;gap:8px;flex-wrap:wrap><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=parallel></option><option value=sequential></option></select></label><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=continue></option><option value=stop></option></select></label><label style=flex:1;min-width:150px;font-size:11px;color:#b0b0b0><select style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"><option value=summary></option><option value=per-task></option></select></label></div><label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#e0e0e0><input type=checkbox style=accent-color:#ff9f0a></label><label style=font-size:11px;color:#b0b0b0;max-width:240px><input type=number min=1 step=1 style="display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none"></label><div style="padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px;font-size:11px;line-height:1.55;color:#a0a0a6">'),oy=e.template("<div style=font-size:11px;color:#f5a623>"),ny=e.template('<div style="display:flex;flex-direction:column;gap:4px;max-height:170px;overflow:auto;padding:6px 8px;background:#141414;border:1px solid #333;border-radius:6px">'),ay=e.template("<label style=display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#e0e0e0><input type=checkbox style=accent-color:#ff9f0a><span>📦 </span><span style=font-size:10px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis>"),ly=e.template('<details style="padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px"><summary style=cursor:pointer;font-size:12px;color:#b0b0b0;font-weight:500></summary><div style=margin-top:8px;display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto>'),sy=e.template('<div style="padding:8px;background:#101010;border:1px solid #2a2a2a;border-radius:6px"><div>📦 <span style=margin-left:6px;font-size:10px;color:#8e8e93></span></div><div style=display:flex;flex-direction:column;gap:6px><textarea rows=2 style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;width:100%;resize:vertical;font-family:inherit"></textarea><div style=display:flex;gap:6px;flex-wrap:wrap><input style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"><input placeholder="Quality Gate (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"></div><div style=display:flex;gap:6px;flex-wrap:wrap><input placeholder="beforeScript (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px"><input placeholder="afterScript (override)"style="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box;flex:1;min-width:150px">'),dy=e.template("<div style=color:#ff9f0a;font-weight:600>"),uy=e.template("<div style=color:#e0e0e0;word-break:break-all>"),cy=e.template("<span style=color:#f5a623>"),py=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><select 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"><option value>'),gy=e.template('<div style="margin-top:8px;padding:8px 10px;background:#141414;border:1px solid #333;border-radius:6px;font-size:11px;line-height:1.55;color:#a0a0a6"><div>cwd = <span style=color:#e0e0e0></span></div><div>git branch = <span style=color:#5ac8fa></span></div><div>git remote = <span style=color:#e0e0e0>'),Au=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),my=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><label style="display:block;margin:12px 0 6px;font-size:12px;color:#b0b0b0;font-weight:500"></label><textarea rows=3 placeholder="**/*.md
3
3
  src/**"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"></textarea><label style="display:block;margin:12px 0 6px;font-size:12px;color:#b0b0b0;font-weight:500"></label><textarea rows=2 placeholder="node_modules/**
4
- *.log"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"></textarea><div style=font-size:11px;color:#8e8e93;margin-top:6px>`),Kg=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text placeholder="main, release/*"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">'),Yg=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=3 placeholder="src/**
5
- **/*.md"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">`),Jg=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=2 placeholder="docs/**
6
- *.lock"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">`),Qg=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=5 placeholder=60 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),Bl=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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">'),Zg=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style="font-size:11px;color:#8e8e93;margin:6px 0"></div><input type=number min=1 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),Xg=e.template('<div style=margin-top:8px><label style=display:block;margin-bottom:6px;font-size:11px;color:#8e8e93></label><input type=number min=1 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),em=e.template("<div style=display:block;width:100%;margin-bottom:12px><label style=display:flex;align-items:flex-start;gap:8px;cursor:pointer><input type=checkbox style=accent-color:#007acc;margin-top:3px><span><span style=display:block;font-size:12px;color:#b0b0b0;font-weight:500></span><span style=display:block;font-size:11px;margin-top:4px>"),Ni=e.template("<option>"),tm=e.template('<div style=display:block;width:100%;margin-top:8px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text placeholder="* * * * *"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">'),rm=e.template('<div style="display:block;max-height:80px;overflow-y:auto;margin-top:8px;padding:8px;background:#2a1113;border:1px solid #5a1d21;border-radius:6px;font-size:11px;line-height:1.4;color:#ff6b6b;white-space:pre-wrap;word-break:break-word">'),im=e.template("<label style=display:flex;align-items:center;gap:5px;cursor:pointer;font-size:12px;color:#d0d0d5><input type=checkbox style=accent-color:#007acc>"),om=e.template("<div style=display:flex;align-items:center;gap:6px;margin-top:8px><span style=font-size:10px;color:#8e8e93></span><button style=background:transparent;border:none;color:#ff3b30;cursor:pointer;font-size:14px;line-height:1;padding:0>🗑"),nm=e.template("<span style=font-size:11px;color:#ff3b30;font-weight:500;cursor:default>"),am=e.template("<span style=font-size:12px;color:#8e8e93>"),Sa=e.template("<label><input type=checkbox style=margin:0>"),sm=e.template("<span style=color:#5ac8fa;font-size:11px;margin-left:6px>(<!> allowed · <!> denied)"),lm=e.template("<div style=font-size:11px;color:#cfcfd2;margin-top:8px>"),dm=e.template("<div>allowed: [<!>]"),um=e.template("<div>denied: [<!>]"),pm=e.template('<button style="background:transparent;border:1px solid #333;border-radius:6px;padding:8px 16px;color:#ff3b30;cursor:pointer;font-size:13px;width:100%">'),cm=e.template('<div style="display:block;width:100%;margin-top:8px;padding:10px;background:#1e1e1e;border:1px solid #333;border-radius:6px"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;justify-content:space-between;align-items:center><button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),gm=e.template("<div style=display:flex;flex-direction:column;gap:4px;font-size:11px;color:#e0e0e0;margin-top:6px><div style=overflow-wrap:anywhere>$ </div><div style=color:#8e8e93>cwd: "),mm=e.template("<div style=color:#8e8e93>🔒 allowed=[<!>] · denied=[<!>]"),fm=e.template("<div style=color:#8e8e93>⚡ pre: "),ym=e.template("<div style=color:#8e8e93>⚡ post: "),bm=e.template("<div style=color:#8e8e93>✅ QG: "),xm=e.template("<div style=color:#f5a623>⚠ "),hm=e.template("<div style=font-size:11px;color:#8e8e93;margin-bottom:8px>"),vm=e.template('<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 16px;color:#a0a0a6;font-size:13px;gap:10px"><span style=font-size:40px;line-height:1></span><span style=max-width:380px;line-height:1.5>'),wm=e.template("<div style=display:flex;flex-direction:column;gap:0>"),km=e.template('<div style=position:fixed;inset:0;background:rgba(0,0,0,0.55);display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px><div style="width:min(540px,100%);background:#1e1e1e;border:1px solid #444;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 40px rgba(0,0,0,0.6)"><div style=font-size:13px;font-weight:600;color:#e0e0e0;white-space:pre-wrap></div><div style=display:flex;justify-content:flex-end;gap:8px><button style="padding:6px 14px;border-radius:6px;border:1px solid #3a3a3a;background:#262626;color:#e0e0e0;font-size:12px;cursor:pointer"></button><button style="padding:6px 14px;border-radius:6px;border:1px solid #0a84ff;background:#0a84ff;color:#fff;font-size:12px;font-weight:600;cursor:pointer">'),$m=e.template(`<textarea autofocus rows=6 style="width:100%;box-sizing:border-box;resize:vertical;padding:8px 10px;border-radius:8px;border:1px solid #3a3a3a;background:#141414;color:#e0e0e0;font-family:Menlo, Monaco, 'Courier New', monospace;font-size:12px;outline:none">`),Sm=e.template('<input autofocus style="width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1px solid #3a3a3a;background:#141414;color:#e0e0e0;font-size:13px;outline:none">'),_m=e.template("<div style=font-size:11px;color:#8e8e93>"),Tm=e.template(`<div style="position:fixed;bottom:16px;left:16px;right:16px;background:#1e1e1e;border:1px solid #333;border-radius:8px;padding:0;max-height:300px;overflow:hidden;display:flex;flex-direction:column;z-index:1000"><div style="display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #333;background:#252526;border-radius:8px 8px 0 0"><div style=display:flex;align-items:center;gap:8px><span style=font-size:13px;font-weight:600;color:#ffffff></span><span style=font-size:11px;color:#8e8e93></span></div><button style=background:transparent;border:none;color:#8e8e93;cursor:pointer;font-size:18px;line-height:1;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center>✕</button></div><div style="flex:1;overflow-y:auto;padding:12px;font-family:Menlo, Monaco, 'Courier New', monospace;font-size:11px;line-height:1.5;color:#d4d4d4;background:#1e1e1e;border-radius:0 0 8px 8px">`),Cm=e.template("<div style=white-space:pre-wrap;margin-bottom:2px>"),Em=e.template(`<div style="padding:16px;display:flex;flex-direction:column;gap:16px;font-size:13px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e0e0e0;background:#0f0f0f"><h2 style=margin:0;font-size:22px;font-weight:800;color:#ffffff></h2><div style=margin-top:5px;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#8e8e93>Local AI CI/CD Orchestrator</div><div style="background:#2a1a1a;border:1px solid #ff3b30;border-radius:8px;padding:16px;color:#ff3b30">`);rd("ru",_c);rd("en",Tc);const[Pm,zm]=d.createSignal(0),t=(s,y)=>(Pm(),Sc(s,y)),_a=s=>{bc(s),zm(y=>y+1)};function Rm(s){switch(s){case"running":return"#f5a623";case"success":return"#34c759";case"error":return"#ff3b30";case"partial":return"#ff9f0a";default:return"#8e8e93"}}const _t=5,Ul="form";function Gl(s){const y=typeof s=="number"&&Number.isFinite(s)?Math.min(10,Math.max(0,Math.floor(s))):_t;return y>=10?t("gui.priority.critical"):y>=8?t("gui.priority.high"):y<=3?t("gui.priority.low"):t("gui.priority.normal")}const Vl=()=>[{value:2,label:t("gui.priority.low")},{value:5,label:t("gui.priority.normal")},{value:8,label:t("gui.priority.high")},{value:10,label:t("gui.priority.critical")}];function Q(s){return s instanceof Error?s.message:typeof s=="object"&&s!==null&&"message"in s?String(s.message):JSON.stringify(s)}function st(s,y=150){const w=(s||"").split(/\r?\n/).map(N=>N.trim()).find(Boolean)??"";return w.length>y?w.slice(0,y-1).trimEnd()+"…":w}function cn(s){return(s||"").split(/[\r\n,]+/).map(y=>y.trim()).filter(Boolean)}function Nt(s){return Array.isArray(s)?s.join(`
7
- `):""}const Kl=()=>[{label:t("gui.cron.everyMinute"),value:"* * * * *"},{label:t("gui.cron.everyHour"),value:"0 * * * *"},{label:t("gui.cron.dailyAt9"),value:"0 9 * * *"},{label:t("gui.cron.mondayAt10"),value:"0 10 * * 1"},{label:t("gui.cron.custom"),value:"__custom__"}],Lm=wa.Plugin.define({setup(s){const y=s.client.rpc(cc),[w,N]=d.createSignal([]),[P,te]=d.createSignal([]),[Te,Tt]=d.createSignal(!1),[lt,jr]=d.createSignal("all"),[dt,je]=d.createSignal(!1),[ut,Ke]=d.createSignal(""),[nd,ad]=d.createSignal([]),[La,Aa]=d.createSignal("default"),[ur,sd]=d.createSignal(!1),[Bi,ld]=d.createSignal(!1),[pr,cr]=d.createSignal(!1),[dd,Da]=d.createSignal(!1),[fn,ud]=d.createSignal(""),[Nr,yn]=d.createSignal("");let Ui=null;function Ct(i,r=""){return Ui?.(null),new Promise(n=>{Ui=n,ud(i),yn(r),Da(!0)})}function qt(i){const r=Ui;Ui=null,Da(!1),r?.(i)}const[pd,gr]=d.createSignal(""),[bn,xn]=d.createSignal(null),[qr,Ma]=d.createSignal(!1),[Fa,Gi]=d.createSignal(""),[hn,cd]=d.createSignal({total:0,success:0,error:0}),[Vi,Oa]=d.createSignal(null),[Ia,gd]=d.createSignal([]),ja=()=>[{label:t("gui.promptTemplates.custom"),value:"custom",prompt:""},{label:t("gui.promptTemplates.nightWatch"),value:"night-watch",prompt:t("gui.promptTemplates.nightWatchPrompt")},{label:t("gui.promptTemplates.morningDigest"),value:"morning-digest",prompt:t("gui.promptTemplates.morningDigestPrompt")},{label:t("gui.promptTemplates.codeHygiene"),value:"code-hygiene",prompt:t("gui.promptTemplates.codeHygienePrompt")}],[Hr,Ki]=d.createSignal("custom"),[Yi,md]=d.createSignal([]),[fd,yd]=d.createSignal(0);setInterval(()=>yd(i=>i+1),1e3);const[bd,vn]=d.createSignal(1),[Ye,wn]=d.createSignal(!1),[S,Na]=d.createSignal(!1),[kn,qa]=d.createSignal(!0),[Re,Ha]=d.createSignal(!1),[Wa,Ba]=d.createSignal(""),[$n,xd]=d.createSignal(!0),[Ji,Ua]=d.createSignal(!1),[Ga,Va]=d.createSignal(1e4),[Ka,Ya]=d.createSignal(2),[Ja,Qa]=d.createSignal(1e3),[Za,Xa]=d.createSignal(""),[es,ts]=d.createSignal(""),[rs,is]=d.createSignal(""),[os,ns]=d.createSignal(""),[mr,as]=d.createSignal(!0),[ss,ls]=d.createSignal(!0),[ds,us]=d.createSignal(!0),[ps,cs]=d.createSignal(60),[Wr,gs]=d.createSignal(!1),[ms,fs]=d.createSignal("daily"),[ys,bs]=d.createSignal("09:00"),[Sn,hd]=d.createSignal(null),[ve,xs]=d.createSignal(!1),[hs,vs]=d.createSignal(""),[ws,ks]=d.createSignal(""),[$s,Ss]=d.createSignal("HTML"),[_s,Ts]=d.createSignal(!1),[Cs,Es]=d.createSignal(!0),[vd,wd]=d.createSignal("https://api.telegram.org"),[kd,$d]=d.createSignal(null),[Je,Ps]=d.createSignal(!1),[zs,Rs]=d.createSignal(!0),[Br,Ls]=d.createSignal(!1),[As,Ds]=d.createSignal("22:00"),[Ms,Fs]=d.createSignal("08:00"),[Qi,Os]=d.createSignal(!1),[_n,Sd]=d.createSignal([]),[Tn,fr]=d.createSignal(!1),[Zi,Is]=d.createSignal(""),[Xi,js]=d.createSignal(""),[Cn,_d]=d.createSignal([]),[En,Ns]=d.createSignal(!1),[Pn,Td]=d.createSignal(!0),[qs,Cd]=d.createSignal(""),[Hs,Ed]=d.createSignal(""),[Ws,Pd]=d.createSignal(""),[zn,eo]=d.createSignal(!0),[Rn,to]=d.createSignal(90),[Ln,ro]=d.createSignal(1e4),[io,oo]=d.createSignal(30),[no,ao]=d.createSignal(5e3),[An,Dn]=d.createSignal(null),[Bs,Mn]=d.createSignal(0),[Fn,zd]=d.createSignal(!0),[so,Us]=d.createSignal(!1),yr=new Map;d.onCleanup(()=>{for(const i of yr.values())clearInterval(i);yr.clear()});const[On,Rd]=d.createSignal(t("gui.app.title")),[Ld,Ad]=d.createSignal("");async function Dd(){try{const i=await y.get_platform({});i?.title&&Rd(i.title),i?.platform&&Ad(i.platform)}catch(i){console.error("RPC Error (get_platform):",i)}}function Gs(i){Na(!!i?.enabled),qa(i?.onlyOnError!==!1),Ha(!!i?.webhook?.enabled),Ba(i?.webhook?.url??""),Va(Number(i?.webhook?.timeoutMs??1e4)),Ya(Number(i?.webhook?.retryCount??2)),Qa(Number(i?.webhook?.retryDelayMs??1e3)),Xa(i?.templates?.success??""),ts(i?.templates?.error??""),is((i?.filters?.include??[]).join(", ")),ns((i?.filters?.exclude??[]).join(", ")),as(i?.matrix?.enabled!==!1),ls(i?.matrix?.onPartial!==!1),us(i?.matrix?.onAllFailed!==!1),cs(Number(i?.matrix?.stuckAfterMinutes??60)),gs(!!i?.digest?.enabled),fs(i?.digest?.frequency==="weekly"?"weekly":"daily"),bs(i?.digest?.time??"09:00"),hd(i?.digest?.lastSentAt??null),xs(!!i?.telegram?.enabled),vs(i?.telegram?.botToken??""),ks(i?.telegram?.chatId??""),Ss(i?.telegram?.parseMode??"HTML"),Ts(!!i?.telegram?.disableNotification),Es(i?.telegram?.includeDashboardLink!==!1),wd(i?.telegram?.apiBase??"https://api.telegram.org"),$d(typeof i?.telegram?.messageThreadId=="number"?i.telegram.messageThreadId:null),Ps(!!i?.native?.enabled),Rs(i?.native?.sound!==!1),Ls(!!i?.quietHours?.enabled),Ds(i?.quietHours?.from??"22:00"),Fs(i?.quietHours?.to??"08:00");const r=i?.audit;eo(r?.enabled!==!1),to(Number(r?.retentionDays??90)),ro(Number(r?.maxRecords??1e4))}async function Md(){try{const i=await y.get_settings({});vn(i.maxConcurrent??1),wn(!!i.winterMode),Gs(i.notifications);const r=i.history;oo(Number(r?.retentionDays??30)),ao(Number(r?.maxRecords??5e3)),Dn(r?.lastCleanupAt??null),Mn(Number(r?.lastCleanupDeleted??0));const n=i.audit;eo(n?.enabled!==!1),to(Number(n?.retentionDays??90)),ro(Number(n?.maxRecords??1e4)),_a(i.locale)}catch(i){console.error("RPC Error (get_settings):",i)}In(),Ur()}function Fd(){const i=r=>r.split(",").map(n=>n.trim()).filter(n=>n.length>0);return{enabled:S(),onlyOnError:kn(),webhook:{enabled:Re(),url:(Wa()||"").trim(),timeoutMs:Math.max(1e3,Math.min(12e4,Math.floor(Number(Ga())||1e4))),retryCount:Math.max(0,Math.min(5,Math.floor(Number(Ka())||0))),retryDelayMs:Math.max(100,Math.min(6e4,Math.floor(Number(Ja())||1e3)))},templates:{success:Za().trim(),error:es().trim()},filters:{include:i(rs()),exclude:i(os())},telegram:{enabled:ve(),botToken:(hs()||"").trim(),chatId:(ws()||"").trim(),parseMode:$s(),disableNotification:_s(),messageThreadId:kd(),includeDashboardLink:Cs(),apiBase:vd()},native:{enabled:Je(),sound:zs()},quietHours:{enabled:Br(),from:(As()||"22:00").trim(),to:(Ms()||"08:00").trim()},matrix:{enabled:mr(),onPartial:ss(),onAllFailed:ds(),stuckAfterMinutes:Math.max(0,Math.min(10080,Math.floor(Number(ps())||0)))},digest:{enabled:Wr(),frequency:ms(),time:(ys()||"09:00").trim(),lastSentAt:Sn()},audit:{enabled:zn(),retentionDays:Rn(),maxRecords:Ln()}}}function Vs(){return{retentionDays:Math.max(0,Math.floor(Number(io())||0)),maxRecords:Math.max(0,Math.floor(Number(no())||0)),lastCleanupAt:An(),lastCleanupDeleted:Math.max(0,Math.floor(Number(Bs())||0))}}async function br(i){try{const r=await y.save_settings(i);if(i.maxConcurrent!==void 0&&vn(r.maxConcurrent),i.winterMode!==void 0&&wn(!!r.winterMode),i.notifications!==void 0&&Gs(r.notifications),i.history!==void 0){const n=r.history;oo(Number(n?.retentionDays??30)),ao(Number(n?.maxRecords??5e3)),Dn(n?.lastCleanupAt??null),Mn(Number(n?.lastCleanupDeleted??0))}if(i.audit!==void 0){const n=r.audit;eo(n?.enabled!==!1),to(Number(n?.retentionDays??90)),ro(Number(n?.maxRecords??1e4))}_a(r.locale)}catch(r){console.error("RPC Error (save_settings):",r),s.toast.show({title:t("gui.toast.settingsSaveFailed"),variant:"error",description:Q(r)})}}async function B(){await br({notifications:Fd()})}async function Ks(){await br({history:Vs()})}async function Od(){Us(!0);try{await br({history:Vs()});const i=await y.cleanup_history({}),r=await y.get_settings({}),n=r.history;oo(Number(n?.retentionDays??30)),ao(Number(n?.maxRecords??5e3)),Dn(n?.lastCleanupAt??null),Mn(Number(n?.lastCleanupDeleted??0)),_a(r.locale),s.toast.show({title:i.success?t("gui.toast.historyCleanupDone"):t("gui.toast.historyCleanupFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (cleanup_history):",i),s.toast.show({title:t("gui.toast.historyCleanupFailed"),variant:"error",description:Q(i)})}finally{Us(!1)}}async function In(){fr(!0);try{const i=await y.list_secrets({});Sd(i?.secrets??[])}catch(i){console.error("RPC Error (list_secrets):",i)}finally{fr(!1)}}async function Id(){const i=Zi().trim(),r=Xi();if(!(!i||!r)){fr(!0);try{const n=await y.save_secret({name:i,value:r});n?.success?(Is(""),js(""),s.toast.show({title:t("gui.toast.secretSaved"),variant:"success",description:n.message}),In()):s.toast.show({title:t("gui.toast.secretNotSaved"),variant:"error",description:n?.message??""})}catch(n){console.error("RPC Error (save_secret):",n),s.toast.show({title:t("gui.toast.secretNotSaved"),variant:"error",description:Q(n)})}finally{fr(!1)}}}async function jd(i){fr(!0);try{const r=await y.delete_secret({name:i});r?.success?(s.toast.show({title:t("gui.toast.secretDeleted"),variant:"success",description:r?.message??""}),In()):s.toast.show({title:t("gui.toast.secretNotDeleted"),variant:"error",description:r?.message??""})}catch(r){console.error("RPC Error (delete_secret):",r),s.toast.show({title:t("gui.toast.secretNotDeleted"),variant:"error",description:Q(r)})}finally{fr(!1)}}async function Ur(){Ns(!0);try{const i=await y.get_audit({action:qs()||void 0,actor:Hs()||void 0,target:Ws()||void 0,limit:200});i?.success&&_d(i?.records??[])}catch(i){console.error("RPC Error (get_audit):",i)}finally{Ns(!1)}}async function jn(){await br({audit:{enabled:zn(),retentionDays:Rn(),maxRecords:Ln()}})}async function Nd(){Ua(!0);try{await B();const i=await y.test_notification({});s.toast.show({title:i.success?t("gui.toast.testSent"):t("gui.toast.testFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (test_notification):",i),s.toast.show({title:t("gui.toast.testFailed"),variant:"error",description:Q(i)})}finally{Ua(!1)}}async function qd(){Os(!0);try{await B();const i=await y.send_digest({});s.toast.show({title:i.success?t("gui.toast.digestSent"):t("gui.toast.digestFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (send_digest):",i),s.toast.show({title:t("gui.toast.digestFailed"),variant:"error",description:Q(i)})}finally{Os(!1)}}async function Hd(i){vn(i),await br({maxConcurrent:i})}async function Wd(i){wn(i),await br({winterMode:i})}const[Nn,lo]=d.createSignal(null),[Bd,qn]=d.createSignal(!1),[Qe,uo]=d.createSignal(""),[po,xr]=d.createSignal("* * * * *"),[hr,vr]=d.createSignal(""),[Ys,Gr]=d.createSignal("* * * * *"),[co,Vr]=d.createSignal(0),[go,Kr]=d.createSignal(60),[Yr,Jr]=d.createSignal(""),[Ht,Qr]=d.createSignal(_t),[mo,Zr]=d.createSignal(""),[Wt,Xr]=d.createSignal([]),[fo,ei]=d.createSignal(""),[yo,ti]=d.createSignal(""),[pe,pt]=d.createSignal("cron"),[Hn,ri]=d.createSignal(""),[Wn,bo]=d.createSignal(""),[xo,ho]=d.createSignal(""),[ct,wr]=d.createSignal("new"),[ii,vo]=d.createSignal(""),[Bn,wo]=d.createSignal(!1),[ko,oi]=d.createSignal(""),[$o,ni]=d.createSignal(""),[So,ai]=d.createSignal(""),[si,Un]=d.createSignal([]),[Js,Gn]=d.createSignal("postpone"),[Qs,Vn]=d.createSignal(""),[Zs,Kn]=d.createSignal(""),[Xs,Yn]=d.createSignal(""),[el,Jn]=d.createSignal(""),[tl,Qn]=d.createSignal(""),[_o,Zn]=d.createSignal(""),[Xn,li]=d.createSignal(""),[ea,di]=d.createSignal(""),[ui,pi]=d.createSignal(""),[ci,kr]=d.createSignal(""),[fe,$r]=d.createSignal([]),[ye,Sr]=d.createSignal([]),[rl,il]=d.createSignal(""),[gt,To]=d.createSignal(!1),[mt,gi]=d.createSignal([]),[ta,Co]=d.createSignal("parallel"),[ol,Eo]=d.createSignal("continue"),[nl,Po]=d.createSignal("summary"),[al,zo]=d.createSignal(!1),[Ro,Lo]=d.createSignal(""),[ra,Ao]=d.createSignal({}),[mi,ia]=d.createSignal(!1),[oa,sl]=d.createSignal(!1),[be,fi]=d.createSignal(null),[yi,na]=d.createSignal(""),ll=["bash","edit","write","read","grep","glob","webfetch"];function dl(i,r){i==="allowed"?$r(n=>n.includes(r)?n.filter(p=>p!==r):[...n,r]):Sr(n=>n.includes(r)?n.filter(p=>p!==r):[...n,r])}function ul(i){const r=rl().trim();r&&(i==="allowed"?fe().includes(r)||$r([...fe(),r]):ye().includes(r)||Sr([...ye(),r]),il(""))}function Ud(i,r){gi(n=>r?n.includes(i)?n:[...n,i]:n.filter(p=>p!==i))}function aa(i,r){const n=i.trim()||"task",p=r.trim().replace(/[\\/:*?"<>|]+/g,"-").replace(/\s+/g,"-");return`${n}-matrix-${p||"workspace"}`}const sa=()=>mt().map(i=>P().find(r=>r.id===i)).filter(i=>!!i).map(i=>aa(Qe(),i.name));function bi(i,r,n){Ao(p=>{const Y={...p[i]??{}};n.trim()?Y[r]=n:delete Y[r];const xe={...p};return Object.keys(Y).length>0?xe[i]=Y:delete xe[i],xe})}const Gd=()=>Object.keys(ra()).length,pl=()=>{if(!gt())return;const i=Ro().trim(),r=i?Number(i):void 0,n=ra();return{workspaceIds:mt(),strategy:ta(),failureMode:ol(),aggregation:nl(),createAggregator:al(),...r!==void 0&&Number.isFinite(r)&&r>=1?{concurrency:Math.floor(r)}:{},...Object.keys(n).length>0?{overrides:n}:{}}},cl=()=>{const i=_o().trim(),r=i?Number(i):void 0;return{activeDays:si().length>0?si():void 0,windowPolicy:Js(),watchGlobs:cn(Qs()),watchIgnore:cn(Zs()),gitBranch:(Xs()||"").trim(),gitPaths:cn(el()),gitIgnore:cn(tl()),...r!==void 0&&Number.isFinite(r)&&r>=5?{gitPollSeconds:Math.floor(r)}:{}}};function Do(){To(!1),gi([]),Co("parallel"),Eo("continue"),Po("summary"),zo(!1),Lo(""),Ao({})}function Vd(){const i=Yr().trim()?` --model ${Yr().trim()}`:"",r=ct()==="last"?" --continue":ct()==="reuse"?" --session <id>":"";return`opencode run${i}${r} "${hr().replace(/\s+/g," ").trim()}"`}const[Am,Kd]=d.createSignal(null),[Mo,gl]=d.createSignal(!1),[Fo,Dm]=d.createSignal(!1),[Mm,Yd]=d.createSignal(null);async function Jd(){gl(!0);try{const i=await y.export_tasks({});if(!i.success){s.toast.show({title:t("gui.toast.exportFailed"),variant:"error",description:i.error});return}Kd(i.data);const r=new Blob([i.data],{type:"application/json"}),n=URL.createObjectURL(r),p=document.createElement("a");p.href=n,p.download=`windows-scheduler-tasks-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(n),s.toast.show({title:t("gui.toast.exported",{count:i.count}),variant:"success"})}catch(i){console.error("RPC Error (export_tasks):",i),s.toast.show({title:t("gui.toast.exportFailed"),variant:"error",description:Q(i)})}finally{gl(!1)}}function Qd(i){const n=i.target.files?.[0]??null;Yd(n)}async function la(){try{const i=await y.get_templates({}),r=Array.isArray(i?.templates)?i.templates:[];md(r)}catch(i){console.error("RPC Error (get_templates):",i)}}async function xi(){try{const i=await y.get_workspaces({}),r=Array.isArray(i?.workspaces)?i.workspaces:[];te(r)}catch(i){console.error("RPC Error (get_workspaces):",i)}}const hi=()=>P().find(i=>i.id===ut());async function Oo(){try{const i=await y.get_profiles({}),r=Array.isArray(i?.profiles)?i.profiles:[];ad(r),i?.current&&Aa(i.current),sd(!!i?.pinnedByEnv)}catch(i){console.error("RPC Error (get_profiles):",i)}}async function Zd(i){if(!(!i||i===La())){cr(!0);try{const r=await y.set_profile({name:i});if(!r.success){s.toast.show({title:t("gui.toast.profileSwitchFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}Aa(r.current??i),s.toast.show({title:t("gui.toast.profileSwitched"),variant:"success",description:r.message}),await Oo()}catch(r){console.error("RPC Error (set_profile):",r),s.toast.show({title:t("gui.toast.profileSwitchError"),variant:"error",description:st(Q(r))})}finally{cr(!1)}}}async function Xd(){const i=(await Ct(t("gui.profile.namePrompt"),"")??"").trim();if(i){cr(!0);try{const r=await y.create_profile({name:i});if(!r.success){s.toast.show({title:t("gui.toast.profileCreateFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}await Oo(),s.toast.show({title:t("gui.toast.profileCreated"),variant:"success",description:r.message})}catch(r){console.error("RPC Error (create_profile):",r),s.toast.show({title:t("gui.toast.profileCreateError"),variant:"error",description:st(Q(r))})}finally{cr(!1)}}}async function eu(i){if(!(!i||i==="default")&&window.confirm(t("gui.profile.deleteConfirm",{name:i}))){cr(!0);try{const r=await y.delete_profile({name:i});if(!r.success){s.toast.show({title:t("gui.toast.profileDeleteFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}await Oo(),s.toast.show({title:t("gui.toast.profileDeleted"),variant:"success"})}catch(r){console.error("RPC Error (delete_profile):",r),s.toast.show({title:t("gui.toast.profileDeleteError"),variant:"error",description:st(Q(r))})}finally{cr(!1)}}}function tu(i){return i?Object.entries(i).map(([r,n])=>`${r}=${n}`).join(`
8
- `):""}function ru(i){const r={};for(const n of i.split(/\r?\n/)){const p=n.trim();if(!p||p.startsWith("#"))continue;const Y=p.indexOf("=");if(Y<=0)return null;const xe=p.slice(0,Y).trim();if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(xe))return null;r[xe]=p.slice(Y+1).trim()}return r}async function iu(i){const r=await Ct(t("gui.workspace.envPrompt"),tu(i.env));if(r===null)return;const n=ru(r);if(!n){s.toast.show({title:t("gui.toast.envInvalid"),variant:"error",description:t("gui.workspace.envInvalidHelp")});return}const p=await Ct(t("gui.workspace.envFilePrompt"),i.envFile??"");if(p!==null){je(!0);try{const Y=await y.update_workspace({id:i.id,env:Object.keys(n).length?n:null,envFile:p.trim()||null});if(!Y.success){s.toast.show({title:t("gui.toast.envSaveFailed"),variant:"error",description:Y.error??t("gui.common.unknownError")});return}await xi(),s.toast.show({title:t("gui.toast.envSaved"),variant:"success",description:t("gui.workspace.envSecretsMasked")})}catch(Y){console.error("RPC Error (update_workspace env):",Y),s.toast.show({title:t("gui.toast.envSaveError"),variant:"error",description:st(Q(Y))})}finally{je(!1)}}}async function ou(){const i=(await Ct(t("gui.workspace.pathPrompt"),"")??"").trim();if(!i)return;const r=(await Ct(t("gui.workspace.namePrompt"),"")??"").trim();je(!0);try{const n=await y.add_workspace({path:i,...r?{name:r}:{}});if(!n.success){s.toast.show({title:t("gui.toast.workspaceAddFailed"),variant:"error",description:n.error??t("gui.common.unknownError")});return}await xi(),n.workspace?.id&&Ke(n.workspace.id),s.toast.show({title:t("gui.toast.workspaceAdded"),variant:"success"})}catch(n){console.error("RPC Error (add_workspace):",n),s.toast.show({title:t("gui.toast.workspaceAddFailed"),variant:"error",description:st(Q(n))})}finally{je(!1)}}async function nu(i){const r=(await Ct(t("gui.workspace.pathPromptShort"),i.path)??"").trim();if(!r)return;const n=(await Ct(t("gui.workspace.namePromptShort"),i.name)??"").trim();je(!0);try{const p=await y.update_workspace({id:i.id,path:r,...n?{name:n}:{}});if(!p.success){s.toast.show({title:t("gui.toast.workspaceUpdateFailed"),variant:"error",description:p.error??t("gui.common.unknownError")});return}await xi(),s.toast.show({title:t("gui.toast.workspaceUpdated"),variant:"success"})}catch(p){console.error("RPC Error (update_workspace):",p),s.toast.show({title:t("gui.toast.workspaceUpdateFailed"),variant:"error",description:st(Q(p))})}finally{je(!1)}}async function au(i){if(window.confirm(t("gui.workspace.deleteConfirm",{name:i.name}))){je(!0);try{const r=await y.delete_workspace({id:i.id});if(!r.success){s.toast.show({title:t("gui.toast.workspaceDeleteFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}ut()===i.id&&Ke(""),lt()===i.id&&jr("all"),await xi(),await Ze(),s.toast.show({title:t("gui.toast.workspaceDeleted"),variant:"success",description:r.message})}catch(r){console.error("RPC Error (delete_workspace):",r),s.toast.show({title:t("gui.toast.workspaceDeleteFailed"),variant:"error",description:st(Q(r))})}finally{je(!1)}}}const su=i=>{if(Ki(i),i.startsWith("custom:")){const n=Yi().find(p=>`custom:${p.id}`===i);if(!n)return;if(vr(n.prompt??""),n.schedule){xr(n.schedule);const p=Kl().find(Y=>Y.value===n.schedule);Gr(p?p.value:"__custom__")}if(Vr(n.retryCount??0),Kr(n.retryDelay??60),Zr(n.qualityGate??""),Jr(n.model??""),Qr(typeof n.priority=="number"?n.priority:_t),Xr(Array.isArray(n.dependsOn)?n.dependsOn:[]),ei(n.beforeScript??""),ti(n.afterScript??""),pt(n.triggerType==="file"?"file":n.triggerType==="git"?"git":n.triggerType==="mcp-event"?"mcp-event":"cron"),ri(n.watchPath??""),Vn(Nt(n.watchGlobs)),Kn(Nt(n.watchIgnore)),Yn(n.gitBranch??""),Jn(Nt(n.gitPaths)),Qn(Nt(n.gitIgnore)),Zn(n.gitPollSeconds?String(n.gitPollSeconds):""),Un(Array.isArray(n.activeDays)?n.activeDays:[]),Gn(n.windowPolicy??"postpone"),oi(n.timezone??""),ni(n.notBefore??""),ai(n.notAfter??""),li(n.mcpEvent?.server??""),di(n.mcpEvent?.event??""),pi(n.mcpEvent?.filter??""),kr(n.workingDirectory??""),Ke(n.workspaceId??""),$r(Array.isArray(n.allowedTools)?n.allowedTools:[]),Sr(Array.isArray(n.deniedTools)?n.deniedTools:[]),n.matrix){To(!0),gi(Array.isArray(n.matrix.workspaceIds)?n.matrix.workspaceIds:[]),Co(n.matrix.strategy==="sequential"?"sequential":"parallel"),Eo(n.matrix.failureMode==="stop"?"stop":"continue"),Po(n.matrix.aggregation==="per-task"?"per-task":"summary"),zo(!!n.matrix.createAggregator),Lo(typeof n.matrix.concurrency=="number"?String(n.matrix.concurrency):"");const p=n.matrix.overrides;Ao(p?{...p}:{})}else Do();return}const r=ja().find(n=>n.value===i);r&&vr(r.prompt)};async function lu(){if(!(hr()||"").trim()){s.toast.show({title:t("gui.toast.nothingToSave"),variant:"error",description:t("gui.toast.promptRequired")});return}const i=(await Ct(t("gui.templates.namePrompt"),"")??"").trim();if(i)try{const r=await y.save_template({name:i,prompt:(hr()||"").trim(),schedule:(po()||"").trim(),timeoutSeconds:3600,model:(Yr()||"").trim(),priority:Ht(),retryCount:co(),retryDelay:go(),qualityGate:(mo()||"").trim(),beforeScript:(fo()||"").trim(),afterScript:(yo()||"").trim(),dependsOn:Wt(),triggerType:pe(),timezone:(ko()||"").trim()||void 0,notBefore:($o()||"").trim()||void 0,notAfter:(So()||"").trim()||void 0,mcpEvent:pe()==="mcp-event"?{server:(Xn()||"").trim(),event:(ea()||"").trim(),...ui().trim()?{filter:ui().trim()}:{}}:void 0,watchPath:(Hn()||"").trim(),...cl(),workingDirectory:(ci()||"").trim(),workspaceId:(ut()||"").trim()||void 0,allowedTools:fe().length>0?fe():void 0,deniedTools:ye().length>0?ye():void 0,matrix:pl()});if(!r.success){s.toast.show({title:t("gui.toast.templateSaveFailed"),variant:"error",description:r.error||t("gui.common.unknownError")});return}await la();const n=r.template;n?.id&&Ki(`custom:${n.id}`),s.toast.show({title:t("gui.toast.templateSaved",{name:i}),variant:"success"})}catch(r){console.error("RPC Error (save_template):",r),s.toast.show({title:t("gui.toast.templateSaveError"),variant:"error",description:Q(r)})}}async function du(i){if(window.confirm(t("gui.templates.deleteConfirm",{name:i.name})))try{const r=await y.delete_template({id:i.id});if(!r.success){s.toast.show({title:t("gui.toast.templateDeleteFailed"),variant:"error",description:r.error||t("gui.common.unknownError")});return}Hr()===`custom:${i.id}`&&Ki("custom"),await la(),s.toast.show({title:t("gui.toast.templateDeleted",{name:i.name}),variant:"success"})}catch(r){console.error("RPC Error (delete_template):",r),s.toast.show({title:t("gui.toast.templateDeleteError"),variant:"error",description:Q(r)})}}async function Ze(){try{const i=await y.get_tasks({});console.log("[GUI] Received tasks:",i);const r=Array.isArray(i?.tasks)?i.tasks:[];console.log("[GUI] tasks count:",r.length);const n=r.map(p=>({name:p.name,schedule:p.schedule,status:p.status??"unknown",runsTotal:typeof p.runsTotal=="number"?p.runsTotal:0,runsSuccess:typeof p.runsSuccess=="number"?p.runsSuccess:0,runsError:typeof p.runsError=="number"?p.runsError:0,runsPartial:typeof p.runsPartial=="number"?p.runsPartial:0,nextRun:p.nextRun??void 0,paused:!!p.paused,orphaned:!!p.orphaned,retryCount:p.retryCount??0,retryDelay:p.retryDelay??60,qualityGate:p.qualityGate??void 0,dependsOn:Array.isArray(p.dependsOn)?p.dependsOn:void 0,model:p.model??void 0,priority:typeof p.priority=="number"?p.priority:_t,beforeScript:p.beforeScript??void 0,afterScript:p.afterScript??void 0,triggerType:p.triggerType??"cron",runAt:p.runAt??void 0,session:p.session??void 0,sessionMaxRuns:p.sessionMaxRuns??void 0,mcpEvent:p.mcpEvent??void 0,watchPath:p.watchPath??void 0,timezone:p.timezone??void 0,notBefore:p.notBefore??void 0,notAfter:p.notAfter??void 0,pausedUntil:p.pausedUntil??void 0,workingDirectory:p.workingDirectory??void 0,workspaceId:p.workspaceId??void 0,workspaceName:p.workspaceName??void 0,workspaceColor:p.workspaceColor??void 0,allowedTools:Array.isArray(p.allowedTools)?p.allowedTools:void 0,deniedTools:Array.isArray(p.deniedTools)?p.deniedTools:void 0,matrix:p.matrix??null,matrixParentId:p.matrixParentId??null,isMatrixParent:!!p.isMatrixParent,matrixSummary:p.matrixSummary??null,prompt:p.prompt??""}));N(n),console.log("[GUI] jobs:",w()),await uu()}catch(i){console.error("RPC Error (get_tasks):",i),s.toast.show({title:t("gui.toast.jobsLoadFailed"),variant:"error",description:st(Q(i))})}}async function uu(){try{const i=await y.get_metrics({});cd({total:i.total??0,success:i.success??0,error:i.error??0})}catch(i){console.error("RPC Error (get_metrics):",i)}}async function pu(i){Oa(i);try{const r=await y.get_history({limit:10,taskName:i});gd(r.records??[])}catch(r){console.error("RPC Error (get_history):",r),s.toast.show({title:t("gui.toast.historyLoadFailed"),variant:"error",description:Q(r)})}}async function cu(i){ia(!0),na(i),sl(!0),fi(null);try{const r=await y.dry_run({taskName:i});fi(r)}catch(r){console.error("RPC Error (dry_run):",r),fi({success:!1,error:Q(r),tasks:[],warnings:[]})}finally{sl(!1)}}function ml(){ia(!1),na(""),fi(null)}async function gu(){Ma(!0),Gi("");try{const i=await y.create_task({name:(Qe()||"").trim(),schedule:(po()||"").trim(),prompt:(hr()||"").trim(),model:(Yr()||"").trim(),priority:Ht(),retryCount:co(),retryDelay:go(),qualityGate:(mo()||"").trim(),beforeScript:(fo()||"").trim(),afterScript:(yo()||"").trim(),dependsOn:Wt(),triggerType:pe(),session:ct(),...ct()==="reuse"&&(ii()||"").trim()?{sessionMaxRuns:Number((ii()||"").trim())}:{},...pe()==="once"?{runAt:(Wn()||"").trim()||void 0,delaySeconds:(xo()||"").trim()?Number(xo().trim()):void 0}:{},timezone:(ko()||"").trim()||void 0,notBefore:($o()||"").trim()||void 0,notAfter:(So()||"").trim()||void 0,mcpEvent:pe()==="mcp-event"?{server:(Xn()||"").trim(),event:(ea()||"").trim(),...ui().trim()?{filter:ui().trim()}:{}}:void 0,watchPath:(Hn()||"").trim(),...cl(),workingDirectory:(ci()||"").trim(),workspaceId:(ut()||"").trim()||void 0,allowedTools:fe().length>0?fe():void 0,deniedTools:ye().length>0?ye():void 0,runWhenLoggedOff:Bn(),matrix:pl()});if(!i.success){const r=st(i.message);Gi(r),s.toast.show({title:t("gui.toast.taskCreateFailed"),variant:"error",description:r});return}await new Promise(r=>setTimeout(r,500)),await Ze(),uo(""),xr("* * * * *"),vr(""),Gr("* * * * *"),Vr(0),Kr(60),Zr(""),Xr([]),Jr(""),Qr(_t),ei(""),ti(""),pt("cron"),ri(""),bo(""),ho(""),wr("new"),vo(""),wo(!1),oi(""),ni(""),ai(""),li(""),di(""),pi(""),kr(""),Ke(""),$r([]),Sr([]),Do(),lo(null),Ki("custom"),s.toast.show({title:t("gui.toast.taskCreated"),variant:"success"})}catch(i){console.error("RPC Error (create_task):",i);const r=st(Q(i));Gi(r),s.toast.show({title:t("gui.toast.taskCreateFailed"),variant:"error",description:r})}finally{Ma(!1)}}function mu(i){const r=new Date().toISOString(),n=yr.get(i);n&&clearInterval(n);let p=0;const Y=setInterval(()=>{if(p+=1,p>900){clearInterval(Y),yr.delete(i);return}(async()=>{try{const ft=((await y.get_history({limit:50})).records??[]).find(ue=>String(ue.taskName??"").toLowerCase()===i.toLowerCase()&&typeof ue.startedAt=="string"&&ue.startedAt>=r);if(!ft)return;clearInterval(Y),yr.delete(i);const Ce=ft.status==="success",_r=((Number(ft.durationMs)||0)/1e3).toFixed(1),Pt=ft.error?`: ${ft.error}`:"";s.toast.show({title:Ce?t("gui.toast.taskDone",{name:i}):t("gui.toast.taskCrashed",{name:i}),variant:Ce?"success":"error",description:`${_r}s${Pt}`}),await Ze()}catch(xe){console.error("RPC Error (get_history):",xe)}})()},2e3);yr.set(i,Y)}async function fu(i){if(!i||typeof i!="string"){console.error("[GUI] run_task aborted: empty task name");return}try{const r=await y.run_task({name:i});if(!r.success){s.toast.show({title:t("gui.toast.taskStartFailed",{name:i}),variant:"error",description:r.message});return}s.toast.show({title:r.message||t("gui.toast.taskStarted",{name:i}),variant:"success"}),/уже выполняется/i.test(r.message||"")||mu(i),await Ze()}catch(r){console.error("RPC Error (run_task):",r),s.toast.show({title:t("gui.toast.runFailed"),variant:"error",description:Q(r)})}}async function yu(i){try{const r=await y.pause_task({name:i});if(!r.success){s.toast.show({title:t("gui.toast.pauseFailed",{name:i}),variant:"error",description:r.message});return}s.toast.show({title:t("gui.toast.paused",{name:i}),variant:"success"}),await Ze()}catch(r){console.error("RPC Error (pause_task):",r),s.toast.show({title:t("gui.toast.pauseError"),variant:"error",description:Q(r)})}}async function bu(i){try{const r=await y.resume_task({name:i});if(!r.success){s.toast.show({title:t("gui.toast.resumeFailed",{name:i}),variant:"error",description:r.message});return}s.toast.show({title:t("gui.toast.resumed",{name:i}),variant:"success"}),await Ze()}catch(r){console.error("RPC Error (resume_task):",r),s.toast.show({title:t("gui.toast.resumeError"),variant:"error",description:Q(r)})}}async function xu(i){if(window.confirm(t("gui.matrix.cancelClonesConfirm",{name:i})))try{const r=await y.cancel_matrix({name:i});if(!r.success){s.toast.show({title:t("gui.toast.matrixCancelFailed"),variant:"error",description:r.message});return}s.toast.show({title:r.message,variant:"success"}),await Ze()}catch(r){console.error("RPC Error (cancel_matrix):",r),s.toast.show({title:t("gui.toast.matrixCancelError"),variant:"error",description:Q(r)})}}async function hu(i){const n=w().find(p=>p.name===i)?.matrix?t("gui.matrix.deleteConfirm",{name:i}):t("gui.task.deleteConfirm",{name:i});if(window.confirm(n))try{const p=await y.delete_task({name:i});if(!p.success){s.toast.show({title:t("gui.toast.deleteFailed"),variant:"error",description:p.message});return}s.toast.show({title:t("gui.toast.taskDeleted",{name:i}),variant:"success"}),bn()===i&&(gr(""),xn(null)),Nn()?.name===i&&lo(null),await Ze()}catch(p){console.error("RPC Error (delete_task):",p),s.toast.show({title:t("gui.toast.deleteFailed"),variant:"error",description:Q(p)})}}async function vu(i){xn(i),gr(t("gui.logs.loading"));try{const r=await y.get_task_logs({name:i});if(!r.success){gr(r.error||t("gui.logs.loadFailed")),s.toast.show({title:t("gui.toast.logsReadFailed"),variant:"error",description:r.error});return}gr(r.logs||t("gui.logs.empty"))}catch(r){console.error("RPC Error (get_task_logs):",r),gr(t("gui.logs.readError",{error:Q(r)}))}}function wu(i){lo(i),qn(!1),uo(i.name),xr(i.schedule),vr(i.prompt??""),Jr(i.model??""),Qr(typeof i.priority=="number"?i.priority:_t),Vr(i.retryCount??0),Kr(i.retryDelay??60),Zr(i.qualityGate??""),Xr(Array.isArray(i.dependsOn)?i.dependsOn:[]),ei(i.beforeScript??""),ti(i.afterScript??""),pt(i.triggerType??"cron"),ri(i.watchPath??""),Vn(Nt(i.watchGlobs)),Kn(Nt(i.watchIgnore)),Yn(i.gitBranch??""),Jn(Nt(i.gitPaths)),Qn(Nt(i.gitIgnore)),Zn(typeof i.gitPollSeconds=="number"?String(i.gitPollSeconds):""),Un(Array.isArray(i.activeDays)?i.activeDays:[]),Gn(i.windowPolicy??"postpone"),bo(i.runAt??""),ho(""),wr(i.session==="reuse"||i.session==="last"?i.session:"new"),wo(i.runWhenLoggedOff===!0),vo(typeof i.sessionMaxRuns=="number"?String(i.sessionMaxRuns):""),oi(i.timezone??""),ni(i.notBefore??""),ai(i.notAfter??""),li(i.mcpEvent?.server??""),di(i.mcpEvent?.event??""),pi(i.mcpEvent?.filter??""),kr(i.workingDirectory??""),Ke(i.workspaceId??""),$r(Array.isArray(i.allowedTools)?i.allowedTools:[]),Sr(Array.isArray(i.deniedTools)?i.deniedTools:[]),i.matrix?(To(!0),gi(Array.isArray(i.matrix.workspaceIds)?i.matrix.workspaceIds:[]),Co(i.matrix.strategy==="sequential"?"sequential":"parallel"),Eo(i.matrix.failureMode==="stop"?"stop":"continue"),Po(i.matrix.aggregation==="per-task"?"per-task":"summary"),zo(!!i.matrix.createAggregator),Lo(typeof i.matrix.concurrency=="number"?String(i.matrix.concurrency):""),Ao(i.matrix.overrides?{...i.matrix.overrides}:{})):Do();const r=CRON_PRESETS.find(n=>n.value===i.schedule);Gr(r?r.value:"__custom__")}Ze(),xi(),Oo(),Md(),Dd(),la();const ku=setInterval(Ze,5e3);d.onCleanup(()=>clearInterval(ku));const $u=Ys()==="__custom__",da=Nn()!==null,Su=()=>{const i=(ko()||"").trim();if(!i)return!0;try{return new Intl.DateTimeFormat("en-US",{timeZone:i}),!0}catch{return!1}},ua=(i,r,n)=>Number.isInteger(i)&&i>=r&&(n===void 0||i<=n),fl=()=>{const i=(Qe()||"").trim();if(!i)return t("gui.validation.taskNameRequired");if(!(hr()||"").trim())return t("gui.validation.promptRequired");if(pe()==="cron"&&!(po()||"").trim())return t("gui.validation.cronRequired");if(pe()==="once"&&!(Wn()||"").trim()&&!(xo()||"").trim())return t("gui.validation.runAtRequired");if(pe()==="git"&&!(ut()||"").trim()&&!(ci()||"").trim())return t("gui.validation.gitWorkspaceRequired");if((_o()||"").trim()&&!/^([5-9]|[1-9]\d+)$/.test(_o().trim()))return t("gui.validation.gitPollInvalid");if(gt()&&mt().length===0)return t("gui.validation.matrixWorkspacesRequired");if(ct()==="reuse"&&(ii()||"").trim()&&!/^[1-9]\d*$/.test(ii().trim()))return t("gui.validation.sessionMaxRunsInvalid");if(gt()&&(Ro()||"").trim()&&!/^[1-9]\d*$/.test(Ro().trim()))return t("gui.validation.matrixConcurrencyInvalid");if(($o()||"").trim()===""!=((So()||"").trim()===""))return t("gui.validation.windowPairRequired");if(!Su())return t("gui.validation.timezoneInvalid");if(!ua(Ht(),0,10))return t("gui.validation.priorityInvalid");if(!ua(co(),0))return t("gui.validation.retryCountInvalid");if(!ua(go(),0))return t("gui.validation.retryDelayInvalid");const r=i.toLowerCase();return Wt().some(n=>n.trim().toLowerCase()===r)?t("gui.validation.dependsOnSelf"):""},Io=()=>fl()==="",vi=()=>w()??[],pa=()=>{const i=lt();return i==="all"?vi():i==="none"?vi().filter(r=>!r.workspaceId):vi().filter(r=>r.workspaceId===i)},yl=()=>{const i=(Nn()?.name??Qe()).trim().toLowerCase();return vi().map(r=>r.name).filter(r=>r.trim().toLowerCase()!==i)};function _u(i,r){Xr(n=>r?n.some(p=>p.toLowerCase()===i.toLowerCase())?n:[...n,i]:n.filter(p=>p.toLowerCase()!==i.toLowerCase()))}const[Tu,bl]=d.createSignal(null);function Et(i=!1){return`background:${i?"rgba(90,200,250,0.16)":"transparent"};border:1px solid ${i?"rgba(90,200,250,0.5)":"#333"};border-radius:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:${i?"#5ac8fa":"#cfcfd2"};font-size:14px;line-height:1;padding:0;transition:background 0.18s ease, border-color 0.18s ease, color 0.18s ease`}function we(i,r,n=!1){const p=i.currentTarget;p&&(p.style.background=r?"rgba(255,255,255,0.09)":n?"rgba(90,200,250,0.16)":"transparent",p.style.borderColor=r?"#5ac8fa":n?"rgba(90,200,250,0.5)":"#333",p.style.color=r||n?"#5ac8fa":"#cfcfd2")}const Cu=i=>{const r=i.job;return!r||!r.name?null:(()=>{var n=Cc(),p=n.firstChild,Y=p.firstChild,xe=Y.firstChild,ie=xe.firstChild,ft=ie.firstChild,Ce=ie.nextSibling,_r=xe.nextSibling,Pt=Y.nextSibling,ue=Pt.firstChild,yt=ue.nextSibling,Le=yt.nextSibling,Ne=Le.nextSibling,bt=Ne.nextSibling,xt=bt.nextSibling;return e.insert(ft,()=>r.name),e.insert(ie,(()=>{var c=e.memo(()=>!!r.workspaceName);return()=>c()&&(()=>{var u=Ec();return u.firstChild,e.insert(u,()=>r.workspaceName,null),e.effect(v=>{var z=`Workspace: ${r.workspaceName}${r.workingDirectory?` (${r.workingDirectory})`:""}`,q=`font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid ${r.workspaceColor||"#5ac8fa"};color:${r.workspaceColor||"#5ac8fa"};background:${r.workspaceColor||"#5ac8fa"}1a`;return z!==v.e&&e.setAttribute(u,"title",v.e=z),v.t=e.style(u,q,v.t),v},{e:void 0,t:void 0}),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(r.isMatrixParent&&r.matrix));return()=>c()&&(()=>{var u=Pc(),v=u.firstChild,z=v.nextSibling;return z.nextSibling,e.insert(u,()=>r.matrix.workspaceIds.length,z),e.insert(u,(()=>{var q=e.memo(()=>!!r.matrix.concurrency);return()=>q()?` ⚙${r.matrix.concurrency}`:""})(),null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.fanoutTitle",{count:r.matrix.workspaceIds.length,strategy:r.matrix.strategy??"parallel",failureMode:r.matrix.failureMode??"continue",concurrency:r.matrix.concurrency?t("gui.job.fanoutConcurrency",{concurrency:r.matrix.concurrency}):"",overrides:r.matrix.overrides?t("gui.job.fanoutOverrides",{overrides:Object.keys(r.matrix.overrides).length}):""}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.matrixParentId);return()=>c()&&(()=>{var u=zc();return u.firstChild,e.insert(u,()=>r.matrixParentId,null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.matrixClone",{parent:r.matrixParentId}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.watchPath);return()=>c()&&(()=>{var u=Rc();return e.effect(()=>e.setAttribute(u,"title",t("gui.job.watchFile",{path:r.watchPath}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(Array.isArray(r.watchGlobs)&&r.watchGlobs.length>0));return()=>c()&&(()=>{var u=Lc();return e.insert(u,()=>t("gui.job.watchGlobsCount",{count:r.watchGlobs.length})),e.effect(()=>e.setAttribute(u,"title",t("gui.job.watchGlobsTitle",{globs:r.watchGlobs.join(", ")}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>r.triggerType==="git");return()=>c()&&(()=>{var u=Ac();return e.effect(()=>e.setAttribute(u,"title",t("gui.job.gitTriggerTitle",{branch:r.gitBranch?t("gui.job.gitTriggerBranch",{branch:r.gitBranch}):"",paths:Array.isArray(r.gitPaths)&&r.gitPaths.length>0?t("gui.job.gitTriggerPaths",{paths:r.gitPaths.join(", ")}):"",seconds:r.gitPollSeconds??60}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(Array.isArray(r.activeDays)&&r.activeDays.length>0));return()=>c()&&(()=>{var u=Dc(),v=u.firstChild,z=v.nextSibling;return z.nextSibling,e.insert(u,()=>r.activeDays.length,z),e.effect(()=>e.setAttribute(u,"title",t("gui.job.activeDaysTitle",{days:r.activeDays.map(q=>[t("gui.weekday.0"),t("gui.weekday.1"),t("gui.weekday.2"),t("gui.weekday.3"),t("gui.weekday.4"),t("gui.weekday.5"),t("gui.weekday.6")][q]??q).join(", ")}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.timezone);return()=>c()&&(()=>{var u=Mc();return u.firstChild,e.insert(u,()=>r.timezone,null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.timezoneTitle",{tz:r.timezone}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(r.notBefore&&r.notAfter));return()=>c()&&(()=>{var u=Fc(),v=u.firstChild,z=v.nextSibling;return z.nextSibling,e.insert(u,()=>r.notBefore,z),e.insert(u,()=>r.notAfter,null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.windowTitle",{from:r.notBefore,to:r.notAfter}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.pausedUntil);return()=>c()&&(()=>{var u=Oc();return e.insert(u,()=>t("gui.job.pausedUntilShort",{date:new Date(r.pausedUntil).toLocaleDateString()})),e.effect(()=>e.setAttribute(u,"title",t("gui.job.pausedUntilTitle",{date:new Date(r.pausedUntil).toLocaleString()}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.runWhenLoggedOff);return()=>c()&&(()=>{var u=Ic();return u.firstChild,e.insert(u,()=>t("gui.job.runWhenLoggedOffShort"),null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.runWhenLoggedOffTitle",{mode:r.logonMode??t("gui.job.logonModeUnknown")}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(r.beforeScript||r.afterScript));return()=>c()&&(()=>{var u=jc();return e.effect(()=>e.setAttribute(u,"title",`Lifecycle hooks: ${[r.beforeScript?`pre: ${r.beforeScript}`:"",r.afterScript?`post: ${r.afterScript}`:""].filter(Boolean).join(" · ")}`)),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>r.triggerType==="mcp-event");return()=>c()&&(()=>{var u=Nc();return e.effect(()=>e.setAttribute(u,"title",t("gui.job.mcpEventTitle",{event:r.mcpEvent?.event??"—",filterSuffix:r.mcpEvent?.filter?t("gui.job.mcpEventFilterSuffix",{filter:r.mcpEvent.filter}):""}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(r.session&&r.session!=="new"));return()=>c()&&(()=>{var u=qc();return e.insert(u,(()=>{var v=e.memo(()=>r.session==="reuse");return()=>v()?t("gui.job.sessionReuseShort"):t("gui.job.sessionContinueShort")})()),e.effect(()=>e.setAttribute(u,"title",r.session==="reuse"?r.sessionId?t("gui.job.sessionReuseTitleId",{id:r.sessionId}):t("gui.job.sessionReuseTitle"):t("gui.job.sessionContinueTitle"))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!r.model);return()=>c()&&(()=>{var u=Hc();return u.firstChild,e.insert(u,()=>r.model,null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.modelTitle",{model:r.model}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>typeof r.priority=="number"&&r.priority!==_t);return()=>c()&&(()=>{var u=Wc();return u.firstChild,e.insert(u,()=>Gl(r.priority),null),e.effect(()=>e.setAttribute(u,"title",t("gui.job.priorityTitle",{label:Gl(r.priority),priority:r.priority}))),u})()})(),null),e.insert(ie,(()=>{var c=e.memo(()=>!!(Array.isArray(r.allowedTools)&&r.allowedTools.length>0||Array.isArray(r.deniedTools)&&r.deniedTools.length>0));return()=>c()?(()=>{var u=Bc();return e.effect(()=>e.setAttribute(u,"title",t("gui.job.toolLimitsTitle",{limits:[r.allowedTools?.length?`allowed=[${r.allowedTools.join(", ")}]`:"",r.deniedTools?.length?`denied=[${r.deniedTools.join(", ")}]`:""].filter(Boolean).join(" · ")}))),u})():null})(),null),e.insert(xe,(()=>{var c=e.memo(()=>!!(Array.isArray(r.dependsOn)&&r.dependsOn.length>0));return()=>c()&&(()=>{var u=Uc(),v=u.firstChild;return e.insert(v,()=>t("gui.job.dependsOn",{list:r.dependsOn.join(" + ")})),u})()})(),Ce),e.insert(xe,(()=>{var c=e.memo(()=>!!(r.isMatrixParent&&r.matrixSummary));return()=>c()&&(()=>{var u=Gc(),v=u.firstChild;return e.insert(v,()=>t("gui.job.matrixDone",{success:r.matrixSummary.successCount,total:r.matrixSummary.totalCount}),null),e.insert(v,(()=>{var z=e.memo(()=>r.matrixSummary.errorCount>0);return()=>z()?` · ❌ ${r.matrixSummary.errorCount}`:""})(),null),e.insert(v,(()=>{var z=e.memo(()=>r.matrixSummary.pendingCount>0);return()=>z()?` · ⏳ ${r.matrixSummary.pendingCount}`:""})(),null),e.effect(z=>{var q=r.matrixSummary.message,C=`cursor:help;color:${Rm(r.matrixSummary.status)};white-space:nowrap;overflow:hidden;text-overflow:ellipsis`;return q!==z.e&&e.setAttribute(v,"title",z.e=q),z.t=e.style(v,C,z.t),z},{e:void 0,t:void 0}),u})()})(),Ce),e.insert(Ce,()=>t("gui.job.runsLine",{total:r.runsTotal??0,success:r.runsSuccess??0,partial:r.runsPartial??0,error:r.runsError??0})),e.insert(xe,(()=>{var c=e.memo(()=>!!(r.schedule||r.nextRun));return()=>c()&&(()=>{var u=Vc(),v=u.firstChild;return e.insert(v,()=>r.schedule),e.insert(u,(()=>{var z=e.memo(()=>!!r.nextRun);return()=>z()&&(()=>{var q=Kc();return q.firstChild,e.insert(q,()=>r.nextRun,null),q})()})(),null),u})()})(),null),e.insert(_r,(()=>{var c=e.memo(()=>r.status==="running");return()=>c()?(()=>{var u=Yc();return e.insert(u,()=>t("gui.jobStatus.running",{seconds:fd()})),u})():(()=>{var u=Jc();return e.insert(u,(()=>{var v=e.memo(()=>!!r.orphaned);return()=>v()?t("gui.jobStatus.orphan"):e.memo(()=>!!r.paused)()?t("gui.jobStatus.paused"):e.memo(()=>r.status==="success")()?t("gui.jobStatus.success"):e.memo(()=>r.status==="error")()?t("gui.jobStatus.error"):e.memo(()=>r.status==="partial")()?t("gui.jobStatus.partial"):e.memo(()=>r.status==="idle")()?t("gui.jobStatus.never"):t("gui.jobStatus.unknown")})()),u})()})()),ue.addEventListener("mouseleave",c=>{we(c,!1),bl(u=>u===r.name?null:u)}),ue.addEventListener("mouseenter",c=>{we(c,!0),Ye()&&bl(r.name)}),ue.$$click=()=>{fu(r.name)},e.insert(ue,()=>Ye()&&Tu()===r.name?"❄️":"▶"),yt.addEventListener("mouseleave",c=>we(c,!1)),yt.addEventListener("mouseenter",c=>we(c,!0)),yt.$$click=()=>{r.orphaned||(r.paused?bu(r.name):yu(r.name))},e.insert(yt,()=>r.paused?"▶":"⏸"),Le.addEventListener("mouseleave",c=>we(c,!1)),Le.addEventListener("mouseenter",c=>we(c,!0)),Le.$$click=()=>{vu(r.name)},Ne.addEventListener("mouseleave",c=>we(c,!1,mi()&&yi()===r.name)),Ne.addEventListener("mouseenter",c=>we(c,!0,mi()&&yi()===r.name)),Ne.$$click=()=>{cu(r.name)},bt.addEventListener("mouseleave",c=>we(c,!1,Vi()===r.name)),bt.addEventListener("mouseenter",c=>we(c,!0,Vi()===r.name)),bt.$$click=()=>{pu(r.name)},xt.addEventListener("mouseleave",c=>we(c,!1)),xt.addEventListener("mouseenter",c=>we(c,!0)),xt.$$click=()=>{wu(r)},e.insert(Pt,(()=>{var c=e.memo(()=>!!r.matrix);return()=>c()&&(()=>{var u=Qc();return u.addEventListener("mouseleave",v=>we(v,!1)),u.addEventListener("mouseenter",v=>we(v,!0)),u.$$click=()=>{xu(r.name)},e.effect(v=>{var z=t("gui.job.cancelMatrixTitle",{name:r.name}),q=Et();return z!==v.e&&e.setAttribute(u,"title",v.e=z),v.t=e.style(u,q,v.t),v},{e:void 0,t:void 0}),u})()})(),null),e.insert(Pt,(()=>{var c=e.memo(()=>!r.matrixParentId);return()=>c()&&(()=>{var u=Zc();return u.addEventListener("mouseleave",v=>we(v,!1)),u.addEventListener("mouseenter",v=>we(v,!0)),u.$$click=()=>{hu(r.name)},e.effect(v=>{var z=r.matrix?t("gui.job.deleteMatrixTitle",{name:r.name}):t("gui.job.deleteTitle",{name:r.name}),q=Et();return z!==v.e&&e.setAttribute(u,"title",v.e=z),v.t=e.style(u,q,v.t),v},{e:void 0,t:void 0}),u})()})(),null),e.insert(n,(()=>{var c=e.memo(()=>Vi()===r.name);return()=>c()&&(()=>{var u=Xc(),v=u.firstChild,z=v.firstChild;return e.insert(v,()=>t("gui.job.historyPanelTitle"),z),z.addEventListener("mouseleave",q=>{q.target.style.color="#8e8e93"}),z.addEventListener("mouseenter",q=>{q.target.style.color="#ffffff"}),z.$$click=()=>Oa(null),e.insert(u,(()=>{var q=e.memo(()=>Ia().length===0);return()=>q()?(()=>{var C=Il();return e.insert(C,()=>t("gui.job.historyEmpty")),C})():Ia().map(C=>(()=>{var Z=eg(),A=Z.firstChild,K=A.nextSibling,Ae=K.nextSibling;return e.insert(A,()=>new Date(C.startedAt).toLocaleString()),e.insert(K,(()=>{var X=e.memo(()=>C.status==="success");return()=>X()?t("gui.history.success"):t("gui.history.error")})()),e.insert(Ae,()=>t("gui.history.durationMs",{ms:C.durationMs})),e.insert(Z,(()=>{var X=e.memo(()=>!!C.model);return()=>X()&&(()=>{var F=tg();return F.firstChild,e.insert(F,()=>C.model,null),e.effect(()=>e.setAttribute(F,"title",t("gui.history.modelTitle",{model:C.model}))),F})()})(),null),e.insert(Z,(()=>{var X=e.memo(()=>!!(C.preFlightStatus&&C.preFlightStatus!=="skipped"));return()=>X()&&(()=>{var F=rg();return F.firstChild,e.insert(F,()=>C.preFlightStatus==="success"?"✅":"❌",null),e.effect(ee=>{var ke=`Pre-flight: ${C.preFlightStatus}`,ce=C.preFlightStatus==="success"?"#34c759":"#ff3b30";return ke!==ee.e&&e.setAttribute(F,"title",ee.e=ke),ce!==ee.t&&e.setStyleProperty(F,"color",ee.t=ce),ee},{e:void 0,t:void 0}),F})()})(),null),e.insert(Z,(()=>{var X=e.memo(()=>!!(C.postFlightStatus&&C.postFlightStatus!=="skipped"));return()=>X()&&(()=>{var F=ig();return F.firstChild,e.insert(F,()=>C.postFlightStatus==="success"?"✅":"❌",null),e.effect(ee=>{var ke=`Post-flight: ${C.postFlightStatus}`,ce=C.postFlightStatus==="success"?"#34c759":"#ff3b30";return ke!==ee.e&&e.setAttribute(F,"title",ee.e=ke),ce!==ee.t&&e.setStyleProperty(F,"color",ee.t=ce),ee},{e:void 0,t:void 0}),F})()})(),null),e.insert(Z,(()=>{var X=e.memo(()=>!!C.error);return()=>X()&&(()=>{var F=og();return e.insert(F,()=>C.error),F})()})(),null),e.insert(Z,(()=>{var X=e.memo(()=>!!C.nextTask);return()=>X()&&(()=>{var F=ng();return F.firstChild,e.insert(F,()=>C.nextTask,null),e.effect(()=>e.setAttribute(F,"title",t("gui.history.nextTaskTitle"))),F})()})(),null),e.effect(X=>{var F=C.startedAt+C.durationMs,ee=C.status==="success"?"#34c759":"#ff3b30";return F!==X.e&&e.setAttribute(Z,"key",X.e=F),ee!==X.t&&e.setStyleProperty(K,"color",X.t=ee),X},{e:void 0,t:void 0}),Z})())})(),null),u})()})(),null),e.insert(n,(()=>{var c=e.memo(()=>!!(mi()&&yi()===r.name));return()=>c()&&(()=>{var u=ag(),v=u.firstChild,z=v.firstChild,q=z.nextSibling;return e.insert(v,()=>r.name,q),q.addEventListener("mouseleave",C=>{C.target.style.color="#8e8e93"}),q.addEventListener("mouseenter",C=>{C.target.style.color="#ffffff"}),q.$$click=()=>ml(),e.insert(u,(()=>{var C=e.memo(()=>!!oa());return()=>C()&&(()=>{var Z=Il();return e.insert(Z,()=>t("gui.job.simulating")),Z})()})(),null),e.insert(u,(()=>{var C=e.memo(()=>!!(!oa()&&be()&&!be().success));return()=>C()&&(()=>{var Z=sg();return Z.firstChild,e.insert(Z,()=>be().error??t("gui.job.simulationFailed"),null),Z})()})(),null),e.insert(u,(()=>{var C=e.memo(()=>!!(!oa()&&be()&&be().success));return()=>C()&&(()=>{var Z=lg();return e.insert(Z,(()=>{var A=e.memo(()=>!!(Array.isArray(be().warnings)&&be().warnings.length>0));return()=>A()&&(()=>{var K=dg();return K.firstChild,e.insert(K,()=>be().warnings.map(Ae=>`· ${Ae}`).join(" | "),null),K})()})(),null),e.insert(Z,()=>be().tasks.map(A=>(()=>{var K=ug(),Ae=K.firstChild,X=Ae.firstChild,F=X.nextSibling;F.nextSibling;var ee=Ae.nextSibling;ee.firstChild;var ke=ee.nextSibling;ke.firstChild;var ce=ke.nextSibling;return ce.firstChild,e.insert(Ae,()=>(A.order??0)+1,F),e.insert(Ae,()=>A.trigger,null),e.insert(ee,()=>A.name,null),e.insert(K,(()=>{var oe=e.memo(()=>!!A.workspace);return()=>oe()&&(()=>{var O=pg();return O.firstChild,e.insert(O,()=>A.workspace.name,null),O})()})(),ke),e.insert(K,(()=>{var oe=e.memo(()=>!!A.matrixParent);return()=>oe()&&(()=>{var O=cg();return O.firstChild,e.insert(O,()=>A.matrixParent,null),O})()})(),ke),e.insert(ke,()=>A.cwd||t("gui.common.projectDir"),null),e.insert(K,(()=>{var oe=e.memo(()=>!!A.roleScoped);return()=>oe()&&(()=>{var O=gg();return e.effect(()=>e.setAttribute(O,"title",`allowed=[${(A.roleScoped.allowed??[]).join(", ")}] · denied=[${(A.roleScoped.denied??[]).join(", ")}]`)),O})()})(),ce),e.insert(K,(()=>{var oe=e.memo(()=>A.estimatedDurationSec!=null);return()=>oe()&&(()=>{var O=jl();return e.insert(O,()=>t("gui.job.durationEst",{seconds:A.estimatedDurationSec})),O})()})(),ce),e.insert(K,(()=>{var oe=e.memo(()=>A.estimatedTokens!=null);return()=>oe()&&(()=>{var O=jl();return e.insert(O,()=>t("gui.job.tokensEst",{tokens:A.estimatedTokens})),O})()})(),ce),e.insert(K,(()=>{var oe=e.memo(()=>A.estimatedCostUsd!=null);return()=>oe()&&(()=>{var O=mg();return O.firstChild,e.insert(O,()=>Number(A.estimatedCostUsd).toFixed(4),null),O})()})(),ce),e.insert(ce,()=>A.command,null),e.insert(K,(()=>{var oe=e.memo(()=>!!A.preFlight);return()=>oe()&&(()=>{var O=fg();return O.firstChild,e.insert(O,()=>A.preFlight,null),O})()})(),null),e.insert(K,(()=>{var oe=e.memo(()=>!!A.postFlight);return()=>oe()&&(()=>{var O=yg();return O.firstChild,e.insert(O,()=>A.postFlight,null),O})()})(),null),e.insert(K,(()=>{var oe=e.memo(()=>!!A.qualityGate);return()=>oe()&&(()=>{var O=bg();return O.firstChild,e.insert(O,()=>A.qualityGate,null),O})()})(),null),e.effect(()=>e.setAttribute(K,"key",`${A.name}-${A.order}`)),K})()),null),e.insert(Z,(()=>{var A=e.memo(()=>!!(be().totals&&(be().totals.estimatedDurationSec!=null||be().totals.estimatedTokens!=null)));return()=>A()&&(()=>{var K=xg();return e.insert(K,()=>t("gui.job.totalsLine",{duration:be().totals.estimatedDurationSec??"—",tokens:be().totals.estimatedTokens??"—",cost:be().totals.estimatedCostUsd!=null?` · ~$${Number(be().totals.estimatedCostUsd).toFixed(4)}`:""})),K})()})(),null),Z})()})(),null),u})()})(),null),e.effect(c=>{var u=`background:#252526;border-radius:10px;padding:16px;margin-bottom:12px;display:flex;flex-direction:column;gap:10px;border:1px solid ${Ye()?"rgba(135, 206, 250, 0.4)":"#333"}`,v=t("gui.job.runsTitle"),z=t("gui.job.runTitle",{name:r.name}),q=Et(),C=!!r.orphaned,Z=r.orphaned?t("gui.job.pauseUnavailable",{name:r.name}):r.paused?t("gui.job.resumeTitle",{name:r.name}):t("gui.job.pauseTitle",{name:r.name}),A=Et(),K=t("gui.job.logsTitle",{name:r.name}),Ae=Et(),X=t("gui.job.dryRunTitle",{name:r.name}),F=Et(mi()&&yi()===r.name),ee=t("gui.job.historyTitle",{name:r.name}),ke=Et(Vi()===r.name),ce=t("gui.job.editTitle",{name:r.name}),oe=Et();return c.e=e.style(n,u,c.e),v!==c.t&&e.setAttribute(Ce,"title",c.t=v),z!==c.a&&e.setAttribute(ue,"title",c.a=z),c.o=e.style(ue,q,c.o),C!==c.i&&(yt.disabled=c.i=C),Z!==c.n&&e.setAttribute(yt,"title",c.n=Z),c.s=e.style(yt,A,c.s),K!==c.h&&e.setAttribute(Le,"title",c.h=K),c.r=e.style(Le,Ae,c.r),X!==c.d&&e.setAttribute(Ne,"title",c.d=X),c.l=e.style(Ne,F,c.l),ee!==c.u&&e.setAttribute(bt,"title",c.u=ee),c.c=e.style(bt,ke,c.c),ce!==c.w&&e.setAttribute(xt,"title",c.w=ce),c.m=e.style(xt,oe,c.m),c},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0}),n})()};try{return s.add(wa.Panel,{id:"scheduler-jobs",region:"side",list:()=>[{id:"jobs",title:t("gui.jobsTitle"),pinned:!0}],render:()=>e.createComponent(d.ErrorBoundary,{fallback:i=>(()=>{var r=Nl();return e.insert(r,()=>t("gui.uiError",{message:i.message})),r})(),get children(){var i=hg(),r=i.firstChild,n=r.nextSibling,p=n.firstChild,Y=p.firstChild,xe=Y.nextSibling,ie=xe.nextSibling,ft=p.nextSibling,Ce=ft.firstChild,_r=Ce.firstChild,Pt=_r.nextSibling,ue=Ce.nextSibling,yt=ue.firstChild,Le=ue.nextSibling,Ne=Le.nextSibling,bt=Ne.firstChild,xt=n.nextSibling,c=xt.firstChild,u=c.nextSibling,v=u.nextSibling,z=xt.nextSibling,q=z.firstChild,C=q.nextSibling,Z=C.nextSibling,A=z.nextSibling,K=A.firstChild,Ae=K.firstChild,X=Ae.nextSibling,F=X.firstChild,ee=A.nextSibling,ke=ee.firstChild,ce=ke.firstChild,oe=ce.nextSibling,O=oe.firstChild,xl=O.nextSibling,ca=ee.nextSibling,Eu=ca.firstChild,hl=Eu.firstChild,vl=hl.firstChild,wl=vl.nextSibling,Pu=wl.nextSibling,kl=ca.nextSibling,$l=kl.firstChild,zu=$l.firstChild,Ru=$l.nextSibling,Sl=Ru.firstChild,_l=Sl.firstChild,Tl=_l.firstChild,Cl=Sl.nextSibling,El=Cl.firstChild,ga=El.nextSibling,Lu=ga.nextSibling,Au=Cl.nextSibling,Pl=Au.firstChild,ma=Pl.nextSibling,Du=ma.nextSibling,fa=kl.nextSibling,Mu=fa.firstChild,ya=Mu.firstChild,Fu=ya.firstChild,zl=Fu.nextSibling,Ou=zl.nextSibling,wi=ya.nextSibling,jo=fa.nextSibling,Iu=jo.firstChild;return e.insert(Y,(()=>{var m=e.memo(()=>!!Ye());return()=>m()?`❄️ ${On()} ❄️`:On()})()),e.insert(ie,()=>t("gui.metricsTotalsLine",{total:hn().total,success:hn().success,error:hn().error})),Ce.addEventListener("change",m=>jr(m.currentTarget.value)),e.insert(_r,()=>t("gui.workspaceAll")),e.insert(Ce,()=>P().map(m=>(()=>{var x=ql(),E=x.firstChild;return e.insert(x,()=>m.name,null),e.effect(()=>e.setAttribute(x,"key",m.id)),e.effect(()=>x.value=m.id),x})()),Pt),e.insert(Pt,()=>t("gui.workspaceNone")),ue.$$click=()=>ld(m=>!m),e.insert(ue,La,null),e.insert(ue,()=>ur()?" 🔒":"",null),Le.addEventListener("mouseleave",m=>{const x=m.currentTarget;x.style.borderColor="#333",x.style.background="#1e1e1e",x.style.color="#e0e0e0"}),Le.addEventListener("mouseenter",m=>{const x=m.currentTarget;x.style.borderColor="#5ac8fa",x.style.background="rgba(90,200,250,0.12)",x.style.color="#5ac8fa"}),Le.$$click=async()=>{const m=window.open("","_blank");let x=3782;try{const k=await y.get_dashboard_port({});k&&typeof k.port=="number"&&k.port>0&&(x=k.port)}catch(k){console.warn("[scheduler] Не удалось получить порт дашборда:",k)}const E="http://localhost:"+x;m?m.location.href=E:window.open(E,"_blank")},e.insert(Le,()=>t("gui.openDashboard")),bt.addEventListener("change",m=>{Wd(m.currentTarget.checked)}),e.insert(Ne,()=>t("gui.winterMode"),null),e.insert(i,(()=>{var m=e.memo(()=>!!Bi());return()=>m()&&(()=>{var x=vg(),E=x.firstChild,k=E.firstChild,I=k.nextSibling,G=E.nextSibling,U=G.nextSibling;return e.insert(k,()=>t("gui.profilesHeading")),I.$$click=()=>{Xd()},e.insert(I,()=>t("gui.createProfile")),e.insert(x,(()=>{var $=e.memo(()=>!!ur());return()=>$()&&(()=>{var _=wg();return e.insert(_,()=>t("gui.profileEnvLocked")),_})()})(),G),e.insert(G,()=>nd().map($=>(()=>{var _=kg(),T=_.firstChild,re=T.nextSibling,ge=re.nextSibling;return e.insert(T,()=>$.name,null),e.insert(T,(()=>{var J=e.memo(()=>!!$.isDefault);return()=>J()?t("gui.defaultSuffix"):""})(),null),e.insert(re,(()=>{var J=e.memo(()=>!!$.port);return()=>J()?t("gui.profilePort",{port:$.port}):t("gui.profilePortDefault")})()),e.insert(ge,()=>$.dir),e.insert(_,(()=>{var J=e.memo(()=>!!$.active);return()=>J()?(()=>{var R=$g();return e.insert(R,()=>t("gui.profileActive")),R})():(()=>{var R=Hl();return R.$$click=()=>{Zd($.name)},e.insert(R,()=>t("gui.profileSwitch")),e.effect(j=>{var M=pr()||ur(),W=`padding:2px 8px;border-radius:6px;border:1px solid #333;background:#262626;color:#e0e0e0;font-size:11px;cursor:${pr()||ur()?"not-allowed":"pointer"};opacity:${ur()?.5:1}`;return M!==j.e&&(R.disabled=j.e=M),j.t=e.style(R,W,j.t),j},{e:void 0,t:void 0}),R})()})(),null),e.insert(_,(()=>{var J=e.memo(()=>!$.isDefault&&!$.active);return()=>J()&&(()=>{var R=Hl();return R.$$click=()=>{eu($.name)},e.insert(R,()=>t("gui.profileDelete")),e.effect(j=>{var M=pr(),W=`padding:2px 8px;border-radius:6px;border:1px solid rgba(255,59,48,0.4);background:rgba(255,59,48,0.12);color:#ff3b30;font-size:11px;cursor:${pr()?"not-allowed":"pointer"}`;return M!==j.e&&(R.disabled=j.e=M),j.t=e.style(R,W,j.t),j},{e:void 0,t:void 0}),R})()})(),null),e.effect(J=>{var R=`font-weight:${$.active?700:400};color:${$.active?"#bf5af2":"#e0e0e0"}`,j=$.dir;return J.e=e.style(T,R,J.e),j!==J.t&&e.setAttribute(ge,"title",J.t=j),J},{e:void 0,t:void 0}),_})())),e.insert(U,()=>t("gui.profilesHint")),e.effect($=>{var _=pr(),T=`padding:4px 10px;border-radius:6px;border:1px solid #333;background:#262626;color:#e0e0e0;font-size:11px;cursor:${pr()?"not-allowed":"pointer"}`;return _!==$.e&&(I.disabled=$.e=_),$.t=e.style(I,T,$.t),$},{e:void 0,t:void 0}),x})()})(),xt),c.$$click=Jd,e.insert(c,(()=>{var m=e.memo(()=>!!Mo());return()=>m()?t("gui.exportBusy"):t("gui.export")})()),u.addEventListener("change",Qd),v.$$click=()=>document.querySelector('input[type="file"]')?.click(),e.insert(v,(()=>{var m=e.memo(()=>!!Fo());return()=>m()?t("gui.importBusy"):t("gui.import")})()),e.insert(q,()=>t("gui.maxConcurrentLabel")),C.addEventListener("change",m=>Hd(Number(m.currentTarget.value)||1)),e.insert(Z,()=>t("gui.zeroUnlimited")),K.$$click=()=>xd(!$n()),e.insert(Ae,()=>t("gui.notifications")),e.insert(X,(()=>{var m=e.memo(()=>!!S());return()=>m()?e.memo(()=>!!kn())()?t("gui.notifyOnlyErrors"):t("gui.notifyAllRuns"):t("gui.notifyDisabled")})(),F),e.insert(F,()=>$n()?"▾":"▴"),e.insert(A,(()=>{var m=e.memo(()=>!$n());return()=>m()&&(()=>{var x=Sg(),E=x.firstChild,k=E.firstChild,I=E.nextSibling,G=I.firstChild,U=I.nextSibling,$=U.firstChild,_=$.firstChild,T=$.nextSibling,re=T.nextSibling,ge=re.nextSibling,J=ge.firstChild,R=J.nextSibling,j=R.nextSibling,M=j.nextSibling,W=M.nextSibling,Se=W.nextSibling,Xe=ge.nextSibling,qe=U.nextSibling,Fe=qe.firstChild,Oe=Fe.firstChild,L=Fe.nextSibling,ne=L.nextSibling,he=ne.nextSibling,He=he.firstChild,Ee=He.nextSibling,De=Ee.nextSibling,ht=De.firstChild,Bt=De.nextSibling,vt=Bt.firstChild,No=he.nextSibling,Tr=qe.nextSibling,Ut=Tr.firstChild,Cr=Ut.firstChild,Gt=Ut.nextSibling,et=Gt.firstChild,qo=Gt.nextSibling,Vt=Tr.nextSibling,wt=Vt.firstChild,Er=wt.firstChild,zt=wt.nextSibling,Ho=zt.firstChild,Kt=Ho.nextSibling,Wo=Kt.nextSibling,Yt=Wo.nextSibling,Bo=zt.nextSibling,Jt=Vt.nextSibling,Uo=Jt.firstChild,We=Uo.nextSibling,tt=We.nextSibling,Go=tt.nextSibling,ki=Jt.nextSibling,Vo=ki.firstChild,kt=Vo.nextSibling,rt=kt.nextSibling,Pr=rt.nextSibling,$i=ki.nextSibling,Si=$i.firstChild,Ko=Si.firstChild,ba=Ko.nextSibling,Yo=Si.nextSibling,_i=Yo.firstChild,Rt=_i.firstChild,Lt=Rt.nextSibling,Qt=Lt.nextSibling,At=_i.nextSibling,Jo=At.nextSibling,Ti=$i.nextSibling,Zt=Ti.firstChild,zr=Zt.nextSibling,Ci=zr.firstChild,Rr=zr.nextSibling,Ei=Rr.firstChild,$t=Ei.firstChild,Pi=Ei.nextSibling,Lr=Pi.firstChild,zi=Pi.nextSibling,Xt=zi.nextSibling,Qo=Rr.nextSibling,Ri=Ti.nextSibling,Li=Ri.firstChild,er=Li.nextSibling,Ar=er.firstChild,Dt=er.nextSibling,tr=Dt.firstChild,Ai=tr.firstChild,Zo=Ai.nextSibling,it=tr.nextSibling,xa=it.nextSibling,Xo=Dt.nextSibling,en=Ri.nextSibling,ot=en.firstChild,rr=ot.nextSibling,tn=rr.nextSibling;return k.addEventListener("change",o=>{Na(o.currentTarget.checked),B()}),e.insert(E,()=>t("gui.notifyEnable"),null),G.addEventListener("change",o=>{qa(o.currentTarget.checked),B()}),e.insert(I,()=>t("gui.notifyOnlyOnError"),null),_.addEventListener("change",o=>{Ha(o.currentTarget.checked),B()}),e.insert($,()=>t("gui.webhookLabel"),null),T.addEventListener("change",()=>{B()}),T.$$input=o=>Ba(o.currentTarget.value),e.insert(re,()=>t("gui.webhookPostHint",{payload:"{ content, text }"})),e.insert(J,()=>t("gui.timeoutMs")),R.addEventListener("change",()=>{B()}),R.$$input=o=>Va(Number(o.currentTarget.value)||1e4),e.insert(j,()=>t("gui.retryCount")),M.addEventListener("change",()=>{B()}),M.$$input=o=>Ya(Number(o.currentTarget.value)||0),e.insert(W,()=>t("gui.retryDelayMs")),Se.addEventListener("change",()=>{B()}),Se.$$input=o=>Qa(Number(o.currentTarget.value)||1e3),e.insert(Xe,()=>t("gui.retryHint")),Oe.addEventListener("change",o=>{xs(o.currentTarget.checked),B()}),L.addEventListener("change",()=>{B()}),L.$$input=o=>vs(o.currentTarget.value),ne.addEventListener("change",()=>{B()}),ne.$$input=o=>ks(o.currentTarget.value),e.insert(He,()=>t("gui.parseModeLabel")),Ee.addEventListener("change",o=>{Ss(o.currentTarget.value),B()}),ht.addEventListener("change",o=>{Ts(o.currentTarget.checked),B()}),e.insert(De,()=>t("gui.silent"),null),vt.addEventListener("change",o=>{Es(o.currentTarget.checked),B()}),e.insert(Bt,()=>t("gui.dashboardLink"),null),e.insert(No,()=>t("gui.botTokenEnvHint")),Cr.addEventListener("change",o=>{Ps(o.currentTarget.checked),B()}),e.insert(Ut,()=>t("gui.nativeNotifications"),null),et.addEventListener("change",o=>{Rs(o.currentTarget.checked),B()}),e.insert(Gt,()=>t("gui.withSound"),null),e.insert(qo,()=>t("gui.nativeHint")),Er.addEventListener("change",o=>{Ls(o.currentTarget.checked),B()}),e.insert(wt,()=>t("gui.quietHours"),null),e.insert(Ho,()=>t("gui.quietFrom")),Kt.addEventListener("change",()=>{B()}),Kt.$$input=o=>Ds(o.currentTarget.value),e.insert(Wo,()=>t("gui.quietTo")),Yt.addEventListener("change",()=>{B()}),Yt.$$input=o=>Fs(o.currentTarget.value),e.insert(Bo,()=>t("gui.quietHoursHint")),e.insert(Uo,()=>t("gui.taskFiltersHeading")),We.addEventListener("change",()=>{B()}),We.$$input=o=>is(o.currentTarget.value),tt.addEventListener("change",()=>{B()}),tt.$$input=o=>ns(o.currentTarget.value),e.insert(Go,()=>t("gui.filterHint")),e.insert(Vo,()=>t("gui.templatesHeading")),kt.addEventListener("change",()=>{B()}),kt.$$input=o=>Xa(o.currentTarget.value),rt.addEventListener("change",()=>{B()}),rt.$$input=o=>ts(o.currentTarget.value),e.insert(Pr,()=>t("gui.templateHint")),e.insert(Ko,()=>t("gui.secrets")),e.insert(ba,()=>_n().length),Rt.$$input=o=>Is(o.currentTarget.value),Lt.$$input=o=>js(o.currentTarget.value),Qt.$$click=()=>{Id()},e.insert(Qt,(()=>{var o=e.memo(()=>!!Tn());return()=>o()?t("gui.saving"):t("gui.save")})()),e.insert(At,()=>_n().map(o=>(()=>{var Be=_g(),ir=Be.firstChild,Mt=ir.nextSibling,or=Mt.firstChild,Ft=Mt.nextSibling;return e.insert(ir,()=>o.name),e.insert(Mt,()=>o.preview,null),Ft.$$click=()=>{jd(o.name)},e.effect(Ue=>{var Ot=o.name,It=t("gui.delete");return Ot!==Ue.e&&e.setAttribute(Be,"key",Ue.e=Ot),It!==Ue.t&&e.setAttribute(Ft,"title",Ue.t=It),Ue},{e:void 0,t:void 0}),Be})()),null),e.insert(At,(()=>{var o=e.memo(()=>_n().length===0);return()=>o()&&(()=>{var Be=Tg();return e.insert(Be,()=>t("gui.secretsEmpty")),Be})()})(),null),e.insert(Jo,()=>t("gui.secretsUsage",{secretRef:"{secret:NAME}"})),e.insert(Zt,()=>t("gui.matrixNotifyHeading")),Ci.addEventListener("change",o=>{as(o.currentTarget.checked),B()}),e.insert(zr,()=>t("gui.matrixNotifyEnable"),null),$t.addEventListener("change",o=>{ls(o.currentTarget.checked),B()}),Lr.addEventListener("change",o=>{us(o.currentTarget.checked),B()}),e.insert(Pi,()=>t("gui.matrixAllFailed"),null),e.insert(zi,()=>t("gui.matrixStuckMinutes")),Xt.addEventListener("change",()=>{B()}),Xt.$$input=o=>cs(Number(o.currentTarget.value)||0),e.insert(Qo,()=>t("gui.matrixStuckHint")),e.insert(Li,()=>t("gui.digestHeading")),Ar.addEventListener("change",o=>{gs(o.currentTarget.checked),B()}),e.insert(er,()=>t("gui.digestEnable"),null),tr.addEventListener("change",o=>{fs(o.currentTarget.value==="weekly"?"weekly":"daily"),B()}),e.insert(Ai,()=>t("gui.digestDaily")),e.insert(Zo,()=>t("gui.digestWeekly")),it.addEventListener("change",()=>{B()}),it.$$input=o=>bs(o.currentTarget.value),e.insert(xa,(()=>{var o=e.memo(()=>!!Sn());return()=>o()?t("gui.digestLastSent",{when:new Date(Sn()).toLocaleString()}):t("gui.digestNeverSent")})()),e.insert(Xo,()=>t("gui.digestHint")),ot.$$click=()=>{Nd()},e.insert(ot,(()=>{var o=e.memo(()=>!!Ji());return()=>o()?t("gui.sending"):t("gui.sendTestNotification")})()),rr.$$click=()=>{qd()},e.insert(rr,(()=>{var o=e.memo(()=>!!Qi());return()=>o()?t("gui.sending"):t("gui.sendDigestNow")})()),e.insert(tn,()=>t("gui.digestChannels")),e.effect(o=>{var Be=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,ir=!S(),Mt=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,or=!S(),Ft=!S()||!Re(),Ue=`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;opacity:${S()&&Re()?1:.5}`,Ot=!S()||!Re(),It=!S()||!Re(),Di=!S()||!Re(),rn=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,on=!S(),nr=!S()||!ve(),Mi=t("gui.botTokenPlaceholder"),ha=`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;opacity:${S()&&ve()?1:.5}`,Fi=!S()||!ve(),ar=t("gui.chatIdPlaceholder"),sr=`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;opacity:${S()&&ve()?1:.5}`,a=`display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${S()&&ve()?1:.5}`,l=!S()||!ve(),f=!S()||!ve(),g=!S()||!ve(),h=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,b=!S(),D=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()&&Je()?1:.5}`,H=!S()||!Je(),Pe=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,ae=!S(),Me=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${S()&&Br()?1:.5}`,se=!S()||!Br(),V=!S()||!Br(),$e=!S(),_e=t("gui.filterIncludePlaceholder"),Ge=`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;opacity:${S()?1:.5}`,nt=!S(),St=t("gui.filterExcludePlaceholder"),nn=`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;opacity:${S()?1:.5}`,Dr=!S(),lr=t("gui.templateSuccessPlaceholder"),an=`display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;opacity:${S()?1:.5}`,me=!S(),le=t("gui.templateErrorPlaceholder"),at=`display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;opacity:${S()?1:.5}`,dr=t("gui.secretNamePlaceholder"),ze=t("gui.secretValuePlaceholder"),Ie=Tn()||!Zi().trim()||!Xi(),jt=Tn()||!Zi().trim()||!Xi()?"padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6":"padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1",sn=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,Ve=!S(),Mr=`display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${S()&&mr()?1:.5}`,ln=!S()||!mr(),Oi=!S()||!mr(),dn=!S()||!mr(),Fr=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${S()?1:.5}`,Ii=!S(),Or=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${S()&&Wr()?1:.5}`,ji=!S()||!Wr(),un=!S()||!Wr(),Ir=Ji()||!(Re()||ve()||Je()),pn=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${Ji()||!(Re()||ve()||Je())?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${Ji()||!(Re()||ve()||Je())?.6:1}`,de=Qi()||!(Re()||ve()||Je()),va=`padding:6px 12px;background:#2d7d46;color:white;border:none;border-radius:6px;cursor:${Qi()||!(Re()||ve()||Je())?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${Qi()||!(Re()||ve()||Je())?.6:1}`;return o.e=e.style(I,Be,o.e),ir!==o.t&&(G.disabled=o.t=ir),o.a=e.style($,Mt,o.a),or!==o.o&&(_.disabled=o.o=or),Ft!==o.i&&(T.disabled=o.i=Ft),o.n=e.style(T,Ue,o.n),Ot!==o.s&&(R.disabled=o.s=Ot),It!==o.h&&(M.disabled=o.h=It),Di!==o.r&&(Se.disabled=o.r=Di),o.d=e.style(Fe,rn,o.d),on!==o.l&&(Oe.disabled=o.l=on),nr!==o.u&&(L.disabled=o.u=nr),Mi!==o.c&&e.setAttribute(L,"placeholder",o.c=Mi),o.w=e.style(L,ha,o.w),Fi!==o.m&&(ne.disabled=o.m=Fi),ar!==o.f&&e.setAttribute(ne,"placeholder",o.f=ar),o.y=e.style(ne,sr,o.y),o.g=e.style(he,a,o.g),l!==o.p&&(Ee.disabled=o.p=l),f!==o.b&&(ht.disabled=o.b=f),g!==o.T&&(vt.disabled=o.T=g),o.A=e.style(Ut,h,o.A),b!==o.O&&(Cr.disabled=o.O=b),o.I=e.style(Gt,D,o.I),H!==o.S&&(et.disabled=o.S=H),o.W=e.style(wt,Pe,o.W),ae!==o.C&&(Er.disabled=o.C=ae),o.B=e.style(zt,Me,o.B),se!==o.v&&(Kt.disabled=o.v=se),V!==o.k&&(Yt.disabled=o.k=V),$e!==o.x&&(We.disabled=o.x=$e),_e!==o.j&&e.setAttribute(We,"placeholder",o.j=_e),o.q=e.style(We,Ge,o.q),nt!==o.z&&(tt.disabled=o.z=nt),St!==o.P&&e.setAttribute(tt,"placeholder",o.P=St),o.H=e.style(tt,nn,o.H),Dr!==o.F&&(kt.disabled=o.F=Dr),lr!==o.M&&e.setAttribute(kt,"placeholder",o.M=lr),o.D=e.style(kt,an,o.D),me!==o.R&&(rt.disabled=o.R=me),le!==o.E&&e.setAttribute(rt,"placeholder",o.E=le),o.L=e.style(rt,at,o.L),dr!==o.N&&e.setAttribute(Rt,"placeholder",o.N=dr),ze!==o.G&&e.setAttribute(Lt,"placeholder",o.G=ze),Ie!==o.U&&(Qt.disabled=o.U=Ie),o.K=e.style(Qt,jt,o.K),o.V=e.style(zr,sn,o.V),Ve!==o.Y&&(Ci.disabled=o.Y=Ve),o.J=e.style(Rr,Mr,o.J),ln!==o.Q&&($t.disabled=o.Q=ln),Oi!==o.Z&&(Lr.disabled=o.Z=Oi),dn!==o.X&&(Xt.disabled=o.X=dn),o._=e.style(er,Fr,o._),Ii!==o.$&&(Ar.disabled=o.$=Ii),o.te=e.style(Dt,Or,o.te),ji!==o.tt&&(tr.disabled=o.tt=ji),un!==o.ta&&(it.disabled=o.ta=un),Ir!==o.to&&(ot.disabled=o.to=Ir),o.ti=e.style(ot,pn,o.ti),de!==o.tn&&(rr.disabled=o.tn=de),o.ts=e.style(rr,va,o.ts),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0,S:void 0,W:void 0,C:void 0,B:void 0,v:void 0,k:void 0,x:void 0,j:void 0,q:void 0,z:void 0,P:void 0,H:void 0,F:void 0,M:void 0,D:void 0,R:void 0,E:void 0,L:void 0,N:void 0,G:void 0,U:void 0,K:void 0,V:void 0,Y:void 0,J:void 0,Q:void 0,Z:void 0,X:void 0,_:void 0,$:void 0,te:void 0,tt:void 0,ta:void 0,to:void 0,ti:void 0,tn:void 0,ts:void 0}),e.effect(()=>k.checked=S()),e.effect(()=>G.checked=kn()),e.effect(()=>_.checked=Re()),e.effect(()=>T.value=Wa()||""),e.effect(()=>R.value=Ga()),e.effect(()=>M.value=Ka()),e.effect(()=>Se.value=Ja()),e.effect(()=>Oe.checked=ve()),e.effect(()=>L.value=hs()||""),e.effect(()=>ne.value=ws()||""),e.effect(()=>Ee.value=$s()),e.effect(()=>ht.checked=_s()),e.effect(()=>vt.checked=Cs()),e.effect(()=>Cr.checked=Je()),e.effect(()=>et.checked=zs()),e.effect(()=>Er.checked=Br()),e.effect(()=>Kt.value=As()),e.effect(()=>Yt.value=Ms()),e.effect(()=>We.value=rs()||""),e.effect(()=>tt.value=os()||""),e.effect(()=>kt.value=Za()||""),e.effect(()=>rt.value=es()||""),e.effect(()=>Rt.value=Zi()),e.effect(()=>Lt.value=Xi()),e.effect(()=>Ci.checked=mr()),e.effect(()=>$t.checked=ss()),e.effect(()=>Lr.checked=ds()),e.effect(()=>Xt.value=ps()),e.effect(()=>Ar.checked=Wr()),e.effect(()=>tr.value=ms()),e.effect(()=>it.value=ys()),x})()})(),null),ke.$$click=()=>zd(!Fn()),e.insert(ce,()=>t("gui.historyHeading")),e.insert(oe,(()=>{var m=e.memo(()=>io()>0);return()=>m()?t("gui.historyOlderThan",{days:io()}):t("gui.historyNoExpiry")})(),O),e.insert(oe,(()=>{var m=e.memo(()=>no()>0);return()=>m()?t("gui.historyUpToRecords",{count:no()}):t("gui.historyNoLimit")})(),xl),e.insert(xl,()=>Fn()?"▾":"▴"),e.insert(ee,(()=>{var m=e.memo(()=>!Fn());return()=>m()&&(()=>{var x=Cg(),E=x.firstChild,k=E.firstChild,I=k.nextSibling,G=I.nextSibling,U=E.nextSibling,$=U.firstChild,_=$.nextSibling,T=_.nextSibling,re=U.nextSibling,ge=re.firstChild,J=re.nextSibling,R=J.firstChild,j=R.nextSibling;return e.insert(k,()=>t("gui.historyDeleteOlderLabel")),I.addEventListener("change",M=>{oo(Math.max(0,Math.floor(Number(M.currentTarget.value)||0))),Ks()}),e.insert(G,()=>t("gui.zeroKeepByAge")),e.insert($,()=>t("gui.historyKeepMaxLabel")),_.addEventListener("change",M=>{ao(Math.max(0,Math.floor(Number(M.currentTarget.value)||0))),Ks()}),e.insert(T,()=>t("gui.zeroNoLimit")),e.insert(re,()=>t("gui.lastCleanupLabel"),ge),e.insert(re,(()=>{var M=e.memo(()=>!!An());return()=>M()?t("gui.lastCleanupDone",{when:new Date(An()).toLocaleString(),deleted:Bs()}):t("gui.lastCleanupNever")})(),null),R.$$click=()=>{Od()},e.insert(R,(()=>{var M=e.memo(()=>!!so());return()=>M()?t("gui.cleaningUp"):t("gui.cleanupNow")})()),e.insert(j,()=>t("gui.historyCleanupHint")),e.effect(M=>{var W=so(),Se=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${so()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${so()?.6:1}`;return W!==M.e&&(R.disabled=M.e=W),M.t=e.style(R,Se,M.t),M},{e:void 0,t:void 0}),e.effect(()=>I.value=io()),e.effect(()=>_.value=no()),x})()})(),null),hl.$$click=()=>Td(!Pn()),e.insert(vl,()=>t("gui.auditHeading")),e.insert(wl,()=>Cn().length),e.insert(Pu,()=>Pn()?"▾":"▴"),e.insert(ca,(()=>{var m=e.memo(()=>!Pn());return()=>m()&&(()=>{var x=Eg(),E=x.firstChild,k=E.firstChild,I=k.nextSibling,G=I.nextSibling,U=G.nextSibling,$=U.nextSibling,_=$.nextSibling,T=_.nextSibling,re=E.nextSibling,ge=re.firstChild,J=ge.firstChild,R=J.firstChild,j=R.firstChild,M=j.nextSibling,W=M.nextSibling,Se=W.nextSibling,Xe=Se.nextSibling,qe=Xe.nextSibling,Fe=J.nextSibling,Oe=re.nextSibling;return e.insert(k,()=>t("gui.auditAction")),I.addEventListener("change",()=>{Ur()}),I.$$input=L=>Cd(L.currentTarget.value),e.insert(G,()=>t("gui.auditSource")),U.addEventListener("change",()=>{Ur()}),U.$$input=L=>Ed(L.currentTarget.value),e.insert($,()=>t("gui.auditTarget")),_.addEventListener("change",()=>{Ur()}),_.$$input=L=>Pd(L.currentTarget.value),T.$$click=()=>{Ur()},e.insert(T,(()=>{var L=e.memo(()=>!!En());return()=>L()?t("gui.loading"):t("gui.refresh")})()),e.insert(j,()=>t("gui.auditTime")),e.insert(M,()=>t("gui.auditAction")),e.insert(W,()=>t("gui.auditTarget")),e.insert(Se,()=>t("gui.auditSource")),e.insert(Xe,()=>t("gui.auditActor")),e.insert(qe,()=>t("gui.auditDeletedFrom")),e.insert(Fe,()=>Cn().map(L=>(()=>{var ne=Pg(),he=ne.firstChild,He=he.nextSibling,Ee=He.nextSibling,De=Ee.firstChild,ht=Ee.nextSibling,Bt=ht.nextSibling,vt=Bt.nextSibling;return e.insert(he,()=>new Date(L.ts).toLocaleString()),e.insert(He,()=>L.action),e.insert(Ee,()=>L.targetType??"",De),e.insert(Ee,()=>L.target??"—",null),e.insert(ht,()=>L.source??"—"),e.insert(Bt,()=>L.actor),e.insert(vt,()=>L.remote??"—"),e.effect(()=>e.setAttribute(ne,"key",L.id)),ne})()),null),e.insert(Fe,(()=>{var L=e.memo(()=>Cn().length===0);return()=>L()&&(()=>{var ne=zg(),he=ne.firstChild;return e.insert(he,()=>t("gui.auditEmpty")),ne})()})(),null),e.insert(Oe,()=>t("gui.auditHint",{redacted:"***"})),e.effect(L=>{var ne=t("gui.auditActionPlaceholder"),he=t("gui.auditTargetPlaceholder"),He=En(),Ee=En()?"padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6":"padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1";return ne!==L.e&&e.setAttribute(I,"placeholder",L.e=ne),he!==L.t&&e.setAttribute(_,"placeholder",L.t=he),He!==L.a&&(T.disabled=L.a=He),L.o=e.style(T,Ee,L.o),L},{e:void 0,t:void 0,a:void 0,o:void 0}),e.effect(()=>I.value=qs()),e.effect(()=>U.value=Hs()),e.effect(()=>_.value=Ws()),x})()})(),null),e.insert(zu,()=>t("gui.auditStorageHeading")),Tl.addEventListener("change",m=>{eo(m.currentTarget.checked),jn()}),e.insert(_l,()=>t("gui.auditEnable"),null),e.insert(El,()=>t("gui.historyDeleteOlderLabel")),ga.addEventListener("change",m=>{to(Math.max(0,Math.floor(Number(m.currentTarget.value)||0))),jn()}),e.insert(Lu,()=>t("gui.zeroKeepByAge")),e.insert(Pl,()=>t("gui.historyKeepMaxLabel")),ma.addEventListener("change",m=>{ro(Math.max(0,Math.floor(Number(m.currentTarget.value)||0))),jn()}),e.insert(Du,()=>t("gui.zeroNoLimit")),ya.$$click=()=>Tt(!Te()),e.insert(zl,()=>P().length),e.insert(Ou,()=>Te()?"▾":"▴"),wi.$$click=()=>{ou()},e.insert(wi,()=>t("gui.add")),e.insert(fa,(()=>{var m=e.memo(()=>!Te());return()=>m()&&(()=>{var x=Rg();return e.insert(x,(()=>{var E=e.memo(()=>P().length===0);return()=>E()?(()=>{var k=Lg();return e.insert(k,()=>t("gui.workspaceEmpty")),k})():P().map(k=>(()=>{var I=Ag(),G=I.firstChild,U=G.nextSibling,$=U.firstChild,_=$.firstChild,T=$.nextSibling,re=T.nextSibling,ge=re.nextSibling,J=U.nextSibling,R=J.firstChild,j=R.nextSibling,M=j.nextSibling;return e.insert($,()=>k.name,null),e.insert(T,()=>k.path),e.insert(re,()=>t("gui.workspaceGitInfo",{branch:k.gitBranch||"—",remote:k.gitRemote||t("gui.remoteNotSet")})),e.insert(ge,()=>t("gui.workspaceEnvLine",{count:k.env?Object.keys(k.env).length:"—",envFile:k.envFile?t("gui.workspaceEnvFile"):""})),R.$$click=()=>{iu(k)},j.$$click=()=>{nu(k)},M.$$click=()=>{au(k)},e.effect(W=>{var Se=`width:9px;height:9px;border-radius:50%;background:${k.color||"#5ac8fa"};flex-shrink:0`,Xe=k.path,qe=dt(),Fe=t("gui.workspaceEnvTitle"),Oe=dt(),L=t("gui.workspaceEditTitle"),ne=dt(),he=t("gui.workspaceDeleteTitle");return W.e=e.style(G,Se,W.e),Xe!==W.t&&e.setAttribute(T,"title",W.t=Xe),qe!==W.a&&(R.disabled=W.a=qe),Fe!==W.o&&e.setAttribute(R,"title",W.o=Fe),Oe!==W.i&&(j.disabled=W.i=Oe),L!==W.n&&e.setAttribute(j,"title",W.n=L),ne!==W.s&&(M.disabled=W.s=ne),he!==W.h&&e.setAttribute(M,"title",W.h=he),W},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),I})())})()),x})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!Bd());return()=>m()?(()=>{var x=Dg();return x.addEventListener("mouseleave",E=>{const k=E.currentTarget;k.style.borderColor="#3a3a3a",k.style.background="#1e1e1e"}),x.addEventListener("mouseenter",E=>{const k=E.currentTarget;k.style.borderColor="#5ac8fa",k.style.background="#232326"}),x.$$click=()=>qn(!1),e.insert(x,()=>t("gui.createTask")),e.effect(()=>e.setAttribute(x,"title",t("gui.expandFormTitle"))),x})():(()=>{var x=Mg(),E=x.firstChild,k=E.firstChild,I=k.nextSibling,G=I.firstChild,U=G.nextSibling,$=E.nextSibling,_=$.firstChild,T=_.firstChild,re=_.nextSibling,ge=$.nextSibling,J=ge.firstChild,R=J.nextSibling,j=ge.nextSibling,M=j.firstChild,W=M.nextSibling,Se=W.firstChild,Xe=Se.firstChild,qe=Se.nextSibling,Fe=qe.firstChild,Oe=qe.nextSibling,L=Oe.firstChild,ne=Oe.nextSibling,he=ne.firstChild,He=ne.nextSibling,Ee=He.firstChild,De=j.nextSibling,ht=De.firstChild,Bt=ht.nextSibling,vt=Bt.firstChild,No=vt.firstChild,Tr=vt.nextSibling,Ut=Tr.firstChild,Cr=Tr.nextSibling,Gt=Cr.firstChild,et=De.nextSibling,qo=et.firstChild,Vt=qo.nextSibling,wt=Vt.nextSibling,Er=wt.firstChild,zt=Er.nextSibling,Ho=zt.nextSibling,Kt=Ho.nextSibling,Wo=wt.nextSibling,Yt=Wo.firstChild,Bo=Yt.nextSibling,Jt=Bo.firstChild,Uo=Jt.nextSibling,We=Uo.nextSibling,tt=Bo.nextSibling,Go=tt.nextSibling,ki=Go.firstChild,Vo=ki.nextSibling,kt=Go.nextSibling,rt=kt.firstChild,Pr=rt.nextSibling,$i=Pr.firstChild,Si=$i.nextSibling,Ko=Si.nextSibling,ba=Pr.nextSibling,Yo=et.nextSibling,_i=Yo.firstChild,Rt=_i.nextSibling,Lt=Yo.nextSibling,Qt=Lt.firstChild,At=Qt.nextSibling,Jo=Lt.nextSibling,Ti=Jo.firstChild,Zt=Ti.nextSibling,zr=Zt.nextSibling,Ci=zr.nextSibling,Rr=Jo.nextSibling,Ei=Rr.firstChild,$t=Ei.nextSibling,Pi=$t.nextSibling,Lr=Rr.nextSibling,zi=Lr.firstChild,Xt=zi.nextSibling,Qo=Lr.nextSibling,Ri=Qo.firstChild,Li=Ri.nextSibling,er=Qo.nextSibling,Ar=er.firstChild,Dt=Ar.nextSibling,tr=Dt.nextSibling,Ai=er.nextSibling,Zo=Ai.firstChild,it=Zo.nextSibling,xa=it.nextSibling,Xo=Ai.nextSibling,en=Xo.firstChild,ot=en.nextSibling,rr=ot.nextSibling,tn=Xo.nextSibling,o=tn.firstChild,Be=o.nextSibling,ir=Be.nextSibling,Mt=tn.nextSibling,or=Mt.firstChild,Ft=or.nextSibling,Ue=Ft.firstChild,Ot=Ue.nextSibling,It=Ot.nextSibling,Di=It.nextSibling,rn=Di.nextSibling,on=rn.nextSibling,nr=on.firstChild,Mi=nr.nextSibling,ha=Mi.nextSibling,Fi=Mt.nextSibling,ar=Fi.firstChild,sr=ar.nextSibling;return e.insert(k,()=>t(da?"gui.editingTask":"gui.newTask")),G.addEventListener("mouseleave",a=>{const l=a.currentTarget;l.style.color="#a0a0a6",l.style.borderColor="#333"}),G.addEventListener("mouseenter",a=>{const l=a.currentTarget;l.style.color="#5ac8fa",l.style.borderColor="#5ac8fa"}),G.$$click=lu,e.insert(G,()=>t("gui.saveAsTemplate")),U.addEventListener("mouseleave",a=>{const l=a.currentTarget;l.style.color="#a0a0a6",l.style.borderColor="#333"}),U.addEventListener("mouseenter",a=>{const l=a.currentTarget;l.style.color="#5ac8fa",l.style.borderColor="#5ac8fa"}),U.$$click=()=>qn(!0),e.insert(U,()=>t("gui.hideForm")),T.addEventListener("change",a=>{const l=a.currentTarget.checked;To(l),l&&(Ke(""),mt().length===0&&gi(P().map(f=>f.id)))}),e.insert(re,()=>t("gui.matrixHint")),e.insert($,(()=>{var a=e.memo(()=>!!gt());return()=>a()&&(()=>{var l=Fg(),f=l.firstChild,g=f.firstChild,h=f.nextSibling,b=h.firstChild,D=b.firstChild,H=D.firstChild,Pe=H.nextSibling,ae=b.nextSibling,Me=ae.firstChild,se=Me.firstChild,V=se.nextSibling,$e=ae.nextSibling,_e=$e.firstChild,Ge=_e.firstChild,nt=Ge.nextSibling,St=h.nextSibling,nn=St.firstChild,Dr=St.nextSibling,lr=Dr.firstChild,an=Dr.nextSibling;return e.insert(g,()=>t("gui.matrixWorkspacesSelected",{count:mt().length})),e.insert(f,(()=>{var me=e.memo(()=>P().length===0);return()=>me()?(()=>{var le=Og();return e.insert(le,()=>t("gui.addWorkspaceFirst")),le})():(()=>{var le=Ig();return e.insert(le,()=>P().map(at=>(()=>{var dr=jg(),ze=dr.firstChild,Ie=ze.nextSibling,jt=Ie.firstChild,sn=Ie.nextSibling;return ze.addEventListener("change",Ve=>Ud(at.id,Ve.currentTarget.checked)),e.insert(Ie,()=>at.name,null),e.insert(sn,()=>at.path),e.effect(Ve=>e.style(Ie,`color:${at.color||"#5ac8fa"}`,Ve)),e.effect(()=>ze.checked=mt().includes(at.id)),dr})())),le})()})(),null),e.insert(b,()=>t("gui.strategy"),D),D.addEventListener("change",me=>Co(me.currentTarget.value==="sequential"?"sequential":"parallel")),e.insert(H,()=>t("gui.matrixParallel")),e.insert(Pe,()=>t("gui.matrixSequential")),e.insert(ae,()=>t("gui.onFailure"),Me),Me.addEventListener("change",me=>Eo(me.currentTarget.value==="stop"?"stop":"continue")),e.insert(se,()=>t("gui.matrixContinue")),e.insert(V,()=>t("gui.matrixStop")),e.insert($e,()=>t("gui.aggregation"),_e),_e.addEventListener("change",me=>Po(me.currentTarget.value==="per-task"?"per-task":"summary")),e.insert(Ge,()=>t("gui.matrixSummary")),e.insert(nt,()=>t("gui.matrixPerTask")),nn.addEventListener("change",me=>zo(me.currentTarget.checked)),e.insert(St,()=>t("gui.matrixAggregator"),null),e.insert(Dr,()=>t("gui.matrixConcurrency"),lr),lr.$$input=me=>Lo(me.currentTarget.value),e.insert(l,(()=>{var me=e.memo(()=>mt().length>0);return()=>me()&&(()=>{var le=Ng(),at=le.firstChild,dr=at.nextSibling;return e.insert(at,()=>t("gui.matrixOverridesTitle",{count:Gd()})),e.insert(dr,()=>mt().map(ze=>{const Ie=P().find(Ve=>Ve.id===ze);if(!Ie)return null;const jt=ra()[ze]??{},sn="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box";return(()=>{var Ve=qg(),Mr=Ve.firstChild,ln=Mr.firstChild,Oi=ln.nextSibling,dn=Mr.nextSibling,Fr=dn.firstChild,Ii=Fr.nextSibling,Or=Ii.firstChild,ji=Or.nextSibling,un=Ii.nextSibling,Ir=un.firstChild,pn=Ir.nextSibling;return e.insert(Mr,()=>Ie.name,Oi),e.insert(Oi,()=>aa(Qe(),Ie.name)),Fr.$$input=de=>bi(ze,"prompt",de.currentTarget.value),Or.$$input=de=>bi(ze,"model",de.currentTarget.value),ji.$$input=de=>bi(ze,"qualityGate",de.currentTarget.value),Ir.$$input=de=>bi(ze,"beforeScript",de.currentTarget.value),pn.$$input=de=>bi(ze,"afterScript",de.currentTarget.value),e.effect(de=>{var va=`font-size:12px;font-weight:600;margin-bottom:6px;color:${Ie.color||"#5ac8fa"}`,Rl=t("gui.matrixPromptPlaceholder"),Ll=t("gui.matrixModelPlaceholder");return de.e=e.style(Mr,va,de.e),Rl!==de.t&&e.setAttribute(Fr,"placeholder",de.t=Rl),Ll!==de.a&&e.setAttribute(Or,"placeholder",de.a=Ll),de},{e:void 0,t:void 0,a:void 0}),e.effect(()=>Fr.value=jt.prompt??""),e.effect(()=>Or.value=jt.model??""),e.effect(()=>ji.value=jt.qualityGate??""),e.effect(()=>Ir.value=jt.beforeScript??""),e.effect(()=>pn.value=jt.afterScript??""),Ve})()})),le})()})(),an),e.insert(an,(()=>{var me=e.memo(()=>sa().length>0);return()=>me()?[(()=>{var le=Hg();return e.insert(le,()=>t("gui.matrixWillCreate",{count:sa().length})),le})(),(()=>{var le=Wg();return e.insert(le,()=>sa().join(", ")),le})()]:(()=>{var le=Bg();return e.insert(le,()=>t("gui.matrixSelectHint")),le})()})()),e.effect(()=>e.setAttribute(lr,"placeholder",ta()==="sequential"?t("gui.concurrencySequentialPlaceholder"):t("gui.concurrencyUnlimitedPlaceholder"))),e.effect(()=>D.value=ta()),e.effect(()=>Me.value=ol()),e.effect(()=>_e.value=nl()),e.effect(()=>nn.checked=al()),e.effect(()=>lr.value=Ro()),l})()})(),null),e.insert(x,(()=>{var a=e.memo(()=>!gt());return()=>a()&&(()=>{var l=Ug(),f=l.firstChild,g=f.nextSibling,h=g.firstChild;return e.insert(f,()=>t("gui.workspaceMultiRepo")),g.addEventListener("change",b=>{Ke(b.currentTarget.value),b.currentTarget.value&&kr("")}),e.insert(h,()=>t("gui.noWorkspaceOption")),e.insert(g,()=>P().map(b=>(()=>{var D=ql(),H=D.firstChild;return e.insert(D,()=>b.name,null),e.effect(()=>e.setAttribute(D,"key",b.id)),e.effect(()=>D.value=b.id),D})()),null),e.insert(l,(()=>{var b=e.memo(()=>!!hi());return()=>b()&&(()=>{var D=Gg(),H=D.firstChild,Pe=H.firstChild,ae=Pe.nextSibling,Me=H.nextSibling,se=Me.firstChild,V=se.nextSibling,$e=Me.nextSibling,_e=$e.firstChild,Ge=_e.nextSibling;return e.insert(ae,()=>hi().path),e.insert(V,()=>hi().gitBranch||"—"),e.insert(Ge,()=>hi().gitRemote||"—"),D})()})(),null),e.effect(()=>g.value=ut()),l})()})(),ge),e.insert(J,()=>t("gui.taskNameLabel")),R.$$input=a=>uo(a.currentTarget.value),e.insert(x,(()=>{var a=e.memo(()=>!ut()&&!gt());return()=>a()&&(()=>{var l=Wl(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling;return e.insert(f,()=>t("gui.workingDirectoryLabel")),g.$$input=b=>kr(b.currentTarget.value),e.insert(h,()=>t("gui.workingDirectoryHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.workingDirectoryPlaceholder"))),e.effect(()=>g.value=ci()||""),l})()})(),j),e.insert(M,()=>t("gui.triggerTypeLabel")),Xe.addEventListener("change",()=>pt("cron")),e.insert(Se,()=>t("gui.triggerCron"),null),Fe.addEventListener("change",()=>pt("file")),e.insert(qe,()=>t("gui.triggerFile"),null),L.addEventListener("change",()=>pt("git")),e.insert(Oe,()=>t("gui.triggerGit"),null),he.addEventListener("change",()=>pt("mcp-event")),Ee.addEventListener("change",()=>pt("once")),e.insert(He,()=>t("gui.triggerOnce"),null),e.insert(x,(()=>{var a=e.memo(()=>pe()==="file");return()=>a()&&(()=>{var l=Vg(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling,b=h.nextSibling,D=b.nextSibling,H=D.nextSibling,Pe=H.nextSibling;return e.insert(f,()=>t("gui.watchFileLabel")),g.$$input=ae=>ri(ae.currentTarget.value),e.insert(h,()=>t("gui.watchGlobsLabel")),b.$$input=ae=>Vn(ae.currentTarget.value),e.insert(D,()=>t("gui.watchIgnoreLabel")),H.$$input=ae=>Kn(ae.currentTarget.value),e.insert(Pe,()=>t("gui.watchGlobsHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.watchFilePlaceholder"))),e.effect(()=>g.value=Hn()||""),e.effect(()=>b.value=Qs()||""),e.effect(()=>H.value=Zs()||""),l})()})(),De),e.insert(x,(()=>{var a=e.memo(()=>pe()==="git");return()=>a()&&[(()=>{var l=Kg(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.gitBranchesLabel")),g.$$input=h=>Yn(h.currentTarget.value),e.effect(()=>g.value=Xs()||""),l})(),(()=>{var l=Yg(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.gitPathsLabel")),g.$$input=h=>Jn(h.currentTarget.value),e.effect(()=>g.value=el()||""),l})(),(()=>{var l=Jg(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.gitIgnoreLabel")),g.$$input=h=>Qn(h.currentTarget.value),e.effect(()=>g.value=tl()||""),l})(),(()=>{var l=Qg(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling;return e.insert(f,()=>t("gui.gitPollLabel")),g.$$input=b=>Zn(b.currentTarget.value),e.insert(h,()=>t("gui.gitPollHint")),e.effect(()=>g.value=_o()||""),l})()]})(),De),e.insert(x,(()=>{var a=e.memo(()=>pe()==="mcp-event");return()=>a()&&[(()=>{var l=Bl(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.mcpSourceLabel")),g.$$input=h=>li(h.currentTarget.value),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpSourcePlaceholder"))),e.effect(()=>g.value=Xn()||""),l})(),(()=>{var l=Bl(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.mcpEventLabel")),g.$$input=h=>di(h.currentTarget.value),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpEventPlaceholder"))),e.effect(()=>g.value=ea()||""),l})(),(()=>{var l=Wl(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling;return e.insert(f,()=>t("gui.mcpFilterLabel")),g.$$input=b=>pi(b.currentTarget.value),e.insert(h,()=>t("gui.mcpFilterHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpFilterPlaceholder"))),e.effect(()=>g.value=ui()||""),l})()]})(),De),e.insert(x,(()=>{var a=e.memo(()=>pe()==="once");return()=>a()&&(()=>{var l=Zg(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling,b=h.nextSibling,D=b.nextSibling;return e.insert(f,()=>t("gui.oneShotTimeLabel")),g.$$input=H=>bo(H.currentTarget.value),e.insert(h,()=>t("gui.oneShotDelayHint")),b.$$input=H=>ho(H.currentTarget.value),e.insert(D,()=>t("gui.oneShotHint")),e.effect(H=>{var Pe=t("gui.oneShotTimePlaceholder"),ae=t("gui.oneShotDelayPlaceholder");return Pe!==H.e&&e.setAttribute(g,"placeholder",H.e=Pe),ae!==H.t&&e.setAttribute(b,"placeholder",H.t=ae),H},{e:void 0,t:void 0}),e.effect(()=>g.value=Wn()||""),e.effect(()=>b.value=xo()||""),l})()})(),De),e.insert(ht,()=>t("gui.sessionLabel")),No.addEventListener("change",()=>wr("new")),e.insert(vt,()=>t("gui.sessionNew"),null),Ut.addEventListener("change",()=>wr("reuse")),e.insert(Tr,()=>t("gui.sessionReuse"),null),Gt.addEventListener("change",()=>wr("last")),e.insert(Cr,()=>t("gui.sessionContinue"),null),e.insert(De,(()=>{var a=e.memo(()=>ct()==="reuse");return()=>a()&&(()=>{var l=Xg(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling;return e.insert(f,()=>t("gui.sessionMaxRunsLabel")),g.$$input=b=>vo(b.currentTarget.value),e.insert(h,()=>t("gui.sessionMaxRunsHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.unboundedPlaceholder"))),e.effect(()=>g.value=ii()||""),l})()})(),null),e.insert(x,(()=>{var a=e.memo(()=>Ld()==="win32");return()=>a()&&(()=>{var l=em(),f=l.firstChild,g=f.firstChild,h=g.nextSibling,b=h.firstChild,D=b.nextSibling;return g.addEventListener("change",H=>wo(H.currentTarget.checked)),e.insert(b,()=>t("gui.runWhenLoggedOffLabel")),e.insert(D,()=>t("gui.runWhenLoggedOffHint")),e.effect(H=>e.setStyleProperty(D,"color",Bn()?"#ffd60a":"#8e8e93")),e.effect(()=>g.checked=Bn()),l})()})(),et),e.insert(qo,()=>t("gui.scheduleLabel")),Vt.addEventListener("change",a=>{const l=a.currentTarget.value;Gr(l),l!=="__custom__"&&xr(l)}),e.insert(Vt,()=>Kl().map(a=>(()=>{var l=Ni();return e.insert(l,()=>a.label),e.effect(()=>e.setAttribute(l,"key",a.value)),e.effect(()=>l.value=a.value),l})())),e.insert(et,$u&&(()=>{var a=tm(),l=a.firstChild,f=l.nextSibling;return e.insert(l,()=>t("gui.cronExprLabel")),f.$$input=g=>xr(g.currentTarget.value),e.effect(()=>f.value=po()||""),a})(),wt),e.insert(et,(()=>{var a=e.memo(()=>!!Fa());return()=>a()&&(()=>{var l=rm();return e.insert(l,Fa),l})()})(),wt),e.insert(Er,()=>t("gui.timezoneLabel")),zt.$$input=a=>oi(a.currentTarget.value),e.insert(Kt,()=>t("gui.timezoneHint")),e.insert(Yt,()=>t("gui.windowLabel")),Jt.$$input=a=>ni(a.currentTarget.value),We.$$input=a=>ai(a.currentTarget.value),e.insert(tt,()=>t("gui.windowHint")),e.insert(ki,()=>t("gui.weekdaysLabel")),e.insert(Vo,()=>[{value:1,day:"gui.weekday.1"},{value:2,day:"gui.weekday.2"},{value:3,day:"gui.weekday.3"},{value:4,day:"gui.weekday.4"},{value:5,day:"gui.weekday.5"},{value:6,day:"gui.weekday.6"},{value:0,day:"gui.weekday.0"}].map(a=>(()=>{var l=im(),f=l.firstChild;return f.addEventListener("change",g=>{const h=g.currentTarget.checked?[...si(),a.value]:si().filter(b=>b!==a.value);Un([...h].sort((b,D)=>b-D))}),e.insert(l,()=>t(a.day),null),e.effect(()=>f.checked=si().includes(a.value)),l})())),e.insert(rt,()=>t("gui.outsideWindowLabel")),Pr.addEventListener("change",a=>Gn(a.currentTarget.value)),e.insert($i,()=>t("gui.windowPostpone")),e.insert(Si,()=>t("gui.windowSkip")),e.insert(Ko,()=>t("gui.windowRun")),e.insert(ba,()=>t("gui.windowPolicyHint")),e.insert(_i,()=>t("gui.promptLabel")),Rt.$$input=a=>vr(a.currentTarget.value),e.insert(Qt,()=>t("gui.promptTemplateLabel")),At.addEventListener("change",a=>su(a.currentTarget.value)),e.insert(At,()=>ja().map(a=>(()=>{var l=Ni();return e.insert(l,()=>a.label),e.effect(()=>e.setAttribute(l,"key",a.value)),e.effect(()=>l.value=a.value),l})()),null),e.insert(At,()=>Yi().map(a=>(()=>{var l=Ni();return e.insert(l,()=>a.name),e.effect(()=>e.setAttribute(l,"key",a.id)),e.effect(()=>l.value=`custom:${a.id}`),l})()),null),e.insert(Lt,(()=>{var a=e.memo(()=>!!Hr().startsWith("custom:"));return()=>a()&&(()=>{var l=om(),f=l.firstChild,g=f.nextSibling;return e.insert(f,()=>t("gui.customTemplate")),e.insert(l,()=>Yi().map(h=>`custom:${h.id}`!==Hr()?null:(()=>{var b=nm();return e.insert(b,()=>h.name),e.effect(()=>e.setAttribute(b,"key",h.id)),b})()),g),g.addEventListener("mouseleave",h=>{h.currentTarget.style.color="#ff3b30"}),g.addEventListener("mouseenter",h=>{h.currentTarget.style.color="#c92a2a"}),g.$$click=()=>{const h=Yi().find(b=>`custom:${b.id}`===Hr());h&&du(h)},e.effect(()=>e.setAttribute(g,"title",t("gui.deleteTemplateTitle"))),l})()})(),null),e.insert(Ti,()=>t("gui.modelLabel")),Zt.$$input=a=>Jr(a.currentTarget.value),e.insert(Ci,()=>t("gui.modelHint")),e.insert(Ei,()=>t("gui.priorityLabel")),$t.addEventListener("change",a=>Qr(Number(a.currentTarget.value)||_t)),e.insert($t,()=>Vl().map(a=>(()=>{var l=Ni();return e.insert(l,()=>a.label),e.effect(()=>e.setAttribute(l,"key",a.value)),e.effect(()=>l.value=String(a.value)),l})()),null),e.insert($t,(()=>{var a=e.memo(()=>!Vl().some(l=>l.value===Ht()));return()=>a()&&(()=>{var l=Ni();return e.insert(l,()=>t("gui.otherPriorityOption",{priority:Ht()})),e.effect(()=>l.value=String(Ht())),l})()})(),null),e.insert(Pi,()=>t("gui.priorityHint")),e.insert(zi,()=>t("gui.maxRetriesLabel")),Xt.$$input=a=>Vr(Number(a.currentTarget.value)||0),e.insert(Ri,()=>t("gui.retryDelayLabel")),Li.$$input=a=>Kr(Number(a.currentTarget.value)||60),e.insert(Ar,()=>t("gui.qualityGateLabel")),Dt.$$input=a=>Zr(a.currentTarget.value),e.insert(tr,()=>t("gui.qualityGateHint")),e.insert(Zo,()=>t("gui.preflightLabel")),it.$$input=a=>ei(a.currentTarget.value),e.insert(xa,()=>t("gui.preflightHint")),e.insert(en,()=>t("gui.postflightLabel")),ot.$$input=a=>ti(a.currentTarget.value),e.insert(rr,()=>t("gui.postflightHint")),e.insert(o,()=>t("gui.dependsOnLabel")),e.insert(Be,(()=>{var a=e.memo(()=>yl().length===0);return()=>a()?(()=>{var l=am();return e.insert(l,()=>t("gui.noOtherTasks")),l})():yl().map(l=>(()=>{var f=Sa(),g=f.firstChild;return g.addEventListener("change",h=>_u(l,h.currentTarget.checked)),e.insert(f,l,null),e.effect(h=>e.style(f,`display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:14px;border:1px solid ${Wt().includes(l)?"#5ac8fa":"#333"};background:${Wt().includes(l)?"rgba(90,200,250,0.12)":"transparent"};color:${Wt().includes(l)?"#5ac8fa":"#cfcfd2"};font-size:12px;cursor:pointer;user-select:none`,h)),e.effect(()=>g.checked=Wt().includes(l)),f})())})()),e.insert(ir,()=>t("gui.dependsOnHint")),e.insert(or,()=>t("gui.toolLimitsHeading"),null),e.insert(or,(()=>{var a=e.memo(()=>fe().length>0||ye().length>0);return()=>a()&&(()=>{var l=sm(),f=l.firstChild,g=f.nextSibling,h=g.nextSibling,b=h.nextSibling,D=b.nextSibling;return e.insert(l,()=>fe().length,g),e.insert(l,()=>ye().length,b),l})()})(),null),e.insert(Ue,()=>t("gui.toolLimitsNote"),null),e.insert(Ue,()=>t("gui.toolLimitsDenied"),null),e.insert(Ot,()=>t("gui.allowedToolsLabel")),e.insert(It,()=>ll.map(a=>(()=>{var l=Sa(),f=l.firstChild;return f.addEventListener("change",()=>dl("allowed",a)),e.insert(l,a,null),e.effect(g=>e.style(l,`display:flex;align-items:center;gap:5px;padding:4px 9px;border-radius:12px;border:1px solid ${fe().includes(a)?"#34c759":"#333"};background:${fe().includes(a)?"rgba(52,199,89,0.12)":"transparent"};color:${fe().includes(a)?"#34c759":"#cfcfd2"};font-size:11px;cursor:pointer;user-select:none`,g)),e.effect(()=>f.checked=fe().includes(a)),l})())),e.insert(Di,()=>t("gui.deniedToolsLabel")),e.insert(rn,()=>ll.map(a=>(()=>{var l=Sa(),f=l.firstChild;return f.addEventListener("change",()=>dl("denied",a)),e.insert(l,a,null),e.effect(g=>e.style(l,`display:flex;align-items:center;gap:5px;padding:4px 9px;border-radius:12px;border:1px solid ${ye().includes(a)?"#ff3b30":"#333"};background:${ye().includes(a)?"rgba(255,59,48,0.12)":"transparent"};color:${ye().includes(a)?"#ff3b30":"#cfcfd2"};font-size:11px;cursor:pointer;user-select:none`,g)),e.effect(()=>f.checked=ye().includes(a)),l})())),nr.$$input=a=>il(a.currentTarget.value),Mi.$$click=()=>ul("allowed"),ha.$$click=()=>ul("denied"),e.insert(Ft,(()=>{var a=e.memo(()=>fe().length>0||ye().length>0);return()=>a()&&(()=>{var l=lm();return e.insert(l,(()=>{var f=e.memo(()=>fe().length>0);return()=>f()&&(()=>{var g=dm(),h=g.firstChild,b=h.nextSibling,D=b.nextSibling;return e.insert(g,()=>fe().join(", "),b),g})()})(),null),e.insert(l,(()=>{var f=e.memo(()=>ye().length>0);return()=>f()&&(()=>{var g=um(),h=g.firstChild,b=h.nextSibling,D=b.nextSibling;return e.insert(g,()=>ye().join(", "),b),g})()})(),null),l})()})(),null),ar.$$click=()=>{na(Ul);const a={order:0,trigger:"manual",command:Vd(),roleScoped:fe().length>0||ye().length>0?{allowed:fe(),denied:ye()}:null,preFlight:(fo()||"").trim()||null,postFlight:(yo()||"").trim()||null,qualityGate:(mo()||"").trim()||null},l=mt().map(f=>P().find(g=>g.id===f)).filter(f=>!!f).map((f,g)=>({...a,name:aa(Qe(),f.name),order:g,cwd:f.path,matrixParent:Qe()||t("gui.noNameFallback")}));fi({tasks:gt()?l:[{...a,name:Qe()||t("gui.noNameFallback"),cwd:hi()?.path||(ci()||"").trim()||t("gui.projectFolderFallback")}],totals:{},warnings:[...Qe().trim()?[]:[t("gui.dryRunNoNameWarning")],...gt()?[t("gui.dryRunMatrixPreview",{count:l.length})]:[]]}),ia(!0)},e.insert(ar,()=>t("gui.dryRunButton")),sr.$$click=gu,e.insert(sr,(()=>{var a=e.memo(()=>!!qr());return()=>a()?t("gui.creating"):t(da?"gui.save":"gui.createTaskSubmit")})()),e.insert(Fi,da&&(()=>{var a=pm();return a.$$click=()=>{lo(null),uo(""),xr("* * * * *"),vr(""),Jr(""),Qr(_t),Vr(0),Kr(60),Zr(""),Xr([]),ei(""),ti(""),pt("cron"),ri(""),bo(""),ho(""),wr("new"),vo(""),wo(!1),oi(""),ni(""),ai(""),li(""),di(""),pi(""),kr(""),Ke(""),$r([]),Sr([]),Do(),Gr("* * * * *"),Gi("")},e.insert(a,()=>t("gui.cancel")),a})(),null),e.insert(x,(()=>{var a=e.memo(()=>!!(mi()&&yi()===Ul));return()=>a()&&(()=>{var l=cm(),f=l.firstChild,g=f.firstChild;return e.insert(f,()=>t("gui.dryRunLocalTitle"),g),g.$$click=()=>ml(),e.insert(l,()=>{const h=be();if(!h)return null;const b=h.tasks?.[0];return(()=>{var D=gm(),H=D.firstChild,Pe=H.firstChild,ae=H.nextSibling,Me=ae.firstChild;return e.insert(H,()=>b?.command,null),e.insert(ae,()=>b?.cwd,null),e.insert(D,(()=>{var se=e.memo(()=>!!b?.roleScoped);return()=>se()&&(()=>{var V=mm(),$e=V.firstChild,_e=$e.nextSibling,Ge=_e.nextSibling,nt=Ge.nextSibling,St=nt.nextSibling;return e.insert(V,()=>(b.roleScoped.allowed??[]).join(", "),_e),e.insert(V,()=>(b.roleScoped.denied??[]).join(", "),nt),V})()})(),null),e.insert(D,(()=>{var se=e.memo(()=>!!b?.preFlight);return()=>se()&&(()=>{var V=fm(),$e=V.firstChild;return e.insert(V,()=>b.preFlight,null),V})()})(),null),e.insert(D,(()=>{var se=e.memo(()=>!!b?.postFlight);return()=>se()&&(()=>{var V=ym(),$e=V.firstChild;return e.insert(V,()=>b.postFlight,null),V})()})(),null),e.insert(D,(()=>{var se=e.memo(()=>!!b?.qualityGate);return()=>se()&&(()=>{var V=bm(),$e=V.firstChild;return e.insert(V,()=>b.qualityGate,null),V})()})(),null),e.insert(D,(()=>{var se=e.memo(()=>!!(Array.isArray(h.warnings)&&h.warnings.length>0));return()=>se()&&(()=>{var V=xm(),$e=V.firstChild;return e.insert(V,()=>h.warnings.join(" | "),null),V})()})(),null),D})()},null),l})()})(),null),e.effect(a=>{var l=t("gui.saveAsTemplateTitle"),f=t("gui.collapseFormTitle"),g=t("gui.taskNamePlaceholder"),h=pe()!=="cron"?"none":"block",b=t("gui.timezonePlaceholder"),D=t("gui.windowStartTitle"),H=t("gui.windowEndTitle"),Pe=t("gui.promptPlaceholder"),ae=t("gui.modelPlaceholder"),Me=t("gui.qualityGatePlaceholder"),se=t("gui.preflightPlaceholder"),V=t("gui.postflightPlaceholder"),$e=t("gui.toolPlaceholder"),_e=t("gui.dryRunPreviewTitle"),Ge=qr()||!Io(),nt=Io()?void 0:fl(),St=`display:block;width:100%;padding:10px;margin-top:8px;background:${qr()?"#666":"#007acc"};color:white;border-radius:6px;border:none;cursor:${qr()||!Io()?"not-allowed":"pointer"};font-size:13px;font-weight:500;opacity:${qr()||!Io()?.6:1}`;return l!==a.e&&e.setAttribute(G,"title",a.e=l),f!==a.t&&e.setAttribute(U,"title",a.t=f),g!==a.a&&e.setAttribute(R,"placeholder",a.a=g),h!==a.o&&e.setStyleProperty(et,"display",a.o=h),b!==a.i&&e.setAttribute(zt,"placeholder",a.i=b),D!==a.n&&e.setAttribute(Jt,"title",a.n=D),H!==a.s&&e.setAttribute(We,"title",a.s=H),Pe!==a.h&&e.setAttribute(Rt,"placeholder",a.h=Pe),ae!==a.r&&e.setAttribute(Zt,"placeholder",a.r=ae),Me!==a.d&&e.setAttribute(Dt,"placeholder",a.d=Me),se!==a.l&&e.setAttribute(it,"placeholder",a.l=se),V!==a.u&&e.setAttribute(ot,"placeholder",a.u=V),$e!==a.c&&e.setAttribute(nr,"placeholder",a.c=$e),_e!==a.w&&e.setAttribute(ar,"title",a.w=_e),Ge!==a.m&&(sr.disabled=a.m=Ge),nt!==a.f&&e.setAttribute(sr,"title",a.f=nt),a.y=e.style(sr,St,a.y),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),e.effect(()=>T.checked=gt()),e.effect(()=>R.value=Qe()||""),e.effect(()=>Xe.checked=pe()==="cron"),e.effect(()=>Fe.checked=pe()==="file"),e.effect(()=>L.checked=pe()==="git"),e.effect(()=>he.checked=pe()==="mcp-event"),e.effect(()=>Ee.checked=pe()==="once"),e.effect(()=>No.checked=ct()==="new"),e.effect(()=>Ut.checked=ct()==="reuse"),e.effect(()=>Gt.checked=ct()==="last"),e.effect(()=>Vt.value=Ys()),e.effect(()=>zt.value=ko()||""),e.effect(()=>Jt.value=$o()||""),e.effect(()=>We.value=So()||""),e.effect(()=>Pr.value=Js()),e.effect(()=>Rt.value=hr()||""),e.effect(()=>At.value=Hr()),e.effect(()=>Zt.value=Yr()||""),e.effect(()=>$t.value=String(Ht())),e.effect(()=>Xt.value=co()),e.effect(()=>Li.value=go()),e.effect(()=>Dt.value=mo()||""),e.effect(()=>it.value=fo()||""),e.effect(()=>ot.value=yo()||""),e.effect(()=>nr.value=rl()),x})()})(),jo),e.insert(Iu,()=>t("gui.tasksHeading")),e.insert(jo,(()=>{var m=e.memo(()=>lt()!=="all");return()=>m()&&(()=>{var x=hm();return e.insert(x,()=>t("gui.filterSummary",{scope:lt()==="none"?t("gui.workspaceNone"):`📦 ${P().find(E=>E.id===lt())?.name??"workspace"}`,visible:pa().length,total:vi().length})),x})()})(),null),e.insert(jo,(()=>{var m=e.memo(()=>pa().length===0);return()=>m()?(()=>{var x=vm(),E=x.firstChild,k=E.nextSibling;return e.insert(E,()=>Ye()?"🎄":"📅"),e.insert(k,(()=>{var I=e.memo(()=>!!Ye());return()=>I()?t("gui.emptyWinter"):t("gui.emptyNormal")})()),x})():(()=>{var x=wm();return e.insert(x,()=>pa().map(E=>e.createComponent(Cu,{get key(){return E.name},job:E}))),x})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!dd());return()=>m()&&(()=>{var x=km(),E=x.firstChild,k=E.firstChild,I=k.nextSibling,G=I.firstChild,U=G.nextSibling;return x.$$click=()=>qt(null),E.$$click=$=>$.stopPropagation(),e.insert(k,fn),e.insert(E,(()=>{var $=e.memo(()=>!!fn().includes("KEY=VALUE"));return()=>$()?(()=>{var _=$m();return _.$$keydown=T=>{T.key==="Escape"&&qt(null),T.key==="Enter"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),qt(Nr())),T.stopPropagation()},_.$$input=T=>yn(T.currentTarget.value),e.effect(()=>_.value=Nr()),_})():(()=>{var _=Sm();return _.$$keydown=T=>{T.key==="Escape"&&qt(null),T.key==="Enter"&&(T.preventDefault(),qt(Nr())),T.stopPropagation()},_.$$input=T=>yn(T.currentTarget.value),e.effect(()=>_.value=Nr()),_})()})(),I),G.$$click=()=>qt(null),e.insert(G,()=>t("gui.cancel")),U.$$click=()=>qt(Nr()),e.insert(U,()=>t("gui.ok")),e.insert(E,(()=>{var $=e.memo(()=>!!fn().includes("KEY=VALUE"));return()=>$()&&(()=>{var _=_m();return e.insert(_,()=>t("gui.modalShortcutHint")),_})()})(),null),x})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!bn());return()=>m()&&(()=>{var x=Tm(),E=x.firstChild,k=E.firstChild,I=k.firstChild,G=I.nextSibling,U=k.nextSibling,$=E.nextSibling;return e.insert(I,()=>t("gui.logsHeading")),e.insert(G,bn),U.addEventListener("mouseleave",_=>{_.target.style.color="#8e8e93"}),U.addEventListener("mouseenter",_=>{_.target.style.color="#ff3b30"}),U.$$click=()=>{xn(null),gr("")},e.insert($,()=>pd().split(`
9
- `).map((_,T)=>(()=>{var re=Cm();return e.setAttribute(re,"key",T),e.insert(re,_),re})())),x})()})(),null),e.effect(m=>{var x=`display:flex;flex-direction:column;width:100%;height:100%;max-height:100vh;min-height:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;gap:24px;padding:20px;font-size:13px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e0e0e0;transition:background 0.3s ease;scrollbar-width:thin;scrollbar-color:#444 transparent;background:${Ye()?"linear-gradient(180deg, #0f172a 0%, #000000 100%)":"#0f0f0f"}`,E=t("gui.metricsTotalsTitle"),k=t("gui.workspaceFilterTitle"),I=ur()?t("gui.profileEnvLockedTitle"):t("gui.profilesTitle"),G=`display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;border:1px solid ${Bi()?"#bf5af2":"#333"};background:${Bi()?"rgba(191,90,242,0.12)":"#1e1e1e"};color:${Bi()?"#bf5af2":"#e0e0e0"}`,U=t("gui.openDashboardTitle"),$=t("gui.winterModeTitle"),_=`display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;transition:background 0.2s ease, border-color 0.2s ease;border:1px solid ${Ye()?"rgba(135, 206, 250, 0.5)":"#333"};background:${Ye()?"rgba(135, 206, 250, 0.12)":"#1e1e1e"};color:#e0e0e0`,T=Mo(),re=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${Mo()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${Mo()?.6:1};transition:background 0.18s ease`,ge=Fo(),J=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${Fo()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${Fo()?.6:1};transition:background 0.18s ease`,R=dt(),j=t("gui.workspaceAddTitle"),M=`padding:5px 10px;border-radius:6px;border:1px solid #333;background:#252526;color:${dt()?"#666":"#5ac8fa"};font-size:11px;font-weight:600;cursor:${dt()?"not-allowed":"pointer"}`;return m.e=e.style(i,x,m.e),E!==m.t&&e.setAttribute(ie,"title",m.t=E),k!==m.a&&e.setAttribute(Ce,"title",m.a=k),I!==m.o&&e.setAttribute(ue,"title",m.o=I),m.i=e.style(ue,G,m.i),U!==m.n&&e.setAttribute(Le,"title",m.n=U),$!==m.s&&e.setAttribute(Ne,"title",m.s=$),m.h=e.style(Ne,_,m.h),T!==m.r&&(c.disabled=m.r=T),m.d=e.style(c,re,m.d),ge!==m.l&&(v.disabled=m.l=ge),m.u=e.style(v,J,m.u),R!==m.c&&(wi.disabled=m.c=R),j!==m.w&&e.setAttribute(wi,"title",m.w=j),m.m=e.style(wi,M,m.m),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0}),e.effect(()=>Ce.value=lt()),e.effect(()=>bt.checked=Ye()),e.effect(()=>C.value=bd()),e.effect(()=>Tl.checked=zn()),e.effect(()=>ga.value=Rn()),e.effect(()=>ma.value=Ln()),i}})})}catch(i){return console.error("GUI render error:",i),s.add(wa.Panel,{id:"scheduler-jobs",region:"side",list:()=>[{id:"jobs",title:t("gui.jobsTitle"),pinned:!0}],render:()=>e.createComponent(d.ErrorBoundary,{fallback:r=>(()=>{var n=Nl();return e.insert(n,()=>t("gui.uiError",{message:r.message})),n})(),get children(){var r=Em(),n=r.firstChild,p=n.nextSibling,Y=p.nextSibling;return e.insert(n,On),e.insert(Y,()=>t("gui.errorBoundaryDetail")),r}})})}}});e.delegateEvents(["click","input","keydown"]);exports.default=Lm;
4
+ *.log"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"></textarea><div style=font-size:11px;color:#8e8e93;margin-top:6px>`),fy=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text placeholder="main, release/*"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">'),yy=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=3 placeholder="src/**
5
+ **/*.md"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">`),by=e.template(`<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><textarea rows=2 placeholder="docs/**
6
+ *.lock"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">`),hy=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=number min=5 placeholder=60 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),zu=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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">'),xy=e.template('<div style=display:block;width:100%;margin-bottom:12px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text 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"><div style="font-size:11px;color:#8e8e93;margin:6px 0"></div><input type=number min=1 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),vy=e.template('<div style=margin-top:8px><label style=display:block;margin-bottom:6px;font-size:11px;color:#8e8e93></label><input type=number min=1 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"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),wy=e.template("<div style=display:block;width:100%;margin-bottom:12px><label style=display:flex;align-items:flex-start;gap:8px;cursor:pointer><input type=checkbox style=accent-color:#007acc;margin-top:3px><span><span style=display:block;font-size:12px;color:#b0b0b0;font-weight:500></span><span style=display:block;font-size:11px;margin-top:4px>"),to=e.template("<option>"),ky=e.template('<div style=display:block;width:100%;margin-top:8px><label style=display:block;margin-bottom:8px;font-size:12px;color:#b0b0b0;font-weight:500></label><input type=text placeholder="* * * * *"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">'),Sy=e.template('<div style="display:block;max-height:80px;overflow-y:auto;margin-top:8px;padding:8px;background:#2a1113;border:1px solid #5a1d21;border-radius:6px;font-size:11px;line-height:1.4;color:#ff6b6b;white-space:pre-wrap;word-break:break-word">'),$y=e.template("<label style=display:flex;align-items:center;gap:5px;cursor:pointer;font-size:12px;color:#d0d0d5><input type=checkbox style=accent-color:#007acc>"),_y=e.template("<div style=display:flex;align-items:center;gap:6px;margin-top:8px><span style=font-size:10px;color:#8e8e93></span><button style=background:transparent;border:none;color:#ff3b30;cursor:pointer;font-size:14px;line-height:1;padding:0>🗑"),Ty=e.template("<span style=font-size:11px;color:#ff3b30;font-weight:500;cursor:default>"),Cy=e.template("<span style=font-size:12px;color:#8e8e93>"),ll=e.template("<label><input type=checkbox style=margin:0>"),Ay=e.template("<span style=color:#5ac8fa;font-size:11px;margin-left:6px>(<!> allowed · <!> denied)"),zy=e.template("<div style=font-size:11px;color:#cfcfd2;margin-top:8px>"),Ey=e.template("<div>allowed: [<!>]"),Py=e.template("<div>denied: [<!>]"),Ry=e.template('<button style="background:transparent;border:1px solid #333;border-radius:6px;padding:8px 16px;color:#ff3b30;cursor:pointer;font-size:13px;width:100%">'),Ly=e.template('<div style="display:block;width:100%;margin-top:8px;padding:10px;background:#1e1e1e;border:1px solid #333;border-radius:6px"><div style=font-size:12px;font-weight:600;color:#ffffff;display:flex;justify-content:space-between;align-items:center><button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:14px;padding:0>✕'),My=e.template("<div style=display:flex;flex-direction:column;gap:4px;font-size:11px;color:#e0e0e0;margin-top:6px><div style=overflow-wrap:anywhere>$ </div><div style=color:#8e8e93>cwd: "),Dy=e.template("<div style=color:#8e8e93>🔒 allowed=[<!>] · denied=[<!>]"),Fy=e.template("<div style=color:#8e8e93>⚡ pre: "),Oy=e.template("<div style=color:#8e8e93>⚡ post: "),Iy=e.template("<div style=color:#8e8e93>✅ QG: "),jy=e.template("<div style=color:#f5a623>⚠ "),Ny=e.template("<div style=font-size:11px;color:#8e8e93;margin-bottom:8px>"),qy=e.template('<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 16px;color:#a0a0a6;font-size:13px;gap:10px"><span style=font-size:40px;line-height:1></span><span style=max-width:380px;line-height:1.5>'),Hy=e.template("<div style=display:flex;flex-direction:column;gap:0>"),Uy=e.template('<div style=position:fixed;inset:0;background:rgba(0,0,0,0.55);display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px><div style="width:min(540px,100%);background:#1e1e1e;border:1px solid #444;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 40px rgba(0,0,0,0.6)"><div style=font-size:13px;font-weight:600;color:#e0e0e0;white-space:pre-wrap></div><div style=display:flex;justify-content:flex-end;gap:8px><button style="padding:6px 14px;border-radius:6px;border:1px solid #3a3a3a;background:#262626;color:#e0e0e0;font-size:12px;cursor:pointer"></button><button style="padding:6px 14px;border-radius:6px;border:1px solid #0a84ff;background:#0a84ff;color:#fff;font-size:12px;font-weight:600;cursor:pointer">'),Wy=e.template(`<textarea autofocus rows=6 style="width:100%;box-sizing:border-box;resize:vertical;padding:8px 10px;border-radius:8px;border:1px solid #3a3a3a;background:#141414;color:#e0e0e0;font-family:Menlo, Monaco, 'Courier New', monospace;font-size:12px;outline:none">`),By=e.template('<input autofocus style="width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1px solid #3a3a3a;background:#141414;color:#e0e0e0;font-size:13px;outline:none">'),Gy=e.template("<div style=font-size:11px;color:#8e8e93>"),Vy=e.template(`<div style="position:fixed;bottom:16px;left:16px;right:16px;background:#1e1e1e;border:1px solid #333;border-radius:8px;padding:0;max-height:300px;overflow:hidden;display:flex;flex-direction:column;z-index:1000"><div style="display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #333;background:#252526;border-radius:8px 8px 0 0"><div style=display:flex;align-items:center;gap:8px><span style=font-size:13px;font-weight:600;color:#ffffff></span><span style=font-size:11px;color:#8e8e93></span></div><button style=background:transparent;border:none;color:#8e8e93;cursor:pointer;font-size:18px;line-height:1;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center>✕</button></div><div style="flex:1;overflow-y:auto;padding:12px;font-family:Menlo, Monaco, 'Courier New', monospace;font-size:11px;line-height:1.5;color:#d4d4d4;background:#1e1e1e;border-radius:0 0 8px 8px">`),Ky=e.template("<div style=white-space:pre-wrap;margin-bottom:2px>"),Zy=e.template(`<div style=position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6)><div style="background:#1a1a1a;border:1px solid #333;border-radius:8px;width:560px;max-width:92vw;max-height:92vh;overflow:hidden;display:flex;flex-direction:column;color:#e0e0e0;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"><div style="padding:16px 20px;border-bottom:1px solid #333;display:flex;justify-content:space-between;align-items:center"><div style=font-size:16px;font-weight:600></div><button style=background:none;border:none;color:#8e8e93;cursor:pointer;font-size:18px;padding:0>✕</button></div><div style="padding:16px 20px;overflow-y:auto"></div><div style="padding:12px 20px;border-top:1px solid #333;display:flex;justify-content:space-between;gap:8px"><button style="padding:6px 16px;background:#007acc;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;font-weight:500">`),Qy=e.template('<div style=display:flex;flex-direction:column;gap:12px><div style=font-size:13px;color:#b0b0b0></div><div style=font-size:12px;font-weight:500;color:#e0e0e0;margin-top:4px></div><div style=display:flex;gap:10px><button></button><button></button></div><div style=font-size:12px;font-weight:500;color:#e0e0e0;margin-top:8px></div><input type=text style="width:100%;padding:6px 8px;background:#0f0f0f;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px"><div style=font-size:11px;color:#8e8e93;margin-top:2px></div><div style=font-size:12px;font-weight:500;color:#e0e0e0;margin-top:8px></div><input type=text style="width:100%;padding:6px 8px;background:#0f0f0f;border:1px solid #333;border-radius:4px;color:#fff;font-size:12px"><div style=font-size:11px;color:#8e8e93;margin-top:6px>'),Yy=e.template("<div style=display:flex;flex-direction:column;gap:12px><div style=font-size:13px;color:#b0b0b0></div><button><div style=font-weight:600></div><div style=font-size:11px;color:#b0b0b0;margin-top:4px></div></button><button><div style=font-weight:600></div><div style=font-size:11px;color:#b0b0b0;margin-top:4px>"),Jy=e.template('<div style=display:flex;flex-direction:column;gap:12px><div style=font-size:13px;color:#b0b0b0></div><div style=font-size:12px;font-weight:500;color:#e0e0e0></div><div style="background:#0f0f0f;border:1px solid #333;border-radius:6px;padding:10px;font-size:11px;color:#b0b0b0;line-height:1.6"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div><div style=font-size:12px;font-weight:500;color:#e0e0e0;margin-top:8px></div><div style=font-size:11px;color:#8e8e93>'),Xy=e.template("<div style=margin-top:10px;font-size:11px;color:#ff6b6b>"),eb=e.template('<button style="padding:6px 16px;background:#2a2a2a;border:1px solid #333;border-radius:4px;color:#b0b0b0;cursor:pointer;font-size:12px">'),tb=e.template(`<div style="padding:16px;display:flex;flex-direction:column;gap:16px;font-size:13px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e0e0e0;background:#0f0f0f"><h2 style=margin:0;font-size:22px;font-weight:800;color:#ffffff></h2><div style=margin-top:5px;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#8e8e93>Local AI CI/CD Orchestrator</div><div style="background:#2a1a1a;border:1px solid #ff3b30;border-radius:8px;padding:16px;color:#ff3b30">`);fl("ru",Wm);fl("en",Bm);fl("zh",Gm);const[ib,rb]=a.createSignal(0),t=(l,f)=>(ib(),Um(l,f)),Eu=l=>{Fm(l),rb(f=>f+1)};function ob(l){switch(l){case"running":return"#f5a623";case"success":return"#34c759";case"error":return"#ff3b30";case"partial":return"#ff9f0a";default:return"#8e8e93"}}const Ct=5,Pu="form";function Ru(l){const f=typeof l=="number"&&Number.isFinite(l)?Math.min(10,Math.max(0,Math.floor(l))):Ct;return f>=10?t("gui.priority.critical"):f>=8?t("gui.priority.high"):f<=3?t("gui.priority.low"):t("gui.priority.normal")}const Lu=()=>[{value:2,label:t("gui.priority.low")},{value:5,label:t("gui.priority.normal")},{value:8,label:t("gui.priority.high")},{value:10,label:t("gui.priority.critical")}];function ie(l){return l instanceof Error?l.message:typeof l=="object"&&l!==null&&"message"in l?String(l.message):JSON.stringify(l)}function dt(l,f=150){const S=(l||"").split(/\r?\n/).map(G=>G.trim()).find(Boolean)??"";return S.length>f?S.slice(0,f-1).trimEnd()+"…":S}function Pn(l){return(l||"").split(/[\r\n,]+/).map(f=>f.trim()).filter(Boolean)}function Gt(l){return Array.isArray(l)?l.join(`
7
+ `):""}const Mu=()=>[{label:t("gui.cron.everyMinute"),value:"* * * * *"},{label:t("gui.cron.everyHour"),value:"0 * * * *"},{label:t("gui.cron.dailyAt9"),value:"0 9 * * *"},{label:t("gui.cron.mondayAt10"),value:"0 10 * * 1"},{label:t("gui.cron.custom"),value:"__custom__"}],nb=ol.Plugin.define({setup(l){const f=l.client.rpc(zm),[S,G]=a.createSignal([]),[D,ne]=a.createSignal([]),[Re,At]=a.createSignal(!1),[ut,Vi]=a.createSignal("all"),[ct,Be]=a.createSignal(!1),[pt,Qe]=a.createSignal(""),[Wu,Bu]=a.createSignal([]),[yl,bl]=a.createSignal("default"),[bi,Gu]=a.createSignal(!1),[oo,Vu]=a.createSignal(!1),[hi,xi]=a.createSignal(!1),[Ku,hl]=a.createSignal(!1),[Mn,Zu]=a.createSignal(""),[Ki,Dn]=a.createSignal("");let no=null;function zt(i,r=""){return no?.(null),new Promise(n=>{no=n,Zu(i),Dn(r),hl(!0)})}function Vt(i){const r=no;no=null,hl(!1),r?.(i)}const[Qu,vi]=a.createSignal(""),[Fn,On]=a.createSignal(null),[Zi,xl]=a.createSignal(!1),[vl,ao]=a.createSignal(""),[In,Yu]=a.createSignal({total:0,success:0,error:0}),[lo,wl]=a.createSignal(null),[kl,Ju]=a.createSignal([]),Sl=()=>[{label:t("gui.promptTemplates.custom"),value:"custom",prompt:""},{label:t("gui.promptTemplates.nightWatch"),value:"night-watch",prompt:t("gui.promptTemplates.nightWatchPrompt")},{label:t("gui.promptTemplates.morningDigest"),value:"morning-digest",prompt:t("gui.promptTemplates.morningDigestPrompt")},{label:t("gui.promptTemplates.codeHygiene"),value:"code-hygiene",prompt:t("gui.promptTemplates.codeHygienePrompt")}],[Qi,so]=a.createSignal("custom"),[uo,Xu]=a.createSignal([]),[ec,tc]=a.createSignal(0);setInterval(()=>tc(i=>i+1),1e3);const[ic,jn]=a.createSignal(1),[Ye,Nn]=a.createSignal(!1),[$l,co]=a.createSignal("ru"),[rc,po]=a.createSignal("ru");function _l(){try{return l.locale?.locale?.()}catch{return}}function go(i){Eu(i==="auto"?_l():i)}a.createEffect(()=>{const i=$l(),r=_l();if(i!=="auto")return;Eu(r);const n=Gi(r,"ru");n!==rc()&&(po(n),f.save_settings({uiLocale:n}).catch(u=>{console.error("RPC Error (save_settings uiLocale):",u)}))});const[v,Tl]=a.createSignal(!1),[qn,Cl]=a.createSignal(!0),[Oe,Al]=a.createSignal(!1),[zl,El]=a.createSignal(""),[Hn,oc]=a.createSignal(!0),[mo,Pl]=a.createSignal(!1),[Rl,Ll]=a.createSignal(1e4),[Ml,Dl]=a.createSignal(2),[Fl,Ol]=a.createSignal(1e3),[Il,jl]=a.createSignal(""),[Nl,ql]=a.createSignal(""),[Hl,Ul]=a.createSignal(""),[Wl,Bl]=a.createSignal(""),[wi,Gl]=a.createSignal(!0),[Vl,Kl]=a.createSignal(!0),[Zl,Ql]=a.createSignal(!0),[Yl,Jl]=a.createSignal(60),[Yi,Xl]=a.createSignal(!1),[es,ts]=a.createSignal("daily"),[is,rs]=a.createSignal("09:00"),[Un,nc]=a.createSignal(null),[Ji,Wn]=a.createSignal("off"),[Bn,Gn]=a.createSignal("http://127.0.0.1:11434"),[fo,Vn]=a.createSignal(""),[Kn,Zn]=a.createSignal(6e4),[Qn,Yn]=a.createSignal(.6),[Jn,Xn]=a.createSignal("rules"),[yo,os]=a.createSignal(!1),[ns,gt]=a.createSignal(null),[as,mt]=a.createSignal("idle"),[ac,ea]=a.createSignal(!1),[ft,bo]=a.createSignal(1),[ki,ta]=a.createSignal("ollama"),[ho,ia]=a.createSignal("http://127.0.0.1:11434"),[ra,ls]=a.createSignal(""),[ss,Kt]=a.createSignal(""),[Si,oa]=a.createSignal(null),ds=()=>{switch(as()){case"ok":return"#2ecc71";case"error":return"#e74c3c";case"checking":return"#d9a441";default:return"#8e8e93"}},lc=()=>{switch(as()){case"ok":return t("localAi.status.ok");case"error":return t("localAi.status.error");case"checking":return t("localAi.status.checking");default:return t("localAi.status.idle")}},[Zt,na]=a.createSignal(!1),[aa,us]=a.createSignal(14),[cs,sc]=a.createSignal(null),[xo,ps]=a.createSignal(null),[la,gs]=a.createSignal(!1),[Ce,ms]=a.createSignal(!1),[fs,ys]=a.createSignal(""),[bs,hs]=a.createSignal(""),[xs,vs]=a.createSignal("HTML"),[ws,ks]=a.createSignal(!1),[Ss,$s]=a.createSignal(!0),[dc,uc]=a.createSignal("https://api.telegram.org"),[cc,pc]=a.createSignal(null),[Je,_s]=a.createSignal(!1),[Ts,Cs]=a.createSignal(!0),[Xi,As]=a.createSignal(!1),[zs,Es]=a.createSignal("22:00"),[Ps,Rs]=a.createSignal("08:00"),[vo,Ls]=a.createSignal(!1),[sa,gc]=a.createSignal([]),[da,$i]=a.createSignal(!1),[wo,Ms]=a.createSignal(""),[ko,Ds]=a.createSignal(""),[ua,mc]=a.createSignal([]),[ca,Fs]=a.createSignal(!1),[pa,fc]=a.createSignal(!0),[Os,yc]=a.createSignal(""),[Is,bc]=a.createSignal(""),[js,hc]=a.createSignal(""),[Ns,ga]=a.createSignal(!0),[qs,ma]=a.createSignal(90),[Hs,fa]=a.createSignal(1e4),[So,$o]=a.createSignal(30),[_o,To]=a.createSignal(5e3),[ya,ba]=a.createSignal(null),[Us,ha]=a.createSignal(0),[xa,xc]=a.createSignal(!0),[Co,Ws]=a.createSignal(!1),_i=new Map;a.onCleanup(()=>{for(const i of _i.values())clearInterval(i);_i.clear()});const[va,vc]=a.createSignal(t("gui.app.title")),[wc,kc]=a.createSignal("");async function Sc(){try{const i=await f.get_platform({});i?.title&&vc(i.title),i?.platform&&kc(i.platform)}catch(i){console.error("RPC Error (get_platform):",i)}}function Bs(i){Tl(!!i?.enabled),Cl(i?.onlyOnError!==!1),Al(!!i?.webhook?.enabled),El(i?.webhook?.url??""),Ll(Number(i?.webhook?.timeoutMs??1e4)),Dl(Number(i?.webhook?.retryCount??2)),Ol(Number(i?.webhook?.retryDelayMs??1e3)),jl(i?.templates?.success??""),ql(i?.templates?.error??""),Ul((i?.filters?.include??[]).join(", ")),Bl((i?.filters?.exclude??[]).join(", ")),Gl(i?.matrix?.enabled!==!1),Kl(i?.matrix?.onPartial!==!1),Ql(i?.matrix?.onAllFailed!==!1),Jl(Number(i?.matrix?.stuckAfterMinutes??60)),Xl(!!i?.digest?.enabled),ts(i?.digest?.frequency==="weekly"?"weekly":"daily"),rs(i?.digest?.time??"09:00"),nc(i?.digest?.lastSentAt??null),ms(!!i?.telegram?.enabled),ys(i?.telegram?.botToken??""),hs(i?.telegram?.chatId??""),vs(i?.telegram?.parseMode??"HTML"),ks(!!i?.telegram?.disableNotification),$s(i?.telegram?.includeDashboardLink!==!1),uc(i?.telegram?.apiBase??"https://api.telegram.org"),pc(typeof i?.telegram?.messageThreadId=="number"?i.telegram.messageThreadId:null),_s(!!i?.native?.enabled),Cs(i?.native?.sound!==!1),As(!!i?.quietHours?.enabled),Es(i?.quietHours?.from??"22:00"),Rs(i?.quietHours?.to??"08:00"),Wn(i?.triage?.mode??"off"),Gn(i?.triage?.baseUrl??"http://127.0.0.1:11434"),Vn(i?.triage?.model??""),Zn(Number(i?.triage?.timeoutMs??6e4)),Yn(Number(i?.triage?.confidenceThreshold??.6)),Xn(i?.triage?.fallback==="rules"?"rules":"notify"),mt("idle"),gt(null),na(i?.triage?.shadow?.enabled!==!1),us(Number(i?.triage?.shadow?.days??14)),sc(i?.triage?.shadow?.startedAt??null)}async function $c(){try{const i=await f.get_settings({});jn(i.maxConcurrent??1),Nn(!!i.winterMode),Bs(i.notifications);const r=i.history;$o(Number(r?.retentionDays??30)),To(Number(r?.maxRecords??5e3)),ba(r?.lastCleanupAt??null),ha(Number(r?.lastCleanupDeleted??0));const n=i.audit;ga(n?.enabled!==!1),ma(Number(n?.retentionDays??90)),fa(Number(n?.maxRecords??1e4)),po(Gi(i.uiLocale,"ru"));const u=En(i.locale,"ru");co(u),go(u)}catch(i){console.error("RPC Error (get_settings):",i)}try{const i=await f.get_shadow_report({});i?.success&&ps({total:Number(i.total??0),skips:Number(i.skips??0),active:!!i.active})}catch(i){console.error("RPC Error (get_shadow_report):",i)}wa(),er()}function _c(){const i=r=>r.split(",").map(n=>n.trim()).filter(n=>n.length>0);return{enabled:v(),onlyOnError:qn(),webhook:{enabled:Oe(),url:(zl()||"").trim(),timeoutMs:Math.max(1e3,Math.min(12e4,Math.floor(Number(Rl())||1e4))),retryCount:Math.max(0,Math.min(5,Math.floor(Number(Ml())||0))),retryDelayMs:Math.max(100,Math.min(6e4,Math.floor(Number(Fl())||1e3)))},templates:{success:Il().trim(),error:Nl().trim()},filters:{include:i(Hl()),exclude:i(Wl())},telegram:{enabled:Ce(),botToken:(fs()||"").trim(),chatId:(bs()||"").trim(),parseMode:xs(),disableNotification:ws(),messageThreadId:cc(),includeDashboardLink:Ss(),apiBase:dc()},native:{enabled:Je(),sound:Ts()},quietHours:{enabled:Xi(),from:(zs()||"22:00").trim(),to:(Ps()||"08:00").trim()},matrix:{enabled:wi(),onPartial:Vl(),onAllFailed:Zl(),stuckAfterMinutes:Math.max(0,Math.min(10080,Math.floor(Number(Yl())||0)))},digest:{enabled:Yi(),frequency:es(),time:(is()||"09:00").trim(),lastSentAt:Un()},triage:{mode:Ji(),baseUrl:(Bn()||"").trim().replace(/\/+$/,""),model:(fo()||"").trim(),timeoutMs:Math.max(1e3,Math.min(12e4,Math.floor(Number(Kn())||6e4))),fallback:Jn(),confidenceThreshold:Math.max(0,Math.min(1,Number(Qn())||0)),shadow:{enabled:Zt(),days:Math.max(1,Math.min(365,Math.floor(Number(aa())||14))),startedAt:cs()}}}}function Gs(){return{retentionDays:Math.max(0,Math.floor(Number(So())||0)),maxRecords:Math.max(0,Math.floor(Number(_o())||0)),lastCleanupAt:ya(),lastCleanupDeleted:Math.max(0,Math.floor(Number(Us())||0))}}async function Et(i){try{const r=await f.save_settings(i);if(i.maxConcurrent!==void 0&&jn(r.maxConcurrent),i.winterMode!==void 0&&Nn(!!r.winterMode),i.notifications!==void 0&&Bs(r.notifications),i.history!==void 0){const u=r.history;$o(Number(u?.retentionDays??30)),To(Number(u?.maxRecords??5e3)),ba(u?.lastCleanupAt??null),ha(Number(u?.lastCleanupDeleted??0))}if(i.audit!==void 0){const u=r.audit;ga(u?.enabled!==!1),ma(Number(u?.retentionDays??90)),fa(Number(u?.maxRecords??1e4))}po(Gi(r.uiLocale,"ru"));const n=En(r.locale,"ru");return co(n),go(n),!0}catch(r){return console.error("RPC Error (save_settings):",r),l.toast.show({title:t("gui.toast.settingsSaveFailed"),variant:"error",description:ie(r)}),!1}}async function j(){await Et({notifications:_c()})}async function Vs(){await Et({history:Gs()})}async function Tc(){Ws(!0);try{await Et({history:Gs()});const i=await f.cleanup_history({}),r=await f.get_settings({}),n=r.history;$o(Number(n?.retentionDays??30)),To(Number(n?.maxRecords??5e3)),ba(n?.lastCleanupAt??null),ha(Number(n?.lastCleanupDeleted??0)),po(Gi(r.uiLocale,"ru"));const u=En(r.locale,"ru");co(u),go(u),l.toast.show({title:i.success?t("gui.toast.historyCleanupDone"):t("gui.toast.historyCleanupFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (cleanup_history):",i),l.toast.show({title:t("gui.toast.historyCleanupFailed"),variant:"error",description:ie(i)})}finally{Ws(!1)}}async function wa(){$i(!0);try{const i=await f.list_secrets({});gc(i?.secrets??[])}catch(i){console.error("RPC Error (list_secrets):",i)}finally{$i(!1)}}async function Cc(){const i=wo().trim(),r=ko();if(!(!i||!r)){$i(!0);try{const n=await f.save_secret({name:i,value:r});n?.success?(Ms(""),Ds(""),l.toast.show({title:t("gui.toast.secretSaved"),variant:"success",description:n.message}),wa()):l.toast.show({title:t("gui.toast.secretNotSaved"),variant:"error",description:n?.message??""})}catch(n){console.error("RPC Error (save_secret):",n),l.toast.show({title:t("gui.toast.secretNotSaved"),variant:"error",description:ie(n)})}finally{$i(!1)}}}async function Ac(i){$i(!0);try{const r=await f.delete_secret({name:i});r?.success?(l.toast.show({title:t("gui.toast.secretDeleted"),variant:"success",description:r?.message??""}),wa()):l.toast.show({title:t("gui.toast.secretNotDeleted"),variant:"error",description:r?.message??""})}catch(r){console.error("RPC Error (delete_secret):",r),l.toast.show({title:t("gui.toast.secretNotDeleted"),variant:"error",description:ie(r)})}finally{$i(!1)}}async function er(){Fs(!0);try{const i=await f.get_audit({action:Os()||void 0,actor:Is()||void 0,target:js()||void 0,limit:200});i?.success&&mc(i?.records??[])}catch(i){console.error("RPC Error (get_audit):",i)}finally{Fs(!1)}}async function ka(){await Et({audit:{enabled:Ns(),retentionDays:qs(),maxRecords:Hs()}})}async function zc(){Pl(!0);try{await j();const i=await f.test_notification({});l.toast.show({title:i.success?t("gui.toast.testSent"):t("gui.toast.testFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (test_notification):",i),l.toast.show({title:t("gui.toast.testFailed"),variant:"error",description:ie(i)})}finally{Pl(!1)}}async function Ec(){Ls(!0);try{await j();const i=await f.send_digest({});l.toast.show({title:i.success?t("gui.toast.digestSent"):t("gui.toast.digestFailed"),variant:i.success?"success":"error",description:i.message})}catch(i){console.error("RPC Error (send_digest):",i),l.toast.show({title:t("gui.toast.digestFailed"),variant:"error",description:ie(i)})}finally{Ls(!1)}}async function Pc(i){jn(i),await Et({maxConcurrent:i})}async function Rc(i){Nn(i),await Et({winterMode:i})}const[Sa,Ao]=a.createSignal(null),[Lc,$a]=a.createSignal(!1),[Xe,zo]=a.createSignal(""),[Eo,Ti]=a.createSignal("* * * * *"),[Ci,Ai]=a.createSignal(""),[Ks,tr]=a.createSignal("* * * * *"),[Po,ir]=a.createSignal(0),[Ro,rr]=a.createSignal(60),[or,nr]=a.createSignal(""),[Qt,ar]=a.createSignal(Ct),[Lo,lr]=a.createSignal(""),[Yt,sr]=a.createSignal([]),[Mo,dr]=a.createSignal(""),[Do,ur]=a.createSignal(""),[ye,yt]=a.createSignal("cron"),[_a,cr]=a.createSignal(""),[Ta,Fo]=a.createSignal(""),[Oo,Io]=a.createSignal(""),[bt,zi]=a.createSignal("new"),[pr,jo]=a.createSignal(""),[Ca,No]=a.createSignal(!1),[qo,gr]=a.createSignal(""),[Ho,mr]=a.createSignal(""),[Uo,fr]=a.createSignal(""),[yr,Aa]=a.createSignal([]),[Zs,za]=a.createSignal("postpone"),[Qs,Ea]=a.createSignal(""),[Ys,Pa]=a.createSignal(""),[Js,Ra]=a.createSignal(""),[Xs,La]=a.createSignal(""),[ed,Ma]=a.createSignal(""),[Wo,Da]=a.createSignal(""),[Fa,br]=a.createSignal(""),[Oa,hr]=a.createSignal(""),[xr,vr]=a.createSignal(""),[wr,Ei]=a.createSignal(""),[he,Pi]=a.createSignal([]),[xe,Ri]=a.createSignal([]),[td,id]=a.createSignal(""),[ht,Bo]=a.createSignal(!1),[xt,kr]=a.createSignal([]),[Ia,Go]=a.createSignal("parallel"),[rd,Vo]=a.createSignal("continue"),[od,Ko]=a.createSignal("summary"),[nd,Zo]=a.createSignal(!1),[Qo,Yo]=a.createSignal(""),[ja,Jo]=a.createSignal({}),[Sr,Na]=a.createSignal(!1),[qa,ad]=a.createSignal(!1),[ve,$r]=a.createSignal(null),[_r,Ha]=a.createSignal(""),ld=["bash","edit","write","read","grep","glob","webfetch"];function sd(i,r){i==="allowed"?Pi(n=>n.includes(r)?n.filter(u=>u!==r):[...n,r]):Ri(n=>n.includes(r)?n.filter(u=>u!==r):[...n,r])}function dd(i){const r=td().trim();r&&(i==="allowed"?he().includes(r)||Pi([...he(),r]):xe().includes(r)||Ri([...xe(),r]),id(""))}function Mc(i,r){kr(n=>r?n.includes(i)?n:[...n,i]:n.filter(u=>u!==i))}function Ua(i,r){const n=i.trim()||"task",u=r.trim().replace(/[\\/:*?"<>|]+/g,"-").replace(/\s+/g,"-");return`${n}-matrix-${u||"workspace"}`}const Wa=()=>xt().map(i=>D().find(r=>r.id===i)).filter(i=>!!i).map(i=>Ua(Xe(),i.name));function Tr(i,r,n){Jo(u=>{const ee={...u[i]??{}};n.trim()?ee[r]=n:delete ee[r];const we={...u};return Object.keys(ee).length>0?we[i]=ee:delete we[i],we})}const Dc=()=>Object.keys(ja()).length,ud=()=>{if(!ht())return;const i=Qo().trim(),r=i?Number(i):void 0,n=ja();return{workspaceIds:xt(),strategy:Ia(),failureMode:rd(),aggregation:od(),createAggregator:nd(),...r!==void 0&&Number.isFinite(r)&&r>=1?{concurrency:Math.floor(r)}:{},...Object.keys(n).length>0?{overrides:n}:{}}},cd=()=>{const i=Wo().trim(),r=i?Number(i):void 0;return{activeDays:yr().length>0?yr():void 0,windowPolicy:Zs(),watchGlobs:Pn(Qs()),watchIgnore:Pn(Ys()),gitBranch:(Js()||"").trim(),gitPaths:Pn(Xs()),gitIgnore:Pn(ed()),...r!==void 0&&Number.isFinite(r)&&r>=5?{gitPollSeconds:Math.floor(r)}:{}}};function Xo(){Bo(!1),kr([]),Go("parallel"),Vo("continue"),Ko("summary"),Zo(!1),Yo(""),Jo({})}function Fc(){const i=or().trim()?` --model ${or().trim()}`:"",r=bt()==="last"?" --continue":bt()==="reuse"?" --session <id>":"";return`opencode run${i}${r} "${Ci().replace(/\s+/g," ").trim()}"`}const[ab,Oc]=a.createSignal(null),[en,pd]=a.createSignal(!1),[tn,lb]=a.createSignal(!1),[sb,Ic]=a.createSignal(null);async function jc(){pd(!0);try{const i=await f.export_tasks({});if(!i.success){l.toast.show({title:t("gui.toast.exportFailed"),variant:"error",description:i.error});return}Oc(i.data);const r=new Blob([i.data],{type:"application/json"}),n=URL.createObjectURL(r),u=document.createElement("a");u.href=n,u.download=`windows-scheduler-tasks-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(n),l.toast.show({title:t("gui.toast.exported",{count:i.count}),variant:"success"})}catch(i){console.error("RPC Error (export_tasks):",i),l.toast.show({title:t("gui.toast.exportFailed"),variant:"error",description:ie(i)})}finally{pd(!1)}}function Nc(i){const n=i.target.files?.[0]??null;Ic(n)}async function Ba(){try{const i=await f.get_templates({}),r=Array.isArray(i?.templates)?i.templates:[];Xu(r)}catch(i){console.error("RPC Error (get_templates):",i)}}async function Cr(){try{const i=await f.get_workspaces({}),r=Array.isArray(i?.workspaces)?i.workspaces:[];ne(r)}catch(i){console.error("RPC Error (get_workspaces):",i)}}const Ar=()=>D().find(i=>i.id===pt());async function rn(){try{const i=await f.get_profiles({}),r=Array.isArray(i?.profiles)?i.profiles:[];Bu(r),i?.current&&bl(i.current),Gu(!!i?.pinnedByEnv)}catch(i){console.error("RPC Error (get_profiles):",i)}}async function qc(i){if(!(!i||i===yl())){xi(!0);try{const r=await f.set_profile({name:i});if(!r.success){l.toast.show({title:t("gui.toast.profileSwitchFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}bl(r.current??i),l.toast.show({title:t("gui.toast.profileSwitched"),variant:"success",description:r.message}),await rn()}catch(r){console.error("RPC Error (set_profile):",r),l.toast.show({title:t("gui.toast.profileSwitchError"),variant:"error",description:dt(ie(r))})}finally{xi(!1)}}}async function Hc(){const i=(await zt(t("gui.profile.namePrompt"),"")??"").trim();if(i){xi(!0);try{const r=await f.create_profile({name:i});if(!r.success){l.toast.show({title:t("gui.toast.profileCreateFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}await rn(),l.toast.show({title:t("gui.toast.profileCreated"),variant:"success",description:r.message})}catch(r){console.error("RPC Error (create_profile):",r),l.toast.show({title:t("gui.toast.profileCreateError"),variant:"error",description:dt(ie(r))})}finally{xi(!1)}}}async function Uc(i){if(!(!i||i==="default")&&window.confirm(t("gui.profile.deleteConfirm",{name:i}))){xi(!0);try{const r=await f.delete_profile({name:i});if(!r.success){l.toast.show({title:t("gui.toast.profileDeleteFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}await rn(),l.toast.show({title:t("gui.toast.profileDeleted"),variant:"success"})}catch(r){console.error("RPC Error (delete_profile):",r),l.toast.show({title:t("gui.toast.profileDeleteError"),variant:"error",description:dt(ie(r))})}finally{xi(!1)}}}function Wc(i){return i?Object.entries(i).map(([r,n])=>`${r}=${n}`).join(`
8
+ `):""}function Bc(i){const r={};for(const n of i.split(/\r?\n/)){const u=n.trim();if(!u||u.startsWith("#"))continue;const ee=u.indexOf("=");if(ee<=0)return null;const we=u.slice(0,ee).trim();if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(we))return null;r[we]=u.slice(ee+1).trim()}return r}async function Gc(i){const r=await zt(t("gui.workspace.envPrompt"),Wc(i.env));if(r===null)return;const n=Bc(r);if(!n){l.toast.show({title:t("gui.toast.envInvalid"),variant:"error",description:t("gui.workspace.envInvalidHelp")});return}const u=await zt(t("gui.workspace.envFilePrompt"),i.envFile??"");if(u!==null){Be(!0);try{const ee=await f.update_workspace({id:i.id,env:Object.keys(n).length?n:null,envFile:u.trim()||null});if(!ee.success){l.toast.show({title:t("gui.toast.envSaveFailed"),variant:"error",description:ee.error??t("gui.common.unknownError")});return}await Cr(),l.toast.show({title:t("gui.toast.envSaved"),variant:"success",description:t("gui.workspace.envSecretsMasked")})}catch(ee){console.error("RPC Error (update_workspace env):",ee),l.toast.show({title:t("gui.toast.envSaveError"),variant:"error",description:dt(ie(ee))})}finally{Be(!1)}}}async function Vc(){const i=(await zt(t("gui.workspace.pathPrompt"),"")??"").trim();if(!i)return;const r=(await zt(t("gui.workspace.namePrompt"),"")??"").trim();Be(!0);try{const n=await f.add_workspace({path:i,...r?{name:r}:{}});if(!n.success){l.toast.show({title:t("gui.toast.workspaceAddFailed"),variant:"error",description:n.error??t("gui.common.unknownError")});return}await Cr(),n.workspace?.id&&Qe(n.workspace.id),l.toast.show({title:t("gui.toast.workspaceAdded"),variant:"success"})}catch(n){console.error("RPC Error (add_workspace):",n),l.toast.show({title:t("gui.toast.workspaceAddFailed"),variant:"error",description:dt(ie(n))})}finally{Be(!1)}}async function Kc(i){const r=(await zt(t("gui.workspace.pathPromptShort"),i.path)??"").trim();if(!r)return;const n=(await zt(t("gui.workspace.namePromptShort"),i.name)??"").trim();Be(!0);try{const u=await f.update_workspace({id:i.id,path:r,...n?{name:n}:{}});if(!u.success){l.toast.show({title:t("gui.toast.workspaceUpdateFailed"),variant:"error",description:u.error??t("gui.common.unknownError")});return}await Cr(),l.toast.show({title:t("gui.toast.workspaceUpdated"),variant:"success"})}catch(u){console.error("RPC Error (update_workspace):",u),l.toast.show({title:t("gui.toast.workspaceUpdateFailed"),variant:"error",description:dt(ie(u))})}finally{Be(!1)}}async function Zc(i){if(window.confirm(t("gui.workspace.deleteConfirm",{name:i.name}))){Be(!0);try{const r=await f.delete_workspace({id:i.id});if(!r.success){l.toast.show({title:t("gui.toast.workspaceDeleteFailed"),variant:"error",description:r.message??t("gui.common.unknownError")});return}pt()===i.id&&Qe(""),ut()===i.id&&Vi("all"),await Cr(),await et(),l.toast.show({title:t("gui.toast.workspaceDeleted"),variant:"success",description:r.message})}catch(r){console.error("RPC Error (delete_workspace):",r),l.toast.show({title:t("gui.toast.workspaceDeleteFailed"),variant:"error",description:dt(ie(r))})}finally{Be(!1)}}}const Qc=i=>{if(so(i),i.startsWith("custom:")){const n=uo().find(u=>`custom:${u.id}`===i);if(!n)return;if(Ai(n.prompt??""),n.schedule){Ti(n.schedule);const u=Mu().find(ee=>ee.value===n.schedule);tr(u?u.value:"__custom__")}if(ir(n.retryCount??0),rr(n.retryDelay??60),lr(n.qualityGate??""),nr(n.model??""),ar(typeof n.priority=="number"?n.priority:Ct),sr(Array.isArray(n.dependsOn)?n.dependsOn:[]),dr(n.beforeScript??""),ur(n.afterScript??""),yt(n.triggerType==="file"?"file":n.triggerType==="git"?"git":n.triggerType==="mcp-event"?"mcp-event":"cron"),cr(n.watchPath??""),Ea(Gt(n.watchGlobs)),Pa(Gt(n.watchIgnore)),Ra(n.gitBranch??""),La(Gt(n.gitPaths)),Ma(Gt(n.gitIgnore)),Da(n.gitPollSeconds?String(n.gitPollSeconds):""),Aa(Array.isArray(n.activeDays)?n.activeDays:[]),za(n.windowPolicy??"postpone"),gr(n.timezone??""),mr(n.notBefore??""),fr(n.notAfter??""),br(n.mcpEvent?.server??""),hr(n.mcpEvent?.event??""),vr(n.mcpEvent?.filter??""),Ei(n.workingDirectory??""),Qe(n.workspaceId??""),Pi(Array.isArray(n.allowedTools)?n.allowedTools:[]),Ri(Array.isArray(n.deniedTools)?n.deniedTools:[]),n.matrix){Bo(!0),kr(Array.isArray(n.matrix.workspaceIds)?n.matrix.workspaceIds:[]),Go(n.matrix.strategy==="sequential"?"sequential":"parallel"),Vo(n.matrix.failureMode==="stop"?"stop":"continue"),Ko(n.matrix.aggregation==="per-task"?"per-task":"summary"),Zo(!!n.matrix.createAggregator),Yo(typeof n.matrix.concurrency=="number"?String(n.matrix.concurrency):"");const u=n.matrix.overrides;Jo(u?{...u}:{})}else Xo();return}const r=Sl().find(n=>n.value===i);r&&Ai(r.prompt)};async function Yc(){if(!(Ci()||"").trim()){l.toast.show({title:t("gui.toast.nothingToSave"),variant:"error",description:t("gui.toast.promptRequired")});return}const i=(await zt(t("gui.templates.namePrompt"),"")??"").trim();if(i)try{const r=await f.save_template({name:i,prompt:(Ci()||"").trim(),schedule:(Eo()||"").trim(),timeoutSeconds:3600,model:(or()||"").trim(),priority:Qt(),retryCount:Po(),retryDelay:Ro(),qualityGate:(Lo()||"").trim(),beforeScript:(Mo()||"").trim(),afterScript:(Do()||"").trim(),dependsOn:Yt(),triggerType:ye(),timezone:(qo()||"").trim()||void 0,notBefore:(Ho()||"").trim()||void 0,notAfter:(Uo()||"").trim()||void 0,mcpEvent:ye()==="mcp-event"?{server:(Fa()||"").trim(),event:(Oa()||"").trim(),...xr().trim()?{filter:xr().trim()}:{}}:void 0,watchPath:(_a()||"").trim(),...cd(),workingDirectory:(wr()||"").trim(),workspaceId:(pt()||"").trim()||void 0,allowedTools:he().length>0?he():void 0,deniedTools:xe().length>0?xe():void 0,matrix:ud()});if(!r.success){l.toast.show({title:t("gui.toast.templateSaveFailed"),variant:"error",description:r.error||t("gui.common.unknownError")});return}await Ba();const n=r.template;n?.id&&so(`custom:${n.id}`),l.toast.show({title:t("gui.toast.templateSaved",{name:i}),variant:"success"})}catch(r){console.error("RPC Error (save_template):",r),l.toast.show({title:t("gui.toast.templateSaveError"),variant:"error",description:ie(r)})}}async function Jc(i){if(window.confirm(t("gui.templates.deleteConfirm",{name:i.name})))try{const r=await f.delete_template({id:i.id});if(!r.success){l.toast.show({title:t("gui.toast.templateDeleteFailed"),variant:"error",description:r.error||t("gui.common.unknownError")});return}Qi()===`custom:${i.id}`&&so("custom"),await Ba(),l.toast.show({title:t("gui.toast.templateDeleted",{name:i.name}),variant:"success"})}catch(r){console.error("RPC Error (delete_template):",r),l.toast.show({title:t("gui.toast.templateDeleteError"),variant:"error",description:ie(r)})}}async function et(){try{const i=await f.get_tasks({});console.log("[GUI] Received tasks:",i);const r=Array.isArray(i?.tasks)?i.tasks:[];console.log("[GUI] tasks count:",r.length);const n=r.map(u=>({name:u.name,schedule:u.schedule,status:u.status??"unknown",runsTotal:typeof u.runsTotal=="number"?u.runsTotal:0,runsSuccess:typeof u.runsSuccess=="number"?u.runsSuccess:0,runsError:typeof u.runsError=="number"?u.runsError:0,runsPartial:typeof u.runsPartial=="number"?u.runsPartial:0,nextRun:u.nextRun??void 0,paused:!!u.paused,orphaned:!!u.orphaned,retryCount:u.retryCount??0,retryDelay:u.retryDelay??60,qualityGate:u.qualityGate??void 0,dependsOn:Array.isArray(u.dependsOn)?u.dependsOn:void 0,model:u.model??void 0,priority:typeof u.priority=="number"?u.priority:Ct,beforeScript:u.beforeScript??void 0,afterScript:u.afterScript??void 0,triggerType:u.triggerType??"cron",runAt:u.runAt??void 0,session:u.session??void 0,sessionMaxRuns:u.sessionMaxRuns??void 0,mcpEvent:u.mcpEvent??void 0,watchPath:u.watchPath??void 0,timezone:u.timezone??void 0,notBefore:u.notBefore??void 0,notAfter:u.notAfter??void 0,pausedUntil:u.pausedUntil??void 0,workingDirectory:u.workingDirectory??void 0,workspaceId:u.workspaceId??void 0,workspaceName:u.workspaceName??void 0,workspaceColor:u.workspaceColor??void 0,allowedTools:Array.isArray(u.allowedTools)?u.allowedTools:void 0,deniedTools:Array.isArray(u.deniedTools)?u.deniedTools:void 0,matrix:u.matrix??null,matrixParentId:u.matrixParentId??null,isMatrixParent:!!u.isMatrixParent,matrixSummary:u.matrixSummary??null,prompt:u.prompt??""}));G(n),console.log("[GUI] jobs:",S()),await Xc()}catch(i){console.error("RPC Error (get_tasks):",i),l.toast.show({title:t("gui.toast.jobsLoadFailed"),variant:"error",description:dt(ie(i))})}}async function Xc(){try{const i=await f.get_metrics({});Yu({total:i.total??0,success:i.success??0,error:i.error??0})}catch(i){console.error("RPC Error (get_metrics):",i)}}async function ep(i){wl(i);try{const r=await f.get_history({limit:10,taskName:i});Ju(r.records??[])}catch(r){console.error("RPC Error (get_history):",r),l.toast.show({title:t("gui.toast.historyLoadFailed"),variant:"error",description:ie(r)})}}async function tp(i){Na(!0),Ha(i),ad(!0),$r(null);try{const r=await f.dry_run({taskName:i});$r(r)}catch(r){console.error("RPC Error (dry_run):",r),$r({success:!1,error:ie(r),tasks:[],warnings:[]})}finally{ad(!1)}}function gd(){Na(!1),Ha(""),$r(null)}async function ip(){xl(!0),ao("");try{const i=await f.create_task({name:(Xe()||"").trim(),schedule:(Eo()||"").trim(),prompt:(Ci()||"").trim(),model:(or()||"").trim(),priority:Qt(),retryCount:Po(),retryDelay:Ro(),qualityGate:(Lo()||"").trim(),beforeScript:(Mo()||"").trim(),afterScript:(Do()||"").trim(),dependsOn:Yt(),triggerType:ye(),session:bt(),...bt()==="reuse"&&(pr()||"").trim()?{sessionMaxRuns:Number((pr()||"").trim())}:{},...ye()==="once"?{runAt:(Ta()||"").trim()||void 0,delaySeconds:(Oo()||"").trim()?Number(Oo().trim()):void 0}:{},timezone:(qo()||"").trim()||void 0,notBefore:(Ho()||"").trim()||void 0,notAfter:(Uo()||"").trim()||void 0,mcpEvent:ye()==="mcp-event"?{server:(Fa()||"").trim(),event:(Oa()||"").trim(),...xr().trim()?{filter:xr().trim()}:{}}:void 0,watchPath:(_a()||"").trim(),...cd(),workingDirectory:(wr()||"").trim(),workspaceId:(pt()||"").trim()||void 0,allowedTools:he().length>0?he():void 0,deniedTools:xe().length>0?xe():void 0,runWhenLoggedOff:Ca(),matrix:ud()});if(!i.success){const r=dt(i.message);ao(r),l.toast.show({title:t("gui.toast.taskCreateFailed"),variant:"error",description:r});return}await new Promise(r=>setTimeout(r,500)),await et(),zo(""),Ti("* * * * *"),Ai(""),tr("* * * * *"),ir(0),rr(60),lr(""),sr([]),nr(""),ar(Ct),dr(""),ur(""),yt("cron"),cr(""),Fo(""),Io(""),zi("new"),jo(""),No(!1),gr(""),mr(""),fr(""),br(""),hr(""),vr(""),Ei(""),Qe(""),Pi([]),Ri([]),Xo(),Ao(null),so("custom"),l.toast.show({title:t("gui.toast.taskCreated"),variant:"success"})}catch(i){console.error("RPC Error (create_task):",i);const r=dt(ie(i));ao(r),l.toast.show({title:t("gui.toast.taskCreateFailed"),variant:"error",description:r})}finally{xl(!1)}}function rp(i){const r=new Date().toISOString(),n=_i.get(i);n&&clearInterval(n);let u=0;const ee=setInterval(()=>{if(u+=1,u>900){clearInterval(ee),_i.delete(i);return}(async()=>{try{const vt=((await f.get_history({limit:50})).records??[]).find(Le=>String(Le.taskName??"").toLowerCase()===i.toLowerCase()&&typeof Le.startedAt=="string"&&Le.startedAt>=r);if(!vt)return;clearInterval(ee),_i.delete(i);const Ie=vt.status==="success",Jt=((Number(vt.durationMs)||0)/1e3).toFixed(1),Li=vt.error?`: ${vt.error}`:"";l.toast.show({title:Ie?t("gui.toast.taskDone",{name:i}):t("gui.toast.taskCrashed",{name:i}),variant:Ie?"success":"error",description:`${Jt}s${Li}`}),await et()}catch(we){console.error("RPC Error (get_history):",we)}})()},2e3);_i.set(i,ee)}async function op(i){if(!i||typeof i!="string"){console.error("[GUI] run_task aborted: empty task name");return}try{const r=await f.run_task({name:i});if(!r.success){l.toast.show({title:t("gui.toast.taskStartFailed",{name:i}),variant:"error",description:r.message});return}l.toast.show({title:r.message||t("gui.toast.taskStarted",{name:i}),variant:"success"}),/уже выполняется/i.test(r.message||"")||rp(i),await et()}catch(r){console.error("RPC Error (run_task):",r),l.toast.show({title:t("gui.toast.runFailed"),variant:"error",description:ie(r)})}}async function np(i){try{const r=await f.pause_task({name:i});if(!r.success){l.toast.show({title:t("gui.toast.pauseFailed",{name:i}),variant:"error",description:r.message});return}l.toast.show({title:t("gui.toast.paused",{name:i}),variant:"success"}),await et()}catch(r){console.error("RPC Error (pause_task):",r),l.toast.show({title:t("gui.toast.pauseError"),variant:"error",description:ie(r)})}}async function ap(i){try{const r=await f.resume_task({name:i});if(!r.success){l.toast.show({title:t("gui.toast.resumeFailed",{name:i}),variant:"error",description:r.message});return}l.toast.show({title:t("gui.toast.resumed",{name:i}),variant:"success"}),await et()}catch(r){console.error("RPC Error (resume_task):",r),l.toast.show({title:t("gui.toast.resumeError"),variant:"error",description:ie(r)})}}async function lp(i){if(window.confirm(t("gui.matrix.cancelClonesConfirm",{name:i})))try{const r=await f.cancel_matrix({name:i});if(!r.success){l.toast.show({title:t("gui.toast.matrixCancelFailed"),variant:"error",description:r.message});return}l.toast.show({title:r.message,variant:"success"}),await et()}catch(r){console.error("RPC Error (cancel_matrix):",r),l.toast.show({title:t("gui.toast.matrixCancelError"),variant:"error",description:ie(r)})}}async function sp(i){const n=S().find(u=>u.name===i)?.matrix?t("gui.matrix.deleteConfirm",{name:i}):t("gui.task.deleteConfirm",{name:i});if(window.confirm(n))try{const u=await f.delete_task({name:i});if(!u.success){l.toast.show({title:t("gui.toast.deleteFailed"),variant:"error",description:u.message});return}l.toast.show({title:t("gui.toast.taskDeleted",{name:i}),variant:"success"}),Fn()===i&&(vi(""),On(null)),Sa()?.name===i&&Ao(null),await et()}catch(u){console.error("RPC Error (delete_task):",u),l.toast.show({title:t("gui.toast.deleteFailed"),variant:"error",description:ie(u)})}}async function dp(i){On(i),vi(t("gui.logs.loading"));try{const r=await f.get_task_logs({name:i});if(!r.success){vi(r.error||t("gui.logs.loadFailed")),l.toast.show({title:t("gui.toast.logsReadFailed"),variant:"error",description:r.error});return}vi(r.logs||t("gui.logs.empty"))}catch(r){console.error("RPC Error (get_task_logs):",r),vi(t("gui.logs.readError",{error:ie(r)}))}}function up(i){Ao(i),$a(!1),zo(i.name),Ti(i.schedule),Ai(i.prompt??""),nr(i.model??""),ar(typeof i.priority=="number"?i.priority:Ct),ir(i.retryCount??0),rr(i.retryDelay??60),lr(i.qualityGate??""),sr(Array.isArray(i.dependsOn)?i.dependsOn:[]),dr(i.beforeScript??""),ur(i.afterScript??""),yt(i.triggerType??"cron"),cr(i.watchPath??""),Ea(Gt(i.watchGlobs)),Pa(Gt(i.watchIgnore)),Ra(i.gitBranch??""),La(Gt(i.gitPaths)),Ma(Gt(i.gitIgnore)),Da(typeof i.gitPollSeconds=="number"?String(i.gitPollSeconds):""),Aa(Array.isArray(i.activeDays)?i.activeDays:[]),za(i.windowPolicy??"postpone"),Fo(i.runAt??""),Io(""),zi(i.session==="reuse"||i.session==="last"?i.session:"new"),No(i.runWhenLoggedOff===!0),jo(typeof i.sessionMaxRuns=="number"?String(i.sessionMaxRuns):""),gr(i.timezone??""),mr(i.notBefore??""),fr(i.notAfter??""),br(i.mcpEvent?.server??""),hr(i.mcpEvent?.event??""),vr(i.mcpEvent?.filter??""),Ei(i.workingDirectory??""),Qe(i.workspaceId??""),Pi(Array.isArray(i.allowedTools)?i.allowedTools:[]),Ri(Array.isArray(i.deniedTools)?i.deniedTools:[]),i.matrix?(Bo(!0),kr(Array.isArray(i.matrix.workspaceIds)?i.matrix.workspaceIds:[]),Go(i.matrix.strategy==="sequential"?"sequential":"parallel"),Vo(i.matrix.failureMode==="stop"?"stop":"continue"),Ko(i.matrix.aggregation==="per-task"?"per-task":"summary"),Zo(!!i.matrix.createAggregator),Yo(typeof i.matrix.concurrency=="number"?String(i.matrix.concurrency):""),Jo(i.matrix.overrides?{...i.matrix.overrides}:{})):Xo();const r=CRON_PRESETS.find(n=>n.value===i.schedule);tr(r?r.value:"__custom__")}et(),Cr(),rn(),$c(),Sc(),Ba();const cp=setInterval(et,5e3);a.onCleanup(()=>clearInterval(cp));const pp=Ks()==="__custom__",Ga=Sa()!==null,gp=()=>{const i=(qo()||"").trim();if(!i)return!0;try{return new Intl.DateTimeFormat("en-US",{timeZone:i}),!0}catch{return!1}},Va=(i,r,n)=>Number.isInteger(i)&&i>=r&&(n===void 0||i<=n),md=()=>{const i=(Xe()||"").trim();if(!i)return t("gui.validation.taskNameRequired");if(!(Ci()||"").trim())return t("gui.validation.promptRequired");if(ye()==="cron"&&!(Eo()||"").trim())return t("gui.validation.cronRequired");if(ye()==="once"&&!(Ta()||"").trim()&&!(Oo()||"").trim())return t("gui.validation.runAtRequired");if(ye()==="git"&&!(pt()||"").trim()&&!(wr()||"").trim())return t("gui.validation.gitWorkspaceRequired");if((Wo()||"").trim()&&!/^([5-9]|[1-9]\d+)$/.test(Wo().trim()))return t("gui.validation.gitPollInvalid");if(ht()&&xt().length===0)return t("gui.validation.matrixWorkspacesRequired");if(bt()==="reuse"&&(pr()||"").trim()&&!/^[1-9]\d*$/.test(pr().trim()))return t("gui.validation.sessionMaxRunsInvalid");if(ht()&&(Qo()||"").trim()&&!/^[1-9]\d*$/.test(Qo().trim()))return t("gui.validation.matrixConcurrencyInvalid");if((Ho()||"").trim()===""!=((Uo()||"").trim()===""))return t("gui.validation.windowPairRequired");if(!gp())return t("gui.validation.timezoneInvalid");if(!Va(Qt(),0,10))return t("gui.validation.priorityInvalid");if(!Va(Po(),0))return t("gui.validation.retryCountInvalid");if(!Va(Ro(),0))return t("gui.validation.retryDelayInvalid");const r=i.toLowerCase();return Yt().some(n=>n.trim().toLowerCase()===r)?t("gui.validation.dependsOnSelf"):""},on=()=>md()==="",zr=()=>S()??[],Ka=()=>{const i=ut();return i==="all"?zr():i==="none"?zr().filter(r=>!r.workspaceId):zr().filter(r=>r.workspaceId===i)},fd=()=>{const i=(Sa()?.name??Xe()).trim().toLowerCase();return zr().map(r=>r.name).filter(r=>r.trim().toLowerCase()!==i)};function mp(i,r){sr(n=>r?n.some(u=>u.toLowerCase()===i.toLowerCase())?n:[...n,i]:n.filter(u=>u.toLowerCase()!==i.toLowerCase()))}const[fp,yd]=a.createSignal(null);function Pt(i=!1){return`background:${i?"rgba(90,200,250,0.16)":"transparent"};border:1px solid ${i?"rgba(90,200,250,0.5)":"#333"};border-radius:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:${i?"#5ac8fa":"#cfcfd2"};font-size:14px;line-height:1;padding:0;transition:background 0.18s ease, border-color 0.18s ease, color 0.18s ease`}function Ae(i,r,n=!1){const u=i.currentTarget;u&&(u.style.background=r?"rgba(255,255,255,0.09)":n?"rgba(90,200,250,0.16)":"transparent",u.style.borderColor=r?"#5ac8fa":n?"rgba(90,200,250,0.5)":"#333",u.style.color=r||n?"#5ac8fa":"#cfcfd2")}const yp=i=>{const r=i.job;return!r||!r.name?null:(()=>{var n=Vm(),u=n.firstChild,ee=u.firstChild,we=ee.firstChild,le=we.firstChild,vt=le.firstChild,Ie=le.nextSibling,Jt=we.nextSibling,Li=ee.nextSibling,Le=Li.firstChild,Ge=Le.nextSibling,Rt=Ge.nextSibling,je=Rt.nextSibling,wt=je.nextSibling,Lt=wt.nextSibling;return e.insert(vt,()=>r.name),e.insert(le,(()=>{var p=e.memo(()=>!!r.workspaceName);return()=>p()&&(()=>{var c=Km();return c.firstChild,e.insert(c,()=>r.workspaceName,null),e.effect(k=>{var R=`Workspace: ${r.workspaceName}${r.workingDirectory?` (${r.workingDirectory})`:""}`,V=`font-size:11px;font-weight:600;flex-shrink:0;cursor:help;white-space:nowrap;padding:2px 7px;border-radius:999px;border:1px solid ${r.workspaceColor||"#5ac8fa"};color:${r.workspaceColor||"#5ac8fa"};background:${r.workspaceColor||"#5ac8fa"}1a`;return R!==k.e&&e.setAttribute(c,"title",k.e=R),k.t=e.style(c,V,k.t),k},{e:void 0,t:void 0}),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(r.isMatrixParent&&r.matrix));return()=>p()&&(()=>{var c=Zm(),k=c.firstChild,R=k.nextSibling;return R.nextSibling,e.insert(c,()=>r.matrix.workspaceIds.length,R),e.insert(c,(()=>{var V=e.memo(()=>!!r.matrix.concurrency);return()=>V()?` ⚙${r.matrix.concurrency}`:""})(),null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.fanoutTitle",{count:r.matrix.workspaceIds.length,strategy:r.matrix.strategy??"parallel",failureMode:r.matrix.failureMode??"continue",concurrency:r.matrix.concurrency?t("gui.job.fanoutConcurrency",{concurrency:r.matrix.concurrency}):"",overrides:r.matrix.overrides?t("gui.job.fanoutOverrides",{overrides:Object.keys(r.matrix.overrides).length}):""}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.matrixParentId);return()=>p()&&(()=>{var c=Qm();return c.firstChild,e.insert(c,()=>r.matrixParentId,null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.matrixClone",{parent:r.matrixParentId}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.watchPath);return()=>p()&&(()=>{var c=Ym();return e.effect(()=>e.setAttribute(c,"title",t("gui.job.watchFile",{path:r.watchPath}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(Array.isArray(r.watchGlobs)&&r.watchGlobs.length>0));return()=>p()&&(()=>{var c=Jm();return e.insert(c,()=>t("gui.job.watchGlobsCount",{count:r.watchGlobs.length})),e.effect(()=>e.setAttribute(c,"title",t("gui.job.watchGlobsTitle",{globs:r.watchGlobs.join(", ")}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>r.triggerType==="git");return()=>p()&&(()=>{var c=Xm();return e.effect(()=>e.setAttribute(c,"title",t("gui.job.gitTriggerTitle",{branch:r.gitBranch?t("gui.job.gitTriggerBranch",{branch:r.gitBranch}):"",paths:Array.isArray(r.gitPaths)&&r.gitPaths.length>0?t("gui.job.gitTriggerPaths",{paths:r.gitPaths.join(", ")}):"",seconds:r.gitPollSeconds??60}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(Array.isArray(r.activeDays)&&r.activeDays.length>0));return()=>p()&&(()=>{var c=ef(),k=c.firstChild,R=k.nextSibling;return R.nextSibling,e.insert(c,()=>r.activeDays.length,R),e.effect(()=>e.setAttribute(c,"title",t("gui.job.activeDaysTitle",{days:r.activeDays.map(V=>[t("gui.weekday.0"),t("gui.weekday.1"),t("gui.weekday.2"),t("gui.weekday.3"),t("gui.weekday.4"),t("gui.weekday.5"),t("gui.weekday.6")][V]??V).join(", ")}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.timezone);return()=>p()&&(()=>{var c=tf();return c.firstChild,e.insert(c,()=>r.timezone,null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.timezoneTitle",{tz:r.timezone}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(r.notBefore&&r.notAfter));return()=>p()&&(()=>{var c=rf(),k=c.firstChild,R=k.nextSibling;return R.nextSibling,e.insert(c,()=>r.notBefore,R),e.insert(c,()=>r.notAfter,null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.windowTitle",{from:r.notBefore,to:r.notAfter}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.pausedUntil);return()=>p()&&(()=>{var c=of();return e.insert(c,()=>t("gui.job.pausedUntilShort",{date:new Date(r.pausedUntil).toLocaleDateString()})),e.effect(()=>e.setAttribute(c,"title",t("gui.job.pausedUntilTitle",{date:new Date(r.pausedUntil).toLocaleString()}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.runWhenLoggedOff);return()=>p()&&(()=>{var c=nf();return c.firstChild,e.insert(c,()=>t("gui.job.runWhenLoggedOffShort"),null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.runWhenLoggedOffTitle",{mode:r.logonMode??t("gui.job.logonModeUnknown")}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(r.beforeScript||r.afterScript));return()=>p()&&(()=>{var c=af();return e.effect(()=>e.setAttribute(c,"title",`Lifecycle hooks: ${[r.beforeScript?`pre: ${r.beforeScript}`:"",r.afterScript?`post: ${r.afterScript}`:""].filter(Boolean).join(" · ")}`)),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>r.triggerType==="mcp-event");return()=>p()&&(()=>{var c=lf();return e.effect(()=>e.setAttribute(c,"title",t("gui.job.mcpEventTitle",{event:r.mcpEvent?.event??"—",filterSuffix:r.mcpEvent?.filter?t("gui.job.mcpEventFilterSuffix",{filter:r.mcpEvent.filter}):""}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(r.session&&r.session!=="new"));return()=>p()&&(()=>{var c=sf();return e.insert(c,(()=>{var k=e.memo(()=>r.session==="reuse");return()=>k()?t("gui.job.sessionReuseShort"):t("gui.job.sessionContinueShort")})()),e.effect(()=>e.setAttribute(c,"title",r.session==="reuse"?r.sessionId?t("gui.job.sessionReuseTitleId",{id:r.sessionId}):t("gui.job.sessionReuseTitle"):t("gui.job.sessionContinueTitle"))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!r.model);return()=>p()&&(()=>{var c=df();return c.firstChild,e.insert(c,()=>r.model,null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.modelTitle",{model:r.model}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>typeof r.priority=="number"&&r.priority!==Ct);return()=>p()&&(()=>{var c=uf();return c.firstChild,e.insert(c,()=>Ru(r.priority),null),e.effect(()=>e.setAttribute(c,"title",t("gui.job.priorityTitle",{label:Ru(r.priority),priority:r.priority}))),c})()})(),null),e.insert(le,(()=>{var p=e.memo(()=>!!(Array.isArray(r.allowedTools)&&r.allowedTools.length>0||Array.isArray(r.deniedTools)&&r.deniedTools.length>0));return()=>p()?(()=>{var c=cf();return e.effect(()=>e.setAttribute(c,"title",t("gui.job.toolLimitsTitle",{limits:[r.allowedTools?.length?`allowed=[${r.allowedTools.join(", ")}]`:"",r.deniedTools?.length?`denied=[${r.deniedTools.join(", ")}]`:""].filter(Boolean).join(" · ")}))),c})():null})(),null),e.insert(we,(()=>{var p=e.memo(()=>!!(Array.isArray(r.dependsOn)&&r.dependsOn.length>0));return()=>p()&&(()=>{var c=pf(),k=c.firstChild;return e.insert(k,()=>t("gui.job.dependsOn",{list:r.dependsOn.join(" + ")})),c})()})(),Ie),e.insert(we,(()=>{var p=e.memo(()=>!!(r.isMatrixParent&&r.matrixSummary));return()=>p()&&(()=>{var c=gf(),k=c.firstChild;return e.insert(k,()=>t("gui.job.matrixDone",{success:r.matrixSummary.successCount,total:r.matrixSummary.totalCount}),null),e.insert(k,(()=>{var R=e.memo(()=>r.matrixSummary.errorCount>0);return()=>R()?` · ❌ ${r.matrixSummary.errorCount}`:""})(),null),e.insert(k,(()=>{var R=e.memo(()=>r.matrixSummary.pendingCount>0);return()=>R()?` · ⏳ ${r.matrixSummary.pendingCount}`:""})(),null),e.effect(R=>{var V=r.matrixSummary.message,P=`cursor:help;color:${ob(r.matrixSummary.status)};white-space:nowrap;overflow:hidden;text-overflow:ellipsis`;return V!==R.e&&e.setAttribute(k,"title",R.e=V),R.t=e.style(k,P,R.t),R},{e:void 0,t:void 0}),c})()})(),Ie),e.insert(Ie,()=>t("gui.job.runsLine",{total:r.runsTotal??0,success:r.runsSuccess??0,partial:r.runsPartial??0,error:r.runsError??0})),e.insert(we,(()=>{var p=e.memo(()=>!!(r.schedule||r.nextRun));return()=>p()&&(()=>{var c=mf(),k=c.firstChild;return e.insert(k,()=>r.schedule),e.insert(c,(()=>{var R=e.memo(()=>!!r.nextRun);return()=>R()&&(()=>{var V=ff();return V.firstChild,e.insert(V,()=>r.nextRun,null),V})()})(),null),c})()})(),null),e.insert(Jt,(()=>{var p=e.memo(()=>r.status==="running");return()=>p()?(()=>{var c=yf();return e.insert(c,()=>t("gui.jobStatus.running",{seconds:ec()})),c})():(()=>{var c=bf();return e.insert(c,(()=>{var k=e.memo(()=>!!r.orphaned);return()=>k()?t("gui.jobStatus.orphan"):e.memo(()=>!!r.paused)()?t("gui.jobStatus.paused"):e.memo(()=>r.status==="success")()?t("gui.jobStatus.success"):e.memo(()=>r.status==="error")()?t("gui.jobStatus.error"):e.memo(()=>r.status==="partial")()?t("gui.jobStatus.partial"):e.memo(()=>r.status==="idle")()?t("gui.jobStatus.never"):t("gui.jobStatus.unknown")})()),c})()})()),Le.addEventListener("mouseleave",p=>{Ae(p,!1),yd(c=>c===r.name?null:c)}),Le.addEventListener("mouseenter",p=>{Ae(p,!0),Ye()&&yd(r.name)}),Le.$$click=()=>{op(r.name)},e.insert(Le,()=>Ye()&&fp()===r.name?"❄️":"▶"),Ge.addEventListener("mouseleave",p=>Ae(p,!1)),Ge.addEventListener("mouseenter",p=>Ae(p,!0)),Ge.$$click=()=>{r.orphaned||(r.paused?ap(r.name):np(r.name))},e.insert(Ge,()=>r.paused?"▶":"⏸"),Rt.addEventListener("mouseleave",p=>Ae(p,!1)),Rt.addEventListener("mouseenter",p=>Ae(p,!0)),Rt.$$click=()=>{dp(r.name)},je.addEventListener("mouseleave",p=>Ae(p,!1,Sr()&&_r()===r.name)),je.addEventListener("mouseenter",p=>Ae(p,!0,Sr()&&_r()===r.name)),je.$$click=()=>{tp(r.name)},wt.addEventListener("mouseleave",p=>Ae(p,!1,lo()===r.name)),wt.addEventListener("mouseenter",p=>Ae(p,!0,lo()===r.name)),wt.$$click=()=>{ep(r.name)},Lt.addEventListener("mouseleave",p=>Ae(p,!1)),Lt.addEventListener("mouseenter",p=>Ae(p,!0)),Lt.$$click=()=>{up(r)},e.insert(Li,(()=>{var p=e.memo(()=>!!r.matrix);return()=>p()&&(()=>{var c=hf();return c.addEventListener("mouseleave",k=>Ae(k,!1)),c.addEventListener("mouseenter",k=>Ae(k,!0)),c.$$click=()=>{lp(r.name)},e.effect(k=>{var R=t("gui.job.cancelMatrixTitle",{name:r.name}),V=Pt();return R!==k.e&&e.setAttribute(c,"title",k.e=R),k.t=e.style(c,V,k.t),k},{e:void 0,t:void 0}),c})()})(),null),e.insert(Li,(()=>{var p=e.memo(()=>!r.matrixParentId);return()=>p()&&(()=>{var c=xf();return c.addEventListener("mouseleave",k=>Ae(k,!1)),c.addEventListener("mouseenter",k=>Ae(k,!0)),c.$$click=()=>{sp(r.name)},e.effect(k=>{var R=r.matrix?t("gui.job.deleteMatrixTitle",{name:r.name}):t("gui.job.deleteTitle",{name:r.name}),V=Pt();return R!==k.e&&e.setAttribute(c,"title",k.e=R),k.t=e.style(c,V,k.t),k},{e:void 0,t:void 0}),c})()})(),null),e.insert(n,(()=>{var p=e.memo(()=>lo()===r.name);return()=>p()&&(()=>{var c=vf(),k=c.firstChild,R=k.firstChild;return e.insert(k,()=>t("gui.job.historyPanelTitle"),R),R.addEventListener("mouseleave",V=>{V.target.style.color="#8e8e93"}),R.addEventListener("mouseenter",V=>{V.target.style.color="#ffffff"}),R.$$click=()=>wl(null),e.insert(c,(()=>{var V=e.memo(()=>kl().length===0);return()=>V()?(()=>{var P=ku();return e.insert(P,()=>t("gui.job.historyEmpty")),P})():kl().map(P=>(()=>{var J=wf(),N=J.firstChild,Z=N.nextSibling,Ne=Z.nextSibling;return e.insert(N,()=>new Date(P.startedAt).toLocaleString()),e.insert(Z,(()=>{var re=e.memo(()=>P.status==="success");return()=>re()?t("gui.history.success"):t("gui.history.error")})()),e.insert(Ne,()=>t("gui.history.durationMs",{ms:P.durationMs})),e.insert(J,(()=>{var re=e.memo(()=>!!P.model);return()=>re()&&(()=>{var H=kf();return H.firstChild,e.insert(H,()=>P.model,null),e.effect(()=>e.setAttribute(H,"title",t("gui.history.modelTitle",{model:P.model}))),H})()})(),null),e.insert(J,(()=>{var re=e.memo(()=>!!(P.preFlightStatus&&P.preFlightStatus!=="skipped"));return()=>re()&&(()=>{var H=Sf();return H.firstChild,e.insert(H,()=>P.preFlightStatus==="success"?"✅":"❌",null),e.effect(se=>{var ke=`Pre-flight: ${P.preFlightStatus}`,be=P.preFlightStatus==="success"?"#34c759":"#ff3b30";return ke!==se.e&&e.setAttribute(H,"title",se.e=ke),be!==se.t&&e.setStyleProperty(H,"color",se.t=be),se},{e:void 0,t:void 0}),H})()})(),null),e.insert(J,(()=>{var re=e.memo(()=>!!(P.postFlightStatus&&P.postFlightStatus!=="skipped"));return()=>re()&&(()=>{var H=$f();return H.firstChild,e.insert(H,()=>P.postFlightStatus==="success"?"✅":"❌",null),e.effect(se=>{var ke=`Post-flight: ${P.postFlightStatus}`,be=P.postFlightStatus==="success"?"#34c759":"#ff3b30";return ke!==se.e&&e.setAttribute(H,"title",se.e=ke),be!==se.t&&e.setStyleProperty(H,"color",se.t=be),se},{e:void 0,t:void 0}),H})()})(),null),e.insert(J,(()=>{var re=e.memo(()=>!!P.error);return()=>re()&&(()=>{var H=_f();return e.insert(H,()=>P.error),H})()})(),null),e.insert(J,(()=>{var re=e.memo(()=>!!P.nextTask);return()=>re()&&(()=>{var H=Tf();return H.firstChild,e.insert(H,()=>P.nextTask,null),e.effect(()=>e.setAttribute(H,"title",t("gui.history.nextTaskTitle"))),H})()})(),null),e.effect(re=>{var H=P.startedAt+P.durationMs,se=P.status==="success"?"#34c759":"#ff3b30";return H!==re.e&&e.setAttribute(J,"key",re.e=H),se!==re.t&&e.setStyleProperty(Z,"color",re.t=se),re},{e:void 0,t:void 0}),J})())})(),null),c})()})(),null),e.insert(n,(()=>{var p=e.memo(()=>!!(Sr()&&_r()===r.name));return()=>p()&&(()=>{var c=Cf(),k=c.firstChild,R=k.firstChild,V=R.nextSibling;return e.insert(k,()=>r.name,V),V.addEventListener("mouseleave",P=>{P.target.style.color="#8e8e93"}),V.addEventListener("mouseenter",P=>{P.target.style.color="#ffffff"}),V.$$click=()=>gd(),e.insert(c,(()=>{var P=e.memo(()=>!!qa());return()=>P()&&(()=>{var J=ku();return e.insert(J,()=>t("gui.job.simulating")),J})()})(),null),e.insert(c,(()=>{var P=e.memo(()=>!!(!qa()&&ve()&&!ve().success));return()=>P()&&(()=>{var J=Af();return J.firstChild,e.insert(J,()=>ve().error??t("gui.job.simulationFailed"),null),J})()})(),null),e.insert(c,(()=>{var P=e.memo(()=>!!(!qa()&&ve()&&ve().success));return()=>P()&&(()=>{var J=zf();return e.insert(J,(()=>{var N=e.memo(()=>!!(Array.isArray(ve().warnings)&&ve().warnings.length>0));return()=>N()&&(()=>{var Z=Ef();return Z.firstChild,e.insert(Z,()=>ve().warnings.map(Ne=>`· ${Ne}`).join(" | "),null),Z})()})(),null),e.insert(J,()=>ve().tasks.map(N=>(()=>{var Z=Pf(),Ne=Z.firstChild,re=Ne.firstChild,H=re.nextSibling;H.nextSibling;var se=Ne.nextSibling;se.firstChild;var ke=se.nextSibling;ke.firstChild;var be=ke.nextSibling;return be.firstChild,e.insert(Ne,()=>(N.order??0)+1,H),e.insert(Ne,()=>N.trigger,null),e.insert(se,()=>N.name,null),e.insert(Z,(()=>{var de=e.memo(()=>!!N.workspace);return()=>de()&&(()=>{var W=Rf();return W.firstChild,e.insert(W,()=>N.workspace.name,null),W})()})(),ke),e.insert(Z,(()=>{var de=e.memo(()=>!!N.matrixParent);return()=>de()&&(()=>{var W=Lf();return W.firstChild,e.insert(W,()=>N.matrixParent,null),W})()})(),ke),e.insert(ke,()=>N.cwd||t("gui.common.projectDir"),null),e.insert(Z,(()=>{var de=e.memo(()=>!!N.roleScoped);return()=>de()&&(()=>{var W=Mf();return e.effect(()=>e.setAttribute(W,"title",`allowed=[${(N.roleScoped.allowed??[]).join(", ")}] · denied=[${(N.roleScoped.denied??[]).join(", ")}]`)),W})()})(),be),e.insert(Z,(()=>{var de=e.memo(()=>N.estimatedDurationSec!=null);return()=>de()&&(()=>{var W=Su();return e.insert(W,()=>t("gui.job.durationEst",{seconds:N.estimatedDurationSec})),W})()})(),be),e.insert(Z,(()=>{var de=e.memo(()=>N.estimatedTokens!=null);return()=>de()&&(()=>{var W=Su();return e.insert(W,()=>t("gui.job.tokensEst",{tokens:N.estimatedTokens})),W})()})(),be),e.insert(Z,(()=>{var de=e.memo(()=>N.estimatedCostUsd!=null);return()=>de()&&(()=>{var W=Df();return W.firstChild,e.insert(W,()=>Number(N.estimatedCostUsd).toFixed(4),null),W})()})(),be),e.insert(be,()=>N.command,null),e.insert(Z,(()=>{var de=e.memo(()=>!!N.preFlight);return()=>de()&&(()=>{var W=Ff();return W.firstChild,e.insert(W,()=>N.preFlight,null),W})()})(),null),e.insert(Z,(()=>{var de=e.memo(()=>!!N.postFlight);return()=>de()&&(()=>{var W=Of();return W.firstChild,e.insert(W,()=>N.postFlight,null),W})()})(),null),e.insert(Z,(()=>{var de=e.memo(()=>!!N.qualityGate);return()=>de()&&(()=>{var W=If();return W.firstChild,e.insert(W,()=>N.qualityGate,null),W})()})(),null),e.effect(()=>e.setAttribute(Z,"key",`${N.name}-${N.order}`)),Z})()),null),e.insert(J,(()=>{var N=e.memo(()=>!!(ve().totals&&(ve().totals.estimatedDurationSec!=null||ve().totals.estimatedTokens!=null)));return()=>N()&&(()=>{var Z=jf();return e.insert(Z,()=>t("gui.job.totalsLine",{duration:ve().totals.estimatedDurationSec??"—",tokens:ve().totals.estimatedTokens??"—",cost:ve().totals.estimatedCostUsd!=null?` · ~$${Number(ve().totals.estimatedCostUsd).toFixed(4)}`:""})),Z})()})(),null),J})()})(),null),c})()})(),null),e.effect(p=>{var c=`background:#252526;border-radius:10px;padding:16px;margin-bottom:12px;display:flex;flex-direction:column;gap:10px;border:1px solid ${Ye()?"rgba(135, 206, 250, 0.4)":"#333"}`,k=t("gui.job.runsTitle"),R=t("gui.job.runTitle",{name:r.name}),V=Pt(),P=!!r.orphaned,J=r.orphaned?t("gui.job.pauseUnavailable",{name:r.name}):r.paused?t("gui.job.resumeTitle",{name:r.name}):t("gui.job.pauseTitle",{name:r.name}),N=Pt(),Z=t("gui.job.logsTitle",{name:r.name}),Ne=Pt(),re=t("gui.job.dryRunTitle",{name:r.name}),H=Pt(Sr()&&_r()===r.name),se=t("gui.job.historyTitle",{name:r.name}),ke=Pt(lo()===r.name),be=t("gui.job.editTitle",{name:r.name}),de=Pt();return p.e=e.style(n,c,p.e),k!==p.t&&e.setAttribute(Ie,"title",p.t=k),R!==p.a&&e.setAttribute(Le,"title",p.a=R),p.o=e.style(Le,V,p.o),P!==p.i&&(Ge.disabled=p.i=P),J!==p.n&&e.setAttribute(Ge,"title",p.n=J),p.s=e.style(Ge,N,p.s),Z!==p.h&&e.setAttribute(Rt,"title",p.h=Z),p.r=e.style(Rt,Ne,p.r),re!==p.d&&e.setAttribute(je,"title",p.d=re),p.l=e.style(je,H,p.l),se!==p.u&&e.setAttribute(wt,"title",p.u=se),p.c=e.style(wt,ke,p.c),be!==p.w&&e.setAttribute(Lt,"title",p.w=be),p.m=e.style(Lt,de,p.m),p},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0}),n})()};try{return l.add(ol.Panel,{id:"scheduler-jobs",region:"side",list:()=>[{id:"jobs",title:t("gui.jobsTitle"),pinned:!0}],render:()=>e.createComponent(a.ErrorBoundary,{fallback:i=>(()=>{var r=$u();return e.insert(r,()=>t("gui.uiError",{message:i.message})),r})(),get children(){var i=Nf(),r=i.firstChild,n=r.nextSibling,u=n.firstChild,ee=u.firstChild,we=ee.nextSibling,le=we.nextSibling,vt=u.nextSibling,Ie=vt.firstChild,Jt=Ie.firstChild,Li=Jt.firstChild,Le=Jt.nextSibling,Ge=Le.nextSibling,Rt=Ge.nextSibling,je=Ie.nextSibling,wt=je.firstChild,Lt=wt.nextSibling,p=je.nextSibling,c=p.firstChild,k=p.nextSibling,R=k.nextSibling,V=R.firstChild,P=n.nextSibling,J=P.firstChild,N=J.nextSibling,Z=N.nextSibling,Ne=P.nextSibling,re=Ne.firstChild,H=re.nextSibling,se=H.nextSibling,ke=Ne.nextSibling,be=ke.firstChild,de=be.firstChild,W=de.nextSibling,bd=W.firstChild,Za=ke.nextSibling,hd=Za.firstChild,xd=hd.firstChild,Qa=xd.nextSibling,vd=Qa.firstChild,wd=vd.nextSibling,Ya=Za.nextSibling,bp=Ya.firstChild,kd=bp.firstChild,Sd=kd.firstChild,$d=Sd.nextSibling,hp=$d.nextSibling,_d=Ya.nextSibling,Td=_d.firstChild,xp=Td.firstChild,vp=Td.nextSibling,Cd=vp.firstChild,Ad=Cd.firstChild,zd=Ad.firstChild,Ed=Cd.nextSibling,Pd=Ed.firstChild,Ja=Pd.nextSibling,wp=Ja.nextSibling,kp=Ed.nextSibling,Rd=kp.firstChild,Xa=Rd.nextSibling,Sp=Xa.nextSibling,el=_d.nextSibling,$p=el.firstChild,tl=$p.firstChild,_p=tl.firstChild,Ld=_p.nextSibling,Tp=Ld.nextSibling,Er=tl.nextSibling,nn=el.nextSibling,Cp=nn.firstChild;return e.insert(ee,(()=>{var m=e.memo(()=>!!Ye());return()=>m()?`❄️ ${va()} ❄️`:va()})()),e.insert(le,()=>t("gui.metricsTotalsLine",{total:In().total,success:In().success,error:In().error})),Ie.addEventListener("change",async m=>{const b=En(m.currentTarget.value,"ru");co(b),go(b),await Et({locale:b})}),e.insert(Jt,()=>t("gui.languageAuto"),null),e.insert(Le,()=>t("gui.languageRu")),e.insert(Ge,()=>t("gui.languageEn")),e.insert(Rt,()=>t("gui.languageZh")),je.addEventListener("change",m=>Vi(m.currentTarget.value)),e.insert(wt,()=>t("gui.workspaceAll")),e.insert(je,()=>D().map(m=>(()=>{var b=_u(),E=b.firstChild;return e.insert(b,()=>m.name,null),e.effect(()=>e.setAttribute(b,"key",m.id)),e.effect(()=>b.value=m.id),b})()),Lt),e.insert(Lt,()=>t("gui.workspaceNone")),p.$$click=()=>Vu(m=>!m),e.insert(p,yl,null),e.insert(p,()=>bi()?" 🔒":"",null),k.addEventListener("mouseleave",m=>{const b=m.currentTarget;b.style.borderColor="#333",b.style.background="#1e1e1e",b.style.color="#e0e0e0"}),k.addEventListener("mouseenter",m=>{const b=m.currentTarget;b.style.borderColor="#5ac8fa",b.style.background="rgba(90,200,250,0.12)",b.style.color="#5ac8fa"}),k.$$click=async()=>{const m=window.open("","_blank");let b=3782;try{const _=await f.get_dashboard_port({});_&&typeof _.port=="number"&&_.port>0&&(b=_.port)}catch(_){console.warn("[scheduler] Не удалось получить порт дашборда:",_)}const E="http://localhost:"+b;m?m.location.href=E:window.open(E,"_blank")},e.insert(k,()=>t("gui.openDashboard")),V.addEventListener("change",m=>{Rc(m.currentTarget.checked)}),e.insert(R,()=>t("gui.winterMode"),null),e.insert(i,(()=>{var m=e.memo(()=>!!oo());return()=>m()&&(()=>{var b=qf(),E=b.firstChild,_=E.firstChild,q=_.nextSibling,K=E.nextSibling,U=K.nextSibling;return e.insert(_,()=>t("gui.profilesHeading")),q.$$click=()=>{Hc()},e.insert(q,()=>t("gui.createProfile")),e.insert(b,(()=>{var T=e.memo(()=>!!bi());return()=>T()&&(()=>{var C=Hf();return e.insert(C,()=>t("gui.profileEnvLocked")),C})()})(),K),e.insert(K,()=>Wu().map(T=>(()=>{var C=Uf(),w=C.firstChild,L=w.nextSibling,Q=L.nextSibling;return e.insert(w,()=>T.name,null),e.insert(w,(()=>{var O=e.memo(()=>!!T.isDefault);return()=>O()?t("gui.defaultSuffix"):""})(),null),e.insert(L,(()=>{var O=e.memo(()=>!!T.port);return()=>O()?t("gui.profilePort",{port:T.port}):t("gui.profilePortDefault")})()),e.insert(Q,()=>T.dir),e.insert(C,(()=>{var O=e.memo(()=>!!T.active);return()=>O()?(()=>{var A=Wf();return e.insert(A,()=>t("gui.profileActive")),A})():(()=>{var A=Tu();return A.$$click=()=>{qc(T.name)},e.insert(A,()=>t("gui.profileSwitch")),e.effect(M=>{var z=hi()||bi(),F=`padding:2px 8px;border-radius:6px;border:1px solid #333;background:#262626;color:#e0e0e0;font-size:11px;cursor:${hi()||bi()?"not-allowed":"pointer"};opacity:${bi()?.5:1}`;return z!==M.e&&(A.disabled=M.e=z),M.t=e.style(A,F,M.t),M},{e:void 0,t:void 0}),A})()})(),null),e.insert(C,(()=>{var O=e.memo(()=>!T.isDefault&&!T.active);return()=>O()&&(()=>{var A=Tu();return A.$$click=()=>{Uc(T.name)},e.insert(A,()=>t("gui.profileDelete")),e.effect(M=>{var z=hi(),F=`padding:2px 8px;border-radius:6px;border:1px solid rgba(255,59,48,0.4);background:rgba(255,59,48,0.12);color:#ff3b30;font-size:11px;cursor:${hi()?"not-allowed":"pointer"}`;return z!==M.e&&(A.disabled=M.e=z),M.t=e.style(A,F,M.t),M},{e:void 0,t:void 0}),A})()})(),null),e.effect(O=>{var A=`font-weight:${T.active?700:400};color:${T.active?"#bf5af2":"#e0e0e0"}`,M=T.dir;return O.e=e.style(w,A,O.e),M!==O.t&&e.setAttribute(Q,"title",O.t=M),O},{e:void 0,t:void 0}),C})())),e.insert(U,()=>t("gui.profilesHint")),e.effect(T=>{var C=hi(),w=`padding:4px 10px;border-radius:6px;border:1px solid #333;background:#262626;color:#e0e0e0;font-size:11px;cursor:${hi()?"not-allowed":"pointer"}`;return C!==T.e&&(q.disabled=T.e=C),T.t=e.style(q,w,T.t),T},{e:void 0,t:void 0}),b})()})(),P),J.$$click=jc,e.insert(J,(()=>{var m=e.memo(()=>!!en());return()=>m()?t("gui.exportBusy"):t("gui.export")})()),N.addEventListener("change",Nc),Z.$$click=()=>document.querySelector('input[type="file"]')?.click(),e.insert(Z,(()=>{var m=e.memo(()=>!!tn());return()=>m()?t("gui.importBusy"):t("gui.import")})()),e.insert(re,()=>t("gui.maxConcurrentLabel")),H.addEventListener("change",m=>Pc(Number(m.currentTarget.value)||1)),e.insert(se,()=>t("gui.zeroUnlimited")),be.$$click=()=>oc(!Hn()),e.insert(de,()=>t("gui.notifications")),e.insert(W,(()=>{var m=e.memo(()=>!!v());return()=>m()?e.memo(()=>!!qn())()?t("gui.notifyOnlyErrors"):t("gui.notifyAllRuns"):t("gui.notifyDisabled")})(),bd),e.insert(bd,()=>Hn()?"▾":"▴"),e.insert(ke,(()=>{var m=e.memo(()=>!Hn());return()=>m()&&(()=>{var b=Bf(),E=b.firstChild,_=E.firstChild,q=E.nextSibling,K=q.firstChild,U=q.nextSibling,T=U.firstChild,C=T.firstChild,w=T.nextSibling,L=w.nextSibling,Q=L.nextSibling,O=Q.firstChild,A=O.nextSibling,M=A.nextSibling,z=M.nextSibling,F=z.nextSibling,oe=F.nextSibling,ue=Q.nextSibling,me=U.nextSibling,ce=me.firstChild,ze=ce.firstChild,$=ce.nextSibling,te=$.nextSibling,fe=te.nextSibling,Me=fe.firstChild,Se=Me.nextSibling,qe=Se.nextSibling,kt=qe.firstChild,Xt=qe.nextSibling,St=Xt.firstChild,an=fe.nextSibling,Mi=me.nextSibling,ei=Mi.firstChild,Di=ei.firstChild,ti=ei.nextSibling,tt=ti.firstChild,ln=ti.nextSibling,ii=Mi.nextSibling,$t=ii.firstChild,Fi=$t.firstChild,Mt=$t.nextSibling,sn=Mt.firstChild,ri=sn.nextSibling,dn=ri.nextSibling,oi=dn.nextSibling,un=Mt.nextSibling,ni=ii.nextSibling,cn=ni.firstChild,Ve=cn.nextSibling,it=Ve.nextSibling,pn=it.nextSibling,Pr=ni.nextSibling,gn=Pr.firstChild,_t=gn.nextSibling,rt=_t.nextSibling,Oi=rt.nextSibling,Rr=Pr.nextSibling,Lr=Rr.firstChild,mn=Lr.firstChild,il=mn.nextSibling,fn=Lr.nextSibling,Mr=fn.firstChild,Dt=Mr.firstChild,Ft=Dt.nextSibling,ai=Ft.nextSibling,Ot=Mr.nextSibling,yn=Ot.nextSibling,Dr=Rr.nextSibling,li=Dr.firstChild,Ii=li.nextSibling,Fr=Ii.firstChild,ji=Ii.nextSibling,Or=ji.firstChild,Tt=Or.firstChild,Ir=Or.nextSibling,Ni=Ir.firstChild,jr=Ir.nextSibling,si=jr.nextSibling,bn=ji.nextSibling,Nr=Dr.nextSibling,qr=Nr.firstChild,di=qr.nextSibling,qi=di.firstChild,It=di.nextSibling,ui=It.firstChild,Hr=ui.firstChild,hn=Hr.nextSibling,ot=ui.nextSibling,rl=ot.nextSibling,xn=It.nextSibling,Hi=Nr.nextSibling,ci=Hi.firstChild,Ur=ci.nextSibling,Wr=Ur.firstChild,jt=Wr.nextSibling,Br=jt.firstChild,vn=Br.nextSibling,Gr=vn.nextSibling,Vr=Gr.nextSibling,Kr=jt.nextSibling,Nt=Kr.nextSibling,Zr=Nt.firstChild,wn=Zr.nextSibling,Ui=Ur.nextSibling,qt=Ui.firstChild,Ht=qt.nextSibling,pi=Ht.nextSibling,gi=pi.nextSibling,kn=gi.nextSibling,Wi=kn.nextSibling,Ut=Ui.nextSibling,Ke=Ut.firstChild,s=Ke.nextSibling,d=s.firstChild,y=d.nextSibling,g=Ut.nextSibling,x=g.nextSibling,h=x.nextSibling,I=Hi.nextSibling,B=I.firstChild,Ee=B.firstChild,ae=B.nextSibling,De=ae.firstChild,pe=De.nextSibling,X=pe.nextSibling,Pe=ae.nextSibling,$e=Pe.firstChild,Ze=$e.firstChild,Ue=$e.nextSibling,Wt=Ue.firstChild,mi=Ue.nextSibling,Qr=I.nextSibling,nt=Qr.firstChild,Bt=nt.nextSibling,_e=Bt.nextSibling;return _.addEventListener("change",o=>{Tl(o.currentTarget.checked),j()}),e.insert(E,()=>t("gui.notifyEnable"),null),K.addEventListener("change",o=>{Cl(o.currentTarget.checked),j()}),e.insert(q,()=>t("gui.notifyOnlyOnError"),null),C.addEventListener("change",o=>{Al(o.currentTarget.checked),j()}),e.insert(T,()=>t("gui.webhookLabel"),null),w.addEventListener("change",()=>{j()}),w.$$input=o=>El(o.currentTarget.value),e.insert(L,()=>t("gui.webhookPostHint",{payload:"{ content, text }"})),e.insert(O,()=>t("gui.timeoutMs")),A.addEventListener("change",()=>{j()}),A.$$input=o=>Ll(Number(o.currentTarget.value)||1e4),e.insert(M,()=>t("gui.retryCount")),z.addEventListener("change",()=>{j()}),z.$$input=o=>Dl(Number(o.currentTarget.value)||0),e.insert(F,()=>t("gui.retryDelayMs")),oe.addEventListener("change",()=>{j()}),oe.$$input=o=>Ol(Number(o.currentTarget.value)||1e3),e.insert(ue,()=>t("gui.retryHint")),ze.addEventListener("change",o=>{ms(o.currentTarget.checked),j()}),$.addEventListener("change",()=>{j()}),$.$$input=o=>ys(o.currentTarget.value),te.addEventListener("change",()=>{j()}),te.$$input=o=>hs(o.currentTarget.value),e.insert(Me,()=>t("gui.parseModeLabel")),Se.addEventListener("change",o=>{vs(o.currentTarget.value),j()}),kt.addEventListener("change",o=>{ks(o.currentTarget.checked),j()}),e.insert(qe,()=>t("gui.silent"),null),St.addEventListener("change",o=>{$s(o.currentTarget.checked),j()}),e.insert(Xt,()=>t("gui.dashboardLink"),null),e.insert(an,()=>t("gui.botTokenEnvHint")),Di.addEventListener("change",o=>{_s(o.currentTarget.checked),j()}),e.insert(ei,()=>t("gui.nativeNotifications"),null),tt.addEventListener("change",o=>{Cs(o.currentTarget.checked),j()}),e.insert(ti,()=>t("gui.withSound"),null),e.insert(ln,()=>t("gui.nativeHint")),Fi.addEventListener("change",o=>{As(o.currentTarget.checked),j()}),e.insert($t,()=>t("gui.quietHours"),null),e.insert(sn,()=>t("gui.quietFrom")),ri.addEventListener("change",()=>{j()}),ri.$$input=o=>Es(o.currentTarget.value),e.insert(dn,()=>t("gui.quietTo")),oi.addEventListener("change",()=>{j()}),oi.$$input=o=>Rs(o.currentTarget.value),e.insert(un,()=>t("gui.quietHoursHint")),e.insert(cn,()=>t("gui.taskFiltersHeading")),Ve.addEventListener("change",()=>{j()}),Ve.$$input=o=>Ul(o.currentTarget.value),it.addEventListener("change",()=>{j()}),it.$$input=o=>Bl(o.currentTarget.value),e.insert(pn,()=>t("gui.filterHint")),e.insert(gn,()=>t("gui.templatesHeading")),_t.addEventListener("change",()=>{j()}),_t.$$input=o=>jl(o.currentTarget.value),rt.addEventListener("change",()=>{j()}),rt.$$input=o=>ql(o.currentTarget.value),e.insert(Oi,()=>t("gui.templateHint")),e.insert(mn,()=>t("gui.secrets")),e.insert(il,()=>sa().length),Dt.$$input=o=>Ms(o.currentTarget.value),Ft.$$input=o=>Ds(o.currentTarget.value),ai.$$click=()=>{Cc()},e.insert(ai,(()=>{var o=e.memo(()=>!!da());return()=>o()?t("gui.saving"):t("gui.save")})()),e.insert(Ot,()=>sa().map(o=>(()=>{var Y=Gf(),at=Y.firstChild,Te=at.nextSibling,He=Te.firstChild,We=Te.nextSibling;return e.insert(at,()=>o.name),e.insert(Te,()=>o.preview,null),We.$$click=()=>{Ac(o.name)},e.effect(lt=>{var Fe=o.name,st=t("gui.delete");return Fe!==lt.e&&e.setAttribute(Y,"key",lt.e=Fe),st!==lt.t&&e.setAttribute(We,"title",lt.t=st),lt},{e:void 0,t:void 0}),Y})()),null),e.insert(Ot,(()=>{var o=e.memo(()=>sa().length===0);return()=>o()&&(()=>{var Y=Cu();return e.insert(Y,()=>t("gui.secretsEmpty")),Y})()})(),null),e.insert(yn,()=>t("gui.secretsUsage",{secretRef:"{secret:NAME}"})),e.insert(li,()=>t("gui.matrixNotifyHeading")),Fr.addEventListener("change",o=>{Gl(o.currentTarget.checked),j()}),e.insert(Ii,()=>t("gui.matrixNotifyEnable"),null),Tt.addEventListener("change",o=>{Kl(o.currentTarget.checked),j()}),Ni.addEventListener("change",o=>{Ql(o.currentTarget.checked),j()}),e.insert(Ir,()=>t("gui.matrixAllFailed"),null),e.insert(jr,()=>t("gui.matrixStuckMinutes")),si.addEventListener("change",()=>{j()}),si.$$input=o=>Jl(Number(o.currentTarget.value)||0),e.insert(bn,()=>t("gui.matrixStuckHint")),e.insert(qr,()=>t("gui.digestHeading")),qi.addEventListener("change",o=>{Xl(o.currentTarget.checked),j()}),e.insert(di,()=>t("gui.digestEnable"),null),ui.addEventListener("change",o=>{ts(o.currentTarget.value==="weekly"?"weekly":"daily"),j()}),e.insert(Hr,()=>t("gui.digestDaily")),e.insert(hn,()=>t("gui.digestWeekly")),ot.addEventListener("change",()=>{j()}),ot.$$input=o=>rs(o.currentTarget.value),e.insert(rl,(()=>{var o=e.memo(()=>!!Un());return()=>o()?t("gui.digestLastSent",{when:new Date(Un()).toLocaleString()}):t("gui.digestNeverSent")})()),e.insert(xn,()=>t("gui.digestHint")),e.insert(ci,()=>t("localAi.title")),e.insert(Wr,()=>t("localAi.mode")),jt.addEventListener("change",o=>{Wn(o.currentTarget.value),mt("idle"),gt(null),j()}),e.insert(Br,()=>t("localAi.mode.off")),e.insert(vn,()=>t("localAi.mode.rules")),e.insert(Gr,()=>t("localAi.mode.llm")),e.insert(Vr,()=>t("localAi.mode.auto")),e.insert(Kr,()=>t("localAi.fallback")),Nt.addEventListener("change",o=>{Xn(o.currentTarget.value==="notify"?"notify":"rules"),j()}),e.insert(Zr,()=>t("localAi.fallback.rules")),e.insert(wn,()=>t("localAi.fallback.notify")),qt.addEventListener("change",()=>{j()}),qt.$$input=o=>{Gn(o.currentTarget.value),mt("idle"),gt(null)},Ht.addEventListener("change",()=>{j()}),Ht.$$input=o=>{Vn(o.currentTarget.value),mt("idle"),gt(null)},e.insert(pi,()=>t("localAi.timeout")),gi.addEventListener("change",o=>{Zn(Math.max(1e3,Math.min(12e4,Math.floor(Number(o.currentTarget.value)||6e4)))),j()}),e.insert(kn,()=>t("localAi.threshold")),Wi.addEventListener("change",o=>{const Y=Number(o.currentTarget.value);Yn(Number.isFinite(Y)?Math.max(0,Math.min(1,Y)):.6),j()}),Ke.$$click=async()=>{os(!0),mt("checking"),gt(null);try{const o=await f.test_local_ai({mode:Ji(),baseUrl:(Bn()||"").trim(),model:(fo()||"").trim(),timeoutMs:Math.max(1e3,Math.min(12e4,Math.floor(Number(Kn())||6e4))),fallback:Jn(),confidenceThreshold:Qn()}),Y=o?.result;o?.success?(mt("ok"),gt(t("localAi.testOk",{model:String(Y?.model??fo()),latency:String(Y?.latencyMs??0)}))):(mt("error"),gt(t("localAi.testFailed",{reason:String(Y?.error??Y?.failure??"unknown")})))}catch(o){console.error("RPC Error (test_local_ai):",o),mt("error"),gt(t("localAi.testFailed",{reason:ie(o)}))}finally{os(!1)}},e.insert(Ke,(()=>{var o=e.memo(()=>!!yo());return()=>o()?t("localAi.testing"):t("localAi.test")})()),e.insert(y,lc),e.insert(Ut,(()=>{var o=e.memo(()=>!!ns());return()=>o()&&(()=>{var Y=Cu();return e.insert(Y,ns),Y})()})(),null),e.insert(g,()=>t("localAi.hint")),x.$$click=()=>{bo(1),ta("ollama"),ls(""),oa(null),ea(!0)},e.insert(x,()=>t("localAi.wizard")),e.insert(Hi,(()=>{var o=e.memo(()=>Ji()==="llm"||Ji()==="auto");return()=>o()&&(()=>{var Y=Vf();return e.insert(Y,()=>t("localAi.asyncHint")),Y})()})(),h),e.insert(h,()=>t("localAi.rulesHint")),Ee.addEventListener("change",o=>{na(o.currentTarget.checked),j()}),e.insert(B,(()=>{var o=e.memo(()=>!!Zt());return()=>o()?t("shadow.enabled"):t("shadow.disabled")})(),null),e.insert(De,()=>t("gui.days")),pe.addEventListener("change",o=>{us(Math.max(1,Math.min(365,Math.floor(Number(o.currentTarget.value)||14)))),j()}),e.insert(X,(()=>{var o=e.memo(()=>!!cs());return()=>o()?t("shadow.active",{days:aa()}):t("shadow.expired")})()),e.insert($e,()=>xo()?.total??0,Ze),e.insert($e,()=>t("shadow.total",{count:xo()?.total??0}).split(":")[0],null),e.insert(Ue,()=>xo()?.skips??0,Wt),e.insert(Ue,()=>t("shadow.skips",{count:xo()?.skips??0}).split(":")[0],null),mi.$$click=async()=>{gs(!0);try{await f.reset_shadow_report({}),ps({total:0,skips:0,active:Zt()})}catch(o){console.error("RPC Error (reset_shadow_report):",o)}finally{gs(!1)}},e.insert(mi,()=>t("shadow.reset")),nt.$$click=()=>{zc()},e.insert(nt,(()=>{var o=e.memo(()=>!!mo());return()=>o()?t("gui.sending"):t("gui.sendTestNotification")})()),Bt.$$click=()=>{Ec()},e.insert(Bt,(()=>{var o=e.memo(()=>!!vo());return()=>o()?t("gui.sending"):t("gui.sendDigestNow")})()),e.insert(_e,()=>t("gui.digestChannels")),e.effect(o=>{var Y=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,at=!v(),Te=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,He=!v(),We=!v()||!Oe(),lt=`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;opacity:${v()&&Oe()?1:.5}`,Fe=!v()||!Oe(),st=!v()||!Oe(),Sn=!v()||!Oe(),$n=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,_n=!v(),fi=!v()||!Ce(),Yr=t("gui.botTokenPlaceholder"),Bi=`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;opacity:${v()&&Ce()?1:.5}`,Jr=!v()||!Ce(),Tn=t("gui.chatIdPlaceholder"),Xr=`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;opacity:${v()&&Ce()?1:.5}`,Cn=`display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()&&Ce()?1:.5}`,ge=!v()||!Ce(),An=!v()||!Ce(),eo=!v()||!Ce(),zn=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,Md=!v(),Ap=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()&&Je()?1:.5}`,Dd=!v()||!Je(),zp=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,Fd=!v(),Ep=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()&&Xi()?1:.5}`,Od=!v()||!Xi(),Id=!v()||!Xi(),jd=!v(),Nd=t("gui.filterIncludePlaceholder"),Pp=`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;opacity:${v()?1:.5}`,qd=!v(),Hd=t("gui.filterExcludePlaceholder"),Rp=`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;opacity:${v()?1:.5}`,Ud=!v(),Wd=t("gui.templateSuccessPlaceholder"),Lp=`display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;opacity:${v()?1:.5}`,Bd=!v(),Gd=t("gui.templateErrorPlaceholder"),Mp=`display:block;width:100%;box-sizing:border-box;padding:8px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;opacity:${v()?1:.5}`,Vd=t("gui.secretNamePlaceholder"),Kd=t("gui.secretValuePlaceholder"),Zd=da()||!wo().trim()||!ko(),Dp=da()||!wo().trim()||!ko()?"padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6":"padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1",Fp=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,Qd=!v(),Op=`display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()&&wi()?1:.5}`,Yd=!v()||!wi(),Jd=!v()||!wi(),Xd=!v()||!wi(),Ip=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,eu=!v(),jp=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()&&Yi()?1:.5}`,tu=!v()||!Yi(),iu=!v()||!Yi(),Np=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()?1:.5}`,ru=!v(),ou=!v(),qp=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()?1:.5}`,nu=!v(),au=t("localAi.modelPlaceholder"),lu=!v(),su=!v(),du=!v(),uu=yo()||!v(),Hp=`padding:4px 8px;background:#3a6ea5;color:white;border:none;border-radius:4px;cursor:${yo()?"not-allowed":"pointer"};font-size:12px;opacity:${yo()?.6:1}`,Up=`width:7px;height:7px;border-radius:50%;background:${ds()}`,Wp=`color:${ds()}`,cu=!v(),Bp=`padding:4px 8px;background:#546e7a;color:white;border:none;border-radius:4px;cursor:${v()?"pointer":"not-allowed"};font-size:12px;margin-top:6px`,Gp=`display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;opacity:${v()?1:.5}`,pu=!v(),Vp=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#b0b0b0;opacity:${v()&&Zt()?1:.5}`,gu=!v()||!Zt(),Kp=`display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:${Zt()?"#e0e0e0":"#666666"}`,mu=la(),Zp=`padding:4px 8px;background:#2d7d46;color:white;border:none;border-radius:4px;cursor:${la()?"not-allowed":"pointer"};font-size:12px;opacity:${la()?.6:1}`,fu=mo()||!(Oe()||Ce()||Je()),Qp=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${mo()||!(Oe()||Ce()||Je())?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${mo()||!(Oe()||Ce()||Je())?.6:1}`,yu=vo()||!(Oe()||Ce()||Je()),Yp=`padding:6px 12px;background:#2d7d46;color:white;border:none;border-radius:6px;cursor:${vo()||!(Oe()||Ce()||Je())?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${vo()||!(Oe()||Ce()||Je())?.6:1}`;return o.e=e.style(q,Y,o.e),at!==o.t&&(K.disabled=o.t=at),o.a=e.style(T,Te,o.a),He!==o.o&&(C.disabled=o.o=He),We!==o.i&&(w.disabled=o.i=We),o.n=e.style(w,lt,o.n),Fe!==o.s&&(A.disabled=o.s=Fe),st!==o.h&&(z.disabled=o.h=st),Sn!==o.r&&(oe.disabled=o.r=Sn),o.d=e.style(ce,$n,o.d),_n!==o.l&&(ze.disabled=o.l=_n),fi!==o.u&&($.disabled=o.u=fi),Yr!==o.c&&e.setAttribute($,"placeholder",o.c=Yr),o.w=e.style($,Bi,o.w),Jr!==o.m&&(te.disabled=o.m=Jr),Tn!==o.f&&e.setAttribute(te,"placeholder",o.f=Tn),o.y=e.style(te,Xr,o.y),o.g=e.style(fe,Cn,o.g),ge!==o.p&&(Se.disabled=o.p=ge),An!==o.b&&(kt.disabled=o.b=An),eo!==o.T&&(St.disabled=o.T=eo),o.A=e.style(ei,zn,o.A),Md!==o.O&&(Di.disabled=o.O=Md),o.I=e.style(ti,Ap,o.I),Dd!==o.S&&(tt.disabled=o.S=Dd),o.W=e.style($t,zp,o.W),Fd!==o.C&&(Fi.disabled=o.C=Fd),o.B=e.style(Mt,Ep,o.B),Od!==o.v&&(ri.disabled=o.v=Od),Id!==o.k&&(oi.disabled=o.k=Id),jd!==o.x&&(Ve.disabled=o.x=jd),Nd!==o.j&&e.setAttribute(Ve,"placeholder",o.j=Nd),o.q=e.style(Ve,Pp,o.q),qd!==o.z&&(it.disabled=o.z=qd),Hd!==o.P&&e.setAttribute(it,"placeholder",o.P=Hd),o.H=e.style(it,Rp,o.H),Ud!==o.F&&(_t.disabled=o.F=Ud),Wd!==o.M&&e.setAttribute(_t,"placeholder",o.M=Wd),o.D=e.style(_t,Lp,o.D),Bd!==o.R&&(rt.disabled=o.R=Bd),Gd!==o.E&&e.setAttribute(rt,"placeholder",o.E=Gd),o.L=e.style(rt,Mp,o.L),Vd!==o.N&&e.setAttribute(Dt,"placeholder",o.N=Vd),Kd!==o.G&&e.setAttribute(Ft,"placeholder",o.G=Kd),Zd!==o.U&&(ai.disabled=o.U=Zd),o.K=e.style(ai,Dp,o.K),o.V=e.style(Ii,Fp,o.V),Qd!==o.Y&&(Fr.disabled=o.Y=Qd),o.J=e.style(ji,Op,o.J),Yd!==o.Q&&(Tt.disabled=o.Q=Yd),Jd!==o.Z&&(Ni.disabled=o.Z=Jd),Xd!==o.X&&(si.disabled=o.X=Xd),o._=e.style(di,Ip,o._),eu!==o.$&&(qi.disabled=o.$=eu),o.te=e.style(It,jp,o.te),tu!==o.tt&&(ui.disabled=o.tt=tu),iu!==o.ta&&(ot.disabled=o.ta=iu),o.to=e.style(Ur,Np,o.to),ru!==o.ti&&(jt.disabled=o.ti=ru),ou!==o.tn&&(Nt.disabled=o.tn=ou),o.ts=e.style(Ui,qp,o.ts),nu!==o.th&&(qt.disabled=o.th=nu),au!==o.tr&&e.setAttribute(Ht,"placeholder",o.tr=au),lu!==o.td&&(Ht.disabled=o.td=lu),su!==o.tl&&(gi.disabled=o.tl=su),du!==o.tu&&(Wi.disabled=o.tu=du),uu!==o.tc&&(Ke.disabled=o.tc=uu),o.tw=e.style(Ke,Hp,o.tw),o.tm=e.style(d,Up,o.tm),o.tf=e.style(y,Wp,o.tf),cu!==o.ty&&(x.disabled=o.ty=cu),o.tg=e.style(x,Bp,o.tg),o.tp=e.style(B,Gp,o.tp),pu!==o.tb&&(Ee.disabled=o.tb=pu),o.tT=e.style(ae,Vp,o.tT),gu!==o.tA&&(pe.disabled=o.tA=gu),o.tO=e.style(Pe,Kp,o.tO),mu!==o.tI&&(mi.disabled=o.tI=mu),o.tS=e.style(mi,Zp,o.tS),fu!==o.tW&&(nt.disabled=o.tW=fu),o.tC=e.style(nt,Qp,o.tC),yu!==o.tB&&(Bt.disabled=o.tB=yu),o.tv=e.style(Bt,Yp,o.tv),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0,S:void 0,W:void 0,C:void 0,B:void 0,v:void 0,k:void 0,x:void 0,j:void 0,q:void 0,z:void 0,P:void 0,H:void 0,F:void 0,M:void 0,D:void 0,R:void 0,E:void 0,L:void 0,N:void 0,G:void 0,U:void 0,K:void 0,V:void 0,Y:void 0,J:void 0,Q:void 0,Z:void 0,X:void 0,_:void 0,$:void 0,te:void 0,tt:void 0,ta:void 0,to:void 0,ti:void 0,tn:void 0,ts:void 0,th:void 0,tr:void 0,td:void 0,tl:void 0,tu:void 0,tc:void 0,tw:void 0,tm:void 0,tf:void 0,ty:void 0,tg:void 0,tp:void 0,tb:void 0,tT:void 0,tA:void 0,tO:void 0,tI:void 0,tS:void 0,tW:void 0,tC:void 0,tB:void 0,tv:void 0}),e.effect(()=>_.checked=v()),e.effect(()=>K.checked=qn()),e.effect(()=>C.checked=Oe()),e.effect(()=>w.value=zl()||""),e.effect(()=>A.value=Rl()),e.effect(()=>z.value=Ml()),e.effect(()=>oe.value=Fl()),e.effect(()=>ze.checked=Ce()),e.effect(()=>$.value=fs()||""),e.effect(()=>te.value=bs()||""),e.effect(()=>Se.value=xs()),e.effect(()=>kt.checked=ws()),e.effect(()=>St.checked=Ss()),e.effect(()=>Di.checked=Je()),e.effect(()=>tt.checked=Ts()),e.effect(()=>Fi.checked=Xi()),e.effect(()=>ri.value=zs()),e.effect(()=>oi.value=Ps()),e.effect(()=>Ve.value=Hl()||""),e.effect(()=>it.value=Wl()||""),e.effect(()=>_t.value=Il()||""),e.effect(()=>rt.value=Nl()||""),e.effect(()=>Dt.value=wo()),e.effect(()=>Ft.value=ko()),e.effect(()=>Fr.checked=wi()),e.effect(()=>Tt.checked=Vl()),e.effect(()=>Ni.checked=Zl()),e.effect(()=>si.value=Yl()),e.effect(()=>qi.checked=Yi()),e.effect(()=>ui.value=es()),e.effect(()=>ot.value=is()),e.effect(()=>jt.value=Ji()),e.effect(()=>Nt.value=Jn()),e.effect(()=>qt.value=Bn()),e.effect(()=>Ht.value=fo()),e.effect(()=>gi.value=Kn()),e.effect(()=>Wi.value=Qn()),e.effect(()=>Ee.checked=Zt()),e.effect(()=>pe.value=aa()),b})()})(),null),hd.$$click=()=>xc(!xa()),e.insert(xd,()=>t("gui.historyHeading")),e.insert(Qa,(()=>{var m=e.memo(()=>So()>0);return()=>m()?t("gui.historyOlderThan",{days:So()}):t("gui.historyNoExpiry")})(),vd),e.insert(Qa,(()=>{var m=e.memo(()=>_o()>0);return()=>m()?t("gui.historyUpToRecords",{count:_o()}):t("gui.historyNoLimit")})(),wd),e.insert(wd,()=>xa()?"▾":"▴"),e.insert(Za,(()=>{var m=e.memo(()=>!xa());return()=>m()&&(()=>{var b=Kf(),E=b.firstChild,_=E.firstChild,q=_.nextSibling,K=q.nextSibling,U=E.nextSibling,T=U.firstChild,C=T.nextSibling,w=C.nextSibling,L=U.nextSibling,Q=L.firstChild,O=L.nextSibling,A=O.firstChild,M=A.nextSibling;return e.insert(_,()=>t("gui.historyDeleteOlderLabel")),q.addEventListener("change",z=>{$o(Math.max(0,Math.floor(Number(z.currentTarget.value)||0))),Vs()}),e.insert(K,()=>t("gui.zeroKeepByAge")),e.insert(T,()=>t("gui.historyKeepMaxLabel")),C.addEventListener("change",z=>{To(Math.max(0,Math.floor(Number(z.currentTarget.value)||0))),Vs()}),e.insert(w,()=>t("gui.zeroNoLimit")),e.insert(L,()=>t("gui.lastCleanupLabel"),Q),e.insert(L,(()=>{var z=e.memo(()=>!!ya());return()=>z()?t("gui.lastCleanupDone",{when:new Date(ya()).toLocaleString(),deleted:Us()}):t("gui.lastCleanupNever")})(),null),A.$$click=()=>{Tc()},e.insert(A,(()=>{var z=e.memo(()=>!!Co());return()=>z()?t("gui.cleaningUp"):t("gui.cleanupNow")})()),e.insert(M,()=>t("gui.historyCleanupHint")),e.effect(z=>{var F=Co(),oe=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${Co()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${Co()?.6:1}`;return F!==z.e&&(A.disabled=z.e=F),z.t=e.style(A,oe,z.t),z},{e:void 0,t:void 0}),e.effect(()=>q.value=So()),e.effect(()=>C.value=_o()),b})()})(),null),kd.$$click=()=>fc(!pa()),e.insert(Sd,()=>t("gui.auditHeading")),e.insert($d,()=>ua().length),e.insert(hp,()=>pa()?"▾":"▴"),e.insert(Ya,(()=>{var m=e.memo(()=>!pa());return()=>m()&&(()=>{var b=Zf(),E=b.firstChild,_=E.firstChild,q=_.nextSibling,K=q.nextSibling,U=K.nextSibling,T=U.nextSibling,C=T.nextSibling,w=C.nextSibling,L=E.nextSibling,Q=L.firstChild,O=Q.firstChild,A=O.firstChild,M=A.firstChild,z=M.nextSibling,F=z.nextSibling,oe=F.nextSibling,ue=oe.nextSibling,me=ue.nextSibling,ce=O.nextSibling,ze=L.nextSibling;return e.insert(_,()=>t("gui.auditAction")),q.addEventListener("change",()=>{er()}),q.$$input=$=>yc($.currentTarget.value),e.insert(K,()=>t("gui.auditSource")),U.addEventListener("change",()=>{er()}),U.$$input=$=>bc($.currentTarget.value),e.insert(T,()=>t("gui.auditTarget")),C.addEventListener("change",()=>{er()}),C.$$input=$=>hc($.currentTarget.value),w.$$click=()=>{er()},e.insert(w,(()=>{var $=e.memo(()=>!!ca());return()=>$()?t("gui.loading"):t("gui.refresh")})()),e.insert(M,()=>t("gui.auditTime")),e.insert(z,()=>t("gui.auditAction")),e.insert(F,()=>t("gui.auditTarget")),e.insert(oe,()=>t("gui.auditSource")),e.insert(ue,()=>t("gui.auditActor")),e.insert(me,()=>t("gui.auditDeletedFrom")),e.insert(ce,()=>ua().map($=>(()=>{var te=Qf(),fe=te.firstChild,Me=fe.nextSibling,Se=Me.nextSibling,qe=Se.firstChild,kt=Se.nextSibling,Xt=kt.nextSibling,St=Xt.nextSibling;return e.insert(fe,()=>new Date($.ts).toLocaleString()),e.insert(Me,()=>$.action),e.insert(Se,()=>$.targetType??"",qe),e.insert(Se,()=>$.target??"—",null),e.insert(kt,()=>$.source??"—"),e.insert(Xt,()=>$.actor),e.insert(St,()=>$.remote??"—"),e.effect(()=>e.setAttribute(te,"key",$.id)),te})()),null),e.insert(ce,(()=>{var $=e.memo(()=>ua().length===0);return()=>$()&&(()=>{var te=Yf(),fe=te.firstChild;return e.insert(fe,()=>t("gui.auditEmpty")),te})()})(),null),e.insert(ze,()=>t("gui.auditHint",{redacted:"***"})),e.effect($=>{var te=t("gui.auditActionPlaceholder"),fe=t("gui.auditTargetPlaceholder"),Me=ca(),Se=ca()?"padding:6px 12px;background:#666;color:white;border:none;border-radius:6px;cursor:not-allowed;font-size:12px;font-weight:500;opacity:0.6":"padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;opacity:1";return te!==$.e&&e.setAttribute(q,"placeholder",$.e=te),fe!==$.t&&e.setAttribute(C,"placeholder",$.t=fe),Me!==$.a&&(w.disabled=$.a=Me),$.o=e.style(w,Se,$.o),$},{e:void 0,t:void 0,a:void 0,o:void 0}),e.effect(()=>q.value=Os()),e.effect(()=>U.value=Is()),e.effect(()=>C.value=js()),b})()})(),null),e.insert(xp,()=>t("gui.auditStorageHeading")),zd.addEventListener("change",m=>{ga(m.currentTarget.checked),ka()}),e.insert(Ad,()=>t("gui.auditEnable"),null),e.insert(Pd,()=>t("gui.historyDeleteOlderLabel")),Ja.addEventListener("change",m=>{ma(Math.max(0,Math.floor(Number(m.currentTarget.value)||0))),ka()}),e.insert(wp,()=>t("gui.zeroKeepByAge")),e.insert(Rd,()=>t("gui.historyKeepMaxLabel")),Xa.addEventListener("change",m=>{fa(Math.max(0,Math.floor(Number(m.currentTarget.value)||0))),ka()}),e.insert(Sp,()=>t("gui.zeroNoLimit")),tl.$$click=()=>At(!Re()),e.insert(Ld,()=>D().length),e.insert(Tp,()=>Re()?"▾":"▴"),Er.$$click=()=>{Vc()},e.insert(Er,()=>t("gui.add")),e.insert(el,(()=>{var m=e.memo(()=>!Re());return()=>m()&&(()=>{var b=Jf();return e.insert(b,(()=>{var E=e.memo(()=>D().length===0);return()=>E()?(()=>{var _=Xf();return e.insert(_,()=>t("gui.workspaceEmpty")),_})():D().map(_=>(()=>{var q=ey(),K=q.firstChild,U=K.nextSibling,T=U.firstChild,C=T.firstChild,w=T.nextSibling,L=w.nextSibling,Q=L.nextSibling,O=U.nextSibling,A=O.firstChild,M=A.nextSibling,z=M.nextSibling;return e.insert(T,()=>_.name,null),e.insert(w,()=>_.path),e.insert(L,()=>t("gui.workspaceGitInfo",{branch:_.gitBranch||"—",remote:_.gitRemote||t("gui.remoteNotSet")})),e.insert(Q,()=>t("gui.workspaceEnvLine",{count:_.env?Object.keys(_.env).length:"—",envFile:_.envFile?t("gui.workspaceEnvFile"):""})),A.$$click=()=>{Gc(_)},M.$$click=()=>{Kc(_)},z.$$click=()=>{Zc(_)},e.effect(F=>{var oe=`width:9px;height:9px;border-radius:50%;background:${_.color||"#5ac8fa"};flex-shrink:0`,ue=_.path,me=ct(),ce=t("gui.workspaceEnvTitle"),ze=ct(),$=t("gui.workspaceEditTitle"),te=ct(),fe=t("gui.workspaceDeleteTitle");return F.e=e.style(K,oe,F.e),ue!==F.t&&e.setAttribute(w,"title",F.t=ue),me!==F.a&&(A.disabled=F.a=me),ce!==F.o&&e.setAttribute(A,"title",F.o=ce),ze!==F.i&&(M.disabled=F.i=ze),$!==F.n&&e.setAttribute(M,"title",F.n=$),te!==F.s&&(z.disabled=F.s=te),fe!==F.h&&e.setAttribute(z,"title",F.h=fe),F},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),q})())})()),b})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!Lc());return()=>m()?(()=>{var b=ty();return b.addEventListener("mouseleave",E=>{const _=E.currentTarget;_.style.borderColor="#3a3a3a",_.style.background="#1e1e1e"}),b.addEventListener("mouseenter",E=>{const _=E.currentTarget;_.style.borderColor="#5ac8fa",_.style.background="#232326"}),b.$$click=()=>$a(!1),e.insert(b,()=>t("gui.createTask")),e.effect(()=>e.setAttribute(b,"title",t("gui.expandFormTitle"))),b})():(()=>{var b=iy(),E=b.firstChild,_=E.firstChild,q=_.nextSibling,K=q.firstChild,U=K.nextSibling,T=E.nextSibling,C=T.firstChild,w=C.firstChild,L=C.nextSibling,Q=T.nextSibling,O=Q.firstChild,A=O.nextSibling,M=Q.nextSibling,z=M.firstChild,F=z.nextSibling,oe=F.firstChild,ue=oe.firstChild,me=oe.nextSibling,ce=me.firstChild,ze=me.nextSibling,$=ze.firstChild,te=ze.nextSibling,fe=te.firstChild,Me=te.nextSibling,Se=Me.firstChild,qe=M.nextSibling,kt=qe.firstChild,Xt=kt.nextSibling,St=Xt.firstChild,an=St.firstChild,Mi=St.nextSibling,ei=Mi.firstChild,Di=Mi.nextSibling,ti=Di.firstChild,tt=qe.nextSibling,ln=tt.firstChild,ii=ln.nextSibling,$t=ii.nextSibling,Fi=$t.firstChild,Mt=Fi.nextSibling,sn=Mt.nextSibling,ri=sn.nextSibling,dn=$t.nextSibling,oi=dn.firstChild,un=oi.nextSibling,ni=un.firstChild,cn=ni.nextSibling,Ve=cn.nextSibling,it=un.nextSibling,pn=it.nextSibling,Pr=pn.firstChild,gn=Pr.nextSibling,_t=pn.nextSibling,rt=_t.firstChild,Oi=rt.nextSibling,Rr=Oi.firstChild,Lr=Rr.nextSibling,mn=Lr.nextSibling,il=Oi.nextSibling,fn=tt.nextSibling,Mr=fn.firstChild,Dt=Mr.nextSibling,Ft=fn.nextSibling,ai=Ft.firstChild,Ot=ai.nextSibling,yn=Ft.nextSibling,Dr=yn.firstChild,li=Dr.nextSibling,Ii=li.nextSibling,Fr=Ii.nextSibling,ji=yn.nextSibling,Or=ji.firstChild,Tt=Or.nextSibling,Ir=Tt.nextSibling,Ni=ji.nextSibling,jr=Ni.firstChild,si=jr.nextSibling,bn=Ni.nextSibling,Nr=bn.firstChild,qr=Nr.nextSibling,di=bn.nextSibling,qi=di.firstChild,It=qi.nextSibling,ui=It.nextSibling,Hr=di.nextSibling,hn=Hr.firstChild,ot=hn.nextSibling,rl=ot.nextSibling,xn=Hr.nextSibling,Hi=xn.firstChild,ci=Hi.nextSibling,Ur=ci.nextSibling,Wr=xn.nextSibling,jt=Wr.firstChild,Br=jt.nextSibling,vn=Br.nextSibling,Gr=Wr.nextSibling,Vr=Gr.firstChild,Kr=Vr.nextSibling,Nt=Kr.firstChild,Zr=Nt.nextSibling,wn=Zr.nextSibling,Ui=wn.nextSibling,qt=Ui.nextSibling,Ht=qt.nextSibling,pi=Ht.firstChild,gi=pi.nextSibling,kn=gi.nextSibling,Wi=Gr.nextSibling,Ut=Wi.firstChild,Ke=Ut.nextSibling;return e.insert(_,()=>t(Ga?"gui.editingTask":"gui.newTask")),K.addEventListener("mouseleave",s=>{const d=s.currentTarget;d.style.color="#a0a0a6",d.style.borderColor="#333"}),K.addEventListener("mouseenter",s=>{const d=s.currentTarget;d.style.color="#5ac8fa",d.style.borderColor="#5ac8fa"}),K.$$click=Yc,e.insert(K,()=>t("gui.saveAsTemplate")),U.addEventListener("mouseleave",s=>{const d=s.currentTarget;d.style.color="#a0a0a6",d.style.borderColor="#333"}),U.addEventListener("mouseenter",s=>{const d=s.currentTarget;d.style.color="#5ac8fa",d.style.borderColor="#5ac8fa"}),U.$$click=()=>$a(!0),e.insert(U,()=>t("gui.hideForm")),w.addEventListener("change",s=>{const d=s.currentTarget.checked;Bo(d),d&&(Qe(""),xt().length===0&&kr(D().map(y=>y.id)))}),e.insert(L,()=>t("gui.matrixHint")),e.insert(T,(()=>{var s=e.memo(()=>!!ht());return()=>s()&&(()=>{var d=ry(),y=d.firstChild,g=y.firstChild,x=y.nextSibling,h=x.firstChild,I=h.firstChild,B=I.firstChild,Ee=B.nextSibling,ae=h.nextSibling,De=ae.firstChild,pe=De.firstChild,X=pe.nextSibling,Pe=ae.nextSibling,$e=Pe.firstChild,Ze=$e.firstChild,Ue=Ze.nextSibling,Wt=x.nextSibling,mi=Wt.firstChild,Qr=Wt.nextSibling,nt=Qr.firstChild,Bt=Qr.nextSibling;return e.insert(g,()=>t("gui.matrixWorkspacesSelected",{count:xt().length})),e.insert(y,(()=>{var _e=e.memo(()=>D().length===0);return()=>_e()?(()=>{var o=oy();return e.insert(o,()=>t("gui.addWorkspaceFirst")),o})():(()=>{var o=ny();return e.insert(o,()=>D().map(Y=>(()=>{var at=ay(),Te=at.firstChild,He=Te.nextSibling,We=He.firstChild,lt=He.nextSibling;return Te.addEventListener("change",Fe=>Mc(Y.id,Fe.currentTarget.checked)),e.insert(He,()=>Y.name,null),e.insert(lt,()=>Y.path),e.effect(Fe=>e.style(He,`color:${Y.color||"#5ac8fa"}`,Fe)),e.effect(()=>Te.checked=xt().includes(Y.id)),at})())),o})()})(),null),e.insert(h,()=>t("gui.strategy"),I),I.addEventListener("change",_e=>Go(_e.currentTarget.value==="sequential"?"sequential":"parallel")),e.insert(B,()=>t("gui.matrixParallel")),e.insert(Ee,()=>t("gui.matrixSequential")),e.insert(ae,()=>t("gui.onFailure"),De),De.addEventListener("change",_e=>Vo(_e.currentTarget.value==="stop"?"stop":"continue")),e.insert(pe,()=>t("gui.matrixContinue")),e.insert(X,()=>t("gui.matrixStop")),e.insert(Pe,()=>t("gui.aggregation"),$e),$e.addEventListener("change",_e=>Ko(_e.currentTarget.value==="per-task"?"per-task":"summary")),e.insert(Ze,()=>t("gui.matrixSummary")),e.insert(Ue,()=>t("gui.matrixPerTask")),mi.addEventListener("change",_e=>Zo(_e.currentTarget.checked)),e.insert(Wt,()=>t("gui.matrixAggregator"),null),e.insert(Qr,()=>t("gui.matrixConcurrency"),nt),nt.$$input=_e=>Yo(_e.currentTarget.value),e.insert(d,(()=>{var _e=e.memo(()=>xt().length>0);return()=>_e()&&(()=>{var o=ly(),Y=o.firstChild,at=Y.nextSibling;return e.insert(Y,()=>t("gui.matrixOverridesTitle",{count:Dc()})),e.insert(at,()=>xt().map(Te=>{const He=D().find(Fe=>Fe.id===Te);if(!He)return null;const We=ja()[Te]??{},lt="padding:6px;background:#1e1e1e;border:1px solid #333;border-radius:6px;color:#fff;font-size:12px;outline:none;box-sizing:border-box";return(()=>{var Fe=sy(),st=Fe.firstChild,Sn=st.firstChild,$n=Sn.nextSibling,_n=st.nextSibling,fi=_n.firstChild,Yr=fi.nextSibling,Bi=Yr.firstChild,Jr=Bi.nextSibling,Tn=Yr.nextSibling,Xr=Tn.firstChild,Cn=Xr.nextSibling;return e.insert(st,()=>He.name,$n),e.insert($n,()=>Ua(Xe(),He.name)),fi.$$input=ge=>Tr(Te,"prompt",ge.currentTarget.value),Bi.$$input=ge=>Tr(Te,"model",ge.currentTarget.value),Jr.$$input=ge=>Tr(Te,"qualityGate",ge.currentTarget.value),Xr.$$input=ge=>Tr(Te,"beforeScript",ge.currentTarget.value),Cn.$$input=ge=>Tr(Te,"afterScript",ge.currentTarget.value),e.effect(ge=>{var An=`font-size:12px;font-weight:600;margin-bottom:6px;color:${He.color||"#5ac8fa"}`,eo=t("gui.matrixPromptPlaceholder"),zn=t("gui.matrixModelPlaceholder");return ge.e=e.style(st,An,ge.e),eo!==ge.t&&e.setAttribute(fi,"placeholder",ge.t=eo),zn!==ge.a&&e.setAttribute(Bi,"placeholder",ge.a=zn),ge},{e:void 0,t:void 0,a:void 0}),e.effect(()=>fi.value=We.prompt??""),e.effect(()=>Bi.value=We.model??""),e.effect(()=>Jr.value=We.qualityGate??""),e.effect(()=>Xr.value=We.beforeScript??""),e.effect(()=>Cn.value=We.afterScript??""),Fe})()})),o})()})(),Bt),e.insert(Bt,(()=>{var _e=e.memo(()=>Wa().length>0);return()=>_e()?[(()=>{var o=dy();return e.insert(o,()=>t("gui.matrixWillCreate",{count:Wa().length})),o})(),(()=>{var o=uy();return e.insert(o,()=>Wa().join(", ")),o})()]:(()=>{var o=cy();return e.insert(o,()=>t("gui.matrixSelectHint")),o})()})()),e.effect(()=>e.setAttribute(nt,"placeholder",Ia()==="sequential"?t("gui.concurrencySequentialPlaceholder"):t("gui.concurrencyUnlimitedPlaceholder"))),e.effect(()=>I.value=Ia()),e.effect(()=>De.value=rd()),e.effect(()=>$e.value=od()),e.effect(()=>mi.checked=nd()),e.effect(()=>nt.value=Qo()),d})()})(),null),e.insert(b,(()=>{var s=e.memo(()=>!ht());return()=>s()&&(()=>{var d=py(),y=d.firstChild,g=y.nextSibling,x=g.firstChild;return e.insert(y,()=>t("gui.workspaceMultiRepo")),g.addEventListener("change",h=>{Qe(h.currentTarget.value),h.currentTarget.value&&Ei("")}),e.insert(x,()=>t("gui.noWorkspaceOption")),e.insert(g,()=>D().map(h=>(()=>{var I=_u(),B=I.firstChild;return e.insert(I,()=>h.name,null),e.effect(()=>e.setAttribute(I,"key",h.id)),e.effect(()=>I.value=h.id),I})()),null),e.insert(d,(()=>{var h=e.memo(()=>!!Ar());return()=>h()&&(()=>{var I=gy(),B=I.firstChild,Ee=B.firstChild,ae=Ee.nextSibling,De=B.nextSibling,pe=De.firstChild,X=pe.nextSibling,Pe=De.nextSibling,$e=Pe.firstChild,Ze=$e.nextSibling;return e.insert(ae,()=>Ar().path),e.insert(X,()=>Ar().gitBranch||"—"),e.insert(Ze,()=>Ar().gitRemote||"—"),I})()})(),null),e.effect(()=>g.value=pt()),d})()})(),Q),e.insert(O,()=>t("gui.taskNameLabel")),A.$$input=s=>zo(s.currentTarget.value),e.insert(b,(()=>{var s=e.memo(()=>!pt()&&!ht());return()=>s()&&(()=>{var d=Au(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling;return e.insert(y,()=>t("gui.workingDirectoryLabel")),g.$$input=h=>Ei(h.currentTarget.value),e.insert(x,()=>t("gui.workingDirectoryHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.workingDirectoryPlaceholder"))),e.effect(()=>g.value=wr()||""),d})()})(),M),e.insert(z,()=>t("gui.triggerTypeLabel")),ue.addEventListener("change",()=>yt("cron")),e.insert(oe,()=>t("gui.triggerCron"),null),ce.addEventListener("change",()=>yt("file")),e.insert(me,()=>t("gui.triggerFile"),null),$.addEventListener("change",()=>yt("git")),e.insert(ze,()=>t("gui.triggerGit"),null),fe.addEventListener("change",()=>yt("mcp-event")),Se.addEventListener("change",()=>yt("once")),e.insert(Me,()=>t("gui.triggerOnce"),null),e.insert(b,(()=>{var s=e.memo(()=>ye()==="file");return()=>s()&&(()=>{var d=my(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling,h=x.nextSibling,I=h.nextSibling,B=I.nextSibling,Ee=B.nextSibling;return e.insert(y,()=>t("gui.watchFileLabel")),g.$$input=ae=>cr(ae.currentTarget.value),e.insert(x,()=>t("gui.watchGlobsLabel")),h.$$input=ae=>Ea(ae.currentTarget.value),e.insert(I,()=>t("gui.watchIgnoreLabel")),B.$$input=ae=>Pa(ae.currentTarget.value),e.insert(Ee,()=>t("gui.watchGlobsHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.watchFilePlaceholder"))),e.effect(()=>g.value=_a()||""),e.effect(()=>h.value=Qs()||""),e.effect(()=>B.value=Ys()||""),d})()})(),qe),e.insert(b,(()=>{var s=e.memo(()=>ye()==="git");return()=>s()&&[(()=>{var d=fy(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.gitBranchesLabel")),g.$$input=x=>Ra(x.currentTarget.value),e.effect(()=>g.value=Js()||""),d})(),(()=>{var d=yy(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.gitPathsLabel")),g.$$input=x=>La(x.currentTarget.value),e.effect(()=>g.value=Xs()||""),d})(),(()=>{var d=by(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.gitIgnoreLabel")),g.$$input=x=>Ma(x.currentTarget.value),e.effect(()=>g.value=ed()||""),d})(),(()=>{var d=hy(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling;return e.insert(y,()=>t("gui.gitPollLabel")),g.$$input=h=>Da(h.currentTarget.value),e.insert(x,()=>t("gui.gitPollHint")),e.effect(()=>g.value=Wo()||""),d})()]})(),qe),e.insert(b,(()=>{var s=e.memo(()=>ye()==="mcp-event");return()=>s()&&[(()=>{var d=zu(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.mcpSourceLabel")),g.$$input=x=>br(x.currentTarget.value),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpSourcePlaceholder"))),e.effect(()=>g.value=Fa()||""),d})(),(()=>{var d=zu(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.mcpEventLabel")),g.$$input=x=>hr(x.currentTarget.value),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpEventPlaceholder"))),e.effect(()=>g.value=Oa()||""),d})(),(()=>{var d=Au(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling;return e.insert(y,()=>t("gui.mcpFilterLabel")),g.$$input=h=>vr(h.currentTarget.value),e.insert(x,()=>t("gui.mcpFilterHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.mcpFilterPlaceholder"))),e.effect(()=>g.value=xr()||""),d})()]})(),qe),e.insert(b,(()=>{var s=e.memo(()=>ye()==="once");return()=>s()&&(()=>{var d=xy(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling,h=x.nextSibling,I=h.nextSibling;return e.insert(y,()=>t("gui.oneShotTimeLabel")),g.$$input=B=>Fo(B.currentTarget.value),e.insert(x,()=>t("gui.oneShotDelayHint")),h.$$input=B=>Io(B.currentTarget.value),e.insert(I,()=>t("gui.oneShotHint")),e.effect(B=>{var Ee=t("gui.oneShotTimePlaceholder"),ae=t("gui.oneShotDelayPlaceholder");return Ee!==B.e&&e.setAttribute(g,"placeholder",B.e=Ee),ae!==B.t&&e.setAttribute(h,"placeholder",B.t=ae),B},{e:void 0,t:void 0}),e.effect(()=>g.value=Ta()||""),e.effect(()=>h.value=Oo()||""),d})()})(),qe),e.insert(kt,()=>t("gui.sessionLabel")),an.addEventListener("change",()=>zi("new")),e.insert(St,()=>t("gui.sessionNew"),null),ei.addEventListener("change",()=>zi("reuse")),e.insert(Mi,()=>t("gui.sessionReuse"),null),ti.addEventListener("change",()=>zi("last")),e.insert(Di,()=>t("gui.sessionContinue"),null),e.insert(qe,(()=>{var s=e.memo(()=>bt()==="reuse");return()=>s()&&(()=>{var d=vy(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling;return e.insert(y,()=>t("gui.sessionMaxRunsLabel")),g.$$input=h=>jo(h.currentTarget.value),e.insert(x,()=>t("gui.sessionMaxRunsHint")),e.effect(()=>e.setAttribute(g,"placeholder",t("gui.unboundedPlaceholder"))),e.effect(()=>g.value=pr()||""),d})()})(),null),e.insert(b,(()=>{var s=e.memo(()=>wc()==="win32");return()=>s()&&(()=>{var d=wy(),y=d.firstChild,g=y.firstChild,x=g.nextSibling,h=x.firstChild,I=h.nextSibling;return g.addEventListener("change",B=>No(B.currentTarget.checked)),e.insert(h,()=>t("gui.runWhenLoggedOffLabel")),e.insert(I,()=>t("gui.runWhenLoggedOffHint")),e.effect(B=>e.setStyleProperty(I,"color",Ca()?"#ffd60a":"#8e8e93")),e.effect(()=>g.checked=Ca()),d})()})(),tt),e.insert(ln,()=>t("gui.scheduleLabel")),ii.addEventListener("change",s=>{const d=s.currentTarget.value;tr(d),d!=="__custom__"&&Ti(d)}),e.insert(ii,()=>Mu().map(s=>(()=>{var d=to();return e.insert(d,()=>s.label),e.effect(()=>e.setAttribute(d,"key",s.value)),e.effect(()=>d.value=s.value),d})())),e.insert(tt,pp&&(()=>{var s=ky(),d=s.firstChild,y=d.nextSibling;return e.insert(d,()=>t("gui.cronExprLabel")),y.$$input=g=>Ti(g.currentTarget.value),e.effect(()=>y.value=Eo()||""),s})(),$t),e.insert(tt,(()=>{var s=e.memo(()=>!!vl());return()=>s()&&(()=>{var d=Sy();return e.insert(d,vl),d})()})(),$t),e.insert(Fi,()=>t("gui.timezoneLabel")),Mt.$$input=s=>gr(s.currentTarget.value),e.insert(ri,()=>t("gui.timezoneHint")),e.insert(oi,()=>t("gui.windowLabel")),ni.$$input=s=>mr(s.currentTarget.value),Ve.$$input=s=>fr(s.currentTarget.value),e.insert(it,()=>t("gui.windowHint")),e.insert(Pr,()=>t("gui.weekdaysLabel")),e.insert(gn,()=>[{value:1,day:"gui.weekday.1"},{value:2,day:"gui.weekday.2"},{value:3,day:"gui.weekday.3"},{value:4,day:"gui.weekday.4"},{value:5,day:"gui.weekday.5"},{value:6,day:"gui.weekday.6"},{value:0,day:"gui.weekday.0"}].map(s=>(()=>{var d=$y(),y=d.firstChild;return y.addEventListener("change",g=>{const x=g.currentTarget.checked?[...yr(),s.value]:yr().filter(h=>h!==s.value);Aa([...x].sort((h,I)=>h-I))}),e.insert(d,()=>t(s.day),null),e.effect(()=>y.checked=yr().includes(s.value)),d})())),e.insert(rt,()=>t("gui.outsideWindowLabel")),Oi.addEventListener("change",s=>za(s.currentTarget.value)),e.insert(Rr,()=>t("gui.windowPostpone")),e.insert(Lr,()=>t("gui.windowSkip")),e.insert(mn,()=>t("gui.windowRun")),e.insert(il,()=>t("gui.windowPolicyHint")),e.insert(Mr,()=>t("gui.promptLabel")),Dt.$$input=s=>Ai(s.currentTarget.value),e.insert(ai,()=>t("gui.promptTemplateLabel")),Ot.addEventListener("change",s=>Qc(s.currentTarget.value)),e.insert(Ot,()=>Sl().map(s=>(()=>{var d=to();return e.insert(d,()=>s.label),e.effect(()=>e.setAttribute(d,"key",s.value)),e.effect(()=>d.value=s.value),d})()),null),e.insert(Ot,()=>uo().map(s=>(()=>{var d=to();return e.insert(d,()=>s.name),e.effect(()=>e.setAttribute(d,"key",s.id)),e.effect(()=>d.value=`custom:${s.id}`),d})()),null),e.insert(Ft,(()=>{var s=e.memo(()=>!!Qi().startsWith("custom:"));return()=>s()&&(()=>{var d=_y(),y=d.firstChild,g=y.nextSibling;return e.insert(y,()=>t("gui.customTemplate")),e.insert(d,()=>uo().map(x=>`custom:${x.id}`!==Qi()?null:(()=>{var h=Ty();return e.insert(h,()=>x.name),e.effect(()=>e.setAttribute(h,"key",x.id)),h})()),g),g.addEventListener("mouseleave",x=>{x.currentTarget.style.color="#ff3b30"}),g.addEventListener("mouseenter",x=>{x.currentTarget.style.color="#c92a2a"}),g.$$click=()=>{const x=uo().find(h=>`custom:${h.id}`===Qi());x&&Jc(x)},e.effect(()=>e.setAttribute(g,"title",t("gui.deleteTemplateTitle"))),d})()})(),null),e.insert(Dr,()=>t("gui.modelLabel")),li.$$input=s=>nr(s.currentTarget.value),e.insert(Fr,()=>t("gui.modelHint")),e.insert(Or,()=>t("gui.priorityLabel")),Tt.addEventListener("change",s=>ar(Number(s.currentTarget.value)||Ct)),e.insert(Tt,()=>Lu().map(s=>(()=>{var d=to();return e.insert(d,()=>s.label),e.effect(()=>e.setAttribute(d,"key",s.value)),e.effect(()=>d.value=String(s.value)),d})()),null),e.insert(Tt,(()=>{var s=e.memo(()=>!Lu().some(d=>d.value===Qt()));return()=>s()&&(()=>{var d=to();return e.insert(d,()=>t("gui.otherPriorityOption",{priority:Qt()})),e.effect(()=>d.value=String(Qt())),d})()})(),null),e.insert(Ir,()=>t("gui.priorityHint")),e.insert(jr,()=>t("gui.maxRetriesLabel")),si.$$input=s=>ir(Number(s.currentTarget.value)||0),e.insert(Nr,()=>t("gui.retryDelayLabel")),qr.$$input=s=>rr(Number(s.currentTarget.value)||60),e.insert(qi,()=>t("gui.qualityGateLabel")),It.$$input=s=>lr(s.currentTarget.value),e.insert(ui,()=>t("gui.qualityGateHint")),e.insert(hn,()=>t("gui.preflightLabel")),ot.$$input=s=>dr(s.currentTarget.value),e.insert(rl,()=>t("gui.preflightHint")),e.insert(Hi,()=>t("gui.postflightLabel")),ci.$$input=s=>ur(s.currentTarget.value),e.insert(Ur,()=>t("gui.postflightHint")),e.insert(jt,()=>t("gui.dependsOnLabel")),e.insert(Br,(()=>{var s=e.memo(()=>fd().length===0);return()=>s()?(()=>{var d=Cy();return e.insert(d,()=>t("gui.noOtherTasks")),d})():fd().map(d=>(()=>{var y=ll(),g=y.firstChild;return g.addEventListener("change",x=>mp(d,x.currentTarget.checked)),e.insert(y,d,null),e.effect(x=>e.style(y,`display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:14px;border:1px solid ${Yt().includes(d)?"#5ac8fa":"#333"};background:${Yt().includes(d)?"rgba(90,200,250,0.12)":"transparent"};color:${Yt().includes(d)?"#5ac8fa":"#cfcfd2"};font-size:12px;cursor:pointer;user-select:none`,x)),e.effect(()=>g.checked=Yt().includes(d)),y})())})()),e.insert(vn,()=>t("gui.dependsOnHint")),e.insert(Vr,()=>t("gui.toolLimitsHeading"),null),e.insert(Vr,(()=>{var s=e.memo(()=>he().length>0||xe().length>0);return()=>s()&&(()=>{var d=Ay(),y=d.firstChild,g=y.nextSibling,x=g.nextSibling,h=x.nextSibling,I=h.nextSibling;return e.insert(d,()=>he().length,g),e.insert(d,()=>xe().length,h),d})()})(),null),e.insert(Nt,()=>t("gui.toolLimitsNote"),null),e.insert(Nt,()=>t("gui.toolLimitsDenied"),null),e.insert(Zr,()=>t("gui.allowedToolsLabel")),e.insert(wn,()=>ld.map(s=>(()=>{var d=ll(),y=d.firstChild;return y.addEventListener("change",()=>sd("allowed",s)),e.insert(d,s,null),e.effect(g=>e.style(d,`display:flex;align-items:center;gap:5px;padding:4px 9px;border-radius:12px;border:1px solid ${he().includes(s)?"#34c759":"#333"};background:${he().includes(s)?"rgba(52,199,89,0.12)":"transparent"};color:${he().includes(s)?"#34c759":"#cfcfd2"};font-size:11px;cursor:pointer;user-select:none`,g)),e.effect(()=>y.checked=he().includes(s)),d})())),e.insert(Ui,()=>t("gui.deniedToolsLabel")),e.insert(qt,()=>ld.map(s=>(()=>{var d=ll(),y=d.firstChild;return y.addEventListener("change",()=>sd("denied",s)),e.insert(d,s,null),e.effect(g=>e.style(d,`display:flex;align-items:center;gap:5px;padding:4px 9px;border-radius:12px;border:1px solid ${xe().includes(s)?"#ff3b30":"#333"};background:${xe().includes(s)?"rgba(255,59,48,0.12)":"transparent"};color:${xe().includes(s)?"#ff3b30":"#cfcfd2"};font-size:11px;cursor:pointer;user-select:none`,g)),e.effect(()=>y.checked=xe().includes(s)),d})())),pi.$$input=s=>id(s.currentTarget.value),gi.$$click=()=>dd("allowed"),kn.$$click=()=>dd("denied"),e.insert(Kr,(()=>{var s=e.memo(()=>he().length>0||xe().length>0);return()=>s()&&(()=>{var d=zy();return e.insert(d,(()=>{var y=e.memo(()=>he().length>0);return()=>y()&&(()=>{var g=Ey(),x=g.firstChild,h=x.nextSibling,I=h.nextSibling;return e.insert(g,()=>he().join(", "),h),g})()})(),null),e.insert(d,(()=>{var y=e.memo(()=>xe().length>0);return()=>y()&&(()=>{var g=Py(),x=g.firstChild,h=x.nextSibling,I=h.nextSibling;return e.insert(g,()=>xe().join(", "),h),g})()})(),null),d})()})(),null),Ut.$$click=()=>{Ha(Pu);const s={order:0,trigger:"manual",command:Fc(),roleScoped:he().length>0||xe().length>0?{allowed:he(),denied:xe()}:null,preFlight:(Mo()||"").trim()||null,postFlight:(Do()||"").trim()||null,qualityGate:(Lo()||"").trim()||null},d=xt().map(y=>D().find(g=>g.id===y)).filter(y=>!!y).map((y,g)=>({...s,name:Ua(Xe(),y.name),order:g,cwd:y.path,matrixParent:Xe()||t("gui.noNameFallback")}));$r({tasks:ht()?d:[{...s,name:Xe()||t("gui.noNameFallback"),cwd:Ar()?.path||(wr()||"").trim()||t("gui.projectFolderFallback")}],totals:{},warnings:[...Xe().trim()?[]:[t("gui.dryRunNoNameWarning")],...ht()?[t("gui.dryRunMatrixPreview",{count:d.length})]:[]]}),Na(!0)},e.insert(Ut,()=>t("gui.dryRunButton")),Ke.$$click=ip,e.insert(Ke,(()=>{var s=e.memo(()=>!!Zi());return()=>s()?t("gui.creating"):t(Ga?"gui.save":"gui.createTaskSubmit")})()),e.insert(Wi,Ga&&(()=>{var s=Ry();return s.$$click=()=>{Ao(null),zo(""),Ti("* * * * *"),Ai(""),nr(""),ar(Ct),ir(0),rr(60),lr(""),sr([]),dr(""),ur(""),yt("cron"),cr(""),Fo(""),Io(""),zi("new"),jo(""),No(!1),gr(""),mr(""),fr(""),br(""),hr(""),vr(""),Ei(""),Qe(""),Pi([]),Ri([]),Xo(),tr("* * * * *"),ao("")},e.insert(s,()=>t("gui.cancel")),s})(),null),e.insert(b,(()=>{var s=e.memo(()=>!!(Sr()&&_r()===Pu));return()=>s()&&(()=>{var d=Ly(),y=d.firstChild,g=y.firstChild;return e.insert(y,()=>t("gui.dryRunLocalTitle"),g),g.$$click=()=>gd(),e.insert(d,()=>{const x=ve();if(!x)return null;const h=x.tasks?.[0];return(()=>{var I=My(),B=I.firstChild,Ee=B.firstChild,ae=B.nextSibling,De=ae.firstChild;return e.insert(B,()=>h?.command,null),e.insert(ae,()=>h?.cwd,null),e.insert(I,(()=>{var pe=e.memo(()=>!!h?.roleScoped);return()=>pe()&&(()=>{var X=Dy(),Pe=X.firstChild,$e=Pe.nextSibling,Ze=$e.nextSibling,Ue=Ze.nextSibling,Wt=Ue.nextSibling;return e.insert(X,()=>(h.roleScoped.allowed??[]).join(", "),$e),e.insert(X,()=>(h.roleScoped.denied??[]).join(", "),Ue),X})()})(),null),e.insert(I,(()=>{var pe=e.memo(()=>!!h?.preFlight);return()=>pe()&&(()=>{var X=Fy(),Pe=X.firstChild;return e.insert(X,()=>h.preFlight,null),X})()})(),null),e.insert(I,(()=>{var pe=e.memo(()=>!!h?.postFlight);return()=>pe()&&(()=>{var X=Oy(),Pe=X.firstChild;return e.insert(X,()=>h.postFlight,null),X})()})(),null),e.insert(I,(()=>{var pe=e.memo(()=>!!h?.qualityGate);return()=>pe()&&(()=>{var X=Iy(),Pe=X.firstChild;return e.insert(X,()=>h.qualityGate,null),X})()})(),null),e.insert(I,(()=>{var pe=e.memo(()=>!!(Array.isArray(x.warnings)&&x.warnings.length>0));return()=>pe()&&(()=>{var X=jy(),Pe=X.firstChild;return e.insert(X,()=>x.warnings.join(" | "),null),X})()})(),null),I})()},null),d})()})(),null),e.effect(s=>{var d=t("gui.saveAsTemplateTitle"),y=t("gui.collapseFormTitle"),g=t("gui.taskNamePlaceholder"),x=ye()!=="cron"?"none":"block",h=t("gui.timezonePlaceholder"),I=t("gui.windowStartTitle"),B=t("gui.windowEndTitle"),Ee=t("gui.promptPlaceholder"),ae=t("gui.modelPlaceholder"),De=t("gui.qualityGatePlaceholder"),pe=t("gui.preflightPlaceholder"),X=t("gui.postflightPlaceholder"),Pe=t("gui.toolPlaceholder"),$e=t("gui.dryRunPreviewTitle"),Ze=Zi()||!on(),Ue=on()?void 0:md(),Wt=`display:block;width:100%;padding:10px;margin-top:8px;background:${Zi()?"#666":"#007acc"};color:white;border-radius:6px;border:none;cursor:${Zi()||!on()?"not-allowed":"pointer"};font-size:13px;font-weight:500;opacity:${Zi()||!on()?.6:1}`;return d!==s.e&&e.setAttribute(K,"title",s.e=d),y!==s.t&&e.setAttribute(U,"title",s.t=y),g!==s.a&&e.setAttribute(A,"placeholder",s.a=g),x!==s.o&&e.setStyleProperty(tt,"display",s.o=x),h!==s.i&&e.setAttribute(Mt,"placeholder",s.i=h),I!==s.n&&e.setAttribute(ni,"title",s.n=I),B!==s.s&&e.setAttribute(Ve,"title",s.s=B),Ee!==s.h&&e.setAttribute(Dt,"placeholder",s.h=Ee),ae!==s.r&&e.setAttribute(li,"placeholder",s.r=ae),De!==s.d&&e.setAttribute(It,"placeholder",s.d=De),pe!==s.l&&e.setAttribute(ot,"placeholder",s.l=pe),X!==s.u&&e.setAttribute(ci,"placeholder",s.u=X),Pe!==s.c&&e.setAttribute(pi,"placeholder",s.c=Pe),$e!==s.w&&e.setAttribute(Ut,"title",s.w=$e),Ze!==s.m&&(Ke.disabled=s.m=Ze),Ue!==s.f&&e.setAttribute(Ke,"title",s.f=Ue),s.y=e.style(Ke,Wt,s.y),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),e.effect(()=>w.checked=ht()),e.effect(()=>A.value=Xe()||""),e.effect(()=>ue.checked=ye()==="cron"),e.effect(()=>ce.checked=ye()==="file"),e.effect(()=>$.checked=ye()==="git"),e.effect(()=>fe.checked=ye()==="mcp-event"),e.effect(()=>Se.checked=ye()==="once"),e.effect(()=>an.checked=bt()==="new"),e.effect(()=>ei.checked=bt()==="reuse"),e.effect(()=>ti.checked=bt()==="last"),e.effect(()=>ii.value=Ks()),e.effect(()=>Mt.value=qo()||""),e.effect(()=>ni.value=Ho()||""),e.effect(()=>Ve.value=Uo()||""),e.effect(()=>Oi.value=Zs()),e.effect(()=>Dt.value=Ci()||""),e.effect(()=>Ot.value=Qi()),e.effect(()=>li.value=or()||""),e.effect(()=>Tt.value=String(Qt())),e.effect(()=>si.value=Po()),e.effect(()=>qr.value=Ro()),e.effect(()=>It.value=Lo()||""),e.effect(()=>ot.value=Mo()||""),e.effect(()=>ci.value=Do()||""),e.effect(()=>pi.value=td()),b})()})(),nn),e.insert(Cp,()=>t("gui.tasksHeading")),e.insert(nn,(()=>{var m=e.memo(()=>ut()!=="all");return()=>m()&&(()=>{var b=Ny();return e.insert(b,()=>t("gui.filterSummary",{scope:ut()==="none"?t("gui.workspaceNone"):`📦 ${D().find(E=>E.id===ut())?.name??"workspace"}`,visible:Ka().length,total:zr().length})),b})()})(),null),e.insert(nn,(()=>{var m=e.memo(()=>Ka().length===0);return()=>m()?(()=>{var b=qy(),E=b.firstChild,_=E.nextSibling;return e.insert(E,()=>Ye()?"🎄":"📅"),e.insert(_,(()=>{var q=e.memo(()=>!!Ye());return()=>q()?t("gui.emptyWinter"):t("gui.emptyNormal")})()),b})():(()=>{var b=Hy();return e.insert(b,()=>Ka().map(E=>e.createComponent(yp,{get key(){return E.name},job:E}))),b})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!Ku());return()=>m()&&(()=>{var b=Uy(),E=b.firstChild,_=E.firstChild,q=_.nextSibling,K=q.firstChild,U=K.nextSibling;return b.$$click=()=>Vt(null),E.$$click=T=>T.stopPropagation(),e.insert(_,Mn),e.insert(E,(()=>{var T=e.memo(()=>!!Mn().includes("KEY=VALUE"));return()=>T()?(()=>{var C=Wy();return C.$$keydown=w=>{w.key==="Escape"&&Vt(null),w.key==="Enter"&&(w.ctrlKey||w.metaKey)&&(w.preventDefault(),Vt(Ki())),w.stopPropagation()},C.$$input=w=>Dn(w.currentTarget.value),e.effect(()=>C.value=Ki()),C})():(()=>{var C=By();return C.$$keydown=w=>{w.key==="Escape"&&Vt(null),w.key==="Enter"&&(w.preventDefault(),Vt(Ki())),w.stopPropagation()},C.$$input=w=>Dn(w.currentTarget.value),e.effect(()=>C.value=Ki()),C})()})(),q),K.$$click=()=>Vt(null),e.insert(K,()=>t("gui.cancel")),U.$$click=()=>Vt(Ki()),e.insert(U,()=>t("gui.ok")),e.insert(E,(()=>{var T=e.memo(()=>!!Mn().includes("KEY=VALUE"));return()=>T()&&(()=>{var C=Gy();return e.insert(C,()=>t("gui.modalShortcutHint")),C})()})(),null),b})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!Fn());return()=>m()&&(()=>{var b=Vy(),E=b.firstChild,_=E.firstChild,q=_.firstChild,K=q.nextSibling,U=_.nextSibling,T=E.nextSibling;return e.insert(q,()=>t("gui.logsHeading")),e.insert(K,Fn),U.addEventListener("mouseleave",C=>{C.target.style.color="#8e8e93"}),U.addEventListener("mouseenter",C=>{C.target.style.color="#ff3b30"}),U.$$click=()=>{On(null),vi("")},e.insert(T,()=>Qu().split(`
9
+ `).map((C,w)=>(()=>{var L=Ky();return e.setAttribute(L,"key",w),e.insert(L,C),L})())),b})()})(),null),e.insert(i,(()=>{var m=e.memo(()=>!!ac());return()=>m()&&(()=>{var b=Zy(),E=b.firstChild,_=E.firstChild,q=_.firstChild,K=q.nextSibling,U=_.nextSibling,T=U.nextSibling,C=T.firstChild;return e.insert(q,(()=>{var w=e.memo(()=>ft()===1);return()=>w()?t("localAi.wizard.screen1.title"):e.memo(()=>ft()===2)()?t("localAi.wizard.screen2.title"):t("localAi.wizard.screen3.title")})()),K.$$click=()=>ea(!1),e.insert(U,(()=>{var w=e.memo(()=>ft()===1);return()=>w()&&(()=>{var L=Qy(),Q=L.firstChild,O=Q.nextSibling,A=O.nextSibling,M=A.firstChild,z=M.nextSibling,F=A.nextSibling,oe=F.nextSibling,ue=oe.nextSibling,me=ue.nextSibling,ce=me.nextSibling,ze=ce.nextSibling;return e.insert(Q,()=>t("localAi.wizard.screen1.desc")),e.insert(O,()=>t("localAi.wizard.screen1.provider")),M.$$click=()=>{ta("ollama"),ia("http://127.0.0.1:11434"),Kt("")},e.insert(M,()=>t("localAi.wizard.screen1.provider.ollama")),z.$$click=()=>{ta("openai"),ia(""),Kt("")},e.insert(z,()=>t("localAi.wizard.screen1.provider.openai")),e.insert(F,()=>t("localAi.wizard.screen1.baseUrl")),oe.$$input=$=>{ia($.currentTarget.value),Kt("")},e.insert(ue,()=>t("localAi.wizard.screen1.baseUrlHint")),e.insert(me,()=>t("localAi.wizard.screen1.model")),ce.$$input=$=>ls($.currentTarget.value),e.insert(ze,()=>t("localAi.wizard.screen1.consequence")),e.effect($=>{var te=`flex:1;padding:8px 12px;background:${ki()==="ollama"?"#007acc":"#2a2a2a"};border:1px solid ${ki()==="ollama"?"#007acc":"#333"};border-radius:6px;color:#fff;cursor:pointer;font-size:12px`,fe=`flex:1;padding:8px 12px;background:${ki()==="openai"?"#007acc":"#2a2a2a"};border:1px solid ${ki()==="openai"?"#007acc":"#333"};border-radius:6px;color:#fff;cursor:pointer;font-size:12px`,Me=t("localAi.wizard.screen1.baseUrlDesc"),Se=t("localAi.wizard.screen1.modelDesc");return $.e=e.style(M,te,$.e),$.t=e.style(z,fe,$.t),Me!==$.a&&e.setAttribute(oe,"placeholder",$.a=Me),Se!==$.o&&e.setAttribute(ce,"placeholder",$.o=Se),$},{e:void 0,t:void 0,a:void 0,o:void 0}),e.effect(()=>oe.value=ho()),e.effect(()=>ce.value=ra()),L})()})(),null),e.insert(U,(()=>{var w=e.memo(()=>ft()===2);return()=>w()&&(()=>{var L=Yy(),Q=L.firstChild,O=Q.nextSibling,A=O.firstChild,M=A.nextSibling,z=O.nextSibling,F=z.firstChild,oe=F.nextSibling;return e.insert(Q,()=>t("localAi.wizard.screen2.desc")),O.$$click=()=>oa("minimal"),e.insert(A,()=>t("localAi.wizard.screen2.preset.minimal")),e.insert(M,()=>t("localAi.wizard.screen2.preset.minimal.desc")),z.$$click=()=>oa("recommended"),e.insert(F,()=>t("localAi.wizard.screen2.preset.recommended")),e.insert(oe,()=>t("localAi.wizard.screen2.preset.recommended.desc")),e.effect(ue=>{var me=`flex:1;padding:14px 16px;background:${Si()==="minimal"?"#007acc":"#2a2a2a"};border:1px solid ${Si()==="minimal"?"#007acc":"#333"};border-radius:6px;color:#fff;cursor:pointer;text-align:left;font-size:13px`,ce=`flex:1;padding:14px 16px;background:${Si()==="recommended"?"#007acc":"#2a2a2a"};border:1px solid ${Si()==="recommended"?"#007acc":"#333"};border-radius:6px;color:#fff;cursor:pointer;text-align:left;font-size:13px`;return ue.e=e.style(O,me,ue.e),ue.t=e.style(z,ce,ue.t),ue},{e:void 0,t:void 0}),L})()})(),null),e.insert(U,(()=>{var w=e.memo(()=>ft()===3);return()=>w()&&(()=>{var L=Jy(),Q=L.firstChild,O=Q.nextSibling,A=O.nextSibling,M=A.firstChild,z=M.nextSibling,F=z.nextSibling,oe=F.nextSibling,ue=oe.nextSibling,me=ue.nextSibling,ce=me.nextSibling,ze=ce.nextSibling,$=A.nextSibling,te=$.nextSibling;return e.insert(Q,()=>t("localAi.wizard.screen3.desc")),e.insert(O,()=>t("localAi.wizard.screen3.ruleOrder")),e.insert(M,()=>t("localAi.wizard.rule.errorTimeout")),e.insert(z,()=>t("localAi.wizard.rule.errorPermission")),e.insert(F,()=>t("localAi.wizard.rule.errorNetwork")),e.insert(oe,()=>t("localAi.wizard.rule.errorQuality")),e.insert(ue,()=>t("localAi.wizard.rule.costHigh")),e.insert(me,()=>t("localAi.wizard.rule.taskImportant")),e.insert(ce,()=>t("localAi.wizard.rule.statusError")),e.insert(ze,()=>t("localAi.wizard.rule.statusSuccess")),e.insert($,()=>t("localAi.wizard.screen3.confidenceThreshold")),e.insert(te,()=>t("localAi.wizard.screen3.confidenceHint")),L})()})(),null),e.insert(U,(()=>{var w=e.memo(()=>!!ss());return()=>w()&&(()=>{var L=Xy();return e.insert(L,ss),L})()})(),null),e.insert(T,(()=>{var w=e.memo(()=>ft()>1);return()=>w()&&(()=>{var L=eb();return L.$$click=()=>bo(Q=>Q-1),e.insert(L,()=>t("localAi.wizard.back")),L})()})(),C),C.$$click=async()=>{if(Kt(""),ft()===1){if(!ra().trim()){Kt(t("localAi.wizard.screen1.modelRequired"));return}if(ki()==="openai"&&!ho().trim()){Kt(t("localAi.wizard.screen1.baseUrlRequired"));return}bo(2)}else if(ft()===2){if(!Si())return;bo(3)}else{const w=Si()==="minimal"?"rules":"auto",L=ki()==="ollama"?ho().trim()||"http://127.0.0.1:11434":ho().trim().replace(/\/+$/,""),Q=ra().trim();if(!await Et({notifications:{triage:{mode:w,baseUrl:L,model:Q,timeoutMs:6e4,fallback:"rules",confidenceThreshold:.7,shadow:{enabled:!1,days:14,startedAt:null}}}})){Kt(t("localAi.wizard.saveFailed"));return}Wn(w),Gn(L),Vn(Q),Zn(6e4),Yn(.7),Xn("rules"),mt("idle"),gt(null),na(!1),ea(!1)}},e.insert(C,(()=>{var w=e.memo(()=>ft()===3);return()=>w()?t("localAi.wizard.finish"):t("localAi.wizard.next")})()),b})()})(),null),e.effect(m=>{var b=`display:flex;flex-direction:column;width:100%;height:100%;max-height:100vh;min-height:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;gap:24px;padding:20px;font-size:13px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e0e0e0;transition:background 0.3s ease;scrollbar-width:thin;scrollbar-color:#444 transparent;background:${Ye()?"linear-gradient(180deg, #0f172a 0%, #000000 100%)":"#0f0f0f"}`,E=t("gui.metricsTotalsTitle"),_=t("gui.languageTitle"),q=t("gui.workspaceFilterTitle"),K=bi()?t("gui.profileEnvLockedTitle"):t("gui.profilesTitle"),U=`display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;border:1px solid ${oo()?"#bf5af2":"#333"};background:${oo()?"rgba(191,90,242,0.12)":"#1e1e1e"};color:${oo()?"#bf5af2":"#e0e0e0"}`,T=t("gui.openDashboardTitle"),C=t("gui.winterModeTitle"),w=`display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;cursor:pointer;font-size:12px;user-select:none;white-space:nowrap;transition:background 0.2s ease, border-color 0.2s ease;border:1px solid ${Ye()?"rgba(135, 206, 250, 0.5)":"#333"};background:${Ye()?"rgba(135, 206, 250, 0.12)":"#1e1e1e"};color:#e0e0e0`,L=en(),Q=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${en()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${en()?.6:1};transition:background 0.18s ease`,O=tn(),A=`padding:6px 12px;background:#007acc;color:white;border:none;border-radius:6px;cursor:${tn()?"not-allowed":"pointer"};font-size:12px;font-weight:500;opacity:${tn()?.6:1};transition:background 0.18s ease`,M=ct(),z=t("gui.workspaceAddTitle"),F=`padding:5px 10px;border-radius:6px;border:1px solid #333;background:#252526;color:${ct()?"#666":"#5ac8fa"};font-size:11px;font-weight:600;cursor:${ct()?"not-allowed":"pointer"}`;return m.e=e.style(i,b,m.e),E!==m.t&&e.setAttribute(le,"title",m.t=E),_!==m.a&&e.setAttribute(Ie,"title",m.a=_),q!==m.o&&e.setAttribute(je,"title",m.o=q),K!==m.i&&e.setAttribute(p,"title",m.i=K),m.n=e.style(p,U,m.n),T!==m.s&&e.setAttribute(k,"title",m.s=T),C!==m.h&&e.setAttribute(R,"title",m.h=C),m.r=e.style(R,w,m.r),L!==m.d&&(J.disabled=m.d=L),m.l=e.style(J,Q,m.l),O!==m.u&&(Z.disabled=m.u=O),m.c=e.style(Z,A,m.c),M!==m.w&&(Er.disabled=m.w=M),z!==m.m&&e.setAttribute(Er,"title",m.m=z),m.f=e.style(Er,F,m.f),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),e.effect(()=>Ie.value=$l()),e.effect(()=>je.value=ut()),e.effect(()=>V.checked=Ye()),e.effect(()=>H.value=ic()),e.effect(()=>zd.checked=Ns()),e.effect(()=>Ja.value=qs()),e.effect(()=>Xa.value=Hs()),i}})})}catch(i){return console.error("GUI render error:",i),l.add(ol.Panel,{id:"scheduler-jobs",region:"side",list:()=>[{id:"jobs",title:t("gui.jobsTitle"),pinned:!0}],render:()=>e.createComponent(a.ErrorBoundary,{fallback:r=>(()=>{var n=$u();return e.insert(n,()=>t("gui.uiError",{message:r.message})),n})(),get children(){var r=tb(),n=r.firstChild,u=n.nextSibling,ee=u.nextSibling;return e.insert(n,va),e.insert(ee,()=>t("gui.errorBoundaryDetail")),r}})})}}});e.delegateEvents(["click","input","keydown"]);exports.default=nb;