dsh-ui-fortifier 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # dsh-ui-fortifier
2
2
 
3
- ![AI-Crap](https://img.shields.io/badge/💩-AI_crap_code-5C4033?style=flat-square)
4
- [![npm](https://img.shields.io/npm/v/dsh-ui-fortifier?style=flat-square)](https://www.npmjs.com/package/dsh-ui-fortifier)
3
+ ![AI-Crap](https://img.shields.io/badge/💩-AI_crap_code-5C4033?style=flat-square) [![npm](https://img.shields.io/npm/v/dsh-ui-fortifier?style=flat-square)](https://www.npmjs.com/package/dsh-ui-fortifier)
5
4
 
6
- [中文](README.zh.md)
5
+ [中文](./README.zh.md)
7
6
 
8
7
  A DSH Web UI enhancer plugin
9
8
 
@@ -15,17 +14,19 @@ See [design/en/current.md](design/en/current.md) for details.
15
14
  dsh plugin --profile web add dsh-ui-fortifier
16
15
  ```
17
16
 
18
- Installing via GitHub is not supported.
17
+ **Installing via GitHub is not supported.**
19
18
 
20
19
  ## Features
21
20
 
22
- Adds a "dsh-ui-fortifier" tab in Settings to toggle every feature module of this plugin.
21
+ Adds a "ui-fortifier" tab in Settings to toggle every feature module of this plugin.
23
22
 
24
23
  | Feature | Description |
25
24
  | --- | --- |
26
25
  | provider-label | Shows the currently selected provider to the left of the model selector. |
27
26
 
28
- ## Developed against dsh `0.1.2-alpha.1`
27
+ ## dsh version used for development
28
+
29
+ - Target dsh version: `0.1.2-rc.1`; `@deepseek-ai/dsh-*` dependencies use `workspace:^`.
29
30
 
30
31
  ## Secondary Development
31
32
 
package/README.zh.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # dsh-ui-fortifier
2
2
 
3
- ![AI-Crap](https://img.shields.io/badge/💩-AI_crap_code-5C4033?style=flat-square)
4
- [![npm](https://img.shields.io/npm/v/dsh-ui-fortifier?style=flat-square)](https://www.npmjs.com/package/dsh-ui-fortifier)
3
+ ![AI-Crap](https://img.shields.io/badge/💩-AI_crap_code-5C4033?style=flat-square) [![npm](https://img.shields.io/npm/v/dsh-ui-fortifier?style=flat-square)](https://www.npmjs.com/package/dsh-ui-fortifier)
5
4
 
6
- [English](README.md)
5
+ [English](./README.md)
7
6
 
8
7
  DSH Web UI 强化插件
9
8
 
@@ -15,17 +14,19 @@ DSH Web UI 强化插件
15
14
  dsh plugin --profile web add dsh-ui-fortifier
16
15
  ```
17
16
 
18
- 不支持通过 GitHub 安装。
17
+ **不支持通过 GitHub 安装。**
19
18
 
20
19
  ## 功能
21
20
 
22
- 在设置页新增「dsh-ui-fortifier」标签页,集中开关本插件各功能模块。
21
+ 在设置页新增「ui-fortifier」标签页,集中开关本插件各功能模块。
23
22
 
24
23
  | 功能 | 描述 |
25
24
  | --- | --- |
26
25
  | provider-label | 在模型选择按钮左侧显示当前选择的提供方。 |
27
26
 
28
- ## 基于 dsh `0.1.2-alpha.1` 开发
27
+ ## 构建使用的 dsh 版本
28
+
29
+ - 目标 dsh 版本:`0.1.2-rc.1`;`@deepseek-ai/dsh-*` 依赖使用 `workspace:^`。
29
30
 
30
31
  ## 二次开发说明
31
32
 
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: ui-fortifier
3
+ name: 'dsh-ui-fortifier'
package/lib/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
2
1
  import z from "@deepseek-ai/schemastery";
3
2
  //#region lib/types/index.js
4
3
  /** 功能开关的 settings 命名空间。 */
5
- const UI_FORTIFIER_SETTINGS_NAMESPACE = settingsNamespace("ui-fortifier");
4
+ const UI_FORTIFIER_SETTINGS_NAMESPACE = "ui-fortifier";
6
5
  /** 插件配置 schema。 */
7
6
  const Config = z.object({ "provider-label": z.boolean().default(true) });
8
7
  /**
@@ -11,9 +10,11 @@ const Config = z.object({ "provider-label": z.boolean().default(true) });
11
10
  * @param config - 插件配置,作为 base 层。
12
11
  */
13
12
  function apply(ctx, config) {
14
- installSettingsSection(ctx, UI_FORTIFIER_SETTINGS_NAMESPACE, Config, config, {
15
- setSource: () => {},
16
- onChange: () => {}
13
+ ctx.inject(["settings"], (settingsCtx) => {
14
+ settingsCtx.settings.installSection(ctx, UI_FORTIFIER_SETTINGS_NAMESPACE, Config, config, {
15
+ setSource: () => {},
16
+ onChange: () => {}
17
+ });
17
18
  });
18
19
  }
19
20
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import type { Context } from '@deepseek-ai/cordis';
2
2
  import z from '@deepseek-ai/schemastery';
3
3
  /** 功能开关的 settings 命名空间。 */
4
- export declare const UI_FORTIFIER_SETTINGS_NAMESPACE: import("@deepseek-ai/dsh-settings").SettingsNamespace;
4
+ export declare const UI_FORTIFIER_SETTINGS_NAMESPACE = "ui-fortifier";
5
5
  /** 插件配置:功能开关状态(配置默认值)。 */
6
6
  export interface Config {
7
7
  /** 输入框显示当前提供商。 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-ui-fortifier",
3
3
  "description": "UI 强化",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "license": "MIT",
6
6
  "contributors": [
7
7
  "pgnqukezrdxmhjso"
@@ -40,6 +40,7 @@
40
40
  "./package.json": "./package.json"
41
41
  },
42
42
  "files": [
43
+ "cordis.patch.yml",
43
44
  "lib/index.js",
44
45
  "lib/invariant.js",
45
46
  "lib/client.js",