bailian-cli-runtime 1.28.0 → 2.0.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/dist/index.d.mts +71 -74
- package/dist/index.mjs +55 -36
- package/package.json +3 -3
- package/dist/binary-update-B9ti3hFP.mjs +0 -1
- package/dist/binary-update-Dxwl7hbM.mjs +0 -2
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,22 @@ 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";
|
|
227
226
|
//#endregion
|
|
228
227
|
//#region src/output/output.d.ts
|
|
229
228
|
/**
|
|
@@ -231,12 +230,12 @@ declare const VOICE_TTS_PAGE = "https://help.aliyun.com/zh/model-studio/cosyvoic
|
|
|
231
230
|
* stdout → result (text by default; JSON with --output json)
|
|
232
231
|
* stderr → human info (progress, logs, tips) — handled elsewhere
|
|
233
232
|
*/
|
|
234
|
-
declare function emitResult(data: unknown, format: OutputFormat): void;
|
|
233
|
+
export declare function emitResult(data: unknown, format: OutputFormat): void;
|
|
235
234
|
/**
|
|
236
235
|
* Emit a bare value (file path, plain text) to stdout.
|
|
237
236
|
* Used in --quiet mode or when the result is a single scalar.
|
|
238
237
|
*/
|
|
239
|
-
declare function emitBare(value: string): void;
|
|
238
|
+
export declare function emitBare(value: string): void;
|
|
240
239
|
/**
|
|
241
240
|
* Surface a server request id for text-mode output. Written to stderr (the
|
|
242
241
|
* diagnostic channel) so it never corrupts the primary stdout result, mirroring
|
|
@@ -244,7 +243,7 @@ declare function emitBare(value: string): void;
|
|
|
244
243
|
* absent (e.g. dry-run) or in --quiet mode (which owes callers a bare scalar).
|
|
245
244
|
* JSON output surfaces request_id inside the payload instead of calling this.
|
|
246
245
|
*/
|
|
247
|
-
declare function emitRequestId(requestId: string | undefined, quiet: boolean): void;
|
|
246
|
+
export declare function emitRequestId(requestId: string | undefined, quiet: boolean): void;
|
|
248
247
|
//#endregion
|
|
249
248
|
//#region src/output/table.d.ts
|
|
250
249
|
/**
|
|
@@ -254,9 +253,7 @@ declare function emitRequestId(requestId: string | undefined, quiet: boolean): v
|
|
|
254
253
|
* outputs space-padded columns so the table is human-readable.
|
|
255
254
|
*/
|
|
256
255
|
/** Produce aligned text lines from headers + rows (all string[]). */
|
|
257
|
-
declare function formatTable(headers: string[], rows: string[][], {
|
|
258
|
-
gap
|
|
259
|
-
}?: {
|
|
256
|
+
export declare function formatTable(headers: string[], rows: string[][], { gap }?: {
|
|
260
257
|
gap?: number;
|
|
261
258
|
}): string[];
|
|
262
259
|
//#endregion
|
|
@@ -293,12 +290,12 @@ interface GaugeCell {
|
|
|
293
290
|
* transparent track, and a light-blue label after the bar. `percent` is 0-100;
|
|
294
291
|
* null renders an empty gauge with a neutral label.
|
|
295
292
|
*/
|
|
296
|
-
declare function renderGauge(percent: number | null, label: string, width?: number, out?: NodeJS.WriteStream): GaugeCell;
|
|
293
|
+
export declare function renderGauge(percent: number | null, label: string, width?: number, out?: NodeJS.WriteStream): GaugeCell;
|
|
297
294
|
/**
|
|
298
295
|
* Render a bordered table as an array of lines. The header row is drawn as a
|
|
299
296
|
* solid highlight bar that extends to the full table width.
|
|
300
297
|
*/
|
|
301
|
-
declare function renderBoxTable(options: BoxTableOptions): string[];
|
|
298
|
+
export declare function renderBoxTable(options: BoxTableOptions): string[];
|
|
302
299
|
//#endregion
|
|
303
300
|
//#region src/output/progress.d.ts
|
|
304
301
|
interface Spinner {
|
|
@@ -306,23 +303,23 @@ interface Spinner {
|
|
|
306
303
|
update(text: string): void;
|
|
307
304
|
stop(finalText?: string): void;
|
|
308
305
|
}
|
|
309
|
-
declare function createSpinner(label: string): Spinner;
|
|
306
|
+
export declare function createSpinner(label: string): Spinner;
|
|
310
307
|
interface ProgressBar {
|
|
311
308
|
update(current: number): void;
|
|
312
309
|
finish(): void;
|
|
313
310
|
}
|
|
314
|
-
declare function createProgressBar(total: number, label?: string): ProgressBar;
|
|
311
|
+
export declare function createProgressBar(total: number, label?: string): ProgressBar;
|
|
315
312
|
//#endregion
|
|
316
313
|
//#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;
|
|
314
|
+
export declare function printWelcomeBanner(cliName: string, translator?: Translator): void;
|
|
315
|
+
export declare function printQuickStart(tasks: readonly string[], language?: Language): void;
|
|
319
316
|
//#endregion
|
|
320
317
|
//#region src/output/status-bar.d.ts
|
|
321
|
-
declare function maybeShowStatusBar(settings: Settings, token: string, resolved: ApiKeyCredential): void;
|
|
318
|
+
export declare function maybeShowStatusBar(settings: Settings, token: string, resolved: ApiKeyCredential): void;
|
|
322
319
|
//#endregion
|
|
323
320
|
//#region src/output/cjk-width.d.ts
|
|
324
|
-
declare function displayWidth(text: string): number;
|
|
325
|
-
declare function padEnd(text: string, targetWidth: number): string;
|
|
321
|
+
export declare function displayWidth(text: string): number;
|
|
322
|
+
export declare function padEnd(text: string, targetWidth: number): string;
|
|
326
323
|
//#endregion
|
|
327
324
|
//#region src/output/color.d.ts
|
|
328
325
|
type TextStyle = (text: string) => string;
|
|
@@ -343,9 +340,9 @@ interface AnsiStyles {
|
|
|
343
340
|
keyPink: TextStyle;
|
|
344
341
|
reset: string;
|
|
345
342
|
}
|
|
346
|
-
declare function isTerminal(out: NodeJS.WriteStream): boolean;
|
|
347
|
-
declare function supportsColor(out: NodeJS.WriteStream): boolean;
|
|
348
|
-
declare function ansi(out: NodeJS.WriteStream): AnsiStyles;
|
|
343
|
+
export declare function isTerminal(out: NodeJS.WriteStream): boolean;
|
|
344
|
+
export declare function supportsColor(out: NodeJS.WriteStream): boolean;
|
|
345
|
+
export declare function ansi(out: NodeJS.WriteStream): AnsiStyles;
|
|
349
346
|
//#endregion
|
|
350
347
|
//#region src/utils/polling.d.ts
|
|
351
348
|
interface PollOptions {
|
|
@@ -358,19 +355,19 @@ interface PollOptions {
|
|
|
358
355
|
getStatus?: (data: unknown) => string;
|
|
359
356
|
getErrorMessage?: (data: unknown) => string | undefined;
|
|
360
357
|
}
|
|
361
|
-
declare function poll<T>(client: Client, settings: Settings, opts: PollOptions): Promise<T>;
|
|
358
|
+
export declare function poll<T>(client: Client, settings: Settings, opts: PollOptions): Promise<T>;
|
|
362
359
|
//#endregion
|
|
363
360
|
//#region src/utils/download.d.ts
|
|
364
|
-
declare function downloadFile(url: string, destPath: string, opts?: {
|
|
361
|
+
export declare function downloadFile(url: string, destPath: string, opts?: {
|
|
365
362
|
quiet?: boolean;
|
|
366
363
|
}): Promise<{
|
|
367
364
|
size: number;
|
|
368
365
|
}>;
|
|
369
|
-
declare function formatBytes(bytes: number): string;
|
|
366
|
+
export declare function formatBytes(bytes: number): string;
|
|
370
367
|
//#endregion
|
|
371
368
|
//#region src/utils/concurrent.d.ts
|
|
372
369
|
/** Resolve concurrency from parsed command flags(`--concurrent`,defaults to 1). */
|
|
373
|
-
declare function getConcurrency(flags: {
|
|
370
|
+
export declare function getConcurrency(flags: {
|
|
374
371
|
concurrent?: number;
|
|
375
372
|
}): number;
|
|
376
373
|
/**
|
|
@@ -383,7 +380,7 @@ declare function getConcurrency(flags: {
|
|
|
383
380
|
* @param task Async factory to execute
|
|
384
381
|
* @param label Optional label for status output (e.g. "requests", "tasks")
|
|
385
382
|
*/
|
|
386
|
-
declare function runConcurrent<T>(n: number, settings: Settings, task: (index: number) => Promise<T>, label?: string): Promise<T[]>;
|
|
383
|
+
export declare function runConcurrent<T>(n: number, settings: Settings, task: (index: number) => Promise<T>, label?: string): Promise<T[]>;
|
|
387
384
|
/**
|
|
388
385
|
* Parallel download helper — downloads multiple URLs concurrently.
|
|
389
386
|
*
|
|
@@ -392,7 +389,7 @@ declare function runConcurrent<T>(n: number, settings: Settings, task: (index: n
|
|
|
392
389
|
* @param opts Options passed to download function
|
|
393
390
|
* @returns Array of saved file paths in order
|
|
394
391
|
*/
|
|
395
|
-
declare function downloadParallel(items: Array<{
|
|
392
|
+
export declare function downloadParallel(items: Array<{
|
|
396
393
|
url: string;
|
|
397
394
|
destPath: string;
|
|
398
395
|
}>, downloadFn: (url: string, destPath: string, opts?: {
|
|
@@ -403,19 +400,19 @@ declare function downloadParallel(items: Array<{
|
|
|
403
400
|
//#endregion
|
|
404
401
|
//#region src/utils/image-size.d.ts
|
|
405
402
|
/** 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;
|
|
403
|
+
export declare function resolveImageSize(input: string, sizeProfile: ImageSizeProfile): string;
|
|
404
|
+
export declare function resolveImageSize(input: string | undefined, sizeProfile: ImageSizeProfile): string | undefined;
|
|
408
405
|
/** @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;
|
|
406
|
+
export declare function resolveImageSize(input: string, useSync: boolean): string;
|
|
407
|
+
export declare function resolveImageSize(input: string | undefined, useSync: boolean): string | undefined;
|
|
411
408
|
//#endregion
|
|
412
409
|
//#region src/utils/update-checker.d.ts
|
|
413
|
-
declare const NPM_REGISTRY = "https://registry.npmjs.org";
|
|
410
|
+
export declare const NPM_REGISTRY = "https://registry.npmjs.org";
|
|
414
411
|
/** 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>;
|
|
412
|
+
export declare const NPM_PACKAGE = "bailian-cli";
|
|
413
|
+
export declare function fetchLatestVersion(timeoutMs?: number, npmPackage?: string): Promise<string | null>;
|
|
414
|
+
export declare function getPendingUpdateNotification(): string | null;
|
|
415
|
+
export declare function checkForUpdate(currentVersion: string, npmPackage?: string, clientName?: string): Promise<void>;
|
|
419
416
|
//#endregion
|
|
420
417
|
//#region src/utils/binary-update.d.ts
|
|
421
418
|
interface ChannelManifest {
|
|
@@ -428,17 +425,17 @@ interface ChannelManifest {
|
|
|
428
425
|
}>;
|
|
429
426
|
}
|
|
430
427
|
/** Product share root: versions/, current, and (on Windows) bin/. */
|
|
431
|
-
declare function getBinaryShareRoot(): string;
|
|
428
|
+
export declare function getBinaryShareRoot(): string;
|
|
432
429
|
/** 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>;
|
|
430
|
+
export declare function getBinaryBinRoot(): string;
|
|
431
|
+
export declare function getBinaryVersionsDir(): string;
|
|
432
|
+
export declare function getBinaryCurrentPath(): string;
|
|
433
|
+
export declare function fetchBinaryChannelVersion(channel?: string, timeoutMs?: number): Promise<string | null>;
|
|
434
|
+
export declare function fetchBinaryChannelManifest(channel?: string, timeoutMs?: number): Promise<ChannelManifest | null>;
|
|
438
435
|
/** Strip a leading `v` from release-style tags (`v1.2.3` → `1.2.3`). */
|
|
439
|
-
declare function normalizeBinaryVersion(raw: string): string;
|
|
436
|
+
export declare function normalizeBinaryVersion(raw: string): string;
|
|
440
437
|
/** True if `raw` is a usable `--to` target after trim (optional `v` prefix). */
|
|
441
|
-
declare function isValidUpdateTargetVersion(raw: string): boolean;
|
|
438
|
+
export declare function isValidUpdateTargetVersion(raw: string): boolean;
|
|
442
439
|
interface BinaryDownloadSpec {
|
|
443
440
|
zipName: string;
|
|
444
441
|
innerName: string;
|
|
@@ -451,26 +448,26 @@ interface BinaryDownloadSpec {
|
|
|
451
448
|
* manifest `url` / `file`. Checksum prefers per-version SHA256SUMS, then the
|
|
452
449
|
* latest rolling manifest only when it points at the same version.
|
|
453
450
|
*/
|
|
454
|
-
declare function resolveBinaryDownloadSpec(targetVersion: string): Promise<BinaryDownloadSpec>;
|
|
451
|
+
export declare function resolveBinaryDownloadSpec(targetVersion: string): Promise<BinaryDownloadSpec>;
|
|
455
452
|
/** Resolve which version directory `current` points at, if any. */
|
|
456
|
-
declare function readCurrentVersionDir(): Promise<string | null>;
|
|
453
|
+
export declare function readCurrentVersionDir(): Promise<string | null>;
|
|
457
454
|
/**
|
|
458
455
|
* Point `shareRoot/current` at `versions/<version>/`.
|
|
459
456
|
* Unix: directory symlink. Windows: directory junction.
|
|
460
457
|
* Retargets in place so PATH entries that go through `current` keep working.
|
|
461
458
|
*/
|
|
462
|
-
declare function switchCurrentToVersion(version: string): Promise<string>;
|
|
459
|
+
export declare function switchCurrentToVersion(version: string): Promise<string>;
|
|
463
460
|
/**
|
|
464
461
|
* Ensure PATH bin entries resolve through `current` (Codex-style).
|
|
465
462
|
* - Unix: `~/.local/bin/{bl,bailian}` → `current/bl`
|
|
466
463
|
* - Windows: `shareRoot/bin` is a junction → `current` (contains bl.exe + bailian.exe)
|
|
467
464
|
*/
|
|
468
|
-
declare function ensureBinaryPathEntries(version: string): Promise<void>;
|
|
465
|
+
export declare function ensureBinaryPathEntries(version: string): Promise<void>;
|
|
469
466
|
/**
|
|
470
467
|
* Keep only the listed version directory names under `versions/`.
|
|
471
468
|
* Always preserves directories that are still the live `current` target.
|
|
472
469
|
*/
|
|
473
|
-
declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
|
|
470
|
+
export declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
|
|
474
471
|
/**
|
|
475
472
|
* Download and install a newer standalone binary using Codex-style layout:
|
|
476
473
|
* `versions/<ver>/` + retarget `current` + path entries through `current`.
|
|
@@ -479,26 +476,26 @@ declare function pruneBinaryVersions(keepVersions: string[]): Promise<void>;
|
|
|
479
476
|
* Does not overwrite a running executable image: old version files stay locked
|
|
480
477
|
* by the current process; the next invocation follows the updated pointer.
|
|
481
478
|
*/
|
|
482
|
-
declare function performBinaryUpdate(targetVersion: string): Promise<string>;
|
|
479
|
+
export declare function performBinaryUpdate(targetVersion: string): Promise<string>;
|
|
483
480
|
//#endregion
|
|
484
481
|
//#region src/utils/flag-descriptions.d.ts
|
|
485
482
|
/** Shared --foo <bool> help text; keep wording consistent with actual CLI/request behavior. */
|
|
486
|
-
declare const BOOL_FLAG_WATERMARK: {
|
|
483
|
+
export declare const BOOL_FLAG_WATERMARK: {
|
|
487
484
|
"en-US": string;
|
|
488
485
|
"zh-CN": string;
|
|
489
486
|
};
|
|
490
487
|
/** CLI sends prompt_extend=true when flag omitted (qwen-image edit, etc.). */
|
|
491
|
-
declare const BOOL_FLAG_PROMPT_EXTEND_CLI_TRUE: {
|
|
488
|
+
export declare const BOOL_FLAG_PROMPT_EXTEND_CLI_TRUE: {
|
|
492
489
|
"en-US": string;
|
|
493
490
|
"zh-CN": string;
|
|
494
491
|
};
|
|
495
492
|
/** Sync qwen-image defaults on; async models omit the field unless flag is set. */
|
|
496
|
-
declare const BOOL_FLAG_PROMPT_EXTEND_IMAGE_GENERATE: {
|
|
493
|
+
export declare const BOOL_FLAG_PROMPT_EXTEND_IMAGE_GENERATE: {
|
|
497
494
|
"en-US": string;
|
|
498
495
|
"zh-CN": string;
|
|
499
496
|
};
|
|
500
497
|
/** CLI omits prompt_extend in the request when flag is unset (video commands). */
|
|
501
|
-
declare const BOOL_FLAG_PROMPT_EXTEND_API_DEFAULT: {
|
|
498
|
+
export declare const BOOL_FLAG_PROMPT_EXTEND_API_DEFAULT: {
|
|
502
499
|
"en-US": string;
|
|
503
500
|
"zh-CN": string;
|
|
504
501
|
};
|
|
@@ -790,18 +787,18 @@ declare class StepDispatcher {
|
|
|
790
787
|
}
|
|
791
788
|
//#endregion
|
|
792
789
|
//#region src/pipeline/init.d.ts
|
|
793
|
-
declare function initPipelineSteps(dispatcher?: StepDispatcher): StepDispatcher;
|
|
790
|
+
export declare function initPipelineSteps(dispatcher?: StepDispatcher): StepDispatcher;
|
|
794
791
|
//#endregion
|
|
795
792
|
//#region src/pipeline/validation.d.ts
|
|
796
|
-
declare function collectPipelineIssues(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
|
|
793
|
+
export declare function collectPipelineIssues(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
|
|
797
794
|
/**
|
|
798
795
|
* Collect non-blocking hints about potentially invalid $from paths.
|
|
799
796
|
* These do not prevent execution but help workflow authors catch typos.
|
|
800
797
|
*/
|
|
801
|
-
declare function collectPipelineHints(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
|
|
798
|
+
export declare function collectPipelineHints(pipeline: PipelineDefinition, dispatcher?: StepDispatcher): string[];
|
|
802
799
|
//#endregion
|
|
803
800
|
//#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>;
|
|
801
|
+
export declare function executePipeline(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: ExecutePipelineOptions): Promise<PipelineExecutionReport>;
|
|
802
|
+
export declare function streamPipelineEvents(pipeline: PipelineDefinition, runtimeInput?: Record<string, unknown>, options?: Pick<ExecutePipelineOptions, "concurrency" | "basePath" | "dryRun" | "signal" | "timeoutSeconds" | "blRequestTimeoutSeconds" | "stepDispatcher">): AsyncGenerator<PipelineLifecycleEvent>;
|
|
806
803
|
//#endregion
|
|
807
|
-
export {
|
|
804
|
+
export type { AnsiStyles, BarColumn, BoxTableOptions, Cli, CliOptions, Command, CommandPackCredentialAccess, CommandPackDefinition, CommandPackPolicy, FlagDef, GaugeCell, LocateResult, Middleware, ParsePathResult, PipelineDefinition, PipelineLifecycleEvent, Resolution, RunContext, TextStyle };
|