@tscgoods/claude-code-effort-discovery 0.4.4 → 0.5.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "effort-discovery",
3
- "version": "0.3.0",
4
- "description": "Discover which reasoning-effort levels your gateway model accepts, then cap Claude Code's /effort picker to the supported ones.",
3
+ "version": "0.5.2",
4
+ "description": "Report gateway effort evidence and optionally set Claude Code's maximum effort level.",
5
5
  "author": {
6
6
  "name": "tscgoods"
7
7
  },
@@ -24,4 +24,4 @@
24
24
  "integrate.api.nvidia.com"
25
25
  ]
26
26
  }
27
- }
27
+ }
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @tscgoods/claude-code-effort-discovery
2
2
 
3
- Claude Code 插件:探测你的网关对每个模型**真正接受**的 reasoning effort 档位,并把 `/effort` 收窄到这些档位。
3
+ Claude Code 插件:探测 Anthropic Messages 路由的 effort 声明,提供会话提示和可选的上限配置。固定菜单不能表达任意档位集合。
4
4
 
5
5
  Claude Code 2.1.x 里 effort 是 `low / medium / high / xhigh / max`(客户端固定枚举),但网关不一定会全部接受。插件做三件事:
6
6
 
7
- 1. **探测**:对 `{ANTHROPIC_BASE_URL}/v1/messages` 用 `output_config.effort` 从 `max` 往 `low` 逐级试,2xx 即视为可用;
7
+ 1. **探测**:先发送非法 `output_config.effort`,再根据错误回显或逐档请求收集证据;单档 2xx 不保证实际生效;
8
8
  2. **报告**:会话启动 / 切换模型时,把“当前模型支持哪些档位”作为 systemMessage + additionalContext 交给 Claude;
9
9
  3. **收窄**:按需把 `maxEffortLevel` 写进 `~/.claude/settings.json`,让 `/effort` 选择器不再展示高于实测上限的档位。
10
10
 
@@ -33,7 +33,7 @@ Claude Code 2.1.x 里 effort 是 `low / medium / high / xhigh / max`(客户端
33
33
 
34
34
  Claude 的网关别名(如 `ccs-claude-newapi--deepseek-v4.1-flash-1017[1m]`)通常**不校验** `output_config.effort`——传 `bogus` 也返回 200。这时插件只能诚实报 `no-validation`,不会凭空写档位。
35
35
 
36
- 如果你在**另一个 OpenAI 兼容网关**上已经探测到同一模型的真实档位,可以在共享配置里建立别名映射,让会话启动时注入真相:
36
+ 如果你在**另一个 OpenAI 兼容网关**上探测过同名模型,可以建立别名映射,作为会话提示中的参考:
37
37
 
38
38
  ```jsonc
39
39
  // ~/.config/effort-discovery.json
@@ -44,10 +44,10 @@ Claude 的网关别名(如 `ccs-claude-newapi--deepseek-v4.1-flash-1017[1m]`
44
44
  }
45
45
  ```
46
46
 
47
- 插件会读 `~/.cache/effort-discovery/` 下所有缓存(`cache.json` / `dsh.json` / `claude-code.json`),按别名找到实测档位,在 SessionStart 注入:
47
+ 插件读取 `cache.json` / `dsh.json` / `claude-code.json`。只有明确配置别名才查找其他路由的数据;同名不代表协议和路由相同,参考证据不会覆盖本路由结果:
48
48
 
49
49
  ```
50
- ⚠ 不要选 medium / xhigh:Claude 的选择器仍会显示它们,但网关实测不支持/会忽略。
50
+ 别名对应的其他网关/协议仅供参考;不能作为当前路由的支持结论。
51
51
  ```
52
52
 
53
53
  **注意**:Claude Code 只有 `maxEffortLevel`(上限封顶)一个杠杆,没法隐藏中间档位;这个方案是"注入提醒",不改选择器。
@@ -93,7 +93,8 @@ Claude Code 的档位枚举固定为 `low / medium / high / xhigh / max`,选
93
93
  开发期(就地加载,改完 `/reload-plugins` 生效):
94
94
 
95
95
  ```powershell
96
- claude --plugin-dir C:\Users\蒋老师\projects\opencode-effort-discovery\packages\claude-code
96
+ # 在仓库根目录执行
97
+ claude --plugin-dir (Join-Path (Get-Location) 'packages\claude-code')
97
98
  ```
98
99
 
99
100
  从 npm 安装后本地加载:
@@ -128,6 +129,6 @@ node packages\claude-code\scripts\apply.mjs --write # 写入 + 备份
128
129
 
129
130
  ## 注意
130
131
 
131
- - 探测是**真实请求**(`max_tokens: 16`),每个模型最多 5 次;请只在自有网关上用。
132
- - 网关若“接受任何值但不生效”,探测会得到 `validated` 但可能是假象——README 里不掩饰这点,脚本支持逐级证据(`source` 字段)供你判断。
133
- - 插件不会自动改 `settings.json`:写入只发生在你显式执行 `--write` 或调用 apply 技能时。
132
+ - 探测是**真实请求**(`max_tokens: 16`),最多 1 次非法值 + 5 次逐档请求;兼容 beta 头时可能额外重试。只在获授权的网关上使用,可能产生费用。
133
+ - 非法值返回 2xx 为 `no-validation`;逐档成功为 `individual-2xx`,不保证实际生效。旧版或超过 6 小时的 Claude 缓存不会用于报告当前档位或写入上限;需重新探测。会话提示还核对当前 Claude 路由。
134
+ - 插件不会自动改 `settings.json`:写入只发生在你显式执行 `--write` 或调用 apply 技能时。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscgoods/claude-code-effort-discovery",
3
- "version": "0.4.4",
4
- "description": "Claude Code plugin: discover which reasoning-effort levels your gateway model accepts, report them, and cap /effort to them.",
3
+ "version": "0.5.2",
4
+ "description": "Claude Code plugin: report gateway effort evidence and optionally set a maximum effort level.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "files": [
package/scripts/apply.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { capFromLevels, cachePath, claudeSettingsPath, readJson, writeJson } from "./lib.mjs"
2
+ import { capFromLevels, cachePath, claudeSettingsPath, probeMatchesGateway, readJson, writeJson } from "./lib.mjs"
3
3
 
4
4
  function parse(argv) {
5
5
  const args = { models: [] }
@@ -34,6 +34,10 @@ if (!cache || !cache.models) {
34
34
  process.stderr.write(`no cache at ${cachePath()} — run probe.mjs first\n`)
35
35
  process.exit(2)
36
36
  }
37
+ if (!probeMatchesGateway(cache)) {
38
+ process.stderr.write("cached gateway does not match current provider configuration — run probe.mjs again\n")
39
+ process.exit(2)
40
+ }
37
41
 
38
42
  const settingsPath = claudeSettingsPath()
39
43
  const settings = readJson(settingsPath)
@@ -46,7 +50,9 @@ const selected = args.models.length > 0 ? args.models : Object.keys(cache.models
46
50
  const caps = {}
47
51
  for (const model of selected) {
48
52
  const info = cache.models[model]
49
- if (!info) continue
53
+ // Older caches can contain inferred, untested levels.
54
+ if (!info || info.evidenceVersion !== 2 || !Number.isFinite(info.at) ||
55
+ info.at > Date.now() || Date.now() - info.at >= 6 * 60 * 60 * 1000) continue
50
56
  const cap = capFromLevels(info.levels)
51
57
  if (cap) caps[model] = cap
52
58
  }
@@ -90,4 +96,4 @@ for (const [model, value] of Object.entries(plan.modelSettings)) {
90
96
  if (plan.maxEffortLevel) settings.maxEffortLevel = plan.maxEffortLevel
91
97
 
92
98
  writeJson(settingsPath, settings)
93
- process.stdout.write("written. 用 /effort status 和 picker 验证是否生效。\n")
99
+ process.stdout.write("written. 用 /effort status 和 picker 验证是否生效。\n")
package/scripts/lib.mjs CHANGED
@@ -51,29 +51,41 @@ export function findProbe(modelID, aliases = {}) {
51
51
  if (!entries || typeof entries !== "object") continue
52
52
  for (const [key, value] of Object.entries(entries)) {
53
53
  if (!value || typeof value !== "object" || !("levels" in value)) continue
54
- const match =
55
- key === modelID ||
56
- key === canonical ||
57
- key.endsWith(`/${modelID}`) ||
58
- key.endsWith(`/${canonical}`)
54
+ const direct = file === "claude-code.json" && key === modelID
55
+ // A different gateway/protocol is only a reference when explicitly mapped.
56
+ const match = direct || (typeof aliases[modelID] === "string" &&
57
+ (key === canonical || key.endsWith(`/${canonical}`)))
59
58
  if (match) {
60
59
  candidates.push({
60
+ direct,
61
+ provider: json.provider,
62
+ baseURL: json.baseURL,
61
63
  from: key,
62
64
  file,
63
65
  source: value.source ?? "unknown",
64
66
  levels: value.levels ?? null,
65
67
  at: value.at ?? 0,
68
+ evidenceVersion: value.evidenceVersion,
66
69
  })
67
70
  }
68
71
  }
69
72
  }
70
73
 
71
- candidates.sort(
72
- (a, b) => (b.levels?.length ?? 0) - (a.levels?.length ?? 0) || b.at - a.at,
73
- )
74
+ candidates.sort((a, b) => Number(b.direct) - Number(a.direct) || b.at - a.at)
74
75
  return candidates[0]
75
76
  }
76
77
 
78
+ /** Only reuse results for the currently configured Anthropic route. */
79
+ export function probeMatchesGateway(cache) {
80
+ const config = loadConfig()
81
+ const entry = config.providers?.[cache?.provider]
82
+ if (entry && entry.api && entry.api !== "anthropic") return false
83
+ if (!entry && cache?.provider !== "claude-proxy") return false
84
+ const current = entry ? entry.baseURL ?? entry.url : claudeGateway().baseURL
85
+ return Boolean(normalizeBaseURL(cache?.baseURL) &&
86
+ normalizeBaseURL(cache.baseURL) === normalizeBaseURL(current))
87
+ }
88
+
77
89
  /** 给出"实测支持"之外的 Claude 档位(即不该选的) */
78
90
  export function unsupportedClaudeLevels(levels) {
79
91
  if (!Array.isArray(levels) || levels.length === 0) return []
@@ -190,8 +202,13 @@ export async function probeAnthropic({ baseURL, apiKey, model, headers = {}, lad
190
202
  ? { levels: null, source: `http-${r.status}`, at: Date.now() }
191
203
  : undefined
192
204
 
193
- // 1) sentinel
194
- const sentinel = await send("effort-discovery-probe")
205
+ // 1) The invalid value must actually be rejected as an effort error.
206
+ let sentinel = await send("effort-discovery-probe")
207
+ if (sentinel?.status === 400 && /effort-2025-11-24|anthropic-beta/i.test(sentinel.text) &&
208
+ !/output_config|does not support|unsupported|invalid value/i.test(sentinel.text)) {
209
+ withBeta = false
210
+ sentinel = await send("effort-discovery-probe")
211
+ }
195
212
  const fatalSentinel = fatal(sentinel)
196
213
  if (fatalSentinel) return fatalSentinel
197
214
  if (sentinel) {
@@ -200,16 +217,13 @@ export async function probeAnthropic({ baseURL, apiKey, model, headers = {}, lad
200
217
  }
201
218
  const listed = parseLevels(sentinel.text)
202
219
  if (listed) return { levels: listed, source: "validated", at: Date.now() }
203
- if (
204
- sentinel.status === 400 &&
205
- /effort-2025-11-24|anthropic-beta/i.test(sentinel.text) &&
206
- !/output_config|does not support|unsupported|invalid value/i.test(sentinel.text)
207
- ) {
208
- withBeta = false
209
- }
220
+ }
221
+ if (!sentinel || ![400, 422].includes(sentinel.status) || !/effort/i.test(sentinel.text)) {
222
+ return { levels: null, source: sentinel ? `http-${sentinel.status}` : "error", at: Date.now() }
210
223
  }
211
224
 
212
- // 2) ladder
225
+ // 2) Probe every value: success at one level does not imply lower ones work.
226
+ const accepted = []
213
227
  for (let index = 0; index < ladder.length; index++) {
214
228
  const result = await send(ladder[index])
215
229
  const fatalResult = fatal(result)
@@ -219,7 +233,8 @@ export async function probeAnthropic({ baseURL, apiKey, model, headers = {}, lad
219
233
  continue
220
234
  }
221
235
  if (result.status >= 200 && result.status < 300) {
222
- return { levels: ladder.slice(index), source: "validated", at: Date.now() }
236
+ accepted.push(ladder[index])
237
+ continue
223
238
  }
224
239
 
225
240
  const mentionsBeta = /effort-2025-11-24|anthropic-beta/i.test(result.text)
@@ -233,18 +248,21 @@ export async function probeAnthropic({ baseURL, apiKey, model, headers = {}, lad
233
248
  if (result.status === 400 || result.status === 422) {
234
249
  const listed = parseLevels(result.text)
235
250
  if (listed) return { levels: listed, source: "validated", at: Date.now() }
236
- if (!mentionsEffort && !mentionsBeta) unknown = true
251
+ // A generic model/auth error is not evidence against this effort value.
252
+ if (!/effort/i.test(result.text)) unknown = true
237
253
  continue
238
254
  }
239
255
  unknown = true
240
256
  }
241
257
 
242
- return { levels: null, source: unknown ? "error" : "no-validation", at: Date.now() }
258
+ if (unknown) return { levels: null, source: "incomplete", at: Date.now() }
259
+ return { levels: accepted.length ? accepted : null, source: accepted.length ? "individual-2xx" : "no-validation", at: Date.now() }
243
260
  }
244
261
 
245
262
  export function capFromLevels(levels) {
246
263
  if (!Array.isArray(levels) || levels.length === 0) return undefined
247
- return [...levels].sort((a, b) => EFFORT_ORDER.indexOf(a) - EFFORT_ORDER.indexOf(b)).at(-1)
264
+ return levels.filter((level) => CLAUDE_LEVELS.includes(level))
265
+ .sort((a, b) => EFFORT_ORDER.indexOf(a) - EFFORT_ORDER.indexOf(b)).at(-1)
248
266
  }
249
267
 
250
268
  /** 从 Claude 的 settings/env 里猜出网关地址、密钥和模型别名 */
@@ -266,4 +284,4 @@ export function claudeGateway() {
266
284
  if (typeof option.model === "string") models.add(option.model)
267
285
  }
268
286
  return { baseURL, apiKey: resolveSecret(apiKey), models: [...models] }
269
- }
287
+ }
package/scripts/probe.mjs CHANGED
@@ -47,6 +47,10 @@ let apiKey
47
47
  let models = args.models
48
48
 
49
49
  if (entry) {
50
+ if (entry.api && entry.api !== "anthropic") {
51
+ process.stderr.write(`provider "${providerID}" is not configured for Anthropic Messages\n`)
52
+ process.exit(2)
53
+ }
50
54
  baseURL = normalizeBaseURL(entry.baseURL ?? entry.url)
51
55
  apiKey = resolveSecret(entry.apiKey)
52
56
  if (models.length === 0) models = Array.isArray(entry.models) ? entry.models : []
@@ -75,12 +79,13 @@ for (const model of models) {
75
79
  model,
76
80
  headers: typeof entry?.headers === "object" && entry.headers ? entry.headers : {},
77
81
  })
78
- const authoritative = findProbe(model, aliases)
82
+ const reference = findProbe(model, aliases)
79
83
  result.models[model] = {
80
84
  ...probed,
85
+ evidenceVersion: 2,
81
86
  alias: aliases[model] ?? null,
82
- authoritativeLevels: authoritative?.levels ?? null,
83
- authoritativeFrom: authoritative?.from ?? null,
87
+ referenceLevels: reference && !reference.direct ? reference.levels : null,
88
+ referenceFrom: reference && !reference.direct ? reference.from : null,
84
89
  unsupportedInClaude:
85
90
  probed.levels?.length > 0
86
91
  ? CLAUDE_LEVELS.filter((level) => !probed.levels.includes(level))
@@ -105,4 +110,4 @@ if (args.json) {
105
110
  row.map((cell, index) => String(cell ?? "").padEnd(widths[index])).join(" ") + "\n",
106
111
  )
107
112
  }
108
- }
113
+ }
@@ -3,8 +3,11 @@ import { readFileSync } from "node:fs"
3
3
  import {
4
4
  CLAUDE_LEVELS,
5
5
  cachePath,
6
+ claudeSettingsPath,
6
7
  findProbe,
7
8
  loadAliases,
9
+ normalizeBaseURL,
10
+ probeMatchesGateway,
8
11
  readJson,
9
12
  unsupportedClaudeLevels,
10
13
  } from "./lib.mjs"
@@ -21,8 +24,13 @@ const modelName = input?.model?.id ?? input?.to_model ?? input?.model_id ?? inpu
21
24
  const probe = modelName ? findProbe(modelName, aliases) : undefined
22
25
 
23
26
  const lines = []
27
+ const currentCache = readJson(cachePath())
28
+ const activeSettings = readJson(claudeSettingsPath()) ?? {}
29
+ const activeBaseURL = process.env.ANTHROPIC_BASE_URL ?? activeSettings.env?.ANTHROPIC_BASE_URL ?? "https://api.anthropic.com"
30
+ const activeMatches = (probe) => normalizeBaseURL(probe?.baseURL) === normalizeBaseURL(activeBaseURL)
31
+ const fresh = (probe) => Number.isFinite(probe?.at) && probe.at <= Date.now() && Date.now() - probe.at < 6 * 60 * 60 * 1000
24
32
 
25
- if (probe?.levels?.length) {
33
+ if (probe?.levels?.length && probe.direct && probe.evidenceVersion === 2 && fresh(probe) && probeMatchesGateway(probe) && activeMatches(probe)) {
26
34
  const supported = probe.levels.filter((level) => CLAUDE_LEVELS.includes(level))
27
35
  const unsupported = unsupportedClaudeLevels(probe.levels)
28
36
  const canonical = aliases[modelName]
@@ -35,23 +43,28 @@ if (probe?.levels?.length) {
35
43
  `⚠ 不要选 ${unsupported.join(" / ")}:Claude 的选择器仍会显示它们,但网关实测不支持/会忽略。`,
36
44
  )
37
45
  } else {
38
- lines.push("实测档位覆盖 Claude 的全部选项,可以放心选择。")
46
+ lines.push("已有声明覆盖 Claude 的全部选项;不能据此保证推理效果。")
39
47
  }
40
48
  } else {
41
49
  // 没有证据:明确说明,而不是编造
42
50
  lines.push(
43
- `${modelName || "当前模型"}: 网关未给出可信的 effort 声明(no-validation),插件不改写档位。`,
51
+ `${modelName || "当前模型"}: 尚无此路由的可信 effort 声明,插件不改写档位。`,
44
52
  )
45
53
  if (probe) lines.push(`最近一次探测: ${probe.source}(${probe.from})`)
54
+ if (probe?.direct && probe.evidenceVersion !== 2) lines.push("旧版缓存可能含未经逐档验证的推断,请重新探测。")
55
+ if (probe?.direct && probe.evidenceVersion === 2 && (!probeMatchesGateway(probe) || !activeMatches(probe))) lines.push("缓存网关与当前 Claude 路由或 provider 配置不一致,请核对并重新探测。")
56
+ if (probe?.direct && probe.evidenceVersion === 2 && !fresh(probe)) lines.push("缓存已过期,请重新探测。")
57
+ if (probe && !probe.direct && probe.levels?.length) {
58
+ lines.push(`别名对应的其他网关/协议仅供参考: ${probe.levels.join(" / ")};不能作为当前路由的支持结论。`)
59
+ }
46
60
  if (modelName && !aliases[modelName]) {
47
61
  lines.push("提示: 可在 ~/.config/effort-discovery.json 的 aliases 里把该别名映射到真实模型 id。")
48
62
  }
49
63
  }
50
64
 
51
- const cache = readJson(cachePath())
52
- if (cache?.models) {
53
- const others = Object.entries(cache.models)
54
- .filter(([model]) => model !== modelName)
65
+ if (currentCache?.models && probeMatchesGateway(currentCache) && activeMatches(currentCache)) {
66
+ const others = Object.entries(currentCache.models)
67
+ .filter(([model, info]) => model !== modelName && info.evidenceVersion === 2 && fresh(info))
55
68
  .map(([model, info]) => `${model}: ${(info.levels ?? []).join(" ") || "unknown"}`)
56
69
  if (others.length > 0) lines.push(`其他模型缓存: ${others.join("; ")}`)
57
70
  }
@@ -69,4 +82,4 @@ process.stdout.write(
69
82
  additionalContext: `网关 effort 实测结果:\n${lines.join("\n")}`,
70
83
  },
71
84
  }) + "\n",
72
- )
85
+ )
@@ -7,13 +7,13 @@ disable-model-invocation: false
7
7
 
8
8
  ## 计划中的改动(dry-run)
9
9
 
10
- !`node "${CLAUDE_PLUGIN_ROOT}/scripts/apply.mjs" $ARGUMENTS`
10
+ !`node "${CLAUDE_PLUGIN_ROOT}/scripts/apply.mjs"`
11
11
 
12
12
  ## 你的任务
13
13
 
14
- 1. 先解释上面这份 dry-run 计划:哪个模型会被设成哪个 `maxEffortLevel`。
14
+ 1. 上面只显示默认 dry-run。需要 `--global` 或 `--model` 时,先用这些选项单独运行 dry-run;不要在预览阶段传 `--write`。
15
15
  2. 说明 `maxEffortLevel` 是 Claude Code 客户端侧的封顶:超过它的档位在 `/effort` 选择器里不再出现,
16
- `--effort`/`/effort` 指定更高档位时按封顶值运行。
16
+ `--effort`/`/effort` 指定更高档位时按封顶值运行;不能删除低于上限的中间档位。
17
17
  3. **必须先获得用户明确同意**,才执行写入:
18
18
 
19
19
  ```
@@ -26,4 +26,4 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/apply.mjs" --write
26
26
  - 跑 `/effort status`、打开 `/effort` 选择器确认档位范围;
27
27
  - 自定义网关别名可能匹配不上 `modelSettings`,此时用 `--global` 设顶层 `maxEffortLevel` 兜底;
28
28
  - 如果 Claude Code 根本不给这个模型发 effort 参数,需要在 `settings.json` 的 `env` 里加
29
- `CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1`(这属于改动配置,同样要先征得同意)。
29
+ `CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1`(这属于改动配置,同样要先征得同意)。
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 探测当前网关对每个模型真正接受的 reasoning effort 档位(会发一次极小的真实请求)
2
+ description: 探测当前 Anthropic 网关的 effort 声明(会发送真实请求,可能产生费用)
3
3
  argument-hint: "[--provider <id>] [--model <alias> ...]"
4
4
  allowed-tools: Bash(node:*), Read
5
5
  disable-model-invocation: false
@@ -11,10 +11,10 @@ disable-model-invocation: false
11
11
 
12
12
  ## 你的任务
13
13
 
14
- 上面是刚探测到的结果(`levels` 是网关真正接受的档位,`source` 是证据来源)。
14
+ 上面是刚探测到的结果(`levels` 是错误回显或逐档 2xx 收集的证据,不证明推理效果,`source` 是来源)。
15
15
 
16
16
  1. 用一张表回复:模型 / 可用档位 / 证据。
17
- 2. 如果某个模型是 `(unknown)`,明确说明“网关不校验 reasoning_effort,无法确定”,不要猜。
17
+ 2. 如果某个模型是 `(unknown)`,按 `source` 区分不校验、错误或请求未完成,不要猜。
18
18
  3. 提醒用户:
19
19
  - 探测结果已缓存到 `~/.cache/effort-discovery/claude-code.json`,会话启动钩子会读这份缓存;
20
- - 想把 `/effort` 选择器收窄到实测档位,用 `/effort-discovery:apply-effort`(默认 dry-run,加 `--write` 才改 `~/.claude/settings.json`)。
20
+ - 可用 `/effort-discovery:apply-effort` 预览最高档位上限;不能删除中间选项,写配置须明确同意。