@dsh-sparrow/dsh-file-manage 0.1.0-alpha.2 → 0.1.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  English | [简体中文](CHANGELOG.zh-CN.md)
4
4
 
5
+ ## 0.1.0 (2026-09-02)
6
+
7
+ - Promoted 0.1.0 (identical to 0.1.0-alpha.3).
8
+
9
+ ## 0.1.0-alpha.3 (2026-09-02 · pre-release)
10
+
11
+ - README screenshots now use absolute URLs and are no longer packed into the npm package (functionally identical to the previous release).
12
+
13
+ ## 0.1.0-alpha.2 (2026-09-01 · pre-release)
14
+
15
+ - Full-page loading: the list renders only once entries and totals are both ready (removes the open flicker).
16
+
5
17
  ## 0.1.0-alpha.1 (2026-09-01 · pre-release)
6
18
 
7
19
  - First pre-release, published to the `next` channel for validation; features match the planned `0.1.0` first release
@@ -9,6 +21,3 @@ English | [简体中文](CHANGELOG.zh-CN.md)
9
21
  - Total count + drive-style quota bar: used / 25 GiB, adaptive-precision percentage, striped empty area, "Loaded X / N" synced with pagination
10
22
  - Reuses the official DeepSeekFilesClient (connection facts from the llm-deepseek settings section + ctx.credentials); no local persistence
11
23
 
12
- ## 0.1.0-alpha.2 (2026-09-01 · pre-release)
13
-
14
- - Panel opens with a full-panel loading state: content is revealed only after both the file list and the total-count request settle, eliminating the loading flicker
@@ -2,6 +2,18 @@
2
2
 
3
3
  简体中文 | [English](CHANGELOG.md)
4
4
 
5
+ ## 0.1.0 (2026-09-02)
6
+
7
+ - 转正 0.1.0(与 0.1.0-alpha.3 一致)。
8
+
9
+ ## 0.1.0-alpha.3 (2026-09-02 · pre-release)
10
+
11
+ - README 截图改为绝对 URL 引用,图片不再打包进 npm 包(功能与上版一致)。
12
+
13
+ ## 0.1.0-alpha.2 (2026-09-01 · pre-release)
14
+
15
+ - 面板整页 loading:列表与总数都就绪后再展示(消除打开闪动)。
16
+
5
17
  ## 0.1.0-alpha.1 (2026-09-01 · pre-release)
6
18
 
7
19
  - 首个预发布版本,先发 `next` 渠道验证;功能对齐计划中的 `0.1.0` 首版
@@ -9,6 +21,3 @@
9
21
  - 总数 + 网盘式配额条:已用 / 25 GiB、自适应精度百分比、条纹空白区、「已加载 X / N」随翻页同步
10
22
  - 复用官方 DeepSeekFilesClient(连接事实取自 llm-deepseek 设置节 + ctx.credentials);无本地持久化
11
23
 
12
- ## 0.1.0-alpha.2 (2026-09-01 · pre-release)
13
-
14
- - 面板打开改为整页 loading:文件列表与总数统计都就绪后才展示内容,消除加载闪动
package/README.md CHANGED
@@ -12,7 +12,7 @@ Large images pasted into DSH are auto-uploaded to the DeepSeek Files API, but th
12
12
  dsh plugin --profile web add @dsh-sparrow/dsh-file-manage
13
13
  ```
14
14
 
15
- Requires dsh ≥ 0.1.2-alpha.3 (verified baseline; earlier versions unverified) and a working `pnpm` (`dsh plugin` forwards installation to pnpm).
15
+ Requires dsh ≥ 0.1.2-alpha.4 and a working `pnpm` (`dsh plugin` forwards installation to pnpm).
16
16
 
17
17
  > Do **not** run `npm install @dsh-sparrow/dsh-file-manage` directly: that only downloads the package into some `node_modules` and does not register it with the DSH web profile. Use the `dsh plugin` command above, then restart DSH.
18
18
 
@@ -35,7 +35,7 @@ Requires dsh ≥ 0.1.2-alpha.3 (verified baseline; earlier versions unverified)
35
35
 
36
36
  ## Screenshot
37
37
 
38
- ![Cloud Files panel](docs/images/panel.png)
38
+ ![Cloud Files panel](https://raw.githubusercontent.com/peiyucn/dsh-sparrow/main/resources/dsh-file-manage.png)
39
39
 
40
40
  ## Uninstall & leftovers
41
41
 
package/README.zh-CN.md CHANGED
@@ -12,7 +12,7 @@ DSH 贴图的大图会自动上传到 DeepSeek Files API(云端文件库),
12
12
  dsh plugin --profile web add @dsh-sparrow/dsh-file-manage
13
13
  ```
14
14
 
15
- 适配 dsh ≥ 0.1.2-alpha.3(本机验证基线;更早版本未验证),并需要可用的 `pnpm`(`dsh plugin` 会把安装操作转发给 pnpm)。
15
+ 适配 dsh ≥ 0.1.2-alpha.4,并需要可用的 `pnpm`(`dsh plugin` 会把安装操作转发给 pnpm)。
16
16
 
17
17
  > **不要**直接执行 `npm install @dsh-sparrow/dsh-file-manage`:那只会把包下载到某个 `node_modules`,不会注册进 DSH 的 web profile。请使用上面的 `dsh plugin` 命令安装,并在安装后重启 DSH。
18
18
 
@@ -35,7 +35,7 @@ dsh plugin --profile web add @dsh-sparrow/dsh-file-manage
35
35
 
36
36
  ## 截图
37
37
 
38
- ![云端文件面板](docs/images/panel.png)
38
+ ![云端文件面板](https://raw.githubusercontent.com/peiyucn/dsh-sparrow/main/resources/dsh-file-manage.png)
39
39
 
40
40
  ## 卸载与残留
41
41
 
@@ -45,6 +45,7 @@ export function ensureFileManageStyles() {
45
45
  gap: 0;
46
46
  padding: 0;
47
47
  border-radius: 50%;
48
+ corner-shape: round;
48
49
  }
49
50
  .dsh-file-manage-trigger-icon {
50
51
  flex: none;
@@ -71,6 +72,7 @@ export function ensureFileManageStyles() {
71
72
  border: 2px solid var(--dsw-alias-border-l1, #d4d8e0);
72
73
  border-top-color: var(--dsw-alias-button-info-fill, #4d6bfe);
73
74
  border-radius: 50%;
75
+ corner-shape: round;
74
76
  animation: dsh-file-manage-spin 0.8s linear infinite;
75
77
  }
76
78
  @keyframes dsh-file-manage-spin {
@@ -109,7 +111,7 @@ export function ensureFileManageStyles() {
109
111
  height: 28px;
110
112
  padding: 0;
111
113
  border: none;
112
- border-radius: 28px;
114
+ border-radius: 8px;
113
115
  outline: none;
114
116
  background: transparent;
115
117
  cursor: pointer;
@@ -123,20 +125,22 @@ export function ensureFileManageStyles() {
123
125
  padding: 1px 6px;
124
126
  border: 1px solid var(--dsw-alias-border-l2, #e2e5ea);
125
127
  border-radius: 999px;
128
+ corner-shape: round;
126
129
  color: var(--dsw-alias-label-caption, #8a919f);
127
130
  font-size: 11px;
128
131
  line-height: 16px;
129
132
  }
130
133
  .dsh-file-manage-btn {
134
+ /* 官方 Button.sm 同款几何:h28 + r14 胶囊(超椭圆角随官方全局规则自动生效)。 */
131
135
  height: 28px;
132
- padding: 0 12px;
133
- border: 1px solid var(--dsw-alias-border-l1, #d4d8e0);
134
- border-radius: 999px;
136
+ padding: 0 10px;
137
+ border: 0.5px solid var(--dsw-alias-border-l3, #d4d8e0);
138
+ border-radius: 14px;
135
139
  outline: none;
136
140
  background: transparent;
137
141
  color: var(--dsw-alias-label-primary, #1f2329);
138
- font-size: 13px;
139
- line-height: 20px;
142
+ font-size: 12px;
143
+ line-height: 18px;
140
144
  white-space: nowrap;
141
145
  cursor: pointer;
142
146
  }
@@ -170,7 +174,7 @@ export function ensureFileManageStyles() {
170
174
  border-radius: 16px;
171
175
  background: var(--dsw-alias-bg-layer-2, #f6f7f9);
172
176
  color: var(--dsw-alias-label-primary, #1f2329);
173
- box-shadow: var(--dsw-shadow-lv3, 0 12px 40px rgba(0,0,0,0.22));
177
+ box-shadow: var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,0.22));
174
178
  }
175
179
  .dsh-file-manage-confirm-title {
176
180
  margin: 0;
@@ -209,8 +213,8 @@ export function ensureFileManageStyles() {
209
213
  flex-direction: column;
210
214
  margin: 0 0 12px;
211
215
  padding: 8px 12px 12px;
212
- border: 1px solid var(--dsw-alias-border-l2, #e2e5ea);
213
- border-radius: 12px;
216
+ border: 0.5px solid var(--dsw-alias-border-l4, #e2e5ea);
217
+ border-radius: 16px;
214
218
  }
215
219
  /* 配额容量条:加厚 + 未使用区斜纹(repeating-linear-gradient),与分割线区分;填充盖住斜纹。
216
220
  容量文字绝对定位居中叠加在条上。 */
@@ -278,7 +282,7 @@ export const styles = {
278
282
  padding: 0,
279
283
  background: 'var(--dsw-alias-bg-layer-2, #f6f7f9)',
280
284
  color: 'var(--dsw-alias-label-primary, #1f2329)',
281
- boxShadow: 'var(--dsw-shadow-lv3, 0 12px 40px rgba(0,0,0,0.22))',
285
+ boxShadow: 'var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,0.22))',
282
286
  },
283
287
  body: {
284
288
  flex: 1,
package/lib/client.js CHANGED
@@ -142,6 +142,7 @@ function ensureFileManageStyles() {
142
142
  gap: 0;
143
143
  padding: 0;
144
144
  border-radius: 50%;
145
+ corner-shape: round;
145
146
  }
146
147
  .dsh-file-manage-trigger-icon {
147
148
  flex: none;
@@ -168,6 +169,7 @@ function ensureFileManageStyles() {
168
169
  border: 2px solid var(--dsw-alias-border-l1, #d4d8e0);
169
170
  border-top-color: var(--dsw-alias-button-info-fill, #4d6bfe);
170
171
  border-radius: 50%;
172
+ corner-shape: round;
171
173
  animation: dsh-file-manage-spin 0.8s linear infinite;
172
174
  }
173
175
  @keyframes dsh-file-manage-spin {
@@ -206,7 +208,7 @@ function ensureFileManageStyles() {
206
208
  height: 28px;
207
209
  padding: 0;
208
210
  border: none;
209
- border-radius: 28px;
211
+ border-radius: 8px;
210
212
  outline: none;
211
213
  background: transparent;
212
214
  cursor: pointer;
@@ -220,20 +222,22 @@ function ensureFileManageStyles() {
220
222
  padding: 1px 6px;
221
223
  border: 1px solid var(--dsw-alias-border-l2, #e2e5ea);
222
224
  border-radius: 999px;
225
+ corner-shape: round;
223
226
  color: var(--dsw-alias-label-caption, #8a919f);
224
227
  font-size: 11px;
225
228
  line-height: 16px;
226
229
  }
227
230
  .dsh-file-manage-btn {
231
+ /* \u5B98\u65B9 Button.sm \u540C\u6B3E\u51E0\u4F55\uFF1Ah28 + r14 \u80F6\u56CA\uFF08\u8D85\u692D\u5706\u89D2\u968F\u5B98\u65B9\u5168\u5C40\u89C4\u5219\u81EA\u52A8\u751F\u6548\uFF09\u3002 */
228
232
  height: 28px;
229
- padding: 0 12px;
230
- border: 1px solid var(--dsw-alias-border-l1, #d4d8e0);
231
- border-radius: 999px;
233
+ padding: 0 10px;
234
+ border: 0.5px solid var(--dsw-alias-border-l3, #d4d8e0);
235
+ border-radius: 14px;
232
236
  outline: none;
233
237
  background: transparent;
234
238
  color: var(--dsw-alias-label-primary, #1f2329);
235
- font-size: 13px;
236
- line-height: 20px;
239
+ font-size: 12px;
240
+ line-height: 18px;
237
241
  white-space: nowrap;
238
242
  cursor: pointer;
239
243
  }
@@ -267,7 +271,7 @@ function ensureFileManageStyles() {
267
271
  border-radius: 16px;
268
272
  background: var(--dsw-alias-bg-layer-2, #f6f7f9);
269
273
  color: var(--dsw-alias-label-primary, #1f2329);
270
- box-shadow: var(--dsw-shadow-lv3, 0 12px 40px rgba(0,0,0,0.22));
274
+ box-shadow: var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,0.22));
271
275
  }
272
276
  .dsh-file-manage-confirm-title {
273
277
  margin: 0;
@@ -306,8 +310,8 @@ function ensureFileManageStyles() {
306
310
  flex-direction: column;
307
311
  margin: 0 0 12px;
308
312
  padding: 8px 12px 12px;
309
- border: 1px solid var(--dsw-alias-border-l2, #e2e5ea);
310
- border-radius: 12px;
313
+ border: 0.5px solid var(--dsw-alias-border-l4, #e2e5ea);
314
+ border-radius: 16px;
311
315
  }
312
316
  /* \u914D\u989D\u5BB9\u91CF\u6761\uFF1A\u52A0\u539A + \u672A\u4F7F\u7528\u533A\u659C\u7EB9\uFF08repeating-linear-gradient\uFF09\uFF0C\u4E0E\u5206\u5272\u7EBF\u533A\u5206\uFF1B\u586B\u5145\u76D6\u4F4F\u659C\u7EB9\u3002
313
317
  \u5BB9\u91CF\u6587\u5B57\u7EDD\u5BF9\u5B9A\u4F4D\u5C45\u4E2D\u53E0\u52A0\u5728\u6761\u4E0A\u3002 */
@@ -374,7 +378,7 @@ var styles = {
374
378
  padding: 0,
375
379
  background: "var(--dsw-alias-bg-layer-2, #f6f7f9)",
376
380
  color: "var(--dsw-alias-label-primary, #1f2329)",
377
- boxShadow: "var(--dsw-shadow-lv3, 0 12px 40px rgba(0,0,0,0.22))"
381
+ boxShadow: "var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,0.22))"
378
382
  },
379
383
  body: {
380
384
  flex: 1,
@@ -24,7 +24,7 @@ export declare const styles: {
24
24
  padding: number;
25
25
  background: string;
26
26
  color: "var(--dsw-alias-label-primary, #1f2329)";
27
- boxShadow: "var(--dsw-shadow-lv3, 0 12px 40px rgba(0,0,0,0.22))";
27
+ boxShadow: "var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,0.22))";
28
28
  };
29
29
  readonly body: {
30
30
  flex: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-sparrow/dsh-file-manage",
3
3
  "description": "DSH web plugin: manage DeepSeek Files API cloud files from the sidebar — list with cursor pagination, delete, and copy file_id (reuses the official DeepSeekFilesClient, no extra credentials)",
4
- "version": "0.1.0-alpha.2",
4
+ "version": "0.1.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,7 +26,6 @@
26
26
  "lib/**/*.js",
27
27
  "lib/types/**/*.d.ts",
28
28
  "cordis.patch.yml",
29
- "docs/images/**",
30
29
  "README.md",
31
30
  "README.zh-CN.md",
32
31
  "CHANGELOG.md", "CHANGELOG.zh-CN.md"
@@ -49,11 +48,11 @@
49
48
  },
50
49
  "peerDependencies": {
51
50
  "@deepseek-ai/cordis": "^0.1.1-rc.2 || ^4.0.1",
52
- "@deepseek-ai/dsh-credentials": "^0.1.1-rc.2",
53
- "@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2",
54
- "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
55
- "@deepseek-ai/dsh-llm-deepseek": "^0.1.1-rc.2",
56
- "@deepseek-ai/dsh-settings": "^0.1.1-rc.2"
51
+ "@deepseek-ai/dsh-credentials": "^0.1.2-alpha.4",
52
+ "@deepseek-ai/dsh-host-webserver": "^0.1.2-alpha.4",
53
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.4",
54
+ "@deepseek-ai/dsh-llm-deepseek": "^0.1.2-alpha.4",
55
+ "@deepseek-ai/dsh-settings": "^0.1.2-alpha.4"
57
56
  },
58
57
  "devDependencies": {
59
58
  "@deepseek-ai/cordis": "0.1.1-rc.2",
@@ -62,14 +61,14 @@
62
61
  "@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
63
62
  "@deepseek-ai/dsh-client-ui-sidebar": "0.1.1-rc.2",
64
63
  "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
65
- "@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
66
- "@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
67
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
68
- "@deepseek-ai/dsh-llm-deepseek": "0.1.1-rc.2",
69
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
64
+ "@deepseek-ai/dsh-credentials": "0.1.2-alpha.4",
65
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.4",
66
+ "@deepseek-ai/dsh-llm": "0.1.2-alpha.4",
67
+ "@deepseek-ai/dsh-llm-deepseek": "0.1.2-alpha.4",
68
+ "@deepseek-ai/dsh-settings": "0.1.2-alpha.4",
70
69
  "@types/node": "^22.20.0",
71
70
  "@types/react": "~18.3.1",
72
71
  "@types/react-dom": "~18.3.1",
73
72
  "react": "^18.2.0"
74
73
  }
75
- }
74
+ }
Binary file