@mars-sea/dsh-commandcode-provider 0.10.2 → 0.10.4
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 +41 -1
- package/README.md +44 -2
- package/README.zh-CN.md +44 -2
- package/lib/client.js +132 -35
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +217 -24
- package/lib/index.js +502 -48
- package/lib/index.js.map +1 -1
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Context } from "@deepseek-ai/cordis";
|
|
|
7
7
|
import { AttachmentStore } from "@deepseek-ai/dsh-attachment";
|
|
8
8
|
import { CommandDefinition } from "@deepseek-ai/dsh-commands";
|
|
9
9
|
//#region src/adapter.d.ts
|
|
10
|
-
declare const COMMAND_CODE_CLI_VERSION = "1.
|
|
10
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.53.0";
|
|
11
11
|
declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
12
12
|
declare const DEFAULT_GENERATE_MAX_TOKENS = 64000;
|
|
13
13
|
declare const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
|
|
@@ -441,7 +441,20 @@ declare class CommandCodeAccountPool {
|
|
|
441
441
|
* key until the stored credential changes.
|
|
442
442
|
*/
|
|
443
443
|
markRejected(apiKey: string, rejection: AccountRejection): void;
|
|
444
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* One account's key: literal → credential seam → auth file (default slot).
|
|
446
|
+
*
|
|
447
|
+
* Every source is normalized here, at the single point where a slot's key
|
|
448
|
+
* enters the pool. The adapter sends the key through the harness's
|
|
449
|
+
* `assertUsableApiKey()`, which trims it — a stored key from the credentials
|
|
450
|
+
* seam, a `.env` line, or a shell export all pick up surrounding whitespace
|
|
451
|
+
* — and reports that trimmed form back to `markRejected()`. Returning the
|
|
452
|
+
* raw value would file every 429/401 mark under a key no later lookup can
|
|
453
|
+
* find: rotation would re-offer the same account, the account card would show
|
|
454
|
+
* no mark, and the usage endpoints would 401 while chat kept working.
|
|
455
|
+
* Normalizing once makes resolution, probing, marking, and the request path
|
|
456
|
+
* agree on one string.
|
|
457
|
+
*/
|
|
445
458
|
private resolveSlotKey;
|
|
446
459
|
/** Hand out the chosen account's key. */
|
|
447
460
|
private pick;
|
|
@@ -487,7 +500,7 @@ declare const KNOWN_EFFORTS: Readonly<Record<string, readonly string[]>>;
|
|
|
487
500
|
*/
|
|
488
501
|
declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
489
502
|
/**
|
|
490
|
-
* Models the official CLI's model table (command-code@1.
|
|
503
|
+
* Models the official CLI's model table (command-code@1.53.0) marks
|
|
491
504
|
* `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
|
|
492
505
|
* think automatically, with Command Code driving the depth. This is the
|
|
493
506
|
* authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
|
|
@@ -495,7 +508,7 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
495
508
|
* effort levels, and this snapshot is not surfaced in the picker's compact
|
|
496
509
|
* description — it exists for programmatic consumers.
|
|
497
510
|
*
|
|
498
|
-
* Source: the command-code@1.
|
|
511
|
+
* Source: the command-code@1.53.0 bundled model table (dist/cli.mjs),
|
|
499
512
|
* cross-checked with https://commandcode.ai/docs/reference/cli/models.
|
|
500
513
|
* (`stealth/ox-alpha` left this set in command-code@1.32.1, which gave it
|
|
501
514
|
* selectable `['low', 'high', 'max']` efforts; the preview then ended in
|
|
@@ -508,7 +521,13 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
508
521
|
* to `KNOWN_EFFORTS`. command-code@1.42.0 added `meituan/LongCat-2.0:free`
|
|
509
522
|
* (reasoning:!0, no efforts). command-code@1.45.0 gave the Muse Spark family
|
|
510
523
|
* (1.1, 1.2, 1.2-contributor, 1.3, 1.3-contributor) selectable
|
|
511
|
-
* `['low', 'medium', 'high', 'xhigh']` efforts — they moved to `KNOWN_EFFORTS`.
|
|
524
|
+
* `['low', 'medium', 'high', 'xhigh']` efforts — they moved to `KNOWN_EFFORTS`.
|
|
525
|
+
* command-code@1.51.3 gave `MiniMaxAI/MiniMax-M3` selectable
|
|
526
|
+
* `['low', 'medium', 'high']` efforts — it moved to `KNOWN_EFFORTS` too.
|
|
527
|
+
* command-code@1.52.0 added `inclusionai/ling-3.0-flash-sante:free`
|
|
528
|
+
* (reasoning:!0, no efforts).)
|
|
529
|
+
* command-code@1.53.0 added `deepseek/deepseek-v4.1-flash` with selectable
|
|
530
|
+
* ['low', 'high', 'max'] efforts, so it lives in `KNOWN_EFFORTS`, not here.)
|
|
512
531
|
* Keep in sync via the dsh-commandcode-upstream skill.
|
|
513
532
|
*/
|
|
514
533
|
declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
@@ -525,7 +544,9 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
|
525
544
|
* command-code@1.41.0 added `Qwen/Qwen3.8-Max-0902` (Go) and 1.42.0 added
|
|
526
545
|
* `meituan/LongCat-2.0:free` (Go, free promo); command-code@1.43.0 added
|
|
527
546
|
* `google/gemini-3.8-flash` (GOAT) and 1.44.0 added `meta/muse-spark-1.3`
|
|
528
|
-
* (GOAT) plus its Contributor sibling (Go).
|
|
547
|
+
* (GOAT) plus its Contributor sibling (Go); command-code@1.52.0 added the
|
|
548
|
+
* free `inclusionai/ling-3.0-flash-sante:free` (Go); command-code@1.53.0
|
|
549
|
+
* added `deepseek/deepseek-v4.1-flash` (Go).
|
|
529
550
|
*
|
|
530
551
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
531
552
|
* truth for the picker's plan annotation — it answers "which plan do I need to
|
|
@@ -557,8 +578,8 @@ declare function compareByPlan(a: {
|
|
|
557
578
|
}): number;
|
|
558
579
|
/**
|
|
559
580
|
* Subscription plan table, synced from the official CLI bundle's plan maps
|
|
560
|
-
* (located by the `"individual-go"` key in command-code@1.
|
|
561
|
-
* re-verified unchanged through 1.
|
|
581
|
+
* (located by the `"individual-go"` key in command-code@1.53.0 `dist/cli.mjs`,
|
|
582
|
+
* re-verified unchanged through 1.53.0): subscription `planId`
|
|
562
583
|
* prefix → display name and the plan's monthly credit total. This is the
|
|
563
584
|
* account's own subscription (from `/alpha/billing/subscriptions`) — distinct
|
|
564
585
|
* from {@link KNOWN_PLANS}, which maps catalog models to their minimum tier.
|
|
@@ -635,29 +656,43 @@ declare const KNOWN_DEALS: Readonly<Record<string, KnownDeal>>;
|
|
|
635
656
|
/**
|
|
636
657
|
* Models with time-of-day (peak/off-peak) pricing, per the official pricing
|
|
637
658
|
* page (`/docs/resources/pricing-limits`). Since 2026-08-16 16:00 UTC, DeepSeek
|
|
638
|
-
* charges by the hour: peak hours are 01:00–04:00 and 06:00–10:00 UTC (7h
|
|
639
|
-
* full price)
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
*
|
|
659
|
+
* charges by the hour: peak hours are 01:00–04:00 and 06:00–10:00 UTC (7h per
|
|
660
|
+
* weekday, full price) **Monday to Friday only**; the other 17 hours of a
|
|
661
|
+
* weekday and every hour of Saturday/Sunday (UTC) are off-peak at half price.
|
|
662
|
+
* The V4 Flash Vision (exp) variant (command-code@1.32.0) shares the V4 Flash
|
|
663
|
+
* windows and peak prices ($0.44/$1.32) — each row's hover annotation states
|
|
664
|
+
* exactly 2× that row's displayed off-peak prices. The picker shows the
|
|
643
665
|
* *current* state as a compact
|
|
644
666
|
* label (`Peak`/`Half`) matching the English noun style of the other markers
|
|
645
667
|
* (`Image`, `FREE`), so a developer can tell at a glance whether calling the
|
|
646
668
|
* model right now is cheap or expensive.
|
|
647
669
|
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
*
|
|
652
|
-
*
|
|
670
|
+
* Authoritative extraction: the pricing page embeds a model JSON array whose
|
|
671
|
+
* hourly-priced entries carry a `timeOfDay` block
|
|
672
|
+
* (`{ windows: "01–04 & 06–10 UTC, Mon–Fri", peakHoursPerDay: 7,
|
|
673
|
+
* offPeakHoursPerDay: 17, peak: {...}, offPeak: {...} }`). Exactly four models
|
|
674
|
+
* carry it: V4 Pro, V4 Flash, V4 Flash Vision (exp), and V4.1 Flash (added in
|
|
675
|
+
* command-code@1.53.0 at $0.15/$0.60 off-peak, $0.30/$1.20 peak — the same
|
|
676
|
+
* schedule as the other three).
|
|
653
677
|
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
678
|
+
* Extraction caution: the rendered HTML rows are a trap. Each annotation div
|
|
679
|
+
* sits inside its OWN row's container, immediately before the NEXT row starts,
|
|
680
|
+
* so flattening the page to text makes every annotation look like it belongs
|
|
681
|
+
* to the model printed after it — that is how `deepseek/deepseek-v4-flash-fast`
|
|
682
|
+
* was wrongly added here (its row is flat-priced at $0.28/$0.56/$0.07 and has
|
|
683
|
+
* no `timeOfDay` block). Trust the embedded JSON's `timeOfDay` membership and
|
|
684
|
+
* the 2× price relation, never the flat-text neighbor.
|
|
685
|
+
*
|
|
686
|
+
* Keep in sync with the official pricing page when the model set, the peak
|
|
687
|
+
* windows, or the weekday rule change (see the dsh-commandcode-upstream skill).
|
|
656
688
|
*/
|
|
657
689
|
declare const KNOWN_PEAK_PRICING: ReadonlySet<string>;
|
|
658
690
|
/**
|
|
659
|
-
* Whether `now` (defaults to `Date.now()`) falls in a peak-pricing
|
|
660
|
-
* time-of-day-priced models.
|
|
691
|
+
* Whether `now` (defaults to `Date.now()`) falls in a peak-pricing window for
|
|
692
|
+
* time-of-day-priced models. Peak rates apply Monday–Friday (UTC) only: the
|
|
693
|
+
* official rule charges Saturday and Sunday completely off-peak for all 24
|
|
694
|
+
* hours, so a weekend timestamp is off-peak even inside `PEAK_HOUR_RANGES`.
|
|
695
|
+
* `undefined` for models outside the snapshot.
|
|
661
696
|
*/
|
|
662
697
|
declare function peakPricingState(modelId: string, now?: number): 'peak' | 'off-peak' | undefined;
|
|
663
698
|
/**
|
|
@@ -1000,6 +1035,14 @@ declare class CommandCodeLoginFlow {
|
|
|
1000
1035
|
private timer;
|
|
1001
1036
|
/** Settle hooks of the live attempt's callback promise. */
|
|
1002
1037
|
private settle;
|
|
1038
|
+
/**
|
|
1039
|
+
* Attempt generation. A delivered callback keeps validating the key
|
|
1040
|
+
* asynchronously (`complete()`), and that window is open to a cancel or a
|
|
1041
|
+
* fresh `begin()`; the generation lets a late completion recognize that it
|
|
1042
|
+
* no longer owns the status face and stop instead of storing a credential
|
|
1043
|
+
* the user cancelled and flipping the page back to success.
|
|
1044
|
+
*/
|
|
1045
|
+
private attemptSeq;
|
|
1003
1046
|
private disposed;
|
|
1004
1047
|
constructor(deps: CommandCodeLoginFlowDeps);
|
|
1005
1048
|
/** Subscribe to state transitions. @returns the disposer. */
|
|
@@ -1030,8 +1073,19 @@ declare class CommandCodeLoginFlow {
|
|
|
1030
1073
|
private handleCallback;
|
|
1031
1074
|
/** Answer a decisive callback, stop listening, and settle the attempt. */
|
|
1032
1075
|
private settleAttempt;
|
|
1033
|
-
/**
|
|
1076
|
+
/**
|
|
1077
|
+
* Post-validation completion: whoami check, then hand-off to storage.
|
|
1078
|
+
*
|
|
1079
|
+
* Every step re-checks {@link ownsAttempt} first: the whoami round-trip and
|
|
1080
|
+
* the credential write are awaits, and the user may cancel (or start another
|
|
1081
|
+
* attempt) while one is in flight. A completion that no longer owns the
|
|
1082
|
+
* attempt must not write the key or publish a status — otherwise cancel
|
|
1083
|
+
* would report "cancelled" while the credential landed anyway, and the page
|
|
1084
|
+
* would silently flip to success.
|
|
1085
|
+
*/
|
|
1034
1086
|
private complete;
|
|
1087
|
+
/** Whether one attempt still owns the status face (not cancelled, replaced, or disposed). */
|
|
1088
|
+
private ownsAttempt;
|
|
1035
1089
|
/** Map a tagged settle rejection onto the status face. */
|
|
1036
1090
|
private failFrom;
|
|
1037
1091
|
private clearTimer;
|
|
@@ -1132,6 +1186,145 @@ declare class CommandCodeSearchProvider implements WebSearchProvider {
|
|
|
1132
1186
|
private resolveKey;
|
|
1133
1187
|
}
|
|
1134
1188
|
//#endregion
|
|
1189
|
+
//#region src/tui-settings.d.ts
|
|
1190
|
+
/** Provider-owned translations for one title, label, or hint. */
|
|
1191
|
+
interface TuiLocalizedText {
|
|
1192
|
+
readonly zh?: string;
|
|
1193
|
+
readonly en?: string;
|
|
1194
|
+
}
|
|
1195
|
+
/** Control kinds the dsh-TUI settings screen knows how to render. */
|
|
1196
|
+
type TuiSettingsFieldKind = 'text' | 'number' | 'boolean' | 'select';
|
|
1197
|
+
/** One choice of an options-bearing field. */
|
|
1198
|
+
interface TuiSettingsFieldOption {
|
|
1199
|
+
/** Stored value. */
|
|
1200
|
+
readonly value: string;
|
|
1201
|
+
/** Display label (English; also the fallback). */
|
|
1202
|
+
readonly label: string;
|
|
1203
|
+
/** Provider-owned translations for the label. */
|
|
1204
|
+
readonly descriptions?: TuiLocalizedText;
|
|
1205
|
+
}
|
|
1206
|
+
/** The write one field's draft stages when the section is saved. */
|
|
1207
|
+
type TuiSettingsFieldWrite = {
|
|
1208
|
+
readonly kind: 'set';
|
|
1209
|
+
readonly value: unknown;
|
|
1210
|
+
} | {
|
|
1211
|
+
readonly kind: 'clear';
|
|
1212
|
+
};
|
|
1213
|
+
/** One editable field inside a section. */
|
|
1214
|
+
interface TuiSettingsField {
|
|
1215
|
+
/** Key path from the section root, in the settings service's `mutate` vocabulary. */
|
|
1216
|
+
readonly path: readonly string[];
|
|
1217
|
+
/** Short field label (English; also the fallback). */
|
|
1218
|
+
readonly label: string;
|
|
1219
|
+
/** Provider-owned translations for the label. */
|
|
1220
|
+
readonly descriptions?: TuiLocalizedText;
|
|
1221
|
+
/** Optional one-line help rendered under the field. */
|
|
1222
|
+
readonly hint?: string;
|
|
1223
|
+
/** Provider-owned translations for the hint. */
|
|
1224
|
+
readonly hintDescriptions?: TuiLocalizedText;
|
|
1225
|
+
/** Optional group id; grouped fields render on that group's subpage. */
|
|
1226
|
+
readonly group?: string;
|
|
1227
|
+
readonly kind: TuiSettingsFieldKind;
|
|
1228
|
+
/**
|
|
1229
|
+
* Choices for an options-bearing field. A `text` field that carries options
|
|
1230
|
+
* is the TUI's own "preset plus custom value" shape: `←`/`→` cycle the
|
|
1231
|
+
* presets while Enter opens the text editor.
|
|
1232
|
+
*/
|
|
1233
|
+
readonly options?: readonly TuiSettingsFieldOption[];
|
|
1234
|
+
/** Input placeholder for `kind: 'text' | 'number'`. */
|
|
1235
|
+
readonly placeholder?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* Credential control: the literal never rides the settings document — the
|
|
1238
|
+
* draft starts blank on every open, a blank draft writes nothing, and a
|
|
1239
|
+
* typed draft writes through the credentials seam under `ref`.
|
|
1240
|
+
*/
|
|
1241
|
+
readonly secret?: {
|
|
1242
|
+
readonly ref: string;
|
|
1243
|
+
};
|
|
1244
|
+
/** Render a stored value as draft text. */
|
|
1245
|
+
readonly format?: (value: unknown) => string;
|
|
1246
|
+
/** The write a draft text stages; `undefined` marks the draft invalid. */
|
|
1247
|
+
readonly parse?: (text: string) => TuiSettingsFieldWrite | undefined;
|
|
1248
|
+
}
|
|
1249
|
+
/** Optional navigation group inside one section. */
|
|
1250
|
+
interface TuiSettingsGroup {
|
|
1251
|
+
/** Stable identifier, unique inside the section. */
|
|
1252
|
+
readonly id: string;
|
|
1253
|
+
/** Group title (English; also the fallback). */
|
|
1254
|
+
readonly title: string;
|
|
1255
|
+
/** Provider-owned translations for the title. */
|
|
1256
|
+
readonly descriptions?: TuiLocalizedText;
|
|
1257
|
+
}
|
|
1258
|
+
/** One plugin's section inside the dsh-TUI settings screen. */
|
|
1259
|
+
interface TuiSettingsSection {
|
|
1260
|
+
/** Settings namespace this section edits. */
|
|
1261
|
+
readonly ns: string;
|
|
1262
|
+
/** Section title (English; also the fallback). */
|
|
1263
|
+
readonly title: string;
|
|
1264
|
+
/** Provider-owned translations for the title. */
|
|
1265
|
+
readonly descriptions?: TuiLocalizedText;
|
|
1266
|
+
/** Optional navigation groups, in display order. */
|
|
1267
|
+
readonly groups?: readonly TuiSettingsGroup[];
|
|
1268
|
+
/** Editable fields, in display order. */
|
|
1269
|
+
readonly fields: readonly TuiSettingsField[];
|
|
1270
|
+
}
|
|
1271
|
+
/** The slice of the `tuiSettingsSections` service this module uses. */
|
|
1272
|
+
interface TuiSettingsSectionsService {
|
|
1273
|
+
/** Declare a section; the returned disposer withdraws it. */
|
|
1274
|
+
register(section: TuiSettingsSection): () => void;
|
|
1275
|
+
}
|
|
1276
|
+
/** The selector value meaning "no pinned account — follow rotation order". */
|
|
1277
|
+
declare const ACTIVE_ACCOUNT_AUTO = "auto";
|
|
1278
|
+
/** The selector value meaning "no language override — follow the shell locale". */
|
|
1279
|
+
declare const LANG_AUTO = "auto";
|
|
1280
|
+
/** Everything the section needs from the plugin entry. */
|
|
1281
|
+
interface CommandCodeTuiSettingsDeps {
|
|
1282
|
+
/** The plugin's settings namespace (`llm-commandcode`). */
|
|
1283
|
+
ns: string;
|
|
1284
|
+
/** Section title; defaults to `Command Code`. */
|
|
1285
|
+
title?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* The credential reference the API-key field writes through, read per
|
|
1288
|
+
* registration so a `Config.apiKeyEnv` change re-targets the field instead
|
|
1289
|
+
* of silently writing to the old reference.
|
|
1290
|
+
*/
|
|
1291
|
+
apiKeyRef: () => string;
|
|
1292
|
+
/**
|
|
1293
|
+
* Account slots for the active-account selector, in rotation order, read
|
|
1294
|
+
* per registration. A changed list re-registers the section (see
|
|
1295
|
+
* {@link applyCommandCodeTuiSettings}).
|
|
1296
|
+
*/
|
|
1297
|
+
accountSlots: () => readonly {
|
|
1298
|
+
id: string;
|
|
1299
|
+
label: string;
|
|
1300
|
+
}[];
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Build the section descriptor. Pure, so tests can pin the exact fields
|
|
1304
|
+
* without a dsh-TUI host.
|
|
1305
|
+
*
|
|
1306
|
+
* Field choices worth keeping: the two option-bearing fields (`activeAccount`,
|
|
1307
|
+
* `lang`) are `text` + `options` rather than `select`, because a `select`
|
|
1308
|
+
* cannot express "unset" — cycling only ever lands on a declared option, so a
|
|
1309
|
+
* `select` would strand the user on a pinned value with no way back to
|
|
1310
|
+
* automatic. The `auto` sentinel plus a `parse` that clears the path keeps the
|
|
1311
|
+
* unset state reachable. The two booleans format their EFFECTIVE default
|
|
1312
|
+
* (`filterModelsByPlan` unset means true at the adapter), so a fresh install
|
|
1313
|
+
* reads true instead of the screen's "(empty)".
|
|
1314
|
+
*/
|
|
1315
|
+
declare function buildCommandCodeTuiSection(deps: CommandCodeTuiSettingsDeps): TuiSettingsSection;
|
|
1316
|
+
/**
|
|
1317
|
+
* Register the Command Code section on a dsh-TUI host.
|
|
1318
|
+
*
|
|
1319
|
+
* @param ctx - the context of an activated `tuiSettingsSections` injection.
|
|
1320
|
+
* @param deps - plugin-owned facts the section reads.
|
|
1321
|
+
* @returns a refresh function that re-registers the section when a fact it
|
|
1322
|
+
* renders changed (the plugin entry calls it from its settings `onChange`
|
|
1323
|
+
* hook), or `undefined` when the seam is unusable. The returned function is
|
|
1324
|
+
* inert after the fiber is torn down.
|
|
1325
|
+
*/
|
|
1326
|
+
declare function applyCommandCodeTuiSettings(ctx: Context, deps: CommandCodeTuiSettingsDeps): (() => void) | undefined;
|
|
1327
|
+
//#endregion
|
|
1135
1328
|
//#region src/index.d.ts
|
|
1136
1329
|
declare const name = "llm-commandcode";
|
|
1137
1330
|
declare const inject: string[];
|
|
@@ -1243,5 +1436,5 @@ interface ResolvedCommandCodeOptions extends CommandCodeConnectionOptions {
|
|
|
1243
1436
|
declare function resolveAdapterOptions(config: Config): ResolvedCommandCodeOptions;
|
|
1244
1437
|
declare function apply(ctx: Context, config: Config): void;
|
|
1245
1438
|
//#endregion
|
|
1246
|
-
export { type ApiKeyValidation, BILLING_ACCESS_TTL_MS, COMMANDCODE_SEARCH_PROVIDER_ID, COMMAND_CODE_CLI_VERSION, type CommandCodeAccountConfig, CommandCodeAccountPool, type CommandCodeAccountSlot, type CommandCodeAccountState, type CommandCodeAccountUsage, type CommandCodeAccountsReport, CommandCodeAdapter, type CommandCodeAdapterDeps, type CommandCodeBillingAccess, type CommandCodeCommandDeps, type CommandCodeConnectionOptions, type CommandCodeLoginCredentials, type CommandCodeLoginFailureReason, CommandCodeLoginFlow, type CommandCodeLoginFlowDeps, type CommandCodeLoginStatus, type CommandCodeModelAccountRule, CommandCodeSearchProvider, type CommandCodeSearchProviderDeps, type CommandCodeSearchSelection, type CommandCodeUsageDeps, type CommandCodeUsageReport, CommandCodeUsageService, Config, DEFAULT_API_BASE, DEFAULT_GENERATE_MAX_TOKENS, DEFAULT_MAX_OUTPUT_TOKENS, DEFAULT_MODELS_CACHE_PATH, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DEFAULT_WEB_SEARCH_PROVIDER_ID, KNOWN_DEALS, KNOWN_EFFORTS, KNOWN_IMAGE_MODELS, KNOWN_PEAK_PRICING, KNOWN_PLANS, KNOWN_SUBSCRIPTION_PLANS, KNOWN_THINKING_MODELS, LOGIN_ALLOWED_ORIGINS, LOGIN_BEGIN_ENDPOINT, LOGIN_BODY_LIMIT_BYTES, LOGIN_CANCEL_ENDPOINT, LOGIN_MAX_PORT_ATTEMPTS, LOGIN_START_PORT, LOGIN_STATUS_ENDPOINT, LOGIN_TIMEOUT_MS, type LoginFlowFacade, PLAN_LABELS, PLAN_ORDER, PROVIDER, type ResolveAttachments, ResolvedCommandCodeOptions, USAGE_REPORT_ENDPOINT, accountUsable, apply, applyCommandCodeSearchSelection, applyCommands, applyUsageRemote, buildCommandAuthUrl, capabilityDescription, commandCodeSearchSelection, commandDefinition, compareByPlan, dealLabel, formatContext, inject, loginStatusSchema, matchModelRule, modelVisibleInPlan, name, parseLoginStatus, peakPricingLabel, peakPricingState, planLabel, projectSlugFromPath, resolveAdapterOptions, resolveAuthFileApiKey, selectAccountForModel, selectActiveAccount, selectCommandCodeSearchProvider, studioBaseForApiBase, subscriptionPlanInfo, usageReportSchema, validateCommandApiKey };
|
|
1439
|
+
export { ACTIVE_ACCOUNT_AUTO, type ApiKeyValidation, BILLING_ACCESS_TTL_MS, COMMANDCODE_SEARCH_PROVIDER_ID, COMMAND_CODE_CLI_VERSION, type CommandCodeAccountConfig, CommandCodeAccountPool, type CommandCodeAccountSlot, type CommandCodeAccountState, type CommandCodeAccountUsage, type CommandCodeAccountsReport, CommandCodeAdapter, type CommandCodeAdapterDeps, type CommandCodeBillingAccess, type CommandCodeCommandDeps, type CommandCodeConnectionOptions, type CommandCodeLoginCredentials, type CommandCodeLoginFailureReason, CommandCodeLoginFlow, type CommandCodeLoginFlowDeps, type CommandCodeLoginStatus, type CommandCodeModelAccountRule, CommandCodeSearchProvider, type CommandCodeSearchProviderDeps, type CommandCodeSearchSelection, type CommandCodeTuiSettingsDeps, type CommandCodeUsageDeps, type CommandCodeUsageReport, CommandCodeUsageService, Config, DEFAULT_API_BASE, DEFAULT_GENERATE_MAX_TOKENS, DEFAULT_MAX_OUTPUT_TOKENS, DEFAULT_MODELS_CACHE_PATH, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_STREAM_IDLE_TIMEOUT_MS, DEFAULT_WEB_SEARCH_PROVIDER_ID, KNOWN_DEALS, KNOWN_EFFORTS, KNOWN_IMAGE_MODELS, KNOWN_PEAK_PRICING, KNOWN_PLANS, KNOWN_SUBSCRIPTION_PLANS, KNOWN_THINKING_MODELS, LANG_AUTO, LOGIN_ALLOWED_ORIGINS, LOGIN_BEGIN_ENDPOINT, LOGIN_BODY_LIMIT_BYTES, LOGIN_CANCEL_ENDPOINT, LOGIN_MAX_PORT_ATTEMPTS, LOGIN_START_PORT, LOGIN_STATUS_ENDPOINT, LOGIN_TIMEOUT_MS, type LoginFlowFacade, PLAN_LABELS, PLAN_ORDER, PROVIDER, type ResolveAttachments, ResolvedCommandCodeOptions, type TuiSettingsField, type TuiSettingsFieldOption, type TuiSettingsFieldWrite, type TuiSettingsGroup, type TuiSettingsSection, type TuiSettingsSectionsService, USAGE_REPORT_ENDPOINT, accountUsable, apply, applyCommandCodeSearchSelection, applyCommandCodeTuiSettings, applyCommands, applyUsageRemote, buildCommandAuthUrl, buildCommandCodeTuiSection, capabilityDescription, commandCodeSearchSelection, commandDefinition, compareByPlan, dealLabel, formatContext, inject, loginStatusSchema, matchModelRule, modelVisibleInPlan, name, parseLoginStatus, peakPricingLabel, peakPricingState, planLabel, projectSlugFromPath, resolveAdapterOptions, resolveAuthFileApiKey, selectAccountForModel, selectActiveAccount, selectCommandCodeSearchProvider, studioBaseForApiBase, subscriptionPlanInfo, usageReportSchema, validateCommandApiKey };
|
|
1247
1440
|
//# sourceMappingURL=index.d.ts.map
|