@ncukondo/reference-manager 0.25.0 → 0.26.0

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 (58) hide show
  1. package/README.md +11 -2
  2. package/dist/chunks/{SearchableMultiSelect-B7qEWPDT.js → SearchableMultiSelect-D2IzthN4.js} +2 -2
  3. package/dist/chunks/{SearchableMultiSelect-B7qEWPDT.js.map → SearchableMultiSelect-D2IzthN4.js.map} +1 -1
  4. package/dist/chunks/{action-menu-DD0RtNVD.js → action-menu-DWdoHTFh.js} +3 -3
  5. package/dist/chunks/{action-menu-DD0RtNVD.js.map → action-menu-DWdoHTFh.js.map} +1 -1
  6. package/dist/chunks/checker-CKfdG8Ia.js +170 -0
  7. package/dist/chunks/checker-CKfdG8Ia.js.map +1 -0
  8. package/dist/chunks/crossref-client-Gs75LMVf.js +94 -0
  9. package/dist/chunks/crossref-client-Gs75LMVf.js.map +1 -0
  10. package/dist/chunks/{fix-interaction-BpfMLRNY.js → fix-interaction-DNXbmlPr.js} +79 -20
  11. package/dist/chunks/fix-interaction-DNXbmlPr.js.map +1 -0
  12. package/dist/chunks/{index-QTYx5RaF.js → index-BEQ4YIXx.js} +115 -44
  13. package/dist/chunks/index-BEQ4YIXx.js.map +1 -0
  14. package/dist/chunks/{index-PQkbePWV.js → index-k67fQbe4.js} +3 -3
  15. package/dist/chunks/index-k67fQbe4.js.map +1 -0
  16. package/dist/chunks/{index-D2HsxXnK.js → index-of6eJn8N.js} +10 -4
  17. package/dist/chunks/{index-D2HsxXnK.js.map → index-of6eJn8N.js.map} +1 -1
  18. package/dist/chunks/{index-CYEise6v.js → index-tdmbNN9b.js} +4 -4
  19. package/dist/chunks/{index-CYEise6v.js.map → index-tdmbNN9b.js.map} +1 -1
  20. package/dist/chunks/metadata-comparator-C5zfoYdK.js +137 -0
  21. package/dist/chunks/metadata-comparator-C5zfoYdK.js.map +1 -0
  22. package/dist/chunks/{pubmed-client-J18fg3fG.js → pubmed-client-CGReJIOz.js} +2 -2
  23. package/dist/chunks/{pubmed-client-J18fg3fG.js.map → pubmed-client-CGReJIOz.js.map} +1 -1
  24. package/dist/chunks/{reference-select-Qpgt9cbN.js → reference-select-i1Cnmc16.js} +3 -3
  25. package/dist/chunks/{reference-select-Qpgt9cbN.js.map → reference-select-i1Cnmc16.js.map} +1 -1
  26. package/dist/chunks/{style-select-mEMoWbM2.js → style-select-COnY01qb.js} +3 -3
  27. package/dist/chunks/{style-select-mEMoWbM2.js.map → style-select-COnY01qb.js.map} +1 -1
  28. package/dist/cli/commands/check.d.ts +2 -1
  29. package/dist/cli/commands/check.d.ts.map +1 -1
  30. package/dist/cli/index.d.ts.map +1 -1
  31. package/dist/cli.js +1 -1
  32. package/dist/features/check/checker.d.ts +1 -0
  33. package/dist/features/check/checker.d.ts.map +1 -1
  34. package/dist/features/check/crossref-client.d.ts +16 -0
  35. package/dist/features/check/crossref-client.d.ts.map +1 -1
  36. package/dist/features/check/fix-actions.d.ts +1 -1
  37. package/dist/features/check/fix-actions.d.ts.map +1 -1
  38. package/dist/features/check/fix-interaction.d.ts.map +1 -1
  39. package/dist/features/check/metadata-comparator.d.ts +37 -0
  40. package/dist/features/check/metadata-comparator.d.ts.map +1 -0
  41. package/dist/features/check/metadata-similarity.d.ts +22 -0
  42. package/dist/features/check/metadata-similarity.d.ts.map +1 -0
  43. package/dist/features/check/types.d.ts +6 -1
  44. package/dist/features/check/types.d.ts.map +1 -1
  45. package/dist/features/operations/check.d.ts +1 -0
  46. package/dist/features/operations/check.d.ts.map +1 -1
  47. package/dist/mcp/tools/check.d.ts +1 -0
  48. package/dist/mcp/tools/check.d.ts.map +1 -1
  49. package/dist/server/routes/check.d.ts.map +1 -1
  50. package/dist/server.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/chunks/checker-7pzK2XSC.js +0 -92
  53. package/dist/chunks/checker-7pzK2XSC.js.map +0 -1
  54. package/dist/chunks/crossref-client-DGNz4PNW.js +0 -52
  55. package/dist/chunks/crossref-client-DGNz4PNW.js.map +0 -1
  56. package/dist/chunks/fix-interaction-BpfMLRNY.js.map +0 -1
  57. package/dist/chunks/index-PQkbePWV.js.map +0 -1
  58. package/dist/chunks/index-QTYx5RaF.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { a } from "./index-D2HsxXnK.js";
2
- import { d, g, l, o, s } from "./index-QTYx5RaF.js";
1
+ import { a } from "./index-of6eJn8N.js";
2
+ import { d, g, l, o, s } from "./index-BEQ4YIXx.js";
3
3
  export {
4
4
  a as addAttachment,
5
5
  d as detachAttachment,
@@ -8,4 +8,4 @@ export {
8
8
  o as openAttachment,
9
9
  s as syncAttachments
10
10
  };
11
- //# sourceMappingURL=index-PQkbePWV.js.map
11
+ //# sourceMappingURL=index-k67fQbe4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-k67fQbe4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -12072,7 +12072,7 @@ function createAddRoute(library, config) {
12072
12072
  }
12073
12073
  const CHECK_CONCURRENCY = 5;
12074
12074
  async function checkReferences(library, options) {
12075
- const { checkReference } = await import("./checker-7pzK2XSC.js");
12075
+ const { checkReference } = await import("./checker-CKfdG8Ia.js");
12076
12076
  const save = options.save !== false;
12077
12077
  const skipDays = options.skipDays ?? 7;
12078
12078
  const items = await resolveItems(library, options);
@@ -12084,7 +12084,11 @@ async function checkReferences(library, options) {
12084
12084
  const results = new Array(items.length);
12085
12085
  fillSkippedResults(tasks, results);
12086
12086
  const toCheck = tasks.filter((t) => !t.skip);
12087
- await checkInParallel(toCheck, results, checkReference, options.config);
12087
+ const checkConfig = {
12088
+ ...options.config,
12089
+ ...options.metadata !== void 0 ? { metadata: options.metadata } : {}
12090
+ };
12091
+ await checkInParallel(toCheck, results, checkReference, checkConfig);
12088
12092
  if (save) {
12089
12093
  await saveAllResults(library, toCheck, results);
12090
12094
  }
@@ -12208,7 +12212,8 @@ const CheckRequestSchema = z.object({
12208
12212
  all: z.boolean().optional(),
12209
12213
  searchQuery: z.string().optional(),
12210
12214
  skipDays: z.number().optional(),
12211
- save: z.boolean().optional()
12215
+ save: z.boolean().optional(),
12216
+ metadata: z.boolean().optional()
12212
12217
  }).refine((data) => data.identifiers?.length || data.all || data.searchQuery, {
12213
12218
  message: "Must provide identifiers, all, or searchQuery"
12214
12219
  });
@@ -12220,6 +12225,7 @@ function buildCheckOptions(data) {
12220
12225
  if (data.searchQuery) options.searchQuery = data.searchQuery;
12221
12226
  if (data.skipDays !== void 0) options.skipDays = data.skipDays;
12222
12227
  if (data.save !== void 0) options.save = data.save;
12228
+ if (data.metadata !== void 0) options.metadata = data.metadata;
12223
12229
  return options;
12224
12230
  }
12225
12231
  function createCheckRoute(library) {
@@ -12746,4 +12752,4 @@ export {
12746
12752
  fetcher as y,
12747
12753
  add as z
12748
12754
  };
12749
- //# sourceMappingURL=index-D2HsxXnK.js.map
12755
+ //# sourceMappingURL=index-of6eJn8N.js.map