dsh-prompt-panel 0.9.0 → 0.9.1
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 +2 -2
- package/client.js +1 -1
- package/docs/DETAIL.md +1 -1
- package/index.js +3 -3
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Prompt
|
|
1
|
+
# Prompt Panel(提示词面板)
|
|
2
2
|
|
|
3
3
|
在对话框右侧栏查看本会话的**系统提示词**,并**按段落**直接修改它:每段完整展示、就地编辑、可以加注释、可以折叠。所有改动只对**当前会话**生效,不会碰部署文件,也不影响其它会话。
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
系统提示词不是一段自然语言,而是十几个插件各自贡献的段落拼起来的:产品身份、人格前缀、每个工具的用法说明、文件引用规则、Web 界面说明…… 想知道"某句奇怪的话是谁写的、能不能删",以前只能翻源码。
|
|
22
22
|
|
|
23
|
-
Prompt
|
|
23
|
+
Prompt Panel 把每一段摊开:给出**这一段是干什么的**、原文全文,然后允许你:
|
|
24
24
|
|
|
25
25
|
| 操作 | 效果 |
|
|
26
26
|
| --- | --- |
|
package/client.js
CHANGED
package/docs/DETAIL.md
CHANGED
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Prompt
|
|
2
|
+
* Prompt Panel — inspect this conversation's effective system prompt and edit
|
|
3
3
|
* it section by section for this Session only.
|
|
4
4
|
*
|
|
5
5
|
* Two host-side extension points are used:
|
|
@@ -124,7 +124,7 @@ function describeSection(name) {
|
|
|
124
124
|
[/^output:/u, '输出协议'],
|
|
125
125
|
[/^harness:source/u, '实现来源:说明本次运行的是哪个安装的 DSH'],
|
|
126
126
|
[/^(web|app):web-surface/u, 'Web 界面说明:当前图形界面的能力与限制'],
|
|
127
|
-
[/^prompt-studio/u, 'Prompt
|
|
127
|
+
[/^prompt-studio/u, 'Prompt Panel 添加的段落'],
|
|
128
128
|
]
|
|
129
129
|
for (const [pattern, label] of rules) {
|
|
130
130
|
if (pattern.test(name)) return label
|
|
@@ -627,7 +627,7 @@ function formatSections(result) {
|
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
|
-
* Execute one Prompt
|
|
630
|
+
* Execute one Prompt Panel action.
|
|
631
631
|
* @param ctx - plugin context.
|
|
632
632
|
* @param agent - calling agent.
|
|
633
633
|
* @param args - `{ action, name?, text? }`.
|
package/locale/en.json
CHANGED
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-prompt-panel",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Read this conversation's system prompt section by section in a right-sidebar panel: full text, editable in place, note bars, folding, drag-and-drop groups, added paragraphs that switch off, local presets that keep the section structure, and a default preset per workspace or globally.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": "jadew",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"dsh-plugin",
|
|
10
|
-
"deepseek-harness",
|
|
11
|
-
"system-prompt",
|
|
12
|
-
"prompt-editing",
|
|
13
|
-
"sidebar-panel"
|
|
14
|
-
],
|
|
15
|
-
"engines": {
|
|
16
|
-
"dsh": ">=0.2.1"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/jinyanjadeword/dsh-prompt-panel.git"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/jinyanjadeword/dsh-prompt-panel#readme",
|
|
23
|
-
"exports": {
|
|
24
|
-
".": "./index.js",
|
|
25
|
-
"./client": "./client.js",
|
|
26
|
-
"./locale/*.json": "./locale/*.json",
|
|
27
|
-
"./icon": "./icon.svg"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"index.js",
|
|
31
|
-
"client.js",
|
|
32
|
-
"cordis.patch.yml",
|
|
33
|
-
"locale/*.json",
|
|
34
|
-
"docs",
|
|
35
|
-
"icon.svg",
|
|
36
|
-
"README.md"
|
|
37
|
-
],
|
|
38
|
-
"dsh": {
|
|
39
|
-
"bundle": {
|
|
40
|
-
"patch": "./cordis.patch.yml"
|
|
41
|
-
},
|
|
42
|
-
"client": {
|
|
43
|
-
"platform": "web",
|
|
44
|
-
"immediately": true,
|
|
45
|
-
"inject": [
|
|
46
|
-
"slots",
|
|
47
|
-
"locale",
|
|
48
|
-
"sidebarRightTabs",
|
|
49
|
-
"remote",
|
|
50
|
-
"remote.commands"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-prompt-panel",
|
|
3
|
+
"version": "0.9.1",
|
|
4
|
+
"description": "Read this conversation's system prompt section by section in a right-sidebar panel: full text, editable in place, note bars, folding, drag-and-drop groups, added paragraphs that switch off, local presets that keep the section structure, and a default preset per workspace or globally.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "jadew",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"dsh-plugin",
|
|
10
|
+
"deepseek-harness",
|
|
11
|
+
"system-prompt",
|
|
12
|
+
"prompt-editing",
|
|
13
|
+
"sidebar-panel"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"dsh": ">=0.2.1"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/jinyanjadeword/dsh-prompt-panel.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/jinyanjadeword/dsh-prompt-panel#readme",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./index.js",
|
|
25
|
+
"./client": "./client.js",
|
|
26
|
+
"./locale/*.json": "./locale/*.json",
|
|
27
|
+
"./icon": "./icon.svg"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"index.js",
|
|
31
|
+
"client.js",
|
|
32
|
+
"cordis.patch.yml",
|
|
33
|
+
"locale/*.json",
|
|
34
|
+
"docs",
|
|
35
|
+
"icon.svg",
|
|
36
|
+
"README.md"
|
|
37
|
+
],
|
|
38
|
+
"dsh": {
|
|
39
|
+
"bundle": {
|
|
40
|
+
"patch": "./cordis.patch.yml"
|
|
41
|
+
},
|
|
42
|
+
"client": {
|
|
43
|
+
"platform": "web",
|
|
44
|
+
"immediately": true,
|
|
45
|
+
"inject": [
|
|
46
|
+
"slots",
|
|
47
|
+
"locale",
|
|
48
|
+
"sidebarRightTabs",
|
|
49
|
+
"remote",
|
|
50
|
+
"remote.commands"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|