dsh-prompt-pocket 1.0.1 → 1.0.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 +70 -36
- package/README.zh.md +70 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,36 +1,70 @@
|
|
|
1
|
-
# dsh-prompt-pocket
|
|
2
|
-
|
|
3
|
-
**A prompt pocket
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# dsh-prompt-pocket
|
|
2
|
+
|
|
3
|
+
**A prompt pocket for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): one keystroke saves what you were typing, one click puts it back at the caret.** It lives as a 24px dot in the corner, so the layout never grows a sidebar, a chip row, or a panel that shifts the conversation.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Site: **[dshtoolbox.com/plugins/dsh-prompt-pocket](https://www.dshtoolbox.com/plugins/dsh-prompt-pocket/)** · 中文页: [dshtoolbox.com/zh/plugins/dsh-prompt-pocket](https://www.dshtoolbox.com/zh/plugins/dsh-prompt-pocket/) · npm: [dsh-prompt-pocket](https://www.npmjs.com/package/dsh-prompt-pocket)
|
|
8
|
+
|
|
9
|
+
## Why it exists
|
|
10
|
+
|
|
11
|
+
Prompt libraries ask for a title, tags, a folder and a panel before they will keep a sentence. By then you have forgotten the sentence. This one keeps the sentence.
|
|
12
|
+
|
|
13
|
+
## What it does that others do not
|
|
14
|
+
|
|
15
|
+
- **`Ctrl+Shift+S` saves without a dialog.** The selection if there is one, the whole draft otherwise. No title, no tags, no “where should this go”.
|
|
16
|
+
- **The confirmation appears beside the dot even when the panel is closed** — with a one-click move to the other drawer and a button to rewrite the prompt.
|
|
17
|
+
- **Insert is revision-guarded, not string concatenation.** A quote chip or attachment you already had stays where it is, the insert is one undo step, and focus returns to the composer.
|
|
18
|
+
- **Two drawers split by workspace, not by session.** Sessions get archived and forked; a prompt pinned to one session loses its home. A bare session falls back to General instead of showing an empty drawer.
|
|
19
|
+
- **✦ writes a DSH prompt, it does not paraphrase.** Variables, paths, URLs and code blocks are kept byte-for-byte, nothing is invented, and filler is forbidden by the instruction. A failed or empty result never replaces your text; accepting a rewrite keeps the old one in `prior`.
|
|
20
|
+
- **One click on an assistant reply keeps it verbatim** as source material, read from the session log — text blocks only, tool calls never leak in.
|
|
21
|
+
- **The agent shares the same pocket** through the `prompt_stash` tool, scoped to the drawers so one project's prompts do not show up in another's answer.
|
|
22
|
+
- **500 prompts, least recently used dropped, one JSON file, atomic writes, no runtime dependencies, no account.** Nothing leaves the machine except the one model call you explicitly ask for.
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
dsh plugin --profile web add dsh-prompt-pocket
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Restart the host once so the route, the tool and the client bundle register, then force-reload the page with `Ctrl+Shift+R`. From a checkout instead:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git clone https://github.com/FindSomeSkills/dsh-prompt-pocket
|
|
36
|
+
cd dsh-prompt-pocket
|
|
37
|
+
dsh plugin --profile web add .
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Use
|
|
41
|
+
|
|
42
|
+
| Action | How |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| Save the selection or the draft | `Ctrl+Shift+S` |
|
|
45
|
+
| Open or close the pocket | `Ctrl+Shift+P`, or click the dot |
|
|
46
|
+
| Move the dot | Drag it; the position is remembered per browser |
|
|
47
|
+
| Insert a prompt at the caret | `Enter`, or click the row |
|
|
48
|
+
| Replace the whole draft | `Alt+Enter` while a row is selected |
|
|
49
|
+
| Walk the list | `↑` `↓` (wraps around), `Esc` closes |
|
|
50
|
+
| Move a prompt between drawers | `⇄` on the row |
|
|
51
|
+
| Delete | `×` on the row |
|
|
52
|
+
| Rewrite the prompt for DSH | `✦`, or the button on the save confirmation |
|
|
53
|
+
| Save an assistant reply | `⤓` in the reply action row |
|
|
54
|
+
|
|
55
|
+
## Where the data lives
|
|
56
|
+
|
|
57
|
+
`$DSH_HOME/dsh-prompt-stash/store.json`, by default `~/.dsh/dsh-prompt-stash/store.json`. One file for every profile and every browser pointed at this host; writes go through a temporary file and a rename, and a damaged file is renamed to `.corrupt-<timestamp>.bak` instead of blocking the panel.
|
|
58
|
+
|
|
59
|
+
## Requirements
|
|
60
|
+
|
|
61
|
+
DeepSeek Harness `>= 0.2.0-rc.1` and a Web profile — the pocket renders inside the composer. Windows, macOS and Linux run the same code; the interface language follows the DSH setting. The desktop client is untested.
|
|
62
|
+
|
|
63
|
+
## Links
|
|
64
|
+
|
|
65
|
+
- Product page: https://www.dshtoolbox.com/plugins/dsh-prompt-pocket/
|
|
66
|
+
- Chinese page: https://www.dshtoolbox.com/zh/plugins/dsh-prompt-pocket/
|
|
67
|
+
- npm: https://www.npmjs.com/package/dsh-prompt-pocket
|
|
68
|
+
- Manual: [docs/DETAIL.md](docs/DETAIL.md) (English) · [docs/DETAIL.zh.md](docs/DETAIL.zh.md) (中文)
|
|
69
|
+
|
|
70
|
+
MIT.
|
package/README.zh.md
CHANGED
|
@@ -1,36 +1,70 @@
|
|
|
1
|
-
# dsh-prompt-pocket
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# dsh-prompt-pocket
|
|
2
|
+
|
|
3
|
+
**给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 用的提示词口袋:一个快捷键存下你正在打的字,一次点击把它插回光标处。** 它就是角落里一枚 24px 的圆点,界面不会因此长出一条侧栏、一排胶囊,或者一个挤压对话的面板。
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
站点:**[dshtoolbox.com/zh/plugins/dsh-prompt-pocket](https://www.dshtoolbox.com/zh/plugins/dsh-prompt-pocket/)** · English: [dshtoolbox.com/plugins/dsh-prompt-pocket](https://www.dshtoolbox.com/plugins/dsh-prompt-pocket/) · npm: [dsh-prompt-pocket](https://www.npmjs.com/package/dsh-prompt-pocket)
|
|
8
|
+
|
|
9
|
+
## 为什么做这个
|
|
10
|
+
|
|
11
|
+
提示词库要先让你起标题、打标签、建文件夹、开面板,然后才肯收下一句话。等你填完,那句话已经忘了。这个不填,直接收。
|
|
12
|
+
|
|
13
|
+
## 别处没有的几件事
|
|
14
|
+
|
|
15
|
+
- **`Ctrl+Shift+S` 存,不弹窗。** 有选中存选中,没选中存整段草稿。不起标题、不选标签、不问放哪。
|
|
16
|
+
- **面板关着也能看见存到哪了。** 圆点旁边出一条两秒的提示,带「改存另一档」和「写成 DSH 提示词」两个按钮。
|
|
17
|
+
- **插入走输入框的修订号保护,不是拼字符串。** 你已经插的引用 chip、挂的附件都留在原地,插入是一步撤销,插完焦点回到输入框。
|
|
18
|
+
- **两个抽屉按 workspace 分,不按会话分。** 会话会归档、会 fork,绑在会话上的提示词那天就没了家;没有 workspace 的裸会话退成通用,而不是给你一个空标签页。
|
|
19
|
+
- **✦ 写的是 DSH 提示词,不是同义改写。** `{{变量}}`、路径、URL、代码块原样保留,没说过的东西不编,套话在被禁之列。失败或空结果绝不覆盖原文;接受新版本时旧文本留在 `prior` 里,一键退回。
|
|
20
|
+
- **AI 回复一键存原文。** 从会话日志里只取 text 块,工具调用不会漏进提示词。
|
|
21
|
+
- **模型共用同一个口袋。** `prompt_stash` 工具读写同一份文件,且守分档,一个项目的提示词不会出现在另一个项目的回答里。
|
|
22
|
+
- **最多 500 条,满了淘汰最久没用的那条;一个 JSON 文件、原子写、没有运行时依赖、不需要账号。** 除了你主动点的那一次模型调用,什么都不出这台机器。
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
## 安装
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
dsh plugin --profile web add dsh-prompt-pocket
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
装完重启一次宿主,让路由、工具和客户端 bundle 注册;然后 `Ctrl+Shift+R` 强刷页面。要从源码装:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git clone https://github.com/FindSomeSkills/dsh-prompt-pocket
|
|
36
|
+
cd dsh-prompt-pocket
|
|
37
|
+
dsh plugin --profile web add .
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 用法
|
|
41
|
+
|
|
42
|
+
| 要做什么 | 怎么做 |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| 存选中内容或整段草稿 | `Ctrl+Shift+S` |
|
|
45
|
+
| 开 / 关面板 | `Ctrl+Shift+P`,或点圆点 |
|
|
46
|
+
| 挪圆点 | 按住拖;位置按浏览器记住 |
|
|
47
|
+
| 插到光标处 | `Enter`,或直接点那一行 |
|
|
48
|
+
| 整段替换 | 选中行后 `Alt+Enter` |
|
|
49
|
+
| 上下选 | `↑` `↓`(循环),`Esc` 关 |
|
|
50
|
+
| 在两个档之间挪 | 行尾 `⇄` |
|
|
51
|
+
| 删除 | 行尾 `×` |
|
|
52
|
+
| 写成 DSH 提示词 | 行尾 `✦`,或存完提示里的按钮 |
|
|
53
|
+
| 存一条 AI 回复 | 回复动作行的 `⤓` |
|
|
54
|
+
|
|
55
|
+
## 数据在哪
|
|
56
|
+
|
|
57
|
+
`$DSH_HOME/dsh-prompt-stash/store.json`,默认 `~/.dsh/dsh-prompt-stash/store.json`。一个文件,所有 profile、所有连到这台机器的浏览器共用;写入走临时文件 + rename,文件坏了会改名成 `.corrupt-<时间戳>.bak`,不会挡住面板。
|
|
58
|
+
|
|
59
|
+
## 运行要求
|
|
60
|
+
|
|
61
|
+
DeepSeek Harness `>= 0.2.0-rc.1`,Web profile——口袋渲染在输入框里。Windows、macOS、Linux 跑同一份代码;界面语言跟随 DSH 的设置。桌面客户端没验证过。
|
|
62
|
+
|
|
63
|
+
## 链接
|
|
64
|
+
|
|
65
|
+
- 产品页:https://www.dshtoolbox.com/zh/plugins/dsh-prompt-pocket/
|
|
66
|
+
- 英文页:https://www.dshtoolbox.com/plugins/dsh-prompt-pocket/
|
|
67
|
+
- npm:https://www.npmjs.com/package/dsh-prompt-pocket
|
|
68
|
+
- 使用手册:[docs/DETAIL.zh.md](docs/DETAIL.zh.md) · [docs/DETAIL.md](docs/DETAIL.md)
|
|
69
|
+
|
|
70
|
+
MIT。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-prompt-pocket",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A prompt pocket that floats in the corner: save the draft or the selected text with Ctrl+Shift+S, click a saved prompt to drop it back at the caret.",
|