@eddyskywalker/dsh-chatgpt-subscription 0.66.2 → 0.68.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 +48 -0
- package/README.md +1 -1
- package/lib/client.js +111 -631
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +28 -7
- package/lib/{entry-plan-mode-CLRKkgYG.js → entry-plan-mode-gqE4UeU5.js} +5 -2
- package/lib/{entry-progress-updates-DZ0ZRus4.js → entry-progress-updates-DpzbX1GP.js} +5 -1
- package/lib/index.js +408 -2062
- package/lib/plan-mode-pipeline.js +1 -1
- package/lib/plan-mode.js +1 -1
- package/lib/progress-updates.js +1 -1
- package/lib/types/client/cline-pass/ClinePassSection.d.ts +1 -1
- package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -1
- package/lib/types/client/cline-pass/api.d.ts +2 -36
- package/lib/types/client/cline-pass/api.d.ts.map +1 -1
- package/lib/types/client/cline-pass/locales.d.ts +30 -264
- package/lib/types/client/cline-pass/locales.d.ts.map +1 -1
- package/lib/types/client/cline-pass/styles.d.ts +2 -2
- package/lib/types/client/cline-pass/styles.d.ts.map +1 -1
- package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -1
- package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -1
- package/lib/types/client/progress-updates/locales.d.ts +8 -2
- package/lib/types/client/progress-updates/locales.d.ts.map +1 -1
- package/lib/types/client/progress-updates/settings-binding.d.ts +3 -1
- package/lib/types/client/progress-updates/settings-binding.d.ts.map +1 -1
- package/lib/types/client/progress-updates/settings-section.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/entry-codemode.d.ts.map +1 -1
- package/lib/types/entry-plan-mode-pipeline.d.ts.map +1 -1
- package/lib/types/entry-plan-mode.d.ts.map +1 -1
- package/lib/types/host/agent-preset.d.ts.map +1 -1
- package/lib/types/host/antigravity/adapter.d.ts.map +1 -1
- package/lib/types/host/antigravity/client-version.d.ts.map +1 -1
- package/lib/types/host/antigravity/types.d.ts +5 -5
- package/lib/types/host/antigravity/types.d.ts.map +1 -1
- package/lib/types/host/cline-pass/adapter.d.ts +3 -4
- package/lib/types/host/cline-pass/adapter.d.ts.map +1 -1
- package/lib/types/host/cline-pass/client.d.ts +0 -22
- package/lib/types/host/cline-pass/client.d.ts.map +1 -1
- package/lib/types/host/cline-pass/engine.d.ts +9 -147
- package/lib/types/host/cline-pass/engine.d.ts.map +1 -1
- package/lib/types/host/cline-pass/line.d.ts.map +1 -1
- package/lib/types/host/cline-pass/mapper.d.ts +1 -3
- package/lib/types/host/cline-pass/mapper.d.ts.map +1 -1
- package/lib/types/host/cline-pass/protocol.d.ts +1 -161
- package/lib/types/host/cline-pass/protocol.d.ts.map +1 -1
- package/lib/types/host/cline-pass/routes.d.ts +2 -7
- package/lib/types/host/cline-pass/routes.d.ts.map +1 -1
- package/lib/types/host/cline-pass/store.d.ts +11 -35
- package/lib/types/host/cline-pass/store.d.ts.map +1 -1
- package/lib/types/host/cline-pass/token-store.d.ts +1 -10
- package/lib/types/host/cline-pass/token-store.d.ts.map +1 -1
- package/lib/types/host/cline-pass/tools.d.ts.map +1 -1
- package/lib/types/host/cline-pass/types.d.ts +7 -76
- package/lib/types/host/cline-pass/types.d.ts.map +1 -1
- package/lib/types/host/codemode/rules.d.ts +13 -5
- package/lib/types/host/codemode/rules.d.ts.map +1 -1
- package/lib/types/host/command-code/adapter.d.ts.map +1 -1
- package/lib/types/host/dispatch-execution-guard.d.ts.map +1 -1
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -1
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts +7 -0
- package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -1
- package/lib/types/host/kimi-code/tool-argument-recovery.d.ts.map +1 -1
- package/lib/types/host/progress-updates/prompt.d.ts.map +1 -1
- package/lib/types/host/progress-updates/tool.d.ts.map +1 -1
- package/lib/types/index.d.ts +14 -4
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/cline-pass-contracts.d.ts +6 -92
- package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -1
- package/package.json +1 -1
- package/presets/dispatch/README.md +9 -9
- package/presets/dispatch/agent.cordis.yml +26 -18
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
/** Which pipeline the gateway routed one
|
|
1
|
+
/** Which pipeline the gateway routed one response through. */
|
|
2
2
|
export type ClinePipeline = 'direct' | 'planner';
|
|
3
|
-
/** One candidate request, after a pin has been expanded into try order. */
|
|
4
|
-
export interface PinAttempt {
|
|
5
|
-
/** The channel to pin, or null for automatic routing. */
|
|
6
|
-
upstream: string | null;
|
|
7
|
-
/** The remaining ordered candidates; used in `preferred` mode. */
|
|
8
|
-
orderRest: string[];
|
|
9
|
-
/** Channels that must never serve this request. */
|
|
10
|
-
excludeList: string[];
|
|
11
|
-
/** Strict writes `only`; preferred writes `order` as well. */
|
|
12
|
-
strict: boolean;
|
|
13
|
-
/** Normalized sort metric, or null for none. */
|
|
14
|
-
sort: string | null;
|
|
15
|
-
/** Required model capabilities, written only to the Vercel gateway spelling. */
|
|
16
|
-
has?: readonly string[];
|
|
17
|
-
/** `detected` restores the old single-spelling behavior. */
|
|
18
|
-
spelling?: string;
|
|
19
|
-
}
|
|
20
|
-
/** One model's stored pin configuration. */
|
|
21
|
-
export interface PinConfig {
|
|
22
|
-
upstreams?: readonly string[];
|
|
23
|
-
exclude?: readonly string[];
|
|
24
|
-
pinMode?: string;
|
|
25
|
-
sort?: string;
|
|
26
|
-
has?: readonly string[];
|
|
27
|
-
spelling?: string;
|
|
28
|
-
}
|
|
29
3
|
/** What one response says about how the gateway routed it. */
|
|
30
4
|
export interface RoutingFacts {
|
|
31
5
|
content: string | null;
|
|
@@ -49,25 +23,6 @@ export interface RoutingFacts {
|
|
|
49
23
|
/** Whether the serving channel is the gateway's anonymous contributor route. */
|
|
50
24
|
anonymous: boolean;
|
|
51
25
|
}
|
|
52
|
-
/** Written into the model observation store, so probe results are kept apart by pipeline. */
|
|
53
|
-
export interface PinModelMeta {
|
|
54
|
-
upstreams?: string[];
|
|
55
|
-
channels?: Partial<Record<ClinePipeline, string[]>>;
|
|
56
|
-
pipeline?: ClinePipeline | null;
|
|
57
|
-
/** The channel the last observed answer actually came from, when known. */
|
|
58
|
-
lastProvider?: string | null;
|
|
59
|
-
/** The last answer's first-party DeepSeek fingerprint, when it carried one. */
|
|
60
|
-
lastFingerprint?: string | null;
|
|
61
|
-
}
|
|
62
|
-
/** One attempt's replayed identity. */
|
|
63
|
-
export interface PinAttemptOutcome {
|
|
64
|
-
attempt: PinAttempt;
|
|
65
|
-
routing: {
|
|
66
|
-
finalProvider: string | null;
|
|
67
|
-
} | null;
|
|
68
|
-
}
|
|
69
|
-
/** Whether a pin was honored, or could not be judged. */
|
|
70
|
-
export type PinAdherence = 'adopted' | 'fallback' | 'not-adopted' | 'violated' | 'unresolved';
|
|
71
26
|
/**
|
|
72
27
|
* The gateway wraps some answers in a `{ data: … }` envelope; unwrap it.
|
|
73
28
|
* @param json - raw decoded response body.
|
|
@@ -84,121 +39,6 @@ export declare function isAuthenticationError(message: unknown, status?: number)
|
|
|
84
39
|
* @returns pipeline, canonical slug, chosen upstream and fallback list.
|
|
85
40
|
*/
|
|
86
41
|
export declare function parseRouting(json: unknown): RoutingFacts;
|
|
87
|
-
/** Lowercase a display name into an upstream slug. */
|
|
88
|
-
export declare function slugify(value: unknown): string;
|
|
89
|
-
/** OpenRouter's names for the three sort metrics. */
|
|
90
|
-
export declare const OPENROUTER_SORT: Readonly<Record<string, string>>;
|
|
91
|
-
/**
|
|
92
|
-
* Channels the two routers spell differently, as `[planner, direct]` pairs.
|
|
93
|
-
*
|
|
94
|
-
* Z.AI is `zai` to the Vercel gateway and `z-ai` to OpenRouter. Writing one name
|
|
95
|
-
* into both spellings matters: a request that lands on the direct pipeline
|
|
96
|
-
* carries `provider.only` to OpenRouter, where an unknown provider is refused
|
|
97
|
-
* rather than ignored.
|
|
98
|
-
*/
|
|
99
|
-
export declare const CHANNEL_ALIASES: ReadonlyArray<readonly [string, string]>;
|
|
100
|
-
/**
|
|
101
|
-
* Translate a channel name into the spelling one pipeline uses.
|
|
102
|
-
* @param name - the configured channel name, in either spelling.
|
|
103
|
-
* @param pipeline - `'planner'` or `'direct'`.
|
|
104
|
-
* @returns the name that pipeline expects; unknown names pass through.
|
|
105
|
-
*/
|
|
106
|
-
export declare function channelNameFor(name: string, pipeline: ClinePipeline): string;
|
|
107
|
-
/**
|
|
108
|
-
* Normalize a configured sort into a wire value or null.
|
|
109
|
-
*
|
|
110
|
-
* Two spellings mean "no sort" and both must be dropped before the request is
|
|
111
|
-
* built: the settings schema stores an empty string, and `none` is the
|
|
112
|
-
* documented "clear it" value. Neither is a metric, and the gateway rejects them
|
|
113
|
-
* with HTTP 400.
|
|
114
|
-
*/
|
|
115
|
-
export declare function normalizeSort(value: unknown): string | null;
|
|
116
|
-
/**
|
|
117
|
-
* Normalize a configured pin mode to the one value the router compares against.
|
|
118
|
-
* @param value - the configured pin mode, as stored.
|
|
119
|
-
* @returns `'strict'` or `'preferred'`.
|
|
120
|
-
*/
|
|
121
|
-
export declare function normalizePinMode(value: unknown): 'strict' | 'preferred';
|
|
122
|
-
/** A request body, before and after pin injection. */
|
|
123
|
-
type WireBody = Record<string, unknown>;
|
|
124
|
-
/**
|
|
125
|
-
* Write one attempt's upstream preference into a request body.
|
|
126
|
-
*
|
|
127
|
-
* Excludes are compiled into an `only` allow-list because the gateway ignores
|
|
128
|
-
* the exclude/ignore fields.
|
|
129
|
-
*
|
|
130
|
-
* Both spellings are written by default. A pin is honored only by the pipeline
|
|
131
|
-
* that owns the spelling, and the pipeline a model runs on is decided by the
|
|
132
|
-
* gateway and can differ between calls, so writing just the spelling the last
|
|
133
|
-
* probe observed means the pin silently evaporates the moment that changes. Each
|
|
134
|
-
* pipeline ignores the other's field, which is what makes writing both safe.
|
|
135
|
-
* `spelling: 'detected'` restores the old single-spelling behavior.
|
|
136
|
-
*
|
|
137
|
-
* @returns a new body with the pin applied.
|
|
138
|
-
*/
|
|
139
|
-
export declare function injectPrefs(body: WireBody, meta: PinModelMeta | undefined, attempt: PinAttempt | undefined): WireBody;
|
|
140
|
-
/**
|
|
141
|
-
* Read back whether the router honored one attempt's pin.
|
|
142
|
-
*
|
|
143
|
-
* A 200 is not evidence that the pin was applied: an unknown or unavailable
|
|
144
|
-
* `only` value is dropped by the router, which then serves the request from
|
|
145
|
-
* another channel. The only honest test is the channel the response reports.
|
|
146
|
-
*/
|
|
147
|
-
export declare function pinAdherence(attempt: PinAttempt, routing: {
|
|
148
|
-
finalProvider: string | null;
|
|
149
|
-
} | null | undefined): PinAdherence;
|
|
150
|
-
/** Whether an adherence reading means the pin was honored, or cannot be judged. */
|
|
151
|
-
export declare function isAdherenceOk(adherence: PinAdherence): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Name the configuration problems that make a pin impossible to honor.
|
|
154
|
-
*
|
|
155
|
-
* Both cases used to produce a request with no pin fields at all — that is,
|
|
156
|
-
* "excluded" channels still in play, silently.
|
|
157
|
-
*
|
|
158
|
-
* @returns human-readable warnings, empty when the pin is expressible.
|
|
159
|
-
*/
|
|
160
|
-
export declare function pinWarnings(attempt: Pick<PinAttempt, 'upstream'> & {
|
|
161
|
-
excludeList?: string[];
|
|
162
|
-
}, meta: PinModelMeta | undefined): string[];
|
|
163
|
-
/**
|
|
164
|
-
* Expand one model's pin configuration into the ordered failover candidates.
|
|
165
|
-
*
|
|
166
|
-
* A model with a non-empty (post-exclusion) pin list is tried upstream by
|
|
167
|
-
* upstream; a model without one is a single automatic candidate whose excludes
|
|
168
|
-
* become an allow-list.
|
|
169
|
-
*/
|
|
170
|
-
export declare function buildAttempts(config: PinConfig): PinAttempt[];
|
|
171
|
-
/**
|
|
172
|
-
* Classify a pinned-request failure into one upstream availability verdict.
|
|
173
|
-
* @returns `ok` (the channel answered), `limited`, `bad`, `auth`, or `unknown`.
|
|
174
|
-
*/
|
|
175
|
-
export declare function classifyUpstreamError(message: unknown): 'ok' | 'limited' | 'bad' | 'auth' | 'unknown';
|
|
176
|
-
/**
|
|
177
|
-
* Recover the gateway's own upstream list from a routing-layer error.
|
|
178
|
-
*
|
|
179
|
-
* The probe channels an impossible `only` value, so the router fails before
|
|
180
|
-
* spending a token and names every provider it could have used.
|
|
181
|
-
*/
|
|
182
|
-
export declare function extractAvailableProviders(message: unknown, pipeline: ClinePipeline | null): string[] | null;
|
|
183
|
-
/**
|
|
184
|
-
* Read the tier-0 channel hint out of a planner's reasoning sentence.
|
|
185
|
-
* @param plan - `provider_metadata.gateway.routing.planningReasoning`.
|
|
186
|
-
*/
|
|
187
|
-
export declare function parseTier0(plan: unknown): string[];
|
|
188
|
-
/**
|
|
189
|
-
* Merge the upstream channels discovered by several means, keeping order and
|
|
190
|
-
* dropping duplicates.
|
|
191
|
-
* @param lists - candidate lists, highest confidence first.
|
|
192
|
-
* @returns the merged, de-duplicated upstream slugs (capped at MAX_UPSTREAMS).
|
|
193
|
-
*/
|
|
194
|
-
export declare function mergeUpstreams(...lists: ReadonlyArray<readonly string[] | null | undefined>): string[];
|
|
195
|
-
/**
|
|
196
|
-
* Normalize a model id for fuzzy OpenRouter catalog matching.
|
|
197
|
-
* @param value - either id.
|
|
198
|
-
* @returns the comparable form.
|
|
199
|
-
*/
|
|
200
|
-
export declare function normalizeSlug(value: unknown): string;
|
|
201
42
|
/** Whether a value is a non-null object. */
|
|
202
43
|
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
203
|
-
export {};
|
|
204
44
|
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/protocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/protocol.ts"],"names":[],"mappings":"AASA,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEhD,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,EAAE,OAAO,EAAE,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;OAOG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,gFAAgF;IAChF,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKrE;AAED,qDAAqD;AACrD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAShD;AAED,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAGhF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY,CAuCxD;AAiED,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* The Cline Pass settings API.
|
|
3
3
|
*
|
|
4
4
|
* The surface is the same one every sibling line exposes — status, accounts,
|
|
5
|
-
* models — plus
|
|
6
|
-
*
|
|
7
|
-
* in-process request history.
|
|
5
|
+
* models — plus an ordinary model test, the official quota reading and the
|
|
6
|
+
* in-process request history. Upstream routing is owned by Cline.
|
|
8
7
|
*
|
|
9
8
|
* A status read never waits on Cline: it answers the cached quota snapshot and,
|
|
10
9
|
* when that snapshot is missing or older than the line's TTL, schedules one
|
|
@@ -72,10 +71,6 @@ export declare const CLINE_PASS_ROUTES: {
|
|
|
72
71
|
readonly 'login/status': "GET";
|
|
73
72
|
readonly 'login/cancel': "POST";
|
|
74
73
|
readonly models: "GET|POST";
|
|
75
|
-
readonly 'models/pin': "POST";
|
|
76
|
-
readonly 'models/reset': "POST";
|
|
77
|
-
readonly 'models/probe': "POST";
|
|
78
|
-
readonly 'models/validate': "POST";
|
|
79
74
|
readonly 'models/test': "POST";
|
|
80
75
|
readonly 'models/visibility': "POST";
|
|
81
76
|
readonly 'models/visibility-all': "POST";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/routes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAwE,KAAK,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAEzI,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAcL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAA;AAgC7C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,QAAgB,CAAA;AA8FpD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,2BAA2B,CAAA;IACrC,WAAW,EAAE,oBAAoB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,eAAe,CAAA;IACvB,kEAAkE;IAClE,OAAO,EAAE,OAAO,KAAK,CAAA;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,qBAAqB,CAAA;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,OAAO,IAAI,OAAO,CAAA;IAClB,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,8FAA8F;AAC9F,eAAO,MAAM,oBAAoB,4BAAsB,CAAA;AAEvD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,qBAAqB,EAC9B,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAiD7B;AAsBD,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAAS,CAAA;AAEvC;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,IAAI,CAsfhG"}
|
|
@@ -1,41 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime observation state: the last catalog scan, quota reading, response
|
|
3
|
+
* routing facts and request history. Everything here is derived and in-memory.
|
|
4
|
+
* Configuration lives in the settings file instead (see `token-store.ts`).
|
|
5
|
+
*
|
|
6
|
+
* @module dsh-chatgpt-subscription/cline-pass-store
|
|
7
|
+
*/
|
|
1
8
|
import type { ClinePipeline } from './protocol.ts';
|
|
2
9
|
import type { ClinePassHistoryRowDto, ClinePassUsageDto } from '../../shared/cline-pass-contracts.ts';
|
|
3
|
-
|
|
4
|
-
/** One upstream availability verdict. */
|
|
5
|
-
export interface ClinePassUpstreamVerdict {
|
|
6
|
-
status: ClinePassVerdictStatus;
|
|
7
|
-
note: string;
|
|
8
|
-
ms: number;
|
|
9
|
-
checkedAt: number;
|
|
10
|
-
}
|
|
11
|
-
/** Per-upstream endpoint detail harvested from OpenRouter's public catalog. */
|
|
12
|
-
export interface ClinePassUpstreamDetail {
|
|
13
|
-
slug: string;
|
|
14
|
-
name: string;
|
|
15
|
-
endpoints: number;
|
|
16
|
-
context: number;
|
|
17
|
-
uptime: number;
|
|
18
|
-
}
|
|
19
|
-
/** Discovered metadata for one model. */
|
|
10
|
+
/** Observed metadata for one model, unrelated to client-side routing control. */
|
|
20
11
|
export interface ClinePassModelObservation {
|
|
21
12
|
ok?: boolean;
|
|
22
13
|
pipeline?: ClinePipeline | null;
|
|
23
|
-
pinnable?: boolean;
|
|
24
14
|
canonicalSlug?: string | null;
|
|
25
|
-
openrouterSlug?: string | null;
|
|
26
|
-
upstreams?: string[];
|
|
27
|
-
channels?: Partial<Record<ClinePipeline, string[]>>;
|
|
28
|
-
upstreamStatus?: Record<string, ClinePassUpstreamVerdict>;
|
|
29
|
-
upstreamDetail?: Record<string, ClinePassUpstreamDetail>;
|
|
30
|
-
availableProviders?: string[];
|
|
31
|
-
tier0?: string[];
|
|
32
15
|
lastProvider?: string | null;
|
|
33
16
|
/** The last answer's first-party DeepSeek fingerprint, when it carried one. */
|
|
34
17
|
lastFingerprint?: string | null;
|
|
35
18
|
lastMs?: number;
|
|
36
|
-
probedAt?: number;
|
|
37
|
-
validatedAt?: number;
|
|
38
|
-
staleAt?: number;
|
|
39
19
|
lastError?: string;
|
|
40
20
|
}
|
|
41
21
|
/** One recorded model call. */
|
|
@@ -62,18 +42,14 @@ export interface ClinePassCatalogState {
|
|
|
62
42
|
export declare function createClinePassStore({ historyLimit }?: {
|
|
63
43
|
historyLimit?: number;
|
|
64
44
|
}): {
|
|
65
|
-
/**
|
|
45
|
+
/** Observed metadata for one model (never undefined). */
|
|
66
46
|
metaOf(model: string): ClinePassModelObservation;
|
|
67
|
-
/** Every model with
|
|
47
|
+
/** Every model with observed metadata. */
|
|
68
48
|
allMeta(): Array<ClinePassModelObservation & {
|
|
69
49
|
id: string;
|
|
70
50
|
}>;
|
|
71
|
-
/** Merge one
|
|
51
|
+
/** Merge one response observation into a model's metadata. */
|
|
72
52
|
learn(model: string, patch: Partial<ClinePassModelObservation>): ClinePassModelObservation;
|
|
73
|
-
/** Record a verdict; explicit validation also replaces stale results with unknown. */
|
|
74
|
-
learnUpstream(model: string, upstream: string | null | undefined, status: ClinePassVerdictStatus, note: unknown, ms: unknown, { includeUnknown }?: {
|
|
75
|
-
includeUnknown?: boolean;
|
|
76
|
-
}): void;
|
|
77
53
|
/** Append one request-history row (newest first, bounded). */
|
|
78
54
|
record(entry: ClinePassHistoryInput): void;
|
|
79
55
|
/** Adopt a changed retention budget from the settings file. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,sCAAsC,CAAA;AAG7C,iFAAiF;AACjF,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,+EAA+E;IA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,MAAM,GAAG,IAAI;IAKnC,0CAA0C;sDACG,qBAAqB,EAAE;IAMpE,8CAA8C;mBAC/B,MAAM;IAGrB,6EAA6E;uBAC1D,MAAM;IAGzB,6CAA6C;eAClC,qBAAqB;IAGhC,gDAAgD;qBAC/B,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,qBAAqB;IAI1G,gDAAgD;aACvC,iBAAiB;IAG1B,wCAAwC;mBACzB,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,iBAAiB;EAKzE;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { CredentialStore } from '../token-store.ts';
|
|
2
|
-
import { type ClinePassPinSettings } from './types.ts';
|
|
3
2
|
/**
|
|
4
3
|
* One stored Cline Pass API key.
|
|
5
4
|
*
|
|
@@ -97,8 +96,6 @@ export interface ClinePassModelSettings {
|
|
|
97
96
|
baseURL: string;
|
|
98
97
|
enabledModelIds: string[] | null;
|
|
99
98
|
catalogModels: ClinePassCatalogModel[];
|
|
100
|
-
/** Per-model upstream pin, keyed by model id. */
|
|
101
|
-
pins: Record<string, ClinePassPinSettings>;
|
|
102
99
|
/** Models the route must not advertise even though it still knows them. */
|
|
103
100
|
hiddenModels: string[];
|
|
104
101
|
/** Per-model context-window override; absent uses the published window. */
|
|
@@ -109,8 +106,6 @@ export interface ClinePassModelSettings {
|
|
|
109
106
|
streamIdleTimeoutMs: number;
|
|
110
107
|
historyLimit: number;
|
|
111
108
|
exposeCatalog: boolean;
|
|
112
|
-
/** Which pin spellings a request carries: `both` (default) or `detected`. */
|
|
113
|
-
pinSpelling: string;
|
|
114
109
|
/** Whether the `cline_pass_*` tools are registered on the next start. */
|
|
115
110
|
exposeTools: boolean;
|
|
116
111
|
}
|
|
@@ -166,12 +161,8 @@ export declare class ClinePassModelSettingsStore implements ClinePassPreferenceS
|
|
|
166
161
|
private load;
|
|
167
162
|
write(settings: ClinePassModelSettings): Promise<ClinePassModelSettings>;
|
|
168
163
|
update(patch: Partial<ClinePassModelSettings>): Promise<ClinePassModelSettings>;
|
|
169
|
-
/** Record a catalog sync without touching the user's selection
|
|
164
|
+
/** Record a catalog sync without touching the user's selection. */
|
|
170
165
|
storeCatalog(models: ClinePassCatalogModel[]): Promise<ClinePassModelSettings>;
|
|
171
|
-
/** Store one model's pin; an empty pin list returns it to automatic routing. */
|
|
172
|
-
setPin(model: string, pin: ClinePassPinSettings): Promise<ClinePassModelSettings>;
|
|
173
|
-
/** Drop one model's pin entirely. */
|
|
174
|
-
clearPin(model: string): Promise<ClinePassModelSettings>;
|
|
175
166
|
/** Store or clear (null) one model's context-window override. */
|
|
176
167
|
setContextWindowOverride(model: string, contextWindow: number | null): Promise<ClinePassModelSettings>;
|
|
177
168
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/token-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"token-store.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/token-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAexD;;;;;;;GAOG;AACH,UAAU,uBAAuB;IAC/B,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,+DAA+D;IAC/D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,4BAA4B;IAC5B,MAAM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AAC;IAKpF,iEAAiE;IAC3D,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAO7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/tools.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AAkD9E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,2BAA2B,CAAA;IACrC,WAAW,EAAE,oBAAoB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,eAAe,CAAA;IACvB,MAAM,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACrC,4DAA4D;IAC5D,OAAO,IAAI,OAAO,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,qBAAqB,GAAG,KAAK,CAAC,MAAM,IAAI,CAAC,CAiXtG"}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
* Static facts about the Cline Pass subscription and its gateway.
|
|
3
3
|
*
|
|
4
4
|
* The upstream is an OpenAI-compatible `chat/completions` endpoint
|
|
5
|
-
* (`https://api.cline.bot/api/v1`)
|
|
6
|
-
*
|
|
7
|
-
* pin differently — see `protocol.ts`. Authentication is a static API key in
|
|
8
|
-
* `Authorization: Bearer`: there is no OAuth flow and no token expiry.
|
|
5
|
+
* (`https://api.cline.bot/api/v1`). Routing is always decided by that gateway;
|
|
6
|
+
* this plugin does not send client-side provider selection fields.
|
|
9
7
|
*
|
|
10
8
|
* The model table below is transcribed from the Cline Pass subscription list and
|
|
11
9
|
* the public `models.dev` catalog. It is a fallback, not a ceiling: a model the
|
|
@@ -13,7 +11,6 @@
|
|
|
13
11
|
* model this release has never heard of is adopted with conservative metadata
|
|
14
12
|
* rather than hidden.
|
|
15
13
|
*/
|
|
16
|
-
import type { ClinePassPinMode } from '../../shared/cline-pass-contracts.ts';
|
|
17
14
|
export declare const PROVIDER_ID = "cline-pass";
|
|
18
15
|
export declare const PROVIDER_NAME = "Cline Pass";
|
|
19
16
|
/** Default gateway. Overridable per deployment and per account. */
|
|
@@ -24,8 +21,6 @@ export declare const RECOMMENDED_MODELS_URL = "https://api.cline.bot/api/v1/ai/c
|
|
|
24
21
|
export declare const VERCEL_MODELS_URL = "https://ai-gateway.vercel.sh/v1/models";
|
|
25
22
|
/** The community model registry, a metadata backstop. */
|
|
26
23
|
export declare const MODELS_DEV_URL = "https://models.dev/api.json";
|
|
27
|
-
/** OpenRouter's public API, used only for direct-pipeline endpoint detail. */
|
|
28
|
-
export declare const OPENROUTER_API = "https://openrouter.ai/api/v1";
|
|
29
24
|
/** Authenticated sub-paths on the gateway. */
|
|
30
25
|
export declare const USAGE_LIMITS_PATH = "/users/me/plan/usage-limits";
|
|
31
26
|
export declare const PROFILE_PATH = "/users/me";
|
|
@@ -33,49 +28,17 @@ export declare const USAGE_PAGE_SIZE = 200;
|
|
|
33
28
|
export declare const USAGE_MAX_PAGES = 12;
|
|
34
29
|
/** Conservative context capacity for a model no catalog describes. */
|
|
35
30
|
export declare const DEFAULT_CONTEXT_WINDOW = 128000;
|
|
36
|
-
/**
|
|
37
|
-
* Per-request output budget when the caller states none.
|
|
38
|
-
*
|
|
39
|
-
* A budget, not a ceiling: the harness reserves it as completion room before it
|
|
40
|
-
* compacts, so this decides how much of the window stays available. 64k keeps
|
|
41
|
-
* the reserve far below the compaction ratio while leaving room for a
|
|
42
|
-
* tool-calling agent's longest turn.
|
|
43
|
-
*/
|
|
31
|
+
/** Per-request output budget when the caller states none. */
|
|
44
32
|
export declare const DEFAULT_MAX_TOKENS = 64000;
|
|
45
33
|
/** Streams one account may keep open at once; `0` lifts the cap. */
|
|
46
34
|
export declare const DEFAULT_MAX_CONCURRENT_REQUESTS = 16;
|
|
47
|
-
/**
|
|
48
|
-
* Idle budget for one Cline Pass stream — the default a fresh install starts
|
|
49
|
-
* from, overridable per account.
|
|
50
|
-
*
|
|
51
|
-
* Strictly inside the transport's own 300 s stream timeout; see
|
|
52
|
-
* `host/common/idle-watchdog.ts` for the measured basis.
|
|
53
|
-
*/
|
|
35
|
+
/** Idle budget for one Cline Pass stream, overridable per account. */
|
|
54
36
|
export declare const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 120000;
|
|
55
37
|
/** Request-history rows retained in memory. */
|
|
56
38
|
export declare const DEFAULT_HISTORY_LIMIT = 100;
|
|
57
|
-
/**
|
|
58
|
-
* How long one account-level refusal keeps an account out of the pool.
|
|
59
|
-
*
|
|
60
|
-
* Only the two refusals that are about the ACCOUNT are listed: a transient 429
|
|
61
|
-
* is answered by the channel retry, and standing an account down for it would
|
|
62
|
-
* cost capacity the request never proved was gone.
|
|
63
|
-
*/
|
|
39
|
+
/** How long one account-level refusal keeps an account out of the pool. */
|
|
64
40
|
export declare const POOL_COOLDOWN_MS: number;
|
|
65
41
|
export declare const AUTH_COOLDOWN_MS: number;
|
|
66
|
-
/** How many channels one model's list may hold. */
|
|
67
|
-
export declare const MAX_UPSTREAMS = 64;
|
|
68
|
-
/**
|
|
69
|
-
* How many capability filters one pin may hold, and how long each may be.
|
|
70
|
-
*
|
|
71
|
-
* `has` is copied into every chat request body, so an unread bound let a large
|
|
72
|
-
* settings document become a large request on every turn. Channels were already
|
|
73
|
-
* bounded this way; capabilities need the same treatment for the same reason.
|
|
74
|
-
*/
|
|
75
|
-
export declare const MAX_GATEWAY_HAS = 16;
|
|
76
|
-
export declare const MAX_GATEWAY_HAS_LENGTH = 64;
|
|
77
|
-
/** How many channels one validation run tests concurrently. */
|
|
78
|
-
export declare const VALIDATE_CONCURRENCY = 5;
|
|
79
42
|
/** Reasoning levels the gateway accepts for every reasoning-capable model. */
|
|
80
43
|
export declare const REASONING_EFFORTS: readonly [{
|
|
81
44
|
readonly id: "none";
|
|
@@ -116,45 +79,14 @@ export interface ClinePassModelMeta {
|
|
|
116
79
|
/** Levels this model offers; absent keeps the whole vocabulary. */
|
|
117
80
|
efforts?: readonly string[];
|
|
118
81
|
input: readonly string[];
|
|
119
|
-
/** Vercel gateway capability filter needed to make its pin/harvest path answer. */
|
|
120
|
-
gatewayHas?: readonly string[];
|
|
121
82
|
}
|
|
122
|
-
/**
|
|
123
|
-
* Published metadata for the shipped Cline Pass models.
|
|
124
|
-
*
|
|
125
|
-
* `name` mirrors the provider's own label where one is published and falls back
|
|
126
|
-
* to the model id. `maxTokens` is the published output ceiling, used to clamp the
|
|
127
|
-
* configured request budget rather than taken as the budget itself.
|
|
128
|
-
*/
|
|
83
|
+
/** Published metadata for the shipped Cline Pass models. */
|
|
129
84
|
export declare const MODEL_CATALOG: Readonly<Record<string, ClinePassModelMeta>>;
|
|
130
85
|
/** Subscriptions models current at release time; refreshed on demand. */
|
|
131
86
|
export declare const DEFAULT_MODELS: readonly string[];
|
|
132
87
|
/** Published entry for one model id, if the shipped table knows it. */
|
|
133
88
|
export declare function catalogEntry(model: string): ClinePassModelMeta | undefined;
|
|
134
|
-
/** One
|
|
135
|
-
export interface ClinePassPinSettings {
|
|
136
|
-
upstreams: string[];
|
|
137
|
-
exclude: string[];
|
|
138
|
-
pinMode: ClinePassPinMode;
|
|
139
|
-
sort: string;
|
|
140
|
-
/** `providerOptions.gateway.has`: required model capabilities for this pin. */
|
|
141
|
-
has: string[];
|
|
142
|
-
}
|
|
143
|
-
/** The capability filter a model needs by default; empty for all others. */
|
|
144
|
-
export declare function defaultGatewayHas(model: string): string[];
|
|
145
|
-
/**
|
|
146
|
-
* Bound one pin's capability filter, the way channels are bounded.
|
|
147
|
-
*
|
|
148
|
-
* Applied on read and again on the wire: `has` is copied into every chat request
|
|
149
|
-
* body, so a filter list is request payload on every turn, not a private note.
|
|
150
|
-
*/
|
|
151
|
-
export declare function capGatewayHas(names: readonly string[]): string[];
|
|
152
|
-
/** The default pin: automatic routing, no exclusions, model-default capabilities. */
|
|
153
|
-
export declare function defaultPin(model?: string): ClinePassPinSettings;
|
|
154
|
-
/**
|
|
155
|
-
* One model as the live catalog describes it, after merging the shipped table,
|
|
156
|
-
* the last official scan and any per-model override.
|
|
157
|
-
*/
|
|
89
|
+
/** One model as the live catalog describes it, after merging all known metadata. */
|
|
158
90
|
export interface ClinePassModelInfo {
|
|
159
91
|
id: string;
|
|
160
92
|
displayName: string;
|
|
@@ -173,7 +105,6 @@ export interface ClinePassConnection {
|
|
|
173
105
|
maxTokens: number;
|
|
174
106
|
streamIdleTimeoutMs: number;
|
|
175
107
|
maxConcurrentRequests: number;
|
|
176
|
-
pinSpelling: string;
|
|
177
108
|
}
|
|
178
109
|
/** One model's metadata as the last official scan published it. */
|
|
179
110
|
export interface ClinePassDiscoveredModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/cline-pass/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,eAAe,CAAA;AACvC,eAAO,MAAM,aAAa,eAAe,CAAA;AAEzC,mEAAmE;AACnE,eAAO,MAAM,gBAAgB,iCAAiC,CAAA;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ACjD,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
|
@@ -43,6 +43,8 @@ export interface CodemodeOptions {
|
|
|
43
43
|
readonly hiddenPrefixes: readonly string[];
|
|
44
44
|
/** 始终原生呈现的名字。 */
|
|
45
45
|
readonly nativeTools: readonly string[];
|
|
46
|
+
/** 是否只让 nativeTools 与传输工具原生呈现,其他已注册工具全部程序内调用。 */
|
|
47
|
+
readonly nativeToolsOnly: boolean;
|
|
46
48
|
/** 始终遮蔽的名字。 */
|
|
47
49
|
readonly hiddenTools: readonly string[];
|
|
48
50
|
/** 发现工具名。 */
|
|
@@ -72,6 +74,8 @@ export interface CodemodeConfig {
|
|
|
72
74
|
hiddenPrefixes?: readonly string[];
|
|
73
75
|
/** 见 {@link CodemodeOptions.nativeTools}。 */
|
|
74
76
|
nativeTools?: readonly string[];
|
|
77
|
+
/** 见 {@link CodemodeOptions.nativeToolsOnly}。 */
|
|
78
|
+
nativeToolsOnly?: boolean;
|
|
75
79
|
/** 见 {@link CodemodeOptions.hiddenTools}。 */
|
|
76
80
|
hiddenTools?: readonly string[];
|
|
77
81
|
/** 见 {@link CodemodeOptions.metaTools}。 */
|
|
@@ -134,7 +138,7 @@ export declare const DISABLED_VIEW: CodemodeView;
|
|
|
134
138
|
* 判定一个名字是否要从模型清单里剥离。
|
|
135
139
|
*
|
|
136
140
|
* 顺序:显式例外(`nativeTools` / 传输工具 / 发现工具)→ 显式遮蔽
|
|
137
|
-
* (`hiddenTools`)→ 名字前缀 → 作用域归属。
|
|
141
|
+
* (`hiddenTools`)→ 名字前缀 → `nativeToolsOnly` 白名单 → 作用域归属。
|
|
138
142
|
*
|
|
139
143
|
* 作用域归属只在能确认归属时遮蔽:
|
|
140
144
|
*
|
|
@@ -176,21 +180,25 @@ export interface SectionInput {
|
|
|
176
180
|
readonly language?: string;
|
|
177
181
|
/** 运行时的程序形态;`repl` 表示常驻 REPL。 */
|
|
178
182
|
readonly programFormat?: string;
|
|
183
|
+
/** 是否启用显式 native 白名单;缺省保持旧的归属遮蔽说明。 */
|
|
184
|
+
readonly nativeToolsOnly?: boolean;
|
|
185
|
+
/** native 白名单的辅助工具;传输工具由 runToolName 单独给出。 */
|
|
186
|
+
readonly nativeTools?: readonly string[];
|
|
179
187
|
}
|
|
180
188
|
/**
|
|
181
189
|
* 生成 `tools:sdk` 段的正文。
|
|
182
190
|
*
|
|
183
191
|
* ## 恒定契约
|
|
184
192
|
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* MCP 服务端不会改写它,前缀缓存不会因为它失效。
|
|
193
|
+
* 这段正文**只**依赖入参里的工具名与部署级的 `language` / `programFormat` / native 白名单
|
|
194
|
+
* 配置。它刻意不含遮蔽工具的数量、namespace 分布、会话 id 或时间,因此同一部署下逐字节恒定:
|
|
195
|
+
* 挂载或卸载 MCP 服务端不会改写它,前缀缓存不会因为它失效。
|
|
188
196
|
*
|
|
189
197
|
* 结果形状索引(`read` / `glob` / `grep` … 的顶层字段)也**必须是静态的**:它照抄自各工具
|
|
190
198
|
* 声明过的 output schema,不读活 catalog。按 catalog 生成会让「挂一个 MCP 服务端」改写系统
|
|
191
199
|
* 提示词首段,正好毁掉这一层要保住的前缀缓存。
|
|
192
200
|
*
|
|
193
|
-
* @param input -
|
|
201
|
+
* @param input - 传输工具名、发现工具名、程序形态与部署级 native 白名单。
|
|
194
202
|
* @returns 说明段正文。
|
|
195
203
|
*/
|
|
196
204
|
export declare function buildCodemodeSectionText(input: SectionInput): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/host/codemode/rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,4CAA4C;AAC5C,eAAO,MAAM,qBAAqB,aAAa,CAAA;AAE/C,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAK9C,CAAA;AAEF,mBAAmB;AACnB,eAAO,MAAM,uBA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