bailian-cli-runtime 1.28.0 → 2.0.1

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/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AnyCommand, ApiKeyCredential, AuthStore, Client, Command, CommandPackManager, ConfigStore, FlagDef, FlagsDef, Identity, ImageSizeProfile, Language, LocalizedText, OutputFormat, ParsedFlags, ResolutionSources, Settings, UsageError } from "bailian-cli-core";
2
-
3
2
  //#region src/command-packs/types.d.ts
4
3
  interface CommandPackDefinition {
5
4
  commandPrefixes: readonly string[];
@@ -36,7 +35,7 @@ interface Cli {
36
35
  * its own commands + identity. `run` resolves argv into a {@link Resolution},
37
36
  * then dispatches it.
38
37
  */
39
- declare function createCli(commands: Record<string, AnyCommand>, opts: CliOptions): Cli;
38
+ export declare function createCli(commands: Record<string, AnyCommand>, opts: CliOptions): Cli;
40
39
  //#endregion
41
40
  //#region src/i18n.d.ts
42
41
  /** Per-CLI localized text selector. */
@@ -65,7 +64,7 @@ type LocateResult = {
65
64
  kind: "unknown";
66
65
  error: UsageError;
67
66
  };
68
- declare class CommandRegistry {
67
+ export declare class CommandRegistry {
69
68
  private root;
70
69
  /** Binary name shown in usage/help/error strings (e.g. "bl", "rag"). */
71
70
  private readonly cliName;
@@ -129,7 +128,7 @@ type Resolution = {
129
128
  * `parsePath` scan for the command path + flag region, one `registry.locate`
130
129
  * for the routing decision. Never throws. Trivially unit-testable.
131
130
  */
132
- declare function resolve(argv: string[], registry: CommandRegistry): Resolution;
131
+ export declare function resolve(argv: string[], registry: CommandRegistry): Resolution;
133
132
  //#endregion
134
133
  //#region src/middleware.d.ts
135
134
  /**
@@ -165,7 +164,7 @@ interface RunContext {
165
164
  /** Koa-style onion middleware: do work, call `next()`, do work after it returns. */
166
165
  type Middleware = (ctx: RunContext, next: () => Promise<void>) => Promise<void>;
167
166
  /** Fold a middleware list into a single runnable function. */
168
- declare function compose(stack: Middleware[]): (ctx: RunContext) => Promise<void>;
167
+ export declare function compose(stack: Middleware[]): (ctx: RunContext) => Promise<void>;
169
168
  //#endregion
170
169
  //#region src/args.d.ts
171
170
  interface ParsePathResult {
@@ -182,22 +181,22 @@ interface ParsePathResult {
182
181
  * oclif-style). There are no positionals, so nothing bare can legitimately
183
182
  * follow a flag — and no flags precede the path, so this needs no schema.
184
183
  */
185
- declare function parsePath(argv: string[]): ParsePathResult;
184
+ export declare function parsePath(argv: string[]): ParsePathResult;
186
185
  /**
187
186
  * Second pass — parse the flag region into typed values, driven entirely by the
188
187
  * keyed FlagsDef (key = camelCase flag name). Pure: returns typed flags or
189
188
  * throws UsageError — never prints/exits. The error boundary decides rendering.
190
189
  */
191
- declare function parseFlags<F extends FlagsDef>(rest: string[], defs: F): ParsedFlags<F>;
190
+ export declare function parseFlags<F extends FlagsDef>(rest: string[], defs: F): ParsedFlags<F>;
192
191
  //#endregion
193
192
  //#region src/proxy.d.ts
194
- declare function setupProxyFromEnv(): void;
193
+ export declare function setupProxyFromEnv(): void;
195
194
  //#endregion
196
195
  //#region src/error-handler.d.ts
197
- declare function handleError(err: unknown, cliName: string): never;
196
+ export declare function handleError(err: unknown, cliName: string): never;
198
197
  //#endregion
199
198
  //#region src/version.d.ts
200
- declare const CLI_VERSION: string;
199
+ export declare const CLI_VERSION: string;
201
200
  //#endregion
202
201
  //#region src/urls.d.ts
203
202
  /**
@@ -208,22 +207,28 @@ declare const CLI_VERSION: string;
208
207
  * if/when overseas console support is added.
209
208
  */
210
209
  /** Root entry — generic console landing, region picker. */
211
- declare const BAILIAN_CONSOLE_ROOT = "https://bailian.console.aliyun.com";
210
+ export declare const BAILIAN_CONSOLE_ROOT = "https://bailian.console.aliyun.com";
212
211
  /** Region-pinned console base. Add a region map if/when overseas is supported. */
213
- declare const BAILIAN_CONSOLE = "https://bailian.console.aliyun.com/cn-beijing";
212
+ export declare const BAILIAN_CONSOLE = "https://bailian.console.aliyun.com/cn-beijing";
214
213
  /** Direct deep link to API key management page. */
215
- declare const API_KEY_PAGE = "https://bailian.console.aliyun.com/cn-beijing/?tab=app#/api-key";
214
+ export declare const API_KEY_PAGE = "https://bailian.console.aliyun.com/cn-beijing/?tab=app#/api-key";
216
215
  /** Direct deep link to the Token Plan subscription overview and API key entry. */
217
- declare const TOKEN_PLAN_PAGE = "https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview";
216
+ export declare const TOKEN_PLAN_PAGE = "https://bailian.console.aliyun.com/cn-beijing?tab=plan#/efm/subscription/overview";
218
217
  /** MCP marketplace detail page for a server code (e.g. WebSearch, market-cmapi00073529). */
219
- declare function mcpMarketplaceDetailPage(serverCode: string): string;
218
+ export declare function mcpMarketplaceDetailPage(serverCode: string): string;
220
219
  /**
221
220
  * MCP marketplace detail for the built-in WebSearch server.
222
221
  * Users must activate (or re-activate for Streamable HTTP) before `search web` works.
223
222
  */
224
- declare const MCP_WEBSEARCH_PAGE: string;
223
+ export declare const MCP_WEBSEARCH_PAGE: string;
225
224
  /** Voice TTS experience center — browse system and custom voices. */
226
- declare const VOICE_TTS_PAGE = "https://help.aliyun.com/zh/model-studio/cosyvoice-voice-list";
225
+ export declare const VOICE_TTS_PAGE = "https://help.aliyun.com/zh/model-studio/cosyvoice-voice-list";
226
+ /**
227
+ * Aliyun billing console refund (unsubscribe) page for one prepaid instance.
228
+ * Unsubscribing a prepaid PTU capacity instance is a billing action that has
229
+ * no API; users complete it here with the account that placed the order.
230
+ */
231
+ export declare function refundConsolePage(instanceId: string): string;
227
232
  //#endregion
228
233
  //#region src/output/output.d.ts
229
234
  /**
@@ -231,12 +236,12 @@ declare const VOICE_TTS_PAGE = "https://help.aliyun.com/zh/model-studio/cosyvoic
231
236
  * stdout → result (text by default; JSON with --output json)
232
237
  * stderr → human info (progress, logs, tips) — handled elsewhere
233
238
  */
234
- declare function emitResult(data: unknown, format: OutputFormat): void;
239
+ export declare function emitResult(data: unknown, format: OutputFormat): void;
235
240
  /**
236
241
  * Emit a bare value (file path, plain text) to stdout.
237
242
  * Used in --quiet mode or when the result is a single scalar.
238
243
  */
239
- declare function emitBare(value: string): void;
244
+ export declare function emitBare(value: string): void;
240
245
  /**
241
246
  * Surface a server request id for text-mode output. Written to stderr (the
242
247
  * diagnostic channel) so it never corrupts the primary stdout result, mirroring
@@ -244,7 +249,7 @@ declare function emitBare(value: string): void;
244
249
  * absent (e.g. dry-run) or in --quiet mode (which owes callers a bare scalar).
245
250
  * JSON output surfaces request_id inside the payload instead of calling this.
246
251
  */
247
- declare function emitRequestId(requestId: string | undefined, quiet: boolean): void;
252
+ export declare function emitRequestId(requestId: string | undefined, quiet: boolean): void;
248
253
  //#endregion
249
254
  //#region src/output/table.d.ts
250
255
  /**
@@ -254,9 +259,7 @@ declare function emitRequestId(requestId: string | undefined, quiet: boolean): v
254
259
  * outputs space-padded columns so the table is human-readable.
255
260
  */
256
261
  /** Produce aligned text lines from headers + rows (all string[]). */
257
- declare function formatTable(headers: string[], rows: string[][], {
258
- gap
259
- }?: {
262
+ export declare function formatTable(headers: string[], rows: string[][], { gap }?: {
260
263
  gap?: number;
261
264
  }): string[];
262
265
  //#endregion
@@ -293,12 +296,12 @@ interface GaugeCell {
293
296
  * transparent track, and a light-blue label after the bar. `percent` is 0-100;
294
297
  * null renders an empty gauge with a neutral label.
295
298
  */
296
- declare function renderGauge(percent: number | null, label: string, width?: number, out?: NodeJS.WriteStream): GaugeCell;
299
+ export declare function renderGauge(percent: number | null, label: string, width?: number, out?: NodeJS.WriteStream): GaugeCell;
297
300
  /**
298
301
  * Render a bordered table as an array of lines. The header row is drawn as a
299
302
  * solid highlight bar that extends to the full table width.
300
303
  */
301
- declare function renderBoxTable(options: BoxTableOptions): string[];
304
+ export declare function renderBoxTable(options: BoxTableOptions): string[];
302
305
  //#endregion
303
306
  //#region src/output/progress.d.ts
304
307
  interface Spinner {
@@ -306,23 +309,23 @@ interface Spinner {
306
309
  update(text: string): void;
307
310
  stop(finalText?: string): void;
308
311
  }
309
- declare function createSpinner(label: string): Spinner;
312
+ export declare function createSpinner(label: string): Spinner;
310
313
  interface ProgressBar {
311
314
  update(current: number): void;
312
315
  finish(): void;
313
316
  }
314
- declare function createProgressBar(total: number, label?: string): ProgressBar;
317
+ export declare function createProgressBar(total: number, label?: string): ProgressBar;
315
318
  //#endregion
316
319
  //#region src/output/banner.d.ts
317
- declare function printWelcomeBanner(cliName: string, translator?: Translator): void;
318
- declare function printQuickStart(tasks: readonly string[], language?: Language): void;
320
+ export declare function printWelcomeBanner(cliName: string, translator?: Translator): void;
321
+ export declare function printQuickStart(tasks: readonly string[], language?: Language): void;
319
322
  //#endregion
320
323
  //#region src/output/status-bar.d.ts
321
- declare function maybeShowStatusBar(settings: Settings, token: string, resolved: ApiKeyCredential): void;
324
+ export declare function maybeShowStatusBar(settings: Settings, token: string, resolved: ApiKeyCredential): void;
322
325
  //#endregion
323
326
  //#region src/output/cjk-width.d.ts
324
- declare function displayWidth(text: string): number;
325
- declare function padEnd(text: string, targetWidth: number): string;
327
+ export declare function displayWidth(text: string): number;
328
+ export declare function padEnd(text: string, targetWidth: number): string;
326
329
  //#endregion
327
330
  //#region src/output/color.d.ts
328
331
  type TextStyle = (text: string) => string;
@@ -343,9 +346,9 @@ interface AnsiStyles {
343
346
  keyPink: TextStyle;
344
347
  reset: string;
345
348
  }
346
- declare function isTerminal(out: NodeJS.WriteStream): boolean;
347
- declare function supportsColor(out: NodeJS.WriteStream): boolean;
348
- declare function ansi(out: NodeJS.WriteStream): AnsiStyles;
349
+ export declare function isTerminal(out: NodeJS.WriteStream): boolean;
350
+ export declare function supportsColor(out: NodeJS.WriteStream): boolean;
351
+ export declare function ansi(out: NodeJS.WriteStream): AnsiStyles;
349
352
  //#endregion
350
353
  //#region src/utils/polling.d.ts
351
354
  interface PollOptions {
@@ -358,19 +361,19 @@ interface PollOptions {
358
361
  getStatus?: (data: unknown) => string;
359
362
  getErrorMessage?: (data: unknown) => string | undefined;
360
363
  }
361
- declare function poll<T>(client: Client, settings: Settings, opts: PollOptions): Promise<T>;
364
+ export declare function poll<T>(client: Client, settings: Settings, opts: PollOptions): Promise<T>;
362
365
  //#endregion
363
366
  //#region src/utils/download.d.ts
364
- declare function downloadFile(url: string, destPath: string, opts?: {
367
+ export declare function downloadFile(url: string, destPath: string, opts?: {
365
368
  quiet?: boolean;
366
369
  }): Promise<{
367
370
  size: number;
368
371
  }>;
369
- declare function formatBytes(bytes: number): string;
372
+ export declare function formatBytes(bytes: number): string;
370
373
  //#endregion
371
374
  //#region src/utils/concurrent.d.ts
372
375
  /** Resolve concurrency from parsed command flags(`--concurrent`,defaults to 1). */
373
- declare function getConcurrency(flags: {
376
+ export declare function getConcurrency(flags: {
374
377
  concurrent?: number;
375
378
  }): number;
376
379
  /**
@@ -383,7 +386,7 @@ declare function getConcurrency(flags: {
383
386
  * @param task Async factory to execute
384
387
  * @param label Optional label for status output (e.g. "requests", "tasks")
385
388
  */
386
- declare function runConcurrent<T>(n: number, settings: Settings, task: (index: number) => Promise<T>, label?: string): Promise<T[]>;
389
+ export declare function runConcurrent<T>(n: number, settings: Settings, task: (index: number) => Promise<T>, label?: string): Promise<T[]>;
387
390
  /**
388
391
  * Parallel download helper — downloads multiple URLs concurrently.
389
392
  *
@@ -392,7 +395,7 @@ declare function runConcurrent<T>(n: number, settings: Settings, task: (index: n
392
395
  * @param opts Options passed to download function
393
396
  * @returns Array of saved file paths in order
394
397
  */
395
- declare function downloadParallel(items: Array<{
398
+ export declare function downloadParallel(items: Array<{
396
399
  url: string;
397
400
  destPath: string;
398
401
  }>, downloadFn: (url: string, destPath: string, opts?: {
@@ -403,19 +406,19 @@ declare function downloadParallel(items: Array<{
403
406
  //#endregion
404
407
  //#region src/utils/image-size.d.ts
405
408
  /** Resolve `--size` with an explicit model size profile. */
406
- declare function resolveImageSize(input: string, sizeProfile: ImageSizeProfile): string;
407
- declare function resolveImageSize(input: string | undefined, sizeProfile: ImageSizeProfile): string | undefined;
409
+ export declare function resolveImageSize(input: string, sizeProfile: ImageSizeProfile): string;
410
+ export declare function resolveImageSize(input: string | undefined, sizeProfile: ImageSizeProfile): string | undefined;
408
411
  /** @deprecated Prefer `ImageSizeProfile`; boolean maps sync→qwen-image-2.0 / async→qwen-image-fixed. */
409
- declare function resolveImageSize(input: string, useSync: boolean): string;
410
- declare function resolveImageSize(input: string | undefined, useSync: boolean): string | undefined;
412
+ export declare function resolveImageSize(input: string, useSync: boolean): string;
413
+ export declare function resolveImageSize(input: string | undefined, useSync: boolean): string | undefined;
411
414
  //#endregion
412
415
  //#region src/utils/update-checker.d.ts
413
- declare const NPM_REGISTRY = "https://registry.npmjs.org";
416
+ export declare const NPM_REGISTRY = "https://registry.npmjs.org";
414
417
  /** Default npm package; products override per-call via the `npmPackage` argument. */
415
- declare const NPM_PACKAGE = "bailian-cli";
416
- declare function fetchLatestVersion(timeoutMs?: number, npmPackage?: string): Promise<string | null>;
417
- declare function getPendingUpdateNotification(): string | null;
418
- declare function checkForUpdate(currentVersion: string, npmPackage?: string, clientName?: string): Promise<void>;
418
+ export declare const NPM_PACKAGE = "bailian-cli";
419
+ export declare function fetchLatestVersion(timeoutMs?: number, npmPackage?: string): Promise<string | null>;
420
+ export declare function getPendingUpdateNotification(): string | null;
421
+ export declare function checkForUpdate(currentVersion: string, npmPackage?: string, clientName?: string): Promise<void>;
419
422
  //#endregion
420
423
  //#region src/utils/binary-update.d.ts
421
424
  interface ChannelManifest {
@@ -428,17 +431,17 @@ interface ChannelManifest {
428
431
  }>;
429
432
  }
430
433
  /** Product share root: versions/, current, and (on Windows) bin/. */
431
- declare function getBinaryShareRoot(): string;
434
+ export declare function getBinaryShareRoot(): string;
432
435
  /** PATH directory that should expose `bl` / `bailian`. */
433
- declare function getBinaryBinRoot(): string;
434
- declare function getBinaryVersionsDir(): string;
435
- declare function getBinaryCurrentPath(): string;
436
- declare function fetchBinaryChannelVersion(channel?: string, timeoutMs?: number): Promise<string | null>;
437
- declare function fetchBinaryChannelManifest(channel?: string, timeoutMs?: number): Promise<ChannelManifest | null>;
436
+ export declare function getBinaryBinRoot(): string;
437
+ export declare function getBinaryVersionsDir(): string;
438
+ export declare function getBinaryCurrentPath(): string;
439
+ export declare function fetchBinaryChannelVersion(channel?: string, timeoutMs?: number): Promise<string | null>;
440
+ export declare function fetchBinaryChannelManifest(channel?: string, timeoutMs?: number): Promise<ChannelManifest | null>;
438
441
  /** Strip a leading `v` from release-style tags (`v1.2.3` → `1.2.3`). */
439
- declare function normalizeBinaryVersion(raw: string): string;
442
+ export declare function normalizeBinaryVersion(raw: string): string;
440
443
  /** True if `raw` is a usable `--to` target after trim (optional `v` prefix). */
441
- declare function isValidUpdateTargetVersion(raw: string): boolean;
444
+ export declare function isValidUpdateTargetVersion(raw: string): boolean;
442
445
  interface BinaryDownloadSpec {
443
446
  zipName: string;
444
447
  innerName: string;
@@ -451,26 +454,26 @@ interface BinaryDownloadSpec {
451
454
  * manifest `url` / `file`. Checksum prefers per-version SHA256SUMS, then the
452
455
  * latest rolling manifest only when it points at the same version.
453
456
  */
454
- declare function resolveBinaryDownloadSpec(targetVersion: string): Promise<BinaryDownloadSpec>;
457
+ export declare function resolveBinaryDownloadSpec(targetVersion: string): Promise<BinaryDownloadSpec>;
455
458
  /** Resolve which version directory `current` points at, if any. */
456
- declare function readCurrentVersionDir(): Promise<string | null>;
459
+ export declare function readCurrentVersionDir(): Promise<string | null>;
457
460
  /**
458
461
  * Point `shareRoot/current` at `versions/<version>/`.
459
462
  * Unix: directory symlink. Windows: directory junction.
460
463
  * Retargets in place so PATH entries that go through `current` keep working.
461
464
  */
462
- declare function switchCurrentToVersion(version: string): Promise<string>;
465
+ export declare function switchCurrentToVersion(version: string): Promise<string>;
463
466
  /**
464
467
  * Ensure PATH bin entries resolve through `current` (Codex-style).
465
468
  * - Unix: `~/.local/bin/{bl,bailian}` → `current/bl`
466
469
  * - Windows: `shareRoot/bin` is a junction → `current` (contains bl.exe + bailian.exe)
467
470
  */
468
- declare function ensureBinaryPathEntries(version: string): Promise<void>;
471
+ export declare function ensureBinaryPathEntries(version: string): Promise<void>;
469
472
  /**
470
473
  * Keep only the listed version directory names under `versions/`.
471
474
  * Always preserves directories that are still the live `current` target.
472
475
  */
473
- declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
476
+ export declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
474
477
  /**
475
478
  * Download and install a newer standalone binary using Codex-style layout:
476
479
  * `versions/<ver>/` + retarget `current` + path entries through `current`.
@@ -479,26 +482,26 @@ declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
479
482
  * Does not overwrite a running executable image: old version files stay locked
480
483
  * by the current process; the next invocation follows the updated pointer.
481
484
  */
482
- declare function performBinaryUpdate(targetVersion: string): Promise<string>;
485
+ export declare function performBinaryUpdate(targetVersion: string): Promise<string>;
483
486
  //#endregion
484
487
  //#region src/utils/flag-descriptions.d.ts
485
488
  /** Shared --foo <bool> help text; keep wording consistent with actual CLI/request behavior. */
486
- declare const BOOL_FLAG_WATERMARK: {
489
+ export declare const BOOL_FLAG_WATERMARK: {
487
490
  "en-US": string;
488
491
  "zh-CN": string;
489
492
  };
490
493
  /** CLI sends prompt_extend=true when flag omitted (qwen-image edit, etc.). */
491
- declare const BOOL_FLAG_PROMPT_EXTEND_CLI_TRUE: {
494
+ export declare const BOOL_FLAG_PROMPT_EXTEND_CLI_TRUE: {
492
495
  "en-US": string;
493
496
  "zh-CN": string;
494
497
  };
495
498
  /** Sync qwen-image defaults on; async models omit the field unless flag is set. */
496
- declare const BOOL_FLAG_PROMPT_EXTEND_IMAGE_GENERATE: {
499
+ export declare const BOOL_FLAG_PROMPT_EXTEND_IMAGE_GENERATE: {
497
500
  "en-US": string;
498
501
  "zh-CN": string;
499
502
  };
500
503
  /** CLI omits prompt_extend in the request when flag is unset (video commands). */
501
- declare const BOOL_FLAG_PROMPT_EXTEND_API_DEFAULT: {
504
+ export declare const BOOL_FLAG_PROMPT_EXTEND_API_DEFAULT: {
502
505
  "en-US": string;
503
506
  "zh-CN": string;
504
507
  };
@@ -790,18 +793,18 @@ declare class StepDispatcher {
790
793
  }
791
794
  //#endregion
792
795
  //#region src/pipeline/init.d.ts
793
- declare function initPipelineSteps(dispatcher?: StepDispatcher): StepDispatcher;
796
+ export declare function initPipelineSteps(dispatcher?: StepDispatcher): StepDispatcher;
794
797
  //#endregion
795
798
  //#region src/pipeline/validation.d.ts
796
- declare function collectPipelineIssues(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
799
+ export declare function collectPipelineIssues(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
797
800
  /**
798
801
  * Collect non-blocking hints about potentially invalid $from paths.
799
802
  * These do not prevent execution but help workflow authors catch typos.
800
803
  */
801
- declare function collectPipelineHints(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
804
+ export declare function collectPipelineHints(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
802
805
  //#endregion
803
806
  //#region src/pipeline/executor.d.ts
804
- declare function executePipeline(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: ExecutePipelineOptions): Promise<PipelineExecutionReport>;
805
- declare function streamPipelineEvents(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: Pick<ExecutePipelineOptions, "concurrency" | "basePath" | "dryRun" | "signal" | "timeoutSeconds" | "blRequestTimeoutSeconds" | "stepDispatcher">): AsyncGenerator<PipelineLifecycleEvent>;
807
+ export declare function executePipeline(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: ExecutePipelineOptions): Promise<PipelineExecutionReport>;
808
+ export declare function streamPipelineEvents(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: Pick<ExecutePipelineOptions, "concurrency" | "basePath" | "dryRun" | "signal" | "timeoutSeconds" | "blRequestTimeoutSeconds" | "stepDispatcher">): AsyncGenerator<PipelineLifecycleEvent>;
806
809
  //#endregion
807
- export { API_KEY_PAGE, type AnsiStyles, BAILIAN_CONSOLE, BAILIAN_CONSOLE_ROOT, BOOL_FLAG_PROMPT_EXTEND_API_DEFAULT, BOOL_FLAG_PROMPT_EXTEND_CLI_TRUE, BOOL_FLAG_PROMPT_EXTEND_IMAGE_GENERATE, BOOL_FLAG_WATERMARK, type BarColumn, type BoxTableOptions, CLI_VERSION, type Cli, type CliOptions, type Command, type CommandPackCredentialAccess, type CommandPackDefinition, type CommandPackPolicy, CommandRegistry, type FlagDef, type GaugeCell, type LocateResult, MCP_WEBSEARCH_PAGE, type Middleware, NPM_PACKAGE, NPM_REGISTRY, type ParsePathResult, type PipelineDefinition, type PipelineLifecycleEvent, type Resolution, type RunContext, TOKEN_PLAN_PAGE, type TextStyle, VOICE_TTS_PAGE, ansi, checkForUpdate, collectPipelineHints, collectPipelineIssues, compose, createCli, createProgressBar, createSpinner, displayWidth, downloadFile, downloadParallel, emitBare, emitRequestId, emitResult, ensureBinaryPathEntries, executePipeline, fetchBinaryChannelManifest, fetchBinaryChannelVersion, fetchLatestVersion, formatBytes, formatTable, getBinaryBinRoot, getBinaryCurrentPath, getBinaryShareRoot, getBinaryVersionsDir, getConcurrency, getPendingUpdateNotification, handleError, initPipelineSteps, isTerminal, isValidUpdateTargetVersion, maybeShowStatusBar, mcpMarketplaceDetailPage, normalizeBinaryVersion, padEnd, parseFlags, parsePath, performBinaryUpdate, poll, printQuickStart, printWelcomeBanner, pruneBinaryVersions, readCurrentVersionDir, renderBoxTable, renderGauge, resolve, resolveBinaryDownloadSpec, resolveImageSize, runConcurrent, setupProxyFromEnv, streamPipelineEvents, supportsColor, switchCurrentToVersion };
810
+ export type { AnsiStyles, BarColumn, BoxTableOptions, Cli, CliOptions, Command, CommandPackCredentialAccess, CommandPackDefinition, CommandPackPolicy, FlagDef, GaugeCell, LocateResult, Middleware, ParsePathResult, PipelineDefinition, PipelineLifecycleEvent, Resolution, RunContext, TextStyle };