bfi-cli 0.1.91 → 0.1.92
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/dist/cli.mjs +4 -7
- package/dist/mcp-codesearch/main.mjs +1 -1
- package/dist/mcp-db/main.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -7159,7 +7159,6 @@ async function handleInstall(args, api, globalOpts) {
|
|
|
7159
7159
|
console.error(`${RED$1}获取包信息失败:${error.message}${RESET$3}`);
|
|
7160
7160
|
process.exit(1);
|
|
7161
7161
|
}
|
|
7162
|
-
if (pkgInfo.kind === "PLUGIN") throw new Error("这是完整插件,不是技能组合;请使用 --as plugin --agent <目标Agent> 安装,插件可能包含 MCP 和 Hooks。");
|
|
7163
7162
|
const skills = pkgInfo.skills || [];
|
|
7164
7163
|
if (skills.length === 0) {
|
|
7165
7164
|
console.log(`${YELLOW$1}包中没有可独立安装的技能。${RESET$3}`);
|
|
@@ -7482,9 +7481,7 @@ async function handleUpdate(args, api, globalOpts) {
|
|
|
7482
7481
|
console.log(`${DIM$3}正在更新 ${packagesToUpdate.length} 个包...${RESET$3}`);
|
|
7483
7482
|
for (const pkg of packagesToUpdate) try {
|
|
7484
7483
|
const pkgInfo = await api.getPackage(pkg.namespace, pkg.slug);
|
|
7485
|
-
const
|
|
7486
|
-
if (info.kind === "PLUGIN") throw new Error("这是完整插件,请使用 --as plugin --agent <目标Agent> 更新;不会按技能组合安装。");
|
|
7487
|
-
const skills = info.skills || [];
|
|
7484
|
+
const skills = (pkgInfo.data || pkgInfo).skills || [];
|
|
7488
7485
|
console.log(` ${DIM$3}更新 @${pkg.namespace}/${pkg.slug}(${skills.length} 个技能)...${RESET$3}`);
|
|
7489
7486
|
for (const skill of skills) {
|
|
7490
7487
|
const skillRef = skill.namespace ? `@${skill.namespace}/${skill.slug}` : skill.slug;
|
|
@@ -7828,7 +7825,7 @@ async function runInstall(args, globalOpts) {
|
|
|
7828
7825
|
if (failedCount > 0) console.log(`${YELLOW}⚠ ${failedCount} 项恢复失败${RESET$1}`);
|
|
7829
7826
|
console.log();
|
|
7830
7827
|
}
|
|
7831
|
-
const YMC_DEFAULT_BASE = process.env.BFI_YMC_BASE || "
|
|
7828
|
+
const YMC_DEFAULT_BASE = process.env.BFI_YMC_BASE || "https://bfi.yyuap.com/bfi-api/bficli/api/v2";
|
|
7832
7829
|
var YmcApi = class {
|
|
7833
7830
|
baseUrl;
|
|
7834
7831
|
token;
|
|
@@ -8634,7 +8631,7 @@ async function runYmc(args, globalOpts) {
|
|
|
8634
8631
|
if (!route) {
|
|
8635
8632
|
console.error("用法:bfi ymc call <route> -e <env> [--data '{\"k\":\"v\"}'] [--timeout 秒] [-t time | --start-time <s> --end-time <e>]");
|
|
8636
8633
|
console.error("route 例:warningCall/warningSql/exceptionHistory/bpr/list/alert/detail/uba/query/tool/list/environment ...");
|
|
8637
|
-
console.error("完整清单见
|
|
8634
|
+
console.error("完整清单见 https://bfi.yyuap.com/bfi-api/docs");
|
|
8638
8635
|
process.exit(1);
|
|
8639
8636
|
}
|
|
8640
8637
|
let extra;
|
|
@@ -8775,7 +8772,7 @@ const HELP = {
|
|
|
8775
8772
|
输出默认取文件名部分(monitor/xx.html → xx.html)。`,
|
|
8776
8773
|
call: `bfi ymc call <route> -e <env> [--data '<json>'] [-t <time> | --start-time <s> --end-time <e>] [--timeout <秒>] [--json]
|
|
8777
8774
|
通用透传:覆盖全部注册表端点(warningCall/warningSql/exceptionHistory/bpr/list/alert/detail/tool/list/app/history/environment/uba/query ...)。
|
|
8778
|
-
完整清单与参数声明:curl
|
|
8775
|
+
完整清单与参数声明:curl https://bfi.yyuap.com/bfi-api/openapi.json 或 /docs(Swagger UI)。
|
|
8779
8776
|
时间参数(-t/--start-time/--end-time)由服务端按端点 time_fields 展开为 beginTs/endTs 等——
|
|
8780
8777
|
禁止在 --data JSON 里手传 start/end/start_time(数字 422、字符串被忽略返回空)。
|
|
8781
8778
|
⚠️ app/history、jvm/history 等资源端点的 appId 必须带环境前缀(如 stage-dc-core1-<appCode>,
|
|
@@ -91,7 +91,7 @@ function loadGlobalConfig() {
|
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
93
|
function resolveApiBase() {
|
|
94
|
-
return process.env.BFI_API_BASE || "
|
|
94
|
+
return process.env.BFI_API_BASE || "https://bfi.yyuap.com/bfi-api";
|
|
95
95
|
}
|
|
96
96
|
function resolveToken() {
|
|
97
97
|
if (process.env.BFI_TOKEN) return process.env.BFI_TOKEN;
|
package/dist/mcp-db/main.mjs
CHANGED
|
@@ -151,7 +151,7 @@ function loadGlobalConfig() {
|
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
153
|
function resolveApiBase() {
|
|
154
|
-
return process.env.BFI_API_BASE || "
|
|
154
|
+
return process.env.BFI_API_BASE || "https://bfi.yyuap.com/bfi-api";
|
|
155
155
|
}
|
|
156
156
|
function resolveToken() {
|
|
157
157
|
if (process.env.BFI_TOKEN) return process.env.BFI_TOKEN;
|