@user-mrz/dsh-system-prompt-studio 0.1.5 → 0.1.7
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 +27 -1
- package/lib/client.js +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,30 @@ 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.7] — 2026-11-10
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **The plugin prevented DSH from starting.** Renaming the package to a scoped name left the client
|
|
20
|
+
bundle registering itself under the old short id. `client-modules` keys its factory table by
|
|
21
|
+
`registration.id`, while the host dispatches the same bundle by package name, so the two ids made it
|
|
22
|
+
register twice and the renderer threw `duplicate factory registration for "dsh-system-prompt-studio"`.
|
|
23
|
+
DSH showed "无法使用" and refused to boot. The id is now the package name.
|
|
24
|
+
|
|
25
|
+
This is the third distinct way the rename broke something, and each one only surfaced at real startup:
|
|
26
|
+
the profile `bundles` entry, the `cordis.patch.yml` `name`, and now the client id. A CI step now
|
|
27
|
+
asserts that the manifest name, the patch `name`, and the client `id` are the same string, so the
|
|
28
|
+
next rename fails in CI instead of on someone's machine.
|
|
29
|
+
|
|
30
|
+
## [0.1.6] — 2026-11-10
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- The new "published tarball is installable" CI step failed on both Node versions with nothing but
|
|
35
|
+
`exit code 254`. Cause: it packed into `/tmp/pack`, which does not exist, and redirected
|
|
36
|
+
`npm pack`'s output to `/dev/null`, so the real error was discarded. A check written to prevent
|
|
37
|
+
silent failures failed silently on its first run. It now uses `mktemp -d` and lets `npm pack` print.
|
|
38
|
+
|
|
15
39
|
## [0.1.5] — 2026-11-10
|
|
16
40
|
|
|
17
41
|
### Changed
|
|
@@ -103,7 +127,9 @@ Nothing yet.
|
|
|
103
127
|
- Read-only assembly observer listing the real section names, order and size.
|
|
104
128
|
- Loopback-only HTTP route for the panel; forged `Host` headers are refused.
|
|
105
129
|
|
|
106
|
-
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.
|
|
130
|
+
[Unreleased]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.7...HEAD
|
|
131
|
+
[0.1.7]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.6...v0.1.7
|
|
132
|
+
[0.1.6]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.5...v0.1.6
|
|
107
133
|
[0.1.5]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.4...v0.1.5
|
|
108
134
|
[0.1.4]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.3...v0.1.4
|
|
109
135
|
[0.1.3]: https://github.com/user-Mrz/dsh-system-prompt-studio/compare/v0.1.2...v0.1.3
|
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.7",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"exports": {
|