mpd-llm-cli 0.1.45 → 0.1.46
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/bundle/api.js +2 -2
- package/bundle/gemini.js +30 -10
- package/package.json +2 -2
package/bundle/api.js
CHANGED
|
@@ -27724,7 +27724,7 @@ async function createContentGeneratorConfig(model, authType) {
|
|
|
27724
27724
|
return contentGeneratorConfig;
|
|
27725
27725
|
}
|
|
27726
27726
|
async function createContentGenerator(config2, sessionId2) {
|
|
27727
|
-
const version2 = "0.1.
|
|
27727
|
+
const version2 = "0.1.46";
|
|
27728
27728
|
const httpOptions = {
|
|
27729
27729
|
headers: {
|
|
27730
27730
|
"User-Agent": `GeminiCLI/${version2} (${process.platform}; ${process.arch})`
|
|
@@ -166412,7 +166412,7 @@ async function getPackageJson() {
|
|
|
166412
166412
|
// packages/cli/src/utils/version.ts
|
|
166413
166413
|
async function getCliVersion() {
|
|
166414
166414
|
const pkgJson = await getPackageJson();
|
|
166415
|
-
return "0.1.
|
|
166415
|
+
return "0.1.46";
|
|
166416
166416
|
}
|
|
166417
166417
|
|
|
166418
166418
|
// packages/cli/src/config/sandboxConfig.ts
|
package/bundle/gemini.js
CHANGED
|
@@ -62351,7 +62351,7 @@ async function createContentGeneratorConfig(model, authType) {
|
|
|
62351
62351
|
return contentGeneratorConfig;
|
|
62352
62352
|
}
|
|
62353
62353
|
async function createContentGenerator(config2, sessionId2) {
|
|
62354
|
-
const version3 = "0.1.
|
|
62354
|
+
const version3 = "0.1.46";
|
|
62355
62355
|
const httpOptions = {
|
|
62356
62356
|
headers: {
|
|
62357
62357
|
"User-Agent": `GeminiCLI/${version3} (${process.platform}; ${process.arch})`
|
|
@@ -199411,7 +199411,7 @@ var init_langfuseClient = __esm({
|
|
|
199411
199411
|
userId,
|
|
199412
199412
|
metadata: {
|
|
199413
199413
|
...safeMetadata,
|
|
199414
|
-
cli_version: this.safeString("0.1.
|
|
199414
|
+
cli_version: this.safeString("0.1.46", "unknown"),
|
|
199415
199415
|
model: this.safeString(process.env.CUSTOM_LLM_MODEL_NAME, "gemini"),
|
|
199416
199416
|
auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
|
|
199417
199417
|
environment: this.safeString(this.configManager.getConfig()?.environment, "unknown")
|
|
@@ -200578,7 +200578,7 @@ var init_langfuseIntegration = __esm({
|
|
|
200578
200578
|
const metadata = {
|
|
200579
200579
|
model: this.config.getModel(),
|
|
200580
200580
|
auth_type: this.config.getContentGeneratorConfig()?.authType,
|
|
200581
|
-
cli_version: "0.1.
|
|
200581
|
+
cli_version: "0.1.46",
|
|
200582
200582
|
start_time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
200583
200583
|
session_id: this.sessionId
|
|
200584
200584
|
};
|
|
@@ -200637,7 +200637,7 @@ var init_langfuseIntegration = __esm({
|
|
|
200637
200637
|
totalCachedTokens: sessionStats.totalCachedTokens,
|
|
200638
200638
|
totalPromptTokens: sessionStats.totalPromptTokens,
|
|
200639
200639
|
metadata: {
|
|
200640
|
-
cli_version: "0.1.
|
|
200640
|
+
cli_version: "0.1.46",
|
|
200641
200641
|
auth_type: this.config.getContentGeneratorConfig()?.authType,
|
|
200642
200642
|
session_end_time: (/* @__PURE__ */ new Date()).toISOString()
|
|
200643
200643
|
}
|
|
@@ -200709,7 +200709,7 @@ var init_langfuseIntegration = __esm({
|
|
|
200709
200709
|
error,
|
|
200710
200710
|
metadata: {
|
|
200711
200711
|
session_id: this.sessionId,
|
|
200712
|
-
cli_version: "0.1.
|
|
200712
|
+
cli_version: "0.1.46",
|
|
200713
200713
|
auth_type: this.config.getContentGeneratorConfig()?.authType
|
|
200714
200714
|
}
|
|
200715
200715
|
});
|
|
@@ -206130,7 +206130,7 @@ __export(version_exports, {
|
|
|
206130
206130
|
});
|
|
206131
206131
|
async function getCliVersion() {
|
|
206132
206132
|
const pkgJson = await getPackageJson();
|
|
206133
|
-
return "0.1.
|
|
206133
|
+
return "0.1.46";
|
|
206134
206134
|
}
|
|
206135
206135
|
var init_version5 = __esm({
|
|
206136
206136
|
"packages/cli/src/utils/version.ts"() {
|
|
@@ -276829,7 +276829,7 @@ var require_package7 = __commonJS({
|
|
|
276829
276829
|
"packages/router/package.json"(exports2, module2) {
|
|
276830
276830
|
module2.exports = {
|
|
276831
276831
|
name: "@mpdai/router",
|
|
276832
|
-
version: "0.1.
|
|
276832
|
+
version: "0.1.11",
|
|
276833
276833
|
description: "MPD AI Router - Route Claude Code to other LLM providers",
|
|
276834
276834
|
type: "module",
|
|
276835
276835
|
main: "dist/index.js",
|
|
@@ -310814,7 +310814,7 @@ import { promises as fs36 } from "fs";
|
|
|
310814
310814
|
import path40 from "path";
|
|
310815
310815
|
|
|
310816
310816
|
// packages/cli/src/generated/git-commit.ts
|
|
310817
|
-
var GIT_COMMIT_INFO = "
|
|
310817
|
+
var GIT_COMMIT_INFO = "d960e15 (local modifications)";
|
|
310818
310818
|
|
|
310819
310819
|
// packages/cli/src/ui/hooks/slashCommandProcessor.ts
|
|
310820
310820
|
init_version5();
|
|
@@ -311166,7 +311166,27 @@ var claudeCodeModelCommand = {
|
|
|
311166
311166
|
content: "\u274C Failed to load user credentials."
|
|
311167
311167
|
};
|
|
311168
311168
|
}
|
|
311169
|
-
|
|
311169
|
+
let authResponse;
|
|
311170
|
+
if (credentials.sso) {
|
|
311171
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
311172
|
+
const tokenPayload = {
|
|
311173
|
+
r10_transaction_type: "LOGIN",
|
|
311174
|
+
aud: ["jid_sample_client"],
|
|
311175
|
+
sub: credentials.username.split("@")[0],
|
|
311176
|
+
// 使用用户名部分作为 sub
|
|
311177
|
+
r10_factor: "password",
|
|
311178
|
+
r10_mobile_email: credentials.username,
|
|
311179
|
+
auth_time: now,
|
|
311180
|
+
iss: "https://stg.login.account.rakuten.com",
|
|
311181
|
+
exp: now + 365 * 24 * 60 * 60,
|
|
311182
|
+
// 1年后过期
|
|
311183
|
+
iat: now,
|
|
311184
|
+
email: credentials.username
|
|
311185
|
+
};
|
|
311186
|
+
authResponse = await authService.authenticateWithToken(tokenPayload);
|
|
311187
|
+
} else {
|
|
311188
|
+
authResponse = await authService.authenticate(credentials);
|
|
311189
|
+
}
|
|
311170
311190
|
if (!authResponse.success || !authResponse.models) {
|
|
311171
311191
|
return {
|
|
311172
311192
|
type: "message",
|
|
@@ -332174,7 +332194,7 @@ var DataCollector = class {
|
|
|
332174
332194
|
// 提取元数据
|
|
332175
332195
|
extractMetadata(data) {
|
|
332176
332196
|
return {
|
|
332177
|
-
cli_version: "0.1.
|
|
332197
|
+
cli_version: "0.1.46",
|
|
332178
332198
|
model: process.env.CUSTOM_LLM_MODEL_NAME || "gemini",
|
|
332179
332199
|
auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
|
|
332180
332200
|
project_path: data.projectPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mpd-llm-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "git+https://git.rakuten-it.com/scm/mpd-ai/mpd-llm-cli.git"
|
|
14
14
|
},
|
|
15
15
|
"config": {
|
|
16
|
-
"sandboxImageUri": "xx:0.1.
|
|
16
|
+
"sandboxImageUri": "xx:0.1.46"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "node scripts/start.js",
|