@linkdesk/contracts 0.1.43 → 0.1.45
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/linkdesk.d.ts +17 -4
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -106,6 +106,8 @@ export type LinkDeskConfigurationContribution = [
|
|
|
106
106
|
string,
|
|
107
107
|
{
|
|
108
108
|
title: string;
|
|
109
|
+
/** 04 内置配置组图标(2026-11-18): group icon = **IconRegistry shared-icon name** (host defaults `app.group-*`; third-party plugins may reference their own contributes.icons name). Optional; absent = nav row renders text only. */
|
|
110
|
+
icon?: string;
|
|
109
111
|
/** (P-3 decision A): one-line subtitle under the section's main title (optional; undeclared = not rendered, zero intrusion) */
|
|
110
112
|
subtitle?: string;
|
|
111
113
|
/** (P-3 decision A): one-line small text under each group heading — key = the group's original text (optional, zero intrusion) */
|
|
@@ -894,7 +896,7 @@ export interface CreatableViewMeta {
|
|
|
894
896
|
pluginId: string;
|
|
895
897
|
label: string;
|
|
896
898
|
icon?: string;
|
|
897
|
-
iconSource?: "codicon" | "svg" | "url" | "lucide"; // union identical to plugin.schema.json iconSource (contract generation source)
|
|
899
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared"; // union identical to plugin.schema.json iconSource (contract generation source)
|
|
898
900
|
}
|
|
899
901
|
/** Bottom panel view metadata — serialized from the panel view registry */
|
|
900
902
|
export interface PanelViewMeta {
|
|
@@ -1954,12 +1956,20 @@ export interface EditorAPI {
|
|
|
1954
1956
|
* the read-only selector surface; `setDefault` = the override table's only write port ("Set as default" / "Restore automatic",
|
|
1955
1957
|
* bidirectional sync ); `setDefaultBulk` = the **bulk** form of the same port (2/aggregate write — writes N types at once,
|
|
1956
1958
|
* aggregation logic on the manager side).
|
|
1959
|
+
* Fallback-chain fix (2026-10-07): an **empty extension** (extensionless / dot-starting file) is resolved like any
|
|
1960
|
+
* other — `getPluginFor("")` walks the same pipeline and lands on the role-fallback holder.
|
|
1961
|
+
* D2 (decided 2026-10-07): `listHandlersFor` also lists the **role-fallback holder** when at least one declarer
|
|
1962
|
+
* exists (the "open as text" path stays reachable once a reader claims the type), and `setDefault` accepts the
|
|
1963
|
+
* role-fallback holder as an override target — welcome stays non-assignable (hint-page semantics).
|
|
1957
1964
|
*/
|
|
1958
1965
|
fileAssociation: {
|
|
1959
1966
|
getPluginFor(ext: string): Promise<string | undefined>;
|
|
1960
1967
|
/**
|
|
1961
1968
|
* List all declarers of the extension plus the current-default marker (data source for the "Open with…" picker and the
|
|
1962
1969
|
* settings page dropdown, 01 §T2.1); no declarers ⇒ [].
|
|
1970
|
+
* D2 (2026-10-07): with at least one declarer, the **role-fallback holder** is appended when it is not among them —
|
|
1971
|
+
* the "open as text" path remains selectable after a reader claims the type. With no declarers the result stays []
|
|
1972
|
+
* ( the fallback holder is already the default then; welcome is never listed — ).
|
|
1963
1973
|
* `title` = the **plugin** display name (manifest.name ?? pluginId); `displayName` = the **file type** display name
|
|
1964
1974
|
* (the displayName in the declaration, e.g. .rs → "Rust") — the two differ semantically; naming surfaces use `title`.
|
|
1965
1975
|
*/
|
|
@@ -2105,7 +2115,9 @@ export interface PluginManifest {
|
|
|
2105
2115
|
name: string;
|
|
2106
2116
|
version: string;
|
|
2107
2117
|
icon?: string;
|
|
2108
|
-
|
|
2118
|
+
/** 🔴 "shared"(04 内置配置组图标 2026-11-18):按名引用 IconRegistry 共享图标(contributes.icons
|
|
2119
|
+
* 登记面或宿主默认项)——渲染需调用方注入 sharedIcons 快照(PluginIcon 同名 prop)。 */
|
|
2120
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
2109
2121
|
/** Marketplace display art (cover art, archive 14's dual-icon model ) — relative path of an svg asset, may be drawn elaborately and complex
|
|
2110
2122
|
* (semantically separate from icon's "monochrome small UI icon": the shell's icon bar/tab bar read only icon). Omitted → the marketplace falls back to icon.
|
|
2111
2123
|
* Convention: value = a relative path into package resources (e.g. "resources/cover.svg"); iconSource omitted → inferred as a linkdesk:// path. */
|
|
@@ -2336,7 +2348,8 @@ export interface PluginInfoEntry {
|
|
|
2336
2348
|
updatable?: boolean;
|
|
2337
2349
|
/** small UI icon (Type-1 silhouette for icon-bar plugins / Type-2 identity art for the rest) */
|
|
2338
2350
|
icon?: string;
|
|
2339
|
-
|
|
2351
|
+
/** 🔴 "shared"(04 内置配置组图标 2026-11-18):按名引用 IconRegistry 共享图标——渲染需注入 sharedIcons 快照 */
|
|
2352
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
2340
2353
|
/** plugin identity color art (Type-2) — first candidate for row/detail display positions */
|
|
2341
2354
|
marketIcon?: string;
|
|
2342
2355
|
marketIconSource?: "codicon" | "svg" | "url" | "lucide";
|
|
@@ -3147,7 +3160,7 @@ export interface OpenWithHandler {
|
|
|
3147
3160
|
/** Icon manifest subset — produced by the shell with the shared helper `pickIdentityArt()` (same source as the settings page/tab bar) */
|
|
3148
3161
|
manifest?: {
|
|
3149
3162
|
icon?: string;
|
|
3150
|
-
iconSource?: "codicon" | "svg" | "url" | "lucide";
|
|
3163
|
+
iconSource?: "codicon" | "svg" | "url" | "lucide" | "shared";
|
|
3151
3164
|
};
|
|
3152
3165
|
/** Whether this handler is the current default */
|
|
3153
3166
|
isDefault: boolean;
|