@zhushanwen/zcode-subagent-cli 0.8.0 → 0.8.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/dist/{chunk-REEFBX67.js → chunk-L3M3CMFJ.js} +6 -2
- package/dist/index.cjs +6 -2
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/main.cjs +6 -2
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -2951,13 +2951,17 @@ var ZcodeEngine = class {
|
|
|
2951
2951
|
* COMMON_THOUGHT_LEVELS 之外的档位出声一行提示(措辞是「若不支持将被忽略/回落」的
|
|
2952
2952
|
* 或然警告,非无效断言);是否真不支持由目标模型决定,core 不做权威校验(引擎层
|
|
2953
2953
|
* 不掌握各模型值域)。
|
|
2954
|
+
*
|
|
2955
|
+
* [2026-10-14 措辞同步] thoughtLevel 下发值已改为「按目录值域解析后的档位」
|
|
2956
|
+
* (reasoning 唯一生效通道,见 buildAppServerCreateParams 头注):有值域时
|
|
2957
|
+
* off/minimal 归一最小档、非命中档取非最小档末值;无值域时维持恒等透传。
|
|
2954
2958
|
*/
|
|
2955
2959
|
warnThoughtLevelUncommon(task, ctx) {
|
|
2956
2960
|
const thoughtLevel = task.thinkingLevel?.trim();
|
|
2957
2961
|
if (thoughtLevel === void 0 || thoughtLevel === "") return;
|
|
2958
2962
|
if (COMMON_THOUGHT_LEVELS.includes(thoughtLevel)) return;
|
|
2959
2963
|
logger4.warn(
|
|
2960
|
-
`[zcode-engine] thinkingLevel=${thoughtLevel} \
|
|
2964
|
+
`[zcode-engine] thinkingLevel=${thoughtLevel}\uFF08\u975E\u5E38\u89C1\u6863\u4F4D\uFF09\u2192 \u6309\u6A21\u578B reasoning \u503C\u57DF\u89E3\u6790\u540E\u4E0B\u53D1 thoughtLevel\uFF08\u65E0\u503C\u57DF\u65F6\u6052\u7B49\u900F\u4F20\uFF1Boff/minimal \u5F52\u4E00\u6700\u5C0F\u6863\uFF0C\u975E\u547D\u4E2D\u6863\u53D6\u975E\u6700\u5C0F\u6863\u672B\u503C\uFF1B\u82E5\u76EE\u6807\u6A21\u578B\u4E0D\u652F\u6301\u5C06\u88AB\u5FFD\u7565/\u56DE\u843D\u5230\u6A21\u578B\u7F3A\u7701\u63A8\u7406\u6863\u4F4D\uFF0C\u5E38\u89C1\u6863\u4F4D\uFF1A${COMMON_THOUGHT_LEVELS.join("/")}\uFF09`,
|
|
2961
2965
|
{ taskId: ctx.taskId }
|
|
2962
2966
|
);
|
|
2963
2967
|
}
|
|
@@ -3147,7 +3151,7 @@ Answer again. Output ONLY the JSON value conforming to the schema above \u2014 n
|
|
|
3147
3151
|
}
|
|
3148
3152
|
function buildAppServerCreateParams(task, modelRef, cwd, reasoningLevel) {
|
|
3149
3153
|
const denyTools = (task.denyTools ?? []).filter((t) => typeof t === "string" && t.trim() !== "");
|
|
3150
|
-
const thoughtLevel = task.thinkingLevel?.trim();
|
|
3154
|
+
const thoughtLevel = reasoningLevel !== void 0 && reasoningLevel !== "" ? reasoningLevel : task.thinkingLevel?.trim();
|
|
3151
3155
|
const model = modelRef !== void 0 && modelRef !== "" ? {
|
|
3152
3156
|
...splitZcodeModelRef(modelRef),
|
|
3153
3157
|
...reasoningLevel !== void 0 && reasoningLevel !== "" ? { options: { reasoningLevel } } : {}
|
package/dist/index.cjs
CHANGED
|
@@ -2969,13 +2969,17 @@ var ZcodeEngine = class {
|
|
|
2969
2969
|
* COMMON_THOUGHT_LEVELS 之外的档位出声一行提示(措辞是「若不支持将被忽略/回落」的
|
|
2970
2970
|
* 或然警告,非无效断言);是否真不支持由目标模型决定,core 不做权威校验(引擎层
|
|
2971
2971
|
* 不掌握各模型值域)。
|
|
2972
|
+
*
|
|
2973
|
+
* [2026-10-14 措辞同步] thoughtLevel 下发值已改为「按目录值域解析后的档位」
|
|
2974
|
+
* (reasoning 唯一生效通道,见 buildAppServerCreateParams 头注):有值域时
|
|
2975
|
+
* off/minimal 归一最小档、非命中档取非最小档末值;无值域时维持恒等透传。
|
|
2972
2976
|
*/
|
|
2973
2977
|
warnThoughtLevelUncommon(task, ctx) {
|
|
2974
2978
|
const thoughtLevel = task.thinkingLevel?.trim();
|
|
2975
2979
|
if (thoughtLevel === void 0 || thoughtLevel === "") return;
|
|
2976
2980
|
if (COMMON_THOUGHT_LEVELS.includes(thoughtLevel)) return;
|
|
2977
2981
|
logger4.warn(
|
|
2978
|
-
`[zcode-engine] thinkingLevel=${thoughtLevel} \
|
|
2982
|
+
`[zcode-engine] thinkingLevel=${thoughtLevel}\uFF08\u975E\u5E38\u89C1\u6863\u4F4D\uFF09\u2192 \u6309\u6A21\u578B reasoning \u503C\u57DF\u89E3\u6790\u540E\u4E0B\u53D1 thoughtLevel\uFF08\u65E0\u503C\u57DF\u65F6\u6052\u7B49\u900F\u4F20\uFF1Boff/minimal \u5F52\u4E00\u6700\u5C0F\u6863\uFF0C\u975E\u547D\u4E2D\u6863\u53D6\u975E\u6700\u5C0F\u6863\u672B\u503C\uFF1B\u82E5\u76EE\u6807\u6A21\u578B\u4E0D\u652F\u6301\u5C06\u88AB\u5FFD\u7565/\u56DE\u843D\u5230\u6A21\u578B\u7F3A\u7701\u63A8\u7406\u6863\u4F4D\uFF0C\u5E38\u89C1\u6863\u4F4D\uFF1A${COMMON_THOUGHT_LEVELS.join("/")}\uFF09`,
|
|
2979
2983
|
{ taskId: ctx.taskId }
|
|
2980
2984
|
);
|
|
2981
2985
|
}
|
|
@@ -3165,7 +3169,7 @@ Answer again. Output ONLY the JSON value conforming to the schema above \u2014 n
|
|
|
3165
3169
|
}
|
|
3166
3170
|
function buildAppServerCreateParams(task, modelRef, cwd, reasoningLevel) {
|
|
3167
3171
|
const denyTools = (task.denyTools ?? []).filter((t) => typeof t === "string" && t.trim() !== "");
|
|
3168
|
-
const thoughtLevel = task.thinkingLevel?.trim();
|
|
3172
|
+
const thoughtLevel = reasoningLevel !== void 0 && reasoningLevel !== "" ? reasoningLevel : task.thinkingLevel?.trim();
|
|
3169
3173
|
const model = modelRef !== void 0 && modelRef !== "" ? {
|
|
3170
3174
|
...splitZcodeModelRef(modelRef),
|
|
3171
3175
|
...reasoningLevel !== void 0 && reasoningLevel !== "" ? { options: { reasoningLevel } } : {}
|
package/dist/index.d.cts
CHANGED
|
@@ -295,6 +295,10 @@ declare class ZcodeEngine implements EnginePort {
|
|
|
295
295
|
* COMMON_THOUGHT_LEVELS 之外的档位出声一行提示(措辞是「若不支持将被忽略/回落」的
|
|
296
296
|
* 或然警告,非无效断言);是否真不支持由目标模型决定,core 不做权威校验(引擎层
|
|
297
297
|
* 不掌握各模型值域)。
|
|
298
|
+
*
|
|
299
|
+
* [2026-10-14 措辞同步] thoughtLevel 下发值已改为「按目录值域解析后的档位」
|
|
300
|
+
* (reasoning 唯一生效通道,见 buildAppServerCreateParams 头注):有值域时
|
|
301
|
+
* off/minimal 归一最小档、非命中档取非最小档末值;无值域时维持恒等透传。
|
|
298
302
|
*/
|
|
299
303
|
private warnThoughtLevelUncommon;
|
|
300
304
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -295,6 +295,10 @@ declare class ZcodeEngine implements EnginePort {
|
|
|
295
295
|
* COMMON_THOUGHT_LEVELS 之外的档位出声一行提示(措辞是「若不支持将被忽略/回落」的
|
|
296
296
|
* 或然警告,非无效断言);是否真不支持由目标模型决定,core 不做权威校验(引擎层
|
|
297
297
|
* 不掌握各模型值域)。
|
|
298
|
+
*
|
|
299
|
+
* [2026-10-14 措辞同步] thoughtLevel 下发值已改为「按目录值域解析后的档位」
|
|
300
|
+
* (reasoning 唯一生效通道,见 buildAppServerCreateParams 头注):有值域时
|
|
301
|
+
* off/minimal 归一最小档、非命中档取非最小档末值;无值域时维持恒等透传。
|
|
298
302
|
*/
|
|
299
303
|
private warnThoughtLevelUncommon;
|
|
300
304
|
/**
|
package/dist/index.js
CHANGED
package/dist/main.cjs
CHANGED
|
@@ -2949,13 +2949,17 @@ var ZcodeEngine = class {
|
|
|
2949
2949
|
* COMMON_THOUGHT_LEVELS 之外的档位出声一行提示(措辞是「若不支持将被忽略/回落」的
|
|
2950
2950
|
* 或然警告,非无效断言);是否真不支持由目标模型决定,core 不做权威校验(引擎层
|
|
2951
2951
|
* 不掌握各模型值域)。
|
|
2952
|
+
*
|
|
2953
|
+
* [2026-10-14 措辞同步] thoughtLevel 下发值已改为「按目录值域解析后的档位」
|
|
2954
|
+
* (reasoning 唯一生效通道,见 buildAppServerCreateParams 头注):有值域时
|
|
2955
|
+
* off/minimal 归一最小档、非命中档取非最小档末值;无值域时维持恒等透传。
|
|
2952
2956
|
*/
|
|
2953
2957
|
warnThoughtLevelUncommon(task, ctx) {
|
|
2954
2958
|
const thoughtLevel = task.thinkingLevel?.trim();
|
|
2955
2959
|
if (thoughtLevel === void 0 || thoughtLevel === "") return;
|
|
2956
2960
|
if (COMMON_THOUGHT_LEVELS.includes(thoughtLevel)) return;
|
|
2957
2961
|
logger4.warn(
|
|
2958
|
-
`[zcode-engine] thinkingLevel=${thoughtLevel} \
|
|
2962
|
+
`[zcode-engine] thinkingLevel=${thoughtLevel}\uFF08\u975E\u5E38\u89C1\u6863\u4F4D\uFF09\u2192 \u6309\u6A21\u578B reasoning \u503C\u57DF\u89E3\u6790\u540E\u4E0B\u53D1 thoughtLevel\uFF08\u65E0\u503C\u57DF\u65F6\u6052\u7B49\u900F\u4F20\uFF1Boff/minimal \u5F52\u4E00\u6700\u5C0F\u6863\uFF0C\u975E\u547D\u4E2D\u6863\u53D6\u975E\u6700\u5C0F\u6863\u672B\u503C\uFF1B\u82E5\u76EE\u6807\u6A21\u578B\u4E0D\u652F\u6301\u5C06\u88AB\u5FFD\u7565/\u56DE\u843D\u5230\u6A21\u578B\u7F3A\u7701\u63A8\u7406\u6863\u4F4D\uFF0C\u5E38\u89C1\u6863\u4F4D\uFF1A${COMMON_THOUGHT_LEVELS.join("/")}\uFF09`,
|
|
2959
2963
|
{ taskId: ctx.taskId }
|
|
2960
2964
|
);
|
|
2961
2965
|
}
|
|
@@ -3145,7 +3149,7 @@ Answer again. Output ONLY the JSON value conforming to the schema above \u2014 n
|
|
|
3145
3149
|
}
|
|
3146
3150
|
function buildAppServerCreateParams(task, modelRef, cwd, reasoningLevel) {
|
|
3147
3151
|
const denyTools = (task.denyTools ?? []).filter((t) => typeof t === "string" && t.trim() !== "");
|
|
3148
|
-
const thoughtLevel = task.thinkingLevel?.trim();
|
|
3152
|
+
const thoughtLevel = reasoningLevel !== void 0 && reasoningLevel !== "" ? reasoningLevel : task.thinkingLevel?.trim();
|
|
3149
3153
|
const model = modelRef !== void 0 && modelRef !== "" ? {
|
|
3150
3154
|
...splitZcodeModelRef(modelRef),
|
|
3151
3155
|
...reasoningLevel !== void 0 && reasoningLevel !== "" ? { options: { reasoningLevel } } : {}
|
package/dist/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/zcode-subagent-cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "zcode subagent engine as an independent CLI package (W5 of subagent-engine-protocolization): speaks engine-protocol v1 over NDJSON stdio, depends only on @zhushanwen/subagent-engine-sdk (never subagent-core)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|