@ncukondo/reference-manager 0.33.0 → 0.33.1
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/chunks/{SearchableMultiSelect-B8QVnO_p.js → SearchableMultiSelect-a5BIz7Gb.js} +2 -2
- package/dist/chunks/{SearchableMultiSelect-B8QVnO_p.js.map → SearchableMultiSelect-a5BIz7Gb.js.map} +1 -1
- package/dist/chunks/{action-menu-i1v02Qig.js → action-menu-CjmHSfmi.js} +3 -3
- package/dist/chunks/{action-menu-i1v02Qig.js.map → action-menu-CjmHSfmi.js.map} +1 -1
- package/dist/chunks/{checker-CnWQe7v2.js → checker-D_kpqqRi.js} +4 -4
- package/dist/chunks/{checker-CnWQe7v2.js.map → checker-D_kpqqRi.js.map} +1 -1
- package/dist/chunks/{crossref-client-Dxwv2A5D.js → crossref-client-CXp-1QlL.js} +2 -2
- package/dist/chunks/{crossref-client-Dxwv2A5D.js.map → crossref-client-CXp-1QlL.js.map} +1 -1
- package/dist/chunks/{fix-interaction-D_zhtL9k.js → fix-interaction-Va_6E2Kd.js} +5 -5
- package/dist/chunks/{fix-interaction-D_zhtL9k.js.map → fix-interaction-Va_6E2Kd.js.map} +1 -1
- package/dist/chunks/{index-a52FHX03.js → index-CgOvxl5f.js} +11 -4
- package/dist/chunks/{index-a52FHX03.js.map → index-CgOvxl5f.js.map} +1 -1
- package/dist/chunks/{index-PkCQJBdt.js → index-Cv1Tph02.js} +28 -28
- package/dist/chunks/index-Cv1Tph02.js.map +1 -0
- package/dist/chunks/{index-DpZ-Ma7M.js → index-DwvwJZOU.js} +3 -3
- package/dist/chunks/index-DwvwJZOU.js.map +1 -0
- package/dist/chunks/{index-DMShdNwY.js → index-Kfj6MVHP.js} +4 -4
- package/dist/chunks/{index-DMShdNwY.js.map → index-Kfj6MVHP.js.map} +1 -1
- package/dist/chunks/{pubmed-client-CPFYI4kR.js → pubmed-client-Cmq5_Bun.js} +2 -2
- package/dist/chunks/{pubmed-client-CPFYI4kR.js.map → pubmed-client-Cmq5_Bun.js.map} +1 -1
- package/dist/chunks/{reference-select-aEB3-5rp.js → reference-select-Afwq1-X1.js} +3 -3
- package/dist/chunks/{reference-select-aEB3-5rp.js.map → reference-select-Afwq1-X1.js.map} +1 -1
- package/dist/chunks/{style-select-CQ4BBBZJ.js → style-select-iM-Af4O2.js} +3 -3
- package/dist/chunks/{style-select-CQ4BBBZJ.js.map → style-select-iM-Af4O2.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/features/import/browser.d.ts +1 -1
- package/dist/features/import/browser.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-DpZ-Ma7M.js.map +0 -1
- package/dist/chunks/index-PkCQJBdt.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, Option } from "commander";
|
|
2
|
-
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 packageJson, u as getFulltextAttachmentTypes, v as startServerWithFileWatcher, w as BUILTIN_CONVERTER_NAMES, x as BUILTIN_CONVERTER_INFO } from "./index-
|
|
2
|
+
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 packageJson, u as getFulltextAttachmentTypes, v as startServerWithFileWatcher, w as BUILTIN_CONVERTER_NAMES, x as BUILTIN_CONVERTER_INFO } from "./index-CgOvxl5f.js";
|
|
3
3
|
import { i as isEqual, M as MANAGED_CUSTOM_FIELDS, w as writeFileAtomic, L as Library, h as CslItemSchema, p as pickDefined, a as sortOrderSchema, z as paginationOptionsSchema, F as FileWatcher, b as sortFieldSchema, y as searchSortFieldSchema } from "./file-watcher-CWHg1yol.js";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { promises, readFileSync, existsSync, mkdirSync, writeFileSync, lstatSync, unlinkSync, rmSync, symlinkSync } from "node:fs";
|
|
@@ -915,15 +915,15 @@ class OperationsLibrary {
|
|
|
915
915
|
}
|
|
916
916
|
// High-level operations
|
|
917
917
|
async search(options) {
|
|
918
|
-
const { searchReferences } = await import("./index-
|
|
918
|
+
const { searchReferences } = await import("./index-CgOvxl5f.js").then((n) => n.H);
|
|
919
919
|
return searchReferences(this.library, options);
|
|
920
920
|
}
|
|
921
921
|
async list(options) {
|
|
922
|
-
const { listReferences } = await import("./index-
|
|
922
|
+
const { listReferences } = await import("./index-CgOvxl5f.js").then((n) => n.G);
|
|
923
923
|
return listReferences(this.library, options ?? {});
|
|
924
924
|
}
|
|
925
925
|
async cite(options) {
|
|
926
|
-
const { citeReferences } = await import("./index-
|
|
926
|
+
const { citeReferences } = await import("./index-CgOvxl5f.js").then((n) => n.F);
|
|
927
927
|
const defaultStyle = options.defaultStyle ?? this.citationConfig?.defaultStyle;
|
|
928
928
|
const cslDirectory = options.cslDirectory ?? this.citationConfig?.cslDirectory;
|
|
929
929
|
const mergedOptions = {
|
|
@@ -934,36 +934,36 @@ class OperationsLibrary {
|
|
|
934
934
|
return citeReferences(this.library, mergedOptions);
|
|
935
935
|
}
|
|
936
936
|
async import(inputs, options) {
|
|
937
|
-
const { addReferences } = await import("./index-
|
|
937
|
+
const { addReferences } = await import("./index-CgOvxl5f.js").then((n) => n.D);
|
|
938
938
|
return addReferences(inputs, this.library, options ?? {});
|
|
939
939
|
}
|
|
940
940
|
async check(options) {
|
|
941
|
-
const { checkReferences } = await import("./index-
|
|
941
|
+
const { checkReferences } = await import("./index-CgOvxl5f.js").then((n) => n.E);
|
|
942
942
|
return checkReferences(this.library, options);
|
|
943
943
|
}
|
|
944
944
|
// Attachment operations
|
|
945
945
|
async attachAdd(options) {
|
|
946
|
-
const { addAttachment: addAttachment2 } = await import("./index-
|
|
946
|
+
const { addAttachment: addAttachment2 } = await import("./index-DwvwJZOU.js");
|
|
947
947
|
return addAttachment2(this.library, options);
|
|
948
948
|
}
|
|
949
949
|
async attachList(options) {
|
|
950
|
-
const { listAttachments: listAttachments2 } = await import("./index-
|
|
950
|
+
const { listAttachments: listAttachments2 } = await import("./index-DwvwJZOU.js");
|
|
951
951
|
return listAttachments2(this.library, options);
|
|
952
952
|
}
|
|
953
953
|
async attachGet(options) {
|
|
954
|
-
const { getAttachment: getAttachment2 } = await import("./index-
|
|
954
|
+
const { getAttachment: getAttachment2 } = await import("./index-DwvwJZOU.js");
|
|
955
955
|
return getAttachment2(this.library, options);
|
|
956
956
|
}
|
|
957
957
|
async attachDetach(options) {
|
|
958
|
-
const { detachAttachment: detachAttachment2 } = await import("./index-
|
|
958
|
+
const { detachAttachment: detachAttachment2 } = await import("./index-DwvwJZOU.js");
|
|
959
959
|
return detachAttachment2(this.library, options);
|
|
960
960
|
}
|
|
961
961
|
async attachSync(options) {
|
|
962
|
-
const { syncAttachments: syncAttachments2 } = await import("./index-
|
|
962
|
+
const { syncAttachments: syncAttachments2 } = await import("./index-DwvwJZOU.js");
|
|
963
963
|
return syncAttachments2(this.library, options);
|
|
964
964
|
}
|
|
965
965
|
async attachOpen(options) {
|
|
966
|
-
const { openAttachment: openAttachment2 } = await import("./index-
|
|
966
|
+
const { openAttachment: openAttachment2 } = await import("./index-DwvwJZOU.js");
|
|
967
967
|
return openAttachment2(this.library, options);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
@@ -1828,7 +1828,7 @@ function getAttachExitCode(result) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
async function executeInteractiveSelect$3(context, config2) {
|
|
1830
1830
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
1831
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
1831
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
1832
1832
|
const allReferences = await context.library.getAll();
|
|
1833
1833
|
const identifiers = await withAlternateScreen2(
|
|
1834
1834
|
() => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
|
|
@@ -2493,7 +2493,7 @@ async function handleCheckAction(identifiers, options, globalOpts) {
|
|
|
2493
2493
|
const jsonOptions = buildJsonOptionsFromRefs(options, outputFormat, result, allRefs);
|
|
2494
2494
|
outputCheckResult(result, outputFormat, jsonOptions);
|
|
2495
2495
|
if (options.fix && result.summary.warnings > 0 && allRefs) {
|
|
2496
|
-
const { runFixInteraction } = await import("./fix-interaction-
|
|
2496
|
+
const { runFixInteraction } = await import("./fix-interaction-Va_6E2Kd.js");
|
|
2497
2497
|
const findItem = (id2) => allRefs.find((item) => item.id === id2);
|
|
2498
2498
|
const fixResult = await runFixInteraction(result.results, context.library, findItem);
|
|
2499
2499
|
const removedSuffix = fixResult.removed.length > 0 ? `, ${fixResult.removed.length} removed` : "";
|
|
@@ -2561,7 +2561,7 @@ function outputCheckError(error, format2) {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
async function selectReferencesInteractively(context, config2) {
|
|
2563
2563
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
2564
|
-
const { selectReferenceItemsOrExit } = await import("./reference-select-
|
|
2564
|
+
const { selectReferenceItemsOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
2565
2565
|
const allReferences = await context.library.getAll();
|
|
2566
2566
|
if (allReferences.length === 0) {
|
|
2567
2567
|
process.stderr.write("No references in library.\n");
|
|
@@ -2629,8 +2629,8 @@ function getCiteExitCode(result) {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
async function executeInteractiveCite(options, context, config2) {
|
|
2631
2631
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
2632
|
-
const { runCiteFlow } = await import("./index-
|
|
2633
|
-
const { buildStyleChoices, listCustomStyles } = await import("./style-select-
|
|
2632
|
+
const { runCiteFlow } = await import("./index-Kfj6MVHP.js");
|
|
2633
|
+
const { buildStyleChoices, listCustomStyles } = await import("./style-select-iM-Af4O2.js");
|
|
2634
2634
|
const { search } = await import("./file-watcher-CWHg1yol.js").then((n) => n.B);
|
|
2635
2635
|
const { tokenize } = await import("./file-watcher-CWHg1yol.js").then((n) => n.A);
|
|
2636
2636
|
const { checkTTY } = await import("./tty-BMyaEOhX.js");
|
|
@@ -7322,7 +7322,7 @@ function formatEditOutput(result) {
|
|
|
7322
7322
|
}
|
|
7323
7323
|
async function executeInteractiveEdit(options, context, config2) {
|
|
7324
7324
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
7325
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
7325
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
7326
7326
|
const allReferences = await context.library.getAll();
|
|
7327
7327
|
const identifiers = await withAlternateScreen2(
|
|
7328
7328
|
() => selectReferencesOrExit(allReferences, { multiSelect: true }, config2.cli.tui)
|
|
@@ -10898,7 +10898,7 @@ function getFulltextExitCode(result) {
|
|
|
10898
10898
|
}
|
|
10899
10899
|
async function executeInteractiveSelect$2(context, config2, multiSelect = false) {
|
|
10900
10900
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
10901
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
10901
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
10902
10902
|
const allReferences = await context.library.getAll();
|
|
10903
10903
|
const identifiers = await withAlternateScreen2(
|
|
10904
10904
|
() => selectReferencesOrExit(allReferences, { multiSelect }, config2.cli.tui)
|
|
@@ -32555,7 +32555,7 @@ async function mcpStart(options) {
|
|
|
32555
32555
|
async function executeRemove(options, context) {
|
|
32556
32556
|
const { identifier, idType = "id", fulltextDirectory, deleteFulltext = false } = options;
|
|
32557
32557
|
if (context.mode === "local" && deleteFulltext && fulltextDirectory) {
|
|
32558
|
-
const { removeReference } = await import("./index-
|
|
32558
|
+
const { removeReference } = await import("./index-CgOvxl5f.js").then((n) => n.A);
|
|
32559
32559
|
return removeReference(context.library, {
|
|
32560
32560
|
identifier,
|
|
32561
32561
|
idType,
|
|
@@ -32610,7 +32610,7 @@ Continue?`;
|
|
|
32610
32610
|
}
|
|
32611
32611
|
async function executeInteractiveRemove(context, config2) {
|
|
32612
32612
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
32613
|
-
const { selectReferenceItemsOrExit } = await import("./reference-select-
|
|
32613
|
+
const { selectReferenceItemsOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
32614
32614
|
const allReferences = await context.library.getAll();
|
|
32615
32615
|
const selectedItems = await withAlternateScreen2(
|
|
32616
32616
|
() => selectReferenceItemsOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
|
|
@@ -32835,7 +32835,7 @@ async function executeInteractiveSearch(options, context, config2) {
|
|
|
32835
32835
|
validateInteractiveOptions(options);
|
|
32836
32836
|
const { checkTTY } = await import("./tty-BMyaEOhX.js");
|
|
32837
32837
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
32838
|
-
const { runSearchFlow } = await import("./index-
|
|
32838
|
+
const { runSearchFlow } = await import("./index-Kfj6MVHP.js");
|
|
32839
32839
|
const { search } = await import("./file-watcher-CWHg1yol.js").then((n) => n.B);
|
|
32840
32840
|
const { tokenize } = await import("./file-watcher-CWHg1yol.js").then((n) => n.A);
|
|
32841
32841
|
checkTTY();
|
|
@@ -32854,7 +32854,7 @@ async function executeInteractiveSearch(options, context, config2) {
|
|
|
32854
32854
|
})
|
|
32855
32855
|
);
|
|
32856
32856
|
if (result.selectedItems && !result.cancelled) {
|
|
32857
|
-
const { isSideEffectAction } = await import("./action-menu-
|
|
32857
|
+
const { isSideEffectAction } = await import("./action-menu-CjmHSfmi.js");
|
|
32858
32858
|
if (isSideEffectAction(result.action)) {
|
|
32859
32859
|
await executeSideEffectAction(result.action, result.selectedItems, context, config2);
|
|
32860
32860
|
return { output: "", cancelled: false, action: result.action };
|
|
@@ -33152,7 +33152,7 @@ function formatShowOutput(item, options, attachmentsDirectory) {
|
|
|
33152
33152
|
}
|
|
33153
33153
|
async function executeInteractiveSelect$1(context, config2) {
|
|
33154
33154
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
33155
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
33155
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
33156
33156
|
const allReferences = await context.library.getAll();
|
|
33157
33157
|
const identifiers = await withAlternateScreen2(
|
|
33158
33158
|
() => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
|
|
@@ -33401,7 +33401,7 @@ function formatUpdateOutput(result, identifier) {
|
|
|
33401
33401
|
}
|
|
33402
33402
|
async function executeInteractiveUpdate(context, config2) {
|
|
33403
33403
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
33404
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
33404
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
33405
33405
|
const allReferences = await context.library.getAll();
|
|
33406
33406
|
const identifiers = await withAlternateScreen2(
|
|
33407
33407
|
() => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
|
|
@@ -33696,7 +33696,7 @@ function getUrlExitCode(result) {
|
|
|
33696
33696
|
}
|
|
33697
33697
|
async function executeInteractiveSelect(context, config2) {
|
|
33698
33698
|
const { withAlternateScreen: withAlternateScreen2 } = await Promise.resolve().then(() => alternateScreen);
|
|
33699
|
-
const { selectReferencesOrExit } = await import("./reference-select-
|
|
33699
|
+
const { selectReferencesOrExit } = await import("./reference-select-Afwq1-X1.js");
|
|
33700
33700
|
const allReferences = await context.library.getAll();
|
|
33701
33701
|
const identifiers = await withAlternateScreen2(
|
|
33702
33702
|
() => selectReferencesOrExit(allReferences, { multiSelect: false }, config2.cli.tui)
|
|
@@ -34317,7 +34317,7 @@ function shouldAutoFetch(cliFlag, configEnabled) {
|
|
|
34317
34317
|
return configEnabled;
|
|
34318
34318
|
}
|
|
34319
34319
|
async function performAutoFetch(addedItems, context, config2) {
|
|
34320
|
-
const { fulltextFetch: fulltextFetch2 } = await import("./index-
|
|
34320
|
+
const { fulltextFetch: fulltextFetch2 } = await import("./index-CgOvxl5f.js").then((n) => n.z);
|
|
34321
34321
|
const fetchResults = await autoFetchFulltext(addedItems, context, {
|
|
34322
34322
|
fulltextConfig: config2.fulltext,
|
|
34323
34323
|
fulltextDirectory: config2.attachments.directory,
|
|
@@ -34636,4 +34636,4 @@ export {
|
|
|
34636
34636
|
restoreStdinAfterInk as r,
|
|
34637
34637
|
syncAttachments as s
|
|
34638
34638
|
};
|
|
34639
|
-
//# sourceMappingURL=index-
|
|
34639
|
+
//# sourceMappingURL=index-Cv1Tph02.js.map
|