jbc-dssi 1.1.121 → 1.1.122
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/index.js +7 -0
- package/lib/plugin-features.js +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { createGroupsEventBuffer, shouldBufferGroupEvent } from './lib/groups-ev
|
|
|
26
26
|
import { createScheduleEngine } from './lib/schedules.js';
|
|
27
27
|
import { createProcEngine } from './lib/proc-commands.js';
|
|
28
28
|
import { createAppReleaseWatch } from './lib/app-release-watch.js';
|
|
29
|
+
import { PLUGIN_FEATURES } from './lib/plugin-features.js';
|
|
29
30
|
import { MAX_FILE_BYTES, mimeOfFile, resolveWorkspaceFilePath } from './lib/workspace-bytes.js';
|
|
30
31
|
|
|
31
32
|
/*
|
|
@@ -1908,6 +1909,11 @@ class BridgeConnection {
|
|
|
1908
1909
|
* 这样扫错码/连到别的电脑一眼能看出来。老 App 不认识就忽略。
|
|
1909
1910
|
*/
|
|
1910
1911
|
computerName: hostname(),
|
|
1912
|
+
/*
|
|
1913
|
+
* 功能能力位(2026-11-15 加,只做加法):手机侧只在自己需要的能力缺了时才提示重启/更新。
|
|
1914
|
+
* 老 App 不认识就忽略;老插件不发 → 手机侧退回旧的版本号判据。
|
|
1915
|
+
*/
|
|
1916
|
+
features: PLUGIN_FEATURES,
|
|
1911
1917
|
/*
|
|
1912
1918
|
* 能力声明(只做加法,老 App 不认识就忽略)。
|
|
1913
1919
|
* 手机据此决定「团队」tab 是显示数据还是显示"电脑侧插件需更新"。
|
|
@@ -2925,6 +2931,7 @@ class BridgeConnection {
|
|
|
2925
2931
|
*/
|
|
2926
2932
|
pluginVersion: LOADED_VERSION,
|
|
2927
2933
|
pluginInstalledVersion: pluginVersion(),
|
|
2934
|
+
features: PLUGIN_FEATURES,
|
|
2928
2935
|
caps: [
|
|
2929
2936
|
...(this.bots ? ['bots'] : []),
|
|
2930
2937
|
...(this.dssAgent ? ['dssAgent'] : []),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插件**功能能力位**清单(2026-11-15 老谢定)。
|
|
3
|
+
*
|
|
4
|
+
* 为什么单独一个模块:手机侧(Kotlin `RequiredPluginFeatures`)与电脑侧必须用**同一套键名**,
|
|
5
|
+
* 抽成纯数据模块后可以写一条跨端契约测试(`test/plugin-features.test.mjs`)自动校验两边一致 ——
|
|
6
|
+
* 与协议帧号同一个思路:加能力时最容易只改一端。
|
|
7
|
+
*
|
|
8
|
+
* 加一条的前提:插件真的具备该能力,且手机侧想"缺了才提示重启"。
|
|
9
|
+
*/
|
|
10
|
+
export const PLUGIN_FEATURES = [
|
|
11
|
+
'workspace_file', // 1.1.115 读智能体工作区文件 / 图片相对路径
|
|
12
|
+
'app_release_push', // 1.1.116 发版即推(APP_RELEASE 帧)
|
|
13
|
+
'file_bytes', // 1.1.117 工作区文件原始字节(手机内嵌看 PDF/Excel/Word)
|
|
14
|
+
'workspace_products', // 1.1.118 输出产物清单(list_workspace_products)
|
|
15
|
+
];
|