@tbox.cn/app-contracts 0.12.2 → 0.12.3
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/cards.d.ts +8 -0
- package/package.json +1 -1
package/dist/cards.d.ts
CHANGED
|
@@ -46,6 +46,14 @@ export interface CardMeta<TSchema extends ZodTypeAny = ZodTypeAny> {
|
|
|
46
46
|
* - 标记原因须写明类型:暂停型(工具恢复时移除标记)或永久型(注明决策出处)。
|
|
47
47
|
*/
|
|
48
48
|
hidden?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 预览目录序位(additive,缺席合法):dev 卡片预览目录组内排序位,小者在前。
|
|
51
|
+
* - 排序键 = 属主模块 → order → cardType;缺省卡恒排在已声明 order 卡之后,
|
|
52
|
+
* 组内剩余按 cardType 字母序兜底(存量模块零改动维持现序);
|
|
53
|
+
* - 仅影响 dev 预览目录(buildCatalog)——不进出卡管线/候选池次序
|
|
54
|
+
* (出卡顺序由模型决策条序决定)、不进历史快照。
|
|
55
|
+
*/
|
|
56
|
+
order?: number;
|
|
49
57
|
/** 历史快照 schema 迁移:oldData → 新版本数据(001 §7.4) */
|
|
50
58
|
migrate?: (oldData: unknown, oldVersion: number) => Record<string, unknown>;
|
|
51
59
|
/**
|