@deepseek-ai/dsh-sdk-minimal 0.1.2-alpha.2
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 +21 -0
- package/README.i18n.yaml +6 -0
- package/README.md +105 -0
- package/README.zh.md +105 -0
- package/cordis.patch.yml +123 -0
- package/lib/index.js +1 -0
- package/lib/invariant.js +19 -0
- package/lib/types/index.d.ts +9 -0
- package/lib/types/invariant.d.ts +16 -0
- package/package.json +69 -0
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.
|
package/README.i18n.yaml
ADDED
|
@@ -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/bundle/sdk-minimal/README.md
|
|
5
|
+
README.md: cf9333cd4304f24344b79d54b4149dadf246c325
|
|
6
|
+
README.zh.md: eeda31bff9e34fd20dae0e43c5678c0e398e0649
|
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Standalone two-tool SDK profile for users who need a minimal cross-platform coding agent without the shared base bundle."
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# `@deepseek-ai/dsh-sdk-minimal`
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
Use `dsh --profile sdk-minimal` when an SDK client needs a small, explicit coding-agent runtime. The profile advertises a platform-selected persistent shell and `str_replace_editor`, persists sessions as uncompressed JSONL, and selects the model from the SDK initialization request. It supplies a complete Cordis tree and deliberately excludes `dsh-base`, Web, settings, managed credentials, telemetry, compaction, workspace instructions, skills, jobs, and subagents. Its danger-full-access policy lets the shell and editor modify any path available to the process, so use it only with an isolated workspace.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
Launch the profile directly or select it from the Python SDK. Supply an explicit `DSH_HOME`, use a disposable workspace, and provide the model credential through `DEEPSEEK_API_KEY`.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
export DSH_HOME=/absolute/path/to/example-dsh-home
|
|
32
|
+
dsh --profile sdk-minimal
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`DSH_CONTEXT_WINDOW` sets the fallback capacity for a model absent from the adapter's advisory catalog. `DSH_SYSTEM_PROMPT` replaces the default persona. The SDK initialization request is the sole model selection and overrides environment defaults.
|
|
36
|
+
|
|
37
|
+
Use `dsh plugin --profile sdk-minimal` to manage persistent external dependencies. Profile, home, and ordered `--patch` files can replace rows or insert bundles above the complete default tree. The shipped template applies patches only at startup.
|
|
38
|
+
|
|
39
|
+
The profile mounts exactly one persistent shell stack: Bash on Linux and macOS, or PowerShell on Windows. Both stacks use a 300-second timeout and one owner-scoped terminal; the other platform's rows remain disabled.
|
|
40
|
+
|
|
41
|
+
-----
|
|
42
|
+
|
|
43
|
+
<a id="understand-the-implementation"></a>
|
|
44
|
+
## Understand the implementation
|
|
45
|
+
|
|
46
|
+
<details>
|
|
47
|
+
<summary>Implementation internals — click to expand</summary>
|
|
48
|
+
|
|
49
|
+
The bundle's single insert is the complete application tree: SDK stdio startup and JSON-RPC serving, one environment-configured DeepSeek adapter, the executor-less agent spine, local subprocess and unrestricted filesystem providers, a platform-selected persistent shell PTY, the string-replace editor, and uncompressed JSONL persistence under `$DSH_HOME/sessions`. It does not inherit another bundle, so every extra row is an explicit profile change.
|
|
50
|
+
|
|
51
|
+
### Source map
|
|
52
|
+
|
|
53
|
+
| File | Role |
|
|
54
|
+
|---|---|
|
|
55
|
+
| [`cordis.patch.yml`](cordis.patch.yml) | Complete standalone profile tree and its environment-backed defaults |
|
|
56
|
+
| [`src/index.ts`](src/index.ts) | Bundle package entry |
|
|
57
|
+
| [`src/invariant.ts`](src/invariant.ts) | Invariant companion for the static composition |
|
|
58
|
+
| [`tests/sdk-minimal.spec.ts`](tests/sdk-minimal.spec.ts) | Exact composition, profile-name, and platform-selection checks |
|
|
59
|
+
|
|
60
|
+
</details>
|
|
61
|
+
|
|
62
|
+
-----
|
|
63
|
+
|
|
64
|
+
<a id="further-exploration"></a>
|
|
65
|
+
## Further Exploration
|
|
66
|
+
|
|
67
|
+
- [Python SDK example](../../../python/sdk/examples/README.md) — launches this profile from Python against an explicit Harness home.
|
|
68
|
+
- [SDK application bundle](../sdk-app/README.md) — the JSON-RPC application layer reused by full and minimal SDK profiles.
|
|
69
|
+
- [Base bundle](../base/README.md) — the full product foundation that this profile deliberately omits.
|
|
70
|
+
|
|
71
|
+
-----
|
|
72
|
+
|
|
73
|
+
<a id="model-experience"></a>
|
|
74
|
+
## Model Experience
|
|
75
|
+
|
|
76
|
+
### Minimal coding-agent composition
|
|
77
|
+
|
|
78
|
+
#### What the model sees
|
|
79
|
+
|
|
80
|
+
The system prompt is `DSH_SYSTEM_PROMPT` or `You are a helpful software engineer assistant.`. The only advertised tools are owner-scoped persistent `bash` on Linux/macOS or `pwsh` on Windows, plus `str_replace_editor`; runtime context, workspace instructions, skills, jobs controls, compaction, and Harness identity are absent.
|
|
81
|
+
|
|
82
|
+
#### Token effect
|
|
83
|
+
|
|
84
|
+
One stable persona plus the two tool schemas. Tool results and ordinary conversation history grow with the session.
|
|
85
|
+
|
|
86
|
+
#### KV Cache effect
|
|
87
|
+
|
|
88
|
+
Stable for a fixed persona, platform, provider, model, and bundle patch stack. Profile changes take effect on the next process.
|
|
89
|
+
|
|
90
|
+
## Known Limitations and Deferred Work
|
|
91
|
+
|
|
92
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
93
|
+
|
|
94
|
+
- **The composition intentionally omits shared product services** — select `dsh --profile sdk` when settings, managed credentials, policy presets, telemetry, Web tools, or the full default tool roster are required.
|
|
95
|
+
- **User patches can expand the tree and corrupt stdout** — profile customization is trusted application composition; a plugin that writes ordinary text to stdout can break JSON-RPC framing.
|
|
96
|
+
|
|
97
|
+
<a id="dev-note"></a>
|
|
98
|
+
### Dev Note
|
|
99
|
+
|
|
100
|
+
<details>
|
|
101
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
102
|
+
|
|
103
|
+
None.
|
|
104
|
+
|
|
105
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "供需要不含共享 base bundle 的极简跨平台 coding agent 的用户使用的独立双工具 SDK profile。"
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# `@deepseek-ai/dsh-sdk-minimal`
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
当 SDK 客户端需要小型、显式的 coding agent 运行时时,请使用 `dsh --profile sdk-minimal`。该 profile 只公布按平台选择的持久 shell 与 `str_replace_editor`,把会话持久化为未压缩 JSONL,并从 SDK 初始化请求选择模型。它提供完整 Cordis 配置树,并刻意排除 `dsh-base`、Web、settings、托管凭据、遥测、compaction、workspace 指令、skills、jobs 与 subagent。其 danger-full-access 策略允许 shell 与编辑器修改进程可访问的任何路径,因此只能配合隔离 workspace 使用。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用本包](#use-this-package)
|
|
17
|
+
- [理解实现](#understand-the-implementation)
|
|
18
|
+
- [进一步探索](#further-exploration)
|
|
19
|
+
- [模型体验](#model-experience)
|
|
20
|
+
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
|
21
|
+
- [开发备注](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## 使用本包
|
|
27
|
+
|
|
28
|
+
直接启动该 profile,或从 Python SDK 选择它。提供显式 `DSH_HOME`、使用一次性 workspace,并通过 `DEEPSEEK_API_KEY` 提供模型凭据。
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
export DSH_HOME=/absolute/path/to/example-dsh-home
|
|
32
|
+
dsh --profile sdk-minimal
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`DSH_CONTEXT_WINDOW` 为不在适配器建议目录中的模型设置后备容量。`DSH_SYSTEM_PROMPT` 替换默认 persona。SDK 初始化请求是唯一模型选择,并覆盖环境默认值。
|
|
36
|
+
|
|
37
|
+
使用 `dsh plugin --profile sdk-minimal` 管理持久外部依赖。Profile、home 与有序 `--patch` 文件可以在完整默认配置树上替换配置项或插入 bundle。随附模板只在启动时应用 patch。
|
|
38
|
+
|
|
39
|
+
该 profile 只挂载一套持久 shell:Linux 和 macOS 使用 Bash,Windows 使用 PowerShell。两套配置都使用 300 秒超时与一个 agent 自有终端;另一平台的配置项保持禁用。
|
|
40
|
+
|
|
41
|
+
-----
|
|
42
|
+
|
|
43
|
+
<a id="understand-the-implementation"></a>
|
|
44
|
+
## 理解实现
|
|
45
|
+
|
|
46
|
+
<details>
|
|
47
|
+
<summary>实现细节——点击展开</summary>
|
|
48
|
+
|
|
49
|
+
该 bundle 的单个 insert 就是完整应用配置树:SDK stdio 启动与 JSON-RPC 服务、一个由环境配置的 DeepSeek 适配器、无执行器 agent 主干、本地子进程与不受限文件系统提供方、按平台选择的持久 shell PTY、字符串替换编辑器,以及位于 `$DSH_HOME/sessions` 的未压缩 JSONL 持久化。它不继承其他 bundle,因此每个额外配置项都是显式 profile 变更。
|
|
50
|
+
|
|
51
|
+
### 源码地图
|
|
52
|
+
|
|
53
|
+
| 文件 | 职责 |
|
|
54
|
+
|---|---|
|
|
55
|
+
| [`cordis.patch.yml`](cordis.patch.yml) | 完整独立 profile 配置树及其环境默认值 |
|
|
56
|
+
| [`src/index.ts`](src/index.ts) | Bundle 包入口 |
|
|
57
|
+
| [`src/invariant.ts`](src/invariant.ts) | 静态组合的不变式伴生插件 |
|
|
58
|
+
| [`tests/sdk-minimal.spec.ts`](tests/sdk-minimal.spec.ts) | 精确组合、profile 名称与平台选择检查 |
|
|
59
|
+
|
|
60
|
+
</details>
|
|
61
|
+
|
|
62
|
+
-----
|
|
63
|
+
|
|
64
|
+
<a id="further-exploration"></a>
|
|
65
|
+
## 进一步探索
|
|
66
|
+
|
|
67
|
+
- [Python SDK 示例](../../../python/sdk/examples/README.zh.md)——从 Python 针对显式 Harness home 启动本 profile。
|
|
68
|
+
- [SDK 应用 bundle](../sdk-app/README.zh.md)——完整与极简 SDK profile 复用的 JSON-RPC 应用层。
|
|
69
|
+
- [Base bundle](../base/README.zh.md)——本 profile 刻意省略的完整产品基础。
|
|
70
|
+
|
|
71
|
+
-----
|
|
72
|
+
|
|
73
|
+
<a id="model-experience"></a>
|
|
74
|
+
## 模型体验
|
|
75
|
+
|
|
76
|
+
### 极简 coding agent 组合
|
|
77
|
+
|
|
78
|
+
#### 模型看到的内容
|
|
79
|
+
|
|
80
|
+
系统提示词取 `DSH_SYSTEM_PROMPT`,未设置时使用 `You are a helpful software engineer assistant.`。对外公布的工具只有 Linux/macOS 上 agent 所有的持久 `bash` 或 Windows 上的 `pwsh`,外加 `str_replace_editor`;运行时上下文、workspace 指令、skills、jobs 控制、compaction 与 Harness 身份均不存在。
|
|
81
|
+
|
|
82
|
+
#### Token 影响
|
|
83
|
+
|
|
84
|
+
一个稳定 persona 加两个工具 schema。工具结果与普通对话历史随会话增长。
|
|
85
|
+
|
|
86
|
+
#### KV Cache 影响
|
|
87
|
+
|
|
88
|
+
当 persona、平台、提供方、模型与 bundle patch 栈固定时保持稳定。Profile 变更在下一个进程生效。
|
|
89
|
+
|
|
90
|
+
## 已知限制与延期工作
|
|
91
|
+
|
|
92
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
93
|
+
|
|
94
|
+
- **该组合刻意省略共享产品服务** — 需要 settings、托管凭据、权限策略预设、遥测、Web 工具或完整默认工具清单时,请选择 `dsh --profile sdk`。
|
|
95
|
+
- **用户 patch 可以扩展配置树并破坏 stdout** — profile 自定义属于受信任的应用组合;向 stdout 写入普通文本的插件会破坏 JSON-RPC 分帧。
|
|
96
|
+
|
|
97
|
+
<a id="dev-note"></a>
|
|
98
|
+
### 开发备注
|
|
99
|
+
|
|
100
|
+
<details>
|
|
101
|
+
<summary>维护者工作上下文——点击展开</summary>
|
|
102
|
+
|
|
103
|
+
无。
|
|
104
|
+
|
|
105
|
+
</details>
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Standalone minimal SDK application. Unlike the ordinary SDK profile, this
|
|
2
|
+
# bundle does not layer over dsh-base: this insert is the complete Cordis tree.
|
|
3
|
+
# User profile, home, and invocation patches still apply above it.
|
|
4
|
+
|
|
5
|
+
- insert:
|
|
6
|
+
- id: sdk-app-startup
|
|
7
|
+
name: '@deepseek-ai/dsh-sdk-app'
|
|
8
|
+
config:
|
|
9
|
+
profile: sdk-minimal
|
|
10
|
+
|
|
11
|
+
- id: sdk-jsonrpc-server
|
|
12
|
+
name: '@deepseek-ai/dsh-sdk-jsonrpc-server'
|
|
13
|
+
inject: [sdkAppStartup, loader]
|
|
14
|
+
config:
|
|
15
|
+
maxTokensAsSuccess: false
|
|
16
|
+
|
|
17
|
+
- id: deepseek-llm-api-extensions
|
|
18
|
+
name: '@deepseek-ai/dsh-deepseek-llm-api-extensions'
|
|
19
|
+
|
|
20
|
+
- id: session-log-deepseek
|
|
21
|
+
name: '@deepseek-ai/dsh-session-log-deepseek'
|
|
22
|
+
|
|
23
|
+
- id: plugin-package-inventory-deepseek
|
|
24
|
+
name: '@deepseek-ai/dsh-plugin-package-inventory-deepseek'
|
|
25
|
+
|
|
26
|
+
- id: llm-deepseek
|
|
27
|
+
name: '@deepseek-ai/dsh-llm-deepseek'
|
|
28
|
+
config:
|
|
29
|
+
apiKeyEnv: DEEPSEEK_API_KEY
|
|
30
|
+
defaultContextWindow: !!js Number(process.env.DSH_CONTEXT_WINDOW ?? 1000000)
|
|
31
|
+
streamIdleTimeoutMs: 172800000
|
|
32
|
+
|
|
33
|
+
- id: sandbox
|
|
34
|
+
name: '@deepseek-ai/dsh-sandbox-local'
|
|
35
|
+
|
|
36
|
+
# Shared projection registry: sandbox-policy and terminal-bash fold
|
|
37
|
+
# sandbox-mode state through its units and require it as a hard injection.
|
|
38
|
+
- id: session-projection
|
|
39
|
+
name: '@deepseek-ai/dsh-session-projection'
|
|
40
|
+
|
|
41
|
+
- id: sandbox-policy
|
|
42
|
+
name: '@deepseek-ai/dsh-sandbox-policy'
|
|
43
|
+
config:
|
|
44
|
+
mode: danger-full-access
|
|
45
|
+
workspaceRoot: !!js process.cwd()
|
|
46
|
+
|
|
47
|
+
- id: subprocess
|
|
48
|
+
name: '@deepseek-ai/dsh-subprocess-local'
|
|
49
|
+
|
|
50
|
+
- id: pty
|
|
51
|
+
name: '@deepseek-ai/dsh-terminal'
|
|
52
|
+
|
|
53
|
+
- id: terminal-bash
|
|
54
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
55
|
+
disabled: !!js process.platform === 'win32'
|
|
56
|
+
config:
|
|
57
|
+
timeoutMs: 300000
|
|
58
|
+
|
|
59
|
+
- id: terminal-pwsh
|
|
60
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
61
|
+
disabled: !!js process.platform !== 'win32'
|
|
62
|
+
config:
|
|
63
|
+
shellDialect: pwsh
|
|
64
|
+
timeoutMs: 300000
|
|
65
|
+
|
|
66
|
+
# The editor uses the bare local filesystem; persistent Bash still consumes
|
|
67
|
+
# the shared danger-full-access sandbox policy above.
|
|
68
|
+
- id: fs-local
|
|
69
|
+
name: '@deepseek-ai/dsh-fs-local'
|
|
70
|
+
config:
|
|
71
|
+
cwd: !!js process.cwd()
|
|
72
|
+
|
|
73
|
+
- id: agent-spine
|
|
74
|
+
name: '@deepseek-ai/dsh-agent-spine-demo'
|
|
75
|
+
config:
|
|
76
|
+
includeHarnessIdentity: false
|
|
77
|
+
includeRuntimeContext: false
|
|
78
|
+
persona: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a helpful software engineer assistant.'
|
|
79
|
+
workspaceContext: false
|
|
80
|
+
skills:
|
|
81
|
+
enabled: false
|
|
82
|
+
toolBash: false
|
|
83
|
+
toolJobs: false
|
|
84
|
+
|
|
85
|
+
- id: persistent-bash
|
|
86
|
+
name: '@deepseek-ai/dsh-tool-bash-persistent'
|
|
87
|
+
disabled: !!js process.platform === 'win32'
|
|
88
|
+
config:
|
|
89
|
+
timeoutMs: 300000
|
|
90
|
+
description: |-
|
|
91
|
+
Run commands in a bash shell
|
|
92
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
93
|
+
* You don't have access to the internet via this tool.
|
|
94
|
+
* You do have access to a mirror of common linux and python packages via apt and pip.
|
|
95
|
+
* State is persistent across command calls and discussions with the user.
|
|
96
|
+
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
|
|
97
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
98
|
+
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
|
|
99
|
+
|
|
100
|
+
- id: persistent-pwsh
|
|
101
|
+
name: '@deepseek-ai/dsh-tool-pwsh-persistent'
|
|
102
|
+
disabled: !!js process.platform !== 'win32'
|
|
103
|
+
config:
|
|
104
|
+
timeoutMs: 300000
|
|
105
|
+
description: |-
|
|
106
|
+
Run commands in a PowerShell shell
|
|
107
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
108
|
+
* You don't have access to the internet via this tool.
|
|
109
|
+
* State is persistent across command calls and discussions with the user.
|
|
110
|
+
* Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
|
|
111
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
112
|
+
* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
|
|
113
|
+
|
|
114
|
+
- id: str-replace-editor
|
|
115
|
+
name: '@deepseek-ai/dsh-tool-str-replace-editor'
|
|
116
|
+
config:
|
|
117
|
+
maxOutputChars: 16000
|
|
118
|
+
|
|
119
|
+
- id: sessions
|
|
120
|
+
name: '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
121
|
+
config:
|
|
122
|
+
root: !!js dshHomePath('sessions')
|
|
123
|
+
compression: none
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region lib/types/invariant.js
|
|
2
|
+
/**
|
|
3
|
+
* Package-owned invariant companion for `@deepseek-ai/dsh-sdk-minimal`.
|
|
4
|
+
* @module @deepseek-ai/dsh-sdk-minimal/invariant
|
|
5
|
+
*/
|
|
6
|
+
const PACKAGE_NAME = "@deepseek-ai/dsh-sdk-minimal";
|
|
7
|
+
/** Cordis companion plugin name. */
|
|
8
|
+
const name = "sdk-minimal-bundle-invariant";
|
|
9
|
+
/** Service required before the companion can register. */
|
|
10
|
+
const inject = ["invariants"];
|
|
11
|
+
const install = () => {};
|
|
12
|
+
/**
|
|
13
|
+
* Register this package's invariant companion.
|
|
14
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
15
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
16
|
+
*/
|
|
17
|
+
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
18
|
+
//#endregion
|
|
19
|
+
export { apply, inject, name };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deepseek-ai/dsh-sdk-minimal — the standalone minimal SDK profile bundle.
|
|
3
|
+
* The package's substance is `cordis.patch.yml`, declared by the
|
|
4
|
+
* `dsh.bundle.patch` manifest field and resolved by the profile composer;
|
|
5
|
+
* this module carries no runtime interface.
|
|
6
|
+
* @module @deepseek-ai/dsh-sdk-minimal
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package-owned invariant companion for `@deepseek-ai/dsh-sdk-minimal`.
|
|
3
|
+
* @module @deepseek-ai/dsh-sdk-minimal/invariant
|
|
4
|
+
*/
|
|
5
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
+
/** Cordis companion plugin name. */
|
|
7
|
+
export declare const name = "sdk-minimal-bundle-invariant";
|
|
8
|
+
/** Service required before the companion can register. */
|
|
9
|
+
export declare const inject: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Register this package's invariant companion.
|
|
12
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
+
*/
|
|
15
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
+
//# sourceMappingURL=invariant.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepseek-ai/dsh-sdk-minimal",
|
|
3
|
+
"description": "The standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, editor, and JSONL sessions",
|
|
4
|
+
"version": "0.1.2-alpha.2",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
11
|
+
"directory": "packages/bundle/sdk-minimal"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./invariant": {
|
|
22
|
+
"types": "./lib/types/invariant.d.ts",
|
|
23
|
+
"default": "./lib/invariant.js"
|
|
24
|
+
},
|
|
25
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
26
|
+
"./src/*": "./src/*",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib/index.js",
|
|
31
|
+
"lib/invariant.js",
|
|
32
|
+
"cordis.patch.yml",
|
|
33
|
+
"lib/types/**/*.d.ts"
|
|
34
|
+
],
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"dsh": {
|
|
37
|
+
"bundle": {
|
|
38
|
+
"patch": "./cordis.patch.yml"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@deepseek-ai/dsh-agent-spine-demo": "^0.1.2-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "^0.1.2-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-fs-local": "^0.1.2-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-llm-deepseek": "^0.1.2-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-plugin-package-inventory-deepseek": "^0.1.2-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-sandbox-local": "^0.1.2-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.2-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-sdk-app": "^0.1.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-sdk-jsonrpc-server": "^0.1.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-session-log-deepseek": "^0.1.2-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.2-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-subprocess-local": "^0.1.2-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-terminal": "^0.1.2-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-terminal-bash": "^0.1.2-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-tool-bash-persistent": "^0.1.2-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-tool-pwsh-persistent": "^0.1.2-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-tool-str-replace-editor": "^0.1.2-alpha.2"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
|
|
63
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
67
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2"
|
|
68
|
+
}
|
|
69
|
+
}
|