agent-steward 0.0.3 → 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 (171) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +3 -3
  3. package/ROADMAP-STRATEGY.md +9 -9
  4. package/ROADMAP.md +50 -34
  5. package/dist/core/dlq-api.d.ts +44 -0
  6. package/dist/core/dlq-api.d.ts.map +1 -0
  7. package/dist/core/dlq-api.js +68 -0
  8. package/dist/core/dry-run.d.ts.map +1 -1
  9. package/dist/core/dry-run.js +18 -1
  10. package/dist/core/lock.d.ts +20 -4
  11. package/dist/core/lock.d.ts.map +1 -1
  12. package/dist/core/lock.js +97 -22
  13. package/dist/core/one-shot.d.ts +5 -1
  14. package/dist/core/one-shot.d.ts.map +1 -1
  15. package/dist/core/one-shot.js +33 -8
  16. package/dist/core/opencode-cli.d.ts +28 -0
  17. package/dist/core/opencode-cli.d.ts.map +1 -0
  18. package/dist/core/opencode-cli.js +74 -0
  19. package/dist/core/opencode-models.d.ts +62 -0
  20. package/dist/core/opencode-models.d.ts.map +1 -0
  21. package/dist/core/opencode-models.js +277 -0
  22. package/dist/core/ps-wrapper.d.ts +1 -1
  23. package/dist/core/ps-wrapper.d.ts.map +1 -1
  24. package/dist/core/ps-wrapper.js +11 -1
  25. package/dist/core/record-history.d.ts +15 -0
  26. package/dist/core/record-history.d.ts.map +1 -1
  27. package/dist/core/record-history.js +56 -32
  28. package/dist/core/router/dispatch.d.ts +36 -0
  29. package/dist/core/router/dispatch.d.ts.map +1 -0
  30. package/dist/core/router/dispatch.js +59 -0
  31. package/dist/core/router/escalation.d.ts +47 -0
  32. package/dist/core/router/escalation.d.ts.map +1 -0
  33. package/dist/core/router/escalation.js +87 -0
  34. package/dist/core/router/planner.d.ts +53 -0
  35. package/dist/core/router/planner.d.ts.map +1 -0
  36. package/dist/core/router/planner.js +113 -0
  37. package/dist/core/router/rules.d.ts +46 -0
  38. package/dist/core/router/rules.d.ts.map +1 -0
  39. package/dist/core/router/rules.js +85 -0
  40. package/dist/core/run-panel-api.d.ts +94 -0
  41. package/dist/core/run-panel-api.d.ts.map +1 -0
  42. package/dist/core/run-panel-api.js +169 -0
  43. package/dist/core/schedule-gate.js +5 -1
  44. package/dist/core/schedule-v2.d.ts +34 -0
  45. package/dist/core/schedule-v2.d.ts.map +1 -1
  46. package/dist/core/schedule-v2.js +91 -5
  47. package/dist/core/scheduler/at-fallback.d.ts +55 -2
  48. package/dist/core/scheduler/at-fallback.d.ts.map +1 -1
  49. package/dist/core/scheduler/at-fallback.js +135 -5
  50. package/dist/core/scheduler/linux.d.ts +10 -1
  51. package/dist/core/scheduler/linux.d.ts.map +1 -1
  52. package/dist/core/scheduler/linux.js +29 -11
  53. package/dist/core/scheduler/posix.d.ts.map +1 -1
  54. package/dist/core/scheduler/posix.js +25 -1
  55. package/dist/core/scheduler/registry.d.ts +11 -0
  56. package/dist/core/scheduler/registry.d.ts.map +1 -1
  57. package/dist/core/scheduler/registry.js +83 -21
  58. package/dist/core/scheduler/run-now.d.ts +16 -0
  59. package/dist/core/scheduler/run-now.d.ts.map +1 -0
  60. package/dist/core/scheduler/run-now.js +28 -0
  61. package/dist/core/secrets.d.ts.map +1 -1
  62. package/dist/core/secrets.js +125 -28
  63. package/dist/core/session.d.ts.map +1 -1
  64. package/dist/core/session.js +18 -11
  65. package/dist/core/task-name.d.ts +24 -0
  66. package/dist/core/task-name.d.ts.map +1 -0
  67. package/dist/core/task-name.js +40 -0
  68. package/dist/core/wrappers/bash.d.ts.map +1 -1
  69. package/dist/core/wrappers/bash.js +49 -4
  70. package/dist/db/capability-repo.d.ts +83 -0
  71. package/dist/db/capability-repo.d.ts.map +1 -0
  72. package/dist/db/capability-repo.js +182 -0
  73. package/dist/db/history-repo.d.ts +8 -0
  74. package/dist/db/history-repo.d.ts.map +1 -1
  75. package/dist/db/history-repo.js +19 -0
  76. package/dist/db/index.d.ts +4 -0
  77. package/dist/db/index.d.ts.map +1 -1
  78. package/dist/db/index.js +39 -1
  79. package/dist/db/migrate.d.ts.map +1 -1
  80. package/dist/db/migrate.js +3 -1
  81. package/dist/db/run-context.d.ts +103 -0
  82. package/dist/db/run-context.d.ts.map +1 -0
  83. package/dist/db/run-context.js +224 -0
  84. package/dist/db/run-dlq.d.ts +100 -0
  85. package/dist/db/run-dlq.d.ts.map +1 -0
  86. package/dist/db/run-dlq.js +191 -0
  87. package/dist/db/run-resume.d.ts +5 -2
  88. package/dist/db/run-resume.d.ts.map +1 -1
  89. package/dist/db/run-resume.js +30 -11
  90. package/dist/db/runs-repo.d.ts +13 -5
  91. package/dist/db/runs-repo.d.ts.map +1 -1
  92. package/dist/db/runs-repo.js +28 -5
  93. package/dist/db/schema.d.ts +2 -2
  94. package/dist/db/schema.d.ts.map +1 -1
  95. package/dist/db/schema.js +154 -2
  96. package/dist/db/settings-repo.d.ts +11 -0
  97. package/dist/db/settings-repo.d.ts.map +1 -1
  98. package/dist/db/settings-repo.js +25 -0
  99. package/dist/db/step-idempotency.d.ts +51 -0
  100. package/dist/db/step-idempotency.d.ts.map +1 -0
  101. package/dist/db/step-idempotency.js +136 -0
  102. package/dist/index.d.ts +4 -4
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +102 -4
  105. package/dist/rpc.d.ts +678 -0
  106. package/dist/rpc.d.ts.map +1 -1
  107. package/dist/rpc.js +235 -0
  108. package/dist/server.d.ts +31 -0
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/server.js +95 -35
  111. package/dist/types.d.ts.map +1 -1
  112. package/dist/types.js +7 -0
  113. package/dist/workspaces.d.ts +25 -3
  114. package/dist/workspaces.d.ts.map +1 -1
  115. package/dist/workspaces.js +43 -8
  116. package/docs/ARCHITECTURE.md +229 -5
  117. package/docs/CONCEPT.md +171 -91
  118. package/docs/EXECUTION-LOOP.md +196 -0
  119. package/docs/README.ru.md +2 -2
  120. package/docs/README.zh.md +3 -3
  121. package/docs/SAFETY.md +122 -0
  122. package/docs/SAVINGS.md +29 -0
  123. package/docs/SAVINGS.ru.md +29 -0
  124. package/docs/SAVINGS.zh.md +18 -0
  125. package/gui-experimental.cjs +8 -8
  126. package/locales/en.json +67 -0
  127. package/locales/ru.json +67 -0
  128. package/locales/zh.json +67 -0
  129. package/package.json +28 -3
  130. package/scripts/audit-bundle.mjs +215 -0
  131. package/src/core/dlq-api.ts +98 -0
  132. package/src/core/dry-run.ts +25 -1
  133. package/src/core/lock.ts +95 -22
  134. package/src/core/one-shot.ts +36 -8
  135. package/src/core/opencode-cli.ts +103 -0
  136. package/src/core/opencode-models.ts +315 -0
  137. package/src/core/ps-wrapper.ts +11 -1
  138. package/src/core/record-history.ts +75 -37
  139. package/src/core/router/dispatch.ts +94 -0
  140. package/src/core/router/escalation.ts +129 -0
  141. package/src/core/router/planner.ts +166 -0
  142. package/src/core/router/rules.ts +109 -0
  143. package/src/core/run-panel-api.ts +262 -0
  144. package/src/core/schedule-gate.ts +6 -2
  145. package/src/core/schedule-v2.ts +114 -5
  146. package/src/core/scheduler/at-fallback.ts +190 -5
  147. package/src/core/scheduler/linux.ts +32 -10
  148. package/src/core/scheduler/posix.ts +20 -1
  149. package/src/core/scheduler/registry.ts +107 -26
  150. package/src/core/scheduler/run-now.ts +32 -0
  151. package/src/core/secrets.ts +127 -27
  152. package/src/core/session.ts +23 -10
  153. package/src/core/task-name.ts +67 -0
  154. package/src/core/wrappers/bash.ts +49 -4
  155. package/src/db/capability-repo.ts +285 -0
  156. package/src/db/history-repo.ts +22 -0
  157. package/src/db/index.ts +37 -1
  158. package/src/db/migrate.ts +3 -1
  159. package/src/db/run-context.ts +370 -0
  160. package/src/db/run-dlq.ts +310 -0
  161. package/src/db/run-resume.ts +48 -12
  162. package/src/db/runs-repo.ts +30 -7
  163. package/src/db/schema.ts +154 -2
  164. package/src/db/settings-repo.ts +31 -0
  165. package/src/db/step-idempotency.ts +185 -0
  166. package/src/gui.tsx +515 -0
  167. package/src/index.ts +124 -4
  168. package/src/rpc.ts +251 -0
  169. package/src/server.ts +112 -36
  170. package/src/types.ts +9 -0
  171. package/src/workspaces.ts +58 -9
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";