@linkdesk/contracts 0.1.11 → 0.1.13
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/LICENSE +21 -0
- package/linkdesk.d.ts +12 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Encaron
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/linkdesk.d.ts
CHANGED
|
@@ -967,6 +967,18 @@ export interface StatusBarItem {
|
|
|
967
967
|
}
|
|
968
968
|
export interface PluginManifest {
|
|
969
969
|
$schema?: string;
|
|
970
|
+
/**
|
|
971
|
+
* 插件身份——**发布后永不可变**(对标 VS Code 的 `publisher.name`)。安装目录
|
|
972
|
+
* `{userData}/plugins/<pluginId>/`、分发件名 `<pluginId>.linkdesk-plugin`、市场目录去重键、
|
|
973
|
+
* 卸载墓碑键、更新对账全部以它为准。
|
|
974
|
+
*
|
|
975
|
+
* L7(E6#98g)起**要求显式声明**:不声明时退回「项目目录名」兜底(`derivePluginId`),而仓库名
|
|
976
|
+
* 与本地目录名是自由的——目录名一改身份就跟着改,且五条后果(安装目录并存两份 / 墓碑对不上 /
|
|
977
|
+
* 市场出现两条 / 更新链静默断 / 插件数据看似丢失)没有一条会报错。兜底路径保留仅为向后兼容
|
|
978
|
+
* 仓外的存量第三方插件。
|
|
979
|
+
* 形状约束 `^[A-Za-z0-9][A-Za-z0-9._-]*$`(`SAFE_PLUGIN_ID`,防路径穿越直通文件系统)。
|
|
980
|
+
*/
|
|
981
|
+
pluginId?: string;
|
|
970
982
|
/** @deprecated 使用 contributes + tabBehavior 等声明字段代替——贡献点由 manifest 的实际声明字段检测(对标 VS Code contributes) */
|
|
971
983
|
type?: PluginType;
|
|
972
984
|
core?: boolean;
|