@ncukondo/reference-manager 0.23.1 → 0.23.3

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 (27) hide show
  1. package/dist/chunks/{action-menu-7QLr1lTM.js → action-menu-D0d5ph_3.js} +3 -3
  2. package/dist/chunks/{action-menu-7QLr1lTM.js.map → action-menu-D0d5ph_3.js.map} +1 -1
  3. package/dist/chunks/{format-0YxykmO-.js → format-CH02ev3l.js} +2 -2
  4. package/dist/chunks/{format-0YxykmO-.js.map → format-CH02ev3l.js.map} +1 -1
  5. package/dist/chunks/{index-sH2o68X1.js → index-7R-uEYOu.js} +14 -4
  6. package/dist/chunks/{index-sH2o68X1.js.map → index-7R-uEYOu.js.map} +1 -1
  7. package/dist/chunks/{index-C5G3Nm7i.js → index-CFwvg1Ju.js} +27 -27
  8. package/dist/chunks/{index-C5G3Nm7i.js.map → index-CFwvg1Ju.js.map} +1 -1
  9. package/dist/chunks/{index-BZDH5KRo.js → index-Dktc7Q6f.js} +4 -4
  10. package/dist/chunks/{index-BZDH5KRo.js.map → index-Dktc7Q6f.js.map} +1 -1
  11. package/dist/chunks/{index-COAh_acl.js → index-Dotd2g8H.js} +3 -3
  12. package/dist/chunks/index-Dotd2g8H.js.map +1 -0
  13. package/dist/chunks/{loader-CzviN_sy.js → loader-DOYCI2xk.js} +4 -2
  14. package/dist/chunks/loader-DOYCI2xk.js.map +1 -0
  15. package/dist/chunks/{reference-select-D0qAyipM.js → reference-select-D_Clnq0X.js} +3 -3
  16. package/dist/chunks/{reference-select-D0qAyipM.js.map → reference-select-D_Clnq0X.js.map} +1 -1
  17. package/dist/chunks/{style-select-CcVzhqgU.js → style-select-VJryW_Ms.js} +3 -3
  18. package/dist/chunks/{style-select-CcVzhqgU.js.map → style-select-VJryW_Ms.js.map} +1 -1
  19. package/dist/cli.js +1 -1
  20. package/dist/config/schema.d.ts +2 -0
  21. package/dist/config/schema.d.ts.map +1 -1
  22. package/dist/features/operations/fulltext/fetch.d.ts.map +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/server.js +1 -1
  25. package/package.json +1 -1
  26. package/dist/chunks/index-COAh_acl.js.map +0 -1
  27. package/dist/chunks/loader-CzviN_sy.js.map +0 -1
@@ -5,9 +5,9 @@ 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, g as generateFilename, b as findFulltextFiles, c as findFulltextFile, h as extensionToFormat, j as fulltextAttach, k as fulltextGet, l as fulltextDiscover, m as fulltextFetch, o as fulltextConvert, q as getExtension, r as getDefaultExportFromCjs, B as BUILTIN_STYLES, s as getFulltextAttachmentTypes, t as startServerWithFileWatcher } from "./index-sH2o68X1.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, g as generateFilename, b as findFulltextFiles, c as findFulltextFile, h as extensionToFormat, j as fulltextAttach, k as fulltextGet, l as fulltextDiscover, m as fulltextFetch, o as fulltextConvert, q as getExtension, r as getDefaultExportFromCjs, B as BUILTIN_STYLES, s as getFulltextAttachmentTypes, t as startServerWithFileWatcher } from "./index-7R-uEYOu.js";
9
9
  import { readFile, unlink, stat, readdir, rename } from "node:fs/promises";
10
- import { o as openWithSystemApp, l as loadConfig, e as getDefaultCurrentDirConfigFilename, h as getDefaultUserConfigPath } from "./loader-CzviN_sy.js";
10
+ import { o as openWithSystemApp, l as loadConfig, e as getDefaultCurrentDirConfigFilename, h as getDefaultUserConfigPath } from "./loader-DOYCI2xk.js";
11
11
  import { spawn, spawnSync } from "node:child_process";
12
12
  import process$1, { stdin, stdout } from "node:process";
13
13
  import * as readline from "node:readline";
@@ -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.23.1";
22
+ const version$1 = "0.23.3";
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,
@@ -902,15 +902,15 @@ class OperationsLibrary {
902
902
  }
903
903
  // High-level operations
904
904
  async search(options) {
905
- const { searchReferences } = await import("./index-sH2o68X1.js").then((n) => n.A);
905
+ const { searchReferences } = await import("./index-7R-uEYOu.js").then((n) => n.A);
906
906
  return searchReferences(this.library, options);
907
907
  }
908
908
  async list(options) {
909
- const { listReferences } = await import("./index-sH2o68X1.js").then((n) => n.z);
909
+ const { listReferences } = await import("./index-7R-uEYOu.js").then((n) => n.z);
910
910
  return listReferences(this.library, options ?? {});
911
911
  }
912
912
  async cite(options) {
913
- const { citeReferences } = await import("./index-sH2o68X1.js").then((n) => n.y);
913
+ const { citeReferences } = await import("./index-7R-uEYOu.js").then((n) => n.y);
914
914
  const defaultStyle = options.defaultStyle ?? this.citationConfig?.defaultStyle;
915
915
  const cslDirectory = options.cslDirectory ?? this.citationConfig?.cslDirectory;
916
916
  const mergedOptions = {
@@ -921,32 +921,32 @@ class OperationsLibrary {
921
921
  return citeReferences(this.library, mergedOptions);
922
922
  }
923
923
  async import(inputs, options) {
924
- const { addReferences } = await import("./index-sH2o68X1.js").then((n) => n.x);
924
+ const { addReferences } = await import("./index-7R-uEYOu.js").then((n) => n.x);
925
925
  return addReferences(inputs, this.library, options ?? {});
926
926
  }
927
927
  // Attachment operations
928
928
  async attachAdd(options) {
929
- const { addAttachment: addAttachment2 } = await import("./index-COAh_acl.js");
929
+ const { addAttachment: addAttachment2 } = await import("./index-Dotd2g8H.js");
930
930
  return addAttachment2(this.library, options);
931
931
  }
932
932
  async attachList(options) {
933
- const { listAttachments: listAttachments2 } = await import("./index-COAh_acl.js");
933
+ const { listAttachments: listAttachments2 } = await import("./index-Dotd2g8H.js");
934
934
  return listAttachments2(this.library, options);
935
935
  }
936
936
  async attachGet(options) {
937
- const { getAttachment: getAttachment2 } = await import("./index-COAh_acl.js");
937
+ const { getAttachment: getAttachment2 } = await import("./index-Dotd2g8H.js");
938
938
  return getAttachment2(this.library, options);
939
939
  }
940
940
  async attachDetach(options) {
941
- const { detachAttachment: detachAttachment2 } = await import("./index-COAh_acl.js");
941
+ const { detachAttachment: detachAttachment2 } = await import("./index-Dotd2g8H.js");
942
942
  return detachAttachment2(this.library, options);
943
943
  }
944
944
  async attachSync(options) {
945
- const { syncAttachments: syncAttachments2 } = await import("./index-COAh_acl.js");
945
+ const { syncAttachments: syncAttachments2 } = await import("./index-Dotd2g8H.js");
946
946
  return syncAttachments2(this.library, options);
947
947
  }
948
948
  async attachOpen(options) {
949
- const { openAttachment: openAttachment2 } = await import("./index-COAh_acl.js");
949
+ const { openAttachment: openAttachment2 } = await import("./index-Dotd2g8H.js");
950
950
  return openAttachment2(this.library, options);
951
951
  }
952
952
  }
@@ -1790,7 +1790,7 @@ function getAttachExitCode(result) {
1790
1790
  }
1791
1791
  async function executeInteractiveSelect$2(context, config2) {
1792
1792
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
1793
- const { selectReferencesOrExit } = await import("./reference-select-D0qAyipM.js");
1793
+ const { selectReferencesOrExit } = await import("./reference-select-D_Clnq0X.js");
1794
1794
  const allReferences = await context.library.getAll();
1795
1795
  const identifiers = await withAlternateScreen2(
1796
1796
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -2338,8 +2338,8 @@ function getCiteExitCode(result) {
2338
2338
  }
2339
2339
  async function executeInteractiveCite(options, context, config2) {
2340
2340
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
2341
- const { runCiteFlow } = await import("./index-BZDH5KRo.js");
2342
- const { buildStyleChoices, listCustomStyles } = await import("./style-select-CcVzhqgU.js");
2341
+ const { runCiteFlow } = await import("./index-Dktc7Q6f.js");
2342
+ const { buildStyleChoices, listCustomStyles } = await import("./style-select-VJryW_Ms.js");
2343
2343
  const { search } = await import("./file-watcher-Dyns9dxx.js").then((n) => n.B);
2344
2344
  const { tokenize } = await import("./file-watcher-Dyns9dxx.js").then((n) => n.A);
2345
2345
  const { checkTTY } = await import("./tty-BMyaEOhX.js");
@@ -6938,7 +6938,7 @@ function formatEditOutput(result) {
6938
6938
  }
6939
6939
  async function executeInteractiveEdit(options, context, config2) {
6940
6940
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
6941
- const { selectReferencesOrExit } = await import("./reference-select-D0qAyipM.js");
6941
+ const { selectReferencesOrExit } = await import("./reference-select-D_Clnq0X.js");
6942
6942
  const allReferences = await context.library.getAll();
6943
6943
  const identifiers = await withAlternateScreen2(
6944
6944
  () => selectReferencesOrExit(allReferences, { multiSelect: true }, config2.cli.tui)
@@ -10479,7 +10479,7 @@ function getFulltextExitCode(result) {
10479
10479
  }
10480
10480
  async function executeInteractiveSelect$1(context, config2) {
10481
10481
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
10482
- const { selectReferencesOrExit } = await import("./reference-select-D0qAyipM.js");
10482
+ const { selectReferencesOrExit } = await import("./reference-select-D_Clnq0X.js");
10483
10483
  const allReferences = await context.library.getAll();
10484
10484
  const identifiers = await withAlternateScreen2(
10485
10485
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -31779,7 +31779,7 @@ async function mcpStart(options) {
31779
31779
  async function executeRemove(options, context) {
31780
31780
  const { identifier, idType = "id", fulltextDirectory, deleteFulltext = false } = options;
31781
31781
  if (context.mode === "local" && deleteFulltext && fulltextDirectory) {
31782
- const { removeReference } = await import("./index-sH2o68X1.js").then((n) => n.w);
31782
+ const { removeReference } = await import("./index-7R-uEYOu.js").then((n) => n.w);
31783
31783
  return removeReference(context.library, {
31784
31784
  identifier,
31785
31785
  idType,
@@ -31834,7 +31834,7 @@ Continue?`;
31834
31834
  }
31835
31835
  async function executeInteractiveRemove(context, config2) {
31836
31836
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
31837
- const { selectReferenceItemsOrExit } = await import("./reference-select-D0qAyipM.js");
31837
+ const { selectReferenceItemsOrExit } = await import("./reference-select-D_Clnq0X.js");
31838
31838
  const allReferences = await context.library.getAll();
31839
31839
  const selectedItems = await withAlternateScreen2(
31840
31840
  () => selectReferenceItemsOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -32059,7 +32059,7 @@ async function executeInteractiveSearch(options, context, config2) {
32059
32059
  validateInteractiveOptions(options);
32060
32060
  const { checkTTY } = await import("./tty-BMyaEOhX.js");
32061
32061
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32062
- const { runSearchFlow } = await import("./index-BZDH5KRo.js");
32062
+ const { runSearchFlow } = await import("./index-Dktc7Q6f.js");
32063
32063
  const { search } = await import("./file-watcher-Dyns9dxx.js").then((n) => n.B);
32064
32064
  const { tokenize } = await import("./file-watcher-Dyns9dxx.js").then((n) => n.A);
32065
32065
  checkTTY();
@@ -32078,7 +32078,7 @@ async function executeInteractiveSearch(options, context, config2) {
32078
32078
  })
32079
32079
  );
32080
32080
  if (result.selectedItems && !result.cancelled) {
32081
- const { isSideEffectAction } = await import("./action-menu-7QLr1lTM.js");
32081
+ const { isSideEffectAction } = await import("./action-menu-D0d5ph_3.js");
32082
32082
  if (isSideEffectAction(result.action)) {
32083
32083
  await executeSideEffectAction(result.action, result.selectedItems, context, config2);
32084
32084
  return { output: "", cancelled: false, action: result.action };
@@ -32094,7 +32094,7 @@ async function executeSideEffectAction(action, items2, context, config2) {
32094
32094
  switch (action) {
32095
32095
  case "open-url": {
32096
32096
  const { resolveDefaultUrl: resolveDefaultUrl2 } = await Promise.resolve().then(() => url);
32097
- const { openWithSystemApp: openWithSystemApp2 } = await import("./loader-CzviN_sy.js").then((n) => n.j);
32097
+ const { openWithSystemApp: openWithSystemApp2 } = await import("./loader-DOYCI2xk.js").then((n) => n.j);
32098
32098
  const item = items2[0];
32099
32099
  if (!item) return;
32100
32100
  const url$1 = resolveDefaultUrl2(item);
@@ -32481,7 +32481,7 @@ function formatUpdateOutput(result, identifier) {
32481
32481
  }
32482
32482
  async function executeInteractiveUpdate(context, config2) {
32483
32483
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32484
- const { selectReferencesOrExit } = await import("./reference-select-D0qAyipM.js");
32484
+ const { selectReferencesOrExit } = await import("./reference-select-D_Clnq0X.js");
32485
32485
  const allReferences = await context.library.getAll();
32486
32486
  const identifiers = await withAlternateScreen2(
32487
32487
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -32776,7 +32776,7 @@ function getUrlExitCode(result) {
32776
32776
  }
32777
32777
  async function executeInteractiveSelect(context, config2) {
32778
32778
  const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
32779
- const { selectReferencesOrExit } = await import("./reference-select-D0qAyipM.js");
32779
+ const { selectReferencesOrExit } = await import("./reference-select-D_Clnq0X.js");
32780
32780
  const allReferences = await context.library.getAll();
32781
32781
  const identifiers = await withAlternateScreen2(
32782
32782
  () => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
@@ -33279,7 +33279,7 @@ function shouldAutoFetch(cliFlag, configEnabled) {
33279
33279
  return configEnabled;
33280
33280
  }
33281
33281
  async function performAutoFetch(addedItems, context, config2) {
33282
- const { fulltextFetch: fulltextFetch2 } = await import("./index-sH2o68X1.js").then((n) => n.v);
33282
+ const { fulltextFetch: fulltextFetch2 } = await import("./index-7R-uEYOu.js").then((n) => n.v);
33283
33283
  const fetchResults = await autoFetchFulltext(addedItems, context, {
33284
33284
  fulltextConfig: config2.fulltext,
33285
33285
  fulltextDirectory: config2.attachments.directory,
@@ -33558,4 +33558,4 @@ export {
33558
33558
  restoreStdinAfterInk as r,
33559
33559
  syncAttachments as s
33560
33560
  };
33561
- //# sourceMappingURL=index-C5G3Nm7i.js.map
33561
+ //# sourceMappingURL=index-CFwvg1Ju.js.map