mpd-llm-cli 0.1.47 → 0.1.49

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.47";
27727
+ const version2 = "0.1.49";
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.47";
166415
+ return "0.1.49";
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.47";
62354
+ const version3 = "0.1.49";
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.47", "unknown"),
199414
+ cli_version: this.safeString("0.1.49", "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.47",
200581
+ cli_version: "0.1.49",
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.47",
200640
+ cli_version: "0.1.49",
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.47",
200712
+ cli_version: "0.1.49",
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.47";
206133
+ return "0.1.49";
206134
206134
  }
206135
206135
  var init_version5 = __esm({
206136
206136
  "packages/cli/src/utils/version.ts"() {
@@ -206200,12 +206200,12 @@ var init_mpdaiConfig = __esm({
206200
206200
  }
206201
206201
  getAuthUrl() {
206202
206202
  const config2 = this.loadConfig();
206203
- if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/api/auth/user-data";
206203
+ if (!config2) return "https://ai-agent-platform.epsd.intra.rakuten-it.com/api/auth/user-data";
206204
206204
  return `${config2.api.baseUrl}${config2.api.authEndpoint}`;
206205
206205
  }
206206
206206
  getMcpUrl() {
206207
206207
  const config2 = this.loadConfig();
206208
- if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/mcp";
206208
+ if (!config2) return "https://ai-agent-platform.epsd.intra.rakuten-it.com/mcp";
206209
206209
  return `${config2.api.baseUrl}${config2.api.mcpEndpoint}`;
206210
206210
  }
206211
206211
  getTimeout() {
@@ -206218,7 +206218,7 @@ var init_mpdaiConfig = __esm({
206218
206218
  }
206219
206219
  getTokenUrl() {
206220
206220
  const config2 = this.loadConfig();
206221
- if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/api/auth/token";
206221
+ if (!config2) return "https://ai-agent-platform.epsd.intra.rakuten-it.com/api/auth/token";
206222
206222
  return `${config2.api.baseUrl}/api/auth/token`;
206223
206223
  }
206224
206224
  };
@@ -207443,7 +207443,7 @@ var init_SSOAuthService = __esm({
207443
207443
  callbackUrl;
207444
207444
  constructor() {
207445
207445
  this.mpdaiConfig = MpdaiConfigManager.getInstance();
207446
- this.ssoUrl = "https://jid2v2-drill.id.r-local.net/authentication/jwt-token";
207446
+ this.ssoUrl = "https://ai-agent-platform.epsd.intra.rakuten-it.com/authentication/jwt-token";
207447
207447
  this.callbackUrl = `http://localhost:${this.callbackPort}/callback`;
207448
207448
  }
207449
207449
  /**
@@ -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.12",
277059
+ version: "0.1.14",
277060
277060
  description: "MPD AI Router - Route Claude Code to other LLM providers",
277061
277061
  type: "module",
277062
277062
  main: "dist/index.js",
@@ -278890,6 +278890,15 @@ async function run(options = {}) {
278890
278890
  server.logger.error("Unhandled rejection at:", promise, "reason:", reason);
278891
278891
  });
278892
278892
  server.addHook("preHandler", async (req, reply) => {
278893
+ if (req.headers) {
278894
+ const headerKeys = Object.keys(req.headers);
278895
+ for (const key of headerKeys) {
278896
+ if (key.toLowerCase() === "x-anthropic-billing-header") {
278897
+ delete req.headers[key];
278898
+ req.log?.debug?.(`Removed header: ${key}`);
278899
+ }
278900
+ }
278901
+ }
278893
278902
  return new Promise((resolve18, reject) => {
278894
278903
  const done = (err) => {
278895
278904
  if (err)
@@ -311043,7 +311052,7 @@ import { promises as fs36 } from "fs";
311043
311052
  import path40 from "path";
311044
311053
 
311045
311054
  // packages/cli/src/generated/git-commit.ts
311046
- var GIT_COMMIT_INFO = "af48d1a (local modifications)";
311055
+ var GIT_COMMIT_INFO = "e72b870 (local modifications)";
311047
311056
 
311048
311057
  // packages/cli/src/ui/hooks/slashCommandProcessor.ts
311049
311058
  init_version5();
@@ -311635,7 +311644,7 @@ var useSlashCommandProcessor = (config2, settings, history, addItem, clearItems,
311635
311644
  name: "docs",
311636
311645
  description: "open full MPD AI CLI documentation in your browser",
311637
311646
  action: async (_mainCommand, _subCommand, _args) => {
311638
- const docsUrl = "http://ai-agent-platform.gslb.dcnw.rakuten/management/docs/";
311647
+ const docsUrl = "https://ai-agent-platform.epsd.intra.rakuten-it.com/management/docs/";
311639
311648
  if (process27.env.SANDBOX && process27.env.SANDBOX !== "sandbox-exec") {
311640
311649
  addMessage({
311641
311650
  type: "info" /* INFO */,
@@ -311733,7 +311742,7 @@ ${docsUrl}`,
311733
311742
  const mcpServers = config2?.getMcpServers() || {};
311734
311743
  const serverNames = Object.keys(mcpServers);
311735
311744
  if (serverNames.length === 0) {
311736
- const docsUrl = "http://ai-agent-platform.gslb.dcnw.rakuten/management/docs/tools/mcp-server.html";
311745
+ const docsUrl = "https://ai-agent-platform.epsd.intra.rakuten-it.com/management/docs/tools/mcp-server.html";
311737
311746
  if (process27.env.SANDBOX && process27.env.SANDBOX !== "sandbox-exec") {
311738
311747
  addMessage({
311739
311748
  type: "info" /* INFO */,
@@ -332454,7 +332463,7 @@ var DataCollector = class {
332454
332463
  // 提取元数据
332455
332464
  extractMetadata(data) {
332456
332465
  return {
332457
- cli_version: "0.1.47",
332466
+ cli_version: "0.1.49",
332458
332467
  model: process.env.CUSTOM_LLM_MODEL_NAME || "gemini",
332459
332468
  auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
332460
332469
  project_path: data.projectPath,
@@ -338464,8 +338473,8 @@ var App2 = ({ config: config2, settings, startupWarnings = [] }) => {
338464
338473
  {
338465
338474
  type: "info" /* INFO */,
338466
338475
  text: `\u26A1 Slow response times detected. Automatically switching from ${currentModel2} to ${fallbackModel} for faster responses for the remainder of this session.
338467
- \u26A1 To avoid this you can either upgrade to Standard tier. See: http://ai-agent-platform.gslb.dcnw.rakuten/mpdaicli.html
338468
- \u26A1 Or you can utilize a MPD API Key. See: http://ai-agent-platform.gslb.dcnw.rakuten/management
338476
+ \u26A1 To avoid this you can either upgrade to Standard tier. See: https://ai-agent-platform.epsd.intra.rakuten-it.com/mpdaicli.html
338477
+ \u26A1 Or you can utilize a MPD API Key. See: https://ai-agent-platform.epsd.intra.rakuten-it.com/management
338469
338478
  \u26A1 You can switch authentication methods by typing /auth`
338470
338479
  },
338471
338480
  Date.now()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mpd-llm-cli",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
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.47"
16
+ "sandboxImageUri": "xx:0.1.49"
17
17
  },
18
18
  "scripts": {
19
19
  "start": "node scripts/start.js",