bailian-cli-core 2.8.5 → 2.9.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 +124 -6
- package/dist/index.mjs +62 -62
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1370,6 +1370,11 @@ interface Identity {
|
|
|
1370
1370
|
interface Settings {
|
|
1371
1371
|
configPath?: string;
|
|
1372
1372
|
configName?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* Profile name pinned in recovery command hints.
|
|
1375
|
+
* Explicit `--config default` stays `"default"`; implicit default is undefined.
|
|
1376
|
+
*/
|
|
1377
|
+
recoveryConfigName?: string;
|
|
1373
1378
|
output: "text" | "json";
|
|
1374
1379
|
/**
|
|
1375
1380
|
* Whether `output` came from an explicit source (flag/env/file) rather than
|
|
@@ -2199,6 +2204,17 @@ export declare function buildSources(flags: Partial<SourceFlags>, onWarning?: (w
|
|
|
2199
2204
|
export declare function buildOutputSettings({ flags, env, file }: Pick<ResolutionSources, "flags" | "env"> & {
|
|
2200
2205
|
file?: ConfigFile;
|
|
2201
2206
|
}): Pick<Settings, "output" | "outputExplicit" | "outputSource" | "quiet" | "verbose">;
|
|
2207
|
+
/**
|
|
2208
|
+
* Config name for recovery hints (does not change IO-layer `configName` semantics).
|
|
2209
|
+
* Explicit `--config default` is normalized to undefined in the loader; keep
|
|
2210
|
+
* `"default"` here so copying the hint does not fall back to an active named profile.
|
|
2211
|
+
*/
|
|
2212
|
+
export declare function resolveRecoveryConfigName(sources: {
|
|
2213
|
+
flags: {
|
|
2214
|
+
config?: unknown;
|
|
2215
|
+
};
|
|
2216
|
+
configName?: string;
|
|
2217
|
+
}): string | undefined;
|
|
2202
2218
|
/**
|
|
2203
2219
|
* 纯解析 sources → Settings(命令唯一会读的配置面)。不含身份、baseUrl、鉴权。
|
|
2204
2220
|
* 各字段链序 flag > env > file > 默认;锁定表 tests/config-priority.test.ts。
|
|
@@ -2852,6 +2868,14 @@ export declare const httpTransport: {
|
|
|
2852
2868
|
fetch(this: void, input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
2853
2869
|
};
|
|
2854
2870
|
//#endregion
|
|
2871
|
+
//#region src/console/response.d.ts
|
|
2872
|
+
/**
|
|
2873
|
+
* Read the known Console protocol layers, not arbitrary business `data` fields.
|
|
2874
|
+
* Unlike the legacy unwrapResponse, failures are checked before discarding the
|
|
2875
|
+
* envelope and a successful null payload remains null. Used by the typed reads.
|
|
2876
|
+
*/
|
|
2877
|
+
export declare function unwrapConsoleResponse(raw: unknown): unknown;
|
|
2878
|
+
//#endregion
|
|
2855
2879
|
//#region src/console/models.d.ts
|
|
2856
2880
|
export declare const MODEL_LIST_API = "zeldaHttp.dashscopeModel./zelda/api/v1/modelCenter/listFoundationModels";
|
|
2857
2881
|
export declare const PREDICT_CONFIG_API = "zeldaEasy.bmp.modelPredictRpcService.getPredictParamConfig";
|
|
@@ -3081,6 +3105,12 @@ export declare function resolveFileUrl(input: string, apiKey: string, model: str
|
|
|
3081
3105
|
timeout?: number;
|
|
3082
3106
|
}): Promise<string>;
|
|
3083
3107
|
//#endregion
|
|
3108
|
+
//#region src/files/url.d.ts
|
|
3109
|
+
export declare const CONSOLE_FILE_URL_API = "zeldaEasy.bmp.ossRpcService.download";
|
|
3110
|
+
export declare function getConsoleFileUrl(client: Pick<Client, "console">, fileKey: string): Promise<Record<string, unknown> & {
|
|
3111
|
+
url: string;
|
|
3112
|
+
}>;
|
|
3113
|
+
//#endregion
|
|
3084
3114
|
//#region src/dataset/types.d.ts
|
|
3085
3115
|
/**
|
|
3086
3116
|
* Dataset API types.
|
|
@@ -3205,6 +3235,65 @@ export declare function getDataset(client: Client, fileId: string, signal?: Abor
|
|
|
3205
3235
|
/** DELETE /api/v1/files/{file_id} */
|
|
3206
3236
|
export declare function deleteDataset(client: Client, fileId: string, signal?: AbortSignal): Promise<DatasetDeleteResponse>;
|
|
3207
3237
|
//#endregion
|
|
3238
|
+
//#region src/dataset/console.d.ts
|
|
3239
|
+
export declare const CONSOLE_DATASET_BY_ID_API = "zeldaEasy.broadscope-platform.dataset.queryByDatasetId.m_efm";
|
|
3240
|
+
export declare const CONSOLE_DATASET_VERSIONS_API = "zeldaEasy.broadscope-platform.dataset.query.m_efm";
|
|
3241
|
+
export declare const CONSOLE_DATASET_GROUPS_API = "zeldaEasy.broadscope-platform.datasetGroup.query.m_efm";
|
|
3242
|
+
export interface ListConsoleDatasetGroupsParams {
|
|
3243
|
+
page?: number;
|
|
3244
|
+
pageSize?: number;
|
|
3245
|
+
name?: string;
|
|
3246
|
+
}
|
|
3247
|
+
export interface ConsoleDatasetGroupsPage extends Record<string, unknown> {
|
|
3248
|
+
records: Record<string, unknown>[];
|
|
3249
|
+
page: number;
|
|
3250
|
+
itemsPerPage: number;
|
|
3251
|
+
items: number;
|
|
3252
|
+
}
|
|
3253
|
+
export interface ConsoleDatasetVersionsResult extends Record<string, unknown> {
|
|
3254
|
+
result: Record<string, unknown>[];
|
|
3255
|
+
}
|
|
3256
|
+
export declare function buildConsoleDatasetGroupsRequest(params?: ListConsoleDatasetGroupsParams): {
|
|
3257
|
+
input: {
|
|
3258
|
+
datasetPageSize: number;
|
|
3259
|
+
datasetTaskTypeList: number[];
|
|
3260
|
+
datasetTaskPageSize: number;
|
|
3261
|
+
name?: string | undefined;
|
|
3262
|
+
datasetGroupPageNo: number;
|
|
3263
|
+
datasetGroupPageSize: number;
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3266
|
+
/** One page of Console groups with one embedded version preview per group. */
|
|
3267
|
+
export declare function listConsoleDatasetGroups(client: Pick<Client, "console">, params?: ListConsoleDatasetGroupsParams): Promise<ConsoleDatasetGroupsPage>;
|
|
3268
|
+
export declare function buildConsoleDatasetVersionsRequest(datasetGroupId: string): {
|
|
3269
|
+
input: {
|
|
3270
|
+
datasetGroupId: string;
|
|
3271
|
+
datasetTaskTypeList: number[];
|
|
3272
|
+
datasetTaskPageSize: number;
|
|
3273
|
+
};
|
|
3274
|
+
};
|
|
3275
|
+
/** Query one group; expose version IDs without inventing pagination/completeness. */
|
|
3276
|
+
export declare function listConsoleDatasetVersions(client: Pick<Client, "console">, datasetGroupId: string): Promise<ConsoleDatasetVersionsResult>;
|
|
3277
|
+
/** datasetId identifies a Console version, not an API-domain file. */
|
|
3278
|
+
export declare function getConsoleDatasetById(client: Pick<Client, "console">, datasetId: string): Promise<Record<string, unknown>>;
|
|
3279
|
+
export declare function buildConsoleDatasetVersionRequest(datasetId: string, datasetGroupId: string): {
|
|
3280
|
+
input: {
|
|
3281
|
+
datasetId: string;
|
|
3282
|
+
datasetGroupId: string;
|
|
3283
|
+
page: number;
|
|
3284
|
+
itemsPerPage: number;
|
|
3285
|
+
datasetTaskTypeList: number[];
|
|
3286
|
+
datasetTaskPageSize: number;
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
/** Exact match only: never fall back to the first or a different version. */
|
|
3290
|
+
export declare function queryConsoleDatasetVersion(client: Pick<Client, "console">, datasetId: string, datasetGroupId: string): Promise<Record<string, unknown> | null>;
|
|
3291
|
+
/** A presence report, not a release, validation, or training-readiness decision. */
|
|
3292
|
+
export declare function consoleDatasetStatusAvailability(version: Record<string, unknown> | null): {
|
|
3293
|
+
release_status: string;
|
|
3294
|
+
import_status: string;
|
|
3295
|
+
};
|
|
3296
|
+
//#endregion
|
|
3208
3297
|
//#region src/dataset/validate/types.d.ts
|
|
3209
3298
|
/**
|
|
3210
3299
|
* Validator types — the registry contract that every format adheres to.
|
|
@@ -5023,6 +5112,35 @@ export declare function listIndependentDeployedModels(client: Client): Promise<M
|
|
|
5023
5112
|
*/
|
|
5024
5113
|
export declare function findDeploymentEntry(entries: ModelServiceEntry[], deployedModel: string): ModelServiceEntry | undefined;
|
|
5025
5114
|
//#endregion
|
|
5115
|
+
//#region src/deploy/instances.d.ts
|
|
5116
|
+
export declare const CONSOLE_DEPLOY_INSTANCES_API = "zeldaEasy.broadscope-platform.modelInstance.listIndependentDeployedModel.m_efm";
|
|
5117
|
+
export interface ListConsoleDeploymentInstancesParams {
|
|
5118
|
+
page?: number;
|
|
5119
|
+
pageSize?: number;
|
|
5120
|
+
keyword?: string;
|
|
5121
|
+
modelServiceId?: string;
|
|
5122
|
+
}
|
|
5123
|
+
/** One raw page of independent deployment services, not capacity instances or replicas. */
|
|
5124
|
+
export interface ConsoleDeploymentInstancesPage {
|
|
5125
|
+
records: Record<string, unknown>[];
|
|
5126
|
+
/** Total number of matching services, not the records array. */
|
|
5127
|
+
items: number;
|
|
5128
|
+
itemsPerPage: number;
|
|
5129
|
+
page: number;
|
|
5130
|
+
pageCount: number;
|
|
5131
|
+
[key: string]: unknown;
|
|
5132
|
+
}
|
|
5133
|
+
export declare function buildConsoleDeploymentInstancesRequest(params?: ListConsoleDeploymentInstancesParams): {
|
|
5134
|
+
input: {
|
|
5135
|
+
modelServiceId?: string | undefined;
|
|
5136
|
+
searchNameKeyword?: string | undefined;
|
|
5137
|
+
page: number;
|
|
5138
|
+
itemsPerPage: number;
|
|
5139
|
+
};
|
|
5140
|
+
};
|
|
5141
|
+
/** Fetch only the requested page and preserve every business-response field verbatim. */
|
|
5142
|
+
export declare function listConsoleDeploymentInstances(client: Pick<Client, "console">, params?: ListConsoleDeploymentInstancesParams): Promise<ConsoleDeploymentInstancesPage>;
|
|
5143
|
+
//#endregion
|
|
5026
5144
|
//#region src/model-import/types.d.ts
|
|
5027
5145
|
/**
|
|
5028
5146
|
* Custom model import API types.
|
|
@@ -5475,14 +5593,14 @@ export declare function createTrackingEvent(opts: {
|
|
|
5475
5593
|
//#endregion
|
|
5476
5594
|
//#region src/telemetry/sink.d.ts
|
|
5477
5595
|
/**
|
|
5478
|
-
*
|
|
5596
|
+
* Best-effort wait for all in-flight telemetry sends.
|
|
5479
5597
|
*
|
|
5480
|
-
* 1.
|
|
5481
|
-
*
|
|
5482
|
-
* 2.
|
|
5598
|
+
* 1. Call `_sendAll` to drain the tracker's debounce queue so events still in
|
|
5599
|
+
* the 500ms merge window are pushed to the network immediately.
|
|
5600
|
+
* 2. Wait for sends within the budget; on timeout, cancel DNS/HTTP/body work.
|
|
5483
5601
|
*
|
|
5484
|
-
*
|
|
5485
|
-
* race
|
|
5602
|
+
* Telemetry must never block the CLI: callers should pass a short timeout
|
|
5603
|
+
* (e.g. 1000ms) and always race against it. Errors and timeouts are swallowed.
|
|
5486
5604
|
*/
|
|
5487
5605
|
export declare function flushTelemetry(timeoutMs?: number): Promise<void>;
|
|
5488
5606
|
export declare function localSink(event: TrackingEvent): Promise<void>;
|