bfi-cli 0.1.77 → 0.1.79

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +4 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -8199,7 +8199,6 @@ function timeOf(args, required = true) {
8199
8199
  console.error(err);
8200
8200
  process.exit(1);
8201
8201
  }
8202
- if (t && !err) validateTime(t);
8203
8202
  return t ? { time: t } : {};
8204
8203
  }
8205
8204
  function timeOpts(args) {
@@ -8326,6 +8325,8 @@ async function runYmc(args, globalOpts) {
8326
8325
  console.error("例:bfi ymc sls-raw '* | SELECT applicationName, count(*) AS c GROUP BY applicationName' -e daily -t 3d");
8327
8326
  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
8327
  console.error("说明:--start-time/--end-time(yyyy-MM-dd HH:mm:ss 北京时间)为精确窗口,优先于 -t/--days");
8328
+ console.error("行数与翻页:纯检索由服务端自动拼 LIMIT [offset,]line(line 可到数千);带 SQL 段时尊重原语句(翻页自写 LIMIT off,cnt)");
8329
+ console.error("⚠️ 实测口径:LIMIT 无偏移可靠但慢(1000 行约 190s);带偏移翻页 cnt≤100 可靠(offset>0 且 cnt>100 会返回空);大窗口优先窄时间多次查询");
8329
8330
  process.exit(1);
8330
8331
  }
8331
8332
  const body = {
@@ -8333,7 +8334,8 @@ async function runYmc(args, globalOpts) {
8333
8334
  ...requireEnv(rest),
8334
8335
  ...timeOpts(rest),
8335
8336
  ...opt(rest, "--days") ? { days: Number(opt(rest, "--days")) } : {},
8336
- ...opt(rest, "--line") ? { line: Number(opt(rest, "--line")) } : {}
8337
+ ...opt(rest, "--line") ? { line: Number(opt(rest, "--line")) } : {},
8338
+ ...opt(rest, "--offset") ? { offset: Number(opt(rest, "--offset")) } : {}
8337
8339
  };
8338
8340
  if (!opt(rest, "-t", "--time") && !opt(rest, "--start-time") && !opt(rest, "--days")) console.error("⚠️ 未指定时间窗:服务端按超大窗口兜底,命中可能含数天前记录——取证请显式 -t/--start-time");
8339
8341
  emit(await api.call("sls/raw", body), jsonMode, (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bfi-cli",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "用友大业财BFI统一命令行工具,支持技能,技能包,元数据,UI元数据等",
5
5
  "type": "module",
6
6
  "bin": {