dsh-thinking-levels 4.4.20 → 4.6.0
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 +17 -0
- package/README.md +17 -1
- package/dsh.plugin.json +1 -1
- package/lib/auto-schedule-projection.d.ts +48 -0
- package/lib/auto-schedule-projection.js +47 -6
- package/lib/billing-projection.d.ts +7 -7
- package/lib/client.js +272 -19
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +12 -0
- package/lib/index.js +7 -0
- package/lib/strict-step-schedule.d.ts +2 -0
- package/lib/strict-step-schedule.js +1 -0
- package/lib/thinking-level.d.ts +38 -0
- package/lib/thinking-level.js +58 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
- **新增 `Config.simpleToolsRegex`:简单工具 regex 名单(issue #12)。** 第三方工具家族(如 dsh-ops 的 `ops_*`)可一条 `^ops_.*` 整族进白名单,不再逐个枚举。每条按原生 JavaScript regex 编译(`i` flag、**不自动加锚点**,建议自写 `^`),与字面量名单并存、进同一 ratio 统计;编译失败的条目跳过并告警一次(配置变更粒度,非每请求)。
|
|
6
|
+
- **双面匹配**:regex 与字面量名单统一测完整工具名与剥 `ops_` 后的裸名两面——regex 路径的硬前提(裸名无 `ops_` 前缀,`ops_.*` 对裸名永不命中),顺带修复字面量条目 `ops_bash` 式写法「因剥前缀而永不命中」的隐性坑(行为修复:此前无效的命名空间字面量现在生效)。
|
|
7
|
+
- **内置表语义不动**:`SIMPLE_TOOL_RE` 仍只测裸名(issue #8 契约);`shell`/`pwsh`/`cmd`/`sh`(terminal 插件)与 `ops_shell` 剥前缀路径逐字不变。
|
|
8
|
+
- **调度双 gate 不动**:simpleRatio 的 `argsSize < HEAVY_ARGS` 二道门与升档面(heaviest args → max)独立驱动——家族级白名单只作用于降档面的 ratio 统计,最坏后果是档位偏好偏一档(会话内自愈),不会把重调用拉进低档、也不会把轻会话推上 max。
|
|
9
|
+
- 实现:`SimpleToolMatcher` 统一分类器替代链路上的裸 `RegExp`;`planStrictStep`/`resolveEffortInjection`/`decideEffort` 加 `extraSimpleRegex` 输入。新增 9 例(家族命中/双面修复/无效跳过+告警/双 gate/终端适配),全量 314/314。
|
|
10
|
+
|
|
11
|
+
## 4.5.0
|
|
12
|
+
|
|
13
|
+
- **新增「Effort 轨迹」标签页(conversation.view)**:会话时间线旁以 run-length 时间线展示本会话每次请求实际发出的档位——`↑ auto max ×1` / `= auto high ×12` / `↓ auto low ×3` 式标签,↑/↓/= 为相对上一 run 的升降(escalation 序,复用 effort slider 的显示序表),最新在前。issue #11 的延伸:chip 只回答「最后一发是什么」,标签页回答「一路是怎么变过来的」。
|
|
14
|
+
- 数据面:`tlAutoSchedule` 投影新增 `trace` 环(run-length 折叠 `{level, intent, count}`,`TRACE_MAX=64`),由与 `lastEffective` 相同的 `request/header` 事件折叠;intent 取折叠时刻的会话显式选择(auto / manual / 配置默认=中性)。`stateVersion` 2→3——投影是日志的纯折叠,冷读自动重建历史会话的轨迹,无迁移负担。
|
|
15
|
+
- 无档位 header(非推理模型 / 被剥离)不进轨迹、隐式结束当前 run;语义与 `lastEffective=null` 路径保持一致。
|
|
16
|
+
- 客户端面:`conversation.view` 槽位注册(perm-gate history 同款模式),读取与 chip 同一条投影 face 路径,无 HTTP feed;投影缺失 / trace 为空渲染空态,宿主未声明该槽位时 generator inject 永不触发(无标签页=诚实降级)。调度器零接触,chip 行为逐字不变。
|
|
17
|
+
- locale:10 语补 `trace.label` / `trace.empty` / `trace.intent.auto` / `trace.intent.manual`。
|
|
18
|
+
- 测试:投影折叠 + 轨迹组件两份 spec(20 例),全量 305/305。
|
|
19
|
+
|
|
3
20
|
## 4.4.20
|
|
4
21
|
|
|
5
22
|
- **connect 类插件兼容矩阵(issue #10 后续收口,无 src/ 变更)。** 普查四家 connect/聚合插件当日版本的 adapter 形态——`@dmh2002/dsh-connect-qoder` 1.27.1 / `dsh-connect-trae` 4.18.5 / `dsh-connect-workbuddy` 5.30.0(dingminhua,ES class + 自有默认档广告)、`dsh-our-free-model`(Ebony-Vinyl,plain class + prepareCall 内部直调 this.resolveModel)——全部为普通对象形态、无 Proxy/freeze、不回读 `llm.adapters`,4.4.18 的 registry-entry facade 方案零返工成立。
|
package/README.md
CHANGED
|
@@ -154,15 +154,31 @@ The hub is `high` (the official default). `auto` schedules between `low` / `high
|
|
|
154
154
|
|
|
155
155
|
| Recent tool calls | Level |
|
|
156
156
|
|---|---|
|
|
157
|
-
| none (fresh prompt,
|
|
157
|
+
| none (fresh prompt — the first step decides the plan, no downgrade without evidence) | `high` |
|
|
158
158
|
| ≥75% simple tools, small args, downgrades allowed | `low` |
|
|
159
159
|
| mixed / heavy tools | `high` |
|
|
160
160
|
| very heavy payloads, upgrades allowed | `max` |
|
|
161
161
|
|
|
162
162
|
The scheduling policy is the same source as [dsh-tool-turbo](https://github.com/drscrewdriver/dsh-tool-turbo) (same simple-tool whitelist / payload thresholds / 75% ratio rule).
|
|
163
163
|
|
|
164
|
+
**Whitelisting third-party tool families (4.6.0).** `Config.simpleTools` (literal names) and `Config.simpleToolsRegex` (one JavaScript regex per entry, case-insensitive, no auto-anchoring — write your own `^`) both feed the same simple-ratio. The extra lists match BOTH the full tool name and the namespace-stripped bare name, so one pattern covers a whole family: `^ops_.*` whitelists every `ops_` tool at once, while `grep` keeps matching through the strip. Invalid patterns are skipped with a one-time warning; the built-in table and both scheduler gates (args threshold, args-driven upgrade) are untouched — a family whitelist only biases the downgrade ratio, never lifts a heavy call to `low` or a light session to `max`.
|
|
165
|
+
|
|
164
166
|
**Where the samples come from (4.4.7+).** The scheduler folds `tool/call` events into a Session projection (`tlAutoSchedule`), so it sees real tool history on every host from 0.1.2-rc.1 on; the pre-4.4.7 `session.events` read only ever produced samples on 0.1.0-rc.8. The session's explicit pick is folded from `model/selection` events, so a level the host echoes back can never be mistaken for a manual choice. Known limitation: host `0.1.0-rc.8` exposes no `stateOf` on its projection registry (legacy plane contract), so that one line keeps the old array read — scheduling works there, the echo correction does not.
|
|
165
167
|
|
|
168
|
+
## Effort trace tab
|
|
169
|
+
|
|
170
|
+
The conversation view gains an **Effort 轨迹 / Effort trace** tab (next to the timeline): a run-length timeline of the levels this session's requests actually went out with —
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
↑ auto max ×1
|
|
174
|
+
= auto high ×12
|
|
175
|
+
↓ auto low ×3
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
`↑` / `↓` / `=` is the transition against the previous (older) run by escalation rank; the tag shows the intent (`auto` — the scheduler resolved it, `manual` — an explicit pick, neutral — the configured default) and how many consecutive requests the run covers. Newest first.
|
|
179
|
+
|
|
180
|
+
Data comes from the plugin's `tlAutoSchedule` session projection (stateVersion 3), folded from the same committed `request/header` events the selector chip's `Auto → level` hint reads — no HTTP feed, and a cold read rebuilds the trace of resumed/historical sessions from the log. The tab degrades silently on hosts without the conversation-view slot or the projection face (empty state, never an error).
|
|
181
|
+
|
|
166
182
|
## Third-party adapter compatibility (contract for connect-plugin authors)
|
|
167
183
|
|
|
168
184
|
TL reads the `llm.adapters` registry to advertise `auto` in the model directory, and makes three promises to every plugin that registers adapters there (providers-hub, the connect-* family, our-free-model, vision-router, …):
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
|
|
6
6
|
"engines": {
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
* (`api/session-controller/src/agent.ts:340` ← `commands.ts:176`), so the
|
|
23
23
|
* plugin's own injection can never pollute it — the echo disappears by
|
|
24
24
|
* construction and needs no "remember what I injected" side table.
|
|
25
|
+
* - `apply` folds `request/header` events into `lastEffective` (issue #11) and
|
|
26
|
+
* the run-length `trace` (conversation-view effort tab): the header carries
|
|
27
|
+
* the level the request actually went out with, so the trace is the
|
|
28
|
+
* per-request history the single field can only summarize.
|
|
25
29
|
*
|
|
26
30
|
* Projections are the sanctioned read path ("reads the projection"), are
|
|
27
31
|
* folded lazily over the in-memory log on first read (so resumed/forked
|
|
@@ -38,6 +42,21 @@ import { z } from 'zod';
|
|
|
38
42
|
import { type EffortId, type ToolCallSample } from './thinking-level.ts';
|
|
39
43
|
/** Projection key. `tl` matches the plugin's other unit (`tlCacheBilling`). */
|
|
40
44
|
export declare const AUTO_SCHEDULE_KEY = "tlAutoSchedule";
|
|
45
|
+
/** One run-length segment of the effort trace (conversation-view tab). */
|
|
46
|
+
export interface EffortRun {
|
|
47
|
+
/** The wire level this run's requests went out with. */
|
|
48
|
+
level: string;
|
|
49
|
+
/**
|
|
50
|
+
* Why: `'auto'` (scheduler sentinel), `'manual'` (explicit session pick) or
|
|
51
|
+
* `null` (the configured default — a session that never picked cannot be
|
|
52
|
+
* told apart from one, so the tab renders it neutral).
|
|
53
|
+
*/
|
|
54
|
+
intent: 'auto' | 'manual' | null;
|
|
55
|
+
/** How many consecutive committed requests the run covers. */
|
|
56
|
+
count: number;
|
|
57
|
+
}
|
|
58
|
+
/** Runs kept in the trace ring; run-length lets 64 runs cover very long sessions. */
|
|
59
|
+
export declare const TRACE_MAX = 64;
|
|
41
60
|
/** Folded state: recent tool samples plus the session's explicit pick. */
|
|
42
61
|
export interface AutoScheduleState {
|
|
43
62
|
/** Recent `tool/call` samples, oldest first, at most {@link TOOL_SAMPLE_WINDOW}. */
|
|
@@ -58,7 +77,31 @@ export interface AutoScheduleState {
|
|
|
58
77
|
* `null` until the session's first committed request.
|
|
59
78
|
*/
|
|
60
79
|
lastEffective: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Run-length-folded effort trace, oldest run first — consecutive committed
|
|
82
|
+
* requests that went out with the same effective level AND the same intent
|
|
83
|
+
* collapse into one {@link EffortRun}. Folded from the same `request/header`
|
|
84
|
+
* events as `lastEffective`: the trace is the per-request history that field
|
|
85
|
+
* can only summarize (the conversation-view tab renders it). Headers without
|
|
86
|
+
* an effort (non-reasoning model, stripped) append nothing — they
|
|
87
|
+
* implicitly end the current run. At most {@link TRACE_MAX} runs.
|
|
88
|
+
*/
|
|
89
|
+
trace: readonly EffortRun[];
|
|
61
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Append one committed request's effective level to the run-length trace.
|
|
93
|
+
*
|
|
94
|
+
* Pure and total: every call returns a NEW array (a header always grows some
|
|
95
|
+
* run — same level+intent extends the last run's count, anything else opens a
|
|
96
|
+
* new one), so the Object.is change gate treats every level-carrying header as
|
|
97
|
+
* a real state change and wakes the trace tab. Headers without a level never
|
|
98
|
+
* reach this function (see {@link applyAutoSchedule}).
|
|
99
|
+
* @param trace - trace before the header.
|
|
100
|
+
* @param level - the effective wire level the header committed.
|
|
101
|
+
* @param intent - why: the session pick at fold time, or null for default.
|
|
102
|
+
* @returns the advanced trace.
|
|
103
|
+
*/
|
|
104
|
+
export declare function foldTrace(trace: readonly EffortRun[], level: string, intent: EffortRun['intent']): readonly EffortRun[];
|
|
62
105
|
/**
|
|
63
106
|
* Fold one committed Session event into the auto-schedule state.
|
|
64
107
|
*
|
|
@@ -87,6 +130,11 @@ export declare function buildAutoScheduleDefinition(): {
|
|
|
87
130
|
}, z.core.$strip>>;
|
|
88
131
|
userEffort: z.ZodNullable<z.ZodString>;
|
|
89
132
|
lastEffective: z.ZodNullable<z.ZodString>;
|
|
133
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
134
|
+
level: z.ZodString;
|
|
135
|
+
intent: z.ZodNullable<z.ZodString>;
|
|
136
|
+
count: z.ZodNumber;
|
|
137
|
+
}, z.core.$strip>>;
|
|
90
138
|
}, z.core.$strip>;
|
|
91
139
|
init: () => AutoScheduleState;
|
|
92
140
|
apply: typeof applyAutoSchedule;
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
* (`api/session-controller/src/agent.ts:340` ← `commands.ts:176`), so the
|
|
23
23
|
* plugin's own injection can never pollute it — the echo disappears by
|
|
24
24
|
* construction and needs no "remember what I injected" side table.
|
|
25
|
+
* - `apply` folds `request/header` events into `lastEffective` (issue #11) and
|
|
26
|
+
* the run-length `trace` (conversation-view effort tab): the header carries
|
|
27
|
+
* the level the request actually went out with, so the trace is the
|
|
28
|
+
* per-request history the single field can only summarize.
|
|
25
29
|
*
|
|
26
30
|
* Projections are the sanctioned read path ("reads the projection"), are
|
|
27
31
|
* folded lazily over the in-memory log on first read (so resumed/forked
|
|
@@ -39,13 +43,37 @@ import { TOOL_SAMPLE_WINDOW, toolSampleOf } from "./session-events.js";
|
|
|
39
43
|
import { isEffortId } from "./thinking-level.js";
|
|
40
44
|
/** Projection key. `tl` matches the plugin's other unit (`tlCacheBilling`). */
|
|
41
45
|
export const AUTO_SCHEDULE_KEY = 'tlAutoSchedule';
|
|
46
|
+
/** Runs kept in the trace ring; run-length lets 64 runs cover very long sessions. */
|
|
47
|
+
export const TRACE_MAX = 64;
|
|
42
48
|
const stateSchema = z.object({
|
|
43
49
|
samples: z.array(z.object({ name: z.string(), argsSize: z.number() })),
|
|
44
50
|
userEffort: z.string().nullable(),
|
|
45
51
|
lastEffective: z.string().nullable(),
|
|
52
|
+
trace: z.array(z.object({ level: z.string(), intent: z.string().nullable(), count: z.number() })),
|
|
46
53
|
});
|
|
47
54
|
/** Initial folded state (also the shape every cold read starts from). */
|
|
48
|
-
const initAutoSchedule = () => ({ samples: [], userEffort: null, lastEffective: null });
|
|
55
|
+
const initAutoSchedule = () => ({ samples: [], userEffort: null, lastEffective: null, trace: [] });
|
|
56
|
+
/**
|
|
57
|
+
* Append one committed request's effective level to the run-length trace.
|
|
58
|
+
*
|
|
59
|
+
* Pure and total: every call returns a NEW array (a header always grows some
|
|
60
|
+
* run — same level+intent extends the last run's count, anything else opens a
|
|
61
|
+
* new one), so the Object.is change gate treats every level-carrying header as
|
|
62
|
+
* a real state change and wakes the trace tab. Headers without a level never
|
|
63
|
+
* reach this function (see {@link applyAutoSchedule}).
|
|
64
|
+
* @param trace - trace before the header.
|
|
65
|
+
* @param level - the effective wire level the header committed.
|
|
66
|
+
* @param intent - why: the session pick at fold time, or null for default.
|
|
67
|
+
* @returns the advanced trace.
|
|
68
|
+
*/
|
|
69
|
+
export function foldTrace(trace, level, intent) {
|
|
70
|
+
const last = trace[trace.length - 1];
|
|
71
|
+
if (last !== undefined && last.level === level && last.intent === intent) {
|
|
72
|
+
return [...trace.slice(0, -1), { level, intent, count: last.count + 1 }];
|
|
73
|
+
}
|
|
74
|
+
const pushed = [...trace, { level, intent, count: 1 }];
|
|
75
|
+
return pushed.length > TRACE_MAX ? pushed.slice(pushed.length - TRACE_MAX) : pushed;
|
|
76
|
+
}
|
|
49
77
|
/**
|
|
50
78
|
* Fold one committed Session event into the auto-schedule state.
|
|
51
79
|
*
|
|
@@ -93,8 +121,19 @@ export function applyAutoSchedule(state, event) {
|
|
|
93
121
|
const raw = typeof config === 'object' && config !== null
|
|
94
122
|
? config.reasoningEffort
|
|
95
123
|
: undefined;
|
|
96
|
-
|
|
97
|
-
|
|
124
|
+
if (typeof raw !== 'string' || raw.length === 0) {
|
|
125
|
+
// A header without an effort (non-reasoning model, stripped) records
|
|
126
|
+
// nothing in the trace and keeps the old same-reference semantics when
|
|
127
|
+
// lastEffective is already null.
|
|
128
|
+
return state.lastEffective === null ? state : { ...state, lastEffective: null };
|
|
129
|
+
}
|
|
130
|
+
// The trace run's intent is the session pick AT FOLD TIME: model/selection
|
|
131
|
+
// events interleave chronologically in the log, so state.userEffort is
|
|
132
|
+
// exactly the pick in force when this header committed.
|
|
133
|
+
const intent = state.userEffort === 'auto'
|
|
134
|
+
? 'auto'
|
|
135
|
+
: state.userEffort !== null ? 'manual' : null;
|
|
136
|
+
return { ...state, lastEffective: raw, trace: foldTrace(state.trace, raw, intent) };
|
|
98
137
|
}
|
|
99
138
|
return state;
|
|
100
139
|
}
|
|
@@ -107,11 +146,13 @@ export function applyAutoSchedule(state, event) {
|
|
|
107
146
|
export function buildAutoScheduleDefinition() {
|
|
108
147
|
return {
|
|
109
148
|
key: AUTO_SCHEDULE_KEY,
|
|
110
|
-
// Bumped 1 → 2 when `lastEffective` joined the state (issue #11)
|
|
149
|
+
// Bumped 1 → 2 when `lastEffective` joined the state (issue #11), 2 → 3
|
|
150
|
+
// when the run-length `trace` joined (conversation-view tab): the host
|
|
111
151
|
// validates against `stateSchema` per version, so a shape change must raise
|
|
112
152
|
// it. Historical sessions are not lost — the state is a fold over the log,
|
|
113
|
-
// so a cold read rebuilds samples/userEffort/lastEffective from the
|
|
114
|
-
|
|
153
|
+
// so a cold read rebuilds samples/userEffort/lastEffective/trace from the
|
|
154
|
+
// events.
|
|
155
|
+
stateVersion: 3,
|
|
115
156
|
stateSchema,
|
|
116
157
|
init: initAutoSchedule,
|
|
117
158
|
apply: applyAutoSchedule,
|
|
@@ -128,9 +128,9 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
128
128
|
USD: "USD";
|
|
129
129
|
}>;
|
|
130
130
|
tier: z.ZodNullable<z.ZodEnum<{
|
|
131
|
+
flat: "flat";
|
|
131
132
|
peak: "peak";
|
|
132
133
|
offPeak: "offPeak";
|
|
133
|
-
flat: "flat";
|
|
134
134
|
}>>;
|
|
135
135
|
source: z.ZodEnum<{
|
|
136
136
|
off: "off";
|
|
@@ -211,7 +211,7 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
211
211
|
miss: number;
|
|
212
212
|
output: number;
|
|
213
213
|
currency: "CNY" | "USD";
|
|
214
|
-
tier: "
|
|
214
|
+
tier: "flat" | "peak" | "offPeak" | null;
|
|
215
215
|
source: "off" | "custom" | "estimate" | "cn" | "global" | "catalog-miss";
|
|
216
216
|
priced: boolean;
|
|
217
217
|
estimated: boolean;
|
|
@@ -288,7 +288,7 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
288
288
|
miss: number;
|
|
289
289
|
output: number;
|
|
290
290
|
currency: "CNY" | "USD";
|
|
291
|
-
tier: "
|
|
291
|
+
tier: "flat" | "peak" | "offPeak" | null;
|
|
292
292
|
source: "off" | "custom" | "estimate" | "cn" | "global" | "catalog-miss";
|
|
293
293
|
priced: boolean;
|
|
294
294
|
estimated: boolean;
|
|
@@ -364,7 +364,7 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
364
364
|
miss: number;
|
|
365
365
|
output: number;
|
|
366
366
|
currency: "CNY" | "USD";
|
|
367
|
-
tier: "
|
|
367
|
+
tier: "flat" | "peak" | "offPeak" | null;
|
|
368
368
|
source: "off" | "custom" | "estimate" | "cn" | "global" | "catalog-miss";
|
|
369
369
|
priced: boolean;
|
|
370
370
|
estimated: boolean;
|
|
@@ -451,9 +451,9 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
451
451
|
matchedModel: z.ZodNullable<z.ZodString>;
|
|
452
452
|
modelMatched: z.ZodBoolean;
|
|
453
453
|
tier: z.ZodNullable<z.ZodEnum<{
|
|
454
|
+
flat: "flat";
|
|
454
455
|
peak: "peak";
|
|
455
456
|
offPeak: "offPeak";
|
|
456
|
-
flat: "flat";
|
|
457
457
|
}>>;
|
|
458
458
|
unitPricePerM: z.ZodNullable<z.ZodNumber>;
|
|
459
459
|
turn: z.ZodNullable<z.ZodNumber>;
|
|
@@ -513,7 +513,7 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
513
513
|
miss: number;
|
|
514
514
|
output: number;
|
|
515
515
|
currency: "CNY" | "USD";
|
|
516
|
-
tier: "
|
|
516
|
+
tier: "flat" | "peak" | "offPeak" | null;
|
|
517
517
|
source: "off" | "custom" | "estimate" | "cn" | "global" | "catalog-miss";
|
|
518
518
|
priced: boolean;
|
|
519
519
|
estimated: boolean;
|
|
@@ -638,7 +638,7 @@ export declare function buildBillingDefinition(getPricing: () => PricingSnapshot
|
|
|
638
638
|
provider: string | null;
|
|
639
639
|
matchedModel: string | null;
|
|
640
640
|
modelMatched: boolean;
|
|
641
|
-
tier: "
|
|
641
|
+
tier: "flat" | "peak" | "offPeak" | null;
|
|
642
642
|
/** @deprecated 目录化后请以 priceRow 三价目位为准;保留一代 = 当前行缓存命中价。 */
|
|
643
643
|
unitPricePerM: number | null;
|
|
644
644
|
turn: number;
|