@ai-matrx/associations 0.9.29 → 0.9.31

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.
@@ -774,6 +774,7 @@ var ENTITY_TYPE_TOKENS = [
774
774
  "part_config_sub",
775
775
  "party",
776
776
  "party_contact_point",
777
+ "passkey_credential",
777
778
  "pc_article",
778
779
  "pc_episode",
779
780
  "pc_show",
@@ -3786,9 +3787,21 @@ function AssociationCaptureToolbar({
3786
3787
  }
3787
3788
  if (result.failed.length > 0) {
3788
3789
  const first = result.failed[0];
3789
- notifier.error(
3790
- result.failed.length === 1 && first ? `Failed to upload ${first.name}: ${first.error}` : `Failed to upload ${result.failed.length} files`
3791
- );
3790
+ if (result.failed.length === 1 && first) {
3791
+ notifier.error(`Failed to upload ${first.name}: ${first.error}`);
3792
+ } else {
3793
+ const reasonCounts = /* @__PURE__ */ new Map();
3794
+ for (const f of result.failed) {
3795
+ const reason = f.error && f.error.trim().length > 0 ? f.error : "Upload failed";
3796
+ reasonCounts.set(reason, (reasonCounts.get(reason) ?? 0) + 1);
3797
+ }
3798
+ const lines = Array.from(reasonCounts.entries()).map(
3799
+ ([reason, count]) => `${count}\xD7 ${reason}`
3800
+ );
3801
+ notifier.error(`Failed to upload ${result.failed.length} files`, {
3802
+ description: lines.join("\n")
3803
+ });
3804
+ }
3792
3805
  }
3793
3806
  if (ids.length === 0 && result.failed.length === 0) {
3794
3807
  notifier.error("Nothing was uploaded or attached");