@user-mrz/dsh-system-prompt-studio 0.1.5 → 0.1.8
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 +43 -1
- package/README.md +4 -4
- package/lib/client.js +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,45 @@ integration still targets the same DSH shapes, a major bump means it may not.
|
|
|
12
12
|
|
|
13
13
|
Nothing yet.
|
|
14
14
|
|
|
15
|
+
## [0.1.8] — 2026-11-10
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- The README shipped inside the published 0.1.7 tarball still pinned 0.1.4 in its install examples.
|
|
20
|
+
0.1.7 went out before that documentation fix landed, so the tarball carries the stale text even
|
|
21
|
+
though the repository no longer does. This release republishes the same code with the corrected
|
|
22
|
+
README.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- A CI step fails when any version pinned in the README install examples (`#v1.2.3`, `@1.2.3`) differs
|
|
27
|
+
from `package.json`. Nothing went red when those drifted, and a reader would copy a command
|
|
28
|
+
installing a version two releases behind the one being described.
|
|
29
|
+
|
|
30
|
+
## [0.1.7] — 2026-11-10
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **The plugin prevented DSH from starting.** Renaming the package to a scoped name left the client
|
|
35
|
+
bundle registering itself under the old short id. `client-modules` keys its factory table by
|
|
36
|
+
`registration.id`, while the host dispatches the same bundle by package name, so the two ids made it
|
|
37
|
+
register twice and the renderer threw `duplicate factory registration for "dsh-system-prompt-studio"`.
|
|
38
|
+
DSH showed "无法使用" and refused to boot. The id is now the package name.
|
|
39
|
+
|
|
40
|
+
This is the third distinct way the rename broke something, and each one only surfaced at real startup:
|
|
41
|
+
the profile `bundles` entry, the `cordis.patch.yml` `name`, and now the client id. A CI step now
|
|
42
|
+
asserts that the manifest name, the patch `name`, and the client `id` are the same string, so the
|
|
43
|
+
next rename fails in CI instead of on someone's machine.
|
|
44
|
+
|
|
45
|
+
## [0.1.6] — 2026-11-10
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- The new "published tarball is installable" CI step failed on both Node versions with nothing but
|
|
50
|
+
`exit code 254`. Cause: it packed into `/tmp/pack`, which does not exist, and redirected
|
|
51
|
+
`npm pack`'s output to `/dev/null`, so the real error was discarded. A check written to prevent
|
|
52
|
+
silent failures failed silently on its first run. It now uses `mktemp -d` and lets `npm pack` print.
|
|
53
|
+
|
|
15
54
|
## [0.1.5] — 2026-11-10
|
|
16
55
|
|
|
17
56
|
### Changed
|
|
@@ -103,7 +142,10 @@ Nothing yet.
|
|
|
103
142
|
- Read-only assembly observer listing the real section names, order and size.
|
|
104
143
|
- Loopback-only HTTP route for the panel; forged `Host` headers are refused.
|
|
105
144
|
|
|
106
|
-
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.
|
|
145
|
+
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.8...HEAD
|
|
146
|
+
[0.1.8]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.7...v0.1.8
|
|
147
|
+
[0.1.7]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.6...v0.1.7
|
|
148
|
+
[0.1.6]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.5...v0.1.6
|
|
107
149
|
[0.1.5]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.4...v0.1.5
|
|
108
150
|
[0.1.4]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.3...v0.1.4
|
|
109
151
|
[0.1.3]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.2...v0.1.3
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio
|
|
|
61
61
|
From GitHub, which tracks the default branch and therefore needs a ref if you want a fixed version:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.1.
|
|
64
|
+
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.1.8
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
Replace `<profile>` with your profile name — for the Web build that is usually `web`.
|
|
@@ -70,7 +70,7 @@ Replace `<profile>` with your profile name — for the Web build that is usually
|
|
|
70
70
|
changes what you install next time:
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.1.
|
|
73
|
+
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.1.8
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
<details>
|
|
@@ -328,13 +328,13 @@ dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio
|
|
|
328
328
|
或从 GitHub(跟随默认分支,建议锁 tag):
|
|
329
329
|
|
|
330
330
|
```bash
|
|
331
|
-
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.1.
|
|
331
|
+
dsh plugin --profile <profile> add github:user-Mrz/dsh-system-prompt-studio#v0.1.8
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
锁定版本,保证装到的是一份确定的代码:
|
|
335
335
|
|
|
336
336
|
```bash
|
|
337
|
-
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.1.
|
|
337
|
+
dsh plugin --profile <profile> add @user-mrz/dsh-system-prompt-studio@0.1.8
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
`prepare` 脚本只校验入口文件存在,不做编译。若被 pnpm 拦下,把 `pnpm-workspace.yaml` 里
|
package/lib/client.js
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
// `window.__ModuleLoader__` 下求值。factory 拿到一个 `require`,返回带
|
|
5
5
|
// `inject` 与 `apply` 的对象。
|
|
6
6
|
//
|
|
7
|
+
// ⚠️ 下面 `load({ id })` 里的 id **必须等于 package.json 的 name**。
|
|
8
|
+
// client-modules 的 register() 用 `registration.id` 作为去重键
|
|
9
|
+
// (`stripClientSuffix(registration.id)`),而宿主按包名派发同一份 bundle。
|
|
10
|
+
// 两者不一致时,同一个 bundle 会以两个 id 注册,运行期直接抛
|
|
11
|
+
// `duplicate factory registration for "…"`,整个 web boot 失败。
|
|
12
|
+
// 包名从 `dsh-system-prompt-studio` 改成 `@user-mrz/dsh-system-prompt-studio`
|
|
13
|
+
// 时踩过这个坑:宿主按 scoped 名派发,这里仍写短名,DSH 起不来。
|
|
14
|
+
//
|
|
7
15
|
// 三个注册点:
|
|
8
16
|
// 1. `conversation.session.header.actions` —— 标题栏入口按钮(已发过消息的对话);
|
|
9
17
|
// 2. `conversation.hero.options` —— 新空会话欢迎区的入口。空会话是官方的
|
|
@@ -16,7 +24,7 @@
|
|
|
16
24
|
// Web 与桌面壳都会走同源转发)。
|
|
17
25
|
|
|
18
26
|
window.__ModuleLoader__.load({
|
|
19
|
-
id: 'dsh-system-prompt-studio',
|
|
27
|
+
id: '@user-mrz/dsh-system-prompt-studio',
|
|
20
28
|
factory: (require) => {
|
|
21
29
|
const React = require('react')
|
|
22
30
|
const ReactDOM = require('react-dom')
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@user-mrz/dsh-system-prompt-studio",
|
|
3
3
|
"displayName": "System prompt studio",
|
|
4
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.1.
|
|
5
|
+
"version": "0.1.8",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"exports": {
|