mpd-llm-cli 0.1.41 → 0.1.43
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 +43 -32
- package/package.json +5 -3
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.43";
|
|
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.43";
|
|
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.43";
|
|
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.43", "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.43",
|
|
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.43",
|
|
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.43",
|
|
200713
200713
|
auth_type: this.config.getContentGeneratorConfig()?.authType
|
|
200714
200714
|
}
|
|
200715
200715
|
});
|
|
@@ -205916,7 +205916,7 @@ var init_mpdaiConfig = __esm({
|
|
|
205916
205916
|
}
|
|
205917
205917
|
this.config = {
|
|
205918
205918
|
api: {
|
|
205919
|
-
baseUrl: "http://
|
|
205919
|
+
baseUrl: "http://ai-agent-platform.gslb.dcnw.rakuten",
|
|
205920
205920
|
authEndpoint: "/api/auth/user-data",
|
|
205921
205921
|
mcpEndpoint: "/mcp"
|
|
205922
205922
|
},
|
|
@@ -205935,16 +205935,16 @@ var init_mpdaiConfig = __esm({
|
|
|
205935
205935
|
}
|
|
205936
205936
|
getApiUrl() {
|
|
205937
205937
|
const config2 = this.loadConfig();
|
|
205938
|
-
return config2?.api.baseUrl || "http://
|
|
205938
|
+
return config2?.api.baseUrl || "http://ai-agent-platform.gslb.dcnw.rakuten";
|
|
205939
205939
|
}
|
|
205940
205940
|
getAuthUrl() {
|
|
205941
205941
|
const config2 = this.loadConfig();
|
|
205942
|
-
if (!config2) return "http://
|
|
205942
|
+
if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/api/auth/user-data";
|
|
205943
205943
|
return `${config2.api.baseUrl}${config2.api.authEndpoint}`;
|
|
205944
205944
|
}
|
|
205945
205945
|
getMcpUrl() {
|
|
205946
205946
|
const config2 = this.loadConfig();
|
|
205947
|
-
if (!config2) return "http://
|
|
205947
|
+
if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/mcp";
|
|
205948
205948
|
return `${config2.api.baseUrl}${config2.api.mcpEndpoint}`;
|
|
205949
205949
|
}
|
|
205950
205950
|
getTimeout() {
|
|
@@ -205957,7 +205957,7 @@ var init_mpdaiConfig = __esm({
|
|
|
205957
205957
|
}
|
|
205958
205958
|
getTokenUrl() {
|
|
205959
205959
|
const config2 = this.loadConfig();
|
|
205960
|
-
if (!config2) return "http://
|
|
205960
|
+
if (!config2) return "http://ai-agent-platform.gslb.dcnw.rakuten/api/auth/token";
|
|
205961
205961
|
return `${config2.api.baseUrl}/api/auth/token`;
|
|
205962
205962
|
}
|
|
205963
205963
|
};
|
|
@@ -276275,7 +276275,7 @@ var require_package7 = __commonJS({
|
|
|
276275
276275
|
"packages/router/package.json"(exports2, module2) {
|
|
276276
276276
|
module2.exports = {
|
|
276277
276277
|
name: "@mpdai/router",
|
|
276278
|
-
version: "0.1.
|
|
276278
|
+
version: "0.1.8",
|
|
276279
276279
|
description: "MPD AI Router - Route Claude Code to other LLM providers",
|
|
276280
276280
|
type: "module",
|
|
276281
276281
|
main: "dist/index.js",
|
|
@@ -310260,7 +310260,7 @@ import { promises as fs36 } from "fs";
|
|
|
310260
310260
|
import path40 from "path";
|
|
310261
310261
|
|
|
310262
310262
|
// packages/cli/src/generated/git-commit.ts
|
|
310263
|
-
var GIT_COMMIT_INFO = "
|
|
310263
|
+
var GIT_COMMIT_INFO = "177fa1b (local modifications)";
|
|
310264
310264
|
|
|
310265
310265
|
// node_modules/read-package-up/index.js
|
|
310266
310266
|
import path35 from "node:path";
|
|
@@ -310473,7 +310473,7 @@ async function getPackageJson() {
|
|
|
310473
310473
|
// packages/cli/src/utils/version.ts
|
|
310474
310474
|
async function getCliVersion() {
|
|
310475
310475
|
const pkgJson = await getPackageJson();
|
|
310476
|
-
return "0.1.
|
|
310476
|
+
return "0.1.43";
|
|
310477
310477
|
}
|
|
310478
310478
|
|
|
310479
310479
|
// packages/cli/src/ui/commands/memoryCommand.ts
|
|
@@ -310930,7 +310930,7 @@ var useSlashCommandProcessor = (config2, settings, history, addItem, clearItems,
|
|
|
310930
310930
|
name: "docs",
|
|
310931
310931
|
description: "open full MPD AI CLI documentation in your browser",
|
|
310932
310932
|
action: async (_mainCommand, _subCommand, _args) => {
|
|
310933
|
-
const docsUrl = "http://
|
|
310933
|
+
const docsUrl = "http://ai-agent-platform.gslb.dcnw.rakuten/management/docs/";
|
|
310934
310934
|
if (process27.env.SANDBOX && process27.env.SANDBOX !== "sandbox-exec") {
|
|
310935
310935
|
addMessage({
|
|
310936
310936
|
type: "info" /* INFO */,
|
|
@@ -311028,7 +311028,7 @@ ${docsUrl}`,
|
|
|
311028
311028
|
const mcpServers = config2?.getMcpServers() || {};
|
|
311029
311029
|
const serverNames = Object.keys(mcpServers);
|
|
311030
311030
|
if (serverNames.length === 0) {
|
|
311031
|
-
const docsUrl = "http://
|
|
311031
|
+
const docsUrl = "http://ai-agent-platform.gslb.dcnw.rakuten/management/docs/tools/mcp-server.html";
|
|
311032
311032
|
if (process27.env.SANDBOX && process27.env.SANDBOX !== "sandbox-exec") {
|
|
311033
311033
|
addMessage({
|
|
311034
311034
|
type: "info" /* INFO */,
|
|
@@ -312036,22 +312036,22 @@ var Colors = {
|
|
|
312036
312036
|
|
|
312037
312037
|
// packages/cli/src/ui/components/AsciiArt.ts
|
|
312038
312038
|
var shortAsciiLogo = `
|
|
312039
|
-
\u2588\u2588\u2588\
|
|
312040
|
-
\u2588\u2588\
|
|
312041
|
-
\u2588\u2588\
|
|
312042
|
-
\u2588\u2588\
|
|
312043
|
-
\u2588\u2588\u2551
|
|
312044
|
-
\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D
|
|
312039
|
+
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557
|
|
312040
|
+
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312041
|
+
\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312042
|
+
\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312043
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2557 \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551
|
|
312044
|
+
\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D
|
|
312045
312045
|
`;
|
|
312046
312046
|
var longAsciiLogo = `
|
|
312047
|
-
\u2588\u2588\u2588\
|
|
312048
|
-
\u2588\u2588\
|
|
312049
|
-
\u2588\u2588\
|
|
312050
|
-
\u2588\u2588\
|
|
312051
|
-
\u2588\u2588\u2551
|
|
312052
|
-
\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D
|
|
312053
|
-
|
|
312054
|
-
|
|
312047
|
+
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557
|
|
312048
|
+
\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2554\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312049
|
+
\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312050
|
+
\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551
|
|
312051
|
+
\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2557 \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551
|
|
312052
|
+
\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D
|
|
312053
|
+
|
|
312054
|
+
Frank Cli - Command Line Interface
|
|
312055
312055
|
Powered by Rakuten MPD & OpenRouter
|
|
312056
312056
|
`;
|
|
312057
312057
|
|
|
@@ -331742,7 +331742,7 @@ var DataCollector = class {
|
|
|
331742
331742
|
// 提取元数据
|
|
331743
331743
|
extractMetadata(data) {
|
|
331744
331744
|
return {
|
|
331745
|
-
cli_version: "0.1.
|
|
331745
|
+
cli_version: "0.1.43",
|
|
331746
331746
|
model: process.env.CUSTOM_LLM_MODEL_NAME || "gemini",
|
|
331747
331747
|
auth_type: process.env.USE_CUSTOM_LLM ? "custom_llm" : "google_oauth",
|
|
331748
331748
|
project_path: data.projectPath,
|
|
@@ -337693,8 +337693,8 @@ var App2 = ({ config: config2, settings, startupWarnings = [] }) => {
|
|
|
337693
337693
|
{
|
|
337694
337694
|
type: "info" /* INFO */,
|
|
337695
337695
|
text: `\u26A1 Slow response times detected. Automatically switching from ${currentModel2} to ${fallbackModel} for faster responses for the remainder of this session.
|
|
337696
|
-
\u26A1 To avoid this you can either upgrade to Standard tier. See: http://
|
|
337697
|
-
\u26A1 Or you can utilize a MPD API Key. See: http://
|
|
337696
|
+
\u26A1 To avoid this you can either upgrade to Standard tier. See: http://ai-agent-platform.gslb.dcnw.rakuten/mpdaicli.html
|
|
337697
|
+
\u26A1 Or you can utilize a MPD API Key. See: http://ai-agent-platform.gslb.dcnw.rakuten/management
|
|
337698
337698
|
\u26A1 You can switch authentication methods by typing /auth`
|
|
337699
337699
|
},
|
|
337700
337700
|
Date.now()
|
|
@@ -339331,6 +339331,12 @@ async function handleClaudeCodeCommand(args) {
|
|
|
339331
339331
|
return true;
|
|
339332
339332
|
}
|
|
339333
339333
|
async function main() {
|
|
339334
|
+
const commandName = basename5(process.argv[1]);
|
|
339335
|
+
if (commandName === "frankcode") {
|
|
339336
|
+
const args2 = process.argv.slice(2);
|
|
339337
|
+
await handleClaudeCodeCommand(args2);
|
|
339338
|
+
return;
|
|
339339
|
+
}
|
|
339334
339340
|
const args = process.argv.slice(2);
|
|
339335
339341
|
if (args.length > 0 && args[0] === "router") {
|
|
339336
339342
|
const handled = await handleRouterCommand("router", args.slice(1));
|
|
@@ -339609,6 +339615,11 @@ main().catch((error) => {
|
|
|
339609
339615
|
* Copyright 2025 Google LLC
|
|
339610
339616
|
* SPDX-License-Identifier: Apache-2.0
|
|
339611
339617
|
*/
|
|
339618
|
+
/**
|
|
339619
|
+
* @license
|
|
339620
|
+
* Copyright 2026 Google LLC
|
|
339621
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
339622
|
+
*/
|
|
339612
339623
|
/*! Bundled license information:
|
|
339613
339624
|
|
|
339614
339625
|
react/cjs/react.production.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mpd-llm-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
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.43"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "node scripts/start.js",
|
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
"clean": "node scripts/clean.js"
|
|
51
51
|
},
|
|
52
52
|
"bin": {
|
|
53
|
-
"mpdai": "bundle/gemini.js"
|
|
53
|
+
"mpdai": "bundle/gemini.js",
|
|
54
|
+
"frankcli": "bundle/gemini.js",
|
|
55
|
+
"frankcode": "bundle/gemini.js"
|
|
54
56
|
},
|
|
55
57
|
"files": [
|
|
56
58
|
"bundle/",
|