opencode-windows-scheduler 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -1
- package/README.md +18 -8
- package/README.ru.md +13 -3
- package/ROADMAP-STRATEGY.md +2 -2
- package/ROADMAP.md +51 -18
- package/dist/core/analytics.d.ts +10 -0
- package/dist/core/analytics.d.ts.map +1 -1
- package/dist/core/analytics.js +21 -0
- package/dist/core/dry-run.d.ts +18 -1
- package/dist/core/dry-run.d.ts.map +1 -1
- package/dist/core/dry-run.js +49 -3
- package/dist/core/matrix.d.ts.map +1 -1
- package/dist/core/matrix.js +10 -0
- package/dist/core/one-shot.d.ts +62 -0
- package/dist/core/one-shot.d.ts.map +1 -0
- package/dist/core/one-shot.js +126 -0
- package/dist/core/otel.d.ts +4 -0
- package/dist/core/otel.d.ts.map +1 -0
- package/dist/core/otel.js +98 -0
- package/dist/core/prometheus.d.ts +23 -0
- package/dist/core/prometheus.d.ts.map +1 -0
- package/dist/core/prometheus.js +146 -0
- package/dist/core/ps-wrapper.d.ts +36 -2
- package/dist/core/ps-wrapper.d.ts.map +1 -1
- package/dist/core/ps-wrapper.js +124 -4
- package/dist/core/record-history.d.ts.map +1 -1
- package/dist/core/record-history.js +9 -0
- package/dist/core/schedule-gate.d.ts +2 -0
- package/dist/core/schedule-gate.d.ts.map +1 -0
- package/dist/core/schedule-gate.js +182 -0
- package/dist/core/schedule-v2.d.ts +88 -0
- package/dist/core/schedule-v2.d.ts.map +1 -0
- package/dist/core/schedule-v2.js +496 -0
- package/dist/core/scheduler/linux.d.ts +12 -3
- package/dist/core/scheduler/linux.d.ts.map +1 -1
- package/dist/core/scheduler/linux.js +80 -3
- package/dist/core/scheduler/mac.d.ts.map +1 -1
- package/dist/core/scheduler/mac.js +17 -3
- package/dist/core/scheduler/posix.d.ts.map +1 -1
- package/dist/core/scheduler/posix.js +3 -0
- package/dist/core/scheduler/registry.d.ts +4 -0
- package/dist/core/scheduler/registry.d.ts.map +1 -1
- package/dist/core/scheduler/types.d.ts +20 -3
- package/dist/core/scheduler/types.d.ts.map +1 -1
- package/dist/core/scheduler/windows.d.ts.map +1 -1
- package/dist/core/scheduler/windows.js +23 -2
- package/dist/core/session.d.ts +34 -0
- package/dist/core/session.d.ts.map +1 -0
- package/dist/core/session.js +105 -0
- package/dist/core/structured-log.d.ts +84 -0
- package/dist/core/structured-log.d.ts.map +1 -0
- package/dist/core/structured-log.js +137 -0
- package/dist/core/wrappers/bash.d.ts +24 -0
- package/dist/core/wrappers/bash.d.ts.map +1 -1
- package/dist/core/wrappers/bash.js +70 -3
- package/dist/db/history-repo.d.ts +8 -0
- package/dist/db/history-repo.d.ts.map +1 -1
- package/dist/db/history-repo.js +76 -6
- package/dist/db/metrics-repo.d.ts +3 -0
- package/dist/db/metrics-repo.d.ts.map +1 -1
- package/dist/db/metrics-repo.js +16 -8
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +8 -1
- package/dist/db/schema.d.ts +1 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +19 -0
- package/dist/gui-experimental.cjs +1 -0
- package/dist/history.d.ts +7 -0
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +13 -0
- package/dist/index.d.ts +137 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1323 -78
- package/dist/integrations.d.ts +64 -0
- package/dist/integrations.d.ts.map +1 -0
- package/dist/integrations.js +205 -0
- package/dist/notifications.d.ts +112 -6
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +396 -34
- package/dist/profiles.d.ts +60 -0
- package/dist/profiles.d.ts.map +1 -0
- package/dist/profiles.js +209 -0
- package/dist/rpc.d.ts +592 -4
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +233 -6
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +473 -58
- package/dist/settings.d.ts +95 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +186 -8
- package/dist/shared/jobs-view.d.ts +43 -5
- package/dist/shared/jobs-view.d.ts.map +1 -1
- package/dist/shared/jobs-view.js +125 -7
- package/dist/task-transfer.d.ts +32 -3
- package/dist/task-transfer.d.ts.map +1 -1
- package/dist/task-transfer.js +101 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -11
- package/dist/workspaces.d.ts +43 -0
- package/dist/workspaces.d.ts.map +1 -1
- package/dist/workspaces.js +174 -8
- package/docs/ARCHITECTURE.md +32 -12
- package/docs/FEATURES.md +186 -10
- package/gui-experimental.cjs +4 -2
- package/package.json +15 -2
- package/scripts/demo-dashboard.mjs +12 -2
- package/src/core/analytics.ts +36 -0
- package/src/core/dry-run.ts +65 -4
- package/src/core/matrix.ts +10 -0
- package/src/core/one-shot.ts +173 -0
- package/src/core/otel.ts +128 -0
- package/src/core/prometheus.ts +215 -0
- package/src/core/ps-wrapper.ts +144 -4
- package/src/core/record-history.ts +13 -0
- package/src/core/schedule-gate.ts +213 -0
- package/src/core/schedule-v2.ts +533 -0
- package/src/core/scheduler/linux.ts +90 -3
- package/src/core/scheduler/mac.ts +35 -4
- package/src/core/scheduler/posix.ts +3 -0
- package/src/core/scheduler/registry.ts +4 -0
- package/src/core/scheduler/types.ts +20 -3
- package/src/core/scheduler/windows.ts +24 -2
- package/src/core/session.ts +115 -0
- package/src/core/structured-log.ts +205 -0
- package/src/core/wrappers/bash.ts +98 -2
- package/src/db/history-repo.ts +90 -7
- package/src/db/metrics-repo.ts +19 -7
- package/src/db/migrate.ts +7 -1
- package/src/db/schema.ts +25 -0
- package/src/gui.tsx +3832 -2868
- package/src/history.ts +17 -0
- package/src/index.ts +1670 -117
- package/src/integrations.ts +253 -0
- package/src/notifications.ts +516 -40
- package/src/profiles.ts +236 -0
- package/src/rpc.ts +244 -6
- package/src/server.ts +506 -58
- package/src/settings.ts +336 -9
- package/src/shared/jobs-view.ts +158 -8
- package/src/task-transfer.ts +151 -5
- package/src/tui.tsx +290 -14
- package/src/types.ts +3 -13
- package/src/workspaces.ts +214 -8
package/dist/rpc.d.ts
CHANGED
|
@@ -74,10 +74,26 @@ export declare const SchedulerRpc: {
|
|
|
74
74
|
readonly afterScript: {
|
|
75
75
|
readonly type: readonly ["string", "null"];
|
|
76
76
|
};
|
|
77
|
-
/** Тип триггера: "cron" (по умолчанию), "file"
|
|
77
|
+
/** Тип триггера: "cron" (по умолчанию), "file", "mcp-event" или "once". */
|
|
78
78
|
readonly triggerType: {
|
|
79
79
|
readonly type: readonly ["string", "null"];
|
|
80
80
|
};
|
|
81
|
+
/** Время разового запуска (triggerType === "once"), ISO-8601; null для остальных. */
|
|
82
|
+
readonly runAt: {
|
|
83
|
+
readonly type: readonly ["string", "null"];
|
|
84
|
+
};
|
|
85
|
+
/** Режим сессии OpenCode (Спринт 24): "new" (по умолчанию), "reuse" (--session), "last" (--continue). */
|
|
86
|
+
readonly session: {
|
|
87
|
+
readonly type: readonly ["string", "null"];
|
|
88
|
+
};
|
|
89
|
+
/** Идентификатор переиспользуемой сессии (только для session === "reuse"); null для остальных. */
|
|
90
|
+
readonly sessionId: {
|
|
91
|
+
readonly type: readonly ["string", "null"];
|
|
92
|
+
};
|
|
93
|
+
/** Сколько запусков переживает reuse-сессия до ротации; null — без ограничения. */
|
|
94
|
+
readonly sessionMaxRuns: {
|
|
95
|
+
readonly type: readonly ["number", "null"];
|
|
96
|
+
};
|
|
81
97
|
/** Параметры MCP-события (null — не MCP-триггер). */
|
|
82
98
|
readonly mcpEvent: {
|
|
83
99
|
readonly type: readonly ["object", "null"];
|
|
@@ -98,6 +114,22 @@ export declare const SchedulerRpc: {
|
|
|
98
114
|
readonly watchPath: {
|
|
99
115
|
readonly type: readonly ["string", "null"];
|
|
100
116
|
};
|
|
117
|
+
/** IANA-часовой пояс задачи (Спринт 19; null — системный). */
|
|
118
|
+
readonly timezone: {
|
|
119
|
+
readonly type: readonly ["string", "null"];
|
|
120
|
+
};
|
|
121
|
+
/** Начало окна запуска "HH:MM" (null — без окна). */
|
|
122
|
+
readonly notBefore: {
|
|
123
|
+
readonly type: readonly ["string", "null"];
|
|
124
|
+
};
|
|
125
|
+
/** Конец окна запуска "HH:MM" (null — без окна). */
|
|
126
|
+
readonly notAfter: {
|
|
127
|
+
readonly type: readonly ["string", "null"];
|
|
128
|
+
};
|
|
129
|
+
/** Пауза до даты в ISO (null — автопродолжение не запланировано). */
|
|
130
|
+
readonly pausedUntil: {
|
|
131
|
+
readonly type: readonly ["string", "null"];
|
|
132
|
+
};
|
|
101
133
|
/** Рабочая директория задачи (null — папка проекта по умолчанию). */
|
|
102
134
|
readonly workingDirectory: {
|
|
103
135
|
readonly type: readonly ["string", "null"];
|
|
@@ -189,6 +221,30 @@ export declare const SchedulerRpc: {
|
|
|
189
221
|
readonly isMatrixParent: {
|
|
190
222
|
readonly type: "boolean";
|
|
191
223
|
};
|
|
224
|
+
/** true — задача поставлена на паузу (disabled в планировщике ОС). */
|
|
225
|
+
readonly paused: {
|
|
226
|
+
readonly type: "boolean";
|
|
227
|
+
};
|
|
228
|
+
/** true — определение есть в БД, но задачи нет в планировщике ОС. */
|
|
229
|
+
readonly orphaned: {
|
|
230
|
+
readonly type: "boolean";
|
|
231
|
+
};
|
|
232
|
+
/** Всего запусков именно этой задачи. */
|
|
233
|
+
readonly runsTotal: {
|
|
234
|
+
readonly type: "number";
|
|
235
|
+
};
|
|
236
|
+
/** Успешных запусков этой задачи. */
|
|
237
|
+
readonly runsSuccess: {
|
|
238
|
+
readonly type: "number";
|
|
239
|
+
};
|
|
240
|
+
/** Ошибок и таймаутов этой задачи. */
|
|
241
|
+
readonly runsError: {
|
|
242
|
+
readonly type: "number";
|
|
243
|
+
};
|
|
244
|
+
/** Частичных выполнений этой задачи (partial). */
|
|
245
|
+
readonly runsPartial: {
|
|
246
|
+
readonly type: "number";
|
|
247
|
+
};
|
|
192
248
|
/** Агрегат по клонам для родителя (null — не матрица). */
|
|
193
249
|
readonly matrixSummary: {
|
|
194
250
|
readonly type: readonly ["object", "null"];
|
|
@@ -277,10 +333,26 @@ export declare const SchedulerRpc: {
|
|
|
277
333
|
readonly afterScript: {
|
|
278
334
|
readonly type: "string";
|
|
279
335
|
};
|
|
280
|
-
/** Тип триггера: "cron" (по
|
|
336
|
+
/** Тип триггера: "cron" (по умолчанию; нужен schedule), "file", "mcp-event" или "once" (нужен runAt либо delaySeconds). */
|
|
281
337
|
readonly triggerType: {
|
|
282
338
|
readonly type: "string";
|
|
283
339
|
};
|
|
340
|
+
/** Время разового запуска (triggerType === "once"), ISO-8601. Взаимоисключает schedule/newSchedule. */
|
|
341
|
+
readonly runAt: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
};
|
|
344
|
+
/** Отложенный разовый запуск через N секунд (triggerType === "once"). Взаимоисключает runAt. */
|
|
345
|
+
readonly delaySeconds: {
|
|
346
|
+
readonly type: "number";
|
|
347
|
+
};
|
|
348
|
+
/** Режим сессии OpenCode (Спринт 24): "new" (по умолчанию), "reuse" (--session <id>), "last" (--continue). sessionId генерируется плагином. */
|
|
349
|
+
readonly session: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
};
|
|
352
|
+
/** Сколько запусков переживает reuse-сессия до ротации (удаление и чистый старт). 0/не задано — без ограничения. */
|
|
353
|
+
readonly sessionMaxRuns: {
|
|
354
|
+
readonly type: "number";
|
|
355
|
+
};
|
|
284
356
|
/** Параметры MCP-события. */
|
|
285
357
|
readonly mcpEvent: {
|
|
286
358
|
readonly type: readonly ["object", "null"];
|
|
@@ -376,8 +448,20 @@ export declare const SchedulerRpc: {
|
|
|
376
448
|
};
|
|
377
449
|
readonly required: readonly ["workspaceIds"];
|
|
378
450
|
};
|
|
451
|
+
/** IANA-часовой пояс задачи (например, Europe/Moscow). Пусто — системный. */
|
|
452
|
+
readonly timezone: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
};
|
|
455
|
+
/** Начало окна запуска "HH:MM"; вне окна запуск переносится. */
|
|
456
|
+
readonly notBefore: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
};
|
|
459
|
+
/** Конец окна запуска "HH:MM"; может быть меньше notBefore (через полночь). */
|
|
460
|
+
readonly notAfter: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
};
|
|
379
463
|
};
|
|
380
|
-
readonly required: readonly ["name", "
|
|
464
|
+
readonly required: readonly ["name", "prompt"];
|
|
381
465
|
};
|
|
382
466
|
readonly output: {
|
|
383
467
|
readonly type: "object";
|
|
@@ -445,6 +529,13 @@ export declare const SchedulerRpc: {
|
|
|
445
529
|
readonly name: {
|
|
446
530
|
readonly type: "string";
|
|
447
531
|
};
|
|
532
|
+
/**
|
|
533
|
+
* Только для pause: пауза до указанного момента (ISO). Плагин включит
|
|
534
|
+
* задачу автоматически; пусто — бессрочная пауза.
|
|
535
|
+
*/
|
|
536
|
+
readonly until: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
};
|
|
448
539
|
};
|
|
449
540
|
readonly required: readonly ["name"];
|
|
450
541
|
};
|
|
@@ -468,6 +559,13 @@ export declare const SchedulerRpc: {
|
|
|
468
559
|
readonly name: {
|
|
469
560
|
readonly type: "string";
|
|
470
561
|
};
|
|
562
|
+
/**
|
|
563
|
+
* Только для pause: пауза до указанного момента (ISO). Плагин включит
|
|
564
|
+
* задачу автоматически; пусто — бессрочная пауза.
|
|
565
|
+
*/
|
|
566
|
+
readonly until: {
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
};
|
|
471
569
|
};
|
|
472
570
|
readonly required: readonly ["name"];
|
|
473
571
|
};
|
|
@@ -535,10 +633,26 @@ export declare const SchedulerRpc: {
|
|
|
535
633
|
readonly afterScript: {
|
|
536
634
|
readonly type: "string";
|
|
537
635
|
};
|
|
538
|
-
/** Тип триггера: "cron" (по
|
|
636
|
+
/** Тип триггера: "cron" (по умолчанию; нужен schedule), "file", "mcp-event" или "once" (нужен runAt либо delaySeconds). */
|
|
539
637
|
readonly triggerType: {
|
|
540
638
|
readonly type: "string";
|
|
541
639
|
};
|
|
640
|
+
/** Время разового запуска (triggerType === "once"), ISO-8601. Взаимоисключает schedule/newSchedule. */
|
|
641
|
+
readonly runAt: {
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
};
|
|
644
|
+
/** Отложенный разовый запуск через N секунд (triggerType === "once"). Взаимоисключает runAt. */
|
|
645
|
+
readonly delaySeconds: {
|
|
646
|
+
readonly type: "number";
|
|
647
|
+
};
|
|
648
|
+
/** Режим сессии OpenCode (Спринт 24): "new" (по умолчанию), "reuse" (--session <id>), "last" (--continue). sessionId генерируется плагином. */
|
|
649
|
+
readonly session: {
|
|
650
|
+
readonly type: "string";
|
|
651
|
+
};
|
|
652
|
+
/** Сколько запусков переживает reuse-сессия до ротации (удаление и чистый старт). 0/не задано — без ограничения. */
|
|
653
|
+
readonly sessionMaxRuns: {
|
|
654
|
+
readonly type: "number";
|
|
655
|
+
};
|
|
542
656
|
/** Параметры MCP-события. */
|
|
543
657
|
readonly mcpEvent: {
|
|
544
658
|
readonly type: readonly ["object", "null"];
|
|
@@ -634,6 +748,18 @@ export declare const SchedulerRpc: {
|
|
|
634
748
|
};
|
|
635
749
|
readonly required: readonly ["workspaceIds"];
|
|
636
750
|
};
|
|
751
|
+
/** IANA-часовой пояс задачи. Пустая строка — сбросить на системный. */
|
|
752
|
+
readonly timezone: {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
};
|
|
755
|
+
/** Начало окна запуска "HH:MM". Пустая строка — сбросить окно. */
|
|
756
|
+
readonly notBefore: {
|
|
757
|
+
readonly type: "string";
|
|
758
|
+
};
|
|
759
|
+
/** Конец окна запуска "HH:MM". Пустая строка — сбросить окно. */
|
|
760
|
+
readonly notAfter: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
};
|
|
637
763
|
};
|
|
638
764
|
readonly required: readonly ["name"];
|
|
639
765
|
};
|
|
@@ -680,9 +806,18 @@ export declare const SchedulerRpc: {
|
|
|
680
806
|
readonly input: {
|
|
681
807
|
readonly type: "object";
|
|
682
808
|
readonly properties: {
|
|
809
|
+
/** Сколько последних записей вернуть (по умолчанию 20, максимум 200). */
|
|
683
810
|
readonly limit: {
|
|
684
811
|
readonly type: "number";
|
|
685
812
|
};
|
|
813
|
+
/** Фильтр по имени задачи (регистр не важен). */
|
|
814
|
+
readonly taskName: {
|
|
815
|
+
readonly type: "string";
|
|
816
|
+
};
|
|
817
|
+
/** Фильтр по статусу: success | error | partial | running | timeout. */
|
|
818
|
+
readonly status: {
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
};
|
|
686
821
|
};
|
|
687
822
|
readonly additionalProperties: false;
|
|
688
823
|
};
|
|
@@ -1395,6 +1530,17 @@ export declare const SchedulerRpc: {
|
|
|
1395
1530
|
readonly color: {
|
|
1396
1531
|
readonly type: readonly ["string", "null"];
|
|
1397
1532
|
};
|
|
1533
|
+
/** Env-переменные workspace; значения секретов замаскированы (***). */
|
|
1534
|
+
readonly env: {
|
|
1535
|
+
readonly type: readonly ["object", "null"];
|
|
1536
|
+
readonly additionalProperties: {
|
|
1537
|
+
readonly type: "string";
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
/** Путь к .env-файлу workspace (null — не задан). */
|
|
1541
|
+
readonly envFile: {
|
|
1542
|
+
readonly type: readonly ["string", "null"];
|
|
1543
|
+
};
|
|
1398
1544
|
readonly createdAt: {
|
|
1399
1545
|
readonly type: "string";
|
|
1400
1546
|
};
|
|
@@ -1419,6 +1565,17 @@ export declare const SchedulerRpc: {
|
|
|
1419
1565
|
readonly color: {
|
|
1420
1566
|
readonly type: "string";
|
|
1421
1567
|
};
|
|
1568
|
+
/** Env-переменные workspace (ключ → значение). */
|
|
1569
|
+
readonly env: {
|
|
1570
|
+
readonly type: readonly ["object", "null"];
|
|
1571
|
+
readonly additionalProperties: {
|
|
1572
|
+
readonly type: "string";
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
/** Путь к .env-файлу workspace. */
|
|
1576
|
+
readonly envFile: {
|
|
1577
|
+
readonly type: readonly ["string", "null"];
|
|
1578
|
+
};
|
|
1422
1579
|
};
|
|
1423
1580
|
readonly required: readonly ["path"];
|
|
1424
1581
|
readonly additionalProperties: false;
|
|
@@ -1450,6 +1607,17 @@ export declare const SchedulerRpc: {
|
|
|
1450
1607
|
readonly color: {
|
|
1451
1608
|
readonly type: readonly ["string", "null"];
|
|
1452
1609
|
};
|
|
1610
|
+
/** Env-переменные workspace; значения секретов замаскированы (***). */
|
|
1611
|
+
readonly env: {
|
|
1612
|
+
readonly type: readonly ["object", "null"];
|
|
1613
|
+
readonly additionalProperties: {
|
|
1614
|
+
readonly type: "string";
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
/** Путь к .env-файлу workspace (null — не задан). */
|
|
1618
|
+
readonly envFile: {
|
|
1619
|
+
readonly type: readonly ["string", "null"];
|
|
1620
|
+
};
|
|
1453
1621
|
readonly createdAt: {
|
|
1454
1622
|
readonly type: "string";
|
|
1455
1623
|
};
|
|
@@ -1479,6 +1647,17 @@ export declare const SchedulerRpc: {
|
|
|
1479
1647
|
readonly color: {
|
|
1480
1648
|
readonly type: "string";
|
|
1481
1649
|
};
|
|
1650
|
+
/** Env-переменные workspace; null — очистить, отсутствие — не менять. */
|
|
1651
|
+
readonly env: {
|
|
1652
|
+
readonly type: readonly ["object", "null"];
|
|
1653
|
+
readonly additionalProperties: {
|
|
1654
|
+
readonly type: "string";
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
/** Путь к .env-файлу; null — очистить. */
|
|
1658
|
+
readonly envFile: {
|
|
1659
|
+
readonly type: readonly ["string", "null"];
|
|
1660
|
+
};
|
|
1482
1661
|
};
|
|
1483
1662
|
readonly required: readonly ["id"];
|
|
1484
1663
|
readonly additionalProperties: false;
|
|
@@ -1510,6 +1689,17 @@ export declare const SchedulerRpc: {
|
|
|
1510
1689
|
readonly color: {
|
|
1511
1690
|
readonly type: readonly ["string", "null"];
|
|
1512
1691
|
};
|
|
1692
|
+
/** Env-переменные workspace; значения секретов замаскированы (***). */
|
|
1693
|
+
readonly env: {
|
|
1694
|
+
readonly type: readonly ["object", "null"];
|
|
1695
|
+
readonly additionalProperties: {
|
|
1696
|
+
readonly type: "string";
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
/** Путь к .env-файлу workspace (null — не задан). */
|
|
1700
|
+
readonly envFile: {
|
|
1701
|
+
readonly type: readonly ["string", "null"];
|
|
1702
|
+
};
|
|
1513
1703
|
readonly createdAt: {
|
|
1514
1704
|
readonly type: "string";
|
|
1515
1705
|
};
|
|
@@ -1546,6 +1736,157 @@ export declare const SchedulerRpc: {
|
|
|
1546
1736
|
readonly required: readonly ["success"];
|
|
1547
1737
|
};
|
|
1548
1738
|
};
|
|
1739
|
+
readonly get_profiles: {
|
|
1740
|
+
readonly input: {
|
|
1741
|
+
readonly type: "object";
|
|
1742
|
+
readonly properties: {};
|
|
1743
|
+
readonly additionalProperties: false;
|
|
1744
|
+
};
|
|
1745
|
+
readonly output: {
|
|
1746
|
+
readonly type: "object";
|
|
1747
|
+
readonly properties: {
|
|
1748
|
+
readonly current: {
|
|
1749
|
+
readonly type: "string";
|
|
1750
|
+
};
|
|
1751
|
+
/** true — профиль задан переменной OPENCODE_SCHEDULER_PROFILE. */
|
|
1752
|
+
readonly pinnedByEnv: {
|
|
1753
|
+
readonly type: "boolean";
|
|
1754
|
+
};
|
|
1755
|
+
readonly profiles: {
|
|
1756
|
+
readonly type: "array";
|
|
1757
|
+
readonly items: {
|
|
1758
|
+
readonly type: "object";
|
|
1759
|
+
readonly properties: {
|
|
1760
|
+
readonly name: {
|
|
1761
|
+
readonly type: "string";
|
|
1762
|
+
};
|
|
1763
|
+
readonly dir: {
|
|
1764
|
+
readonly type: "string";
|
|
1765
|
+
};
|
|
1766
|
+
readonly port: {
|
|
1767
|
+
readonly type: readonly ["number", "null"];
|
|
1768
|
+
};
|
|
1769
|
+
readonly isDefault: {
|
|
1770
|
+
readonly type: "boolean";
|
|
1771
|
+
};
|
|
1772
|
+
readonly active: {
|
|
1773
|
+
readonly type: "boolean";
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
readonly required: readonly ["name", "dir", "isDefault", "active"];
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
readonly required: readonly ["current", "pinnedByEnv", "profiles"];
|
|
1781
|
+
};
|
|
1782
|
+
};
|
|
1783
|
+
readonly set_profile: {
|
|
1784
|
+
readonly input: {
|
|
1785
|
+
readonly type: "object";
|
|
1786
|
+
readonly properties: {
|
|
1787
|
+
readonly name: {
|
|
1788
|
+
readonly type: "string";
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1791
|
+
readonly required: readonly ["name"];
|
|
1792
|
+
readonly additionalProperties: false;
|
|
1793
|
+
};
|
|
1794
|
+
readonly output: {
|
|
1795
|
+
readonly type: "object";
|
|
1796
|
+
readonly properties: {
|
|
1797
|
+
readonly success: {
|
|
1798
|
+
readonly type: "boolean";
|
|
1799
|
+
};
|
|
1800
|
+
readonly message: {
|
|
1801
|
+
readonly type: "string";
|
|
1802
|
+
};
|
|
1803
|
+
readonly current: {
|
|
1804
|
+
readonly type: "string";
|
|
1805
|
+
};
|
|
1806
|
+
/** true — изменения вступят в силу после перезапуска OpenCode. */
|
|
1807
|
+
readonly restartRequired: {
|
|
1808
|
+
readonly type: "boolean";
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
readonly required: readonly ["success", "message", "current", "restartRequired"];
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
readonly create_profile: {
|
|
1815
|
+
readonly input: {
|
|
1816
|
+
readonly type: "object";
|
|
1817
|
+
readonly properties: {
|
|
1818
|
+
readonly name: {
|
|
1819
|
+
readonly type: "string";
|
|
1820
|
+
};
|
|
1821
|
+
/** Порт дашборда профиля (по умолчанию — свободный 3782+). */
|
|
1822
|
+
readonly port: {
|
|
1823
|
+
readonly type: "number";
|
|
1824
|
+
};
|
|
1825
|
+
};
|
|
1826
|
+
readonly required: readonly ["name"];
|
|
1827
|
+
readonly additionalProperties: false;
|
|
1828
|
+
};
|
|
1829
|
+
readonly output: {
|
|
1830
|
+
readonly type: "object";
|
|
1831
|
+
readonly properties: {
|
|
1832
|
+
readonly success: {
|
|
1833
|
+
readonly type: "boolean";
|
|
1834
|
+
};
|
|
1835
|
+
readonly message: {
|
|
1836
|
+
readonly type: "string";
|
|
1837
|
+
};
|
|
1838
|
+
readonly profile: {
|
|
1839
|
+
readonly type: "object";
|
|
1840
|
+
readonly properties: {
|
|
1841
|
+
readonly name: {
|
|
1842
|
+
readonly type: "string";
|
|
1843
|
+
};
|
|
1844
|
+
readonly dir: {
|
|
1845
|
+
readonly type: "string";
|
|
1846
|
+
};
|
|
1847
|
+
readonly port: {
|
|
1848
|
+
readonly type: readonly ["number", "null"];
|
|
1849
|
+
};
|
|
1850
|
+
readonly isDefault: {
|
|
1851
|
+
readonly type: "boolean";
|
|
1852
|
+
};
|
|
1853
|
+
readonly active: {
|
|
1854
|
+
readonly type: "boolean";
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
readonly required: readonly ["name", "dir", "isDefault", "active"];
|
|
1858
|
+
};
|
|
1859
|
+
readonly error: {
|
|
1860
|
+
readonly type: "string";
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
readonly required: readonly ["success"];
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
readonly delete_profile: {
|
|
1867
|
+
readonly input: {
|
|
1868
|
+
readonly type: "object";
|
|
1869
|
+
readonly properties: {
|
|
1870
|
+
readonly name: {
|
|
1871
|
+
readonly type: "string";
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
readonly required: readonly ["name"];
|
|
1875
|
+
readonly additionalProperties: false;
|
|
1876
|
+
};
|
|
1877
|
+
readonly output: {
|
|
1878
|
+
readonly type: "object";
|
|
1879
|
+
readonly properties: {
|
|
1880
|
+
readonly success: {
|
|
1881
|
+
readonly type: "boolean";
|
|
1882
|
+
};
|
|
1883
|
+
readonly message: {
|
|
1884
|
+
readonly type: "string";
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
readonly required: readonly ["success", "message"];
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1549
1890
|
readonly export_tasks: {
|
|
1550
1891
|
readonly input: {
|
|
1551
1892
|
readonly type: "object";
|
|
@@ -1636,9 +1977,85 @@ export declare const SchedulerRpc: {
|
|
|
1636
1977
|
readonly url: {
|
|
1637
1978
|
readonly type: "string";
|
|
1638
1979
|
};
|
|
1980
|
+
readonly timeoutMs: {
|
|
1981
|
+
readonly type: "number";
|
|
1982
|
+
};
|
|
1983
|
+
readonly retryCount: {
|
|
1984
|
+
readonly type: "number";
|
|
1985
|
+
};
|
|
1986
|
+
readonly retryDelayMs: {
|
|
1987
|
+
readonly type: "number";
|
|
1988
|
+
};
|
|
1639
1989
|
};
|
|
1640
1990
|
readonly required: readonly ["enabled", "url"];
|
|
1641
1991
|
};
|
|
1992
|
+
readonly templates: {
|
|
1993
|
+
readonly type: "object";
|
|
1994
|
+
readonly properties: {
|
|
1995
|
+
readonly success: {
|
|
1996
|
+
readonly type: "string";
|
|
1997
|
+
};
|
|
1998
|
+
readonly error: {
|
|
1999
|
+
readonly type: "string";
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
readonly required: readonly ["success", "error"];
|
|
2003
|
+
};
|
|
2004
|
+
readonly filters: {
|
|
2005
|
+
readonly type: "object";
|
|
2006
|
+
readonly properties: {
|
|
2007
|
+
readonly include: {
|
|
2008
|
+
readonly type: "array";
|
|
2009
|
+
readonly items: {
|
|
2010
|
+
readonly type: "string";
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
readonly exclude: {
|
|
2014
|
+
readonly type: "array";
|
|
2015
|
+
readonly items: {
|
|
2016
|
+
readonly type: "string";
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
readonly required: readonly ["include", "exclude"];
|
|
2021
|
+
};
|
|
2022
|
+
readonly matrix: {
|
|
2023
|
+
readonly type: "object";
|
|
2024
|
+
readonly properties: {
|
|
2025
|
+
readonly enabled: {
|
|
2026
|
+
readonly type: "boolean";
|
|
2027
|
+
};
|
|
2028
|
+
readonly onPartial: {
|
|
2029
|
+
readonly type: "boolean";
|
|
2030
|
+
};
|
|
2031
|
+
readonly onAllFailed: {
|
|
2032
|
+
readonly type: "boolean";
|
|
2033
|
+
};
|
|
2034
|
+
readonly stuckAfterMinutes: {
|
|
2035
|
+
readonly type: "number";
|
|
2036
|
+
};
|
|
2037
|
+
};
|
|
2038
|
+
readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
|
|
2039
|
+
};
|
|
2040
|
+
readonly digest: {
|
|
2041
|
+
readonly type: "object";
|
|
2042
|
+
readonly properties: {
|
|
2043
|
+
readonly enabled: {
|
|
2044
|
+
readonly type: "boolean";
|
|
2045
|
+
};
|
|
2046
|
+
readonly frequency: {
|
|
2047
|
+
readonly type: "string";
|
|
2048
|
+
readonly enum: readonly ["daily", "weekly"];
|
|
2049
|
+
};
|
|
2050
|
+
readonly time: {
|
|
2051
|
+
readonly type: "string";
|
|
2052
|
+
};
|
|
2053
|
+
readonly lastSentAt: {
|
|
2054
|
+
readonly type: readonly ["string", "null"];
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
readonly required: readonly ["enabled", "frequency", "time"];
|
|
2058
|
+
};
|
|
1642
2059
|
};
|
|
1643
2060
|
readonly required: readonly ["enabled", "onlyOnError"];
|
|
1644
2061
|
};
|
|
@@ -1692,9 +2109,85 @@ export declare const SchedulerRpc: {
|
|
|
1692
2109
|
readonly url: {
|
|
1693
2110
|
readonly type: "string";
|
|
1694
2111
|
};
|
|
2112
|
+
readonly timeoutMs: {
|
|
2113
|
+
readonly type: "number";
|
|
2114
|
+
};
|
|
2115
|
+
readonly retryCount: {
|
|
2116
|
+
readonly type: "number";
|
|
2117
|
+
};
|
|
2118
|
+
readonly retryDelayMs: {
|
|
2119
|
+
readonly type: "number";
|
|
2120
|
+
};
|
|
1695
2121
|
};
|
|
1696
2122
|
readonly required: readonly ["enabled", "url"];
|
|
1697
2123
|
};
|
|
2124
|
+
readonly templates: {
|
|
2125
|
+
readonly type: "object";
|
|
2126
|
+
readonly properties: {
|
|
2127
|
+
readonly success: {
|
|
2128
|
+
readonly type: "string";
|
|
2129
|
+
};
|
|
2130
|
+
readonly error: {
|
|
2131
|
+
readonly type: "string";
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
readonly required: readonly ["success", "error"];
|
|
2135
|
+
};
|
|
2136
|
+
readonly filters: {
|
|
2137
|
+
readonly type: "object";
|
|
2138
|
+
readonly properties: {
|
|
2139
|
+
readonly include: {
|
|
2140
|
+
readonly type: "array";
|
|
2141
|
+
readonly items: {
|
|
2142
|
+
readonly type: "string";
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
readonly exclude: {
|
|
2146
|
+
readonly type: "array";
|
|
2147
|
+
readonly items: {
|
|
2148
|
+
readonly type: "string";
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
readonly required: readonly ["include", "exclude"];
|
|
2153
|
+
};
|
|
2154
|
+
readonly matrix: {
|
|
2155
|
+
readonly type: "object";
|
|
2156
|
+
readonly properties: {
|
|
2157
|
+
readonly enabled: {
|
|
2158
|
+
readonly type: "boolean";
|
|
2159
|
+
};
|
|
2160
|
+
readonly onPartial: {
|
|
2161
|
+
readonly type: "boolean";
|
|
2162
|
+
};
|
|
2163
|
+
readonly onAllFailed: {
|
|
2164
|
+
readonly type: "boolean";
|
|
2165
|
+
};
|
|
2166
|
+
readonly stuckAfterMinutes: {
|
|
2167
|
+
readonly type: "number";
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
|
|
2171
|
+
};
|
|
2172
|
+
readonly digest: {
|
|
2173
|
+
readonly type: "object";
|
|
2174
|
+
readonly properties: {
|
|
2175
|
+
readonly enabled: {
|
|
2176
|
+
readonly type: "boolean";
|
|
2177
|
+
};
|
|
2178
|
+
readonly frequency: {
|
|
2179
|
+
readonly type: "string";
|
|
2180
|
+
readonly enum: readonly ["daily", "weekly"];
|
|
2181
|
+
};
|
|
2182
|
+
readonly time: {
|
|
2183
|
+
readonly type: "string";
|
|
2184
|
+
};
|
|
2185
|
+
readonly lastSentAt: {
|
|
2186
|
+
readonly type: readonly ["string", "null"];
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
readonly required: readonly ["enabled", "frequency", "time"];
|
|
2190
|
+
};
|
|
1698
2191
|
};
|
|
1699
2192
|
readonly required: readonly ["enabled", "onlyOnError"];
|
|
1700
2193
|
};
|
|
@@ -1749,9 +2242,85 @@ export declare const SchedulerRpc: {
|
|
|
1749
2242
|
readonly url: {
|
|
1750
2243
|
readonly type: "string";
|
|
1751
2244
|
};
|
|
2245
|
+
readonly timeoutMs: {
|
|
2246
|
+
readonly type: "number";
|
|
2247
|
+
};
|
|
2248
|
+
readonly retryCount: {
|
|
2249
|
+
readonly type: "number";
|
|
2250
|
+
};
|
|
2251
|
+
readonly retryDelayMs: {
|
|
2252
|
+
readonly type: "number";
|
|
2253
|
+
};
|
|
1752
2254
|
};
|
|
1753
2255
|
readonly required: readonly ["enabled", "url"];
|
|
1754
2256
|
};
|
|
2257
|
+
readonly templates: {
|
|
2258
|
+
readonly type: "object";
|
|
2259
|
+
readonly properties: {
|
|
2260
|
+
readonly success: {
|
|
2261
|
+
readonly type: "string";
|
|
2262
|
+
};
|
|
2263
|
+
readonly error: {
|
|
2264
|
+
readonly type: "string";
|
|
2265
|
+
};
|
|
2266
|
+
};
|
|
2267
|
+
readonly required: readonly ["success", "error"];
|
|
2268
|
+
};
|
|
2269
|
+
readonly filters: {
|
|
2270
|
+
readonly type: "object";
|
|
2271
|
+
readonly properties: {
|
|
2272
|
+
readonly include: {
|
|
2273
|
+
readonly type: "array";
|
|
2274
|
+
readonly items: {
|
|
2275
|
+
readonly type: "string";
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
readonly exclude: {
|
|
2279
|
+
readonly type: "array";
|
|
2280
|
+
readonly items: {
|
|
2281
|
+
readonly type: "string";
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2285
|
+
readonly required: readonly ["include", "exclude"];
|
|
2286
|
+
};
|
|
2287
|
+
readonly matrix: {
|
|
2288
|
+
readonly type: "object";
|
|
2289
|
+
readonly properties: {
|
|
2290
|
+
readonly enabled: {
|
|
2291
|
+
readonly type: "boolean";
|
|
2292
|
+
};
|
|
2293
|
+
readonly onPartial: {
|
|
2294
|
+
readonly type: "boolean";
|
|
2295
|
+
};
|
|
2296
|
+
readonly onAllFailed: {
|
|
2297
|
+
readonly type: "boolean";
|
|
2298
|
+
};
|
|
2299
|
+
readonly stuckAfterMinutes: {
|
|
2300
|
+
readonly type: "number";
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
|
|
2304
|
+
};
|
|
2305
|
+
readonly digest: {
|
|
2306
|
+
readonly type: "object";
|
|
2307
|
+
readonly properties: {
|
|
2308
|
+
readonly enabled: {
|
|
2309
|
+
readonly type: "boolean";
|
|
2310
|
+
};
|
|
2311
|
+
readonly frequency: {
|
|
2312
|
+
readonly type: "string";
|
|
2313
|
+
readonly enum: readonly ["daily", "weekly"];
|
|
2314
|
+
};
|
|
2315
|
+
readonly time: {
|
|
2316
|
+
readonly type: "string";
|
|
2317
|
+
};
|
|
2318
|
+
readonly lastSentAt: {
|
|
2319
|
+
readonly type: readonly ["string", "null"];
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
readonly required: readonly ["enabled", "frequency", "time"];
|
|
2323
|
+
};
|
|
1755
2324
|
};
|
|
1756
2325
|
readonly required: readonly ["enabled", "onlyOnError"];
|
|
1757
2326
|
};
|
|
@@ -2179,6 +2748,25 @@ export declare const SchedulerRpc: {
|
|
|
2179
2748
|
readonly required: readonly ["success", "message"];
|
|
2180
2749
|
};
|
|
2181
2750
|
};
|
|
2751
|
+
readonly send_digest: {
|
|
2752
|
+
readonly input: {
|
|
2753
|
+
readonly type: "object";
|
|
2754
|
+
readonly properties: {};
|
|
2755
|
+
readonly additionalProperties: false;
|
|
2756
|
+
};
|
|
2757
|
+
readonly output: {
|
|
2758
|
+
readonly type: "object";
|
|
2759
|
+
readonly properties: {
|
|
2760
|
+
readonly success: {
|
|
2761
|
+
readonly type: "boolean";
|
|
2762
|
+
};
|
|
2763
|
+
readonly message: {
|
|
2764
|
+
readonly type: "string";
|
|
2765
|
+
};
|
|
2766
|
+
};
|
|
2767
|
+
readonly required: readonly ["success", "message"];
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2182
2770
|
};
|
|
2183
2771
|
readonly events: {};
|
|
2184
2772
|
};
|