@ncukondo/reference-manager 0.28.1 → 0.28.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.
Files changed (30) hide show
  1. package/dist/chunks/{SearchableMultiSelect-BVp72Ptt.js → SearchableMultiSelect-P_4bkJPM.js} +2 -2
  2. package/dist/chunks/{SearchableMultiSelect-BVp72Ptt.js.map → SearchableMultiSelect-P_4bkJPM.js.map} +1 -1
  3. package/dist/chunks/{action-menu-BhuUnwdz.js → action-menu-WS0XRdcC.js} +3 -3
  4. package/dist/chunks/{action-menu-BhuUnwdz.js.map → action-menu-WS0XRdcC.js.map} +1 -1
  5. package/dist/chunks/{checker-CP8vSC-S.js → checker-hg3aQ_DJ.js} +4 -4
  6. package/dist/chunks/{checker-CP8vSC-S.js.map → checker-hg3aQ_DJ.js.map} +1 -1
  7. package/dist/chunks/{crossref-client-C1HVx8LA.js → crossref-client-DozuWO_S.js} +2 -2
  8. package/dist/chunks/{crossref-client-C1HVx8LA.js.map → crossref-client-DozuWO_S.js.map} +1 -1
  9. package/dist/chunks/{fix-interaction-pDdwGbp1.js → fix-interaction-DeQUN0Ey.js} +5 -5
  10. package/dist/chunks/{fix-interaction-pDdwGbp1.js.map → fix-interaction-DeQUN0Ey.js.map} +1 -1
  11. package/dist/chunks/{index-T-edKSzd.js → index-6Aild0Uk.js} +24 -2
  12. package/dist/chunks/index-6Aild0Uk.js.map +1 -0
  13. package/dist/chunks/{index-DM3Q5lW4.js → index-BaitE43C.js} +3 -3
  14. package/dist/chunks/index-BaitE43C.js.map +1 -0
  15. package/dist/chunks/{index-Dk83ayti.js → index-DFvKyXqg.js} +28 -28
  16. package/dist/chunks/{index-Dk83ayti.js.map → index-DFvKyXqg.js.map} +1 -1
  17. package/dist/chunks/{index-gwWeJC-c.js → index-DZM7YJbh.js} +4 -4
  18. package/dist/chunks/{index-gwWeJC-c.js.map → index-DZM7YJbh.js.map} +1 -1
  19. package/dist/chunks/{pubmed-client-DEo6eaH7.js → pubmed-client-DJdEV1PO.js} +2 -2
  20. package/dist/chunks/{pubmed-client-DEo6eaH7.js.map → pubmed-client-DJdEV1PO.js.map} +1 -1
  21. package/dist/chunks/{reference-select-9GUq-x2d.js → reference-select-CWLYQeJi.js} +3 -3
  22. package/dist/chunks/{reference-select-9GUq-x2d.js.map → reference-select-CWLYQeJi.js.map} +1 -1
  23. package/dist/chunks/{style-select-DvH9N4Jg.js → style-select-BZPjQCHb.js} +3 -3
  24. package/dist/chunks/{style-select-DvH9N4Jg.js.map → style-select-BZPjQCHb.js.map} +1 -1
  25. package/dist/cli.js +1 -1
  26. package/dist/features/operations/fulltext/get.d.ts.map +1 -1
  27. package/dist/server.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/index-DM3Q5lW4.js.map +0 -1
  30. package/dist/chunks/index-T-edKSzd.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { a } from "./index-T-edKSzd.js";
2
- import { d, g, l, o, s } from "./index-Dk83ayti.js";
1
+ import { a } from "./index-6Aild0Uk.js";
2
+ import { d, g, l, o, s } from "./index-DFvKyXqg.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-DM3Q5lW4.js.map
11
+ //# sourceMappingURL=index-BaitE43C.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BaitE43C.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -5,7 +5,7 @@ import { promises, readFileSync, existsSync, mkdirSync, writeFileSync } from "no
5
5
  import * as os from "node:os";
6
6
  import * as path from "node:path";
7
7
  import path__default, { join, basename, dirname } from "node:path";
8
- import { n as normalizePathForOutput, d as deleteDirectoryIfEmpty, p as parseFilename, i as isReservedRole, e as ensureDirectory, a as addAttachment, R as RESERVED_ROLES, b as generateFilename, c as findFulltextFiles, h as findFulltextFile, j as extensionToFormat, k as fulltextAttach, l as fulltextDiscover, m as fulltextFetch, o as fulltextConvert, q as fulltextGet, r as getExtension, s as getDefaultExportFromCjs, B as BUILTIN_STYLES, t as getFulltextAttachmentTypes, u as startServerWithFileWatcher } from "./index-T-edKSzd.js";
8
+ import { n as normalizePathForOutput, d as deleteDirectoryIfEmpty, p as parseFilename, i as isReservedRole, e as ensureDirectory, a as addAttachment, R as RESERVED_ROLES, b as generateFilename, c as findFulltextFiles, h as findFulltextFile, j as extensionToFormat, k as fulltextAttach, l as fulltextDiscover, m as fulltextFetch, o as fulltextConvert, q as fulltextGet, r as getExtension, s as getDefaultExportFromCjs, B as BUILTIN_STYLES, t as getFulltextAttachmentTypes, u as startServerWithFileWatcher } from "./index-6Aild0Uk.js";
9
9
  import { readFile, unlink, stat, readdir, rename } from "node:fs/promises";
10
10
  import { o as openWithSystemApp, l as loadConfig, e as getDefaultCurrentDirConfigFilename, h as getDefaultUserConfigPath } from "./loader-B6sytmQd.js";
11
11
  import { spawn, spawnSync } from "node:child_process";
@@ -19,7 +19,7 @@ import "@citation-js/plugin-csl";
19
19
  import { ZodOptional as ZodOptional$2, z } from "zod";
20
20
  import { serve } from "@hono/node-server";
21
21
  const name = "@ncukondo/reference-manager";
22
- const version$1 = "0.28.1";
22
+ const version$1 = "0.28.2";
23
23
  const description$1 = "A local reference management tool using CSL-JSON as the single source of truth";
24
24
  const packageJson = {
25
25
  name,
@@ -901,15 +901,15 @@ class OperationsLibrary {
901
901
  }
902
902
  // High-level operations
903
903
  async search(options) {
904
- const { searchReferences } = await import("./index-T-edKSzd.js").then((n) => n.E);
904
+ const { searchReferences } = await import("./index-6Aild0Uk.js").then((n) => n.E);
905
905
  return searchReferences(this.library, options);
906
906
  }
907
907
  async list(options) {
908
- const { listReferences } = await import("./index-T-edKSzd.js").then((n) => n.D);
908
+ const { listReferences } = await import("./index-6Aild0Uk.js").then((n) => n.D);
909
909
  return listReferences(this.library, options ?? {});
910
910
  }
911
911
  async cite(options) {
912
- const { citeReferences } = await import("./index-T-edKSzd.js").then((n) => n.C);
912
+ const { citeReferences } = await import("./index-6Aild0Uk.js").then((n) => n.C);
913
913
  const defaultStyle = options.defaultStyle ?? this.citationConfig?.defaultStyle;
914
914
  const cslDirectory = options.cslDirectory ?? this.citationConfig?.cslDirectory;
915
915
  const mergedOptions = {
@@ -920,36 +920,36 @@ class OperationsLibrary {
920
920
  return citeReferences(this.library, mergedOptions);
921
921
  }
922
922
  async import(inputs, options) {
923
- const { addReferences } = await import("./index-T-edKSzd.js").then((n) => n.z);
923
+ const { addReferences } = await import("./index-6Aild0Uk.js").then((n) => n.z);
924
924
  return addReferences(inputs, this.library, options ?? {});
925
925
  }
926
926
  async check(options) {
927
- const { checkReferences } = await import("./index-T-edKSzd.js").then((n) => n.A);
927
+ const { checkReferences } = await import("./index-6Aild0Uk.js").then((n) => n.A);
928
928
  return checkReferences(this.library, options);
929
929
  }
930
930
  // Attachment operations
931
931
  async attachAdd(options) {
932
- const { addAttachment: addAttachment2 } = await import("./index-DM3Q5lW4.js");
932
+ const { addAttachment: addAttachment2 } = await import("./index-BaitE43C.js");
933
933
  return addAttachment2(this.library, options);
934
934
  }
935
935
  async attachList(options) {
936
- const { listAttachments: listAttachments2 } = await import("./index-DM3Q5lW4.js");
936
+ const { listAttachments: listAttachments2 } = await import("./index-BaitE43C.js");
937
937
  return listAttachments2(this.library, options);
938
938
  }
939
939
  async attachGet(options) {
940
- const { getAttachment: getAttachment2 } = await import("./index-DM3Q5lW4.js");
940
+ const { getAttachment: getAttachment2 } = await import("./index-BaitE43C.js");
941
941
  return getAttachment2(this.library, options);
942
942
  }
943
943
  async attachDetach(options) {
944
- const { detachAttachment: detachAttachment2 } = await import("./index-DM3Q5lW4.js");
944
+ const { detachAttachment: detachAttachment2 } = await import("./index-BaitE43C.js");
945
945
  return detachAttachment2(this.library, options);
946
946
  }
947
947
  async attachSync(options) {
948
- const { syncAttachments: syncAttachments2 } = await import("./index-DM3Q5lW4.js");
948
+ const { syncAttachments: syncAttachments2 } = await import("./index-BaitE43C.js");
949
949
  return syncAttachments2(this.library, options);
950
950
  }
951
951
  async attachOpen(options) {
952
- const { openAttachment: openAttachment2 } = await import("./index-DM3Q5lW4.js");
952
+ const { openAttachment: openAttachment2 } = await import("./index-BaitE43C.js");
953
953
  return openAttachment2(this.library, options);
954
954
  }
955
955
  }
@@ -1805,7 +1805,7 @@ function getAttachExitCode(result) {
1805
1805
  }
1806
1806
  async function executeInteractiveSelect$2(context, config2) {
1807
1807
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
1808
- const { selectReferencesOrExit } = await import("./reference-select-9GUq-x2d.js");
1808
+ const { selectReferencesOrExit } = await import("./reference-select-CWLYQeJi.js");
1809
1809
  const allReferences = await context.library.getAll();
1810
1810
  const identifiers = await withAlternateScreen2(
1811
1811
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -2470,7 +2470,7 @@ async function handleCheckAction(identifiers, options, globalOpts) {
2470
2470
  const jsonOptions = buildJsonOptionsFromRefs(options, outputFormat, result, allRefs);
2471
2471
  outputCheckResult(result, outputFormat, jsonOptions);
2472
2472
  if (options.fix && result.summary.warnings > 0 && allRefs) {
2473
- const { runFixInteraction } = await import("./fix-interaction-pDdwGbp1.js");
2473
+ const { runFixInteraction } = await import("./fix-interaction-DeQUN0Ey.js");
2474
2474
  const findItem = (id2) => allRefs.find((item) => item.id === id2);
2475
2475
  const fixResult = await runFixInteraction(result.results, context.library, findItem);
2476
2476
  const removedSuffix = fixResult.removed.length > 0 ? `, ${fixResult.removed.length} removed` : "";
@@ -2538,7 +2538,7 @@ function outputCheckError(error, format2) {
2538
2538
  }
2539
2539
  async function selectReferencesInteractively(context, config2) {
2540
2540
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
2541
- const { selectReferenceItemsOrExit } = await import("./reference-select-9GUq-x2d.js");
2541
+ const { selectReferenceItemsOrExit } = await import("./reference-select-CWLYQeJi.js");
2542
2542
  const allReferences = await context.library.getAll();
2543
2543
  if (allReferences.length === 0) {
2544
2544
  process.stderr.write("No references in library.\n");
@@ -2606,8 +2606,8 @@ function getCiteExitCode(result) {
2606
2606
  }
2607
2607
  async function executeInteractiveCite(options, context, config2) {
2608
2608
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
2609
- const { runCiteFlow } = await import("./index-gwWeJC-c.js");
2610
- const { buildStyleChoices, listCustomStyles } = await import("./style-select-DvH9N4Jg.js");
2609
+ const { runCiteFlow } = await import("./index-DZM7YJbh.js");
2610
+ const { buildStyleChoices, listCustomStyles } = await import("./style-select-BZPjQCHb.js");
2611
2611
  const { search } = await import("./file-watcher-CWHg1yol.js").then((n) => n.B);
2612
2612
  const { tokenize } = await import("./file-watcher-CWHg1yol.js").then((n) => n.A);
2613
2613
  const { checkTTY } = await import("./tty-BMyaEOhX.js");
@@ -7208,7 +7208,7 @@ function formatEditOutput(result) {
7208
7208
  }
7209
7209
  async function executeInteractiveEdit(options, context, config2) {
7210
7210
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
7211
- const { selectReferencesOrExit } = await import("./reference-select-9GUq-x2d.js");
7211
+ const { selectReferencesOrExit } = await import("./reference-select-CWLYQeJi.js");
7212
7212
  const allReferences = await context.library.getAll();
7213
7213
  const identifiers = await withAlternateScreen2(
7214
7214
  () => selectReferencesOrExit(allReferences, { multiSelect: true }, config2.cli.tui)
@@ -10770,7 +10770,7 @@ function getFulltextExitCode(result) {
10770
10770
  }
10771
10771
  async function executeInteractiveSelect$1(context, config2, multiSelect = false) {
10772
10772
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
10773
- const { selectReferencesOrExit } = await import("./reference-select-9GUq-x2d.js");
10773
+ const { selectReferencesOrExit } = await import("./reference-select-CWLYQeJi.js");
10774
10774
  const allReferences = await context.library.getAll();
10775
10775
  const identifiers = await withAlternateScreen2(
10776
10776
  () => selectReferencesOrExit(allReferences, { multiSelect }, config2.cli.tui)
@@ -32225,7 +32225,7 @@ async function mcpStart(options) {
32225
32225
  async function executeRemove(options, context) {
32226
32226
  const { identifier, idType = "id", fulltextDirectory, deleteFulltext = false } = options;
32227
32227
  if (context.mode === "local" && deleteFulltext && fulltextDirectory) {
32228
- const { removeReference } = await import("./index-T-edKSzd.js").then((n) => n.x);
32228
+ const { removeReference } = await import("./index-6Aild0Uk.js").then((n) => n.x);
32229
32229
  return removeReference(context.library, {
32230
32230
  identifier,
32231
32231
  idType,
@@ -32280,7 +32280,7 @@ Continue?`;
32280
32280
  }
32281
32281
  async function executeInteractiveRemove(context, config2) {
32282
32282
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32283
- const { selectReferenceItemsOrExit } = await import("./reference-select-9GUq-x2d.js");
32283
+ const { selectReferenceItemsOrExit } = await import("./reference-select-CWLYQeJi.js");
32284
32284
  const allReferences = await context.library.getAll();
32285
32285
  const selectedItems = await withAlternateScreen2(
32286
32286
  () => selectReferenceItemsOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -32505,7 +32505,7 @@ async function executeInteractiveSearch(options, context, config2) {
32505
32505
  validateInteractiveOptions(options);
32506
32506
  const { checkTTY } = await import("./tty-BMyaEOhX.js");
32507
32507
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32508
- const { runSearchFlow } = await import("./index-gwWeJC-c.js");
32508
+ const { runSearchFlow } = await import("./index-DZM7YJbh.js");
32509
32509
  const { search } = await import("./file-watcher-CWHg1yol.js").then((n) => n.B);
32510
32510
  const { tokenize } = await import("./file-watcher-CWHg1yol.js").then((n) => n.A);
32511
32511
  checkTTY();
@@ -32524,7 +32524,7 @@ async function executeInteractiveSearch(options, context, config2) {
32524
32524
  })
32525
32525
  );
32526
32526
  if (result.selectedItems && !result.cancelled) {
32527
- const { isSideEffectAction } = await import("./action-menu-BhuUnwdz.js");
32527
+ const { isSideEffectAction } = await import("./action-menu-WS0XRdcC.js");
32528
32528
  if (isSideEffectAction(result.action)) {
32529
32529
  await executeSideEffectAction(result.action, result.selectedItems, context, config2);
32530
32530
  return { output: "", cancelled: false, action: result.action };
@@ -32935,7 +32935,7 @@ function formatUpdateOutput(result, identifier) {
32935
32935
  }
32936
32936
  async function executeInteractiveUpdate(context, config2) {
32937
32937
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32938
- const { selectReferencesOrExit } = await import("./reference-select-9GUq-x2d.js");
32938
+ const { selectReferencesOrExit } = await import("./reference-select-CWLYQeJi.js");
32939
32939
  const allReferences = await context.library.getAll();
32940
32940
  const identifiers = await withAlternateScreen2(
32941
32941
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -33230,7 +33230,7 @@ function getUrlExitCode(result) {
33230
33230
  }
33231
33231
  async function executeInteractiveSelect(context, config2) {
33232
33232
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
33233
- const { selectReferencesOrExit } = await import("./reference-select-9GUq-x2d.js");
33233
+ const { selectReferencesOrExit } = await import("./reference-select-CWLYQeJi.js");
33234
33234
  const allReferences = await context.library.getAll();
33235
33235
  const identifiers = await withAlternateScreen2(
33236
33236
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -33787,7 +33787,7 @@ function shouldAutoFetch(cliFlag, configEnabled) {
33787
33787
  return configEnabled;
33788
33788
  }
33789
33789
  async function performAutoFetch(addedItems, context, config2) {
33790
- const { fulltextFetch: fulltextFetch2 } = await import("./index-T-edKSzd.js").then((n) => n.w);
33790
+ const { fulltextFetch: fulltextFetch2 } = await import("./index-6Aild0Uk.js").then((n) => n.w);
33791
33791
  const fetchResults = await autoFetchFulltext(addedItems, context, {
33792
33792
  fulltextConfig: config2.fulltext,
33793
33793
  fulltextDirectory: config2.attachments.directory,
@@ -34079,4 +34079,4 @@ export {
34079
34079
  restoreStdinAfterInk as r,
34080
34080
  syncAttachments as s
34081
34081
  };
34082
- //# sourceMappingURL=index-Dk83ayti.js.map
34082
+ //# sourceMappingURL=index-DFvKyXqg.js.map