@ycodium-ai/plugin-api 0.2.3935 → 0.2.3982

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 插件 API 的版本窗口。宿主装载声明在 `PLUGIN_API_MIN_VERSION` 到 `PLUGIN_API_VERSION`(含两端)之间的插件。
3
+ *
4
+ * 这个子路径是插件 Node bundle 里唯一不 external 的 plugin-api 模块:插件源码写 `apiVersion: PLUGIN_API_VERSION`,
5
+ * 构建把当时的号内联进 dist,发到 npm 的产物因此带着它针对的版本。不能让它在运行时解析到宿主:旧宿主给的只会是
6
+ * 它自己的号,版本门对任何包都放行,装进旧宿主的新包要到调用新端口时才炸(同 `ui-bridge-version` 的理由)。
7
+ *
8
+ * @module @ycodium-ai/plugin-api/version
9
+ */
10
+ export declare const PLUGIN_API_VERSION = 76;
11
+ export declare const PLUGIN_API_MIN_VERSION = 76;
12
+ /** 插件可以声明的版本:窗口内的每一个。 */
13
+ export type PluginApiVersion = 76;
14
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,yBAAyB;AACzB,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ // 由 scripts/gen-plugin-api-version.ts 从 packages/plugin-api/version-history.json 生成,不要手改。
2
+ // 版本号 = 历史条目数;下限 = 最新一条 breaking 条目的版本,不低于 minVersionFloor。升号 = 往历史末尾追加一条再重跑脚本。
3
+ /**
4
+ * 插件 API 的版本窗口。宿主装载声明在 `PLUGIN_API_MIN_VERSION` 到 `PLUGIN_API_VERSION`(含两端)之间的插件。
5
+ *
6
+ * 这个子路径是插件 Node bundle 里唯一不 external 的 plugin-api 模块:插件源码写 `apiVersion: PLUGIN_API_VERSION`,
7
+ * 构建把当时的号内联进 dist,发到 npm 的产物因此带着它针对的版本。不能让它在运行时解析到宿主:旧宿主给的只会是
8
+ * 它自己的号,版本门对任何包都放行,装进旧宿主的新包要到调用新端口时才炸(同 `ui-bridge-version` 的理由)。
9
+ *
10
+ * @module @ycodium-ai/plugin-api/version
11
+ */
12
+ export const PLUGIN_API_VERSION = 76;
13
+ export const PLUGIN_API_MIN_VERSION = 76;
14
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,gFAAgF;AAChF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-api",
3
- "version": "0.2.3935",
3
+ "version": "0.2.3982",
4
4
  "description": "Types and definePlugin for authoring Ycodium plugins. Zero runtime dependencies.",
5
5
  "keywords": [
6
6
  "ycodium"
@@ -24,6 +24,10 @@
24
24
  "types": "./dist/ui-bridge-version.d.ts",
25
25
  "import": "./dist/ui-bridge-version.js"
26
26
  },
27
+ "./version": {
28
+ "types": "./dist/version.d.ts",
29
+ "import": "./dist/version.js"
30
+ },
27
31
  "./conversation": {
28
32
  "types": "./dist/conversation.d.ts",
29
33
  "import": "./dist/conversation.js"
@@ -68,7 +72,11 @@
68
72
  "types": "./dist/settings-card.d.ts",
69
73
  "import": "./dist/settings-card.js"
70
74
  },
71
- "./ui.css": "./css/ui.css"
75
+ "./ui.css": "./css/ui.css",
76
+ "./testing": {
77
+ "types": "./dist/testing.d.ts",
78
+ "import": "./dist/testing.js"
79
+ }
72
80
  },
73
81
  "publishConfig": {
74
82
  "access": "public"