@shuind/dsh-codex-harness 0.3.0 → 0.3.1
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/CHANGELOG.md +9 -0
- package/LICENSE +21 -21
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/RELEASE.md +1 -1
- package/docs/preset-library.md +1 -1
- package/docs/tool-policy.md +1 -1
- package/lib/client.js +18 -18
- package/lib/types/entries/preferences.d.ts +3 -2
- package/lib/types/entries/tool-policy.d.ts +2 -77
- package/lib/types/policy/rule-resolver.d.ts +1 -77
- package/package.json +271 -160
- package/src/entries/preferences.ts +2 -1
- package/src/policy/rule-resolver.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 (2026-11-22)
|
|
4
|
+
|
|
5
|
+
- **适配 DeepSeek Harness `0.2.2-rc.5`**:
|
|
6
|
+
- 将 `engines.dsh` 范围扩展至 `>=0.2.2-rc.1 <=0.2.2-rc.5`,并将全部 `@deepseek-ai/dsh-*` 开发依赖与传递 peer 依赖对齐验证到 `0.2.2-rc.5`。
|
|
7
|
+
- **修复从 GitHub 源码安装触发的 `TS2883` 构建错误**:
|
|
8
|
+
- 为 `src/policy/rule-resolver.ts` 与 `src/entries/preferences.ts` 的 `Config` 补齐显式可移植类型标注,避免在 `pnpm v11` 严格依赖布局下导出 `.d.ts` 时引用非直接依赖 `@deepseek-ai/cosmokit`。
|
|
9
|
+
- **市场元数据维护**:
|
|
10
|
+
- 新增 256px 栅格市场图标 `assets/codex-icon-256.png`,并将 `screenshots.json` 迁移为相对路径。
|
|
11
|
+
|
|
3
12
|
## 0.3.0 (2026-11-18)
|
|
4
13
|
|
|
5
14
|
本版本整合 `0.2.22`–`0.2.40`(本地重构与适配,含 npm `0.2.32-dsh-v0.2.2-rc.1` 之后的演进)并新增以下改进与修复,作为面向 DeepSeek Harness `0.2.2-rc.1`–`0.2.2-rc.4`(`>=0.2.2-rc.1 <=0.2.2-rc.4`)的 `0.3.0` 正式发布版本:
|
package/LICENSE
CHANGED
|
@@ -1,21 +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.
|
|
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.md
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
给 DeepSeek Harness(DSH)用的 Codex 风格插件:自带一套混合模式编码预设(`codex-hybrid`)和 Codex 常用工具,支持对任意预设按工具做启用 / 替换 / 延迟加载 / 隐藏,也可以单独调整预设提示词,并针对 OpenAI Responses API 与中转站补全了常用请求增强。
|
|
4
4
|
|
|
5
|
-
当前版本 `0.3.
|
|
5
|
+
当前版本 `0.3.1` 适配 **DeepSeek Harness `0.2.2-rc.1`–`0.2.2-rc.5`**(`engines.dsh: >=0.2.2-rc.1 <=0.2.2-rc.5`)。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
9
9
|
### 从插件市场 / npm 安装
|
|
10
10
|
|
|
11
|
-
在 Harness 的 **插件 → 添加插件** 中输入 `@shuind/dsh-codex-harness`(或指定 `@shuind/dsh-codex-harness@0.3.
|
|
11
|
+
在 Harness 的 **插件 → 添加插件** 中输入 `@shuind/dsh-codex-harness`(或指定 `@shuind/dsh-codex-harness@0.3.1`),安装后按提示重启 Harness 即可。
|
|
12
12
|
|
|
13
13
|
### 从离线包安装(GitHub Release)
|
|
14
14
|
|
|
15
|
-
1. 在 [Releases](https://github.com/shuind/dsh-codex-harness/releases) 页面下载对应版本的 `.tgz` 安装包(如 `shuind-dsh-codex-harness-0.3.
|
|
15
|
+
1. 在 [Releases](https://github.com/shuind/dsh-codex-harness/releases) 页面下载对应版本的 `.tgz` 安装包(如 `shuind-dsh-codex-harness-0.3.1.tgz`)。
|
|
16
16
|
2. 打开 Harness 桌面端的 **插件 → 添加插件**,填入该 `.tgz` 文件的本地路径确认安装,然后重启 Harness。
|
|
17
17
|
|
|
18
18
|
> 桌面端请直接在软件内的插件页面安装或升级,不要用命令行里可能存在的旧版 `dsh` 去改桌面端的 `desktop` profile。
|
package/README.zh.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @shuind/dsh-codex-harness
|
|
2
|
-
|
|
3
|
-
中文文档已默认放在 [README.md](README.md)。
|
|
1
|
+
# @shuind/dsh-codex-harness
|
|
2
|
+
|
|
3
|
+
中文文档已默认放在 [README.md](README.md)。
|
package/RELEASE.md
CHANGED
|
@@ -42,7 +42,7 @@ dry-run contains the current `lib/` files, generated `cordis.patch.yml`, preset
|
|
|
42
42
|
sources, exported locales and icon. The generated patch must declare
|
|
43
43
|
`@deepseek-ai/dsh-agent-preset`; it must not mount the legacy directory installer.
|
|
44
44
|
|
|
45
|
-
The `0.3.
|
|
45
|
+
The `0.3.1` build targets Harness `0.2.2-rc.1`–`0.2.2-rc.5` (`>=0.2.2-rc.1 <=0.2.2-rc.5`). Keep that exact engine
|
|
46
46
|
requirement until another runtime has been verified. Do not publish as part of
|
|
47
47
|
an ordinary adaptation task unless the user explicitly requests publishing.
|
|
48
48
|
|
package/docs/preset-library.md
CHANGED
package/docs/tool-policy.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 跨预设工具覆盖
|
|
2
2
|
|
|
3
|
-
版本 `0.3.
|
|
3
|
+
版本 `0.3.1`,目标运行时 DeepSeek Harness `>=0.2.2-rc.1 <=0.2.2-rc.5`。工具覆盖是独立 Host 插件,行 id 为 `codex-tool-policy`,默认 `rules: []`,不会自动改变任何预设。
|
|
4
4
|
|
|
5
5
|
## 改什么,不改什么
|
|
6
6
|
|
package/lib/client.js
CHANGED
|
@@ -172,7 +172,7 @@ window.__ModuleLoader__.load({
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region node_modules/zod/v4/core/util.js
|
|
175
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/util.js
|
|
176
176
|
function getEnumValues(entries) {
|
|
177
177
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
178
178
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -706,7 +706,7 @@ window.__ModuleLoader__.load({
|
|
|
706
706
|
return fn;
|
|
707
707
|
}
|
|
708
708
|
//#endregion
|
|
709
|
-
//#region node_modules/zod/v4/core/core.js
|
|
709
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/core.js
|
|
710
710
|
var _a$1;
|
|
711
711
|
const _zodDesc = {
|
|
712
712
|
value: void 0,
|
|
@@ -812,7 +812,7 @@ window.__ModuleLoader__.load({
|
|
|
812
812
|
return globalConfig;
|
|
813
813
|
}
|
|
814
814
|
//#endregion
|
|
815
|
-
//#region node_modules/zod/v4/core/errors.js
|
|
815
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/errors.js
|
|
816
816
|
function _getMessage() {
|
|
817
817
|
const internals = this._zod;
|
|
818
818
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -928,7 +928,7 @@ window.__ModuleLoader__.load({
|
|
|
928
928
|
return fieldErrors;
|
|
929
929
|
}
|
|
930
930
|
//#endregion
|
|
931
|
-
//#region node_modules/zod/v4/core/parse.js
|
|
931
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/parse.js
|
|
932
932
|
function finalizeParams(callee, params) {
|
|
933
933
|
return {
|
|
934
934
|
callee: params?.callee ?? callee,
|
|
@@ -1131,7 +1131,7 @@ window.__ModuleLoader__.load({
|
|
|
1131
1131
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1132
1132
|
};
|
|
1133
1133
|
//#endregion
|
|
1134
|
-
//#region node_modules/zod/v4/core/regexes.js
|
|
1134
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/regexes.js
|
|
1135
1135
|
/**
|
|
1136
1136
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1137
1137
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1202,7 +1202,7 @@ window.__ModuleLoader__.load({
|
|
|
1202
1202
|
const lowercase = /^[^A-Z]*$/;
|
|
1203
1203
|
const uppercase = /^[^a-z]*$/;
|
|
1204
1204
|
//#endregion
|
|
1205
|
-
//#region node_modules/zod/v4/core/checks.js
|
|
1205
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/checks.js
|
|
1206
1206
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1207
1207
|
var _a;
|
|
1208
1208
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1498,7 +1498,7 @@ window.__ModuleLoader__.load({
|
|
|
1498
1498
|
};
|
|
1499
1499
|
});
|
|
1500
1500
|
//#endregion
|
|
1501
|
-
//#region node_modules/zod/v4/core/doc.js
|
|
1501
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/doc.js
|
|
1502
1502
|
var Doc = class {
|
|
1503
1503
|
constructor(args = [], closed = {}) {
|
|
1504
1504
|
this.content = [];
|
|
@@ -1532,14 +1532,14 @@ window.__ModuleLoader__.load({
|
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
1534
|
//#endregion
|
|
1535
|
-
//#region node_modules/zod/v4/core/versions.js
|
|
1535
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/versions.js
|
|
1536
1536
|
const version = {
|
|
1537
1537
|
major: 4,
|
|
1538
1538
|
minor: 6,
|
|
1539
1539
|
patch: 6
|
|
1540
1540
|
};
|
|
1541
1541
|
//#endregion
|
|
1542
|
-
//#region node_modules/zod/v4/core/schemas.js
|
|
1542
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/schemas.js
|
|
1543
1543
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1544
1544
|
var _a;
|
|
1545
1545
|
inst ?? (inst = {});
|
|
@@ -2798,7 +2798,7 @@ window.__ModuleLoader__.load({
|
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
2800
|
//#endregion
|
|
2801
|
-
//#region node_modules/zod/v4/core/memoizer.js
|
|
2801
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/memoizer.js
|
|
2802
2802
|
var $ZodCyclicError = class extends Error {
|
|
2803
2803
|
constructor() {
|
|
2804
2804
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3051,7 +3051,7 @@ window.__ModuleLoader__.load({
|
|
|
3051
3051
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
3052
3052
|
}
|
|
3053
3053
|
//#endregion
|
|
3054
|
-
//#region node_modules/zod/v4/locales/en.js
|
|
3054
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/locales/en.js
|
|
3055
3055
|
const error = () => {
|
|
3056
3056
|
const Sizable = {
|
|
3057
3057
|
string: {
|
|
@@ -3159,7 +3159,7 @@ window.__ModuleLoader__.load({
|
|
|
3159
3159
|
return { localeError: error() };
|
|
3160
3160
|
}
|
|
3161
3161
|
//#endregion
|
|
3162
|
-
//#region node_modules/zod/v4/core/registries.js
|
|
3162
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/registries.js
|
|
3163
3163
|
var _a;
|
|
3164
3164
|
var $ZodRegistry = class {
|
|
3165
3165
|
constructor() {
|
|
@@ -3206,7 +3206,7 @@ window.__ModuleLoader__.load({
|
|
|
3206
3206
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3207
3207
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
3208
3208
|
//#endregion
|
|
3209
|
-
//#region node_modules/zod/v4/core/api.js
|
|
3209
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/api.js
|
|
3210
3210
|
function snapshotChecks(def) {
|
|
3211
3211
|
if (def.checks) def.checks = [...def.checks];
|
|
3212
3212
|
return def;
|
|
@@ -3715,7 +3715,7 @@ window.__ModuleLoader__.load({
|
|
|
3715
3715
|
return ch;
|
|
3716
3716
|
}
|
|
3717
3717
|
//#endregion
|
|
3718
|
-
//#region node_modules/zod/v4/core/to-json-schema.js
|
|
3718
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.js
|
|
3719
3719
|
function assignProps(target, ...sources) {
|
|
3720
3720
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3721
3721
|
return target;
|
|
@@ -4159,7 +4159,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4159
4159
|
return finalize(ctx, schema);
|
|
4160
4160
|
};
|
|
4161
4161
|
//#endregion
|
|
4162
|
-
//#region node_modules/zod/v4/core/json-schema-processors.js
|
|
4162
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
4163
4163
|
const narrowMin = (agg, key, value) => {
|
|
4164
4164
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4165
4165
|
};
|
|
@@ -4506,7 +4506,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4506
4506
|
seen.ref = def.innerType;
|
|
4507
4507
|
};
|
|
4508
4508
|
//#endregion
|
|
4509
|
-
//#region node_modules/zod/v4/classic/errors.js
|
|
4509
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/errors.js
|
|
4510
4510
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4511
4511
|
function _lazyMethod(proto, key, make) {
|
|
4512
4512
|
Object.defineProperty(proto, key, {
|
|
@@ -4556,7 +4556,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4556
4556
|
};
|
|
4557
4557
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4558
4558
|
//#endregion
|
|
4559
|
-
//#region node_modules/zod/v4/classic/parse.js
|
|
4559
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/parse.js
|
|
4560
4560
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4561
4561
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4562
4562
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4570,7 +4570,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4570
4570
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4571
4571
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4572
4572
|
//#endregion
|
|
4573
|
-
//#region node_modules/zod/v4/classic/schemas.js
|
|
4573
|
+
//#region node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/schemas.js
|
|
4574
4574
|
function _ensureDefaultLocale() {
|
|
4575
4575
|
if (!globalConfig.localeError) config(en_default());
|
|
4576
4576
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** Profile-backed live preferences on DSH 0.2; legacy hosts keep settings.yaml. */
|
|
2
2
|
import { Service, type Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type z from '@deepseek-ai/schemastery';
|
|
3
4
|
import { type CodexSettings } from '../contracts/settings.ts';
|
|
4
|
-
export declare const Config:
|
|
5
|
+
export declare const Config: z<CodexSettings, CodexSettings, 'volatile-defined'>;
|
|
5
6
|
export default class CodexPreferences extends Service {
|
|
6
7
|
private readonly value;
|
|
7
|
-
static Config:
|
|
8
|
+
static Config: z<CodexSettings, CodexSettings, "volatile-defined">;
|
|
8
9
|
constructor(ctx: Context, value: ReturnType<typeof Config>);
|
|
9
10
|
current(): CodexSettings;
|
|
10
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Opt-in Host overlays for future Agents; source presets and Persona stay untouched. */
|
|
2
2
|
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import { Config } from '../policy/rule-resolver.ts';
|
|
3
4
|
import type { ToolPolicyConfigSource } from '../policy/rule-resolver.ts';
|
|
4
5
|
export type { ToolAction, ToolActionRule, ToolPolicyRule } from '../contracts/tool-policy-contract.ts';
|
|
5
6
|
export { Config } from '../policy/rule-resolver.ts';
|
|
@@ -14,83 +15,7 @@ export declare function apply(ctx: Context, config?: ToolPolicyConfigSource): vo
|
|
|
14
15
|
declare const _default: {
|
|
15
16
|
name: string;
|
|
16
17
|
inject: string[];
|
|
17
|
-
Config: import("@deepseek-ai/schemastery").default<
|
|
18
|
-
rules: import("@deepseek-ai/schemastery").default<({
|
|
19
|
-
preset?: string | null;
|
|
20
|
-
allow?: string[] | null;
|
|
21
|
-
deny?: string[] | null;
|
|
22
|
-
replaceShell?: boolean | null;
|
|
23
|
-
replacePlan?: boolean | null;
|
|
24
|
-
replacePatch?: boolean | null;
|
|
25
|
-
tools?: ({
|
|
26
|
-
name?: string | null;
|
|
27
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
28
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
29
|
-
promptOverrides?: ({
|
|
30
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
31
|
-
text?: string | null;
|
|
32
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
33
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
34
|
-
preset: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
35
|
-
allow: import("@deepseek-ai/schemastery").default<string[], string[], "plain">;
|
|
36
|
-
deny: import("@deepseek-ai/schemastery").default<string[], string[], "plain">;
|
|
37
|
-
replaceShell: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
38
|
-
replacePlan: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
39
|
-
replacePatch: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
40
|
-
tools: import("@deepseek-ai/schemastery").default<({
|
|
41
|
-
name?: string | null;
|
|
42
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
43
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
44
|
-
name: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
45
|
-
action: import("@deepseek-ai/schemastery").default<"codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "defined">;
|
|
46
|
-
}>>[], "plain">;
|
|
47
|
-
promptOverrides: import("@deepseek-ai/schemastery").default<({
|
|
48
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
49
|
-
text?: string | null;
|
|
50
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
51
|
-
name: import("@deepseek-ai/schemastery").default<"deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "defined">;
|
|
52
|
-
text: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
53
|
-
}>>[], "plain">;
|
|
54
|
-
}>>[], "defined">;
|
|
55
|
-
}>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
|
|
56
|
-
rules: import("@deepseek-ai/schemastery").default<({
|
|
57
|
-
preset?: string | null;
|
|
58
|
-
allow?: string[] | null;
|
|
59
|
-
deny?: string[] | null;
|
|
60
|
-
replaceShell?: boolean | null;
|
|
61
|
-
replacePlan?: boolean | null;
|
|
62
|
-
replacePatch?: boolean | null;
|
|
63
|
-
tools?: ({
|
|
64
|
-
name?: string | null;
|
|
65
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
66
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
67
|
-
promptOverrides?: ({
|
|
68
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
69
|
-
text?: string | null;
|
|
70
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
71
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
72
|
-
preset: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
73
|
-
allow: import("@deepseek-ai/schemastery").default<string[], string[], "plain">;
|
|
74
|
-
deny: import("@deepseek-ai/schemastery").default<string[], string[], "plain">;
|
|
75
|
-
replaceShell: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
76
|
-
replacePlan: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
77
|
-
replacePatch: import("@deepseek-ai/schemastery").default<boolean, boolean, "defined">;
|
|
78
|
-
tools: import("@deepseek-ai/schemastery").default<({
|
|
79
|
-
name?: string | null;
|
|
80
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
81
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
82
|
-
name: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
83
|
-
action: import("@deepseek-ai/schemastery").default<"codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "defined">;
|
|
84
|
-
}>>[], "plain">;
|
|
85
|
-
promptOverrides: import("@deepseek-ai/schemastery").default<({
|
|
86
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
87
|
-
text?: string | null;
|
|
88
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
89
|
-
name: import("@deepseek-ai/schemastery").default<"deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "defined">;
|
|
90
|
-
text: import("@deepseek-ai/schemastery").default<string, string, "defined">;
|
|
91
|
-
}>>[], "plain">;
|
|
92
|
-
}>>[], "defined">;
|
|
93
|
-
}>>>, "volatile">;
|
|
18
|
+
Config: import("@deepseek-ai/schemastery").default<Config, Config, "volatile">;
|
|
94
19
|
apply: typeof apply;
|
|
95
20
|
};
|
|
96
21
|
export default _default;
|
|
@@ -5,83 +5,7 @@ export interface Config {
|
|
|
5
5
|
/** Empty by default: no preset or existing Agent is changed implicitly. */
|
|
6
6
|
rules?: readonly ToolPolicyRule[];
|
|
7
7
|
}
|
|
8
|
-
export declare const Config: z<
|
|
9
|
-
rules: z<({
|
|
10
|
-
preset?: string | null;
|
|
11
|
-
allow?: string[] | null;
|
|
12
|
-
deny?: string[] | null;
|
|
13
|
-
replaceShell?: boolean | null;
|
|
14
|
-
replacePlan?: boolean | null;
|
|
15
|
-
replacePatch?: boolean | null;
|
|
16
|
-
tools?: ({
|
|
17
|
-
name?: string | null;
|
|
18
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
19
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
20
|
-
promptOverrides?: ({
|
|
21
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
22
|
-
text?: string | null;
|
|
23
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
24
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
25
|
-
preset: z<string, string, "defined">;
|
|
26
|
-
allow: z<string[], string[], "plain">;
|
|
27
|
-
deny: z<string[], string[], "plain">;
|
|
28
|
-
replaceShell: z<boolean, boolean, "defined">;
|
|
29
|
-
replacePlan: z<boolean, boolean, "defined">;
|
|
30
|
-
replacePatch: z<boolean, boolean, "defined">;
|
|
31
|
-
tools: z<({
|
|
32
|
-
name?: string | null;
|
|
33
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
34
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
35
|
-
name: z<string, string, "defined">;
|
|
36
|
-
action: z<"codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "defined">;
|
|
37
|
-
}>>[], "plain">;
|
|
38
|
-
promptOverrides: z<({
|
|
39
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
40
|
-
text?: string | null;
|
|
41
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
42
|
-
name: z<"deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "defined">;
|
|
43
|
-
text: z<string, string, "defined">;
|
|
44
|
-
}>>[], "plain">;
|
|
45
|
-
}>>[], "defined">;
|
|
46
|
-
}>>>, NoInfer<Schemastery.ObjectT<NoInfer<{
|
|
47
|
-
rules: z<({
|
|
48
|
-
preset?: string | null;
|
|
49
|
-
allow?: string[] | null;
|
|
50
|
-
deny?: string[] | null;
|
|
51
|
-
replaceShell?: boolean | null;
|
|
52
|
-
replacePlan?: boolean | null;
|
|
53
|
-
replacePatch?: boolean | null;
|
|
54
|
-
tools?: ({
|
|
55
|
-
name?: string | null;
|
|
56
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
57
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
58
|
-
promptOverrides?: ({
|
|
59
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
60
|
-
text?: string | null;
|
|
61
|
-
} & import("@deepseek-ai/cosmokit").Dict)[] | null;
|
|
62
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
63
|
-
preset: z<string, string, "defined">;
|
|
64
|
-
allow: z<string[], string[], "plain">;
|
|
65
|
-
deny: z<string[], string[], "plain">;
|
|
66
|
-
replaceShell: z<boolean, boolean, "defined">;
|
|
67
|
-
replacePlan: z<boolean, boolean, "defined">;
|
|
68
|
-
replacePatch: z<boolean, boolean, "defined">;
|
|
69
|
-
tools: z<({
|
|
70
|
-
name?: string | null;
|
|
71
|
-
action?: "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer" | null;
|
|
72
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
73
|
-
name: z<string, string, "defined">;
|
|
74
|
-
action: z<"codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "codex-exec" | "codex-plan" | "codex-patch" | "keep" | "hide" | "defer", "defined">;
|
|
75
|
-
}>>[], "plain">;
|
|
76
|
-
promptOverrides: z<({
|
|
77
|
-
name?: "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base" | null;
|
|
78
|
-
text?: string | null;
|
|
79
|
-
} & import("@deepseek-ai/cosmokit").Dict)[], Schemastery.ObjectT<NoInfer<{
|
|
80
|
-
name: z<"deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "deployment:persona-prefix" | "deployment:persona-suffix" | "codex:base", "defined">;
|
|
81
|
-
text: z<string, string, "defined">;
|
|
82
|
-
}>>[], "plain">;
|
|
83
|
-
}>>[], "defined">;
|
|
84
|
-
}>>>, "volatile">;
|
|
8
|
+
export declare const Config: z<Config, Config, 'volatile'>;
|
|
85
9
|
/** Loader activations receive a volatile reference; direct callers may pass plain rules. */
|
|
86
10
|
export type ToolPolicyConfigSource = Config | ReturnType<typeof Config>;
|
|
87
11
|
export interface ResolvedRule extends ToolPolicyRule {
|
package/package.json
CHANGED
|
@@ -1,24 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuind/dsh-codex-harness",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"packageManager": "pnpm@9.15.9",
|
|
5
5
|
"description": "Customizable Codex coding preset, tools and Responses enhancements for DeepSeek Harness.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"types": "lib/types/entries/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/types/entries/index.d.ts",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./preferences": {
|
|
15
|
+
"types": "./lib/types/entries/preferences.d.ts",
|
|
16
|
+
"default": "./lib/preferences.js"
|
|
17
|
+
},
|
|
18
|
+
"./compaction": {
|
|
19
|
+
"types": "./lib/types/entries/compaction.d.ts",
|
|
20
|
+
"default": "./lib/compaction.js"
|
|
21
|
+
},
|
|
22
|
+
"./tool-policy": {
|
|
23
|
+
"types": "./lib/types/entries/tool-policy.d.ts",
|
|
24
|
+
"default": "./lib/tool-policy.js"
|
|
25
|
+
},
|
|
14
26
|
"./tool-policy/locale/*.json": "./locale/tool-policy/*.json",
|
|
15
27
|
"./tool-policy/icon": "./assets/codex.svg",
|
|
16
|
-
"./hybrid-executor": {
|
|
28
|
+
"./hybrid-executor": {
|
|
29
|
+
"types": "./lib/types/entries/hybrid-executor.d.ts",
|
|
30
|
+
"default": "./lib/hybrid-executor.js"
|
|
31
|
+
},
|
|
17
32
|
"./hybrid-executor/locale/*.json": "./locale/hybrid-executor/*.json",
|
|
18
33
|
"./hybrid-executor/icon": "./assets/codex.svg",
|
|
19
|
-
"./compact-command": {
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
"./compact-command": {
|
|
35
|
+
"types": "./lib/types/entries/compact-command.d.ts",
|
|
36
|
+
"default": "./lib/compact-command.js"
|
|
37
|
+
},
|
|
38
|
+
"./typert": {
|
|
39
|
+
"types": "./lib/types/entries/typert.host.d.ts",
|
|
40
|
+
"default": "./lib/typert.js"
|
|
41
|
+
},
|
|
42
|
+
"./client": {
|
|
43
|
+
"types": "./lib/types/entries/client.d.ts",
|
|
44
|
+
"default": "./lib/client.js"
|
|
45
|
+
},
|
|
22
46
|
"./locale/*.json": "./locale/*.json",
|
|
23
47
|
"./icon": "./assets/codex.svg",
|
|
24
48
|
"./preferences/locale/*.json": "./locale/*.json",
|
|
@@ -67,15 +91,27 @@
|
|
|
67
91
|
"pack:check": "npm pack --dry-run",
|
|
68
92
|
"prepare": "npm run build"
|
|
69
93
|
},
|
|
70
|
-
"repository": {
|
|
71
|
-
|
|
72
|
-
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "git+https://github.com/shuind/dsh-codex-harness.git"
|
|
97
|
+
},
|
|
98
|
+
"keywords": [
|
|
99
|
+
"dsh-plugin",
|
|
100
|
+
"deepseek-harness",
|
|
101
|
+
"codex",
|
|
102
|
+
"agent"
|
|
103
|
+
],
|
|
104
|
+
"publishConfig": {
|
|
105
|
+
"access": "public"
|
|
106
|
+
},
|
|
73
107
|
"license": "MIT",
|
|
74
108
|
"engines": {
|
|
75
|
-
"dsh": ">=0.2.2-rc.1 <=0.2.2-rc.
|
|
109
|
+
"dsh": ">=0.2.2-rc.1 <=0.2.2-rc.5"
|
|
76
110
|
},
|
|
77
111
|
"dsh": {
|
|
78
|
-
"bundle": {
|
|
112
|
+
"bundle": {
|
|
113
|
+
"patch": "./cordis.patch.yml"
|
|
114
|
+
},
|
|
79
115
|
"client": {
|
|
80
116
|
"inject": [
|
|
81
117
|
"@deepseek-ai/dsh-client-locale",
|
|
@@ -133,165 +169,240 @@
|
|
|
133
169
|
"@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.1 <0.2.3"
|
|
134
170
|
},
|
|
135
171
|
"peerDependenciesMeta": {
|
|
136
|
-
"@deepseek-ai/cordis": {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"@deepseek-ai/dsh-agent
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"@deepseek-ai/dsh-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"@deepseek-ai/dsh-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"@deepseek-ai/dsh-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"@deepseek-ai/dsh-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"@deepseek-ai/dsh-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"@deepseek-ai/dsh-
|
|
172
|
+
"@deepseek-ai/cordis": {
|
|
173
|
+
"optional": true
|
|
174
|
+
},
|
|
175
|
+
"@deepseek-ai/dsh-agent": {
|
|
176
|
+
"optional": true
|
|
177
|
+
},
|
|
178
|
+
"@deepseek-ai/dsh-agent-preset": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
181
|
+
"@deepseek-ai/dsh-agent-preset-registry": {
|
|
182
|
+
"optional": true
|
|
183
|
+
},
|
|
184
|
+
"@deepseek-ai/dsh-api-remotes": {
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
187
|
+
"@deepseek-ai/dsh-client-locale": {
|
|
188
|
+
"optional": true
|
|
189
|
+
},
|
|
190
|
+
"@deepseek-ai/dsh-client-ui-commands": {
|
|
191
|
+
"optional": true
|
|
192
|
+
},
|
|
193
|
+
"@deepseek-ai/dsh-client-ui-conversation": {
|
|
194
|
+
"optional": true
|
|
195
|
+
},
|
|
196
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": {
|
|
197
|
+
"optional": true
|
|
198
|
+
},
|
|
199
|
+
"@deepseek-ai/dsh-client-ui-settings": {
|
|
200
|
+
"optional": true
|
|
201
|
+
},
|
|
202
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
203
|
+
"optional": true
|
|
204
|
+
},
|
|
205
|
+
"@deepseek-ai/dsh-commands": {
|
|
206
|
+
"optional": true
|
|
207
|
+
},
|
|
208
|
+
"@deepseek-ai/dsh-compaction": {
|
|
209
|
+
"optional": true
|
|
210
|
+
},
|
|
211
|
+
"@deepseek-ai/dsh-compaction-basic": {
|
|
212
|
+
"optional": true
|
|
213
|
+
},
|
|
214
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": {
|
|
215
|
+
"optional": true
|
|
216
|
+
},
|
|
217
|
+
"@deepseek-ai/dsh-credentials": {
|
|
218
|
+
"optional": true
|
|
219
|
+
},
|
|
220
|
+
"@deepseek-ai/dsh-fs": {
|
|
221
|
+
"optional": true
|
|
222
|
+
},
|
|
223
|
+
"@deepseek-ai/dsh-jobs": {
|
|
224
|
+
"optional": true
|
|
225
|
+
},
|
|
226
|
+
"@deepseek-ai/dsh-llm": {
|
|
227
|
+
"optional": true
|
|
228
|
+
},
|
|
229
|
+
"@deepseek-ai/dsh-persona": {
|
|
230
|
+
"optional": true
|
|
231
|
+
},
|
|
232
|
+
"@deepseek-ai/dsh-sandbox": {
|
|
233
|
+
"optional": true
|
|
234
|
+
},
|
|
235
|
+
"@deepseek-ai/dsh-sandbox-policy": {
|
|
236
|
+
"optional": true
|
|
237
|
+
},
|
|
238
|
+
"@deepseek-ai/dsh-scope": {
|
|
239
|
+
"optional": true
|
|
240
|
+
},
|
|
241
|
+
"@deepseek-ai/dsh-session": {
|
|
242
|
+
"optional": true
|
|
243
|
+
},
|
|
244
|
+
"@deepseek-ai/dsh-session-projection": {
|
|
245
|
+
"optional": true
|
|
246
|
+
},
|
|
247
|
+
"@deepseek-ai/dsh-settings": {
|
|
248
|
+
"optional": true
|
|
249
|
+
},
|
|
250
|
+
"@deepseek-ai/dsh-shell": {
|
|
251
|
+
"optional": true
|
|
252
|
+
},
|
|
253
|
+
"@deepseek-ai/dsh-shell-env": {
|
|
254
|
+
"optional": true
|
|
255
|
+
},
|
|
256
|
+
"@deepseek-ai/dsh-system-prompt": {
|
|
257
|
+
"optional": true
|
|
258
|
+
},
|
|
259
|
+
"@deepseek-ai/dsh-terminal": {
|
|
260
|
+
"optional": true
|
|
261
|
+
},
|
|
262
|
+
"@deepseek-ai/dsh-token-meter": {
|
|
263
|
+
"optional": true
|
|
264
|
+
},
|
|
265
|
+
"@deepseek-ai/dsh-tool-fs": {
|
|
266
|
+
"optional": true
|
|
267
|
+
},
|
|
268
|
+
"@deepseek-ai/dsh-tool-jobs": {
|
|
269
|
+
"optional": true
|
|
270
|
+
},
|
|
271
|
+
"@deepseek-ai/dsh-tool-todo": {
|
|
272
|
+
"optional": true
|
|
273
|
+
},
|
|
274
|
+
"@deepseek-ai/dsh-tool-web": {
|
|
275
|
+
"optional": true
|
|
276
|
+
},
|
|
277
|
+
"@deepseek-ai/dsh-tools": {
|
|
278
|
+
"optional": true
|
|
279
|
+
},
|
|
280
|
+
"@deepseek-ai/dsh-typert-protocol": {
|
|
281
|
+
"optional": true
|
|
282
|
+
}
|
|
173
283
|
},
|
|
174
284
|
"devDependencies": {
|
|
175
285
|
"@deepseek-ai/cordis": "4.1.0",
|
|
176
286
|
"@deepseek-ai/cordis-plugin-group": "1.1.0",
|
|
177
287
|
"@deepseek-ai/cordis-plugin-include": "1.1.0",
|
|
178
288
|
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
179
|
-
"@deepseek-ai/dsh-
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-
|
|
182
|
-
"@deepseek-ai/dsh-
|
|
183
|
-
"
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/dsh-
|
|
186
|
-
"@deepseek-ai/dsh-
|
|
187
|
-
"@deepseek-ai/dsh-
|
|
188
|
-
"@deepseek-ai/dsh-
|
|
189
|
-
"@deepseek-ai/dsh-
|
|
190
|
-
"@deepseek-ai/dsh-
|
|
191
|
-
"@deepseek-ai/dsh-
|
|
192
|
-
"@deepseek-ai/dsh-
|
|
193
|
-
"@deepseek-ai/dsh-
|
|
194
|
-
"@deepseek-ai/dsh-
|
|
195
|
-
"@deepseek-ai/dsh-
|
|
196
|
-
"@deepseek-ai/dsh-
|
|
197
|
-
"@deepseek-ai/dsh-
|
|
198
|
-
"@deepseek-ai/dsh-
|
|
199
|
-
"@deepseek-ai/dsh-
|
|
200
|
-
"@deepseek-ai/dsh-
|
|
201
|
-
"@deepseek-ai/dsh-
|
|
202
|
-
"@deepseek-ai/dsh-
|
|
203
|
-
"@deepseek-ai/dsh-
|
|
204
|
-
"@deepseek-ai/dsh-
|
|
205
|
-
"@deepseek-ai/dsh-
|
|
206
|
-
"@deepseek-ai/dsh-
|
|
207
|
-
"@deepseek-ai/dsh-
|
|
208
|
-
"@deepseek-ai/dsh-
|
|
209
|
-
"@deepseek-ai/dsh-
|
|
210
|
-
"@deepseek-ai/dsh-
|
|
211
|
-
"@deepseek-ai/dsh-
|
|
212
|
-
"@deepseek-ai/dsh-
|
|
213
|
-
"@deepseek-ai/dsh-
|
|
214
|
-
"@deepseek-ai/dsh-
|
|
215
|
-
"@deepseek-ai/dsh-
|
|
216
|
-
"@deepseek-ai/dsh-
|
|
217
|
-
"@deepseek-ai/dsh-
|
|
218
|
-
"@deepseek-ai/dsh-
|
|
219
|
-
"@deepseek-ai/dsh-
|
|
220
|
-
"@deepseek-ai/dsh-
|
|
221
|
-
"@deepseek-ai/dsh-
|
|
222
|
-
"@deepseek-ai/dsh-
|
|
223
|
-
"@deepseek-ai/dsh-
|
|
224
|
-
"@deepseek-ai/dsh-
|
|
225
|
-
"@deepseek-ai/dsh-
|
|
226
|
-
"@deepseek-ai/dsh-
|
|
227
|
-
"@deepseek-ai/dsh-
|
|
228
|
-
"@deepseek-ai/dsh-
|
|
229
|
-
"@deepseek-ai/dsh-
|
|
230
|
-
"@deepseek-ai/dsh-
|
|
231
|
-
"@deepseek-ai/dsh-
|
|
232
|
-
"@deepseek-ai/dsh-
|
|
233
|
-
"@deepseek-ai/dsh-
|
|
234
|
-
"@deepseek-ai/dsh-
|
|
235
|
-
"@deepseek-ai/dsh-session": "0.2.2-rc.
|
|
236
|
-
"@deepseek-ai/dsh-session-
|
|
237
|
-
"@deepseek-ai/dsh-
|
|
238
|
-
"@deepseek-ai/dsh-
|
|
239
|
-
"@deepseek-ai/dsh-
|
|
240
|
-
"@deepseek-ai/dsh-
|
|
241
|
-
"@deepseek-ai/dsh-
|
|
242
|
-
"@deepseek-ai/dsh-
|
|
243
|
-
"@deepseek-ai/dsh-
|
|
244
|
-
"@deepseek-ai/dsh-
|
|
245
|
-
"@deepseek-ai/dsh-
|
|
246
|
-
"@deepseek-ai/dsh-
|
|
247
|
-
"@deepseek-ai/dsh-
|
|
248
|
-
"@deepseek-ai/dsh-
|
|
249
|
-
"@deepseek-ai/dsh-
|
|
250
|
-
"@deepseek-ai/dsh-
|
|
251
|
-
"@deepseek-ai/dsh-
|
|
252
|
-
"@deepseek-ai/dsh-
|
|
253
|
-
"@deepseek-ai/dsh-
|
|
254
|
-
"@deepseek-ai/dsh-
|
|
255
|
-
"@deepseek-ai/dsh-
|
|
256
|
-
"@deepseek-ai/dsh-
|
|
257
|
-
"@deepseek-ai/dsh-
|
|
258
|
-
"@deepseek-ai/dsh-
|
|
259
|
-
"@deepseek-ai/dsh-
|
|
260
|
-
"@deepseek-ai/dsh-
|
|
261
|
-
"@deepseek-ai/dsh-
|
|
262
|
-
"@deepseek-ai/dsh-
|
|
263
|
-
"@deepseek-ai/dsh-
|
|
264
|
-
"@deepseek-ai/dsh-
|
|
265
|
-
"@deepseek-ai/dsh-
|
|
266
|
-
"@deepseek-ai/dsh-
|
|
267
|
-
"@deepseek-ai/dsh-
|
|
268
|
-
"@deepseek-ai/dsh-
|
|
269
|
-
"@deepseek-ai/dsh-
|
|
270
|
-
"@deepseek-ai/dsh-
|
|
271
|
-
"@deepseek-ai/dsh-
|
|
272
|
-
"@deepseek-ai/dsh-
|
|
273
|
-
"@deepseek-ai/dsh-
|
|
274
|
-
"@deepseek-ai/dsh-
|
|
275
|
-
"@deepseek-ai/dsh-
|
|
276
|
-
"@deepseek-ai/dsh-
|
|
277
|
-
"@deepseek-ai/dsh-
|
|
278
|
-
"@deepseek-ai/dsh-util-
|
|
279
|
-
"@deepseek-ai/dsh-util-
|
|
280
|
-
"@deepseek-ai/dsh-
|
|
281
|
-
"@deepseek-ai/dsh-
|
|
282
|
-
"@deepseek-ai/dsh-workflow": "0.2.2-rc.
|
|
283
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.
|
|
284
|
-
"@deepseek-ai/dsh-workspace": "0.2.2-rc.
|
|
289
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
290
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.5",
|
|
291
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.5",
|
|
292
|
+
"@deepseek-ai/dsh-agent-preset": "0.2.2-rc.5",
|
|
293
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.5",
|
|
294
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.5",
|
|
295
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.5",
|
|
296
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.5",
|
|
297
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.2-rc.5",
|
|
298
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.5",
|
|
299
|
+
"@deepseek-ai/dsh-authorization": "0.2.2-rc.5",
|
|
300
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.5",
|
|
301
|
+
"@deepseek-ai/dsh-chunked-list": "0.2.2-rc.5",
|
|
302
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
|
|
303
|
+
"@deepseek-ai/dsh-client-file-upload": "0.2.2-rc.5",
|
|
304
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.5",
|
|
305
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
|
|
306
|
+
"@deepseek-ai/dsh-client-ui-commands": "0.2.2-rc.5",
|
|
307
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.5",
|
|
308
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.5",
|
|
309
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.5",
|
|
310
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.5",
|
|
311
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.5",
|
|
312
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.5",
|
|
313
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.5",
|
|
314
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.5",
|
|
315
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.2-rc.5",
|
|
316
|
+
"@deepseek-ai/dsh-compaction-image-offload": "0.2.2-rc.5",
|
|
317
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.2-rc.5",
|
|
318
|
+
"@deepseek-ai/dsh-config-editor": "0.2.2-rc.5",
|
|
319
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.5",
|
|
320
|
+
"@deepseek-ai/dsh-deque": "0.2.2-rc.5",
|
|
321
|
+
"@deepseek-ai/dsh-error": "0.2.2-rc.5",
|
|
322
|
+
"@deepseek-ai/dsh-file-reference": "0.2.2-rc.5",
|
|
323
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.5",
|
|
324
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.5",
|
|
325
|
+
"@deepseek-ai/dsh-goal": "0.2.2-rc.5",
|
|
326
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.5",
|
|
327
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.2-rc.5",
|
|
328
|
+
"@deepseek-ai/dsh-jobs": "0.2.2-rc.5",
|
|
329
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.2-rc.5",
|
|
330
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
331
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.5",
|
|
332
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.2-rc.5",
|
|
333
|
+
"@deepseek-ai/dsh-persona": "0.2.2-rc.5",
|
|
334
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.2-rc.5",
|
|
335
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.5",
|
|
336
|
+
"@deepseek-ai/dsh-pwsh-local": "0.2.2-rc.5",
|
|
337
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.5",
|
|
338
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.5",
|
|
339
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.5",
|
|
340
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.5",
|
|
341
|
+
"@deepseek-ai/dsh-session-format": "0.2.2-rc.5",
|
|
342
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.2-rc.5",
|
|
343
|
+
"@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.2-rc.5",
|
|
344
|
+
"@deepseek-ai/dsh-session-format-v1-to-v2": "0.2.2-rc.5",
|
|
345
|
+
"@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.2-rc.5",
|
|
346
|
+
"@deepseek-ai/dsh-session-format-v3-to-v4": "0.2.2-rc.5",
|
|
347
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.5",
|
|
348
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.5",
|
|
349
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.5",
|
|
350
|
+
"@deepseek-ai/dsh-session-title": "0.2.2-rc.5",
|
|
351
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.5",
|
|
352
|
+
"@deepseek-ai/dsh-shell": "0.2.2-rc.5",
|
|
353
|
+
"@deepseek-ai/dsh-shell-env": "0.2.2-rc.5",
|
|
354
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.5",
|
|
355
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.2-rc.5",
|
|
356
|
+
"@deepseek-ai/dsh-spill": "0.2.2-rc.5",
|
|
357
|
+
"@deepseek-ai/dsh-storage": "0.2.2-rc.5",
|
|
358
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.2-rc.5",
|
|
359
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.5",
|
|
360
|
+
"@deepseek-ai/dsh-subprocess": "0.2.2-rc.5",
|
|
361
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.5",
|
|
362
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
|
|
363
|
+
"@deepseek-ai/dsh-terminal": "0.2.2-rc.5",
|
|
364
|
+
"@deepseek-ai/dsh-terminal-bash": "0.2.2-rc.5",
|
|
365
|
+
"@deepseek-ai/dsh-timeout": "0.2.2-rc.5",
|
|
366
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.5",
|
|
367
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.2-rc.5",
|
|
368
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.5",
|
|
369
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.2-rc.5",
|
|
370
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.2-rc.5",
|
|
371
|
+
"@deepseek-ai/dsh-tool-goal": "0.2.2-rc.5",
|
|
372
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.2-rc.5",
|
|
373
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.2-rc.5",
|
|
374
|
+
"@deepseek-ai/dsh-tool-ralph": "0.2.2-rc.5",
|
|
375
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.2-rc.5",
|
|
376
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.5",
|
|
377
|
+
"@deepseek-ai/dsh-tool-subagent-control": "0.2.2-rc.5",
|
|
378
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.2-rc.5",
|
|
379
|
+
"@deepseek-ai/dsh-tool-web": "0.2.2-rc.5",
|
|
380
|
+
"@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.5",
|
|
381
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.5",
|
|
382
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.5",
|
|
383
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.5",
|
|
384
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.5",
|
|
385
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.5",
|
|
386
|
+
"@deepseek-ai/dsh-util-crypto": "0.2.2-rc.5",
|
|
387
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-rc.5",
|
|
388
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.5",
|
|
389
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.5",
|
|
390
|
+
"@deepseek-ai/dsh-web": "0.2.2-rc.5",
|
|
391
|
+
"@deepseek-ai/dsh-workflow": "0.2.2-rc.5",
|
|
392
|
+
"@deepseek-ai/dsh-workflow-ptc": "0.2.2-rc.5",
|
|
393
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.5",
|
|
394
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-rc.5",
|
|
285
395
|
"@types/node": "^22.20.0",
|
|
286
396
|
"@types/react": "~18.3.1",
|
|
287
397
|
"@types/react-dom": "~18.3.0",
|
|
398
|
+
"immer": "^10.1.1",
|
|
399
|
+
"js-tiktoken": "^1.0.21",
|
|
288
400
|
"react": "^18.3.1",
|
|
289
401
|
"react-dom": "^18.3.1",
|
|
290
|
-
"zustand": "~4.5.7",
|
|
291
|
-
"immer": "^10.1.1",
|
|
292
402
|
"tsdown": "^0.22.2",
|
|
293
403
|
"typescript": "^6.0.3",
|
|
294
404
|
"unrun": "^0.3.1",
|
|
295
|
-
"vitest": "^4.1.8"
|
|
405
|
+
"vitest": "^4.1.8",
|
|
406
|
+
"zustand": "~4.5.7"
|
|
296
407
|
}
|
|
297
408
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** Profile-backed live preferences on DSH 0.2; legacy hosts keep settings.yaml. */
|
|
2
2
|
import { Service, type Context } from '@deepseek-ai/cordis'
|
|
3
|
+
import type z from '@deepseek-ai/schemastery'
|
|
3
4
|
import { CODEX_SETTINGS_ENTRY, CODEX_SETTINGS_SCHEMA, type CodexSettings } from '../contracts/settings.ts'
|
|
4
5
|
|
|
5
|
-
export const Config = CODEX_SETTINGS_SCHEMA.default(CODEX_SETTINGS_ENTRY).volatile()
|
|
6
|
+
export const Config: z<CodexSettings, CodexSettings, 'volatile-defined'> = CODEX_SETTINGS_SCHEMA.default(CODEX_SETTINGS_ENTRY).volatile()
|
|
6
7
|
|
|
7
8
|
export default class CodexPreferences extends Service {
|
|
8
9
|
static Config = Config
|
|
@@ -12,7 +12,7 @@ export interface Config {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Root volatility keeps saving future-Agent rules from unloading live overlays.
|
|
15
|
-
export const Config = z.object({
|
|
15
|
+
export const Config: z<Config, Config, 'volatile'> = z.object({
|
|
16
16
|
rules: z.array(z.object({
|
|
17
17
|
preset: z.string().required().description('Exact preset id; only Agents created after this plugin loads are affected.'),
|
|
18
18
|
// Bare Schemastery arrays default to []; a union preserves omitted masks.
|
|
@@ -31,7 +31,7 @@ export const Config = z.object({
|
|
|
31
31
|
text: z.string().max(1_000_000).required(),
|
|
32
32
|
}))]).description('Exact current-preset prompt replacements. Order, interpolation and complete semantics remain Host-owned.'),
|
|
33
33
|
})).default([]),
|
|
34
|
-
}).volatile()
|
|
34
|
+
}).volatile() as unknown as z<Config, Config, 'volatile'>
|
|
35
35
|
|
|
36
36
|
/** Loader activations receive a volatile reference; direct callers may pass plain rules. */
|
|
37
37
|
export type ToolPolicyConfigSource = Config | ReturnType<typeof Config>
|