mpd-llm-cli 0.1.49 → 0.1.50

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 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.49";
27727
+ const version2 = "0.1.50";
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.49";
166415
+ return "0.1.50";
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.49";
62354
+ const version3 = "0.1.50";
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.49", "unknown"),
199414
+ cli_version: this.safeString("0.1.50", "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.49",
200581
+ cli_version: "0.1.50",
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.49",
200640
+ cli_version: "0.1.50",
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.49",
200712
+ cli_version: "0.1.50",
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.49";
206133
+ return "0.1.50";
206134
206134
  }
206135
206135
  var init_version5 = __esm({
206136
206136
  "packages/cli/src/utils/version.ts"() {
@@ -206177,7 +206177,7 @@ var init_mpdaiConfig = __esm({
206177
206177
  }
206178
206178
  this.config = {
206179
206179
  api: {
206180
- baseUrl: "http://ai-agent-platform.gslb.dcnw.rakuten",
206180
+ baseUrl: "https://ai-agent-platform.epsd.intra.rakuten-it.com",
206181
206181
  authEndpoint: "/api/auth/user-data",
206182
206182
  mcpEndpoint: "/mcp"
206183
206183
  },
@@ -206196,7 +206196,7 @@ var init_mpdaiConfig = __esm({
206196
206196
  }
206197
206197
  getApiUrl() {
206198
206198
  const config2 = this.loadConfig();
206199
- return config2?.api.baseUrl || "http://ai-agent-platform.gslb.dcnw.rakuten";
206199
+ return config2?.api.baseUrl || "https://ai-agent-platform.epsd.intra.rakuten-it.com";
206200
206200
  }
206201
206201
  getAuthUrl() {
206202
206202
  const config2 = this.loadConfig();
@@ -277056,7 +277056,7 @@ var require_package7 = __commonJS({
277056
277056
  "packages/router/package.json"(exports2, module2) {
277057
277057
  module2.exports = {
277058
277058
  name: "@mpdai/router",
277059
- version: "0.1.14",
277059
+ version: "0.1.15",
277060
277060
  description: "MPD AI Router - Route Claude Code to other LLM providers",
277061
277061
  type: "module",
277062
277062
  main: "dist/index.js",
@@ -311052,7 +311052,7 @@ import { promises as fs36 } from "fs";
311052
311052
  import path40 from "path";
311053
311053
 
311054
311054
  // packages/cli/src/generated/git-commit.ts
311055
- var GIT_COMMIT_INFO = "e72b870 (local modifications)";
311055
+ var GIT_COMMIT_INFO = "1ba3cea (local modifications)";
311056
311056
 
311057
311057
  // packages/cli/src/ui/hooks/slashCommandProcessor.ts
311058
311058
  init_version5();
@@ -332463,7 +332463,7 @@ var DataCollector = class {
332463
332463
  // 提取元数据
332464
332464
  extractMetadata(data) {
332465
332465
  return {
332466
- cli_version: "0.1.49",
332466
+ cli_version: "0.1.50",
332467
332467
  model: process.env.CUSTOM_LLM_MODEL_NAME || "gemini",
332468
332468
  auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
332469
332469
  project_path: data.projectPath,
@@ -340075,9 +340075,24 @@ async function waitForService3(timeout2 = 1e4, initialDelay = 1e3) {
340075
340075
  }
340076
340076
  return false;
340077
340077
  }
340078
+ async function checkClaudeInstalled() {
340079
+ return new Promise((resolve18) => {
340080
+ const checkCommand = process.platform === "win32" ? "where" : "which";
340081
+ const checkProcess = spawn11(checkCommand, ["claude"], {
340082
+ stdio: "pipe",
340083
+ shell: true
340084
+ });
340085
+ checkProcess.on("error", () => {
340086
+ resolve18(false);
340087
+ });
340088
+ checkProcess.on("close", (code) => {
340089
+ resolve18(code === 0);
340090
+ });
340091
+ });
340092
+ }
340078
340093
  async function installClaudeCode() {
340079
340094
  return new Promise((resolve18) => {
340080
- console.log("Installing mpdai-claude-code@2.0.35...");
340095
+ console.log("\u{1F4E6} Installing mpdai-claude-code@2.0.35...");
340081
340096
  const installProcess = spawn11("npm", ["install", "-g", "mpdai-claude-code@2.0.35"], {
340082
340097
  stdio: "inherit",
340083
340098
  shell: true
@@ -340107,41 +340122,18 @@ async function handleClaudeCodeCommand(args) {
340107
340122
  process.exit(1);
340108
340123
  }
340109
340124
  }
340110
- try {
340111
- const executeWithErrorHandling = () => {
340112
- return new Promise((resolve18, reject) => {
340113
- const checkProcess = spawn11("claude", ["--version"], {
340114
- stdio: "pipe",
340115
- shell: true
340116
- });
340117
- checkProcess.on("error", async (error) => {
340118
- console.log("\u274C Claude Code is not installed or not found in PATH");
340119
- console.log("\u{1F4E6} Automatically installing mpdai-claude-code@2.0.35...\n");
340120
- const installed = await installClaudeCode();
340121
- if (installed) {
340122
- console.log("\u2705 Installation complete, executing command...\n");
340123
- executeCodeCommand(args);
340124
- resolve18();
340125
- } else {
340126
- reject(new Error("Failed to install Claude Code. Please install manually: npm install -g mpdai-claude-code@2.0.35"));
340127
- }
340128
- });
340129
- checkProcess.on("close", (code) => {
340130
- if (code === 0) {
340131
- executeCodeCommand(args);
340132
- resolve18();
340133
- } else {
340134
- executeCodeCommand(args);
340135
- resolve18();
340136
- }
340137
- });
340138
- });
340139
- };
340140
- await executeWithErrorHandling();
340141
- } catch (error) {
340142
- console.error("Failed to execute Claude Code command:", error instanceof Error ? error.message : String(error));
340143
- process.exit(1);
340125
+ const isInstalled = await checkClaudeInstalled();
340126
+ if (!isInstalled) {
340127
+ console.log("\u274C Claude Code is not installed or not found in PATH");
340128
+ console.log("\u{1F4E6} Automatically installing mpdai-claude-code@2.0.35...\n");
340129
+ const installed = await installClaudeCode();
340130
+ if (!installed) {
340131
+ console.error("\u274C Failed to install Claude Code. Please install manually: npm install -g mpdai-claude-code@2.0.35");
340132
+ process.exit(1);
340133
+ }
340134
+ console.log("\u2705 Installation complete, executing command...\n");
340144
340135
  }
340136
+ executeCodeCommand(args);
340145
340137
  return true;
340146
340138
  }
340147
340139
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mpd-llm-cli",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
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.49"
16
+ "sandboxImageUri": "xx:0.1.50"
17
17
  },
18
18
  "scripts": {
19
19
  "start": "node scripts/start.js",