@hcmai/cli 0.31.1 → 0.31.2

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/index.js CHANGED
@@ -5545,7 +5545,8 @@ import {
5545
5545
  runImport,
5546
5546
  importExitCode,
5547
5547
  formatObject as formatObject9,
5548
- fromAxiosError as fromAxiosError12
5548
+ fromAxiosError as fromAxiosError12,
5549
+ describeExcludedReason
5549
5550
  } from "@hcmai/sdk";
5550
5551
  function collectYmlFiles(path26) {
5551
5552
  if (statSync(path26).isFile()) return [path26];
@@ -5633,11 +5634,24 @@ var IMPORT_NEXT_STEP = {
5633
5634
  };
5634
5635
  var importNextStep = (reason) => (reason && IMPORT_NEXT_STEP[reason]) ?? `${reason ?? "\u670D\u52A1\u7AEF\u6CA1\u7ED9\u539F\u56E0\u7801"}\uFF1A\u6309 id \u624B\u5DE5\u6838\u5BF9\uFF0C\u4E0D\u8981\u91CD\u5BFC`;
5635
5636
  var MAX_NAMED_ROWS = 20;
5637
+ function printExcluded(excluded) {
5638
+ if (!excluded.length) return;
5639
+ const byReason = /* @__PURE__ */ new Map();
5640
+ for (const e of excluded) byReason.set(e.reason, [...byReason.get(e.reason) ?? [], e]);
5641
+ process.stderr.write(" \u6CA1\u6BD4\u5BF9\u7684\u5B57\u6BB5\uFF08\u670D\u52A1\u7AEF\u6392\u9664\u6E05\u5355\uFF0C\u8FD9\u4E9B\u5217\u5199\u9519\u4E86\u4E5F\u7167\u6837\u6838\u9A8C\u901A\u8FC7\uFF09\uFF1A\n");
5642
+ for (const [reason, list] of byReason) {
5643
+ const why = reason === "UNSPECIFIED" ? "\u670D\u52A1\u7AEF\u6CA1\u7ED9\u539F\u56E0" : describeExcludedReason(reason) ?? "\u8FD9\u7248 CLI \u4E0D\u8BA4\u8BC6\u8FD9\u4E2A\u539F\u56E0\u7801\uFF0C\u539F\u6837\u7167\u767B";
5644
+ process.stderr.write(` \u2298 ${reason}\uFF08${why}\uFF09\uFF1A${list.map((e) => `${e.field}\xD7${e.rows}\u884C`).join("\u3001")}
5645
+ `);
5646
+ }
5647
+ process.stderr.write(" \u8981\u786E\u8BA4\u8FD9\u4E9B\u5217\uFF0C\u6309 id \u8BFB\u56DE\u90A3\u51E0\u884C\u6838\u5BF9\uFF1B\u9010\u884C\u89C1 --report \u6216 stdout \u7684 rows[].verification.excluded\n");
5648
+ }
5636
5649
  function printVerification(result) {
5637
5650
  const v = result.verification;
5638
5651
  process.stderr.write(
5639
5652
  `\u{1F50E} verify: \u6838\u9A8C\u901A\u8FC7=${v.verified} \u6838\u9A8C\u5931\u8D25=${v.mismatched} \u672A\u6838\u9A8C=${v.unverified}` + (v.skippedNotVerified ? `\uFF08\u53E6\u6709 ${v.skippedNotVerified} \u884C\u5DF2\u5B58\u5728\u3001\u88AB\u8DF3\u8FC7\uFF0C\u6CA1\u5199\u5165\u3001\u4E0D\u6838\u9A8C\uFF09` : "") + (result.failed ? `\uFF08\u53E6\u6709 ${result.failed} \u884C\u5199\u5165\u5931\u8D25\uFF0C\u6CA1\u6838\uFF09` : "") + "\n"
5640
5653
  );
5654
+ printExcluded(v.excluded);
5641
5655
  const label = (r) => `${r.model}:${r.key}`;
5642
5656
  const one = (f) => {
5643
5657
  const extra = [