@jaxzhou/dsh-file-explorer 0.1.9 → 0.1.10
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 +16 -7
- package/docs/README.zh.md +12 -3
- package/lib/client.js +457 -352
- package/lib/client.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -38,7 +38,11 @@ which no export does now.
|
|
|
38
38
|
|
|
39
39
|
The left pane is the session's working directory, listed one level at a time,
|
|
40
40
|
directories first. An expanded level stays expanded while you move between
|
|
41
|
-
preview tabs
|
|
41
|
+
preview tabs, and the pane itself folds away — by its own control, or by opening
|
|
42
|
+
a file. That last one is also how the pane behaves on a phone: below 720 pixels
|
|
43
|
+
the tree and the preview take turns instead of sharing a width neither of them
|
|
44
|
+
fits in, and a finger gets bigger controls, a taller header, and a tab close
|
|
45
|
+
button that is not waiting for a hover it will never see.
|
|
42
46
|
|
|
43
47
|
Clicking a file opens it in a tab, so several files stay open at once — each with
|
|
44
48
|
its own body and its own wrap setting. A file that is already open is focused
|
|
@@ -98,10 +102,14 @@ beside it, and the images and stylesheets an HTML file links to.
|
|
|
98
102
|
|
|
99
103
|
## Requirements
|
|
100
104
|
|
|
101
|
-
DeepSeek Harness **0.1.5-rc.2** on the **Web** surface — `dsh web`,
|
|
102
|
-
composed from `@deepseek-ai/dsh-base` + `@deepseek-ai/dsh-web-app`. A
|
|
103
|
-
SDK profile has no browser and gets no tab. The plugin declares no
|
|
104
|
-
so nothing in `cordis.yml` needs setting.
|
|
105
|
+
DeepSeek Harness **0.1.5-rc.2** or **0.2.0-rc.2** on the **Web** surface — `dsh web`,
|
|
106
|
+
or a profile composed from `@deepseek-ai/dsh-base` + `@deepseek-ai/dsh-web-app`. A
|
|
107
|
+
headless or SDK profile has no browser and gets no tab. The plugin declares no
|
|
108
|
+
configuration, so nothing in `cordis.yml` needs setting.
|
|
109
|
+
|
|
110
|
+
One artifact serves both: 0.2.0 renamed the shared icon set and reshaped the byte
|
|
111
|
+
read, so the plugin asks the running shell which spelling and which shape it has
|
|
112
|
+
(see `src/client/shell.ts`) rather than assuming either.
|
|
105
113
|
|
|
106
114
|
## Install
|
|
107
115
|
|
|
@@ -110,10 +118,11 @@ dsh plugin --profile web add @jaxzhou/dsh-file-explorer
|
|
|
110
118
|
dsh --profile web # bundle membership is read at startup
|
|
111
119
|
```
|
|
112
120
|
|
|
113
|
-
A custom profile needs the Web composition first
|
|
121
|
+
A custom profile needs the Web composition first. `--from-default-profile` creates
|
|
122
|
+
the profile *and* boots it, so stop the first command once it prints its URL:
|
|
114
123
|
|
|
115
124
|
```sh
|
|
116
|
-
dsh --profile myprofile --from-default-profile web
|
|
125
|
+
dsh --profile myprofile --from-default-profile web # creates it, then serves it
|
|
117
126
|
dsh plugin --profile myprofile add @jaxzhou/dsh-file-explorer
|
|
118
127
|
dsh --profile myprofile
|
|
119
128
|
```
|
package/docs/README.zh.md
CHANGED
|
@@ -34,6 +34,10 @@ dsh --profile web
|
|
|
34
34
|
## 能做什么
|
|
35
35
|
|
|
36
36
|
左栏是会话的工作目录,逐层展开,目录在前;展开过的层级在切换预览标签后仍然保持。
|
|
37
|
+
左栏本身也可以收起 —— 用它的开关,或者直接点开一个文件。后者也是窄屏上的行为:宽度
|
|
38
|
+
低于 720 像素时,目录树与预览**轮流占满**,而不是挤在一个谁都放不下的宽度里;同时
|
|
39
|
+
触摸设备会得到更大的控件、更高的表头,以及一个不再依赖 hover(触摸屏上永远不会发生)
|
|
40
|
+
的标签关闭按钮。
|
|
37
41
|
|
|
38
42
|
点击文件会在标签中打开它,因此可以同时打开多个文件——每个标签有自己的预览体、
|
|
39
43
|
自己的换行设置。已打开的文件会被聚焦而不是重复打开;同名的标签会带上所在目录;
|
|
@@ -85,11 +89,15 @@ Markdown 源码。
|
|
|
85
89
|
|
|
86
90
|
## 环境要求
|
|
87
91
|
|
|
88
|
-
DeepSeek Harness **0.1.5-rc.2** 的 **Web** 界面 —— `dsh web`,或由
|
|
92
|
+
DeepSeek Harness **0.1.5-rc.2** 或 **0.2.0-rc.2** 的 **Web** 界面 —— `dsh web`,或由
|
|
89
93
|
`@deepseek-ai/dsh-base` + `@deepseek-ai/dsh-web-app` 组合出的 profile。headless
|
|
90
94
|
或 SDK profile 没有浏览器,不会出现该标签。插件没有配置项,`cordis.yml` 无需
|
|
91
95
|
任何设置。
|
|
92
96
|
|
|
97
|
+
同一份产物同时适配两者:0.2.0 重命名了共享图标集,并改写了字节读取的形状,
|
|
98
|
+
因此插件会先问运行中的 shell 用的是哪种拼写、哪种形状(见 `src/client/shell.ts`),
|
|
99
|
+
而不是假定其中一种。
|
|
100
|
+
|
|
93
101
|
## 安装
|
|
94
102
|
|
|
95
103
|
```sh
|
|
@@ -97,10 +105,11 @@ dsh plugin --profile web add @jaxzhou/dsh-file-explorer
|
|
|
97
105
|
dsh --profile web # bundle 成员在启动时读取
|
|
98
106
|
```
|
|
99
107
|
|
|
100
|
-
自定义 profile 需要先具备 Web
|
|
108
|
+
自定义 profile 需要先具备 Web 组合。`--from-default-profile` 会在创建 profile 后
|
|
109
|
+
直接启动它,因此第一条命令打印出地址后先停掉:
|
|
101
110
|
|
|
102
111
|
```sh
|
|
103
|
-
dsh --profile myprofile --from-default-profile web
|
|
112
|
+
dsh --profile myprofile --from-default-profile web # 先创建,随后启动服务
|
|
104
113
|
dsh plugin --profile myprofile add @jaxzhou/dsh-file-explorer
|
|
105
114
|
dsh --profile myprofile
|
|
106
115
|
```
|