@dsh-plus/llm-pi 0.2.2 → 0.2.3

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/lib/client.js CHANGED
@@ -145,7 +145,7 @@ window.__ModuleLoader__.load({
145
145
  const DSH_PLUS_BUNDLE = "@dsh-plus/bundle-main";
146
146
  /**
147
147
  * 把一张配置卡片注册进插件页的两个配置槽位。
148
- * 两个槽位都由 0.2.1-alpha.1 的插件页声明,任一缺席即报错——不做版本探测。
148
+ * 两个槽位都由 0.2.1-alpha.2 的插件页声明,任一缺席即报错——不做版本探测。
149
149
  */
150
150
  function injectPluginConfigCard(slots, reg) {
151
151
  const base = {
@@ -314,7 +314,7 @@ window.__ModuleLoader__.load({
314
314
  /**
315
315
  * 配置分节样式工厂(各插件 client 的公共收编版)。
316
316
  *
317
- * 目标宿主 dsh 0.2.1-alpha.1:插件页把配置视图放进已有页面级内边距的容器里
317
+ * 目标宿主 dsh 0.2.1-alpha.2:插件页把配置视图放进已有页面级内边距的容器里
318
318
  * (`div.detailSections[data-plugin-config]` 或 `section.detailSection[data-plugin-config]`),
319
319
  * 外层无边框——故这里输出的是**无边框分节**(小节标题 13px/600、字段 12px 0、
320
320
  * 横向零内边距、页脚非 sticky),度量对齐官方设置页
package/lib/index.js CHANGED
@@ -650,7 +650,7 @@ function fallbackProtocols() {
650
650
  return [...FALLBACK_PROTOCOLS];
651
651
  }
652
652
  /**
653
- * 官方门控表不可解析时的兜底快照(0.2.1-alpha.1 现场推导值)。
653
+ * 官方门控表不可解析时的兜底快照(0.2.1-alpha.2 现场推导值)。
654
654
  *
655
655
  * 只在官方改打包形态、`COMPAT_GATES` 解析失败时启用(此时未知键放行、只拦快照里
656
656
  * 明确 withhold 的键,见 compat.ts 的「语义分两档」)。快照过期会重新引入
@@ -1337,7 +1337,7 @@ async function discoverModels(request, deps) {
1337
1337
  * @module llm-pi/kit-meta
1338
1338
  */
1339
1339
  /** 本插件开发/测试覆盖过的 pi-ai 区间(semver range,仅用于状态行提示)。 */
1340
- const VERIFIED_PI_AI_RANGE = ">=0.85.1 <0.88.0";
1340
+ const VERIFIED_PI_AI_RANGE = ">=1.0.2 <2.0.0";
1341
1341
  /** 读 package.json 的 version;文件不存在/非 JSON/无 version 都返回 undefined。 */
1342
1342
  function readPackageVersion(manifestPath) {
1343
1343
  try {
@@ -1409,13 +1409,13 @@ function collectVendoredVersions() {
1409
1409
  }
1410
1410
  /** 已验证区间的解析端点(与 {@link VERIFIED_PI_AI_RANGE} 同步维护)。 */
1411
1411
  const VERIFIED_MIN = [
1412
+ 1,
1412
1413
  0,
1413
- 85,
1414
- 1
1414
+ 2
1415
1415
  ];
1416
1416
  const VERIFIED_MAX_EXCLUSIVE = [
1417
+ 2,
1417
1418
  0,
1418
- 88,
1419
1419
  0
1420
1420
  ];
1421
1421
  /** 解析 `x.y.z[-pre][+build]` 的数值三元组;形状不符返回 undefined。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plus/llm-pi",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "dsh-plus service+ui plugin: 基于 PiAiAdapter 的自定义 LLM 路由(全量 compat、模型继承、pi-ai 内置目录;协议/compat/字段集现场推导,自动跟随已装 dsh)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -32,43 +32,43 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "yaml": "^2.9.0",
35
- "@dsh-plus/shared": "0.1.37"
35
+ "@dsh-plus/shared": "0.1.38"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/cordis": "^4.0.5-alpha.1",
39
- "@deepseek-ai/dsh-anonymous-user-id": "^0.2.1-alpha.1",
40
- "@deepseek-ai/dsh-credentials": "^0.2.1-alpha.1",
41
- "@deepseek-ai/dsh-home-paths": "^0.2.1-alpha.1",
42
- "@deepseek-ai/dsh-host-webserver": "^0.2.1-alpha.1",
43
- "@deepseek-ai/dsh-launch-environment": "^0.2.1-alpha.1",
44
- "@deepseek-ai/dsh-llm": "^0.2.1-alpha.1",
45
- "@deepseek-ai/dsh-llm-deepseek": "^0.2.1-alpha.1",
46
- "@deepseek-ai/dsh-llm-pi-ai": "^0.2.1-alpha.1",
47
- "@deepseek-ai/dsh-settings": "^0.2.1-alpha.1",
48
- "@deepseek-ai/dsh-util-values": "^0.2.1-alpha.1",
39
+ "@deepseek-ai/dsh-anonymous-user-id": "^0.2.1-alpha.2",
40
+ "@deepseek-ai/dsh-credentials": "^0.2.1-alpha.2",
41
+ "@deepseek-ai/dsh-home-paths": "^0.2.1-alpha.2",
42
+ "@deepseek-ai/dsh-host-webserver": "^0.2.1-alpha.2",
43
+ "@deepseek-ai/dsh-launch-environment": "^0.2.1-alpha.2",
44
+ "@deepseek-ai/dsh-llm": "^0.2.1-alpha.2",
45
+ "@deepseek-ai/dsh-llm-deepseek": "^0.2.1-alpha.2",
46
+ "@deepseek-ai/dsh-llm-pi-ai": "^0.2.1-alpha.2",
47
+ "@deepseek-ai/dsh-settings": "^0.2.1-alpha.2",
48
+ "@deepseek-ai/dsh-util-values": "^0.2.1-alpha.2",
49
49
  "@deepseek-ai/schemastery": "^3.18.5-alpha.1",
50
- "@earendil-works/pi-ai": ">=0.85.1"
50
+ "@earendil-works/pi-ai": ">=1.0.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@deepseek-ai/cordis": "4.0.5-alpha.1",
54
- "@deepseek-ai/dsh-anonymous-user-id": "0.2.1-alpha.1",
55
- "@deepseek-ai/dsh-app-boot": "0.2.1-alpha.1",
56
- "@deepseek-ai/dsh-atomic-write": "0.2.1-alpha.1",
57
- "@deepseek-ai/dsh-attachment": "0.2.1-alpha.1",
58
- "@deepseek-ai/dsh-credentials": "0.2.1-alpha.1",
59
- "@deepseek-ai/dsh-home-paths": "0.2.1-alpha.1",
60
- "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.1",
61
- "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.1",
62
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
63
- "@deepseek-ai/dsh-llm-deepseek": "0.2.1-alpha.1",
64
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.1",
65
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.1",
66
- "@deepseek-ai/dsh-timeout": "0.2.1-alpha.1",
67
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.1",
68
- "@deepseek-ai/dsh-util-crypto": "0.2.1-alpha.1",
69
- "@deepseek-ai/dsh-util-values": "0.2.1-alpha.1",
54
+ "@deepseek-ai/dsh-anonymous-user-id": "0.2.1-alpha.2",
55
+ "@deepseek-ai/dsh-app-boot": "0.2.1-alpha.2",
56
+ "@deepseek-ai/dsh-atomic-write": "0.2.1-alpha.2",
57
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
58
+ "@deepseek-ai/dsh-credentials": "0.2.1-alpha.2",
59
+ "@deepseek-ai/dsh-home-paths": "0.2.1-alpha.2",
60
+ "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.2",
61
+ "@deepseek-ai/dsh-launch-environment": "0.2.1-alpha.2",
62
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
63
+ "@deepseek-ai/dsh-llm-deepseek": "0.2.1-alpha.2",
64
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.2",
65
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.2",
66
+ "@deepseek-ai/dsh-timeout": "0.2.1-alpha.2",
67
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.2",
68
+ "@deepseek-ai/dsh-util-crypto": "0.2.1-alpha.2",
69
+ "@deepseek-ai/dsh-util-values": "0.2.1-alpha.2",
70
70
  "@deepseek-ai/schemastery": "3.18.5-alpha.1",
71
- "@earendil-works/pi-ai": "0.87.1",
71
+ "@earendil-works/pi-ai": "1.1.0",
72
72
  "@types/react": "~18.3.31",
73
73
  "react": "^18.2.0"
74
74
  },
package/src/kit-meta.ts CHANGED
@@ -24,7 +24,7 @@ export interface KitVersions {
24
24
  }
25
25
 
26
26
  /** 本插件开发/测试覆盖过的 pi-ai 区间(semver range,仅用于状态行提示)。 */
27
- export const VERIFIED_PI_AI_RANGE = '>=0.85.1 <0.88.0'
27
+ export const VERIFIED_PI_AI_RANGE = '>=1.0.2 <2.0.0'
28
28
 
29
29
  /** 读 package.json 的 version;文件不存在/非 JSON/无 version 都返回 undefined。 */
30
30
  export function readPackageVersion(manifestPath: string): string | undefined {
@@ -109,8 +109,8 @@ export function collectVendoredVersions(): KitVersions {
109
109
  }
110
110
 
111
111
  /** 已验证区间的解析端点(与 {@link VERIFIED_PI_AI_RANGE} 同步维护)。 */
112
- const VERIFIED_MIN: readonly [number, number, number] = [0, 85, 1]
113
- const VERIFIED_MAX_EXCLUSIVE: readonly [number, number, number] = [0, 88, 0]
112
+ const VERIFIED_MIN: readonly [number, number, number] = [1, 0, 2]
113
+ const VERIFIED_MAX_EXCLUSIVE: readonly [number, number, number] = [2, 0, 0]
114
114
 
115
115
  /** 解析 `x.y.z[-pre][+build]` 的数值三元组;形状不符返回 undefined。 */
116
116
  function numericTriple(version: string): [number, number, number] | undefined {
@@ -206,7 +206,7 @@ export function fallbackProtocols(): string[] {
206
206
  }
207
207
 
208
208
  /**
209
- * 官方门控表不可解析时的兜底快照(0.2.1-alpha.1 现场推导值)。
209
+ * 官方门控表不可解析时的兜底快照(0.2.1-alpha.2 现场推导值)。
210
210
  *
211
211
  * 只在官方改打包形态、`COMPAT_GATES` 解析失败时启用(此时未知键放行、只拦快照里
212
212
  * 明确 withhold 的键,见 compat.ts 的「语义分两档」)。快照过期会重新引入