agent-steward 0.0.2 → 0.0.4

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 (263) hide show
  1. package/CHANGELOG.md +45 -2
  2. package/CROSS_PLATFORM.md +11 -9
  3. package/README.md +11 -10
  4. package/ROADMAP-STRATEGY.md +93 -44
  5. package/ROADMAP.md +148 -1017
  6. package/dist/core/cron-to-schtasks.d.ts +0 -8
  7. package/dist/core/cron-to-schtasks.d.ts.map +1 -1
  8. package/dist/core/cron-to-schtasks.js +11 -86
  9. package/dist/core/dlq-api.d.ts +44 -0
  10. package/dist/core/dlq-api.d.ts.map +1 -0
  11. package/dist/core/dlq-api.js +68 -0
  12. package/dist/core/dry-run.d.ts.map +1 -1
  13. package/dist/core/dry-run.js +19 -2
  14. package/dist/core/file-watcher.js +9 -9
  15. package/dist/core/git-trigger.js +4 -4
  16. package/dist/core/lock.d.ts +20 -4
  17. package/dist/core/lock.d.ts.map +1 -1
  18. package/dist/core/lock.js +99 -26
  19. package/dist/core/one-shot.d.ts +31 -5
  20. package/dist/core/one-shot.d.ts.map +1 -1
  21. package/dist/core/one-shot.js +78 -10
  22. package/dist/core/opencode-cli.d.ts +28 -0
  23. package/dist/core/opencode-cli.d.ts.map +1 -0
  24. package/dist/core/opencode-cli.js +74 -0
  25. package/dist/core/opencode-models.d.ts +62 -0
  26. package/dist/core/opencode-models.d.ts.map +1 -0
  27. package/dist/core/opencode-models.js +277 -0
  28. package/dist/core/otel.js +2 -2
  29. package/dist/core/ps-wrapper.d.ts +1 -1
  30. package/dist/core/ps-wrapper.d.ts.map +1 -1
  31. package/dist/core/ps-wrapper.js +66 -36
  32. package/dist/core/record-history.d.ts +15 -0
  33. package/dist/core/record-history.d.ts.map +1 -1
  34. package/dist/core/record-history.js +78 -54
  35. package/dist/core/router/dispatch.d.ts +36 -0
  36. package/dist/core/router/dispatch.d.ts.map +1 -0
  37. package/dist/core/router/dispatch.js +59 -0
  38. package/dist/core/router/escalation.d.ts +47 -0
  39. package/dist/core/router/escalation.d.ts.map +1 -0
  40. package/dist/core/router/escalation.js +87 -0
  41. package/dist/core/router/planner.d.ts +53 -0
  42. package/dist/core/router/planner.d.ts.map +1 -0
  43. package/dist/core/router/planner.js +113 -0
  44. package/dist/core/router/rules.d.ts +46 -0
  45. package/dist/core/router/rules.d.ts.map +1 -0
  46. package/dist/core/router/rules.js +85 -0
  47. package/dist/core/run-panel-api.d.ts +94 -0
  48. package/dist/core/run-panel-api.d.ts.map +1 -0
  49. package/dist/core/run-panel-api.js +169 -0
  50. package/dist/core/schedule-gate.js +5 -1
  51. package/dist/core/schedule-v2.d.ts +36 -2
  52. package/dist/core/schedule-v2.d.ts.map +1 -1
  53. package/dist/core/schedule-v2.js +98 -12
  54. package/dist/core/scheduler/at-fallback.d.ts +95 -0
  55. package/dist/core/scheduler/at-fallback.d.ts.map +1 -0
  56. package/dist/core/scheduler/at-fallback.js +200 -0
  57. package/dist/core/scheduler/linux.d.ts +13 -2
  58. package/dist/core/scheduler/linux.d.ts.map +1 -1
  59. package/dist/core/scheduler/linux.js +67 -13
  60. package/dist/core/scheduler/mac.d.ts +14 -8
  61. package/dist/core/scheduler/mac.d.ts.map +1 -1
  62. package/dist/core/scheduler/mac.js +71 -22
  63. package/dist/core/scheduler/posix.d.ts.map +1 -1
  64. package/dist/core/scheduler/posix.js +37 -2
  65. package/dist/core/scheduler/registry.d.ts +13 -0
  66. package/dist/core/scheduler/registry.d.ts.map +1 -1
  67. package/dist/core/scheduler/registry.js +83 -21
  68. package/dist/core/scheduler/run-now.d.ts +16 -0
  69. package/dist/core/scheduler/run-now.d.ts.map +1 -0
  70. package/dist/core/scheduler/run-now.js +28 -0
  71. package/dist/core/scheduler/windows.d.ts +16 -3
  72. package/dist/core/scheduler/windows.d.ts.map +1 -1
  73. package/dist/core/scheduler/windows.js +249 -96
  74. package/dist/core/secrets.d.ts.map +1 -1
  75. package/dist/core/secrets.js +127 -30
  76. package/dist/core/self-analysis.js +55 -55
  77. package/dist/core/session.d.ts.map +1 -1
  78. package/dist/core/session.js +18 -11
  79. package/dist/core/summary.js +1 -1
  80. package/dist/core/task-name.d.ts +24 -0
  81. package/dist/core/task-name.d.ts.map +1 -0
  82. package/dist/core/task-name.js +40 -0
  83. package/dist/core/triage-chain.js +1 -1
  84. package/dist/core/triage-worker.js +2 -2
  85. package/dist/core/triage.js +1 -1
  86. package/dist/core/wrappers/bash.d.ts.map +1 -1
  87. package/dist/core/wrappers/bash.js +82 -37
  88. package/dist/db/capability-repo.d.ts +83 -0
  89. package/dist/db/capability-repo.d.ts.map +1 -0
  90. package/dist/db/capability-repo.js +182 -0
  91. package/dist/db/history-repo.d.ts +8 -0
  92. package/dist/db/history-repo.d.ts.map +1 -1
  93. package/dist/db/history-repo.js +19 -0
  94. package/dist/db/index.d.ts +6 -0
  95. package/dist/db/index.d.ts.map +1 -1
  96. package/dist/db/index.js +48 -2
  97. package/dist/db/migrate.d.ts.map +1 -1
  98. package/dist/db/migrate.js +3 -1
  99. package/dist/db/run-context.d.ts +103 -0
  100. package/dist/db/run-context.d.ts.map +1 -0
  101. package/dist/db/run-context.js +224 -0
  102. package/dist/db/run-dlq.d.ts +100 -0
  103. package/dist/db/run-dlq.d.ts.map +1 -0
  104. package/dist/db/run-dlq.js +191 -0
  105. package/dist/db/run-journal.d.ts +60 -0
  106. package/dist/db/run-journal.d.ts.map +1 -0
  107. package/dist/db/run-journal.js +143 -0
  108. package/dist/db/run-resume.d.ts +51 -0
  109. package/dist/db/run-resume.d.ts.map +1 -0
  110. package/dist/db/run-resume.js +156 -0
  111. package/dist/db/runs-repo.d.ts +128 -0
  112. package/dist/db/runs-repo.d.ts.map +1 -0
  113. package/dist/db/runs-repo.js +342 -0
  114. package/dist/db/schema.d.ts +16 -2
  115. package/dist/db/schema.d.ts.map +1 -1
  116. package/dist/db/schema.js +342 -35
  117. package/dist/db/settings-repo.d.ts +11 -0
  118. package/dist/db/settings-repo.d.ts.map +1 -1
  119. package/dist/db/settings-repo.js +25 -0
  120. package/dist/db/step-idempotency.d.ts +51 -0
  121. package/dist/db/step-idempotency.d.ts.map +1 -0
  122. package/dist/db/step-idempotency.js +136 -0
  123. package/dist/index.d.ts +5 -5
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/index.js +168 -40
  126. package/dist/notifications.js +18 -18
  127. package/dist/profiles.d.ts +7 -3
  128. package/dist/profiles.d.ts.map +1 -1
  129. package/dist/profiles.js +85 -7
  130. package/dist/rpc.d.ts +787 -0
  131. package/dist/rpc.d.ts.map +1 -1
  132. package/dist/rpc.js +324 -0
  133. package/dist/server.d.ts +33 -2
  134. package/dist/server.d.ts.map +1 -1
  135. package/dist/server.js +115 -54
  136. package/dist/shared/jobs-view.d.ts.map +1 -1
  137. package/dist/skill.js +1 -1
  138. package/dist/task-transfer.d.ts +1 -1
  139. package/dist/task-transfer.d.ts.map +1 -1
  140. package/dist/task-transfer.js +14 -10
  141. package/dist/types.d.ts +20 -4
  142. package/dist/types.d.ts.map +1 -1
  143. package/dist/types.js +44 -9
  144. package/dist/workspaces.d.ts +25 -3
  145. package/dist/workspaces.d.ts.map +1 -1
  146. package/dist/workspaces.js +44 -9
  147. package/docs/ARCHITECTURE.md +335 -9
  148. package/docs/COMPATIBILITY.md +10 -6
  149. package/docs/CONCEPT.md +183 -91
  150. package/docs/CROSS_PLATFORM.ru.md +11 -9
  151. package/docs/CROSS_PLATFORM.zh.md +11 -9
  152. package/docs/EXECUTION-LOOP.md +196 -0
  153. package/docs/FAQ.md +2 -2
  154. package/docs/FAQ.ru.md +2 -2
  155. package/docs/FAQ.zh.md +2 -2
  156. package/docs/FEATURES.md +5 -4
  157. package/docs/FEATURES.zh.md +5 -4
  158. package/docs/MIGRATION.md +34 -26
  159. package/docs/README.ru.md +27 -8
  160. package/docs/README.zh.md +11 -10
  161. package/docs/SAFETY.md +122 -0
  162. package/docs/SAVINGS.md +29 -0
  163. package/docs/SAVINGS.ru.md +29 -0
  164. package/docs/SAVINGS.zh.md +18 -0
  165. package/docs/V1-V2-COMPATIBILITY-PLAN.md +6 -6
  166. package/gui-experimental.cjs +8 -8
  167. package/index.js +1 -0
  168. package/locales/en.json +68 -0
  169. package/locales/ru.json +68 -0
  170. package/locales/zh.json +68 -0
  171. package/package.json +57 -11
  172. package/scripts/audit-bundle.mjs +215 -0
  173. package/src/core/analytics.ts +2 -2
  174. package/src/core/audit.ts +17 -17
  175. package/src/core/cron-to-schtasks.ts +14 -93
  176. package/src/core/dlq-api.ts +98 -0
  177. package/src/core/dry-run.ts +51 -27
  178. package/src/core/file-watcher.ts +17 -17
  179. package/src/core/git-trigger.ts +9 -9
  180. package/src/core/glob.ts +1 -1
  181. package/src/core/local-ai.ts +2 -2
  182. package/src/core/lock.ts +104 -31
  183. package/src/core/matrix.ts +31 -31
  184. package/src/core/native-notify.ts +2 -2
  185. package/src/core/one-shot.ts +91 -13
  186. package/src/core/opencode-cli.ts +103 -0
  187. package/src/core/opencode-models.ts +315 -0
  188. package/src/core/otel.ts +4 -4
  189. package/src/core/permissions.ts +5 -5
  190. package/src/core/prometheus.ts +17 -17
  191. package/src/core/ps-wrapper.ts +68 -38
  192. package/src/core/record-history.ts +114 -76
  193. package/src/core/retention.ts +3 -3
  194. package/src/core/router/dispatch.ts +94 -0
  195. package/src/core/router/escalation.ts +129 -0
  196. package/src/core/router/planner.ts +166 -0
  197. package/src/core/router/rules.ts +109 -0
  198. package/src/core/run-panel-api.ts +262 -0
  199. package/src/core/savings.ts +1 -1
  200. package/src/core/schedule-gate.ts +17 -13
  201. package/src/core/schedule-v2.ts +138 -29
  202. package/src/core/scheduler/at-fallback.ts +298 -0
  203. package/src/core/scheduler/index.ts +3 -3
  204. package/src/core/scheduler/linux.ts +92 -19
  205. package/src/core/scheduler/logs.ts +1 -1
  206. package/src/core/scheduler/mac.ts +112 -60
  207. package/src/core/scheduler/posix.ts +35 -2
  208. package/src/core/scheduler/registry.ts +109 -26
  209. package/src/core/scheduler/run-now.ts +32 -0
  210. package/src/core/scheduler/windows.ts +295 -125
  211. package/src/core/secrets.ts +139 -39
  212. package/src/core/self-analysis.ts +61 -61
  213. package/src/core/session.ts +26 -13
  214. package/src/core/structured-log.ts +3 -3
  215. package/src/core/summary.ts +25 -25
  216. package/src/core/task-name.ts +67 -0
  217. package/src/core/telegram.ts +16 -16
  218. package/src/core/triage-chain.ts +4 -4
  219. package/src/core/triage-compare.ts +8 -8
  220. package/src/core/triage-rules.ts +4 -4
  221. package/src/core/triage-shadow.ts +7 -7
  222. package/src/core/triage-worker.ts +6 -6
  223. package/src/core/triage.ts +23 -23
  224. package/src/core/watch-paths.ts +1 -1
  225. package/src/core/wrappers/bash.ts +90 -45
  226. package/src/db/capability-repo.ts +285 -0
  227. package/src/db/git-state-repo.ts +1 -1
  228. package/src/db/history-repo.ts +44 -22
  229. package/src/db/index.ts +53 -7
  230. package/src/db/metrics-repo.ts +10 -10
  231. package/src/db/migrate.ts +13 -11
  232. package/src/db/recovery.ts +3 -3
  233. package/src/db/run-context.ts +370 -0
  234. package/src/db/run-dlq.ts +310 -0
  235. package/src/db/run-journal.ts +212 -0
  236. package/src/db/run-resume.ts +256 -0
  237. package/src/db/runs-repo.ts +504 -0
  238. package/src/db/schema.ts +357 -44
  239. package/src/db/settings-repo.ts +33 -2
  240. package/src/db/step-idempotency.ts +185 -0
  241. package/src/db/tasks-repo.ts +10 -10
  242. package/src/db/templates-repo.ts +7 -7
  243. package/src/gui.tsx +516 -1
  244. package/src/history.ts +4 -4
  245. package/src/i18n.ts +7 -7
  246. package/src/index.ts +465 -308
  247. package/src/integrations.ts +6 -6
  248. package/src/notifications.ts +76 -76
  249. package/src/profiles.ts +98 -7
  250. package/src/rpc.ts +347 -1
  251. package/src/schtasks.ts +2 -2
  252. package/src/server.ts +155 -78
  253. package/src/settings.ts +44 -44
  254. package/src/shared/jobs-view.ts +60 -60
  255. package/src/skill.ts +1 -1
  256. package/src/task-transfer.ts +58 -56
  257. package/src/templates.ts +1 -1
  258. package/src/types.ts +54 -10
  259. package/src/workspaces.ts +73 -24
  260. package/dist/core/self-analysis.test.d.ts +0 -2
  261. package/dist/core/self-analysis.test.d.ts.map +0 -1
  262. package/dist/core/self-analysis.test.js +0 -219
  263. package/dist/gui-experimental.cjs +0 -1
package/dist/rpc.d.ts CHANGED
@@ -3747,6 +3747,684 @@ export declare const SchedulerRpc: {
3747
3747
  readonly required: readonly ["success", "records", "total"];
3748
3748
  };
3749
3749
  };
3750
+ readonly list_dlq: {
3751
+ readonly input: {
3752
+ readonly type: "object";
3753
+ readonly properties: {
3754
+ /** open (по умолчанию) | retried | discarded | all. */
3755
+ readonly status: {
3756
+ readonly type: "string";
3757
+ };
3758
+ /** Сколько записей вернуть (по умолчанию 100, максимум 500). */
3759
+ readonly limit: {
3760
+ readonly type: "number";
3761
+ };
3762
+ };
3763
+ readonly additionalProperties: false;
3764
+ };
3765
+ readonly output: {
3766
+ readonly type: "object";
3767
+ readonly properties: {
3768
+ readonly success: {
3769
+ readonly type: "boolean";
3770
+ };
3771
+ readonly entries: {
3772
+ readonly type: "array";
3773
+ readonly items: {
3774
+ readonly type: "object";
3775
+ readonly properties: {
3776
+ readonly id: {
3777
+ readonly type: "string";
3778
+ };
3779
+ readonly runId: {
3780
+ readonly type: "string";
3781
+ };
3782
+ readonly stepName: {
3783
+ readonly type: "string";
3784
+ };
3785
+ readonly status: {
3786
+ readonly type: "string";
3787
+ };
3788
+ readonly reason: {
3789
+ readonly type: readonly ["string", "null"];
3790
+ };
3791
+ readonly error: {
3792
+ readonly type: readonly ["string", "null"];
3793
+ };
3794
+ readonly attempts: {
3795
+ readonly type: "number";
3796
+ };
3797
+ readonly createdAt: {
3798
+ readonly type: "string";
3799
+ };
3800
+ readonly updatedAt: {
3801
+ readonly type: "string";
3802
+ };
3803
+ readonly resolvedAt: {
3804
+ readonly type: readonly ["string", "null"];
3805
+ };
3806
+ readonly resolution: {
3807
+ readonly type: readonly ["string", "null"];
3808
+ };
3809
+ };
3810
+ readonly required: readonly ["id", "runId", "stepName", "status", "reason", "error", "attempts", "createdAt", "updatedAt", "resolvedAt", "resolution"];
3811
+ };
3812
+ };
3813
+ readonly open: {
3814
+ readonly type: "number";
3815
+ };
3816
+ readonly error: {
3817
+ readonly type: "string";
3818
+ };
3819
+ };
3820
+ readonly required: readonly ["success", "entries", "open"];
3821
+ readonly additionalProperties: false;
3822
+ };
3823
+ };
3824
+ readonly retry_dlq: {
3825
+ readonly input: {
3826
+ readonly type: "object";
3827
+ readonly properties: {
3828
+ readonly id: {
3829
+ readonly type: "string";
3830
+ };
3831
+ };
3832
+ readonly required: readonly ["id"];
3833
+ readonly additionalProperties: false;
3834
+ };
3835
+ readonly output: {
3836
+ readonly type: "object";
3837
+ readonly properties: {
3838
+ readonly success: {
3839
+ readonly type: "boolean";
3840
+ };
3841
+ readonly error: {
3842
+ readonly type: "string";
3843
+ };
3844
+ readonly entry: {
3845
+ readonly type: "object";
3846
+ readonly properties: {
3847
+ readonly id: {
3848
+ readonly type: "string";
3849
+ };
3850
+ readonly runId: {
3851
+ readonly type: "string";
3852
+ };
3853
+ readonly stepName: {
3854
+ readonly type: "string";
3855
+ };
3856
+ readonly status: {
3857
+ readonly type: "string";
3858
+ };
3859
+ readonly reason: {
3860
+ readonly type: readonly ["string", "null"];
3861
+ };
3862
+ readonly error: {
3863
+ readonly type: readonly ["string", "null"];
3864
+ };
3865
+ readonly attempts: {
3866
+ readonly type: "number";
3867
+ };
3868
+ readonly createdAt: {
3869
+ readonly type: "string";
3870
+ };
3871
+ readonly updatedAt: {
3872
+ readonly type: "string";
3873
+ };
3874
+ readonly resolvedAt: {
3875
+ readonly type: readonly ["string", "null"];
3876
+ };
3877
+ readonly resolution: {
3878
+ readonly type: readonly ["string", "null"];
3879
+ };
3880
+ };
3881
+ readonly required: readonly ["id", "runId", "stepName", "status", "reason", "error", "attempts", "createdAt", "updatedAt", "resolvedAt", "resolution"];
3882
+ };
3883
+ readonly runId: {
3884
+ readonly type: "string";
3885
+ };
3886
+ readonly stepName: {
3887
+ readonly type: "string";
3888
+ };
3889
+ readonly runReopened: {
3890
+ readonly type: "boolean";
3891
+ };
3892
+ };
3893
+ readonly required: readonly ["success"];
3894
+ readonly additionalProperties: false;
3895
+ };
3896
+ };
3897
+ readonly discard_dlq: {
3898
+ readonly input: {
3899
+ readonly type: "object";
3900
+ readonly properties: {
3901
+ readonly id: {
3902
+ readonly type: "string";
3903
+ };
3904
+ /** Причина отказа для журнала (по умолчанию discarded). */
3905
+ readonly resolution: {
3906
+ readonly type: "string";
3907
+ };
3908
+ };
3909
+ readonly required: readonly ["id"];
3910
+ readonly additionalProperties: false;
3911
+ };
3912
+ readonly output: {
3913
+ readonly type: "object";
3914
+ readonly properties: {
3915
+ readonly success: {
3916
+ readonly type: "boolean";
3917
+ };
3918
+ readonly error: {
3919
+ readonly type: "string";
3920
+ };
3921
+ readonly entry: {
3922
+ readonly type: "object";
3923
+ readonly properties: {
3924
+ readonly id: {
3925
+ readonly type: "string";
3926
+ };
3927
+ readonly runId: {
3928
+ readonly type: "string";
3929
+ };
3930
+ readonly stepName: {
3931
+ readonly type: "string";
3932
+ };
3933
+ readonly status: {
3934
+ readonly type: "string";
3935
+ };
3936
+ readonly reason: {
3937
+ readonly type: readonly ["string", "null"];
3938
+ };
3939
+ readonly error: {
3940
+ readonly type: readonly ["string", "null"];
3941
+ };
3942
+ readonly attempts: {
3943
+ readonly type: "number";
3944
+ };
3945
+ readonly createdAt: {
3946
+ readonly type: "string";
3947
+ };
3948
+ readonly updatedAt: {
3949
+ readonly type: "string";
3950
+ };
3951
+ readonly resolvedAt: {
3952
+ readonly type: readonly ["string", "null"];
3953
+ };
3954
+ readonly resolution: {
3955
+ readonly type: readonly ["string", "null"];
3956
+ };
3957
+ };
3958
+ readonly required: readonly ["id", "runId", "stepName", "status", "reason", "error", "attempts", "createdAt", "updatedAt", "resolvedAt", "resolution"];
3959
+ };
3960
+ };
3961
+ readonly required: readonly ["success"];
3962
+ readonly additionalProperties: false;
3963
+ };
3964
+ };
3965
+ readonly list_durable_runs: {
3966
+ readonly input: {
3967
+ readonly type: "object";
3968
+ readonly properties: {
3969
+ /** active (по умолчанию) | all | pending | running | paused | passed | failed | cancelled. */
3970
+ readonly filter: {
3971
+ readonly type: "string";
3972
+ };
3973
+ /** Сколько запусков вернуть (по умолчанию 20, максимум 100). */
3974
+ readonly limit: {
3975
+ readonly type: "number";
3976
+ };
3977
+ };
3978
+ readonly additionalProperties: false;
3979
+ };
3980
+ readonly output: {
3981
+ readonly type: "object";
3982
+ readonly properties: {
3983
+ readonly success: {
3984
+ readonly type: "boolean";
3985
+ };
3986
+ readonly runs: {
3987
+ readonly type: "array";
3988
+ readonly items: {
3989
+ readonly type: "object";
3990
+ readonly properties: {
3991
+ readonly id: {
3992
+ readonly type: "string";
3993
+ };
3994
+ readonly taskName: {
3995
+ readonly type: "string";
3996
+ };
3997
+ readonly status: {
3998
+ readonly type: "string";
3999
+ };
4000
+ readonly createdAt: {
4001
+ readonly type: "string";
4002
+ };
4003
+ readonly startedAt: {
4004
+ readonly type: readonly ["string", "null"];
4005
+ };
4006
+ readonly finishedAt: {
4007
+ readonly type: readonly ["string", "null"];
4008
+ };
4009
+ readonly error: {
4010
+ readonly type: readonly ["string", "null"];
4011
+ };
4012
+ readonly steps: {
4013
+ readonly type: "array";
4014
+ readonly items: {
4015
+ readonly type: "object";
4016
+ readonly properties: {
4017
+ readonly stepName: {
4018
+ readonly type: "string";
4019
+ };
4020
+ readonly position: {
4021
+ readonly type: "number";
4022
+ };
4023
+ readonly status: {
4024
+ readonly type: "string";
4025
+ };
4026
+ readonly attempt: {
4027
+ readonly type: "number";
4028
+ };
4029
+ readonly error: {
4030
+ readonly type: readonly ["string", "null"];
4031
+ };
4032
+ readonly anchor: {
4033
+ readonly type: "string";
4034
+ };
4035
+ };
4036
+ readonly required: readonly ["stepName", "position", "status", "attempt", "error", "anchor"];
4037
+ };
4038
+ };
4039
+ readonly currentStep: {
4040
+ readonly type: readonly ["object", "null"];
4041
+ readonly properties: {
4042
+ readonly stepName: {
4043
+ readonly type: "string";
4044
+ };
4045
+ readonly position: {
4046
+ readonly type: "number";
4047
+ };
4048
+ readonly status: {
4049
+ readonly type: "string";
4050
+ };
4051
+ readonly attempt: {
4052
+ readonly type: "number";
4053
+ };
4054
+ readonly error: {
4055
+ readonly type: readonly ["string", "null"];
4056
+ };
4057
+ readonly anchor: {
4058
+ readonly type: "string";
4059
+ };
4060
+ };
4061
+ };
4062
+ readonly doneSteps: {
4063
+ readonly type: "number";
4064
+ };
4065
+ readonly totalSteps: {
4066
+ readonly type: "number";
4067
+ };
4068
+ readonly injections: {
4069
+ readonly type: "array";
4070
+ readonly items: {
4071
+ readonly type: "object";
4072
+ readonly properties: {
4073
+ readonly id: {
4074
+ readonly type: "string";
4075
+ };
4076
+ readonly kind: {
4077
+ readonly type: "string";
4078
+ };
4079
+ readonly content: {
4080
+ readonly type: "string";
4081
+ };
4082
+ readonly contentLength: {
4083
+ readonly type: "number";
4084
+ };
4085
+ readonly author: {
4086
+ readonly type: "string";
4087
+ };
4088
+ readonly createdAt: {
4089
+ readonly type: "string";
4090
+ };
4091
+ readonly consumedAt: {
4092
+ readonly type: readonly ["string", "null"];
4093
+ };
4094
+ readonly consumedByStep: {
4095
+ readonly type: readonly ["string", "null"];
4096
+ };
4097
+ };
4098
+ readonly required: readonly ["id", "kind", "content", "contentLength", "author", "createdAt", "consumedAt", "consumedByStep"];
4099
+ };
4100
+ };
4101
+ readonly pendingInjections: {
4102
+ readonly type: "number";
4103
+ };
4104
+ };
4105
+ readonly required: readonly ["id", "taskName", "status", "createdAt", "startedAt", "finishedAt", "error", "steps", "currentStep", "doneSteps", "totalSteps", "injections", "pendingInjections"];
4106
+ };
4107
+ };
4108
+ readonly active: {
4109
+ readonly type: "number";
4110
+ };
4111
+ readonly error: {
4112
+ readonly type: "string";
4113
+ };
4114
+ };
4115
+ readonly required: readonly ["success", "runs", "active"];
4116
+ readonly additionalProperties: false;
4117
+ };
4118
+ };
4119
+ readonly pause_durable_run: {
4120
+ readonly input: {
4121
+ readonly type: "object";
4122
+ readonly properties: {
4123
+ readonly runId: {
4124
+ readonly type: "string";
4125
+ };
4126
+ /** Явный шаг-получатель; по умолчанию первый незавершённый. */
4127
+ readonly stepName: {
4128
+ readonly type: "string";
4129
+ };
4130
+ /** Комментарий, который получит шаг при resume. */
4131
+ readonly comment: {
4132
+ readonly type: "string";
4133
+ };
4134
+ /** Автор комментария (по умолчанию local-user). */
4135
+ readonly author: {
4136
+ readonly type: "string";
4137
+ };
4138
+ };
4139
+ readonly required: readonly ["runId"];
4140
+ readonly additionalProperties: false;
4141
+ };
4142
+ readonly output: {
4143
+ readonly type: "object";
4144
+ readonly properties: {
4145
+ readonly success: {
4146
+ readonly type: "boolean";
4147
+ };
4148
+ readonly error: {
4149
+ readonly type: "string";
4150
+ };
4151
+ readonly run: {
4152
+ readonly type: "object";
4153
+ readonly properties: {
4154
+ readonly id: {
4155
+ readonly type: "string";
4156
+ };
4157
+ readonly taskName: {
4158
+ readonly type: "string";
4159
+ };
4160
+ readonly status: {
4161
+ readonly type: "string";
4162
+ };
4163
+ readonly createdAt: {
4164
+ readonly type: "string";
4165
+ };
4166
+ readonly startedAt: {
4167
+ readonly type: readonly ["string", "null"];
4168
+ };
4169
+ readonly finishedAt: {
4170
+ readonly type: readonly ["string", "null"];
4171
+ };
4172
+ readonly error: {
4173
+ readonly type: readonly ["string", "null"];
4174
+ };
4175
+ readonly steps: {
4176
+ readonly type: "array";
4177
+ readonly items: {
4178
+ readonly type: "object";
4179
+ readonly properties: {
4180
+ readonly stepName: {
4181
+ readonly type: "string";
4182
+ };
4183
+ readonly position: {
4184
+ readonly type: "number";
4185
+ };
4186
+ readonly status: {
4187
+ readonly type: "string";
4188
+ };
4189
+ readonly attempt: {
4190
+ readonly type: "number";
4191
+ };
4192
+ readonly error: {
4193
+ readonly type: readonly ["string", "null"];
4194
+ };
4195
+ readonly anchor: {
4196
+ readonly type: "string";
4197
+ };
4198
+ };
4199
+ readonly required: readonly ["stepName", "position", "status", "attempt", "error", "anchor"];
4200
+ };
4201
+ };
4202
+ readonly currentStep: {
4203
+ readonly type: readonly ["object", "null"];
4204
+ readonly properties: {
4205
+ readonly stepName: {
4206
+ readonly type: "string";
4207
+ };
4208
+ readonly position: {
4209
+ readonly type: "number";
4210
+ };
4211
+ readonly status: {
4212
+ readonly type: "string";
4213
+ };
4214
+ readonly attempt: {
4215
+ readonly type: "number";
4216
+ };
4217
+ readonly error: {
4218
+ readonly type: readonly ["string", "null"];
4219
+ };
4220
+ readonly anchor: {
4221
+ readonly type: "string";
4222
+ };
4223
+ };
4224
+ };
4225
+ readonly doneSteps: {
4226
+ readonly type: "number";
4227
+ };
4228
+ readonly totalSteps: {
4229
+ readonly type: "number";
4230
+ };
4231
+ readonly injections: {
4232
+ readonly type: "array";
4233
+ readonly items: {
4234
+ readonly type: "object";
4235
+ readonly properties: {
4236
+ readonly id: {
4237
+ readonly type: "string";
4238
+ };
4239
+ readonly kind: {
4240
+ readonly type: "string";
4241
+ };
4242
+ readonly content: {
4243
+ readonly type: "string";
4244
+ };
4245
+ readonly contentLength: {
4246
+ readonly type: "number";
4247
+ };
4248
+ readonly author: {
4249
+ readonly type: "string";
4250
+ };
4251
+ readonly createdAt: {
4252
+ readonly type: "string";
4253
+ };
4254
+ readonly consumedAt: {
4255
+ readonly type: readonly ["string", "null"];
4256
+ };
4257
+ readonly consumedByStep: {
4258
+ readonly type: readonly ["string", "null"];
4259
+ };
4260
+ };
4261
+ readonly required: readonly ["id", "kind", "content", "contentLength", "author", "createdAt", "consumedAt", "consumedByStep"];
4262
+ };
4263
+ };
4264
+ readonly pendingInjections: {
4265
+ readonly type: "number";
4266
+ };
4267
+ };
4268
+ readonly required: readonly ["id", "taskName", "status", "createdAt", "startedAt", "finishedAt", "error", "steps", "currentStep", "doneSteps", "totalSteps", "injections", "pendingInjections"];
4269
+ };
4270
+ readonly stepName: {
4271
+ readonly type: readonly ["string", "null"];
4272
+ };
4273
+ };
4274
+ readonly required: readonly ["success"];
4275
+ readonly additionalProperties: false;
4276
+ };
4277
+ };
4278
+ readonly resume_durable_run: {
4279
+ readonly input: {
4280
+ readonly type: "object";
4281
+ readonly properties: {
4282
+ readonly runId: {
4283
+ readonly type: "string";
4284
+ };
4285
+ };
4286
+ readonly required: readonly ["runId"];
4287
+ readonly additionalProperties: false;
4288
+ };
4289
+ readonly output: {
4290
+ readonly type: "object";
4291
+ readonly properties: {
4292
+ readonly success: {
4293
+ readonly type: "boolean";
4294
+ };
4295
+ readonly error: {
4296
+ readonly type: "string";
4297
+ };
4298
+ readonly run: {
4299
+ readonly type: "object";
4300
+ readonly properties: {
4301
+ readonly id: {
4302
+ readonly type: "string";
4303
+ };
4304
+ readonly taskName: {
4305
+ readonly type: "string";
4306
+ };
4307
+ readonly status: {
4308
+ readonly type: "string";
4309
+ };
4310
+ readonly createdAt: {
4311
+ readonly type: "string";
4312
+ };
4313
+ readonly startedAt: {
4314
+ readonly type: readonly ["string", "null"];
4315
+ };
4316
+ readonly finishedAt: {
4317
+ readonly type: readonly ["string", "null"];
4318
+ };
4319
+ readonly error: {
4320
+ readonly type: readonly ["string", "null"];
4321
+ };
4322
+ readonly steps: {
4323
+ readonly type: "array";
4324
+ readonly items: {
4325
+ readonly type: "object";
4326
+ readonly properties: {
4327
+ readonly stepName: {
4328
+ readonly type: "string";
4329
+ };
4330
+ readonly position: {
4331
+ readonly type: "number";
4332
+ };
4333
+ readonly status: {
4334
+ readonly type: "string";
4335
+ };
4336
+ readonly attempt: {
4337
+ readonly type: "number";
4338
+ };
4339
+ readonly error: {
4340
+ readonly type: readonly ["string", "null"];
4341
+ };
4342
+ readonly anchor: {
4343
+ readonly type: "string";
4344
+ };
4345
+ };
4346
+ readonly required: readonly ["stepName", "position", "status", "attempt", "error", "anchor"];
4347
+ };
4348
+ };
4349
+ readonly currentStep: {
4350
+ readonly type: readonly ["object", "null"];
4351
+ readonly properties: {
4352
+ readonly stepName: {
4353
+ readonly type: "string";
4354
+ };
4355
+ readonly position: {
4356
+ readonly type: "number";
4357
+ };
4358
+ readonly status: {
4359
+ readonly type: "string";
4360
+ };
4361
+ readonly attempt: {
4362
+ readonly type: "number";
4363
+ };
4364
+ readonly error: {
4365
+ readonly type: readonly ["string", "null"];
4366
+ };
4367
+ readonly anchor: {
4368
+ readonly type: "string";
4369
+ };
4370
+ };
4371
+ };
4372
+ readonly doneSteps: {
4373
+ readonly type: "number";
4374
+ };
4375
+ readonly totalSteps: {
4376
+ readonly type: "number";
4377
+ };
4378
+ readonly injections: {
4379
+ readonly type: "array";
4380
+ readonly items: {
4381
+ readonly type: "object";
4382
+ readonly properties: {
4383
+ readonly id: {
4384
+ readonly type: "string";
4385
+ };
4386
+ readonly kind: {
4387
+ readonly type: "string";
4388
+ };
4389
+ readonly content: {
4390
+ readonly type: "string";
4391
+ };
4392
+ readonly contentLength: {
4393
+ readonly type: "number";
4394
+ };
4395
+ readonly author: {
4396
+ readonly type: "string";
4397
+ };
4398
+ readonly createdAt: {
4399
+ readonly type: "string";
4400
+ };
4401
+ readonly consumedAt: {
4402
+ readonly type: readonly ["string", "null"];
4403
+ };
4404
+ readonly consumedByStep: {
4405
+ readonly type: readonly ["string", "null"];
4406
+ };
4407
+ };
4408
+ readonly required: readonly ["id", "kind", "content", "contentLength", "author", "createdAt", "consumedAt", "consumedByStep"];
4409
+ };
4410
+ };
4411
+ readonly pendingInjections: {
4412
+ readonly type: "number";
4413
+ };
4414
+ };
4415
+ readonly required: readonly ["id", "taskName", "status", "createdAt", "startedAt", "finishedAt", "error", "steps", "currentStep", "doneSteps", "totalSteps", "injections", "pendingInjections"];
4416
+ };
4417
+ readonly stepName: {
4418
+ readonly type: readonly ["string", "null"];
4419
+ };
4420
+ readonly prepared: {
4421
+ readonly type: "boolean";
4422
+ };
4423
+ };
4424
+ readonly required: readonly ["success"];
4425
+ readonly additionalProperties: false;
4426
+ };
4427
+ };
3750
4428
  readonly compare_triage: {
3751
4429
  readonly input: {
3752
4430
  readonly type: "object";
@@ -3799,6 +4477,115 @@ export declare const SchedulerRpc: {
3799
4477
  readonly additionalProperties: false;
3800
4478
  };
3801
4479
  };
4480
+ readonly get_shadow_report: {
4481
+ readonly input: {
4482
+ readonly type: "object";
4483
+ readonly properties: {};
4484
+ readonly additionalProperties: false;
4485
+ };
4486
+ readonly output: {
4487
+ readonly type: "object";
4488
+ readonly properties: {
4489
+ readonly success: {
4490
+ readonly type: "boolean";
4491
+ };
4492
+ readonly active: {
4493
+ readonly type: "boolean";
4494
+ };
4495
+ readonly startedAt: {
4496
+ readonly type: readonly ["string", "null"];
4497
+ };
4498
+ readonly days: {
4499
+ readonly type: "number";
4500
+ };
4501
+ readonly total: {
4502
+ readonly type: "number";
4503
+ };
4504
+ readonly skips: {
4505
+ readonly type: "number";
4506
+ };
4507
+ readonly wouldSuppress: {
4508
+ readonly type: "number";
4509
+ };
4510
+ readonly bySource: {
4511
+ readonly type: "object";
4512
+ };
4513
+ readonly persisted: {
4514
+ readonly type: "boolean";
4515
+ };
4516
+ readonly truncated: {
4517
+ readonly type: "boolean";
4518
+ };
4519
+ readonly decisions: {
4520
+ readonly type: "array";
4521
+ readonly items: {
4522
+ readonly type: "object";
4523
+ };
4524
+ };
4525
+ };
4526
+ readonly required: readonly ["success", "active", "startedAt", "days", "total", "skips", "wouldSuppress", "bySource", "persisted", "truncated", "decisions"];
4527
+ readonly additionalProperties: false;
4528
+ };
4529
+ };
4530
+ readonly reset_shadow_report: {
4531
+ readonly input: {
4532
+ readonly type: "object";
4533
+ readonly properties: {};
4534
+ readonly additionalProperties: false;
4535
+ };
4536
+ readonly output: {
4537
+ readonly type: "object";
4538
+ readonly properties: {
4539
+ readonly success: {
4540
+ readonly type: "boolean";
4541
+ };
4542
+ };
4543
+ readonly required: readonly ["success"];
4544
+ readonly additionalProperties: false;
4545
+ };
4546
+ };
4547
+ readonly test_local_ai: {
4548
+ readonly input: {
4549
+ readonly type: "object";
4550
+ readonly properties: {
4551
+ readonly mode: {
4552
+ readonly type: "string";
4553
+ };
4554
+ readonly baseUrl: {
4555
+ readonly type: "string";
4556
+ };
4557
+ readonly model: {
4558
+ readonly type: "string";
4559
+ };
4560
+ readonly timeoutMs: {
4561
+ readonly type: "number";
4562
+ };
4563
+ readonly fallback: {
4564
+ readonly type: "string";
4565
+ };
4566
+ readonly confidenceThreshold: {
4567
+ readonly type: "number";
4568
+ };
4569
+ };
4570
+ readonly additionalProperties: false;
4571
+ };
4572
+ readonly output: {
4573
+ readonly type: "object";
4574
+ readonly properties: {
4575
+ readonly success: {
4576
+ readonly type: "boolean";
4577
+ };
4578
+ readonly localAi: {
4579
+ readonly type: "object";
4580
+ };
4581
+ readonly result: {
4582
+ readonly type: "object";
4583
+ };
4584
+ };
4585
+ readonly required: readonly ["success", "localAi", "result"];
4586
+ readonly additionalProperties: false;
4587
+ };
4588
+ };
3802
4589
  };
3803
4590
  readonly events: {};
3804
4591
  };