@lmzhen/dsh-evolution-core 0.37.0 → 0.37.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/lib/composition/index.js +2 -2
- package/lib/{composition-3QFfEe56.js → composition-DckDtQTR.js} +1 -1
- package/lib/{ensure-C2tUoF5U.js → ensure-CLF9YeBD.js} +1 -1
- package/lib/{errors-DRZ9A187.js → errors-DUcEoTLR.js} +4 -4
- package/lib/index.js +11 -11
- package/lib/restrictor.js +1 -1
- package/lib/subagent/index.js +1 -1
- package/lib/types/errors.d.ts +4 -4
- package/lib/types/errors.js +4 -4
- package/lib/types/params.js +7 -7
- package/package.json +2 -2
package/lib/composition/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as entryListSchema, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, h as restrictedPresetId, i as composeRestrictedPresetDefinition, l as RESTRICTED_PRESET_DELIVERY, m as normalizeAllow, n as ensureRestrictedPreset, o as parsePresetRows, p as REVIEWER_PRESET_ID, r as restrictedPresetState, s as EVOLUTION_PRESET_IDS, t as disposeRestrictedPreset, u as RESTRICTED_PRESET_DISPLAY } from "../ensure-
|
|
2
|
-
import { C as trimTrailingBlankLines, S as rowSiblingEnd, _ as presetRowId, a as composePresetComposition, b as resolveBasePresetPatch, c as composePresetRow, d as listDirectories, f as loadRowOverrides, g as presetRowBody, h as presetRowBlock, i as basePresetPlugins, l as compositionRowIds, m as presetPatchText, n as AGENT_PRESET_ROOT_HINT, o as composePresetEntry, p as mergePresetRow, r as EMPTY_PATCH_SEED, s as composePresetInsert, t as AGENT_PRESET_PACKAGE, u as denseBlockSequence, v as probeDesktopScope, x as rowBlockSpan, y as removePresetRow } from "../composition-
|
|
1
|
+
import { a as entryListSchema, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, h as restrictedPresetId, i as composeRestrictedPresetDefinition, l as RESTRICTED_PRESET_DELIVERY, m as normalizeAllow, n as ensureRestrictedPreset, o as parsePresetRows, p as REVIEWER_PRESET_ID, r as restrictedPresetState, s as EVOLUTION_PRESET_IDS, t as disposeRestrictedPreset, u as RESTRICTED_PRESET_DISPLAY } from "../ensure-CLF9YeBD.js";
|
|
2
|
+
import { C as trimTrailingBlankLines, S as rowSiblingEnd, _ as presetRowId, a as composePresetComposition, b as resolveBasePresetPatch, c as composePresetRow, d as listDirectories, f as loadRowOverrides, g as presetRowBody, h as presetRowBlock, i as basePresetPlugins, l as compositionRowIds, m as presetPatchText, n as AGENT_PRESET_ROOT_HINT, o as composePresetEntry, p as mergePresetRow, r as EMPTY_PATCH_SEED, s as composePresetInsert, t as AGENT_PRESET_PACKAGE, u as denseBlockSequence, v as probeDesktopScope, x as rowBlockSpan, y as removePresetRow } from "../composition-DckDtQTR.js";
|
|
3
3
|
export { AGENT_PRESET_PACKAGE, AGENT_PRESET_ROOT_HINT, EMPTY_PATCH_SEED, EVOLUTION_PRESET_IDS, MAINTAINER_PRESET_ID, RESTRICTED_PRESET_DELIVERY, RESTRICTED_PRESET_DISPLAY, RESTRICTED_TOOLS_ROW_ID, RESTRICTOR_MODULE, REVIEWER_PRESET_ID, basePresetPlugins, composePresetComposition, composePresetEntry, composePresetInsert, composePresetRow, composeRestrictedPresetDefinition, compositionRowIds, denseBlockSequence, disposeRestrictedPreset, ensureRestrictedPreset, entryListSchema, listDirectories, loadRowOverrides, mergePresetRow, normalizeAllow, parsePresetRows, presetPatchText, presetRowBlock, presetRowBody, presetRowId, probeDesktopScope, removePresetRow, resolveBasePresetPatch, restrictedPresetId, restrictedPresetState, rowBlockSpan, rowSiblingEnd, trimTrailingBlankLines };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as scopedPackageName } from "./ensure-
|
|
1
|
+
import { _ as scopedPackageName } from "./ensure-CLF9YeBD.js";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -39,11 +39,11 @@ const EVOLUTION_ERRORS = Object.freeze({
|
|
|
39
39
|
"e-326-support-write-without-a-read": "E-326: 本会话没有读取技能 \"%a1%\" 的支撑文件 \"%a2%\",因此拒绝这次写入。只读技能正文不算读过支撑文件;请先读取该文件(失败的读取不算),然后重复该写入。",
|
|
40
40
|
"e-320-the-profile-home-is-not": "E-320: 本宿主没有报告 profile home,因此无法定位旧设置文档。/evolution migrate 读取 `<profile home>/settings.yaml.imported`;请在由 profile 启动的会话里运行。",
|
|
41
41
|
"e-322-a-parameter-would-break-a": "E-322: %a1% 至少应为 %a2%,但这次写入把它设成 %a3%。未写入任何内容。",
|
|
42
|
-
"e-321-no-io-provider-is": "E-321:
|
|
42
|
+
"e-321-no-io-provider-is": "E-321: 缺少数据读写组件 evolution-io,暂时读不到旧设置。请安装或启用 evolution-io 后重试。",
|
|
43
43
|
"e-319-skill-write-confirm-timed-out": "E-319: 技能 \"%a1%\" 未被%a2% —— 确认提示在 %a3% 秒内无人应答,因此该写入被取消。没有人在场决定:把 `skillWriteConfirm` 设为 `auto` 可免提示直接写入,保留 `ask` 则一直等到有人应答,或提高 `skillWriteConfirmTimeoutSeconds`。",
|
|
44
|
-
"e-323-subagent-channel-unavailable": "E-323:
|
|
45
|
-
"e-324-restricted-preset-unavailable": "E-324:
|
|
46
|
-
"e-325-host-data-plane-unavailable": "E-325:
|
|
44
|
+
"e-323-subagent-channel-unavailable": "E-323: 审阅/维护代理不可用:程序缺少 subagents/agentPresets 服务,或当前运行方式不支持只读代理。审阅/维护会明确标为不可用,不会静默改在当前会话里跑。运行 /evolution doctor 查看原因。",
|
|
45
|
+
"e-324-restricted-preset-unavailable": "E-324: 只读模式创建失败:%a1%。审阅/维护暂时不可用;运行 /evolution doctor 查看原因。",
|
|
46
|
+
"e-325-host-data-plane-unavailable": "E-325: 页面拿不到平台连接(缺少 connection 服务),面板与审批不会注册。可改用 /evolution pending、approve、reject 命令完成同样的事;详情见 /evolution doctor。"
|
|
47
47
|
});
|
|
48
48
|
/**
|
|
49
49
|
* Render one table entry, substituting its interpolation slots.
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as scopedPackageName, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, g as scopeOfNearestManifest, p as REVIEWER_PRESET_ID, s as EVOLUTION_PRESET_IDS, u as RESTRICTED_PRESET_DISPLAY } from "./ensure-
|
|
1
|
+
import { _ as scopedPackageName, c as MAINTAINER_PRESET_ID, d as RESTRICTED_TOOLS_ROW_ID, f as RESTRICTOR_MODULE, g as scopeOfNearestManifest, p as REVIEWER_PRESET_ID, s as EVOLUTION_PRESET_IDS, u as RESTRICTED_PRESET_DISPLAY } from "./ensure-CLF9YeBD.js";
|
|
2
2
|
import { a as methodNotAllowed, c as asRecord, i as json, l as isRecord, n as MAX_REQUEST_BODY_BYTES, o as readJsonObject, r as hostSurface, s as registerHostRoutes, t as HOST_ROUTES } from "./http-routes-_anZVlPf.js";
|
|
3
|
-
import { w as allowRowCollisions } from "./composition-
|
|
4
|
-
import { n as errorText, t as EVOLUTION_ERRORS } from "./errors-
|
|
3
|
+
import { w as allowRowCollisions } from "./composition-DckDtQTR.js";
|
|
4
|
+
import { n as errorText, t as EVOLUTION_ERRORS } from "./errors-DUcEoTLR.js";
|
|
5
5
|
import { createSubagentChannel, probeChannelState, subagentChannelState } from "./subagent/index.js";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -16849,7 +16849,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
16849
16849
|
docAnchor: "PARAMETERS.md#write-caps",
|
|
16850
16850
|
summary: "Character cap on a SKILL.md body (tighten-only).",
|
|
16851
16851
|
label: "技能文件正文上限",
|
|
16852
|
-
hint: "技能 Markdown
|
|
16852
|
+
hint: "技能 Markdown 正文最多多少字符(只能调小,不能超过出厂上限)。",
|
|
16853
16853
|
control: "number",
|
|
16854
16854
|
unit: "字符",
|
|
16855
16855
|
values: "",
|
|
@@ -16865,7 +16865,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
16865
16865
|
docAnchor: "PARAMETERS.md#write-caps",
|
|
16866
16866
|
summary: "Byte cap on one support file (tighten-only).",
|
|
16867
16867
|
label: "附带文件大小上限",
|
|
16868
|
-
hint: "
|
|
16868
|
+
hint: "技能附带文件单个最大多少字节(只能调小,不能超过出厂上限)。",
|
|
16869
16869
|
control: "number",
|
|
16870
16870
|
unit: "字节",
|
|
16871
16871
|
values: "",
|
|
@@ -17243,8 +17243,8 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
17243
17243
|
applies: "live",
|
|
17244
17244
|
docAnchor: "PARAMETERS.md#curator",
|
|
17245
17245
|
summary: "Token budget of the curator LLM review.",
|
|
17246
|
-
label: "
|
|
17247
|
-
hint: "每次用模型挑选时最多消耗多少 token
|
|
17246
|
+
label: "模型挑选的字数上限",
|
|
17247
|
+
hint: "每次用模型挑选时最多消耗多少 token(模型计费单位)。",
|
|
17248
17248
|
control: "number",
|
|
17249
17249
|
unit: "token",
|
|
17250
17250
|
values: "",
|
|
@@ -17291,7 +17291,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
17291
17291
|
applies: "live",
|
|
17292
17292
|
docAnchor: "PARAMETERS.md#curator",
|
|
17293
17293
|
summary: "Stamp density per KB that flags log-like content in a body.",
|
|
17294
|
-
label: "
|
|
17294
|
+
label: "正文像日志的判定线",
|
|
17295
17295
|
hint: "每 KB 出现多少个时间标记,就判为「像日志」。",
|
|
17296
17296
|
control: "number",
|
|
17297
17297
|
unit: "处/KB",
|
|
@@ -17752,7 +17752,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
17752
17752
|
applies: "live",
|
|
17753
17753
|
docAnchor: "PARAMETERS.md#deployment",
|
|
17754
17754
|
summary: "Master approval switch: run the approval pipeline for foreground writes.",
|
|
17755
|
-
label: "
|
|
17755
|
+
label: "启用写入审批",
|
|
17756
17756
|
hint: "关闭后前台写入不再经批准。",
|
|
17757
17757
|
control: "switch",
|
|
17758
17758
|
unit: "",
|
|
@@ -17780,7 +17780,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
17780
17780
|
docAnchor: "PARAMETERS.md#deployment",
|
|
17781
17781
|
summary: "How long a staged write may wait before it expires: expired writes are closed as rejected and are NEVER executed; 0 (the default) means the window never expires.",
|
|
17782
17782
|
label: "待批过期时间",
|
|
17783
|
-
hint: "
|
|
17783
|
+
hint: "一条待批写入最多等多久:超时后按「拒绝」处理,不会执行,也不会改动任何内容;0 表示一直保留(默认)。",
|
|
17784
17784
|
control: "number",
|
|
17785
17785
|
unit: "毫秒",
|
|
17786
17786
|
values: "",
|
|
@@ -17857,7 +17857,7 @@ const PARAM_EXPOSURE = Object.freeze([
|
|
|
17857
17857
|
docAnchor: "PARAMETERS.md#deployment",
|
|
17858
17858
|
summary: "Hand the maintenance report to the model automatically once a scan settles successfully (the same injection as maintain handoff); off by default — enabling it costs one extra model call per successful run.",
|
|
17859
17859
|
label: "扫描完成后自动交接",
|
|
17860
|
-
hint: "
|
|
17860
|
+
hint: "维护扫描成功结束后,自动把报告交给模型;默认关闭,每次成功扫描会多花一次模型调用。",
|
|
17861
17861
|
control: "switch",
|
|
17862
17862
|
unit: "",
|
|
17863
17863
|
values: "",
|
package/lib/restrictor.js
CHANGED
package/lib/subagent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as restrictedPresetId, n as ensureRestrictedPreset, r as restrictedPresetState } from "../ensure-
|
|
1
|
+
import { h as restrictedPresetId, n as ensureRestrictedPreset, r as restrictedPresetState } from "../ensure-CLF9YeBD.js";
|
|
2
2
|
//#region lib/types/subagent/readiness.js
|
|
3
3
|
function serviceOf$1(ctx, name) {
|
|
4
4
|
return ctx.get(name);
|
package/lib/types/errors.d.ts
CHANGED
|
@@ -38,11 +38,11 @@ export declare const EVOLUTION_ERRORS: Readonly<{
|
|
|
38
38
|
readonly 'e-326-support-write-without-a-read': "E-326: 本会话没有读取技能 \"%a1%\" 的支撑文件 \"%a2%\",因此拒绝这次写入。只读技能正文不算读过支撑文件;请先读取该文件(失败的读取不算),然后重复该写入。";
|
|
39
39
|
readonly 'e-320-the-profile-home-is-not': "E-320: 本宿主没有报告 profile home,因此无法定位旧设置文档。/evolution migrate 读取 `<profile home>/settings.yaml.imported`;请在由 profile 启动的会话里运行。";
|
|
40
40
|
readonly 'e-322-a-parameter-would-break-a': "E-322: %a1% 至少应为 %a2%,但这次写入把它设成 %a3%。未写入任何内容。";
|
|
41
|
-
readonly 'e-321-no-io-provider-is': "E-321:
|
|
41
|
+
readonly 'e-321-no-io-provider-is': "E-321: 缺少数据读写组件 evolution-io,暂时读不到旧设置。请安装或启用 evolution-io 后重试。";
|
|
42
42
|
readonly 'e-319-skill-write-confirm-timed-out': "E-319: 技能 \"%a1%\" 未被%a2% —— 确认提示在 %a3% 秒内无人应答,因此该写入被取消。没有人在场决定:把 `skillWriteConfirm` 设为 `auto` 可免提示直接写入,保留 `ask` 则一直等到有人应答,或提高 `skillWriteConfirmTimeoutSeconds`。";
|
|
43
|
-
readonly 'e-323-subagent-channel-unavailable': "E-323:
|
|
44
|
-
readonly 'e-324-restricted-preset-unavailable': "E-324:
|
|
45
|
-
readonly 'e-325-host-data-plane-unavailable': "E-325:
|
|
43
|
+
readonly 'e-323-subagent-channel-unavailable': "E-323: 审阅/维护代理不可用:程序缺少 subagents/agentPresets 服务,或当前运行方式不支持只读代理。审阅/维护会明确标为不可用,不会静默改在当前会话里跑。运行 /evolution doctor 查看原因。";
|
|
44
|
+
readonly 'e-324-restricted-preset-unavailable': "E-324: 只读模式创建失败:%a1%。审阅/维护暂时不可用;运行 /evolution doctor 查看原因。";
|
|
45
|
+
readonly 'e-325-host-data-plane-unavailable': "E-325: 页面拿不到平台连接(缺少 connection 服务),面板与审批不会注册。可改用 /evolution pending、approve、reject 命令完成同样的事;详情见 /evolution doctor。";
|
|
46
46
|
}>;
|
|
47
47
|
/** One table key. */
|
|
48
48
|
export type EvolutionErrorId = keyof typeof EVOLUTION_ERRORS;
|
package/lib/types/errors.js
CHANGED
|
@@ -42,11 +42,11 @@ export const EVOLUTION_ERRORS = Object.freeze({
|
|
|
42
42
|
// G5.12/U-4: the cross-field constraint the registry declares (params.ts) has one enforcement
|
|
43
43
|
// point, and this is its message. The card shows the same relation before a save is attempted.
|
|
44
44
|
'e-322-a-parameter-would-break-a': 'E-322: %a1% 至少应为 %a2%,但这次写入把它设成 %a3%。未写入任何内容。',
|
|
45
|
-
'e-321-no-io-provider-is': 'E-321:
|
|
45
|
+
'e-321-no-io-provider-is': 'E-321: 缺少数据读写组件 evolution-io,暂时读不到旧设置。请安装或启用 evolution-io 后重试。',
|
|
46
46
|
'e-319-skill-write-confirm-timed-out': 'E-319: 技能 "%a1%" 未被%a2% —— 确认提示在 %a3% 秒内无人应答,因此该写入被取消。没有人在场决定:把 `skillWriteConfirm` 设为 `auto` 可免提示直接写入,保留 `ask` 则一直等到有人应答,或提高 `skillWriteConfirmTimeoutSeconds`。',
|
|
47
|
-
'e-323-subagent-channel-unavailable': 'E-323:
|
|
48
|
-
'e-324-restricted-preset-unavailable': 'E-324:
|
|
49
|
-
'e-325-host-data-plane-unavailable': 'E-325:
|
|
47
|
+
'e-323-subagent-channel-unavailable': 'E-323: 审阅/维护代理不可用:程序缺少 subagents/agentPresets 服务,或当前运行方式不支持只读代理。审阅/维护会明确标为不可用,不会静默改在当前会话里跑。运行 /evolution doctor 查看原因。',
|
|
48
|
+
'e-324-restricted-preset-unavailable': 'E-324: 只读模式创建失败:%a1%。审阅/维护暂时不可用;运行 /evolution doctor 查看原因。',
|
|
49
|
+
'e-325-host-data-plane-unavailable': 'E-325: 页面拿不到平台连接(缺少 connection 服务),面板与审批不会注册。可改用 /evolution pending、approve、reject 命令完成同样的事;详情见 /evolution doctor。',
|
|
50
50
|
});
|
|
51
51
|
/**
|
|
52
52
|
* Render one table entry, substituting its interpolation slots.
|
package/lib/types/params.js
CHANGED
|
@@ -114,8 +114,8 @@ export const PARAM_EXPOSURE = Object.freeze([
|
|
|
114
114
|
{ id: 'reviewMessageChars', group: 'review', tier: 'E2', authority: 'cordis', owner: 'evolution-review', applies: 'none', docAnchor: 'PARAMETERS.md#review', summary: 'Per-message character budget of the review context.', why: 'internal' },
|
|
115
115
|
{ id: 'reviewMaxDepth', group: 'review', tier: 'E2', authority: 'cordis', owner: 'evolution-review', applies: 'none', docAnchor: 'PARAMETERS.md#review', summary: 'Absolute delegation-depth cap of the review subagent.', why: 'internal' },
|
|
116
116
|
{ id: 'reviewToolAllow', group: 'review', tier: 'E2', authority: 'cordis', owner: 'evolution-review', applies: 'none', docAnchor: 'PARAMETERS.md#review', summary: 'Tools the review subagent may use (safety surface).', why: 'security' },
|
|
117
|
-
{ id: 'skillContentChars', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Character cap on a SKILL.md body (tighten-only).', label: '技能文件正文上限', hint: '技能 Markdown
|
|
118
|
-
{ id: 'maxSkillFileBytes', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Byte cap on one support file (tighten-only).', label: '附带文件大小上限', hint: '
|
|
117
|
+
{ id: 'skillContentChars', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Character cap on a SKILL.md body (tighten-only).', label: '技能文件正文上限', hint: '技能 Markdown 正文最多多少字符(只能调小,不能超过出厂上限)。', control: 'number', unit: '字符', values: '', card: 'tool-skill-manage' },
|
|
118
|
+
{ id: 'maxSkillFileBytes', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Byte cap on one support file (tighten-only).', label: '附带文件大小上限', hint: '技能附带文件单个最大多少字节(只能调小,不能超过出厂上限)。', control: 'number', unit: '字节', values: '', card: 'tool-skill-manage' },
|
|
119
119
|
{ id: 'maxSkillNameLength', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Character cap on a skill name (tighten-only).', label: '技能名长度上限', hint: '技能名最多多少字符(只能调小)。', control: 'number', unit: '字符', values: '', card: 'tool-skill-manage' },
|
|
120
120
|
{ id: 'maxDescriptionLength', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Character cap on a skill description (tighten-only).', label: '技能描述长度上限', hint: '技能描述最多多少字符(只能调小)。', control: 'number', unit: '字符', values: '', card: 'tool-skill-manage' },
|
|
121
121
|
{ id: 'descriptionStrict', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'tool-skill-manage', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'Refuse a description over the authoring bar instead of advising.', label: '描述不合规即拒绝', hint: '描述不符合要求时直接拒绝写入(默认只提醒)。', control: 'switch', unit: '', values: '', card: 'tool-skill-manage' },
|
|
@@ -140,10 +140,10 @@ export const PARAM_EXPOSURE = Object.freeze([
|
|
|
140
140
|
{ id: 'minIdleHours', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Idle hours required before an automatic curation pass runs.', label: '最少空闲时长', hint: '你至少多少小时没用,才运行自动整理。', control: 'number', unit: '小时', values: '', card: 'evolution-curator' },
|
|
141
141
|
{ id: 'minIdleFailOpen', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Let the idle gate open when the activity probe is unavailable.', label: '检测不到活动也运行', hint: '无法判断你是否空闲时,仍然运行自动整理。', control: 'switch', unit: '', values: '', card: 'evolution-curator' },
|
|
142
142
|
{ id: 'llmReview', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Enable the LLM nomination pass on top of the deterministic lifecycle.', label: '用模型挑选', hint: '在固定规则之外,再用模型挑一遍候选项。', control: 'switch', unit: '', values: '', card: 'evolution-curator' },
|
|
143
|
-
{ id: 'curatorReviewMaxTokens', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Token budget of the curator LLM review.', label: '
|
|
143
|
+
{ id: 'curatorReviewMaxTokens', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Token budget of the curator LLM review.', label: '模型挑选的字数上限', hint: '每次用模型挑选时最多消耗多少 token(模型计费单位)。', control: 'number', unit: 'token', values: '', card: 'evolution-curator' },
|
|
144
144
|
{ id: 'curatorReviewTimeoutMs', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Wall-clock bound of the curator LLM review.', label: '模型处理超时', hint: '一次模型挑选最长允许运行多久。', control: 'number', unit: '毫秒', values: '', card: 'evolution-curator' },
|
|
145
145
|
{ id: 'healthSoftBodyChars', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Body character line the health view judges against.', label: '正文长度参考值', hint: '技能正文超过多少字符算偏长(只用于健康提示)。', control: 'number', unit: '字符', values: '', card: 'evolution-curator' },
|
|
146
|
-
{ id: 'healthStampDensityPerKb', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Stamp density per KB that flags log-like content in a body.', label: '
|
|
146
|
+
{ id: 'healthStampDensityPerKb', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Stamp density per KB that flags log-like content in a body.', label: '正文像日志的判定线', hint: '每 KB 出现多少个时间标记,就判为「像日志」。', control: 'number', unit: '处/KB', values: '', card: 'evolution-curator' },
|
|
147
147
|
{ id: 'healthChurnMinPatches', group: 'curator', tier: 'E3', authority: 'cordis', owner: 'evolution-curator', applies: 'live', docAnchor: 'PARAMETERS.md#curator', summary: 'Patches without a read that flag a write-ghost skill.', label: '只写不读判定次数', hint: '连续多少次改动都没有被读取,就判为「只写不读」。', control: 'number', unit: '处', values: '', card: 'evolution-curator' },
|
|
148
148
|
{ id: 'evolution-curator.enabled', group: 'curator', tier: 'E2', authority: 'cordis', owner: 'evolution-curator', applies: 'none', docAnchor: 'PARAMETERS.md#curator', summary: 'Mount the curator plugin at all.', why: 'deployment' },
|
|
149
149
|
{ id: 'autoStart', group: 'curator', tier: 'E2', authority: 'cordis', owner: 'evolution-curator', applies: 'none', docAnchor: 'PARAMETERS.md#curator', summary: 'Arm the hourly due-ness tick with the plugin — the STARTUP default only; at runtime /evolution curator pause or resume overrides it (the override is persisted in curation state and wins until cleared). Off keeps curation manual.', why: 'deployment' },
|
|
@@ -184,15 +184,15 @@ export const PARAM_EXPOSURE = Object.freeze([
|
|
|
184
184
|
{ id: 'threatExemptLabels', group: 'deployment', tier: 'E1', authority: 'cordis', owner: 'evolution-threat', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Threat labels the deployment declares benign (safety surface, never user-writable).', why: 'security' },
|
|
185
185
|
{ id: 'evolution-threat.enabled', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-threat', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Mount the write-time threat guard at all.', why: 'security' },
|
|
186
186
|
{ id: 'evolution-threat.maxScanChars', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-threat', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Scan window size of the threat guard.', why: 'security' },
|
|
187
|
-
{ id: 'evolution-approval.enabled', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-approval', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'Master approval switch: run the approval pipeline for foreground writes.', label: '
|
|
187
|
+
{ id: 'evolution-approval.enabled', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-approval', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'Master approval switch: run the approval pipeline for foreground writes.', label: '启用写入审批', hint: '关闭后前台写入不再经批准。', control: 'switch', unit: '', values: '', card: 'evolution-approval' },
|
|
188
188
|
{ id: 'evolution-approval.stageForeground', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-approval', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Stage foreground agent writes for approval too.', why: 'security' },
|
|
189
|
-
{ id: 'evolution-approval.pendingTtlMs', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-approval', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'How long a staged write may wait before it expires: expired writes are closed as rejected and are NEVER executed; 0 (the default) means the window never expires.', label: '待批过期时间', hint: '
|
|
189
|
+
{ id: 'evolution-approval.pendingTtlMs', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-approval', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'How long a staged write may wait before it expires: expired writes are closed as rejected and are NEVER executed; 0 (the default) means the window never expires.', label: '待批过期时间', hint: '一条待批写入最多等多久:超时后按「拒绝」处理,不会执行,也不会改动任何内容;0 表示一直保留(默认)。', control: 'number', unit: '毫秒', values: '', card: 'evolution-approval' },
|
|
190
190
|
{ id: 'approvalConfirm', group: 'write-caps', tier: 'E3', authority: 'cordis', owner: 'evolution-approval', applies: 'live', docAnchor: 'PARAMETERS.md#write-caps', summary: 'What the confirmation before an APPROVE does: execute immediately, or ask first.', label: '批准前先确认', hint: '点「批准」时要不要再确认一次:直接执行 / 先确认。默认直接执行(不打断批量批准)。', control: 'select', unit: '', values: 'auto|ask', valueLabels: '直接执行|先确认', card: 'evolution-approval' },
|
|
191
191
|
{ id: 'qualityWarnThreshold', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-feedback', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Feedback score below which a skill carries a warning.', why: 'internal' },
|
|
192
192
|
{ id: 'replay.maxPlans', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-replay', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Plans compared in one replay report.', why: 'internal' },
|
|
193
193
|
{ id: 'replay.weights', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-replay', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Scoring weights of the replay comparison.', why: 'internal' },
|
|
194
194
|
{ id: 'evolution-commands.maintainCooldownMs', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-commands', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Cooldown between maintenance runs from the command surface.', why: 'internal' },
|
|
195
|
-
{ id: 'evolution-commands.maintainHandoffOnSettle', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-commands', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'Hand the maintenance report to the model automatically once a scan settles successfully (the same injection as maintain handoff); off by default — enabling it costs one extra model call per successful run.', label: '扫描完成后自动交接', hint: '
|
|
195
|
+
{ id: 'evolution-commands.maintainHandoffOnSettle', group: 'deployment', tier: 'E3', authority: 'cordis', owner: 'evolution-commands', applies: 'live', docAnchor: 'PARAMETERS.md#deployment', summary: 'Hand the maintenance report to the model automatically once a scan settles successfully (the same injection as maintain handoff); off by default — enabling it costs one extra model call per successful run.', label: '扫描完成后自动交接', hint: '维护扫描成功结束后,自动把报告交给模型;默认关闭,每次成功扫描会多花一次模型调用。', control: 'switch', unit: '', values: '', card: 'evolution-commands' },
|
|
196
196
|
{ id: 'evolution-commands.maintainTimeoutMs', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-commands', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Timeout of one maintenance run started from the command surface.', why: 'internal' },
|
|
197
197
|
{ id: 'evolution-maintenance.probeTimeoutMs', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'evolution-maintenance', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Model-facing budget of one maintenance_probe call — a hang guard, not a latency budget.', why: 'internal' },
|
|
198
198
|
{ id: 'skill-usage.supportReadToolNames', group: 'deployment', tier: 'E2', authority: 'cordis', owner: 'skill-usage', applies: 'none', docAnchor: 'PARAMETERS.md#deployment', summary: 'Tool names whose file reads are attributed to support files.', why: 'internal' },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-core",
|
|
3
3
|
"description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
|
|
4
|
-
"version": "0.37.
|
|
4
|
+
"version": "0.37.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"yaml": "^2.4.2",
|
|
50
50
|
"zod": "^4.4.3",
|
|
51
51
|
"js-yaml": "^4.1.0",
|
|
52
|
-
"@lmzhen/dsh-evolution-contract": "^0.37.
|
|
52
|
+
"@lmzhen/dsh-evolution-contract": "^0.37.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.5",
|