dsh-model-think-level 2.0.0 → 2.0.3

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.
Files changed (41) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +23 -13
  3. package/assets/NOTICE.md +15 -0
  4. package/assets/unified_bank.json +32910 -0
  5. package/lib/client/EffortEditor.d.ts +53 -21
  6. package/lib/client/FingerprintPane.d.ts +36 -0
  7. package/lib/client/capacity.d.ts +46 -0
  8. package/lib/client/configured-inputs.d.ts +11 -2
  9. package/lib/client/fingerprint-client.d.ts +81 -0
  10. package/lib/client/fingerprint-runner.d.ts +73 -0
  11. package/lib/client/index.d.ts +6 -0
  12. package/lib/client/injection/create-key-seat.d.ts +4 -5
  13. package/lib/client/injection/editor-tab-bar.d.ts +2 -1
  14. package/lib/client/injection/editor-tabs.d.ts +11 -1
  15. package/lib/client/injection/key-reveal.d.ts +12 -0
  16. package/lib/client/injection/models-page-editor.d.ts +117 -2
  17. package/lib/client/injection/provider-card-slot.d.ts +3 -1
  18. package/lib/client/key-manager-client.d.ts +2 -1
  19. package/lib/client/locales.d.ts +37 -9
  20. package/lib/client/ops.d.ts +15 -2
  21. package/lib/client/refresh-scheduler.d.ts +29 -0
  22. package/lib/client/styles.d.ts +1 -1
  23. package/lib/client/types.d.ts +26 -2
  24. package/lib/client.js +701 -225
  25. package/lib/client.js.map +4 -4
  26. package/lib/constants.d.ts +24 -0
  27. package/lib/detection.d.ts +7 -0
  28. package/lib/fingerprint/bank.d.ts +24 -0
  29. package/lib/fingerprint/challenges.d.ts +14 -0
  30. package/lib/fingerprint/core.d.ts +85 -0
  31. package/lib/fingerprint/eligibility.d.ts +8 -0
  32. package/lib/fingerprint/random.d.ts +4 -0
  33. package/lib/fingerprint/run.d.ts +128 -0
  34. package/lib/fingerprint/store.d.ts +31 -0
  35. package/lib/fingerprint/verdict.d.ts +90 -0
  36. package/lib/index.js +1212 -251
  37. package/lib/index.js.map +4 -4
  38. package/lib/key-probe.d.ts +13 -98
  39. package/lib/knowledge.d.ts +21 -0
  40. package/lib/multi-key-listing.d.ts +3 -3
  41. package/package.json +13 -5
@@ -57,6 +57,17 @@ export declare const AUTOFILL_CONFIG_PATH = "/dsh-model-think-level/autofill-con
57
57
  * cannot observe it on its own.
58
58
  */
59
59
  export declare const HEADERS_CONFIG_PATH = "/dsh-model-think-level/headers-config";
60
+ /**
61
+ * Same-origin host route owning model fingerprint attribution (ModelTrace).
62
+ *
63
+ * Three verbs on one path: `GET` returns the stored records for one provider
64
+ * plus the bank summary the page needs to label families; `POST` runs one
65
+ * model's three challenges and stores the verdict; `DELETE` forgets one model.
66
+ * The attribution itself is `src/fingerprint/`, a pure port of ModelTrace's
67
+ * `fingerprint-core.js` over a vendored bank -- so this route only does the
68
+ * plumbing: run challenges through the llm service, parse, store.
69
+ */
70
+ export declare const FINGERPRINT_PATH = "/dsh-model-think-level/fingerprint";
60
71
  /** The settings namespace this plugin edits: pi-ai custom provider routes. */
61
72
  export declare const PI_AI_NS = "llm-pi-ai";
62
73
  /**
@@ -73,6 +84,19 @@ export declare const UNSET_MARKER = "reasoningEffortsUnset";
73
84
  * `input` as a decision (the route default applies), not as a gap to fill.
74
85
  */
75
86
  export declare const INPUT_UNSET_MARKER = "inputUnset";
87
+ /**
88
+ * Model-level marker declaring the row an IMAGE-GENERATION model (生图).
89
+ *
90
+ * The chat wire's own `input` vocabulary (pi-ai's MODALITY_GATE) only knows
91
+ * text/image — the request modalities a model ACCEPTS — and an image generator
92
+ * is not a request-modality answer at all: it is a different kind of model that
93
+ * the composer's model switcher must hide (its entries cannot serve a chat
94
+ * turn), so it lives beside the declaration as its own marker. Schemastery
95
+ * passes unknown model keys through, so the marker survives official-page saves
96
+ * and restarts like the other three; absence means "not an image generator",
97
+ * and `false`/absent are the same state.
98
+ */
99
+ export declare const INPUT_IMAGE_GEN_MARKER = "inputImageGen";
76
100
  /**
77
101
  * Model-level provenance marker written beside every ladder the HOST autofill
78
102
  * fills from the knowledge base, carrying the settings revision the fill read.
@@ -32,6 +32,13 @@ export interface EndpointSignal {
32
32
  * layer owns the intersection with the core vocabulary.
33
33
  */
34
34
  input?: readonly string[];
35
+ /**
36
+ * The listing's output-modality disclosure, lowercased, when it named one
37
+ * (OpenRouter's `architecture.output_modalities` and its flattened copies).
38
+ * This is the disclosure that answers "is this an image generator": a model
39
+ * whose listing outputs images and not text cannot serve a chat turn.
40
+ */
41
+ output?: readonly string[];
35
42
  /** Context length the listing disclosed, when it carries one. */
36
43
  contextLength?: number;
37
44
  }
@@ -0,0 +1,24 @@
1
+ import { type Bank } from './core.js';
2
+ export interface BankModelSummary {
3
+ id: string;
4
+ displayName: string;
5
+ family: string;
6
+ familyName: string;
7
+ }
8
+ export interface BankSummary {
9
+ builtAt: string;
10
+ schema: string;
11
+ models: BankModelSummary[];
12
+ families: Array<{
13
+ family: string;
14
+ name: string;
15
+ models: number;
16
+ }>;
17
+ recommendedQueries: number;
18
+ }
19
+ /** 只做形状校验并收窄成 `Bank`;不改任何数值。 */
20
+ export declare function parseBank(raw: unknown): Bank;
21
+ /** 同步读包内的指纹库。结果只解析一次。 */
22
+ export declare function loadBankSync(): Bank;
23
+ export declare function summarizeBank(bank: Bank): BankSummary;
24
+ export declare function bankBuiltAt(bank: Bank): string;
@@ -0,0 +1,14 @@
1
+ export interface Challenge {
2
+ id: string;
3
+ expected_count: number;
4
+ prompt: string;
5
+ }
6
+ export declare function generateChallenges(count?: number): Challenge[];
7
+ /** 三题应答的最小有效数字个数:`max(80, ceil(expected * 0.55))`。 */
8
+ export declare function minimumNumbers(expectedCount: number): number;
9
+ export declare const CHALLENGE_TEXT: {
10
+ readonly openings: string[];
11
+ readonly actions: string[];
12
+ readonly endings: string[];
13
+ readonly separatorHints: string[];
14
+ };
@@ -0,0 +1,85 @@
1
+ export declare const VALUE_MIN = 1;
2
+ export declare const VALUE_MAX = 355;
3
+ export declare const DIMENSION: number;
4
+ export declare const ALPHA = 0.5;
5
+ export declare const ORDERED_BLOCK_WEIGHT = 0.25;
6
+ /** 银行里的一位候选模型。`counts` 与 `DIMENSION` 等长。 */
7
+ export interface BankModel {
8
+ id: string;
9
+ display_name: string;
10
+ family: string;
11
+ family_name?: string;
12
+ counts: number[];
13
+ }
14
+ export interface BankArtifact {
15
+ feature_mean: number[];
16
+ feature_scale: number[];
17
+ nuisance_basis: number[][];
18
+ centroids: number[][];
19
+ weight?: number;
20
+ environment_centroids?: number[][][];
21
+ }
22
+ export interface Bank {
23
+ schema?: string;
24
+ built_at?: string;
25
+ method?: string;
26
+ recommended_queries?: number;
27
+ minimum_valid_numbers?: number;
28
+ models: BankModel[];
29
+ robust: {
30
+ model_order?: string[];
31
+ hellinger: BankArtifact;
32
+ ordered_blocks: BankArtifact;
33
+ };
34
+ calibration: Record<string, {
35
+ beta: number;
36
+ cv_accuracy: number;
37
+ }>;
38
+ }
39
+ export interface Output {
40
+ text: string;
41
+ expected_count: number;
42
+ }
43
+ export interface ResultRow {
44
+ model: string;
45
+ display_name: string;
46
+ probability: number;
47
+ profile_similarity: number;
48
+ score: number;
49
+ family: string;
50
+ family_name: string;
51
+ conditional_probability: number;
52
+ }
53
+ export interface Diagnostic {
54
+ index: number;
55
+ parsed_numbers: number;
56
+ minimum_numbers: number;
57
+ accepted: boolean;
58
+ }
59
+ export interface AttributionResult {
60
+ prediction: string;
61
+ prediction_name: string;
62
+ probability: number;
63
+ used_outputs: number;
64
+ results: ResultRow[];
65
+ diagnostics: Diagnostic[];
66
+ calibration: {
67
+ queries: number;
68
+ beta: number;
69
+ cv_accuracy: number;
70
+ };
71
+ family_prediction: string;
72
+ family_prediction_name: string;
73
+ family_probability: number;
74
+ family_probabilities: Array<{
75
+ family: string;
76
+ display_name: string;
77
+ probability: number;
78
+ }>;
79
+ method: string;
80
+ }
81
+ /** 三题全废时抛出,文案照抄上游,别改写。 */
82
+ export declare const NO_USABLE_OUTPUT = "\u6CA1\u6709\u53EF\u7528\u56DE\u7B54\uFF1A\u8BF7\u7C98\u8D34\u5B8C\u6574\u6570\u5B57\u5E8F\u5217\uFF1B\u62D2\u7B54\u6216\u4E25\u91CD\u622A\u65AD\u7684\u56DE\u7B54\u4E0D\u4F1A\u8BA1\u5165\u3002";
83
+ export declare function parseNumbers(text: string): number[];
84
+ export declare function countNumbers(numbers: number[]): number[];
85
+ export declare function analyzeGlobalOutputs(outputs: Output[], bank: Bank): AttributionResult;
@@ -0,0 +1,8 @@
1
+ /** 取模型 id 里最后一个 `/` 之后的部分,兼容 `anthropic/claude-…` 这类带前缀的写法。 */
2
+ export declare function bareModelId(modelId: string): string;
3
+ /** 该模型是否能被当前指纹库判定。 */
4
+ export declare function isEligibleModel(modelId: string): boolean;
5
+ /** 从一串模型 id 里挑出可检测的那几个,保持原顺序。 */
6
+ export declare function eligibleModels<T extends string>(modelIds: readonly T[]): T[];
7
+ /** 面向用户的家族名,用于文案(「GPT 系列」/「Claude 系列」)。 */
8
+ export declare function familyLabelOf(modelId: string): string;
@@ -0,0 +1,4 @@
1
+ /** `[0, maxExclusive)` 上的无偏整数(拒绝采样,与 Python `random.randrange` 同语义)。 */
2
+ export declare function randomInt(maxExclusive: number): number;
3
+ /** `secrets.token_hex(n)`:n 个随机字节的十六进制串,长度 2n。 */
4
+ export declare function randomToken(bytes: number): string;
@@ -0,0 +1,128 @@
1
+ /**
2
+ * One fingerprint probe: ask one model one challenge, keep its visible answer.
3
+ *
4
+ * This is the only module that touches the harness `llm` service. Everything
5
+ * else in `src/fingerprint/` is pure or filesystem-only, so the whole
6
+ * attribution math stays testable without a live provider.
7
+ *
8
+ * The request shape is deliberately ModelTrace's: one bare user message, no
9
+ * system prompt, no tools. Two deviations are worth naming.
10
+ *
11
+ * - `reasoningEffort` is LEFT UNSET on purpose. ModelTrace calls a plain chat
12
+ * completion, so the measured behaviour is the model under its own default.
13
+ * Setting an explicit effort would ask a *different* model behaviour than the
14
+ * one the fingerprint bank was built from, and the wire vocabulary for "off"
15
+ * differs per provider (`none`, `minimal`, `null`, or a 400). The plugin's
16
+ * own default-guard may still materialize one, exactly as it would for a
17
+ * normal user message -- so the probe measures the model under the plugin's
18
+ * normal conditions.
19
+ * - Only `text-delta` chunks are collected. `reasoning-delta` is thinking, not
20
+ * the answer the challenge asks for, and feeding it to {@link parseNumbers}
21
+ * would pollute the distribution with whatever the model happened to reason
22
+ * about.
23
+ *
24
+ * @module dsh-model-think-level/fingerprint/run
25
+ */
26
+ import type { Output } from './core.js';
27
+ /** The llm surface this probe drives: prepare, then dispatch once. */
28
+ export interface ProbeDispatch {
29
+ prepareCall(config: Record<string, unknown>, signal?: unknown): Promise<unknown>;
30
+ /**
31
+ * Runtime-level dispatch, used only when a prepared call carries no dispatch
32
+ * of its own. The harness's `PreparedLlmCall` owns `.stream`, which is the
33
+ * preferred half because it is the one that already holds the prepared call's
34
+ * auth and routing.
35
+ */
36
+ stream?(options: Record<string, unknown>): AsyncIterable<unknown>;
37
+ }
38
+ /** What one challenge produced, accepted or not. */
39
+ export interface ProbeOutcome {
40
+ /** Zero-based challenge index, matching `generateChallenges` order. */
41
+ index: number;
42
+ /** Challenge id, e.g. `probe-1-9f2c41a7b03d12`. */
43
+ challengeId: string;
44
+ /** How many integers the challenge asked for. */
45
+ expectedCount: number;
46
+ /** Whether a model call completed and produced any visible text. */
47
+ ok: boolean;
48
+ /** Visible answer text; empty when `ok` is false. */
49
+ text: string;
50
+ /** Failure description, present only when `ok` is false. */
51
+ error?: string;
52
+ /** Why the stream stopped, when one was reported. */
53
+ finish?: string;
54
+ /**
55
+ * Milliseconds from dispatch start to the first visible text chunk. Absent
56
+ * when no text arrived (rejected, cancelled, empty answer).
57
+ */
58
+ firstTokenMs?: number;
59
+ /** Total wall time of the challenge, milliseconds. */
60
+ durationMs?: number;
61
+ }
62
+ /** Everything one model's fingerprint run learned, ready for the bank. */
63
+ export interface ProbeRunResult {
64
+ /** Per challenge, in order. */
65
+ outcomes: ProbeOutcome[];
66
+ /** The accepted subset, ready for `analyzeGlobalOutputs`. */
67
+ outputs: Output[];
68
+ }
69
+ /** One challenge to put to the model. */
70
+ export interface ProbeChallenge {
71
+ id: string;
72
+ expected_count: number;
73
+ prompt: string;
74
+ }
75
+ /** Options for {@link runProbe}. */
76
+ export interface RunProbeOptions {
77
+ /** Registered provider route selecting the adapter. */
78
+ provider: string;
79
+ /** Exact model id. */
80
+ model: string;
81
+ /** Challenges to run, in order. */
82
+ challenges: readonly ProbeChallenge[];
83
+ /** The harness llm service. */
84
+ llm: ProbeDispatch;
85
+ /** Caller cancellation; combined with the per-probe timeout. */
86
+ signal?: AbortSignal;
87
+ /** Per-challenge timeout in milliseconds. Defaults to 120000. */
88
+ timeoutMs?: number;
89
+ /** Sampling cap for one answer. Defaults to 4000. */
90
+ maxTokens?: number;
91
+ /**
92
+ * Called as each challenge settles, so a caller can stream progress. Fire
93
+ * order is completion order, which for parallel runs is not `index` order.
94
+ * Challenges aborted by {@link shouldStop} do NOT fire this: they never
95
+ * answered, so they are not progress.
96
+ */
97
+ onOutcome?: (outcome: ProbeOutcome) => void;
98
+ /**
99
+ * Early-exit hook, called after each challenge settles with every outcome
100
+ * so far. Returning true aborts every challenge still in flight; their
101
+ * outcomes come back cancelled and stay out of `onOutcome` and of any
102
+ * caller-side progress accounting. This is what lets two confident answers
103
+ * close the run before the slowest challenge lands — aborting the tail is
104
+ * the whole point of firing all three at once.
105
+ */
106
+ shouldStop?: (outcomes: readonly ProbeOutcome[]) => boolean;
107
+ }
108
+ /** Default per-challenge timeout: two minutes is generous for 300 integers. */
109
+ export declare const DEFAULT_PROBE_TIMEOUT_MS = 120000;
110
+ /**
111
+ * Enough room for 292-332 integers plus whatever preamble the model refuses to
112
+ * drop. Parsed-count tolerance (55% of expected) means a truncated answer can
113
+ * still score, but a full run is strictly better.
114
+ */
115
+ export declare const DEFAULT_PROBE_MAX_TOKENS = 4000;
116
+ /**
117
+ * Ask one model one challenge and keep its visible answer.
118
+ *
119
+ * Never throws for a provider-side failure: a rejected or empty answer comes
120
+ * back as an outcome with `ok: false`, because one dead challenge must not
121
+ * discard the two that worked. Throws only for programmer errors (no
122
+ * challenges) and for an `AbortSignal` that the *caller* cancelled -- an abort
123
+ * is a decision, not a result.
124
+ *
125
+ * @param options - the run.
126
+ * @returns every outcome in order, plus the accepted subset.
127
+ */
128
+ export declare function runProbe(options: RunProbeOptions): Promise<ProbeRunResult>;
@@ -0,0 +1,31 @@
1
+ import { type FingerprintRecord, type FingerprintStatus, type FingerprintTiming, type FingerprintTopEntry } from './verdict.js';
2
+ export { type FingerprintRecord, type FingerprintStatus, type FingerprintTiming, type FingerprintTopEntry };
3
+ export interface FingerprintDocument {
4
+ version: 1;
5
+ /** 银行的 built_at;换银行就整体失效。 */
6
+ bankBuiltAt: string;
7
+ records: Record<string, FingerprintRecord>;
8
+ }
9
+ export declare function emptyFingerprintStore(bankBuiltAt?: string): FingerprintDocument;
10
+ /** 记录键。`\u0000` 在模型 id 与供应商 id 里都不可能出现。 */
11
+ export declare function recordKeyOf(provider: string, model: string): string;
12
+ export declare function fingerprintFilePath(home?: string): string;
13
+ /**
14
+ * 解析已解码的文档。永远不抛错:银行换了、文件被手改坏、条目形状不对,
15
+ * 代价最多是那一条被丢掉,不会让用户丢掉全部历史。
16
+ * @param raw - 解码后的 JSON 值。
17
+ * @param bankBuiltAt - 当前指纹库的 built_at;对不上就整体视为无历史。
18
+ */
19
+ export declare function parseFingerprintStore(raw: unknown, bankBuiltAt?: string): FingerprintDocument;
20
+ /** 读结果库;只有文件不存在才返回空库。 */
21
+ export declare function readFingerprintStore(bankBuiltAt?: string, file?: string): FingerprintDocument;
22
+ /** 原子写库。 */
23
+ export declare function writeFingerprintStore(document: FingerprintDocument, file?: string): void;
24
+ /** 一次读-改-写。返回的就是落盘后的文档。 */
25
+ export declare function updateFingerprintStore(mutate: (document: FingerprintDocument) => FingerprintDocument, bankBuiltAt?: string, file?: string): FingerprintDocument;
26
+ /** 覆盖或新增一条记录。 */
27
+ export declare function withRecord(document: FingerprintDocument, record: FingerprintRecord): FingerprintDocument;
28
+ /** 删掉一条记录(供应商或模型被删掉时用)。 */
29
+ export declare function withoutRecord(document: FingerprintDocument, provider: string, model: string): FingerprintDocument;
30
+ /** 一个供应商下的全部记录。 */
31
+ export declare function providerRecords(document: FingerprintDocument, provider: string): FingerprintRecord[];
@@ -0,0 +1,90 @@
1
+ import type { AttributionResult, ResultRow } from './core.js';
2
+ /** 落盘的三种状态。`running` 不落盘,只活在客户端 runner 里。 */
3
+ export type FingerprintStatus = 'identified' | 'doubtful' | 'failed';
4
+ /**
5
+ * 检测的耗时画像(可选):给结果卡一句「慢在哪」。只收统计量 —— 首 token
6
+ * 等待、整次墙钟、按「总时长 − 首 token 等待」折出的吐字速度;原始文本
7
+ * 从不落盘(design §4.2)。
8
+ */
9
+ export interface FingerprintTiming {
10
+ /** 有效回答里最慢的首 token 等待,毫秒。 */
11
+ firstTokenMs?: number;
12
+ /** 有效回答里最慢的整题耗时(墙钟 ≈ 用户等的时间),毫秒。 */
13
+ durationMs?: number;
14
+ /** 有效回答合计的可见字符 ÷ 合计纯吐字时长,字符/秒。 */
15
+ charsPerSecond?: number;
16
+ }
17
+ /** 结果卡「前三候选」里的一条。 */
18
+ export interface FingerprintTopEntry {
19
+ model: string;
20
+ probability: number;
21
+ similarity: number;
22
+ }
23
+ /**
24
+ * 一个模型的一次检测结论,也是落盘的那一行。
25
+ *
26
+ * 这个形状放在这里而不是 store 里,是因为**前端画徽章要用它**:store 是
27
+ * Node-only(`node:fs`),浏览器只能从纯模块取形状。判据、结果条目、结果行
28
+ * 三者属于同一件事的三个面,拆开会各长各的。
29
+ */
30
+ export interface FingerprintRecord {
31
+ provider: string;
32
+ model: string;
33
+ status: FingerprintStatus;
34
+ checkedAt: number;
35
+ usedOutputs: number;
36
+ /** 仅 identified / doubtful 有值。 */
37
+ prediction?: string;
38
+ predictionName?: string;
39
+ probability?: number;
40
+ familyPrediction?: string;
41
+ familyProbability?: number;
42
+ top?: FingerprintTopEntry[];
43
+ calibration?: {
44
+ queries: number;
45
+ cvAccuracy: number;
46
+ };
47
+ /** 本次检测的耗时画像,检测失败时没有意义,不落盘。 */
48
+ timing?: FingerprintTiming;
49
+ /** 仅 failed 有值,面向用户的失败原因。 */
50
+ error?: string;
51
+ }
52
+ /**
53
+ * `identified` 的概率下界。
54
+ *
55
+ * 库里 18 个候选的均匀先验是 5.6%,0.6 已经是压倒性的;低于它就说明几个候选
56
+ * 咬得很近,说「像」不负责任。
57
+ */
58
+ export declare const IDENTIFIED_THRESHOLD = 0.6;
59
+ /** 出一个确定结论需要的完整题数。 */
60
+ export declare const FULL_RUN_QUERIES = 3;
61
+ /**
62
+ * 两题早停判 `identified` 的概率下界。
63
+ *
64
+ * 银行自带 2 题校准:交叉验证准确率 99.7%(646/648),beta≈12 让概率分布
65
+ * 非常尖。0.9 在那套校准下仍是保守门槛 —— 池化概率到不了 0.9 就继续等第三
66
+ * 题,走三题的完整判据,所以早停只会提前、不会放宽。
67
+ */
68
+ export declare const EARLY_IDENTIFIED_PROBABILITY = 0.9;
69
+ /** 早停最少需要的有效题数(两题)。 */
70
+ export declare const EARLY_IDENTIFIED_QUERIES = 2;
71
+ /**
72
+ * 取概率最高的前几名候选,供结果卡画条形。
73
+ * @param rows - 已按概率降序排好的候选。
74
+ * @param limit - 取几名,默认 3。
75
+ * @returns 前 `limit` 条的模型 id、概率、相似度。
76
+ */
77
+ export declare function topEntriesOf(rows: readonly ResultRow[], limit?: number): FingerprintTopEntry[];
78
+ /**
79
+ * 把一次归属结论定级。
80
+ *
81
+ * 三道闸:概率必须够高,题数必须够多,多到哪一档就用哪一档的门槛。三题全有
82
+ * 效走 0.6;两题有效走 0.9(早停或第三题意外作废时,银行 2 题校准的交叉验证
83
+ * 准确率 99.7% 撑得起,但门槛相应收紧);1 题的交叉验证准确率只有 96.3%,
84
+ * 撑不起任何确定结论 —— 一律 `doubtful`,哪怕那一题的概率是 0.99。
85
+ *
86
+ * @param attribution - `analyzeGlobalOutputs` 的结果;失败时传 null。
87
+ * @param usedOutputs - 有效题数。
88
+ * @returns 落盘与画徽章共用的状态。
89
+ */
90
+ export declare function statusOf(attribution: AttributionResult | null, usedOutputs: number): FingerprintStatus;