opencode-windows-scheduler 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/CROSS_PLATFORM.md +113 -0
  3. package/LICENSE +21 -0
  4. package/README.md +173 -2
  5. package/README.ru.md +131 -0
  6. package/ROADMAP-STRATEGY.md +217 -0
  7. package/ROADMAP.md +90 -0
  8. package/dist/core/analytics.d.ts +119 -0
  9. package/dist/core/analytics.d.ts.map +1 -0
  10. package/dist/core/analytics.js +265 -0
  11. package/dist/core/cron-to-schtasks.d.ts +20 -0
  12. package/dist/core/cron-to-schtasks.d.ts.map +1 -0
  13. package/dist/core/cron-to-schtasks.js +233 -0
  14. package/dist/core/dry-run.d.ts +44 -0
  15. package/dist/core/dry-run.d.ts.map +1 -0
  16. package/dist/core/dry-run.js +252 -0
  17. package/dist/core/file-watcher.d.ts +31 -0
  18. package/dist/core/file-watcher.d.ts.map +1 -0
  19. package/dist/core/file-watcher.js +128 -0
  20. package/dist/core/lock.d.ts +43 -0
  21. package/dist/core/lock.d.ts.map +1 -0
  22. package/dist/core/lock.js +118 -0
  23. package/dist/core/matrix.d.ts +167 -0
  24. package/dist/core/matrix.d.ts.map +1 -0
  25. package/dist/core/matrix.js +687 -0
  26. package/dist/core/ps-wrapper.d.ts +60 -0
  27. package/dist/core/ps-wrapper.d.ts.map +1 -0
  28. package/dist/core/ps-wrapper.js +538 -0
  29. package/dist/core/record-history.d.ts +14 -0
  30. package/dist/core/record-history.d.ts.map +1 -0
  31. package/dist/core/record-history.js +360 -0
  32. package/dist/core/retention.d.ts +29 -0
  33. package/dist/core/retention.d.ts.map +1 -0
  34. package/dist/core/retention.js +98 -0
  35. package/dist/core/scheduler/index.d.ts +20 -0
  36. package/dist/core/scheduler/index.d.ts.map +1 -0
  37. package/dist/core/scheduler/index.js +32 -0
  38. package/dist/core/scheduler/linux.d.ts +32 -0
  39. package/dist/core/scheduler/linux.d.ts.map +1 -0
  40. package/dist/core/scheduler/linux.js +115 -0
  41. package/dist/core/scheduler/logs.d.ts +11 -0
  42. package/dist/core/scheduler/logs.d.ts.map +1 -0
  43. package/dist/core/scheduler/logs.js +34 -0
  44. package/dist/core/scheduler/mac.d.ts +39 -0
  45. package/dist/core/scheduler/mac.d.ts.map +1 -0
  46. package/dist/core/scheduler/mac.js +175 -0
  47. package/dist/core/scheduler/posix.d.ts +40 -0
  48. package/dist/core/scheduler/posix.d.ts.map +1 -0
  49. package/dist/core/scheduler/posix.js +86 -0
  50. package/dist/core/scheduler/registry.d.ts +36 -0
  51. package/dist/core/scheduler/registry.d.ts.map +1 -0
  52. package/dist/core/scheduler/registry.js +56 -0
  53. package/dist/core/scheduler/types.d.ts +63 -0
  54. package/dist/core/scheduler/types.d.ts.map +1 -0
  55. package/dist/core/scheduler/types.js +1 -0
  56. package/dist/core/scheduler/windows.d.ts +47 -0
  57. package/dist/core/scheduler/windows.d.ts.map +1 -0
  58. package/dist/core/scheduler/windows.js +375 -0
  59. package/dist/core/wrappers/bash.d.ts +58 -0
  60. package/dist/core/wrappers/bash.d.ts.map +1 -0
  61. package/dist/core/wrappers/bash.js +223 -0
  62. package/dist/db/history-repo.d.ts +102 -0
  63. package/dist/db/history-repo.d.ts.map +1 -0
  64. package/dist/db/history-repo.js +215 -0
  65. package/dist/db/index.d.ts +47 -0
  66. package/dist/db/index.d.ts.map +1 -0
  67. package/dist/db/index.js +120 -0
  68. package/dist/db/metrics-repo.d.ts +43 -0
  69. package/dist/db/metrics-repo.d.ts.map +1 -0
  70. package/dist/db/metrics-repo.js +95 -0
  71. package/dist/db/migrate.d.ts +24 -0
  72. package/dist/db/migrate.d.ts.map +1 -0
  73. package/dist/db/migrate.js +237 -0
  74. package/dist/db/recovery.d.ts +11 -0
  75. package/dist/db/recovery.d.ts.map +1 -0
  76. package/dist/db/recovery.js +38 -0
  77. package/dist/db/schema.d.ts +24 -0
  78. package/dist/db/schema.d.ts.map +1 -0
  79. package/dist/db/schema.js +97 -0
  80. package/dist/db/settings-repo.d.ts +8 -0
  81. package/dist/db/settings-repo.d.ts.map +1 -0
  82. package/dist/db/settings-repo.js +27 -0
  83. package/dist/db/tasks-repo.d.ts +26 -0
  84. package/dist/db/tasks-repo.d.ts.map +1 -0
  85. package/dist/db/tasks-repo.js +120 -0
  86. package/dist/db/templates-repo.d.ts +17 -0
  87. package/dist/db/templates-repo.d.ts.map +1 -0
  88. package/dist/db/templates-repo.js +57 -0
  89. package/dist/history.d.ts +53 -0
  90. package/dist/history.d.ts.map +1 -0
  91. package/dist/history.js +57 -0
  92. package/dist/index.d.ts +156 -0
  93. package/dist/index.d.ts.map +1 -0
  94. package/dist/index.js +2159 -0
  95. package/dist/notifications.d.ts +45 -0
  96. package/dist/notifications.d.ts.map +1 -0
  97. package/dist/notifications.js +135 -0
  98. package/dist/rpc.d.ts +2186 -0
  99. package/dist/rpc.d.ts.map +1 -0
  100. package/dist/rpc.js +924 -0
  101. package/dist/schtasks.d.ts +32 -0
  102. package/dist/schtasks.d.ts.map +1 -0
  103. package/dist/schtasks.js +45 -0
  104. package/dist/server.d.ts +106 -0
  105. package/dist/server.d.ts.map +1 -0
  106. package/dist/server.js +1668 -0
  107. package/dist/settings.d.ts +66 -0
  108. package/dist/settings.d.ts.map +1 -0
  109. package/dist/settings.js +137 -0
  110. package/dist/shared/jobs-view.d.ts +21 -0
  111. package/dist/shared/jobs-view.d.ts.map +1 -0
  112. package/dist/shared/jobs-view.js +28 -0
  113. package/dist/skill.d.ts +15 -0
  114. package/dist/skill.d.ts.map +1 -0
  115. package/dist/skill.js +93 -0
  116. package/dist/task-transfer.d.ts +176 -0
  117. package/dist/task-transfer.d.ts.map +1 -0
  118. package/dist/task-transfer.js +442 -0
  119. package/dist/templates.d.ts +57 -0
  120. package/dist/templates.d.ts.map +1 -0
  121. package/dist/templates.js +16 -0
  122. package/dist/types.d.ts +78 -0
  123. package/dist/types.d.ts.map +1 -0
  124. package/dist/types.js +88 -0
  125. package/dist/version.d.ts +8 -0
  126. package/dist/version.d.ts.map +1 -0
  127. package/dist/version.js +27 -0
  128. package/dist/workspaces.d.ts +55 -0
  129. package/dist/workspaces.d.ts.map +1 -0
  130. package/dist/workspaces.js +183 -0
  131. package/docs/ARCHITECTURE.md +314 -0
  132. package/docs/FEATURES.md +300 -0
  133. package/docs/MIGRATION.md +266 -0
  134. package/docs/dashboard.png +0 -0
  135. package/gui-experimental.cjs +2 -0
  136. package/index.js +1 -0
  137. package/package.json +94 -4
  138. package/scripts/demo-dashboard.mjs +199 -0
  139. package/skills/scheduled-job-best-practices/SKILL.md +155 -0
  140. package/skills/scheduled-job-best-practices/references/recipes.md +123 -0
  141. package/src/core/analytics.ts +378 -0
  142. package/src/core/cron-to-schtasks.ts +269 -0
  143. package/src/core/dry-run.ts +315 -0
  144. package/src/core/file-watcher.ts +171 -0
  145. package/src/core/lock.ts +134 -0
  146. package/src/core/matrix.ts +907 -0
  147. package/src/core/ps-wrapper.ts +572 -0
  148. package/src/core/record-history.ts +493 -0
  149. package/src/core/retention.ts +141 -0
  150. package/src/core/scheduler/index.ts +44 -0
  151. package/src/core/scheduler/linux.ts +125 -0
  152. package/src/core/scheduler/logs.ts +37 -0
  153. package/src/core/scheduler/mac.ts +222 -0
  154. package/src/core/scheduler/posix.ts +111 -0
  155. package/src/core/scheduler/registry.ts +93 -0
  156. package/src/core/scheduler/types.ts +67 -0
  157. package/src/core/scheduler/windows.ts +469 -0
  158. package/src/core/wrappers/bash.ts +282 -0
  159. package/src/db/history-repo.ts +396 -0
  160. package/src/db/index.ts +166 -0
  161. package/src/db/metrics-repo.ts +158 -0
  162. package/src/db/migrate.ts +322 -0
  163. package/src/db/recovery.ts +46 -0
  164. package/src/db/schema.ts +109 -0
  165. package/src/db/settings-repo.ts +31 -0
  166. package/src/db/tasks-repo.ts +162 -0
  167. package/src/db/templates-repo.ts +77 -0
  168. package/src/gui.tsx +2868 -0
  169. package/src/history.ts +107 -0
  170. package/src/index.ts +2768 -0
  171. package/src/notifications.ts +174 -0
  172. package/src/rpc.ts +999 -0
  173. package/src/schtasks.ts +75 -0
  174. package/src/server.ts +1879 -0
  175. package/src/settings.ts +228 -0
  176. package/src/shared/jobs-view.ts +38 -0
  177. package/src/skill.ts +113 -0
  178. package/src/task-transfer.ts +648 -0
  179. package/src/templates.ts +67 -0
  180. package/src/tui.tsx +46 -0
  181. package/src/types.ts +145 -0
  182. package/src/version.ts +27 -0
  183. package/src/workspaces.ts +236 -0
package/dist/rpc.d.ts ADDED
@@ -0,0 +1,2186 @@
1
+ export declare const SchedulerRpc: {
2
+ readonly id: "opencode-windows-scheduler";
3
+ readonly methods: {
4
+ readonly get_tasks: {
5
+ readonly input: {
6
+ readonly type: "object";
7
+ readonly properties: {};
8
+ readonly additionalProperties: false;
9
+ };
10
+ readonly output: {
11
+ readonly type: "object";
12
+ readonly properties: {
13
+ readonly tasks: {
14
+ readonly type: "array";
15
+ readonly items: {
16
+ readonly type: "object";
17
+ readonly properties: {
18
+ readonly name: {
19
+ readonly type: "string";
20
+ };
21
+ readonly schedule: {
22
+ readonly type: "string";
23
+ };
24
+ readonly status: {
25
+ readonly type: "string";
26
+ };
27
+ readonly nextRun: {
28
+ readonly type: readonly ["string", "null"];
29
+ };
30
+ /** LLM-модель задачи (null — модель OpenCode по умолчанию). */
31
+ readonly model: {
32
+ readonly type: readonly ["string", "null"];
33
+ };
34
+ /** Приоритет задачи 0..10 (10 — наивысший). */
35
+ readonly priority: {
36
+ readonly type: readonly ["number", "null"];
37
+ };
38
+ /** Количество повторов при ошибке (опционально). */
39
+ readonly retryCount: {
40
+ readonly type: readonly ["number", "null"];
41
+ };
42
+ /** Задержка перед повтором в секундах (опционально). */
43
+ readonly retryDelay: {
44
+ readonly type: readonly ["number", "null"];
45
+ };
46
+ /** Проверочная команда после успешного ответа ИИ. */
47
+ readonly qualityGate: {
48
+ readonly type: readonly ["string", "null"];
49
+ };
50
+ /** Задача, запускаемая при успехе. */
51
+ readonly nextTaskOnSuccess: {
52
+ readonly type: readonly ["string", "null"];
53
+ };
54
+ /** Компенсирующая задача, запускаемая при ошибке. */
55
+ readonly nextTaskOnError: {
56
+ readonly type: readonly ["string", "null"];
57
+ };
58
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
59
+ readonly dependsOn: {
60
+ readonly type: "array";
61
+ readonly items: {
62
+ readonly type: "string";
63
+ };
64
+ };
65
+ /** Промпт задачи (для заполнения формы редактирования). */
66
+ readonly prompt: {
67
+ readonly type: "string";
68
+ };
69
+ /** Pre-flight команда (null — не задана). */
70
+ readonly beforeScript: {
71
+ readonly type: readonly ["string", "null"];
72
+ };
73
+ /** Post-flight команда (null — не задана). */
74
+ readonly afterScript: {
75
+ readonly type: readonly ["string", "null"];
76
+ };
77
+ /** Тип триггера: "cron" (по умолчанию), "file" или "mcp-event". */
78
+ readonly triggerType: {
79
+ readonly type: readonly ["string", "null"];
80
+ };
81
+ /** Параметры MCP-события (null — не MCP-триггер). */
82
+ readonly mcpEvent: {
83
+ readonly type: readonly ["object", "null"];
84
+ readonly properties: {
85
+ readonly server: {
86
+ readonly type: "string";
87
+ };
88
+ readonly event: {
89
+ readonly type: "string";
90
+ };
91
+ readonly filter: {
92
+ readonly type: "string";
93
+ };
94
+ };
95
+ readonly required: readonly ["server", "event"];
96
+ };
97
+ /** Путь к файлу/папке для файлового триггера. */
98
+ readonly watchPath: {
99
+ readonly type: readonly ["string", "null"];
100
+ };
101
+ /** Рабочая директория задачи (null — папка проекта по умолчанию). */
102
+ readonly workingDirectory: {
103
+ readonly type: readonly ["string", "null"];
104
+ };
105
+ /** Привязка к multi-repo workspace (null — без workspace). */
106
+ readonly workspaceId: {
107
+ readonly type: readonly ["string", "null"];
108
+ };
109
+ /** Имя workspace для отображения (null — без workspace). */
110
+ readonly workspaceName: {
111
+ readonly type: readonly ["string", "null"];
112
+ };
113
+ /** Цвет маркера workspace. */
114
+ readonly workspaceColor: {
115
+ readonly type: readonly ["string", "null"];
116
+ };
117
+ /** Белый список инструментов задачи (role-scoped, null — без ограничений). */
118
+ readonly allowedTools: {
119
+ readonly type: readonly ["array", "null"];
120
+ readonly items: {
121
+ readonly type: "string";
122
+ };
123
+ };
124
+ /** Чёрный список инструментов задачи (приоритет над allowedTools). */
125
+ readonly deniedTools: {
126
+ readonly type: readonly ["array", "null"];
127
+ readonly items: {
128
+ readonly type: "string";
129
+ };
130
+ };
131
+ /** Matrix-настройки родителя (null — обычная задача). */
132
+ readonly matrix: {
133
+ readonly type: readonly ["object", "null"];
134
+ readonly properties: {
135
+ readonly workspaceIds: {
136
+ readonly type: "array";
137
+ readonly items: {
138
+ readonly type: "string";
139
+ };
140
+ };
141
+ readonly strategy: {
142
+ readonly type: readonly ["string", "null"];
143
+ };
144
+ readonly failureMode: {
145
+ readonly type: readonly ["string", "null"];
146
+ };
147
+ readonly aggregation: {
148
+ readonly type: readonly ["string", "null"];
149
+ };
150
+ readonly createAggregator: {
151
+ readonly type: readonly ["boolean", "null"];
152
+ };
153
+ /** Лимит одновременных клонов матрицы (Спринт 17). */
154
+ readonly concurrency: {
155
+ readonly type: readonly ["number", "null"];
156
+ };
157
+ /** Per-workspace переопределения промпта/модели/хуков/QG (Спринт 17). */
158
+ readonly overrides: {
159
+ readonly type: readonly ["object", "null"];
160
+ readonly additionalProperties: {
161
+ readonly type: "object";
162
+ readonly properties: {
163
+ readonly prompt: {
164
+ readonly type: readonly ["string", "null"];
165
+ };
166
+ readonly model: {
167
+ readonly type: readonly ["string", "null"];
168
+ };
169
+ readonly qualityGate: {
170
+ readonly type: readonly ["string", "null"];
171
+ };
172
+ readonly beforeScript: {
173
+ readonly type: readonly ["string", "null"];
174
+ };
175
+ readonly afterScript: {
176
+ readonly type: readonly ["string", "null"];
177
+ };
178
+ };
179
+ };
180
+ };
181
+ };
182
+ readonly required: readonly ["workspaceIds"];
183
+ };
184
+ /** Для клона матрицы — имя родителя (null — не клон). */
185
+ readonly matrixParentId: {
186
+ readonly type: readonly ["string", "null"];
187
+ };
188
+ /** true — задача является родителем матрицы. */
189
+ readonly isMatrixParent: {
190
+ readonly type: "boolean";
191
+ };
192
+ /** Агрегат по клонам для родителя (null — не матрица). */
193
+ readonly matrixSummary: {
194
+ readonly type: readonly ["object", "null"];
195
+ readonly properties: {
196
+ readonly totalCount: {
197
+ readonly type: "number";
198
+ };
199
+ readonly successCount: {
200
+ readonly type: "number";
201
+ };
202
+ readonly errorCount: {
203
+ readonly type: "number";
204
+ };
205
+ readonly pendingCount: {
206
+ readonly type: "number";
207
+ };
208
+ readonly status: {
209
+ readonly type: "string";
210
+ };
211
+ readonly message: {
212
+ readonly type: "string";
213
+ };
214
+ };
215
+ };
216
+ };
217
+ readonly required: readonly ["name", "schedule", "status"];
218
+ };
219
+ };
220
+ };
221
+ readonly required: readonly ["tasks"];
222
+ };
223
+ };
224
+ readonly create_task: {
225
+ readonly input: {
226
+ readonly type: "object";
227
+ readonly properties: {
228
+ readonly name: {
229
+ readonly type: "string";
230
+ };
231
+ readonly schedule: {
232
+ readonly type: "string";
233
+ };
234
+ readonly prompt: {
235
+ readonly type: "string";
236
+ };
237
+ /** LLM-модель (например, anthropic/claude-3-5-sonnet). */
238
+ readonly model: {
239
+ readonly type: "string";
240
+ };
241
+ /** Приоритет задачи 0..10 (10 — наивысший). */
242
+ readonly priority: {
243
+ readonly type: "number";
244
+ };
245
+ /** Сколько раз повторять при ошибке (по умолчанию 0). */
246
+ readonly retryCount: {
247
+ readonly type: "number";
248
+ };
249
+ /** Задержка перед повтором в секундах (по умолчанию 60). */
250
+ readonly retryDelay: {
251
+ readonly type: "number";
252
+ };
253
+ /** Проверочная команда (Quality Gate), выполняется после успешного ответа ИИ. */
254
+ readonly qualityGate: {
255
+ readonly type: "string";
256
+ };
257
+ /** Имя задачи, запускаемой при успехе. */
258
+ readonly nextTaskOnSuccess: {
259
+ readonly type: "string";
260
+ };
261
+ /** Имя компенсирующей задачи, запускаемой при ошибке. */
262
+ readonly nextTaskOnError: {
263
+ readonly type: "string";
264
+ };
265
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
266
+ readonly dependsOn: {
267
+ readonly type: "array";
268
+ readonly items: {
269
+ readonly type: "string";
270
+ };
271
+ };
272
+ /** Команда перед запуском (pre-flight). */
273
+ readonly beforeScript: {
274
+ readonly type: "string";
275
+ };
276
+ /** Команда после запуска (post-flight). */
277
+ readonly afterScript: {
278
+ readonly type: "string";
279
+ };
280
+ /** Тип триггера: "cron" (по умолчанию), "file" или "mcp-event". */
281
+ readonly triggerType: {
282
+ readonly type: "string";
283
+ };
284
+ /** Параметры MCP-события. */
285
+ readonly mcpEvent: {
286
+ readonly type: readonly ["object", "null"];
287
+ readonly properties: {
288
+ readonly server: {
289
+ readonly type: "string";
290
+ };
291
+ readonly event: {
292
+ readonly type: "string";
293
+ };
294
+ readonly filter: {
295
+ readonly type: "string";
296
+ };
297
+ };
298
+ readonly required: readonly ["server", "event"];
299
+ };
300
+ /** Путь к файлу/папке для файлового триггера. */
301
+ readonly watchPath: {
302
+ readonly type: "string";
303
+ };
304
+ /** Привязка к multi-repo workspace. */
305
+ readonly workspaceId: {
306
+ readonly type: "string";
307
+ };
308
+ /** Рабочая директория задачи (по умолчанию — папка проекта). */
309
+ readonly workingDirectory: {
310
+ readonly type: "string";
311
+ };
312
+ /** Белый список инструментов задачи (role-scoped, metadata-only). Пустой массив запрещён. */
313
+ readonly allowedTools: {
314
+ readonly type: "array";
315
+ readonly items: {
316
+ readonly type: "string";
317
+ };
318
+ };
319
+ /** Чёрный список инструментов задачи (приоритет над allowedTools). Metadata-only. */
320
+ readonly deniedTools: {
321
+ readonly type: "array";
322
+ readonly items: {
323
+ readonly type: "string";
324
+ };
325
+ };
326
+ /** Matrix (fan-out): раскладывает задачу-шаблон на клоны по workspace. */
327
+ readonly matrix: {
328
+ readonly type: readonly ["object", "null"];
329
+ readonly properties: {
330
+ readonly workspaceIds: {
331
+ readonly type: "array";
332
+ readonly items: {
333
+ readonly type: "string";
334
+ };
335
+ };
336
+ readonly strategy: {
337
+ readonly type: readonly ["string", "null"];
338
+ };
339
+ readonly failureMode: {
340
+ readonly type: readonly ["string", "null"];
341
+ };
342
+ readonly aggregation: {
343
+ readonly type: readonly ["string", "null"];
344
+ };
345
+ readonly createAggregator: {
346
+ readonly type: readonly ["boolean", "null"];
347
+ };
348
+ /** Лимит одновременных клонов матрицы (Спринт 17). */
349
+ readonly concurrency: {
350
+ readonly type: readonly ["number", "null"];
351
+ };
352
+ /** Per-workspace переопределения промпта/модели/хуков/QG (Спринт 17). */
353
+ readonly overrides: {
354
+ readonly type: readonly ["object", "null"];
355
+ readonly additionalProperties: {
356
+ readonly type: "object";
357
+ readonly properties: {
358
+ readonly prompt: {
359
+ readonly type: readonly ["string", "null"];
360
+ };
361
+ readonly model: {
362
+ readonly type: readonly ["string", "null"];
363
+ };
364
+ readonly qualityGate: {
365
+ readonly type: readonly ["string", "null"];
366
+ };
367
+ readonly beforeScript: {
368
+ readonly type: readonly ["string", "null"];
369
+ };
370
+ readonly afterScript: {
371
+ readonly type: readonly ["string", "null"];
372
+ };
373
+ };
374
+ };
375
+ };
376
+ };
377
+ readonly required: readonly ["workspaceIds"];
378
+ };
379
+ };
380
+ readonly required: readonly ["name", "schedule", "prompt"];
381
+ };
382
+ readonly output: {
383
+ readonly type: "object";
384
+ readonly properties: {
385
+ readonly success: {
386
+ readonly type: "boolean";
387
+ };
388
+ readonly message: {
389
+ readonly type: "string";
390
+ };
391
+ };
392
+ readonly required: readonly ["success", "message"];
393
+ };
394
+ };
395
+ readonly delete_task: {
396
+ readonly input: {
397
+ readonly type: "object";
398
+ readonly properties: {
399
+ readonly name: {
400
+ readonly type: "string";
401
+ };
402
+ };
403
+ readonly required: readonly ["name"];
404
+ };
405
+ readonly output: {
406
+ readonly type: "object";
407
+ readonly properties: {
408
+ readonly success: {
409
+ readonly type: "boolean";
410
+ };
411
+ readonly message: {
412
+ readonly type: "string";
413
+ };
414
+ };
415
+ readonly required: readonly ["success", "message"];
416
+ };
417
+ };
418
+ readonly run_task: {
419
+ readonly input: {
420
+ readonly type: "object";
421
+ readonly properties: {
422
+ readonly name: {
423
+ readonly type: "string";
424
+ };
425
+ };
426
+ readonly required: readonly ["name"];
427
+ };
428
+ readonly output: {
429
+ readonly type: "object";
430
+ readonly properties: {
431
+ readonly success: {
432
+ readonly type: "boolean";
433
+ };
434
+ readonly message: {
435
+ readonly type: "string";
436
+ };
437
+ };
438
+ readonly required: readonly ["success", "message"];
439
+ };
440
+ };
441
+ readonly pause_task: {
442
+ readonly input: {
443
+ readonly type: "object";
444
+ readonly properties: {
445
+ readonly name: {
446
+ readonly type: "string";
447
+ };
448
+ };
449
+ readonly required: readonly ["name"];
450
+ };
451
+ readonly output: {
452
+ readonly type: "object";
453
+ readonly properties: {
454
+ readonly success: {
455
+ readonly type: "boolean";
456
+ };
457
+ readonly message: {
458
+ readonly type: "string";
459
+ };
460
+ };
461
+ readonly required: readonly ["success", "message"];
462
+ };
463
+ };
464
+ readonly resume_task: {
465
+ readonly input: {
466
+ readonly type: "object";
467
+ readonly properties: {
468
+ readonly name: {
469
+ readonly type: "string";
470
+ };
471
+ };
472
+ readonly required: readonly ["name"];
473
+ };
474
+ readonly output: {
475
+ readonly type: "object";
476
+ readonly properties: {
477
+ readonly success: {
478
+ readonly type: "boolean";
479
+ };
480
+ readonly message: {
481
+ readonly type: "string";
482
+ };
483
+ };
484
+ readonly required: readonly ["success", "message"];
485
+ };
486
+ };
487
+ readonly update_task: {
488
+ readonly input: {
489
+ readonly type: "object";
490
+ readonly properties: {
491
+ readonly name: {
492
+ readonly type: "string";
493
+ };
494
+ readonly newSchedule: {
495
+ readonly type: "string";
496
+ };
497
+ readonly newPrompt: {
498
+ readonly type: "string";
499
+ };
500
+ /** LLM-модель задачи. */
501
+ readonly model: {
502
+ readonly type: "string";
503
+ };
504
+ /** Приоритет задачи 0..10. */
505
+ readonly priority: {
506
+ readonly type: "number";
507
+ };
508
+ readonly retryCount: {
509
+ readonly type: "number";
510
+ };
511
+ readonly retryDelay: {
512
+ readonly type: "number";
513
+ };
514
+ readonly qualityGate: {
515
+ readonly type: "string";
516
+ };
517
+ readonly nextTaskOnSuccess: {
518
+ readonly type: "string";
519
+ };
520
+ readonly nextTaskOnError: {
521
+ readonly type: "string";
522
+ };
523
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
524
+ readonly dependsOn: {
525
+ readonly type: "array";
526
+ readonly items: {
527
+ readonly type: "string";
528
+ };
529
+ };
530
+ /** Команда перед запуском (pre-flight). */
531
+ readonly beforeScript: {
532
+ readonly type: "string";
533
+ };
534
+ /** Команда после запуска (post-flight). */
535
+ readonly afterScript: {
536
+ readonly type: "string";
537
+ };
538
+ /** Тип триггера: "cron" (по умолчанию), "file" или "mcp-event". */
539
+ readonly triggerType: {
540
+ readonly type: "string";
541
+ };
542
+ /** Параметры MCP-события. */
543
+ readonly mcpEvent: {
544
+ readonly type: readonly ["object", "null"];
545
+ readonly properties: {
546
+ readonly server: {
547
+ readonly type: "string";
548
+ };
549
+ readonly event: {
550
+ readonly type: "string";
551
+ };
552
+ readonly filter: {
553
+ readonly type: "string";
554
+ };
555
+ };
556
+ readonly required: readonly ["server", "event"];
557
+ };
558
+ /** Путь к файлу/папке для файлового триггера. */
559
+ readonly watchPath: {
560
+ readonly type: "string";
561
+ };
562
+ /** Привязка к multi-repo workspace. */
563
+ readonly workspaceId: {
564
+ readonly type: "string";
565
+ };
566
+ /** Рабочая директория задачи (по умолчанию — папка проекта). */
567
+ readonly workingDirectory: {
568
+ readonly type: "string";
569
+ };
570
+ /** Белый список инструментов задачи (role-scoped). Пустой массив запрещён. */
571
+ readonly allowedTools: {
572
+ readonly type: "array";
573
+ readonly items: {
574
+ readonly type: "string";
575
+ };
576
+ };
577
+ /** Чёрный список инструментов задачи (приоритет над allowedTools). */
578
+ readonly deniedTools: {
579
+ readonly type: "array";
580
+ readonly items: {
581
+ readonly type: "string";
582
+ };
583
+ };
584
+ /** Matrix (fan-out): раскладывает задачу-шаблон на клоны по workspace. */
585
+ readonly matrix: {
586
+ readonly type: readonly ["object", "null"];
587
+ readonly properties: {
588
+ readonly workspaceIds: {
589
+ readonly type: "array";
590
+ readonly items: {
591
+ readonly type: "string";
592
+ };
593
+ };
594
+ readonly strategy: {
595
+ readonly type: readonly ["string", "null"];
596
+ };
597
+ readonly failureMode: {
598
+ readonly type: readonly ["string", "null"];
599
+ };
600
+ readonly aggregation: {
601
+ readonly type: readonly ["string", "null"];
602
+ };
603
+ readonly createAggregator: {
604
+ readonly type: readonly ["boolean", "null"];
605
+ };
606
+ /** Лимит одновременных клонов матрицы (Спринт 17). */
607
+ readonly concurrency: {
608
+ readonly type: readonly ["number", "null"];
609
+ };
610
+ /** Per-workspace переопределения промпта/модели/хуков/QG (Спринт 17). */
611
+ readonly overrides: {
612
+ readonly type: readonly ["object", "null"];
613
+ readonly additionalProperties: {
614
+ readonly type: "object";
615
+ readonly properties: {
616
+ readonly prompt: {
617
+ readonly type: readonly ["string", "null"];
618
+ };
619
+ readonly model: {
620
+ readonly type: readonly ["string", "null"];
621
+ };
622
+ readonly qualityGate: {
623
+ readonly type: readonly ["string", "null"];
624
+ };
625
+ readonly beforeScript: {
626
+ readonly type: readonly ["string", "null"];
627
+ };
628
+ readonly afterScript: {
629
+ readonly type: readonly ["string", "null"];
630
+ };
631
+ };
632
+ };
633
+ };
634
+ };
635
+ readonly required: readonly ["workspaceIds"];
636
+ };
637
+ };
638
+ readonly required: readonly ["name"];
639
+ };
640
+ readonly output: {
641
+ readonly type: "object";
642
+ readonly properties: {
643
+ readonly success: {
644
+ readonly type: "boolean";
645
+ };
646
+ readonly message: {
647
+ readonly type: "string";
648
+ };
649
+ };
650
+ readonly required: readonly ["success", "message"];
651
+ };
652
+ };
653
+ readonly get_task_logs: {
654
+ readonly input: {
655
+ readonly type: "object";
656
+ readonly properties: {
657
+ readonly name: {
658
+ readonly type: "string";
659
+ };
660
+ };
661
+ readonly required: readonly ["name"];
662
+ };
663
+ readonly output: {
664
+ readonly type: "object";
665
+ readonly properties: {
666
+ readonly success: {
667
+ readonly type: "boolean";
668
+ };
669
+ readonly logs: {
670
+ readonly type: "string";
671
+ };
672
+ readonly error: {
673
+ readonly type: "string";
674
+ };
675
+ };
676
+ readonly required: readonly ["success", "logs"];
677
+ };
678
+ };
679
+ readonly get_history: {
680
+ readonly input: {
681
+ readonly type: "object";
682
+ readonly properties: {
683
+ readonly limit: {
684
+ readonly type: "number";
685
+ };
686
+ };
687
+ readonly additionalProperties: false;
688
+ };
689
+ readonly output: {
690
+ readonly type: "object";
691
+ readonly properties: {
692
+ readonly records: {
693
+ readonly type: "array";
694
+ readonly items: {
695
+ readonly type: "object";
696
+ readonly properties: {
697
+ readonly taskName: {
698
+ readonly type: "string";
699
+ };
700
+ readonly status: {
701
+ readonly type: "string";
702
+ };
703
+ readonly startedAt: {
704
+ readonly type: "string";
705
+ };
706
+ readonly finishedAt: {
707
+ readonly type: "string";
708
+ };
709
+ readonly durationMs: {
710
+ readonly type: "number";
711
+ };
712
+ readonly error: {
713
+ readonly type: readonly ["string", "null"];
714
+ };
715
+ readonly nextTask: {
716
+ readonly type: readonly ["string", "null"];
717
+ };
718
+ /** LLM-модель, использованная в запуске. */
719
+ readonly model: {
720
+ readonly type: readonly ["string", "null"];
721
+ };
722
+ /** Итог pre-flight: success / error / skipped. */
723
+ readonly preFlightStatus: {
724
+ readonly type: readonly ["string", "null"];
725
+ };
726
+ /** Итог post-flight: success / error / skipped. */
727
+ readonly postFlightStatus: {
728
+ readonly type: readonly ["string", "null"];
729
+ };
730
+ /** Ограничения инструментов, действовавшие на момент запуска. */
731
+ readonly allowedTools: {
732
+ readonly type: readonly ["array", "null"];
733
+ readonly items: {
734
+ readonly type: "string";
735
+ };
736
+ };
737
+ readonly deniedTools: {
738
+ readonly type: readonly ["array", "null"];
739
+ readonly items: {
740
+ readonly type: "string";
741
+ };
742
+ };
743
+ };
744
+ readonly required: readonly ["taskName", "status", "startedAt", "finishedAt", "durationMs", "error"];
745
+ };
746
+ };
747
+ };
748
+ readonly required: readonly ["records"];
749
+ };
750
+ };
751
+ readonly get_metrics: {
752
+ readonly input: {
753
+ readonly type: "object";
754
+ readonly properties: {};
755
+ readonly additionalProperties: false;
756
+ };
757
+ readonly output: {
758
+ readonly type: "object";
759
+ readonly properties: {
760
+ readonly total: {
761
+ readonly type: "number";
762
+ };
763
+ readonly success: {
764
+ readonly type: "number";
765
+ };
766
+ readonly error: {
767
+ readonly type: "number";
768
+ };
769
+ };
770
+ readonly required: readonly ["total", "success", "error"];
771
+ };
772
+ };
773
+ readonly get_dashboard_port: {
774
+ readonly input: {
775
+ readonly type: "object";
776
+ readonly properties: {};
777
+ readonly additionalProperties: false;
778
+ };
779
+ readonly output: {
780
+ readonly type: "object";
781
+ readonly properties: {
782
+ /** Фактический порт дашборда (null, если сервер ещё не поднялся). */
783
+ readonly port: {
784
+ readonly type: readonly ["number", "null"];
785
+ };
786
+ };
787
+ readonly required: readonly ["port"];
788
+ };
789
+ };
790
+ readonly get_platform: {
791
+ readonly input: {
792
+ readonly type: "object";
793
+ readonly properties: {};
794
+ readonly additionalProperties: false;
795
+ };
796
+ readonly output: {
797
+ readonly type: "object";
798
+ readonly properties: {
799
+ /** process.platform: 'win32' | 'darwin' | 'linux' | ... */
800
+ readonly platform: {
801
+ readonly type: "string";
802
+ };
803
+ /** Название планировщика для заголовка GUI. */
804
+ readonly title: {
805
+ readonly type: "string";
806
+ };
807
+ };
808
+ readonly required: readonly ["platform", "title"];
809
+ };
810
+ };
811
+ readonly dry_run: {
812
+ readonly input: {
813
+ readonly type: "object";
814
+ readonly properties: {
815
+ readonly taskName: {
816
+ readonly type: "string";
817
+ };
818
+ };
819
+ readonly required: readonly ["taskName"];
820
+ readonly additionalProperties: false;
821
+ };
822
+ readonly output: {
823
+ readonly type: "object";
824
+ readonly properties: {
825
+ readonly success: {
826
+ readonly type: "boolean";
827
+ };
828
+ readonly taskName: {
829
+ readonly type: "string";
830
+ };
831
+ /** Упорядоченный список задач конвейера (топологический порядок зависимостей). */
832
+ readonly tasks: {
833
+ readonly type: "array";
834
+ readonly items: {
835
+ readonly type: "object";
836
+ readonly properties: {
837
+ readonly name: {
838
+ readonly type: "string";
839
+ };
840
+ /** Порядок выполнения в конвейере (0 — первый). */
841
+ readonly order: {
842
+ readonly type: "number";
843
+ };
844
+ /** Триггер запуска: manual (первая в конвейере), cron или dag (по dependsOn). */
845
+ readonly trigger: {
846
+ readonly type: "string";
847
+ };
848
+ /** Рабочая директория, в которой будет выполнена задача. */
849
+ readonly cwd: {
850
+ readonly type: "string";
851
+ };
852
+ /** Команда, которую фактически выполнит обёртка (без реального запуска). */
853
+ readonly command: {
854
+ readonly type: "string";
855
+ };
856
+ /** Workspace задачи (null — без workspace). */
857
+ readonly workspace: {
858
+ readonly type: readonly ["object", "null"];
859
+ readonly properties: {
860
+ readonly name: {
861
+ readonly type: "string";
862
+ };
863
+ readonly path: {
864
+ readonly type: "string";
865
+ };
866
+ };
867
+ readonly required: readonly ["name", "path"];
868
+ };
869
+ /** Pre-flight команда (null — не задана). */
870
+ readonly preFlight: {
871
+ readonly type: readonly ["string", "null"];
872
+ };
873
+ /** Post-flight команда (null — не задана). */
874
+ readonly postFlight: {
875
+ readonly type: readonly ["string", "null"];
876
+ };
877
+ /** Quality Gate (null — не задан). */
878
+ readonly qualityGate: {
879
+ readonly type: readonly ["string", "null"];
880
+ };
881
+ /** Ограничения инструментов (null — без ограничений). */
882
+ readonly roleScoped: {
883
+ readonly type: readonly ["object", "null"];
884
+ readonly properties: {
885
+ readonly allowed: {
886
+ readonly type: "array";
887
+ readonly items: {
888
+ readonly type: "string";
889
+ };
890
+ };
891
+ readonly denied: {
892
+ readonly type: "array";
893
+ readonly items: {
894
+ readonly type: "string";
895
+ };
896
+ };
897
+ };
898
+ };
899
+ /** Оценка длительности по последним запускам (null — нет истории). */
900
+ readonly estimatedDurationSec: {
901
+ readonly type: readonly ["number", "null"];
902
+ };
903
+ /** Оценка стоимости по последним запускам (null — нет истории). */
904
+ readonly estimatedCostUsd: {
905
+ readonly type: readonly ["number", "null"];
906
+ };
907
+ /** Оценка токенов по последним запускам (null — нет истории). */
908
+ readonly estimatedTokens: {
909
+ readonly type: readonly ["number", "null"];
910
+ };
911
+ /** Для клона матрицы — имя родителя-шаблона (Спринт 15). */
912
+ readonly matrixParent: {
913
+ readonly type: "string";
914
+ };
915
+ };
916
+ readonly required: readonly ["name", "order", "trigger", "cwd", "command"];
917
+ };
918
+ };
919
+ /** Суммарные оценки по всем задачам. */
920
+ readonly totals: {
921
+ readonly type: "object";
922
+ readonly properties: {
923
+ readonly estimatedDurationSec: {
924
+ readonly type: readonly ["number", "null"];
925
+ };
926
+ readonly estimatedCostUsd: {
927
+ readonly type: readonly ["number", "null"];
928
+ };
929
+ readonly estimatedTokens: {
930
+ readonly type: readonly ["number", "null"];
931
+ };
932
+ };
933
+ readonly required: readonly [];
934
+ };
935
+ /** Предупреждения: опасные команды, недоступные пути, отсутствие истории. */
936
+ readonly warnings: {
937
+ readonly type: "array";
938
+ readonly items: {
939
+ readonly type: "string";
940
+ };
941
+ };
942
+ readonly error: {
943
+ readonly type: "string";
944
+ };
945
+ };
946
+ readonly required: readonly ["success", "taskName", "tasks", "warnings"];
947
+ };
948
+ };
949
+ readonly dry_run_all: {
950
+ readonly input: {
951
+ readonly type: "object";
952
+ readonly properties: {};
953
+ readonly additionalProperties: false;
954
+ };
955
+ readonly output: {
956
+ readonly type: "object";
957
+ readonly properties: {
958
+ readonly success: {
959
+ readonly type: "boolean";
960
+ };
961
+ readonly reports: {
962
+ readonly type: "array";
963
+ readonly items: {
964
+ readonly type: "object";
965
+ readonly properties: {
966
+ readonly success: {
967
+ readonly type: "boolean";
968
+ };
969
+ readonly taskName: {
970
+ readonly type: "string";
971
+ };
972
+ /** Упорядоченный список задач конвейера (топологический порядок зависимостей). */
973
+ readonly tasks: {
974
+ readonly type: "array";
975
+ readonly items: {
976
+ readonly type: "object";
977
+ readonly properties: {
978
+ readonly name: {
979
+ readonly type: "string";
980
+ };
981
+ /** Порядок выполнения в конвейере (0 — первый). */
982
+ readonly order: {
983
+ readonly type: "number";
984
+ };
985
+ /** Триггер запуска: manual (первая в конвейере), cron или dag (по dependsOn). */
986
+ readonly trigger: {
987
+ readonly type: "string";
988
+ };
989
+ /** Рабочая директория, в которой будет выполнена задача. */
990
+ readonly cwd: {
991
+ readonly type: "string";
992
+ };
993
+ /** Команда, которую фактически выполнит обёртка (без реального запуска). */
994
+ readonly command: {
995
+ readonly type: "string";
996
+ };
997
+ /** Workspace задачи (null — без workspace). */
998
+ readonly workspace: {
999
+ readonly type: readonly ["object", "null"];
1000
+ readonly properties: {
1001
+ readonly name: {
1002
+ readonly type: "string";
1003
+ };
1004
+ readonly path: {
1005
+ readonly type: "string";
1006
+ };
1007
+ };
1008
+ readonly required: readonly ["name", "path"];
1009
+ };
1010
+ /** Pre-flight команда (null — не задана). */
1011
+ readonly preFlight: {
1012
+ readonly type: readonly ["string", "null"];
1013
+ };
1014
+ /** Post-flight команда (null — не задана). */
1015
+ readonly postFlight: {
1016
+ readonly type: readonly ["string", "null"];
1017
+ };
1018
+ /** Quality Gate (null — не задан). */
1019
+ readonly qualityGate: {
1020
+ readonly type: readonly ["string", "null"];
1021
+ };
1022
+ /** Ограничения инструментов (null — без ограничений). */
1023
+ readonly roleScoped: {
1024
+ readonly type: readonly ["object", "null"];
1025
+ readonly properties: {
1026
+ readonly allowed: {
1027
+ readonly type: "array";
1028
+ readonly items: {
1029
+ readonly type: "string";
1030
+ };
1031
+ };
1032
+ readonly denied: {
1033
+ readonly type: "array";
1034
+ readonly items: {
1035
+ readonly type: "string";
1036
+ };
1037
+ };
1038
+ };
1039
+ };
1040
+ /** Оценка длительности по последним запускам (null — нет истории). */
1041
+ readonly estimatedDurationSec: {
1042
+ readonly type: readonly ["number", "null"];
1043
+ };
1044
+ /** Оценка стоимости по последним запускам (null — нет истории). */
1045
+ readonly estimatedCostUsd: {
1046
+ readonly type: readonly ["number", "null"];
1047
+ };
1048
+ /** Оценка токенов по последним запускам (null — нет истории). */
1049
+ readonly estimatedTokens: {
1050
+ readonly type: readonly ["number", "null"];
1051
+ };
1052
+ /** Для клона матрицы — имя родителя-шаблона (Спринт 15). */
1053
+ readonly matrixParent: {
1054
+ readonly type: "string";
1055
+ };
1056
+ };
1057
+ readonly required: readonly ["name", "order", "trigger", "cwd", "command"];
1058
+ };
1059
+ };
1060
+ /** Суммарные оценки по всем задачам. */
1061
+ readonly totals: {
1062
+ readonly type: "object";
1063
+ readonly properties: {
1064
+ readonly estimatedDurationSec: {
1065
+ readonly type: readonly ["number", "null"];
1066
+ };
1067
+ readonly estimatedCostUsd: {
1068
+ readonly type: readonly ["number", "null"];
1069
+ };
1070
+ readonly estimatedTokens: {
1071
+ readonly type: readonly ["number", "null"];
1072
+ };
1073
+ };
1074
+ readonly required: readonly [];
1075
+ };
1076
+ /** Предупреждения: опасные команды, недоступные пути, отсутствие истории. */
1077
+ readonly warnings: {
1078
+ readonly type: "array";
1079
+ readonly items: {
1080
+ readonly type: "string";
1081
+ };
1082
+ };
1083
+ readonly error: {
1084
+ readonly type: "string";
1085
+ };
1086
+ };
1087
+ readonly required: readonly ["success", "taskName", "tasks", "warnings"];
1088
+ };
1089
+ };
1090
+ };
1091
+ readonly required: readonly ["success", "reports"];
1092
+ };
1093
+ };
1094
+ readonly get_matrix_results: {
1095
+ readonly input: {
1096
+ readonly type: "object";
1097
+ readonly properties: {
1098
+ readonly parentId: {
1099
+ readonly type: "string";
1100
+ };
1101
+ };
1102
+ readonly required: readonly ["parentId"];
1103
+ readonly additionalProperties: false;
1104
+ };
1105
+ readonly output: {
1106
+ readonly type: "object";
1107
+ readonly properties: {
1108
+ readonly success: {
1109
+ readonly type: "boolean";
1110
+ };
1111
+ readonly report: {
1112
+ readonly type: "object";
1113
+ readonly properties: {
1114
+ readonly parentId: {
1115
+ readonly type: "string";
1116
+ };
1117
+ readonly totalCount: {
1118
+ readonly type: "number";
1119
+ };
1120
+ readonly successCount: {
1121
+ readonly type: "number";
1122
+ };
1123
+ readonly errorCount: {
1124
+ readonly type: "number";
1125
+ };
1126
+ readonly pendingCount: {
1127
+ readonly type: "number";
1128
+ };
1129
+ /** success | error | partial | running | empty */
1130
+ readonly status: {
1131
+ readonly type: "string";
1132
+ };
1133
+ readonly message: {
1134
+ readonly type: "string";
1135
+ };
1136
+ readonly clones: {
1137
+ readonly type: "array";
1138
+ readonly items: {
1139
+ readonly type: "object";
1140
+ readonly properties: {
1141
+ readonly name: {
1142
+ readonly type: "string";
1143
+ };
1144
+ readonly workspaceId: {
1145
+ readonly type: readonly ["string", "null"];
1146
+ };
1147
+ readonly workspaceName: {
1148
+ readonly type: readonly ["string", "null"];
1149
+ };
1150
+ /** success | error | timeout | partial | pending | running */
1151
+ readonly status: {
1152
+ readonly type: "string";
1153
+ };
1154
+ readonly error: {
1155
+ readonly type: readonly ["string", "null"];
1156
+ };
1157
+ readonly finishedAt: {
1158
+ readonly type: readonly ["string", "null"];
1159
+ };
1160
+ };
1161
+ readonly required: readonly ["name", "status"];
1162
+ };
1163
+ };
1164
+ };
1165
+ readonly required: readonly ["parentId", "totalCount", "successCount", "errorCount", "status"];
1166
+ };
1167
+ readonly error: {
1168
+ readonly type: "string";
1169
+ };
1170
+ };
1171
+ readonly required: readonly ["success"];
1172
+ };
1173
+ };
1174
+ readonly cancel_matrix: {
1175
+ readonly input: {
1176
+ readonly type: "object";
1177
+ readonly properties: {
1178
+ readonly name: {
1179
+ readonly type: "string";
1180
+ };
1181
+ };
1182
+ readonly required: readonly ["name"];
1183
+ };
1184
+ readonly output: {
1185
+ readonly type: "object";
1186
+ readonly properties: {
1187
+ readonly success: {
1188
+ readonly type: "boolean";
1189
+ };
1190
+ readonly message: {
1191
+ readonly type: "string";
1192
+ };
1193
+ readonly cancelled: {
1194
+ readonly type: "array";
1195
+ readonly items: {
1196
+ readonly type: "string";
1197
+ };
1198
+ };
1199
+ };
1200
+ readonly required: readonly ["success", "message", "cancelled"];
1201
+ };
1202
+ };
1203
+ readonly cleanup_matrix_orphans: {
1204
+ readonly input: {
1205
+ readonly type: "object";
1206
+ readonly properties: {};
1207
+ readonly additionalProperties: false;
1208
+ };
1209
+ readonly output: {
1210
+ readonly type: "object";
1211
+ readonly properties: {
1212
+ readonly success: {
1213
+ readonly type: "boolean";
1214
+ };
1215
+ readonly message: {
1216
+ readonly type: "string";
1217
+ };
1218
+ readonly removed: {
1219
+ readonly type: "array";
1220
+ readonly items: {
1221
+ readonly type: "string";
1222
+ };
1223
+ };
1224
+ };
1225
+ readonly required: readonly ["success", "message", "removed"];
1226
+ };
1227
+ };
1228
+ readonly cleanup_history: {
1229
+ readonly input: {
1230
+ readonly type: "object";
1231
+ readonly properties: {
1232
+ /** Удалять записи старше N дней (0 — выключить ограничение по возрасту). */
1233
+ readonly retentionDays: {
1234
+ readonly type: "number";
1235
+ };
1236
+ /** Хранить не более N записей (0 — без ограничения). */
1237
+ readonly maxRecords: {
1238
+ readonly type: "number";
1239
+ };
1240
+ };
1241
+ readonly additionalProperties: false;
1242
+ };
1243
+ readonly output: {
1244
+ readonly type: "object";
1245
+ readonly properties: {
1246
+ readonly success: {
1247
+ readonly type: "boolean";
1248
+ };
1249
+ readonly message: {
1250
+ readonly type: "string";
1251
+ };
1252
+ readonly deleted: {
1253
+ readonly type: "number";
1254
+ };
1255
+ readonly deletedByAge: {
1256
+ readonly type: "number";
1257
+ };
1258
+ readonly deletedByCount: {
1259
+ readonly type: "number";
1260
+ };
1261
+ readonly kept: {
1262
+ readonly type: "number";
1263
+ };
1264
+ readonly retentionDays: {
1265
+ readonly type: "number";
1266
+ };
1267
+ readonly maxRecords: {
1268
+ readonly type: "number";
1269
+ };
1270
+ readonly vacuumed: {
1271
+ readonly type: "boolean";
1272
+ };
1273
+ };
1274
+ readonly required: readonly ["success", "message", "deleted", "kept"];
1275
+ };
1276
+ };
1277
+ readonly get_analytics: {
1278
+ readonly input: {
1279
+ readonly type: "object";
1280
+ readonly properties: {
1281
+ /** Окно анализа в днях (по умолчанию 14, максимум 365). */
1282
+ readonly days: {
1283
+ readonly type: "number";
1284
+ };
1285
+ /** Сколько строк в топах (по умолчанию 10). */
1286
+ readonly topLimit: {
1287
+ readonly type: "number";
1288
+ };
1289
+ };
1290
+ readonly additionalProperties: false;
1291
+ };
1292
+ readonly output: {
1293
+ readonly type: "object";
1294
+ readonly properties: {
1295
+ readonly success: {
1296
+ readonly type: "boolean";
1297
+ };
1298
+ readonly report: {
1299
+ readonly type: readonly ["object", "null"];
1300
+ };
1301
+ readonly error: {
1302
+ readonly type: "string";
1303
+ };
1304
+ };
1305
+ readonly required: readonly ["success", "report"];
1306
+ };
1307
+ };
1308
+ readonly expand_matrix_preview: {
1309
+ readonly input: {
1310
+ readonly type: "object";
1311
+ readonly properties: {
1312
+ /** Имя задачи-родителя (используется в именах клонов). */
1313
+ readonly name: {
1314
+ readonly type: "string";
1315
+ };
1316
+ readonly workspaceIds: {
1317
+ readonly type: "array";
1318
+ readonly items: {
1319
+ readonly type: "string";
1320
+ };
1321
+ };
1322
+ readonly strategy: {
1323
+ readonly type: "string";
1324
+ };
1325
+ readonly failureMode: {
1326
+ readonly type: "string";
1327
+ };
1328
+ readonly aggregation: {
1329
+ readonly type: "string";
1330
+ };
1331
+ };
1332
+ readonly required: readonly ["workspaceIds"];
1333
+ readonly additionalProperties: false;
1334
+ };
1335
+ readonly output: {
1336
+ readonly type: "object";
1337
+ readonly properties: {
1338
+ readonly success: {
1339
+ readonly type: "boolean";
1340
+ };
1341
+ readonly clones: {
1342
+ readonly type: "array";
1343
+ readonly items: {
1344
+ readonly type: "object";
1345
+ readonly properties: {
1346
+ readonly name: {
1347
+ readonly type: "string";
1348
+ };
1349
+ readonly workspaceId: {
1350
+ readonly type: "string";
1351
+ };
1352
+ readonly workspaceName: {
1353
+ readonly type: readonly ["string", "null"];
1354
+ };
1355
+ };
1356
+ readonly required: readonly ["name", "workspaceId"];
1357
+ };
1358
+ };
1359
+ readonly error: {
1360
+ readonly type: "string";
1361
+ };
1362
+ };
1363
+ readonly required: readonly ["success", "clones"];
1364
+ };
1365
+ };
1366
+ readonly get_workspaces: {
1367
+ readonly input: {
1368
+ readonly type: "object";
1369
+ readonly properties: {};
1370
+ readonly additionalProperties: false;
1371
+ };
1372
+ readonly output: {
1373
+ readonly type: "object";
1374
+ readonly properties: {
1375
+ readonly workspaces: {
1376
+ readonly type: "array";
1377
+ readonly items: {
1378
+ readonly type: "object";
1379
+ readonly properties: {
1380
+ readonly id: {
1381
+ readonly type: "string";
1382
+ };
1383
+ readonly name: {
1384
+ readonly type: "string";
1385
+ };
1386
+ readonly path: {
1387
+ readonly type: "string";
1388
+ };
1389
+ readonly gitRemote: {
1390
+ readonly type: readonly ["string", "null"];
1391
+ };
1392
+ readonly gitBranch: {
1393
+ readonly type: readonly ["string", "null"];
1394
+ };
1395
+ readonly color: {
1396
+ readonly type: readonly ["string", "null"];
1397
+ };
1398
+ readonly createdAt: {
1399
+ readonly type: "string";
1400
+ };
1401
+ };
1402
+ readonly required: readonly ["id", "name", "path", "createdAt"];
1403
+ };
1404
+ };
1405
+ };
1406
+ readonly required: readonly ["workspaces"];
1407
+ };
1408
+ };
1409
+ readonly add_workspace: {
1410
+ readonly input: {
1411
+ readonly type: "object";
1412
+ readonly properties: {
1413
+ readonly name: {
1414
+ readonly type: "string";
1415
+ };
1416
+ readonly path: {
1417
+ readonly type: "string";
1418
+ };
1419
+ readonly color: {
1420
+ readonly type: "string";
1421
+ };
1422
+ };
1423
+ readonly required: readonly ["path"];
1424
+ readonly additionalProperties: false;
1425
+ };
1426
+ readonly output: {
1427
+ readonly type: "object";
1428
+ readonly properties: {
1429
+ readonly success: {
1430
+ readonly type: "boolean";
1431
+ };
1432
+ readonly workspace: {
1433
+ readonly type: "object";
1434
+ readonly properties: {
1435
+ readonly id: {
1436
+ readonly type: "string";
1437
+ };
1438
+ readonly name: {
1439
+ readonly type: "string";
1440
+ };
1441
+ readonly path: {
1442
+ readonly type: "string";
1443
+ };
1444
+ readonly gitRemote: {
1445
+ readonly type: readonly ["string", "null"];
1446
+ };
1447
+ readonly gitBranch: {
1448
+ readonly type: readonly ["string", "null"];
1449
+ };
1450
+ readonly color: {
1451
+ readonly type: readonly ["string", "null"];
1452
+ };
1453
+ readonly createdAt: {
1454
+ readonly type: "string";
1455
+ };
1456
+ };
1457
+ readonly required: readonly ["id", "name", "path", "createdAt"];
1458
+ };
1459
+ readonly error: {
1460
+ readonly type: "string";
1461
+ };
1462
+ };
1463
+ readonly required: readonly ["success"];
1464
+ };
1465
+ };
1466
+ readonly update_workspace: {
1467
+ readonly input: {
1468
+ readonly type: "object";
1469
+ readonly properties: {
1470
+ readonly id: {
1471
+ readonly type: "string";
1472
+ };
1473
+ readonly name: {
1474
+ readonly type: "string";
1475
+ };
1476
+ readonly path: {
1477
+ readonly type: "string";
1478
+ };
1479
+ readonly color: {
1480
+ readonly type: "string";
1481
+ };
1482
+ };
1483
+ readonly required: readonly ["id"];
1484
+ readonly additionalProperties: false;
1485
+ };
1486
+ readonly output: {
1487
+ readonly type: "object";
1488
+ readonly properties: {
1489
+ readonly success: {
1490
+ readonly type: "boolean";
1491
+ };
1492
+ readonly workspace: {
1493
+ readonly type: "object";
1494
+ readonly properties: {
1495
+ readonly id: {
1496
+ readonly type: "string";
1497
+ };
1498
+ readonly name: {
1499
+ readonly type: "string";
1500
+ };
1501
+ readonly path: {
1502
+ readonly type: "string";
1503
+ };
1504
+ readonly gitRemote: {
1505
+ readonly type: readonly ["string", "null"];
1506
+ };
1507
+ readonly gitBranch: {
1508
+ readonly type: readonly ["string", "null"];
1509
+ };
1510
+ readonly color: {
1511
+ readonly type: readonly ["string", "null"];
1512
+ };
1513
+ readonly createdAt: {
1514
+ readonly type: "string";
1515
+ };
1516
+ };
1517
+ readonly required: readonly ["id", "name", "path", "createdAt"];
1518
+ };
1519
+ readonly error: {
1520
+ readonly type: "string";
1521
+ };
1522
+ };
1523
+ readonly required: readonly ["success"];
1524
+ };
1525
+ };
1526
+ readonly delete_workspace: {
1527
+ readonly input: {
1528
+ readonly type: "object";
1529
+ readonly properties: {
1530
+ readonly id: {
1531
+ readonly type: "string";
1532
+ };
1533
+ };
1534
+ readonly required: readonly ["id"];
1535
+ };
1536
+ readonly output: {
1537
+ readonly type: "object";
1538
+ readonly properties: {
1539
+ readonly success: {
1540
+ readonly type: "boolean";
1541
+ };
1542
+ readonly message: {
1543
+ readonly type: "string";
1544
+ };
1545
+ };
1546
+ readonly required: readonly ["success"];
1547
+ };
1548
+ };
1549
+ readonly export_tasks: {
1550
+ readonly input: {
1551
+ readonly type: "object";
1552
+ readonly properties: {};
1553
+ readonly additionalProperties: false;
1554
+ };
1555
+ readonly output: {
1556
+ readonly type: "object";
1557
+ readonly properties: {
1558
+ readonly success: {
1559
+ readonly type: "boolean";
1560
+ };
1561
+ readonly data: {
1562
+ readonly type: "string";
1563
+ };
1564
+ readonly count: {
1565
+ readonly type: "number";
1566
+ };
1567
+ readonly error: {
1568
+ readonly type: "string";
1569
+ };
1570
+ };
1571
+ readonly required: readonly ["success"];
1572
+ };
1573
+ };
1574
+ readonly import_tasks: {
1575
+ readonly input: {
1576
+ readonly type: "object";
1577
+ readonly properties: {
1578
+ readonly data: {
1579
+ readonly type: "string";
1580
+ };
1581
+ };
1582
+ readonly required: readonly ["data"];
1583
+ };
1584
+ readonly output: {
1585
+ readonly type: "object";
1586
+ readonly properties: {
1587
+ readonly success: {
1588
+ readonly type: "boolean";
1589
+ };
1590
+ readonly imported: {
1591
+ readonly type: "number";
1592
+ };
1593
+ readonly errors: {
1594
+ readonly type: "array";
1595
+ readonly items: {
1596
+ readonly type: "string";
1597
+ };
1598
+ };
1599
+ readonly error: {
1600
+ readonly type: "string";
1601
+ };
1602
+ };
1603
+ readonly required: readonly ["success"];
1604
+ };
1605
+ };
1606
+ readonly get_settings: {
1607
+ readonly input: {
1608
+ readonly type: "object";
1609
+ readonly properties: {};
1610
+ readonly additionalProperties: false;
1611
+ };
1612
+ readonly output: {
1613
+ readonly type: "object";
1614
+ readonly properties: {
1615
+ readonly maxConcurrent: {
1616
+ readonly type: "number";
1617
+ };
1618
+ readonly winterMode: {
1619
+ readonly type: "boolean";
1620
+ };
1621
+ readonly notifications: {
1622
+ readonly type: "object";
1623
+ readonly properties: {
1624
+ readonly enabled: {
1625
+ readonly type: "boolean";
1626
+ };
1627
+ readonly onlyOnError: {
1628
+ readonly type: "boolean";
1629
+ };
1630
+ readonly webhook: {
1631
+ readonly type: "object";
1632
+ readonly properties: {
1633
+ readonly enabled: {
1634
+ readonly type: "boolean";
1635
+ };
1636
+ readonly url: {
1637
+ readonly type: "string";
1638
+ };
1639
+ };
1640
+ readonly required: readonly ["enabled", "url"];
1641
+ };
1642
+ };
1643
+ readonly required: readonly ["enabled", "onlyOnError"];
1644
+ };
1645
+ readonly history: {
1646
+ readonly type: "object";
1647
+ readonly properties: {
1648
+ readonly retentionDays: {
1649
+ readonly type: "number";
1650
+ };
1651
+ readonly maxRecords: {
1652
+ readonly type: "number";
1653
+ };
1654
+ readonly lastCleanupAt: {
1655
+ readonly type: readonly ["string", "null"];
1656
+ };
1657
+ readonly lastCleanupDeleted: {
1658
+ readonly type: "number";
1659
+ };
1660
+ };
1661
+ readonly required: readonly ["retentionDays", "maxRecords"];
1662
+ };
1663
+ };
1664
+ readonly required: readonly ["maxConcurrent", "winterMode", "notifications"];
1665
+ };
1666
+ };
1667
+ readonly save_settings: {
1668
+ readonly input: {
1669
+ readonly type: "object";
1670
+ readonly properties: {
1671
+ readonly maxConcurrent: {
1672
+ readonly type: "number";
1673
+ };
1674
+ readonly winterMode: {
1675
+ readonly type: "boolean";
1676
+ };
1677
+ readonly notifications: {
1678
+ readonly type: "object";
1679
+ readonly properties: {
1680
+ readonly enabled: {
1681
+ readonly type: "boolean";
1682
+ };
1683
+ readonly onlyOnError: {
1684
+ readonly type: "boolean";
1685
+ };
1686
+ readonly webhook: {
1687
+ readonly type: "object";
1688
+ readonly properties: {
1689
+ readonly enabled: {
1690
+ readonly type: "boolean";
1691
+ };
1692
+ readonly url: {
1693
+ readonly type: "string";
1694
+ };
1695
+ };
1696
+ readonly required: readonly ["enabled", "url"];
1697
+ };
1698
+ };
1699
+ readonly required: readonly ["enabled", "onlyOnError"];
1700
+ };
1701
+ readonly history: {
1702
+ readonly type: "object";
1703
+ readonly properties: {
1704
+ readonly retentionDays: {
1705
+ readonly type: "number";
1706
+ };
1707
+ readonly maxRecords: {
1708
+ readonly type: "number";
1709
+ };
1710
+ readonly lastCleanupAt: {
1711
+ readonly type: readonly ["string", "null"];
1712
+ };
1713
+ readonly lastCleanupDeleted: {
1714
+ readonly type: "number";
1715
+ };
1716
+ };
1717
+ readonly required: readonly ["retentionDays", "maxRecords"];
1718
+ };
1719
+ };
1720
+ readonly additionalProperties: false;
1721
+ };
1722
+ readonly output: {
1723
+ readonly type: "object";
1724
+ readonly properties: {
1725
+ readonly success: {
1726
+ readonly type: "boolean";
1727
+ };
1728
+ readonly maxConcurrent: {
1729
+ readonly type: "number";
1730
+ };
1731
+ readonly winterMode: {
1732
+ readonly type: "boolean";
1733
+ };
1734
+ readonly notifications: {
1735
+ readonly type: "object";
1736
+ readonly properties: {
1737
+ readonly enabled: {
1738
+ readonly type: "boolean";
1739
+ };
1740
+ readonly onlyOnError: {
1741
+ readonly type: "boolean";
1742
+ };
1743
+ readonly webhook: {
1744
+ readonly type: "object";
1745
+ readonly properties: {
1746
+ readonly enabled: {
1747
+ readonly type: "boolean";
1748
+ };
1749
+ readonly url: {
1750
+ readonly type: "string";
1751
+ };
1752
+ };
1753
+ readonly required: readonly ["enabled", "url"];
1754
+ };
1755
+ };
1756
+ readonly required: readonly ["enabled", "onlyOnError"];
1757
+ };
1758
+ readonly history: {
1759
+ readonly type: "object";
1760
+ readonly properties: {
1761
+ readonly retentionDays: {
1762
+ readonly type: "number";
1763
+ };
1764
+ readonly maxRecords: {
1765
+ readonly type: "number";
1766
+ };
1767
+ readonly lastCleanupAt: {
1768
+ readonly type: readonly ["string", "null"];
1769
+ };
1770
+ readonly lastCleanupDeleted: {
1771
+ readonly type: "number";
1772
+ };
1773
+ };
1774
+ readonly required: readonly ["retentionDays", "maxRecords"];
1775
+ };
1776
+ };
1777
+ readonly required: readonly ["success", "maxConcurrent", "winterMode", "notifications"];
1778
+ };
1779
+ };
1780
+ readonly get_templates: {
1781
+ readonly input: {
1782
+ readonly type: "object";
1783
+ readonly properties: {};
1784
+ readonly additionalProperties: false;
1785
+ };
1786
+ readonly output: {
1787
+ readonly type: "object";
1788
+ readonly properties: {
1789
+ readonly templates: {
1790
+ readonly type: "array";
1791
+ readonly items: {
1792
+ readonly type: "object";
1793
+ readonly properties: {
1794
+ readonly id: {
1795
+ readonly type: "string";
1796
+ };
1797
+ readonly name: {
1798
+ readonly type: "string";
1799
+ };
1800
+ readonly prompt: {
1801
+ readonly type: "string";
1802
+ };
1803
+ readonly schedule: {
1804
+ readonly type: "string";
1805
+ };
1806
+ readonly timeoutSeconds: {
1807
+ readonly type: "number";
1808
+ };
1809
+ /** LLM-модель шаблона. */
1810
+ readonly model: {
1811
+ readonly type: "string";
1812
+ };
1813
+ /** Приоритет задачи 0..10. */
1814
+ readonly priority: {
1815
+ readonly type: "number";
1816
+ };
1817
+ readonly retryCount: {
1818
+ readonly type: "number";
1819
+ };
1820
+ readonly retryDelay: {
1821
+ readonly type: "number";
1822
+ };
1823
+ readonly qualityGate: {
1824
+ readonly type: "string";
1825
+ };
1826
+ readonly nextTaskOnSuccess: {
1827
+ readonly type: "string";
1828
+ };
1829
+ readonly nextTaskOnError: {
1830
+ readonly type: "string";
1831
+ };
1832
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
1833
+ readonly dependsOn: {
1834
+ readonly type: "array";
1835
+ readonly items: {
1836
+ readonly type: "string";
1837
+ };
1838
+ };
1839
+ readonly beforeScript: {
1840
+ readonly type: "string";
1841
+ };
1842
+ readonly afterScript: {
1843
+ readonly type: "string";
1844
+ };
1845
+ readonly triggerType: {
1846
+ readonly type: "string";
1847
+ };
1848
+ readonly mcpEvent: {
1849
+ readonly type: readonly ["object", "null"];
1850
+ readonly properties: {
1851
+ readonly server: {
1852
+ readonly type: "string";
1853
+ };
1854
+ readonly event: {
1855
+ readonly type: "string";
1856
+ };
1857
+ readonly filter: {
1858
+ readonly type: "string";
1859
+ };
1860
+ };
1861
+ readonly required: readonly ["server", "event"];
1862
+ };
1863
+ readonly watchPath: {
1864
+ readonly type: "string";
1865
+ };
1866
+ readonly workspaceId: {
1867
+ readonly type: "string";
1868
+ };
1869
+ readonly workingDirectory: {
1870
+ readonly type: "string";
1871
+ };
1872
+ /** Белый список инструментов задачи (role-scoped, metadata-only). */
1873
+ readonly allowedTools: {
1874
+ readonly type: "array";
1875
+ readonly items: {
1876
+ readonly type: "string";
1877
+ };
1878
+ };
1879
+ /** Чёрный список инструментов задачи (приоритет над allowedTools). */
1880
+ readonly deniedTools: {
1881
+ readonly type: "array";
1882
+ readonly items: {
1883
+ readonly type: "string";
1884
+ };
1885
+ };
1886
+ };
1887
+ readonly required: readonly ["id", "name", "prompt"];
1888
+ };
1889
+ };
1890
+ };
1891
+ readonly required: readonly ["templates"];
1892
+ };
1893
+ };
1894
+ readonly save_template: {
1895
+ readonly input: {
1896
+ readonly type: "object";
1897
+ readonly properties: {
1898
+ readonly id: {
1899
+ readonly type: "string";
1900
+ };
1901
+ readonly name: {
1902
+ readonly type: "string";
1903
+ };
1904
+ readonly prompt: {
1905
+ readonly type: "string";
1906
+ };
1907
+ readonly schedule: {
1908
+ readonly type: "string";
1909
+ };
1910
+ readonly timeoutSeconds: {
1911
+ readonly type: "number";
1912
+ };
1913
+ /** LLM-модель шаблона. */
1914
+ readonly model: {
1915
+ readonly type: "string";
1916
+ };
1917
+ /** Приоритет задачи 0..10. */
1918
+ readonly priority: {
1919
+ readonly type: "number";
1920
+ };
1921
+ readonly retryCount: {
1922
+ readonly type: "number";
1923
+ };
1924
+ readonly retryDelay: {
1925
+ readonly type: "number";
1926
+ };
1927
+ readonly qualityGate: {
1928
+ readonly type: "string";
1929
+ };
1930
+ readonly nextTaskOnSuccess: {
1931
+ readonly type: "string";
1932
+ };
1933
+ readonly nextTaskOnError: {
1934
+ readonly type: "string";
1935
+ };
1936
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
1937
+ readonly dependsOn: {
1938
+ readonly type: "array";
1939
+ readonly items: {
1940
+ readonly type: "string";
1941
+ };
1942
+ };
1943
+ readonly beforeScript: {
1944
+ readonly type: "string";
1945
+ };
1946
+ readonly afterScript: {
1947
+ readonly type: "string";
1948
+ };
1949
+ readonly triggerType: {
1950
+ readonly type: "string";
1951
+ };
1952
+ readonly mcpEvent: {
1953
+ readonly type: readonly ["object", "null"];
1954
+ readonly properties: {
1955
+ readonly server: {
1956
+ readonly type: "string";
1957
+ };
1958
+ readonly event: {
1959
+ readonly type: "string";
1960
+ };
1961
+ readonly filter: {
1962
+ readonly type: "string";
1963
+ };
1964
+ };
1965
+ readonly required: readonly ["server", "event"];
1966
+ };
1967
+ readonly watchPath: {
1968
+ readonly type: "string";
1969
+ };
1970
+ readonly workspaceId: {
1971
+ readonly type: "string";
1972
+ };
1973
+ readonly workingDirectory: {
1974
+ readonly type: "string";
1975
+ };
1976
+ /** Белый список инструментов шаблона (role-scoped). */
1977
+ readonly allowedTools: {
1978
+ readonly type: "array";
1979
+ readonly items: {
1980
+ readonly type: "string";
1981
+ };
1982
+ };
1983
+ /** Чёрный список инструментов шаблона. */
1984
+ readonly deniedTools: {
1985
+ readonly type: "array";
1986
+ readonly items: {
1987
+ readonly type: "string";
1988
+ };
1989
+ };
1990
+ };
1991
+ readonly required: readonly ["name", "prompt"];
1992
+ readonly additionalProperties: false;
1993
+ };
1994
+ readonly output: {
1995
+ readonly type: "object";
1996
+ readonly properties: {
1997
+ readonly success: {
1998
+ readonly type: "boolean";
1999
+ };
2000
+ readonly template: {
2001
+ readonly type: "object";
2002
+ readonly properties: {
2003
+ readonly id: {
2004
+ readonly type: "string";
2005
+ };
2006
+ readonly name: {
2007
+ readonly type: "string";
2008
+ };
2009
+ readonly prompt: {
2010
+ readonly type: "string";
2011
+ };
2012
+ readonly schedule: {
2013
+ readonly type: "string";
2014
+ };
2015
+ readonly timeoutSeconds: {
2016
+ readonly type: "number";
2017
+ };
2018
+ /** LLM-модель шаблона. */
2019
+ readonly model: {
2020
+ readonly type: "string";
2021
+ };
2022
+ /** Приоритет задачи 0..10. */
2023
+ readonly priority: {
2024
+ readonly type: "number";
2025
+ };
2026
+ readonly retryCount: {
2027
+ readonly type: "number";
2028
+ };
2029
+ readonly retryDelay: {
2030
+ readonly type: "number";
2031
+ };
2032
+ readonly qualityGate: {
2033
+ readonly type: "string";
2034
+ };
2035
+ readonly nextTaskOnSuccess: {
2036
+ readonly type: "string";
2037
+ };
2038
+ readonly nextTaskOnError: {
2039
+ readonly type: "string";
2040
+ };
2041
+ /** DAG-зависимости: задачи, которые должны успешно завершиться раньше этой. */
2042
+ readonly dependsOn: {
2043
+ readonly type: "array";
2044
+ readonly items: {
2045
+ readonly type: "string";
2046
+ };
2047
+ };
2048
+ readonly beforeScript: {
2049
+ readonly type: "string";
2050
+ };
2051
+ readonly afterScript: {
2052
+ readonly type: "string";
2053
+ };
2054
+ readonly triggerType: {
2055
+ readonly type: "string";
2056
+ };
2057
+ readonly mcpEvent: {
2058
+ readonly type: readonly ["object", "null"];
2059
+ readonly properties: {
2060
+ readonly server: {
2061
+ readonly type: "string";
2062
+ };
2063
+ readonly event: {
2064
+ readonly type: "string";
2065
+ };
2066
+ readonly filter: {
2067
+ readonly type: "string";
2068
+ };
2069
+ };
2070
+ readonly required: readonly ["server", "event"];
2071
+ };
2072
+ readonly watchPath: {
2073
+ readonly type: "string";
2074
+ };
2075
+ readonly workspaceId: {
2076
+ readonly type: "string";
2077
+ };
2078
+ readonly workingDirectory: {
2079
+ readonly type: "string";
2080
+ };
2081
+ /** Белый список инструментов задачи (role-scoped, metadata-only). */
2082
+ readonly allowedTools: {
2083
+ readonly type: "array";
2084
+ readonly items: {
2085
+ readonly type: "string";
2086
+ };
2087
+ };
2088
+ /** Чёрный список инструментов задачи (приоритет над allowedTools). */
2089
+ readonly deniedTools: {
2090
+ readonly type: "array";
2091
+ readonly items: {
2092
+ readonly type: "string";
2093
+ };
2094
+ };
2095
+ };
2096
+ readonly required: readonly ["id", "name", "prompt"];
2097
+ };
2098
+ readonly error: {
2099
+ readonly type: "string";
2100
+ };
2101
+ };
2102
+ readonly required: readonly ["success"];
2103
+ };
2104
+ };
2105
+ readonly delete_template: {
2106
+ readonly input: {
2107
+ readonly type: "object";
2108
+ readonly properties: {
2109
+ readonly id: {
2110
+ readonly type: "string";
2111
+ };
2112
+ };
2113
+ readonly required: readonly ["id"];
2114
+ };
2115
+ readonly output: {
2116
+ readonly type: "object";
2117
+ readonly properties: {
2118
+ readonly success: {
2119
+ readonly type: "boolean";
2120
+ };
2121
+ readonly error: {
2122
+ readonly type: "string";
2123
+ };
2124
+ };
2125
+ readonly required: readonly ["success"];
2126
+ };
2127
+ };
2128
+ readonly emit_event: {
2129
+ readonly input: {
2130
+ readonly type: "object";
2131
+ readonly properties: {
2132
+ /** Имя события, например github.pr.opened. */
2133
+ readonly eventName: {
2134
+ readonly type: "string";
2135
+ };
2136
+ /** Произвольный payload события (используется фильтрами задач). */
2137
+ readonly payload: {
2138
+ readonly type: readonly ["object", "null", "string", "number", "boolean", "array"];
2139
+ };
2140
+ };
2141
+ readonly required: readonly ["eventName"];
2142
+ };
2143
+ readonly output: {
2144
+ readonly type: "object";
2145
+ readonly properties: {
2146
+ readonly success: {
2147
+ readonly type: "boolean";
2148
+ };
2149
+ readonly message: {
2150
+ readonly type: "string";
2151
+ };
2152
+ /** Задачи, запущенные по событию (в порядке приоритета). */
2153
+ readonly triggered: {
2154
+ readonly type: "array";
2155
+ readonly items: {
2156
+ readonly type: "string";
2157
+ };
2158
+ };
2159
+ };
2160
+ readonly required: readonly ["success", "triggered"];
2161
+ };
2162
+ };
2163
+ readonly test_notification: {
2164
+ readonly input: {
2165
+ readonly type: "object";
2166
+ readonly properties: {};
2167
+ readonly additionalProperties: false;
2168
+ };
2169
+ readonly output: {
2170
+ readonly type: "object";
2171
+ readonly properties: {
2172
+ readonly success: {
2173
+ readonly type: "boolean";
2174
+ };
2175
+ readonly message: {
2176
+ readonly type: "string";
2177
+ };
2178
+ };
2179
+ readonly required: readonly ["success", "message"];
2180
+ };
2181
+ };
2182
+ };
2183
+ readonly events: {};
2184
+ };
2185
+ export type SchedulerRpc = typeof SchedulerRpc;
2186
+ //# sourceMappingURL=rpc.d.ts.map