@cloudbase/cli 2.8.0-beta.3 → 2.8.0-beta.5
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/README.md +13 -1
- package/bin/cloudbase-mcp.js +24 -0
- package/cloudbaserc.json +3 -0
- package/lib/commands/ai/index.js +1 -1
- package/lib/utils/ai/config.js +29 -3
- package/lib/utils/ai/const.js +46 -3
- package/lib/utils/ai/router.js +304 -27
- package/lib/utils/ai/setup.js +199 -68
- package/package.json +4 -2
- package/specs/mcp-global-bin/design.md +57 -0
- package/specs/mcp-global-bin/requirements.md +43 -0
- package/specs/mcp-global-bin/tasks.md +54 -0
- package/types/utils/ai/config.d.ts +12 -1
- package/types/utils/ai/const.d.ts +85 -0
- package/types/utils/ai/router.d.ts +7 -0
- package/types/utils/ai/setup.d.ts +2 -0
- package/.claude/settings.local.json +0 -6
|
@@ -114,6 +114,41 @@ export declare const CODEX: {
|
|
|
114
114
|
provider?: string;
|
|
115
115
|
}>;
|
|
116
116
|
};
|
|
117
|
+
export declare const AIDER: {
|
|
118
|
+
name: string;
|
|
119
|
+
value: string;
|
|
120
|
+
configSchema: z.ZodEffects<z.ZodObject<{
|
|
121
|
+
type: z.ZodOptional<z.ZodEnum<["custom", "cloudbase"]>>;
|
|
122
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
123
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
124
|
+
model: z.ZodOptional<z.ZodString>;
|
|
125
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
type?: "custom" | "cloudbase";
|
|
128
|
+
apiKey?: string;
|
|
129
|
+
model?: string;
|
|
130
|
+
baseUrl?: string;
|
|
131
|
+
provider?: string;
|
|
132
|
+
}, {
|
|
133
|
+
type?: "custom" | "cloudbase";
|
|
134
|
+
apiKey?: string;
|
|
135
|
+
model?: string;
|
|
136
|
+
baseUrl?: string;
|
|
137
|
+
provider?: string;
|
|
138
|
+
}>, {
|
|
139
|
+
type?: "custom" | "cloudbase";
|
|
140
|
+
apiKey?: string;
|
|
141
|
+
model?: string;
|
|
142
|
+
baseUrl?: string;
|
|
143
|
+
provider?: string;
|
|
144
|
+
}, {
|
|
145
|
+
type?: "custom" | "cloudbase";
|
|
146
|
+
apiKey?: string;
|
|
147
|
+
model?: string;
|
|
148
|
+
baseUrl?: string;
|
|
149
|
+
provider?: string;
|
|
150
|
+
}>;
|
|
151
|
+
};
|
|
117
152
|
export declare const NONE: {
|
|
118
153
|
name: string;
|
|
119
154
|
value: string;
|
|
@@ -228,6 +263,51 @@ export declare const AGENTS: readonly [{
|
|
|
228
263
|
}, {
|
|
229
264
|
name: string;
|
|
230
265
|
value: string;
|
|
266
|
+
configSchema: z.ZodEffects<z.ZodObject<{
|
|
267
|
+
type: z.ZodOptional<z.ZodEnum<["custom", "cloudbase"]>>;
|
|
268
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
269
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
270
|
+
model: z.ZodOptional<z.ZodString>;
|
|
271
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
273
|
+
type?: "custom" | "cloudbase";
|
|
274
|
+
apiKey?: string;
|
|
275
|
+
model?: string;
|
|
276
|
+
baseUrl?: string;
|
|
277
|
+
provider?: string;
|
|
278
|
+
}, {
|
|
279
|
+
type?: "custom" | "cloudbase";
|
|
280
|
+
apiKey?: string;
|
|
281
|
+
model?: string;
|
|
282
|
+
baseUrl?: string;
|
|
283
|
+
provider?: string;
|
|
284
|
+
}>, {
|
|
285
|
+
type?: "custom" | "cloudbase";
|
|
286
|
+
apiKey?: string;
|
|
287
|
+
model?: string;
|
|
288
|
+
baseUrl?: string;
|
|
289
|
+
provider?: string;
|
|
290
|
+
}, {
|
|
291
|
+
type?: "custom" | "cloudbase";
|
|
292
|
+
apiKey?: string;
|
|
293
|
+
model?: string;
|
|
294
|
+
baseUrl?: string;
|
|
295
|
+
provider?: string;
|
|
296
|
+
}>;
|
|
297
|
+
}, {
|
|
298
|
+
name: string;
|
|
299
|
+
value: string;
|
|
300
|
+
}];
|
|
301
|
+
export declare const CLOUDBASE_PROVIDERS: readonly [{
|
|
302
|
+
readonly name: "DeepSeek";
|
|
303
|
+
readonly value: "deepseek";
|
|
304
|
+
readonly models: readonly ["deepseek-v3"];
|
|
305
|
+
readonly transformer: "deepseek";
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "自定义";
|
|
308
|
+
readonly value: "custom";
|
|
309
|
+
readonly models: readonly [];
|
|
310
|
+
readonly transformer: any;
|
|
231
311
|
}];
|
|
232
312
|
export declare function getDefaultConfig(agent: string): unknown;
|
|
233
313
|
export declare function getAgentConfigValidator(agent: string): (x: unknown) => {
|
|
@@ -236,3 +316,8 @@ export declare function getAgentConfigValidator(agent: string): (x: unknown) =>
|
|
|
236
316
|
success: false;
|
|
237
317
|
error: unknown;
|
|
238
318
|
};
|
|
319
|
+
export declare const BASE_URL_MODEL_MAPPING: {
|
|
320
|
+
readonly 'https://api.moonshot.cn/v1': "kimi-k2-0711-preview";
|
|
321
|
+
readonly 'https://open.bigmodel.cn/api/paas/v4': "glm-4.5";
|
|
322
|
+
};
|
|
323
|
+
export declare function getDefaultModelByBaseUrl(baseUrl: string): string;
|
|
@@ -34,5 +34,12 @@ export declare class AICommandRouter {
|
|
|
34
34
|
private executeCodexAgent;
|
|
35
35
|
private executeCodexCloudbaseAgent;
|
|
36
36
|
private ensureCodexCode;
|
|
37
|
+
private executeAiderAgent;
|
|
38
|
+
private executeAiderCloudbaseAgent;
|
|
39
|
+
private ensureAider;
|
|
40
|
+
private modifyMCPConfigs;
|
|
41
|
+
private modifyMCPJsonFile;
|
|
42
|
+
private modifyMCPTomlFile;
|
|
43
|
+
private objectToToml;
|
|
37
44
|
}
|
|
38
45
|
export {};
|