@user-mrz/dsh-system-prompt-studio 0.1.8 → 0.2.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 +58 -1
- package/README.md +58 -9
- package/lib/client.js +87 -0
- package/package.json +69 -61
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,61 @@ integration still targets the same DSH shapes, a major bump means it may not.
|
|
|
12
12
|
|
|
13
13
|
Nothing yet.
|
|
14
14
|
|
|
15
|
+
## [0.2.0] — 2026-11-10
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **"Replace everything" now lists what it will drop.** The panel already held the real assembled
|
|
20
|
+
section list, so "you are about to lose the first-party prompt" was a warning about something it could
|
|
21
|
+
actually enumerate. It now shows every section that will be discarded, with its character count, folds
|
|
22
|
+
the list after 24 entries, and calls out separately how many of those sections belong to **other
|
|
23
|
+
plugins**. That last number is the one that matters: a plugin's tool schema survives a `complete`
|
|
24
|
+
override, but the prose telling the model when and how to call it does not, so the tool stays installed
|
|
25
|
+
and unused with no error anywhere. It reads as "the model got dumber", never as "I turned a mode on".
|
|
26
|
+
- When the conversation has not assembled a prompt yet, the panel says it cannot list the sections
|
|
27
|
+
rather than inventing a count.
|
|
28
|
+
- Nine structural checks cover the new computation, including that it excludes the plugin's own
|
|
29
|
+
sections, that it folds past 24 entries, and that a disabled `allowComplete` suppresses the list
|
|
30
|
+
entirely.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- The README's "Replace everything" warning now leads with the cross-plugin damage rather than only the
|
|
35
|
+
first-party guidance, documents the new per-section listing, and recommends `allowComplete: false` for
|
|
36
|
+
any profile running plugins that contribute prompt sections. Both languages updated, and the config
|
|
37
|
+
table marks that recommendation.
|
|
38
|
+
|
|
39
|
+
### Note
|
|
40
|
+
|
|
41
|
+
`allowComplete` still defaults to `true` in the plugin's own patch. This release adds information and
|
|
42
|
+
documentation, not a behaviour change: existing users keep the mode unless they turn it off. The
|
|
43
|
+
recommendation is in the README because whether to keep a whole-prompt override is the profile owner's
|
|
44
|
+
call, and silently removing a documented mode from under them would be worse than the risk it avoids.
|
|
45
|
+
|
|
46
|
+
## [0.1.9] — 2026-11-10
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- The README now says which npm package this is. It described the install as coming "from npm" without
|
|
51
|
+
ever naming the npm page, so a reader could not tell this plugin apart from the unrelated **unscoped**
|
|
52
|
+
`dsh-system-prompt-studio` package — a different author's project that npm search ranks first because
|
|
53
|
+
it has downloads and this one does not. Both the English and Chinese install sections now state the
|
|
54
|
+
scoped name, link the npm page, and warn that the unscoped name is someone else's. A badge at the top
|
|
55
|
+
carries the same link.
|
|
56
|
+
- `package.json` keywords now include the terms npm actually indexes (`dsh`, `dsh-plugins`, `deepseek`,
|
|
57
|
+
`dsh-desktop`, `system-prompt-override`, `prompt-override`, `prompt-management`, `persona`). The old
|
|
58
|
+
four terms were accurate but too narrow to reach anyone browsing by topic.
|
|
59
|
+
- The repository's GitHub **Homepage** field now points at the npm page instead of back at the repo,
|
|
60
|
+
which is where a visitor deciding whether to install looks first.
|
|
61
|
+
|
|
62
|
+
### Note
|
|
63
|
+
|
|
64
|
+
Being findable in npm search is governed by download count, not by metadata: this package is indexed
|
|
65
|
+
with `searchScore: 0` and sits at rank 989 of 999 for `keywords:prompt-engineering`, while a package
|
|
66
|
+
with 538 downloads and the same score is equally invisible. Nothing in this release changes that; the
|
|
67
|
+
keywords above only help when someone searches by term, and the README and Homepage changes make the
|
|
68
|
+
scoped name unambiguous for anyone who arrives from GitHub.
|
|
69
|
+
|
|
15
70
|
## [0.1.8] — 2026-11-10
|
|
16
71
|
|
|
17
72
|
### Fixed
|
|
@@ -142,7 +197,9 @@ Nothing yet.
|
|
|
142
197
|
- Read-only assembly observer listing the real section names, order and size.
|
|
143
198
|
- Loopback-only HTTP route for the panel; forged `Host` headers are refused.
|
|
144
199
|
|
|
145
|
-
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.
|
|
200
|
+
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.2.0...HEAD
|
|
201
|
+
[0.2.0]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.9...v0.2.0
|
|
202
|
+
[0.1.9]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.8...v0.1.9
|
|
146
203
|
[0.1.8]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.7...v0.1.8
|
|
147
204
|
[0.1.7]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.6...v0.1.7
|
|
148
205
|
[0.1.6]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.5...v0.1.6
|
package/README.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
# dsh-system-prompt-studio
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@user-mrz/dsh-system-prompt-studio)
|
|
3
4
|
[](LICENSE)
|
|
4
5
|
|
|
5
6
|
A **[DeepSeek Harness](https://github.com/deepseek-ai)** plugin that lets you inspect and override the
|
|
6
7
|
**system prompt** a conversation actually sends to the model — per conversation, at runtime, without
|
|
7
8
|
restarting.
|
|
8
9
|
|
|
10
|
+
> **This plugin ships as the scoped npm package
|
|
11
|
+
> [`@user-mrz/dsh-system-prompt-studio`](https://www.npmjs.com/package/@user-mrz/dsh-system-prompt-studio).**
|
|
12
|
+
> An unrelated, unscoped package named `dsh-system-prompt-studio` also exists on npm, maintained by
|
|
13
|
+
> someone else. Installing that one will **not** give you this plugin. Always install the
|
|
14
|
+
> `@user-mrz/`-scoped name.
|
|
15
|
+
|
|
9
16
|
DSH itself only exposes deployment-wide persona prefix/suffix in configuration files: change one and you
|
|
10
17
|
need a restart, and it affects every session. This plugin moves the same capability to runtime, per
|
|
11
18
|
session, effective immediately.
|
|
@@ -24,7 +31,7 @@ session, effective immediately.
|
|
|
24
31
|
|---|---|
|
|
25
32
|
| **Append** (default) | Keeps every first-party section, adds yours at the end. Safest. |
|
|
26
33
|
| **Replace a section** | Shadows one named first-party section, e.g. `deployment:persona-suffix`. |
|
|
27
|
-
| **Replace everything** | Your text becomes the entire system prompt. Highest risk — see below. |
|
|
34
|
+
| **Replace everything** | Your text becomes the entire system prompt. Highest risk: drops first-party guidance **and every other plugin's sections** — see below. |
|
|
28
35
|
|
|
29
36
|
- **Applies on the next model request.** No restart, no reload.
|
|
30
37
|
- **Persists per session**, and a **global default** applies to new conversations automatically.
|
|
@@ -39,8 +46,26 @@ That mode removes **all** first-party guidance — tool instructions, structured
|
|
|
39
46
|
policy. Tool-calling quality can drop noticeably. Runtime context (working directory, sandbox policy,
|
|
40
47
|
approval policy) is still sent as a user-side snapshot and is **not** replaced by your text.
|
|
41
48
|
|
|
49
|
+
**It also removes every section other plugins registered.** This is the part that bites quietly. A
|
|
50
|
+
plugin's tool schema still ships, but the prose that tells the model *when and how* to call it is gone,
|
|
51
|
+
so the tool stays installed and unused — and nothing errors. The failure looks like "the model got
|
|
52
|
+
dumber", not like "I turned something off". If you run a plugin that registers prompt sections
|
|
53
|
+
(`plugin:ssh`, `plugin:task-board`, `team:policy`, and so on), Replace everything disables all of them
|
|
54
|
+
at once for that conversation.
|
|
55
|
+
|
|
56
|
+
The panel lists exactly what will be dropped before you save: every section name with its character
|
|
57
|
+
count, plus a separate line naming how many of them belong to other plugins. If the conversation has
|
|
58
|
+
not assembled a prompt yet, it says it cannot list them rather than guessing.
|
|
59
|
+
|
|
60
|
+
**Consider turning the mode off entirely.** Set `allowComplete: false` in the plugin row's config and
|
|
61
|
+
the mode becomes unavailable — the panel greys it out, and saving one is rejected with
|
|
62
|
+
`COMPLETE_BLOCKED`. Any `complete` override already in the state file stops applying and the prompt
|
|
63
|
+
falls back to the first-party default (the data is kept, not deleted). This is the recommended setting
|
|
64
|
+
for any profile running third-party plugins that contribute prompt sections.
|
|
65
|
+
|
|
42
66
|
Also: assembly allows only one active `complete` section. If another plugin registers one in the same
|
|
43
|
-
session, assembly fails with `multiple complete prompt sections
|
|
67
|
+
session, assembly fails with `multiple complete prompt sections` — and then **every** model request in
|
|
68
|
+
that conversation fails, while the user only sees "request failed". Switch back to Append or Replace to
|
|
44
69
|
recover.
|
|
45
70
|
|
|
46
71
|
---
|
|
@@ -52,6 +77,9 @@ recover.
|
|
|
52
77
|
|
|
53
78
|
## Install
|
|
54
79
|
|
|
80
|
+
The package lives at **[npmjs.com/package/@user-mrz/dsh-system-prompt-studio](https://www.npmjs.com/package/@user-mrz/dsh-system-prompt-studio)**.
|
|
81
|
+
Install that scoped name — `dsh-system-prompt-studio` without the scope is a different author's package.
|
|
82
|
+
|
|
55
83
|
From npm (recommended — this is the version that gets version numbers, tags and a published tarball):
|
|
56
84
|
|
|
57
85
|
```bash
|
|
@@ -61,7 +89,7 @@ dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio
|
|
|
61
89
|
From GitHub, which tracks the default branch and therefore needs a ref if you want a fixed version:
|
|
62
90
|
|
|
63
91
|
```bash
|
|
64
|
-
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.
|
|
92
|
+
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.2.0
|
|
65
93
|
```
|
|
66
94
|
|
|
67
95
|
Replace `<profile>` with your profile name — for the Web build that is usually `web`.
|
|
@@ -70,7 +98,7 @@ Replace `<profile>` with your profile name — for the Web build that is usually
|
|
|
70
98
|
changes what you install next time:
|
|
71
99
|
|
|
72
100
|
```bash
|
|
73
|
-
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.
|
|
101
|
+
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.2.0
|
|
74
102
|
```
|
|
75
103
|
|
|
76
104
|
<details>
|
|
@@ -205,7 +233,7 @@ Edit the row in `cordis.patch.yml` or override it in your profile patch. The mos
|
|
|
205
233
|
|---|---|---|
|
|
206
234
|
| `enabled` | `true` | Master switch; when off, no section is registered and the API reports why |
|
|
207
235
|
| `defaultMode` | `append` | Mode used by the global default |
|
|
208
|
-
| `allowComplete` | `true` | Set `false` to disable "replace everything" entirely |
|
|
236
|
+
| `allowComplete` | `true` | Set `false` to disable "replace everything" entirely. **Recommended when other plugins register prompt sections** — see the warning above. |
|
|
209
237
|
| `appendOrder` | `10500` | Sort order of the appended section, clamped to `[10201, 20000]` |
|
|
210
238
|
| `maxChars` | `200000` | Max body length; oversize is **rejected**, never truncated |
|
|
211
239
|
| `globalDefaultScope` | `roots` | Whether the global default also applies to subagents (`all` to include) |
|
|
@@ -314,11 +342,32 @@ DSH 本身只提供配置文件级的人设前后缀:改一次要重启,且
|
|
|
314
342
|
|
|
315
343
|
**⚠️ 关于「完全替换」**:它会移除第一方的全部指引(工具使用说明、结构化输出规则、计划模式策略),
|
|
316
344
|
工具调用质量可能明显下降。运行时上下文(工作目录 / 沙箱 / 审批策略)仍会作为用户侧快照发送,
|
|
317
|
-
|
|
318
|
-
|
|
345
|
+
不会被你的文本替换。
|
|
346
|
+
|
|
347
|
+
**它同时会移除其它插件注册的全部段落,这一点最容易在不知不觉中出问题。** 插件的工具 schema 还在,
|
|
348
|
+
但告诉模型「何时调用、怎么调用」的那段说明没了,于是工具装着却用不上,而且不报任何错——看起来像
|
|
349
|
+
「模型变笨了」,而不是「我关掉了什么」。如果你装了会注册提示词段的插件(`plugin:ssh`、
|
|
350
|
+
`plugin:task-board`、`team:policy` 之类),「完全替换」会把它们在该对话里一次性全部停用。
|
|
351
|
+
|
|
352
|
+
面板在保存前会逐条列出到底会丢掉什么:每个段名与字符数,并单独点明其中有多少个属于其它插件。
|
|
353
|
+
若该对话还没装配过提示词,面板会如实说无法列举,而不是猜一个数字。
|
|
354
|
+
|
|
355
|
+
**建议直接把这个模式关掉。** 在插件那一行的配置里设 `allowComplete: false`,该模式即不可用——
|
|
356
|
+
面板会把选项置灰,强行保存会被 `COMPLETE_BLOCKED` 拒绝。状态文件里已有的 `complete` 覆盖会停止
|
|
357
|
+
生效,提示词回到第一方默认(数据保留,不删除)。**只要 profile 里装了会贡献提示词段的第三方插件,
|
|
358
|
+
就推荐这么设。**
|
|
359
|
+
|
|
360
|
+
另外装配只允许一个生效的 `complete` 段,若同会话内有别的插件也注册了一个,装配会报
|
|
361
|
+
`multiple complete prompt sections` —— 那时该对话的**每一次**模型请求都会失败,而用户只会看到
|
|
362
|
+
「请求失败」。改回「追加」或「替换」即可恢复。
|
|
319
363
|
|
|
320
364
|
**安装**
|
|
321
365
|
|
|
366
|
+
本插件发布为 npm 作用域包
|
|
367
|
+
**[@user-mrz/dsh-system-prompt-studio](https://www.npmjs.com/package/@user-mrz/dsh-system-prompt-studio)**。
|
|
368
|
+
npm 上另有一个**不带作用域**的同名包 `dsh-system-prompt-studio`,那是**另一位作者的另一个项目**,
|
|
369
|
+
装它得不到本插件——请始终使用带 `@user-mrz/` 作用域的名字。
|
|
370
|
+
|
|
322
371
|
从 npm(推荐,有版本号可锁):
|
|
323
372
|
|
|
324
373
|
```bash
|
|
@@ -328,13 +377,13 @@ dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio
|
|
|
328
377
|
或从 GitHub(跟随默认分支,建议锁 tag):
|
|
329
378
|
|
|
330
379
|
```bash
|
|
331
|
-
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.
|
|
380
|
+
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.2.0
|
|
332
381
|
```
|
|
333
382
|
|
|
334
383
|
锁定版本,保证装到的是一份确定的代码:
|
|
335
384
|
|
|
336
385
|
```bash
|
|
337
|
-
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.
|
|
386
|
+
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.2.0
|
|
338
387
|
```
|
|
339
388
|
|
|
340
389
|
`prepare` 脚本只校验入口文件存在,不做编译。若被 pnpm 拦下,把 `pnpm-workspace.yaml` 里
|
package/lib/client.js
CHANGED
|
@@ -56,6 +56,11 @@ window.__ModuleLoader__.load({
|
|
|
56
56
|
modeCompleteHint: '只发你写的内容。第一方的工具使用说明、结构化输出指引等提示词全部消失,可能明显影响工具调用质量。',
|
|
57
57
|
modeCompleteRisk: '运行时上下文(工作目录 / 沙箱 / 审批策略)仍会随请求发送,不会被这段替换。',
|
|
58
58
|
modeCompleteAck: '我已了解:这会丢掉第一方全部提示词',
|
|
59
|
+
completeDrops: '本次会丢弃以下段(共 {n} 个,{chars} 字符):',
|
|
60
|
+
completeDropsMore: '…以及另外 {n} 个段',
|
|
61
|
+
completeDropsUnknown: '该对话还没有装配过提示词,所以现在无法列出会被丢弃的段。发一条消息后再打开这里,就能看到真实清单。',
|
|
62
|
+
completeDropsPlugins: '注意:其中包含其它插件注册的段({n} 个)。丢掉它们之后,那些插件的工具会「装着但模型不知道该怎么用」。',
|
|
63
|
+
completeDropAll: '全部丢弃',
|
|
59
64
|
target: '目标段',
|
|
60
65
|
targetHint: '该对话跑过请求后,下拉框就是真实段名;手动填不存在的段名会变成新增段。',
|
|
61
66
|
body: '正文',
|
|
@@ -118,6 +123,11 @@ window.__ModuleLoader__.load({
|
|
|
118
123
|
modeCompleteHint: 'Only your text is sent. First-party guidance such as tool instructions and structured-output rules disappears, which can degrade tool use.',
|
|
119
124
|
modeCompleteRisk: 'Runtime context (working directory, sandbox, approval policy) is still sent as a user-side snapshot.',
|
|
120
125
|
modeCompleteAck: 'I understand this drops every first-party prompt.',
|
|
126
|
+
completeDrops: 'This will drop these sections ({n} of them, {chars} characters):',
|
|
127
|
+
completeDropsMore: '…and {n} more section(s)',
|
|
128
|
+
completeDropsUnknown: 'This conversation has not assembled a prompt yet, so the sections that would be dropped cannot be listed. Send a message, then reopen this panel to see the real list.',
|
|
129
|
+
completeDropsPlugins: 'Note: {n} of them are registered by other plugins. Dropping those leaves their tools installed but unexplained, so the model will not know how to call them.',
|
|
130
|
+
completeDropAll: 'Drop all',
|
|
121
131
|
target: 'Target section',
|
|
122
132
|
targetHint: 'After this conversation has run a request, the list holds real section names.',
|
|
123
133
|
body: 'Body',
|
|
@@ -580,6 +590,35 @@ window.__ModuleLoader__.load({
|
|
|
580
590
|
const disabled = blocked.off || blocked.noService || blocked.noAgents || busy
|
|
581
591
|
const completeOk = !blocked.complete && (mode !== 'complete' || ack)
|
|
582
592
|
|
|
593
|
+
/**
|
|
594
|
+
* 「完全替换」会丢掉的段:清单里除了 studio 自己那条以外的全部。
|
|
595
|
+
*
|
|
596
|
+
* 之所以算得出来而不只是警告:面板本来就持有真实装配清单(sections),
|
|
597
|
+
* 所以「你会丢掉什么」不是修辞,是这一屏就能列出来的事实。之前只有一个
|
|
598
|
+
* 通用勾选框,用户点下去并不知道自己损失的是 3 段还是 20 段,更不知道
|
|
599
|
+
* 里面有没有别的插件注册的段 —— 那些插件会「装着但模型不知道怎么用」。
|
|
600
|
+
*
|
|
601
|
+
* sections 为 null 表示这个对话还没装配过(冷会话),此时如实说明无法列举,
|
|
602
|
+
* 而不是编一个数字出来。
|
|
603
|
+
*/
|
|
604
|
+
const droppedSections = (() => {
|
|
605
|
+
if (mode !== 'complete' || !Array.isArray(sections)) return null
|
|
606
|
+
// 自己注册的段不算「丢掉的第一方内容」,它正是用户要保留的那一段。
|
|
607
|
+
const own = new Set(['studio:complete', 'studio:append'])
|
|
608
|
+
const kept = sections.filter((row) => own.has(row.name))
|
|
609
|
+
const dropped = sections.filter((row) => !own.has(row.name))
|
|
610
|
+
const chars = dropped.reduce((sum, row) => sum + (typeof row.chars === 'number' ? row.chars : 0), 0)
|
|
611
|
+
/**
|
|
612
|
+
* 第三方插件注册的段。第一方段的命名是 `harness:` / `tool:` / `deployment:` /
|
|
613
|
+
* `app:` / `context:` / `plan:` / `ui:` / `mcp-` 这些前缀;插件习惯用
|
|
614
|
+
* `plugin:` 前缀,或 `<包名>:<段名>` 的形状。按前缀判定是启发式,但足够
|
|
615
|
+
* 把「你自己的插件会哑掉」这件事点到名,判错也不会误导成相反的方向。
|
|
616
|
+
*/
|
|
617
|
+
const FIRST_PARTY = /^(harness:|tool:|deployment:|app:|context:|plan:|ui:|mcp-)/
|
|
618
|
+
const plugins = dropped.filter((row) => !FIRST_PARTY.test(String(row.name ?? '')))
|
|
619
|
+
return { dropped, chars, plugins, kept }
|
|
620
|
+
})()
|
|
621
|
+
|
|
583
622
|
const onSave = async () => {
|
|
584
623
|
if (text.trim() === '' && enabled) {
|
|
585
624
|
setNotice({ kind: 'error', text: t('emptyText') })
|
|
@@ -818,6 +857,54 @@ window.__ModuleLoader__.load({
|
|
|
818
857
|
'div',
|
|
819
858
|
{ key: 'risk', style: { display: 'flex', flexDirection: 'column', gap: 8 } },
|
|
820
859
|
h('div', { 'data-sps': 'warn' }, t('modeCompleteRisk')),
|
|
860
|
+
|
|
861
|
+
// 会丢掉哪些段:清单可读时逐条列出,读不到时如实说无法列举。
|
|
862
|
+
blocked.complete
|
|
863
|
+
? null
|
|
864
|
+
: h(
|
|
865
|
+
'div',
|
|
866
|
+
{ 'data-sps': 'drops', style: { display: 'flex', flexDirection: 'column', gap: 4 } },
|
|
867
|
+
droppedSections === null
|
|
868
|
+
? h('div', { 'data-sps': 'muted' }, t('completeDropsUnknown'))
|
|
869
|
+
: h(
|
|
870
|
+
'div',
|
|
871
|
+
null,
|
|
872
|
+
h(
|
|
873
|
+
'div',
|
|
874
|
+
{ 'data-sps': 'warn' },
|
|
875
|
+
t('completeDrops')
|
|
876
|
+
.replace('{n}', String(droppedSections.dropped.length))
|
|
877
|
+
.replace('{chars}', String(droppedSections.chars)),
|
|
878
|
+
),
|
|
879
|
+
h(
|
|
880
|
+
'ul',
|
|
881
|
+
{ 'data-sps': 'droplist', style: { margin: '4px 0 0', paddingLeft: 18, maxHeight: 140, overflowY: 'auto' } },
|
|
882
|
+
droppedSections.dropped.slice(0, 24).map((row) =>
|
|
883
|
+
h(
|
|
884
|
+
'li',
|
|
885
|
+
{ key: row.name, 'data-sps': 'dropitem' },
|
|
886
|
+
`${row.name} · ${row.chars}`,
|
|
887
|
+
),
|
|
888
|
+
),
|
|
889
|
+
droppedSections.dropped.length > 24
|
|
890
|
+
? h(
|
|
891
|
+
'li',
|
|
892
|
+
{ key: '__more', 'data-sps': 'dropmore' },
|
|
893
|
+
t('completeDropsMore').replace('{n}', String(droppedSections.dropped.length - 24)),
|
|
894
|
+
)
|
|
895
|
+
: null,
|
|
896
|
+
),
|
|
897
|
+
// 第三方插件的段被丢掉,是「装了却用不上」的来源,单独点名。
|
|
898
|
+
droppedSections.plugins.length > 0
|
|
899
|
+
? h(
|
|
900
|
+
'div',
|
|
901
|
+
{ 'data-sps': 'error', style: { marginTop: 4 } },
|
|
902
|
+
t('completeDropsPlugins').replace('{n}', String(droppedSections.plugins.length)),
|
|
903
|
+
)
|
|
904
|
+
: null,
|
|
905
|
+
),
|
|
906
|
+
),
|
|
907
|
+
|
|
821
908
|
blocked.complete
|
|
822
909
|
? h('div', { 'data-sps': 'error' }, t('completeBlocked'))
|
|
823
910
|
: h(
|
package/package.json
CHANGED
|
@@ -1,61 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@user-mrz/dsh-system-prompt-studio",
|
|
3
|
-
"displayName": "System prompt studio",
|
|
4
|
-
"description": "Per-conversation system prompt control for DeepSeek Harness: append a section, shadow-replace one named section, or replace the whole prompt. Applies on the next model request, persists per session, and inherits along fork lineage.",
|
|
5
|
-
"version": "0.
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "lib/index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": "./lib/index.js",
|
|
10
|
-
"./client": "./lib/client.js",
|
|
11
|
-
"./package.json": "./package.json",
|
|
12
|
-
"./icon": "./icon.svg",
|
|
13
|
-
"./locale/*.json": "./locale/*.json"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"lib",
|
|
17
|
-
"locale",
|
|
18
|
-
"scripts",
|
|
19
|
-
"cordis.patch.yml",
|
|
20
|
-
"icon.svg",
|
|
21
|
-
"README.md",
|
|
22
|
-
"CHANGELOG.md",
|
|
23
|
-
"LICENSE"
|
|
24
|
-
],
|
|
25
|
-
"dsh": {
|
|
26
|
-
"engines": {
|
|
27
|
-
"dsh": ">=0.2.2-0 <0.3.0-0"
|
|
28
|
-
},
|
|
29
|
-
"bundle": {
|
|
30
|
-
"patch": "./cordis.patch.yml"
|
|
31
|
-
},
|
|
32
|
-
"client": {
|
|
33
|
-
"platform": "web",
|
|
34
|
-
"inject": []
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"prepare": "node scripts/verify-entry.mjs",
|
|
39
|
-
"check": "node --check lib/index.js && node --check lib/client.js && node test/host-check.mjs && node test/client-check.mjs"
|
|
40
|
-
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"dsh
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@user-mrz/dsh-system-prompt-studio",
|
|
3
|
+
"displayName": "System prompt studio",
|
|
4
|
+
"description": "Per-conversation system prompt control for DeepSeek Harness: append a section, shadow-replace one named section, or replace the whole prompt. Applies on the next model request, persists per session, and inherits along fork lineage.",
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./lib/index.js",
|
|
10
|
+
"./client": "./lib/client.js",
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
"./icon": "./icon.svg",
|
|
13
|
+
"./locale/*.json": "./locale/*.json"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"locale",
|
|
18
|
+
"scripts",
|
|
19
|
+
"cordis.patch.yml",
|
|
20
|
+
"icon.svg",
|
|
21
|
+
"README.md",
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"dsh": {
|
|
26
|
+
"engines": {
|
|
27
|
+
"dsh": ">=0.2.2-0 <0.3.0-0"
|
|
28
|
+
},
|
|
29
|
+
"bundle": {
|
|
30
|
+
"patch": "./cordis.patch.yml"
|
|
31
|
+
},
|
|
32
|
+
"client": {
|
|
33
|
+
"platform": "web",
|
|
34
|
+
"inject": []
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"prepare": "node scripts/verify-entry.mjs",
|
|
39
|
+
"check": "node --check lib/index.js && node --check lib/client.js && node test/host-check.mjs && node test/client-check.mjs"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"dsh",
|
|
43
|
+
"dsh-plugin",
|
|
44
|
+
"dsh-plugins",
|
|
45
|
+
"deepseek",
|
|
46
|
+
"deepseek-harness",
|
|
47
|
+
"dsh-desktop",
|
|
48
|
+
"system-prompt",
|
|
49
|
+
"system-prompt-override",
|
|
50
|
+
"prompt-engineering",
|
|
51
|
+
"prompt-management",
|
|
52
|
+
"prompt-override",
|
|
53
|
+
"persona"
|
|
54
|
+
],
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"registry": "https://registry.npmjs.org"
|
|
58
|
+
},
|
|
59
|
+
"author": "user-Mrz",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/user-Mrz/dsh-system-prompt-studio.git"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/user-Mrz/dsh-system-prompt-studio#readme",
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/user-Mrz/dsh-system-prompt-studio/issues"
|
|
68
|
+
}
|
|
69
|
+
}
|