@liyang8246/dsh-zephyr 0.1.4 → 0.1.6

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/cordis.patch.yml CHANGED
@@ -15,13 +15,14 @@
15
15
 
16
16
  # Rules
17
17
 
18
+ - 始终使用中文回答用户.
18
19
  - 回复精炼: 删掉冗余保留技术内容. 去掉冠词, 填充词(just/really/basically), 客套话, 模糊措辞. 可用短语. 同义词取短, 术语精确, 代码/路径/报错原文不变. 句式: [对象] [动作] [原因].
19
20
  - 汇报总结除非另行要求, 必须10秒内肉眼可扫完: 短要点或小表格, 禁大段文字.
20
21
  - 主动加载任何可能有助于任务的 skill, 即使用户未明确要求.
21
- - 需要多步处理或解析输出时, 优先用 `uv_run` 工具跑 PEP 723 内联脚本, 而不是一长串 PowerShell 管道.
22
22
  - 过程不重要, 只要结果的只读脏任务丢给 `subagent`, 比如: 目标模糊的代码检索, 找合适的第三方库, 阅读或反编译打包/混淆后的库与软件.
23
+ - 需要多步处理或解析输出时, 优先使用 `uv_run`, 而不是一长串 PowerShell 管道.
24
+ - 忽略 `load_workspace_dependencies` 工具, 依赖用全局环境.
23
25
  - 临时文件/脚本, 缓存一律放系统临时目录, 不污染工作区, 用完清理.
24
- - 始终使用中文回答用户.
25
26
 
26
27
  # Ponytail, lazy senior dev mode
27
28
 
@@ -64,8 +65,6 @@
64
65
 
65
66
  - id: tool-fs
66
67
  name: '@deepseek-ai/dsh-tool-fs'
67
- - id: zephyr-tools
68
- name: '@liyang8246/dsh-zephyr/restrict'
69
68
  - id: tool-pwsh
70
69
  name: '@deepseek-ai/dsh-tool-pwsh'
71
70
  disabled: !!js process.platform !== 'win32'
package/lib/uv-run.js CHANGED
@@ -64,10 +64,8 @@ function formatResult(result) {
64
64
  // src/uv-run/definition.ts
65
65
  const DESCRIPTION = [
66
66
  "Run a Python script with `uv run --no-project -`.",
67
- "Pass the complete script as `code`; it is delivered on stdin, so quotes, backslashes, newlines, and Unicode need no shell escaping.",
68
- "Without a PEP 723 header, uv uses the first Python on PATH, so imports outside the standard library may fail.",
69
- "To install dependencies, include a PEP 723 header: start with `# /// script`, list dependencies in `# dependencies = [...]`, then close with `# ///`; uv creates an isolated environment for that script.",
70
- "Non-zero exits are reported as `[exit code: N]`; sandbox denials are reported as `[sandbox: ...]`."
67
+ "The script arrives on stdin as `code`, so quotes, backslashes and newlines need no shell escaping.",
68
+ "Third-party imports need a PEP 723 header."
71
69
  ].join(" ");
72
70
  function valueText(value) {
73
71
  if (typeof value !== "object" || value === null || Array.isArray(value)) return "";
@@ -83,7 +81,7 @@ function createDefinition(ctx) {
83
81
  properties: {
84
82
  code: {
85
83
  type: "string",
86
- description: "Complete Python script. Include PEP 723 inline metadata when it imports third-party packages."
84
+ description: "Complete Python script."
87
85
  },
88
86
  timeoutMs: {
89
87
  type: "number",
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@liyang8246/dsh-zephyr",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "description": "Standalone Zephyr coding preset, persona and slim tool set for DeepSeek Harness.",
6
6
  "repository": { "type": "git", "url": "https://github.com/liyang8246/dsh-zolin.git", "directory": "packages/dsh-zephyr" },
7
7
  "exports": {
8
8
  "./uv-run": "./lib/uv-run.js",
9
- "./restrict": "./lib/restrict.js",
10
9
  "./locale/*.json": "./locale/*.json",
11
10
  "./icon": "./icon.svg",
12
11
  "./cordis.patch.yml": "./cordis.patch.yml",
package/lib/restrict.js DELETED
@@ -1,17 +0,0 @@
1
- // src/restrict.ts
2
- const inject = ["tools"];
3
- const HIDDEN_TOOLS = ["load_workspace_dependencies"];
4
- function apply(ctx) {
5
- let restricted = false;
6
- function restrict() {
7
- if (restricted) return;
8
- const visible = new Set(ctx.tools.schemas().map((schema) => schema.name));
9
- const deny = HIDDEN_TOOLS.filter((name) => visible.has(name));
10
- if (deny.length === 0) return;
11
- restricted = true;
12
- ctx.effect(() => ctx.tools.restrict({ deny }));
13
- }
14
- ctx.on("tools/change", restrict);
15
- restrict();
16
- }
17
- export { apply, inject };