bfi-cli 0.1.77 → 0.1.78
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 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -8326,6 +8326,8 @@ async function runYmc(args, globalOpts) {
|
|
|
8326
8326
|
console.error("例:bfi ymc sls-raw '* | SELECT applicationName, count(*) AS c GROUP BY applicationName' -e daily -t 3d");
|
|
8327
8327
|
console.error("例:bfi ymc sls-raw '* | SELECT * WHERE level=''ERROR''' -e pre --start-time \"2026-08-31 15:00:00\" --end-time \"2026-08-31 16:00:00\"");
|
|
8328
8328
|
console.error("说明:--start-time/--end-time(yyyy-MM-dd HH:mm:ss 北京时间)为精确窗口,优先于 -t/--days");
|
|
8329
|
+
console.error("行数与翻页:纯检索由服务端自动拼 LIMIT [offset,]line(line 可到数千);带 SQL 段时尊重原语句(翻页自写 LIMIT off,cnt)");
|
|
8330
|
+
console.error("⚠️ 实测口径:LIMIT 无偏移可靠但慢(1000 行约 190s);带偏移翻页 cnt≤100 可靠(offset>0 且 cnt>100 会返回空);大窗口优先窄时间多次查询");
|
|
8329
8331
|
process.exit(1);
|
|
8330
8332
|
}
|
|
8331
8333
|
const body = {
|
|
@@ -8333,7 +8335,8 @@ async function runYmc(args, globalOpts) {
|
|
|
8333
8335
|
...requireEnv(rest),
|
|
8334
8336
|
...timeOpts(rest),
|
|
8335
8337
|
...opt(rest, "--days") ? { days: Number(opt(rest, "--days")) } : {},
|
|
8336
|
-
...opt(rest, "--line") ? { line: Number(opt(rest, "--line")) } : {}
|
|
8338
|
+
...opt(rest, "--line") ? { line: Number(opt(rest, "--line")) } : {},
|
|
8339
|
+
...opt(rest, "--offset") ? { offset: Number(opt(rest, "--offset")) } : {}
|
|
8337
8340
|
};
|
|
8338
8341
|
if (!opt(rest, "-t", "--time") && !opt(rest, "--start-time") && !opt(rest, "--days")) console.error("⚠️ 未指定时间窗:服务端按超大窗口兜底,命中可能含数天前记录——取证请显式 -t/--start-time");
|
|
8339
8342
|
emit(await api.call("sls/raw", body), jsonMode, (data) => {
|