@dipoleml/dcode-cli 1.0.0 → 1.1.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/dcode.cjs +808 -581
- package/dist/provider/dcode-builtin.json +1 -50
- package/node_modules/@dcode/model-option-map/package.json +1 -1
- package/node_modules/@dcode/shared/dist/bots.d.ts +4 -4
- package/node_modules/@dcode/shared/dist/conversation-share.d.ts +35 -35
- package/node_modules/@dcode/shared/dist/dcode-protocol/index.d.ts +284 -284
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/command.d.ts +36 -36
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/controller.d.ts +70 -70
- package/node_modules/@dcode/shared/dist/dcode-protocol-v4/transport.d.ts +985 -985
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.d.ts +2 -0
- package/node_modules/@dcode/shared/dist/dcodeEndpoint.js +4 -0
- package/node_modules/@dcode/shared/dist/protocol.d.ts +5 -0
- package/node_modules/@dcode/shared/dist/validation.d.ts +109 -109
- package/node_modules/@dcode/shared/dist/validationAppSettings.d.ts +7 -7
- package/node_modules/@dcode/shared/package.json +1 -1
- package/node_modules/@dcode/tui/dist/index.js +2 -2
- package/package.json +3 -3
|
@@ -74,6 +74,8 @@ export declare function buildDcodeCodingPlanSubscribeUrl(env?: RuntimeDcodeEndpo
|
|
|
74
74
|
export declare function buildDcodeApiCreditsUrl(env?: RuntimeDcodeEndpointEnv): string;
|
|
75
75
|
/** Account-level plan/usage/credits overview machine endpoint(与 OAuth 同域)。 */
|
|
76
76
|
export declare function buildDcodeAccountOverviewUrl(env?: RuntimeDcodeEndpointEnv): string;
|
|
77
|
+
/** 账号绑定自动 API Key(billing source = credits)。幂等 POST,Bearer 会话凭据。 */
|
|
78
|
+
export declare function buildDcodeAutoKeyUrl(env?: RuntimeDcodeEndpointEnv): string;
|
|
77
79
|
export declare function buildRuntimeDcodeOAuthUrl(env: RuntimeDcodeEndpointEnv | undefined, path: string): string;
|
|
78
80
|
export declare function buildRuntimeDcodeBusinessUrl(env: RuntimeDcodeEndpointEnv | undefined, path: string): string;
|
|
79
81
|
export declare function resolveRuntimeProductEndpointConfig(env?: RuntimeProductEndpointEnv): RuntimeProductEndpointConfig;
|
|
@@ -118,6 +118,10 @@ export function buildDcodeApiCreditsUrl(env = readProductEndpointEnv()) {
|
|
|
118
118
|
export function buildDcodeAccountOverviewUrl(env = readProductEndpointEnv()) {
|
|
119
119
|
return buildDcodeOAuthUrl(resolveDcodeOAuthOrigin(env), "/api/account/overview");
|
|
120
120
|
}
|
|
121
|
+
/** 账号绑定自动 API Key(billing source = credits)。幂等 POST,Bearer 会话凭据。 */
|
|
122
|
+
export function buildDcodeAutoKeyUrl(env = readProductEndpointEnv()) {
|
|
123
|
+
return buildDcodeOAuthUrl(resolveDcodeOAuthOrigin(env), "/api/keys/auto");
|
|
124
|
+
}
|
|
121
125
|
export function buildRuntimeDcodeOAuthUrl(env = readProductEndpointEnv(), path) {
|
|
122
126
|
return buildDcodeOAuthUrl(resolveDcodeOAuthOrigin(env), path);
|
|
123
127
|
}
|
|
@@ -268,6 +268,11 @@ export interface AppSettings {
|
|
|
268
268
|
modelIoFullRetentionEnabled?: boolean;
|
|
269
269
|
/** 设置页中每个 Provider Family 当前唯一的结构化连接选择。 */
|
|
270
270
|
providerFamilyConnectionSelections?: ProviderFamilyConnectionSelectionSettings;
|
|
271
|
+
/**
|
|
272
|
+
* DipoleML 计费来源:plan = 请求走会话凭据(套餐配额,默认);credits = 请求走
|
|
273
|
+
* 账号绑定自动 API Key(预付 credits 计量)。缺失按 plan 兼容旧配置。
|
|
274
|
+
*/
|
|
275
|
+
dcodeBillingSource?: "plan" | "credits";
|
|
271
276
|
/** 用户通过 WelcomeScreen 成功连接后确认的 DCODE / BigModel provider family 运行域。 */
|
|
272
277
|
providerFamilyDomain?: ProviderFamilyDomain;
|
|
273
278
|
/** 最近一次设置或清空 providerFamilyDomain 的时间。 */
|