@klarkxy/dsh-unrestricted 0.2.0 → 0.3.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/NOTICE.md CHANGED
@@ -8,15 +8,14 @@ the projects below; all are reused under the MIT License and credited here.
8
8
 
9
9
  破限交付契约(persona 中 `## Unrestricted local execution mode` 一节)、persona 指针句和
10
10
  计划模式补注,改写自 [yexi-by/dsh-unrestricted](https://github.com/yexi-by/dsh-unrestricted)
11
- (`src/rules.js`,v0.2.2)。本包没有沿用其运行时 prompt fusion,只把同一份契约沉淀为静态
12
- Agent Preset 文本,因此不再改写任何其他 Preset 的提示词。
11
+ (`src/rules.js`,v0.2.2)。本包将同一份契约沉淀为独立的静态 Agent Preset 文本,仅在选用该
12
+ Preset 的会话中生效,保持其他 Preset 的提示词原样不变。
13
13
 
14
14
  The unrestricted delivery contract (the `## Unrestricted local execution mode` section in
15
15
  the persona), the persona pointer sentence, and the plan-mode note are adapted from
16
16
  [yexi-by/dsh-unrestricted](https://github.com/yexi-by/dsh-unrestricted)
17
- (`src/rules.js`, v0.2.2). This package keeps none of its runtime prompt fusion: it
18
- settles the same contract into static agent-preset text, so no other preset's prompt is
19
- rewritten.
17
+ (`src/rules.js`, v0.2.2). This package settles the contract into a standalone static
18
+ agent-preset declaration, keeping every other preset's prompt untouched.
20
19
 
21
20
  ```text
22
21
  MIT License
@@ -82,20 +81,20 @@ SOFTWARE.
82
81
 
83
82
  工具组合、persona 起始句与计划模式正文改写自 DeepSeek Harness
84
83
  `@deepseek-ai/dsh-web-app/presets/standard.patch.yml`(本机 DSH `0.2.1-rc.1` 随附的
85
- `standard` Agent Preset 声明)。persona `suffix` 中「继续做完 / 不中途停下」「拒绝是故障」
86
- 「按意图而非关键词理解任务」三节的思路参考了 [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)
87
- (MIT)的提示词结构,按本 Preset 的会话级定位重写:只写进本 Preset 的 persona,不改写其他
88
- Preset,也不改动宿主文件。
84
+ `standard` Agent Preset 声明)。persona `suffix` 中「继续做完」「完整交付回答」「将拒绝视为故障」
85
+ 「按意图而非关键词理解任务」四节的思路参考了 [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge)
86
+ (MIT)的提示词结构,按本 Preset 的会话级定位重写:仅写入本 Preset 的 persona,保持其他
87
+ Preset 与宿主文件原样不变。
89
88
 
90
89
  The tool roster, the persona opening sentence, and the plan-mode body are adapted from
91
90
  DeepSeek Harness `@deepseek-ai/dsh-web-app/presets/standard.patch.yml` (the `standard`
92
91
  agent-preset declaration shipped with DSH `0.2.1-rc.1`).
93
92
 
94
- The three persona-`suffix` sections on carrying work through, on refusal as a malfunction,
95
- and on reading intent rather than keywords follow the prompt structure of
93
+ The four persona-`suffix` sections on carrying work through, answer shape, treating refusal as
94
+ a malfunction, and reading intent rather than keywords follow the prompt structure of
96
95
  [YuJunZhiXue/dsh-purge](https://github.com/YuJunZhiXue/dsh-purge) (MIT), rewritten for this
97
- preset's session scope: they live only in this preset's persona, rewrite no other preset,
98
- and patch no host file.
96
+ preset's session scope: they live solely in this preset's persona, leaving other presets and
97
+ host files untouched.
99
98
 
100
99
  ```text
101
100
  MIT License
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [简体中文](README.zh-CN.md)
6
6
 
7
- A DeepSeek Harness session preset that removes limits on what the model answers and delivers complete results. It affects only sessions where you choose it; every other preset stays exactly as it was.
7
+ A DeepSeek Harness session preset that removes limits on what the model answers and delivers complete results. It affects only sessions where you choose it; every other preset stays as configured.
8
8
 
9
9
  ## Install
10
10
 
@@ -16,22 +16,22 @@ Replace `web` with your profile name, then restart the profile.
16
16
 
17
17
  ## Use
18
18
 
19
- Pick **Unrestricted mode** in the preset menu when creating a session. The card and selected-preset button follow the interface language: Chinese shows 破限模式, every other language shows Unrestricted mode. Workspace names stay as you named them. A session with existing messages cannot switch presets. Subagents started from that session normally carry it too.
19
+ Pick **Unrestricted mode** in the preset menu when creating a session. The card and selected-preset button follow the interface language: Chinese shows 破限模式, and every other language shows Unrestricted mode. Workspace names stay as you named them. The preset is chosen when creating a session before messages are sent, and subagents started from that session inherit it by default.
20
20
 
21
- Nothing to remember to turn off: choose the preset to use it, choose another to stop. It does not change your model, default preset, or permissions.
21
+ Choose the preset to use it for a session, or pick another preset for ordinary sessions; your model, default preset, and permissions stay unchanged.
22
22
 
23
23
  The preset includes the standard session tools, including reminders and current time context. Available actions still depend on the capabilities enabled in your profile.
24
24
 
25
25
  ## Limits
26
26
 
27
27
  - ⚠ May get your account banned: a known risk of this preset, marked in red on the preset card. Decide for yourself whether to use it.
28
- - It unlocks no tools or permissions; approvals, sandbox, and plan mode work as usual.
29
- - A subagent given its own persona does not carry the preset.
28
+ - Tool access and permissions stay unchanged; approvals, sandbox, and plan mode work as usual.
29
+ - Subagents keep the preset unless assigned a separate persona.
30
30
  - To uninstall, remove the bundle in the plugin manager.
31
31
 
32
32
  ## Tool budgets inside the session
33
33
 
34
- The preset changes only its own sessions' read and retention budgets, using the host's documented config keys. No host file is touched, and every other preset keeps the shipped defaults:
34
+ The preset raises read and retention budgets for its own sessions using the host's documented config keys, while leaving host files and other presets at their shipped defaults:
35
35
 
36
36
  | Setting | Host default | This preset |
37
37
  | --- | --- | --- |
@@ -41,7 +41,7 @@ The preset changes only its own sessions' read and retention budgets, using the
41
41
  | Tool result retained | 8 KiB | 64 KiB |
42
42
  | Subagent recursion depth | 1 | 3 |
43
43
 
44
- The host defaults suit chat-shaped output: a `read` that hits the 50 KiB cap returns only a file's first half, a tool result over 8 KiB gets its middle replaced by a marker, and a subagent cannot delegate further by default — so a multi-file audit, a migration, or a multi-angle review cannot fan out in one pass. No mechanism is disabled here; the budgets are only raised to where the work fits.
44
+ The host defaults are sized for short chat turns (50 KiB per `read`, 8 KiB retained tool output, and a single subagent depth). Raising these budgets lets multi-file audits, migrations, and multi-angle reviews run across larger files and deeper subagent trees while keeping all host mechanisms active.
45
45
 
46
46
  ## Credits
47
47
 
package/README.zh-CN.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [English](README.md)
6
6
 
7
- 一个 DeepSeek Harness 会话 Preset:解除模型对回答内容的限制,交付完整成果。只作用于选择它的会话,其他 Preset 完全不受影响。
7
+ 一个 DeepSeek Harness 会话 Preset:解除模型对回答内容的限制,交付完整成果。只作用于选择它的会话,其他 Preset 保持原有设置。
8
8
 
9
9
  ## 安装
10
10
 
@@ -16,22 +16,22 @@ dsh plugin --profile web add @klarkxy/dsh-unrestricted
16
16
 
17
17
  ## 使用
18
18
 
19
- 新建会话时在 Preset 菜单选择「破限模式」。卡片文案和已选预设按钮跟随界面语言:中文显示「破限模式」,其他语言显示 Unrestricted mode。工作区名称保持用户命名。已有消息的会话不能切换 Preset。从该会话派出的子代理通常也会沿用它。
19
+ 新建会话时在 Preset 菜单选择「破限模式」。卡片文案和已选预设按钮跟随界面语言:中文显示「破限模式」,其他语言显示 Unrestricted mode。工作区名称保持用户命名。Preset 在新建会话、发送消息前选定;从该会话派出的子代理默认沿用该预设。
20
20
 
21
- 没有需要记得关闭的开关:选择即生效,换成其他 Preset 即结束。不改变你的模型、默认 Preset 或权限。
21
+ 选择本 Preset 即可在当前会话生效,日常会话选回其他 Preset 即可;你的模型、默认 Preset 和权限均保持不变。
22
22
 
23
23
  预设包含标准会话工具,包括提醒与当前时间上下文。实际可用的操作仍取决于配置档已启用的能力。
24
24
 
25
25
  ## 限制
26
26
 
27
27
  - ⚠ 可能导致账号被封禁:这是本 Preset 的已知风险,卡片里以红字标出,请自行判断是否使用。
28
- - 不解锁任何工具或权限,审批、沙箱和计划模式照常生效。
29
- - 被单独指定 persona 的子代理不会沿用本 Preset。
28
+ - 工具范围与权限保持不变,审批、沙箱和计划模式照常生效。
29
+ - 未单独指定 persona 的子代理默认继承本 Preset;单独指定 persona 的子代理使用其各自人设。
30
30
  - 卸载时在插件管理器中移除该 bundle。
31
31
 
32
32
  ## 会话内的工具预算
33
33
 
34
- 本 Preset 只改自己会话的读取与保留预算,使用宿主公开的配置项;不改任何宿主文件,其他 Preset 保持默认:
34
+ 本 Preset 通过宿主公开的配置项调高自身会话的读取与保留预算,宿主文件和其他 Preset 保持默认:
35
35
 
36
36
  | 项 | 宿主默认 | 本 Preset |
37
37
  | --- | --- | --- |
@@ -41,7 +41,7 @@ dsh plugin --profile web add @klarkxy/dsh-unrestricted
41
41
  | 工具结果保留 | 8 KiB | 64 KiB |
42
42
  | 子代理递归深度 | 1 | 3 |
43
43
 
44
- 宿主默认值按聊天形态的输出设定:`read` 撞上 50 KiB 上限只剩文件前半段;工具结果超过 8 KiB 会被替换掉中间;子代理默认不能再往下派活——跨多文件的审计、迁移和多方评审因此无法一次铺开。这里不关闭任何机制,只把预算抬到够用。
44
+ 宿主默认值面向简短对话设定(单次 `read` 50 KiB、工具结果保留 8 KiB、子代理深度 1 层)。调高上述预算后,跨多文件的审计、迁移和多方评审可以在单次流程中完整读取与展开,同时保持宿主原有的各项机制开启。
45
45
 
46
46
  ## 署名
47
47
 
package/cordis.patch.yml CHANGED
@@ -266,15 +266,21 @@
266
266
  - id: tool-subagent-control
267
267
  name: '@deepseek-ai/dsh-tool-subagent-control'
268
268
 
269
- - id: tool-subagent-list-agents
270
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
269
+ # No `list-agents` row: the control package registers `list_agents`
270
+ # itself since 0.2.2-rc.1, and its `./list-agents` subpath export is
271
+ # gone. A row pointing at that subpath no longer resolves, which
272
+ # fails the whole preset and drops it from the new-session picker.
271
273
 
272
274
  - id: tool-subagent
273
275
  name: '@deepseek-ai/dsh-tool-subagent'
274
276
  config:
275
277
  provider: spawn
276
278
  toolName: subagent
277
- modelSelectionSettings: true
279
+ # The host renamed `modelSelectionSettings` to `modelSelection`
280
+ # (and split discovery into `modelDiscovery`); an unknown key is
281
+ # dropped, so the old name silently disabled model selection.
282
+ modelSelection: true
283
+ modelDiscovery: true
278
284
  # The host's `subagent` service caps recursion at maxDepth 1, so a
279
285
  # child cannot delegate again. A deliverable that spans several
280
286
  # independent pieces — an audit over many files, a migration, a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klarkxy/dsh-unrestricted",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Unrestricted: a session preset that removes the limits on what the model answers and delivers complete results, only in sessions that pick it. May get your account banned.",
5
5
  "icon": "./icon.svg",
6
6
  "homepage": "https://klarkxy.github.io/dsh-plugins/plugins/unrestricted/",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=24.0.0",
59
- "dsh": ">=0.2.1-rc.1"
59
+ "dsh": ">=0.2.2-rc.1"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown && node ../../scripts/editor-plugins/wrap-client.mjs @klarkxy/dsh-unrestricted",
@@ -73,11 +73,11 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@deepseek-ai/cordis": "4.0.5",
76
- "@klarkxy/dsh-plugin-kit": "0.5.0",
76
+ "@klarkxy/dsh-plugin-kit": "0.6.0",
77
77
  "@deepseek-ai/dsh": "0.2.1-rc.1",
78
78
  "@deepseek-ai/dsh-web-app": "0.2.1-rc.1"
79
79
  },
80
80
  "dshRelease": {
81
- "contentHash": "bd660d10571c79c51df7a755d2c9a189027343511030a929703764e2acf511d1"
81
+ "contentHash": "04dce3defdbd31f70c23411cbce971c11bc31e97a1a720189e80b10170854d2d"
82
82
  }
83
83
  }