@coralai/sps-plugin-api 0.5.0 → 0.5.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/dist/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -129,7 +129,16 @@ export interface SpsCardRef {
|
|
|
129
129
|
* ⚠️ 不开 move / delete:那些是流水线在做的事,掺进来就有两个写入方。
|
|
130
130
|
*/
|
|
131
131
|
export interface SpsCards {
|
|
132
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* 失败**抛**(建卡没成功而静默返回,你会以为建好了)。
|
|
134
|
+
*
|
|
135
|
+
* 🔴 **你传的 `labels` 会被核对**:落不上会抛,并把 `seq` 带出来。
|
|
136
|
+
* 底层 `setLabels` 失败是被吞掉的,而回执在某些路径下会拿你传的值填 ——
|
|
137
|
+
* 两处叠加就是"卡建了、label 没落上、回执还说落上了"。
|
|
138
|
+
* 对 `AI-PIPELINE` 那只是"没走流水线";
|
|
139
|
+
* 但拿 label 当**幂等键**时,下一轮找不到键就会**重复建一整套**,全程不报错。
|
|
140
|
+
* ⇒ 这一层替你核过了。抛的时候卡**已经建了**,`seq` 在错误消息里,自己收拾。
|
|
141
|
+
*/
|
|
133
142
|
create(project: string, card: SpsNewCard): Promise<SpsCardRef>;
|
|
134
143
|
list(project: string): Promise<SpsCardRef[]>;
|
|
135
144
|
}
|