@linkdesk/contracts 0.1.50 → 0.1.52

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 (2) hide show
  1. package/linkdesk.d.ts +7 -0
  2. package/package.json +1 -1
package/linkdesk.d.ts CHANGED
@@ -86,6 +86,9 @@ export interface LinkDeskConfigProperty {
86
86
  * (returns a string; the display wording is assembled on the command side). The value comes from the command, not from config storage — a general capability any plugin can use.
87
87
  * Settings row case 2.1: **companion declaration** — coexists with any primary control ⇒ the companion read-only to the right of the primary control (reuses the read-only base's polling). */
88
88
  statusCommand?: string;
89
+ /** 2026-11-23: color capability — true = the ColorPicker may edit alpha and emit rgba (glass tints);
90
+ * false/omitted = opaque only, emits hex (accents etc.). Only meaningful for renderHint "color". */
91
+ allowAlpha?: boolean;
89
92
  /** disable condition for renderHint "action" buttons — disabled when all {key,value} pairs match the current config values */
90
93
  actionDisabledAll?: Array<{
91
94
  key: string;
@@ -266,6 +269,8 @@ export interface ColorwayMeta {
266
269
  accent: string;
267
270
  bgWindow: string;
268
271
  };
272
+ /** 派生极性(2026-11-24)——该配色生效 token 算出的 light/dark;跨明暗标签读它,不读配方声明 */
273
+ polarity: "light" | "dark";
269
274
  }
270
275
  /** recipe metadata — returned by theme.listRecipes() (all available recipes + colorways + preview colors, spec 06 §2).
271
276
  * domains = which domains the recipe contributes (basis for mash-up source filtering, spec 10 §2); type = light/dark category. */
@@ -273,6 +278,8 @@ export interface RecipeMeta {
273
278
  id: string;
274
279
  name: string;
275
280
  type: "light" | "dark";
281
+ /** 派生极性(首配色)——`type` 为作者 hint;UI 分组/标签一律读它 */
282
+ polarity: "light" | "dark";
276
283
  colorways: ColorwayMeta[];
277
284
  domains: ThemeDomain[];
278
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",