mpd-llm-cli 0.1.47 → 0.1.48

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.48";
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.48";
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.48";
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.48", "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.48",
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.48",
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.48",
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.48";
206134
206134
  }
206135
206135
  var init_version5 = __esm({
206136
206136
  "packages/cli/src/utils/version.ts"() {
@@ -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.13",
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 = "38f51ae (local modifications)";
311047
311056
 
311048
311057
  // packages/cli/src/ui/hooks/slashCommandProcessor.ts
311049
311058
  init_version5();
@@ -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.48",
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,
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.48",
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.48"
17
17
  },
18
18
  "scripts": {
19
19
  "start": "node scripts/start.js",