@hcmai/cli 0.15.12 → 0.15.13

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
@@ -4612,7 +4612,8 @@ function collectYmlFiles(path19) {
4612
4612
  var DRY_RUN_CLIENT = {
4613
4613
  findIdByKey: async () => null,
4614
4614
  create: async () => ({ id: "" }),
4615
- update: async () => ({})
4615
+ update: async () => ({}),
4616
+ fieldKeys: async () => []
4616
4617
  };
4617
4618
  async function importCommand(path19, args) {
4618
4619
  try {
@@ -4635,6 +4636,23 @@ async function importCommand(path19, args) {
4635
4636
  `
4636
4637
  );
4637
4638
  process.stdout.write(formatObject7(result, { format: fmt }) + "\n");
4639
+ const unmappedRows = result.rows.filter((r) => r.unmappedFields?.length);
4640
+ if (unmappedRows.length > 0) {
4641
+ const keys = [...new Set(unmappedRows.flatMap((r) => r.unmappedFields ?? []))].sort();
4642
+ process.stderr.write(
4643
+ `\u26A0 ${unmappedRows.length} \u884C\u91CC\u6709\u76EE\u6807\u6A21\u578B\u4E0D\u8BA4\u8BC6\u7684\u5B57\u6BB5\u540D\uFF1A${keys.join(" / ")}
4644
+ \u8FD9\u4E9B\u952E\u670D\u52A1\u7AEF\u8FDE\u8BFB\u90FD\u4E0D\u8BFB\uFF0C\u503C\u4E0D\u4F1A\u843D\u5E93\uFF08\u62A5\u544A\u91CC\u8BE5\u884C\u7684 status \u4ECD\u662F\u88AB\u63A5\u53D7\u7684\u90A3\u4E2A\uFF09\u3002
4645
+ next_step=hcm describe <Model> \u6838\u5BF9\u771F\u540D\u540E\u6539\u8F7D\u8377\u91CD\u8DD1\uFF1B\u771F\u540D\u5E26\u4E0B\u5212\u7EBF\u7684\u8981\u539F\u6837\u5199\uFF0C\u522B\u8F6C\u9A7C\u5CF0\u3002
4646
+ `
4647
+ );
4648
+ }
4649
+ if (result.fieldNamesUnverified.length > 0) {
4650
+ process.stderr.write(
4651
+ `\u26A0 \u8FD9\u4E9B\u6A21\u578B\u7684\u5B57\u6BB5\u6E05\u5355\u6CA1\u8BFB\u5230\uFF0C\u5B57\u6BB5\u540D\u6309\u8001\u89C4\u5219\uFF08\u4E00\u5F8B\u8F6C\u9A7C\u5CF0\uFF09\u53D1\u51FA\u3001\u672A\u505A\u6821\u9A8C\uFF1A${result.fieldNamesUnverified.join(" / ")}
4652
+ next_step=\u771F\u540D\u5E26\u4E0B\u5212\u7EBF\u7684\u5B57\u6BB5\u53EF\u80FD\u88AB\u9759\u9ED8\u4E22\u5F03\uFF0C\u5199\u540E\u56DE\u8BFB\u4E00\u6B21\u6838\u5BF9\uFF1B\u6216\u6362\u542B /meta \u6743\u9650\u7684\u8EAB\u4EFD\u91CD\u8DD1\u3002
4653
+ `
4654
+ );
4655
+ }
4638
4656
  process.exitCode = result.failed > 0 ? 3 : 0;
4639
4657
  return;
4640
4658
  } catch (e) {