mpd-llm-cli 0.1.16 → 0.1.18
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 +13 -17
- package/package.json +1 -1
package/bundle/api.js
CHANGED
|
@@ -27717,7 +27717,7 @@ async function createContentGeneratorConfig(model, authType) {
|
|
|
27717
27717
|
return contentGeneratorConfig;
|
|
27718
27718
|
}
|
|
27719
27719
|
async function createContentGenerator(config2, sessionId2) {
|
|
27720
|
-
const version2 = "0.1.
|
|
27720
|
+
const version2 = "0.1.18";
|
|
27721
27721
|
const httpOptions = {
|
|
27722
27722
|
headers: {
|
|
27723
27723
|
"User-Agent": `GeminiCLI/${version2} (${process.platform}; ${process.arch})`
|
|
@@ -165367,7 +165367,7 @@ async function getPackageJson() {
|
|
|
165367
165367
|
// packages/cli/src/utils/version.ts
|
|
165368
165368
|
async function getCliVersion() {
|
|
165369
165369
|
const pkgJson = await getPackageJson();
|
|
165370
|
-
return "0.1.
|
|
165370
|
+
return "0.1.18";
|
|
165371
165371
|
}
|
|
165372
165372
|
|
|
165373
165373
|
// packages/cli/src/config/sandboxConfig.ts
|
package/bundle/gemini.js
CHANGED
|
@@ -78252,7 +78252,7 @@ async function createContentGeneratorConfig(model, authType) {
|
|
|
78252
78252
|
return contentGeneratorConfig;
|
|
78253
78253
|
}
|
|
78254
78254
|
async function createContentGenerator(config2, sessionId2) {
|
|
78255
|
-
const version3 = "0.1.
|
|
78255
|
+
const version3 = "0.1.18";
|
|
78256
78256
|
const httpOptions = {
|
|
78257
78257
|
headers: {
|
|
78258
78258
|
"User-Agent": `GeminiCLI/${version3} (${process.platform}; ${process.arch})`
|
|
@@ -243947,7 +243947,7 @@ var LangfuseClient = class {
|
|
|
243947
243947
|
name: "MPD LLM CLI Session",
|
|
243948
243948
|
metadata: {
|
|
243949
243949
|
...safeMetadata,
|
|
243950
|
-
cli_version: this.safeString("0.1.
|
|
243950
|
+
cli_version: this.safeString("0.1.18", "unknown"),
|
|
243951
243951
|
model: this.safeString(process.env.CUSTOM_LLM_MODEL_NAME, "gemini"),
|
|
243952
243952
|
auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
|
|
243953
243953
|
environment: this.safeString(this.configManager.getConfig()?.environment, "unknown")
|
|
@@ -244978,7 +244978,7 @@ var LangfuseIntegration = class {
|
|
|
244978
244978
|
const metadata = {
|
|
244979
244979
|
model: this.config.getModel(),
|
|
244980
244980
|
auth_type: this.config.getContentGeneratorConfig()?.authType,
|
|
244981
|
-
cli_version: "0.1.
|
|
244981
|
+
cli_version: "0.1.18",
|
|
244982
244982
|
start_time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
244983
244983
|
session_id: this.sessionId
|
|
244984
244984
|
};
|
|
@@ -245048,7 +245048,7 @@ var LangfuseIntegration = class {
|
|
|
245048
245048
|
error,
|
|
245049
245049
|
metadata: {
|
|
245050
245050
|
session_id: this.sessionId,
|
|
245051
|
-
cli_version: "0.1.
|
|
245051
|
+
cli_version: "0.1.18",
|
|
245052
245052
|
auth_type: this.config.getContentGeneratorConfig()?.authType
|
|
245053
245053
|
}
|
|
245054
245054
|
});
|
|
@@ -248774,7 +248774,7 @@ import { promises as fs33 } from "fs";
|
|
|
248774
248774
|
import path37 from "path";
|
|
248775
248775
|
|
|
248776
248776
|
// packages/cli/src/generated/git-commit.ts
|
|
248777
|
-
var GIT_COMMIT_INFO = "
|
|
248777
|
+
var GIT_COMMIT_INFO = "2871cfa";
|
|
248778
248778
|
|
|
248779
248779
|
// node_modules/read-package-up/index.js
|
|
248780
248780
|
import path35 from "node:path";
|
|
@@ -248987,7 +248987,7 @@ async function getPackageJson() {
|
|
|
248987
248987
|
// packages/cli/src/utils/version.ts
|
|
248988
248988
|
async function getCliVersion() {
|
|
248989
248989
|
const pkgJson = await getPackageJson();
|
|
248990
|
-
return "0.1.
|
|
248990
|
+
return "0.1.18";
|
|
248991
248991
|
}
|
|
248992
248992
|
|
|
248993
248993
|
// packages/cli/src/ui/commands/memoryCommand.ts
|
|
@@ -270005,7 +270005,7 @@ var DataCollector = class {
|
|
|
270005
270005
|
// 提取元数据
|
|
270006
270006
|
extractMetadata(data) {
|
|
270007
270007
|
return {
|
|
270008
|
-
cli_version: "0.1.
|
|
270008
|
+
cli_version: "0.1.18",
|
|
270009
270009
|
model: process.env.CUSTOM_LLM_MODEL_NAME || "gemini",
|
|
270010
270010
|
auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
|
|
270011
270011
|
project_path: data.projectPath,
|
|
@@ -277547,6 +277547,7 @@ var EnvConfigManager = class {
|
|
|
277547
277547
|
* 写入.env文件
|
|
277548
277548
|
*/
|
|
277549
277549
|
writeEnvFile(envConfig, envPath) {
|
|
277550
|
+
const isDebugMode = process.env.DEBUG === "true" || process.env.DEBUG_MODE === "true" || process.env.dev === "true";
|
|
277550
277551
|
try {
|
|
277551
277552
|
const dir = dirname10(envPath);
|
|
277552
277553
|
if (!existsSync13(dir)) {
|
|
@@ -277554,7 +277555,9 @@ var EnvConfigManager = class {
|
|
|
277554
277555
|
}
|
|
277555
277556
|
const envContent = Object.entries(envConfig).map(([key, value]) => `${key}=${value}`).join("\n") + "\n";
|
|
277556
277557
|
writeFileSync6(envPath, envContent, "utf-8");
|
|
277557
|
-
|
|
277558
|
+
if (isDebugMode) {
|
|
277559
|
+
console.log(`Environment configuration written to: ${envPath}`);
|
|
277560
|
+
}
|
|
277558
277561
|
} catch (error) {
|
|
277559
277562
|
console.error("Failed to write .env file:", error);
|
|
277560
277563
|
throw error;
|
|
@@ -277918,17 +277921,10 @@ async function performUserAuthentication() {
|
|
|
277918
277921
|
const mcpServersConfig = authService.convertMcpServersToSettingsFormat(authResponse.mcpServers);
|
|
277919
277922
|
const workspaceRoot = process.cwd();
|
|
277920
277923
|
const settings = loadSettings(workspaceRoot);
|
|
277921
|
-
|
|
277922
|
-
const mergedMcpServers = {
|
|
277923
|
-
...existingMcpServers,
|
|
277924
|
-
...mcpServersConfig
|
|
277925
|
-
};
|
|
277926
|
-
settings.setValue("User" /* User */, "mcpServers", mergedMcpServers);
|
|
277924
|
+
settings.setValue("User" /* User */, "mcpServers", mcpServersConfig);
|
|
277927
277925
|
if (isDebugMode) {
|
|
277928
277926
|
console.log("MCP servers configuration updated in user settings");
|
|
277929
|
-
console.log("Configured MCP servers:", Object.keys(
|
|
277930
|
-
console.log("Existing servers:", Object.keys(existingMcpServers).join(", "));
|
|
277931
|
-
console.log("New servers from API:", Object.keys(mcpServersConfig).join(", "));
|
|
277927
|
+
console.log("Configured MCP servers:", Object.keys(mcpServersConfig).join(", "));
|
|
277932
277928
|
}
|
|
277933
277929
|
} else {
|
|
277934
277930
|
if (isDebugMode) {
|