@linkdesk/contracts 0.1.49 → 0.1.51

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 +9 -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;
@@ -1438,6 +1441,12 @@ export interface DialogOpenOptions {
1438
1441
  name: string;
1439
1442
  extensions: string[];
1440
1443
  }[];
1444
+ /**
1445
+ * 2026-11-23:初始目录的**已知文件夹令牌**(⚠️ 不接受插件给绝对路径)。
1446
+ * `"appearance"` = userData/appearance(受控外观图缓存,背景图选择用)——主进程解析并建目录。
1447
+ * 旧壳忽略本字段(无初始目录),插件可安全传入。
1448
+ */
1449
+ defaultPathKind?: "appearance";
1441
1450
  }
1442
1451
  /** rich-content confirm dialog open params—pool plugin → shell DialogService (addressed by content view declaration).
1443
1452
  * title/message are fallbacks—when the content view fails to resolve, the shell falls back to a plain-text confirm (the dialog still shows; it does not silently die). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",