@coralai/sps-plugin-api 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +20 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -142,11 +142,27 @@ export interface SpsEvent {
|
|
|
142
142
|
* 🔴 **别在回调里做慢事**:宿主不 await 你,但你占着的是发布方的调用栈。
|
|
143
143
|
* 要发网络请求就自己排队。
|
|
144
144
|
*
|
|
145
|
-
*
|
|
145
|
+
* 今天宿主发的(三个前缀,订阅时按前缀过滤):
|
|
146
146
|
* ```
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
147
|
+
* 卡片 —— 发在**写入漏斗**上,不管是流水线改的、界面改的还是 CLI 改的都收得到
|
|
148
|
+
* card.moved { seq, to } card.labeled { seq, label }
|
|
149
|
+
* card.unlabeled { seq, label } card.claimed { seq, slot }
|
|
150
|
+
* card.released { seq } card.created { seq, title, state }
|
|
151
|
+
* card.flagged { seq, label, reason } ← 被标成 NEEDS-FIX / BLOCKED 之类
|
|
152
|
+
*
|
|
153
|
+
* worker —— 发在**引擎判定的那一刻**(它没有写入漏斗:"这个 worker 丢了"是判断)
|
|
154
|
+
* worker.started { seq, slot }
|
|
155
|
+
* worker.stageCompleted { seq, stage, reason }
|
|
156
|
+
* worker.completed { seq, ok, errors? } ← ok 分开报:干完了 vs 干完了但收尾出错
|
|
157
|
+
* worker.failed { seq, reason, exitCode? }
|
|
158
|
+
* worker.lost { seq, reason, recovered }
|
|
159
|
+
* worker.timeout { seq, elapsedHours }
|
|
160
|
+
* worker.retrying { seq, attempt, limit, reason }
|
|
161
|
+
* worker.blocked { seq, limit } ← 重试用尽,要人介入
|
|
162
|
+
* worker.waiting { seq, kind, prompt } ← **要人点头才能继续**
|
|
163
|
+
*
|
|
164
|
+
* pipeline
|
|
165
|
+
* pipeline.started { pid? } pipeline.stopped {} pipeline.completed {}
|
|
150
166
|
* ```
|
|
151
167
|
*/
|
|
152
168
|
export interface SpsEvents {
|