@qilin-agent/sdk-minimal 0.0.0-stage → 3.1.4
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 +49 -0
- package/README.md +105 -2
- package/README.zh.md +106 -0
- package/cordis.patch.yml +143 -0
- package/lib/index.js +1 -0
- package/lib/types/index.d.ts +9 -0
- package/package.json +70 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kkutysllb
|
|
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,49 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
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
|
+
/:
|
|
6
|
+
en: ae5bdac5add26503
|
|
7
|
+
zh: 93cd37d41c05fc9c
|
|
8
|
+
/qilin-agent-sdk-minimal:
|
|
9
|
+
en: 981f63056421cbc4
|
|
10
|
+
zh: 02bab870cd4c4c4f
|
|
11
|
+
/qilin-agent-sdk-minimal/summary:
|
|
12
|
+
en: 1bd3abec463eb574
|
|
13
|
+
zh: 8c314df925d7d077
|
|
14
|
+
/qilin-agent-sdk-minimal/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 09388d293f9be9cb
|
|
17
|
+
/qilin-agent-sdk-minimal/use-this-package:
|
|
18
|
+
en: 4812e6933c4644c1
|
|
19
|
+
zh: 622660b08d522558
|
|
20
|
+
/qilin-agent-sdk-minimal/understand-the-implementation:
|
|
21
|
+
en: 39497164b317f6de
|
|
22
|
+
zh: 436dc8c8ea11e2d2
|
|
23
|
+
/qilin-agent-sdk-minimal/understand-the-implementation/source-map:
|
|
24
|
+
en: 3784c554e96ab004
|
|
25
|
+
zh: 0a05d4fe1e26b3b1
|
|
26
|
+
/qilin-agent-sdk-minimal/further-exploration:
|
|
27
|
+
en: 129d4391c4b8bc7f
|
|
28
|
+
zh: 7cd7e921fd3cb0c4
|
|
29
|
+
/qilin-agent-sdk-minimal/model-experience:
|
|
30
|
+
en: 215e7ba838619b7b
|
|
31
|
+
zh: a311da3843709f90
|
|
32
|
+
/qilin-agent-sdk-minimal/model-experience/minimal-coding-agent-composition:
|
|
33
|
+
en: bd87e16b0c6e0506
|
|
34
|
+
zh: c8ee5e3b4578754e
|
|
35
|
+
/qilin-agent-sdk-minimal/model-experience/minimal-coding-agent-composition/what-the-model-sees:
|
|
36
|
+
en: 35942c4229523952
|
|
37
|
+
zh: aafbf10057b5efb2
|
|
38
|
+
/qilin-agent-sdk-minimal/model-experience/minimal-coding-agent-composition/token-effect:
|
|
39
|
+
en: 65613fb41fcc3151
|
|
40
|
+
zh: fc20a732aca8282c
|
|
41
|
+
/qilin-agent-sdk-minimal/model-experience/minimal-coding-agent-composition/kv-cache-effect:
|
|
42
|
+
en: 904ae09b5fdb87c1
|
|
43
|
+
zh: de6fcaaa12bd9733
|
|
44
|
+
/qilin-agent-sdk-minimal/known-limitations-and-deferred-work:
|
|
45
|
+
en: b30fe041e58923a0
|
|
46
|
+
zh: a081da02535d7fae
|
|
47
|
+
/qilin-agent-sdk-minimal/known-limitations-and-deferred-work/dev-note:
|
|
48
|
+
en: e67f633dc6fe7773
|
|
49
|
+
zh: e88aeb617ffb74ea
|
package/README.md
CHANGED
|
@@ -1,3 +1,106 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: "Standalone SDK profile with one default shell tool for users who need a minimal cross-platform coding agent without the shared base bundle."
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# `@qilin-agent/sdk-minimal`
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
Use `qilin --profile sdk-minimal` when an SDK client needs a small, explicit coding-agent runtime. By default, the profile advertises only a platform-selected persistent shell, persists sessions as uncompressed JSONL, and selects the model from the SDK initialization request. It supplies a complete Cordis tree and deliberately excludes `qilin-base`, Web, settings, managed credentials, telemetry, compaction, filesystem tools, workspace instructions, skills, jobs, and subagents. Its danger-full-access policy lets the shell 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 `QILIN_HOME`, use a disposable workspace, and provide the model credential through `DEEPSEEK_API_KEY`.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
export QILIN_HOME=/absolute/path/to/example-qilin-home
|
|
32
|
+
qilin --profile sdk-minimal
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`QILIN_CONTEXT_WINDOW` sets the fallback capacity for a model absent from the adapter's advisory catalog. `QILIN_SYSTEM_PROMPT` replaces the default persona. The SDK initialization request is the sole model selection and overrides environment defaults.
|
|
36
|
+
|
|
37
|
+
Use `qilin 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
|
+
Like every shipped profile, it mounts [MCP resources](../../mcp/mcp-resources/README.md) once. Configure only [MCP client entries](../../mcp/mcp-client/README.md) to add servers. Clients mounted by another provider also count as configured. With no server configured in the caller's scope, MCP contributes no prompt text or tools and the default remains one shell tool.
|
|
42
|
+
|
|
43
|
+
-----
|
|
44
|
+
|
|
45
|
+
<a id="understand-the-implementation"></a>
|
|
46
|
+
## Understand the implementation
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary>Implementation internals — click to expand</summary>
|
|
50
|
+
|
|
51
|
+
The bundle's single insert is the complete application tree: SDK stdio startup and JSON-RPC serving, one environment-configured DeepSeek adapter, the explicit agent core, conditional MCP resource tools, local subprocess execution, a platform-selected persistent shell PTY, and uncompressed JSONL persistence under `$QILIN_HOME/sessions`. It does not inherit another bundle, so every extra row is an explicit profile change.
|
|
52
|
+
|
|
53
|
+
### Source map
|
|
54
|
+
|
|
55
|
+
| File | Role |
|
|
56
|
+
|---|---|
|
|
57
|
+
| [`cordis.patch.yml`](cordis.patch.yml) | Complete standalone profile tree and its environment-backed defaults |
|
|
58
|
+
| [`src/index.ts`](src/index.ts) | Bundle package entry |
|
|
59
|
+
| [`tests/sdk-minimal.spec.ts`](tests/sdk-minimal.spec.ts) | Exact composition, profile-name, and platform-selection checks |
|
|
60
|
+
|
|
61
|
+
</details>
|
|
62
|
+
|
|
63
|
+
-----
|
|
64
|
+
|
|
65
|
+
<a id="further-exploration"></a>
|
|
66
|
+
## Further Exploration
|
|
67
|
+
|
|
68
|
+
- [Python SDK example](../../../python/sdk/examples/README.md) — launches this profile from Python against an explicit Harness home.
|
|
69
|
+
- [SDK application bundle](../sdk-app/README.md) — the JSON-RPC application layer reused by full and minimal SDK profiles.
|
|
70
|
+
- [Base bundle](../base/README.md) — the full product foundation that this profile deliberately omits.
|
|
71
|
+
|
|
72
|
+
-----
|
|
73
|
+
|
|
74
|
+
<a id="model-experience"></a>
|
|
75
|
+
## Model Experience
|
|
76
|
+
|
|
77
|
+
### Minimal coding-agent composition
|
|
78
|
+
|
|
79
|
+
#### What the model sees
|
|
80
|
+
|
|
81
|
+
The system prompt is `QILIN_SYSTEM_PROMPT` or `You are a helpful software engineer assistant.`. With no MCP server configured, the only advertised tool is owner-scoped persistent `bash` on Linux/macOS or `pwsh` on Windows; runtime context, filesystem tools, workspace instructions, skills, jobs controls, compaction, and Harness identity are absent.
|
|
82
|
+
|
|
83
|
+
#### Token effect
|
|
84
|
+
|
|
85
|
+
By default, one stable persona plus one tool schema. Configured MCP servers add their tools, shared resource tools, and available server instructions. Tool results and ordinary conversation history grow with the session.
|
|
86
|
+
|
|
87
|
+
#### KV Cache effect
|
|
88
|
+
|
|
89
|
+
Stable for a fixed persona, platform, provider, model, and bundle patch stack. Profile changes take effect on the next process.
|
|
90
|
+
|
|
91
|
+
## Known Limitations and Deferred Work
|
|
92
|
+
|
|
93
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
94
|
+
|
|
95
|
+
- **The composition intentionally omits shared product services** — select `qilin --profile sdk` when settings, managed credentials, policy presets, telemetry, Web tools, or the full default tool roster are required.
|
|
96
|
+
- **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.
|
|
97
|
+
|
|
98
|
+
<a id="dev-note"></a>
|
|
99
|
+
### Dev Note
|
|
100
|
+
|
|
101
|
+
<details>
|
|
102
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
103
|
+
|
|
104
|
+
None.
|
|
105
|
+
|
|
106
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "供需要不含共享 base bundle 的极简跨平台 coding agent(编程智能体)的用户使用的独立 SDK profile,默认提供一个 shell 工具。"
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# `@qilin-agent/sdk-minimal`
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
当 SDK 客户端需要小型、显式的 coding agent 运行时时,请使用 `qilin --profile sdk-minimal`。该 profile 默认只公布按平台选择的持久 shell,把会话持久化为未压缩 JSONL,并从 SDK 初始化请求选择模型。它提供完整 Cordis 配置树,并刻意排除 `qilin-base`、Web、settings、托管凭据、遥测、压缩(compaction)、文件系统工具、workspace 指令、skill(技能)、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 选择它。提供显式 `QILIN_HOME`、使用一次性 workspace,并通过 `DEEPSEEK_API_KEY` 提供模型凭据。
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
export QILIN_HOME=/absolute/path/to/example-qilin-home
|
|
32
|
+
qilin --profile sdk-minimal
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`QILIN_CONTEXT_WINDOW` 为不在适配器建议目录中的模型设置后备容量。`QILIN_SYSTEM_PROMPT` 替换默认 persona。SDK 初始化请求是唯一的模型选择依据,并覆盖环境默认值。
|
|
36
|
+
|
|
37
|
+
使用 `qilin plugin --profile sdk-minimal` 管理持久外部依赖。Profile、home 与有序 `--patch` 文件可以替换完整默认配置树中的配置项,或在该配置树上方插入 bundle。随附模板只在启动时应用 patch。
|
|
38
|
+
|
|
39
|
+
该 profile 只挂载一套持久 shell:Linux 和 macOS 使用 Bash,Windows 使用 PowerShell。两套配置都使用 300 秒超时与一个 agent 自有终端;另一平台的配置项保持禁用。
|
|
40
|
+
|
|
41
|
+
与其他随附 profile 一样,它统一挂载 [MCP 资源](../../mcp/mcp-resources/README.zh.md)一次。只需配置 [MCP 客户端条目](../../mcp/mcp-client/README.zh.md)即可添加服务器。其他提供方挂载的客户端也属于已配置状态。调用方作用域中未配置服务器时,MCP 不贡献提示词文本或工具,默认仍只有一个 shell 工具。
|
|
42
|
+
|
|
43
|
+
-----
|
|
44
|
+
|
|
45
|
+
<a id="understand-the-implementation"></a>
|
|
46
|
+
## 理解实现
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary>实现细节——点击展开</summary>
|
|
50
|
+
|
|
51
|
+
该 bundle 的单个 insert 就是完整应用配置树:SDK stdio 启动与 JSON-RPC 服务、一个由环境配置的 DeepSeek 适配器、显式 agent 核心、按配置启用的 MCP 资源工具、本地子进程执行、按平台选择的持久 shell PTY,以及位于 `$QILIN_HOME/sessions` 的未压缩 JSONL 持久化。它不继承其他 bundle,因此每个额外配置项都是显式 profile 变更。
|
|
52
|
+
|
|
53
|
+
### 源码地图
|
|
54
|
+
|
|
55
|
+
| 文件 | 职责 |
|
|
56
|
+
|---|---|
|
|
57
|
+
| [`cordis.patch.yml`](cordis.patch.yml) | 完整独立 profile 配置树及其环境默认值 |
|
|
58
|
+
| [`src/index.ts`](src/index.ts) | Bundle 包入口 |
|
|
59
|
+
| [`tests/sdk-minimal.spec.ts`](tests/sdk-minimal.spec.ts) | 精确组合、profile 名称与平台选择检查 |
|
|
60
|
+
|
|
61
|
+
</details>
|
|
62
|
+
|
|
63
|
+
-----
|
|
64
|
+
|
|
65
|
+
<a id="further-exploration"></a>
|
|
66
|
+
## 进一步探索
|
|
67
|
+
|
|
68
|
+
- [Python SDK 示例](../../../python/sdk/examples/README.zh.md)——从 Python 启动本 profile,并使用明确指定的 Harness home。
|
|
69
|
+
- [SDK 应用 bundle](../sdk-app/README.zh.md)——完整与极简 SDK profile 复用的 JSON-RPC 应用层。
|
|
70
|
+
- [Base bundle](../base/README.zh.md)——本 profile 刻意省略的完整产品基础。
|
|
71
|
+
|
|
72
|
+
-----
|
|
73
|
+
|
|
74
|
+
<a id="model-experience"></a>
|
|
75
|
+
## 模型体验
|
|
76
|
+
|
|
77
|
+
### 极简 coding agent 组合
|
|
78
|
+
|
|
79
|
+
#### 模型看到的内容
|
|
80
|
+
|
|
81
|
+
系统提示词取 `QILIN_SYSTEM_PROMPT`,未设置时使用 `You are a helpful software engineer assistant.`。未配置 MCP 服务器时,对外公布的唯一工具是 Linux/macOS 上 agent 所有的持久 `bash` 或 Windows 上的 `pwsh`;运行时上下文、文件系统工具、workspace 指令、skill、jobs 控制、压缩与 Harness 身份均不存在。
|
|
82
|
+
|
|
83
|
+
#### Token 影响
|
|
84
|
+
|
|
85
|
+
默认是一个稳定 persona 加一个工具 schema。已配置 MCP 服务器会添加自己的工具、共享资源工具及可用的服务器指令。工具结果与普通对话历史随会话增长。
|
|
86
|
+
|
|
87
|
+
#### KV Cache 影响
|
|
88
|
+
|
|
89
|
+
当 persona、平台、提供方、模型与 bundle patch 栈固定时保持稳定。Profile 变更在下一个进程生效。
|
|
90
|
+
|
|
91
|
+
## 已知限制与延期工作
|
|
92
|
+
|
|
93
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
94
|
+
|
|
95
|
+
- **该组合刻意省略共享产品服务** — 需要 settings、托管凭据、策略预设、遥测、Web 工具或完整默认工具清单时,请选择 `qilin --profile sdk`。
|
|
96
|
+
- **用户 patch 可以扩展配置树并破坏 stdout** — profile 自定义属于受信任的应用组合;向 stdout 写入普通文本的插件会破坏 JSON-RPC 分帧。
|
|
97
|
+
|
|
98
|
+
<a id="dev-note"></a>
|
|
99
|
+
### 开发备注
|
|
100
|
+
|
|
101
|
+
<details>
|
|
102
|
+
<summary>维护者工作上下文——点击展开</summary>
|
|
103
|
+
|
|
104
|
+
无。
|
|
105
|
+
|
|
106
|
+
</details>
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Standalone minimal SDK application. Unlike the ordinary SDK profile, this
|
|
2
|
+
# bundle does not layer over qilin-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: '@qilin-agent/sdk-app'
|
|
8
|
+
config:
|
|
9
|
+
profile: sdk-minimal
|
|
10
|
+
|
|
11
|
+
- id: sdk-jsonrpc-server
|
|
12
|
+
name: '@qilin-agent/sdk-jsonrpc-server'
|
|
13
|
+
inject: [sdkAppStartup, loader]
|
|
14
|
+
config:
|
|
15
|
+
maxTokensAsSuccess: false
|
|
16
|
+
|
|
17
|
+
- id: deepseek-llm-api-extensions
|
|
18
|
+
name: '@qilin-agent/deepseek-llm-api-extensions'
|
|
19
|
+
|
|
20
|
+
- id: session-log-deepseek
|
|
21
|
+
name: '@qilin-agent/session-log-deepseek'
|
|
22
|
+
|
|
23
|
+
- id: plugin-package-inventory-deepseek
|
|
24
|
+
name: '@qilin-agent/plugin-package-inventory-deepseek'
|
|
25
|
+
|
|
26
|
+
- id: llm-deepseek
|
|
27
|
+
name: '@qilin-agent/llm-deepseek-api-key'
|
|
28
|
+
config:
|
|
29
|
+
apiKeyEnv: DEEPSEEK_API_KEY
|
|
30
|
+
defaultContextWindow: !!js Number(process.env.QILIN_CONTEXT_WINDOW ?? 1000000)
|
|
31
|
+
streamIdleTimeoutMs: 172800000
|
|
32
|
+
|
|
33
|
+
- id: sandbox
|
|
34
|
+
name: '@qilin-agent/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: '@qilin-agent/session-projection'
|
|
40
|
+
|
|
41
|
+
- id: sandbox-policy
|
|
42
|
+
name: '@qilin-agent/sandbox-policy'
|
|
43
|
+
config:
|
|
44
|
+
mode: danger-full-access
|
|
45
|
+
workspaceRoot: !!js process.cwd()
|
|
46
|
+
|
|
47
|
+
- id: subprocess
|
|
48
|
+
name: '@qilin-agent/subprocess-local'
|
|
49
|
+
|
|
50
|
+
- id: pty
|
|
51
|
+
name: '@qilin-agent/terminal'
|
|
52
|
+
|
|
53
|
+
- id: terminal-bash
|
|
54
|
+
name: '@qilin-agent/terminal-bash'
|
|
55
|
+
disabled: !!js process.platform === 'win32'
|
|
56
|
+
config:
|
|
57
|
+
timeoutMs: 300000
|
|
58
|
+
|
|
59
|
+
- id: terminal-pwsh
|
|
60
|
+
name: '@qilin-agent/terminal-bash'
|
|
61
|
+
disabled: !!js process.platform !== 'win32'
|
|
62
|
+
config:
|
|
63
|
+
shellDialect: pwsh
|
|
64
|
+
timeoutMs: 300000
|
|
65
|
+
|
|
66
|
+
# Keep the minimal agent kernel explicit: unlike qilin-base, this profile
|
|
67
|
+
# owns each service row and omits every optional producer it does not use.
|
|
68
|
+
- id: timer
|
|
69
|
+
name: '@qilin-agent/kylin-plugin-timer'
|
|
70
|
+
|
|
71
|
+
- id: llm
|
|
72
|
+
name: '@qilin-agent/llm'
|
|
73
|
+
|
|
74
|
+
- id: session
|
|
75
|
+
name: '@qilin-agent/session'
|
|
76
|
+
|
|
77
|
+
- id: session-title
|
|
78
|
+
name: '@qilin-agent/session-title'
|
|
79
|
+
config:
|
|
80
|
+
fallbackMaxWords: 5
|
|
81
|
+
fallbackMaxBytes: 40
|
|
82
|
+
maxTitleBytes: 80
|
|
83
|
+
|
|
84
|
+
- id: system-prompt
|
|
85
|
+
name: '@qilin-agent/system-prompt'
|
|
86
|
+
config:
|
|
87
|
+
includeHarnessIdentity: false
|
|
88
|
+
includeRuntimeContext: false
|
|
89
|
+
personaPrefix: !!js process.env.QILIN_SYSTEM_PROMPT ?? 'You are a helpful software engineer assistant.'
|
|
90
|
+
|
|
91
|
+
- id: tools
|
|
92
|
+
name: '@qilin-agent/tools'
|
|
93
|
+
|
|
94
|
+
- id: mcp-resources
|
|
95
|
+
name: '@qilin-agent/mcp-resources'
|
|
96
|
+
|
|
97
|
+
- id: agent
|
|
98
|
+
name: '@qilin-agent/agent'
|
|
99
|
+
|
|
100
|
+
- id: llm-retry
|
|
101
|
+
name: '@qilin-agent/llm-retry'
|
|
102
|
+
|
|
103
|
+
- id: jobs
|
|
104
|
+
name: '@qilin-agent/jobs-local'
|
|
105
|
+
|
|
106
|
+
- id: agent-loop
|
|
107
|
+
name: '@qilin-agent/agent-loop'
|
|
108
|
+
config:
|
|
109
|
+
agents: []
|
|
110
|
+
|
|
111
|
+
- id: persistent-bash
|
|
112
|
+
name: '@qilin-agent/tool-bash-persistent'
|
|
113
|
+
disabled: !!js process.platform === 'win32'
|
|
114
|
+
config:
|
|
115
|
+
timeoutMs: 300000
|
|
116
|
+
description: |-
|
|
117
|
+
Run commands in a bash shell
|
|
118
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
119
|
+
* Network access depends on the task environment. Prefer configured mirrors/proxies when they are available.
|
|
120
|
+
* State is persistent across command calls and discussions with the user.
|
|
121
|
+
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
|
|
122
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
123
|
+
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
|
|
124
|
+
|
|
125
|
+
- id: persistent-pwsh
|
|
126
|
+
name: '@qilin-agent/tool-pwsh-persistent'
|
|
127
|
+
disabled: !!js process.platform !== 'win32'
|
|
128
|
+
config:
|
|
129
|
+
timeoutMs: 300000
|
|
130
|
+
description: |-
|
|
131
|
+
Run commands in a PowerShell shell
|
|
132
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
133
|
+
* You don't have access to the internet via this tool.
|
|
134
|
+
* State is persistent across command calls and discussions with the user.
|
|
135
|
+
* Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
|
|
136
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
137
|
+
* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
|
|
138
|
+
|
|
139
|
+
- id: sessions
|
|
140
|
+
name: '@qilin-agent/session-persistence-jsonl'
|
|
141
|
+
config:
|
|
142
|
+
root: !!js qilinHomePath('sessions')
|
|
143
|
+
compression: none
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @qilin-agent/sdk-minimal — the standalone minimal SDK profile bundle.
|
|
3
|
+
* The package's substance is `cordis.patch.yml`, declared by the
|
|
4
|
+
* `qilin.bundle.patch` manifest field and resolved by the profile composer;
|
|
5
|
+
* this module carries no runtime interface.
|
|
6
|
+
* @module @qilin-agent/sdk-minimal
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qilin-agent/sdk-minimal",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "The standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessions",
|
|
4
|
+
"version": "3.1.4",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/kkutysllb/QiLin.git",
|
|
11
|
+
"directory": "packages/bundle/sdk-minimal"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"types": "lib/types/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./lib/types/index.d.ts",
|
|
22
|
+
"default": "./lib/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
25
|
+
"./src/*": "./src/*",
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"lib/index.js",
|
|
30
|
+
"cordis.patch.yml",
|
|
31
|
+
"lib/types/**/*.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"qilin": {
|
|
35
|
+
"bundle": {
|
|
36
|
+
"patch": "./cordis.patch.yml"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@qilin-agent/agent": "3.1.4",
|
|
41
|
+
"@qilin-agent/kylin-plugin-timer": "~1.1.5",
|
|
42
|
+
"@qilin-agent/agent-loop": "3.1.4",
|
|
43
|
+
"@qilin-agent/deepseek-llm-api-extensions": "3.1.4",
|
|
44
|
+
"@qilin-agent/jobs-local": "3.1.4",
|
|
45
|
+
"@qilin-agent/llm-deepseek-api-key": "3.1.4",
|
|
46
|
+
"@qilin-agent/llm-retry": "3.1.4",
|
|
47
|
+
"@qilin-agent/llm": "3.1.4",
|
|
48
|
+
"@qilin-agent/mcp-resources": "3.1.4",
|
|
49
|
+
"@qilin-agent/plugin-package-inventory-deepseek": "3.1.4",
|
|
50
|
+
"@qilin-agent/sdk-app": "3.1.4",
|
|
51
|
+
"@qilin-agent/sandbox-policy": "3.1.4",
|
|
52
|
+
"@qilin-agent/sdk-jsonrpc-server": "3.1.4",
|
|
53
|
+
"@qilin-agent/session": "3.1.4",
|
|
54
|
+
"@qilin-agent/session-persistence-jsonl": "3.1.4",
|
|
55
|
+
"@qilin-agent/session-log-deepseek": "3.1.4",
|
|
56
|
+
"@qilin-agent/session-title": "3.1.4",
|
|
57
|
+
"@qilin-agent/sandbox-local": "3.1.4",
|
|
58
|
+
"@qilin-agent/system-prompt": "3.1.4",
|
|
59
|
+
"@qilin-agent/terminal": "3.1.4",
|
|
60
|
+
"@qilin-agent/subprocess-local": "3.1.4",
|
|
61
|
+
"@qilin-agent/session-projection": "3.1.4",
|
|
62
|
+
"@qilin-agent/terminal-bash": "3.1.4",
|
|
63
|
+
"@qilin-agent/tools": "3.1.4",
|
|
64
|
+
"@qilin-agent/tool-bash-persistent": "3.1.4",
|
|
65
|
+
"@qilin-agent/tool-pwsh-persistent": "3.1.4"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@qilin-agent/kylin": "~4.0.3"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@qilin-agent/kylin": "~4.0.3"
|
|
72
|
+
}
|
|
6
73
|
}
|