@sparkelf/dsh-plugin-subagent-settings 0.1.0-rc.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
+ # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
+ # after editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/plus/subagent-settings/README.md
5
+ README.md: 78d9fe4d7b2fdd60260e8f5a4edf047e7a375d83
6
+ README.zh.md: e8ce8f9f092e6fc957f166a62ae88ff8f6ceaf51
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ ---
2
+ description: "Settings-backed continuous and one-shot subagent modes with complete Host, startup, and Client ownership."
3
+ kind: "package-reference"
4
+ ---
5
+
6
+ # @sparkelf/dsh-plugin-subagent-settings
7
+
8
+ English | [中文](README.zh.md)
9
+
10
+ ## Summary
11
+
12
+ This complete Host and Client plugin owns the two settings-backed delegation modes in Plus. Its Host root registers model-facing delegation, `/startup` owns the `subagent` and `subagent-fork` Settings namespaces, and the Client presents both modes in one Subagents section. Fresh settings disable both modes with zero nesting; saved changes affect later child starts without rebuilding the Host.
13
+
14
+ ## Table of Contents
15
+
16
+ - [Use this package](#use-this-package)
17
+ - [Model Experience](#model-experience)
18
+ - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
19
+ - [Dev Note](#dev-note)
20
+
21
+ -----
22
+
23
+ <a id="use-this-package"></a>
24
+ ## Use this package
25
+
26
+ The Plus profile mounts two startup rows and redirects the built-in continuous and one-shot preset rows to this package. Continuous mode creates a fresh continuable child; one-shot mode forks completed parent context for one task. Each namespace independently controls enablement, model override, output-token cap, persona, tool visibility, and nesting depth.
27
+
28
+ -----
29
+
30
+ <a id="model-experience"></a>
31
+ ## Model Experience
32
+
33
+ ### Settings-backed delegation tools
34
+
35
+ #### What the model sees
36
+
37
+ A disabled mode contributes no schema or prompt section. Continuous mode adds the `subagent` tool and continuable guidance; one-shot mode adds `subagent_fork`. Saved settings affect later children and never rewrite an existing child.
38
+
39
+ #### Token effect
40
+
41
+ Enabling a mode adds its stable tool schema and guidance. Child model, persona, and tool choices affect only child requests; tool calls and results follow normal Session history costs.
42
+
43
+ #### KV Cache effect
44
+
45
+ Toggling a mode changes the later-request tool prefix. One-shot mode reuses inherited parent history until child-specific prompt and tools are appended.
46
+
47
+ ## Known Limitations and Deferred Work
48
+
49
+ <a id="known-limitations-and-deferred-work"></a>
50
+
51
+ - **Temporary preset redirection patch**: official preset documents and the legacy model-selection card expose no runtime replacement API, so a retireable data-only patch redirects two built-in rows and removes the legacy Plus registration.
52
+
53
+ <a id="dev-note"></a>
54
+ ### Dev Note
55
+
56
+ <details>
57
+ <summary>Working context for maintainers, click to expand</summary>
58
+
59
+ This Dev Note is working context for maintainers; shipped behavior, limits, and rationale live in the sections above, the package code, and the linked Agent Note.
60
+
61
+ - Host behavior lives under `src`, and the Settings UI lives under `src/client`. The [distribution Agent Note](../../../.agents/notes/proposed/architecture/2026-08-29-ranged-plus-patchset-distribution.md) owns package and patch retirement boundaries.
62
+
63
+ </details>
package/README.zh.md ADDED
@@ -0,0 +1,63 @@
1
+ ---
2
+ description: "具有完整Host、startup及Client ownership的settings-backed continuous和one-shot subagent modes。"
3
+ kind: "package-reference"
4
+ ---
5
+
6
+ # @sparkelf/dsh-plugin-subagent-settings
7
+
8
+ [English](README.md) | 中文
9
+
10
+ ## 概述
11
+
12
+ 该完整Host及Client plugin持有Plus中的两个settings-backed delegation modes。Host root注册model-facing delegation,`/startup`持有`subagent`及`subagent-fork` Settings namespaces,Client在一个Subagents section中展示两种mode。Fresh settings会以zero nesting禁用两种mode;saved change无需rebuild Host即可影响later child starts。
13
+
14
+ ## 目录
15
+
16
+ - [使用此软件包](#use-this-package)
17
+ - [模型体验](#model-experience)
18
+ - [已知限制和延期工作](#known-limitations-and-deferred-work)
19
+ - [开发备注](#dev-note)
20
+
21
+ -----
22
+
23
+ <a id="use-this-package"></a>
24
+ ## 使用此软件包
25
+
26
+ Plus profile会mount两个startup rows,并把built-in continuous及one-shot preset rows重定向到该package。Continuous mode创建fresh continuable child;one-shot mode为一个task fork completed parent context。每个namespace独立控制enablement、model override、output-token cap、persona、tool visibility及nesting depth。
27
+
28
+ -----
29
+
30
+ <a id="model-experience"></a>
31
+ ## 模型体验
32
+
33
+ ### Settings-backed delegation tools
34
+
35
+ #### 模型看到什么
36
+
37
+ disabled mode不贡献schema或prompt section。Continuous mode增加`subagent` tool及continuable guidance;one-shot mode增加`subagent_fork`。Saved settings影响later children,不会rewrite existing child。
38
+
39
+ #### Token 影响
40
+
41
+ 启用mode会增加对应stable tool schema及guidance。Child model、persona及tool choices只影响child requests;tool calls及results遵循normal Session history costs。
42
+
43
+ #### KV Cache 影响
44
+
45
+ 切换mode会改变later-request tool prefix。One-shot mode会复用inherited parent history,直到追加child-specific prompt及tools。
46
+
47
+ ## 已知限制和延期工作
48
+
49
+ <a id="known-limitations-and-deferred-work"></a>
50
+
51
+ - **Temporary preset redirection patch**:official preset documents及legacy model-selection card没有runtime replacement API,因此retireable data-only patch会redirect两个built-in rows并移除legacy Plus registration。
52
+
53
+ <a id="dev-note"></a>
54
+ ### 开发备注
55
+
56
+ <details>
57
+ <summary>维护者工作上下文,点击展开</summary>
58
+
59
+ 该开发备注是maintainer working context;shipped behavior、limits及rationale以以上sections、package code及linked Agent Note为准。
60
+
61
+ - Host behavior位于`src`,Settings UI位于`src/client`。[Distribution Agent Note](../../../.agents/notes/proposed/architecture/2026-08-29-ranged-plus-patchset-distribution.zh.md)持有package及patch retirement boundaries。
62
+
63
+ </details>