@ncukondo/reference-manager 0.23.2 → 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.
- package/dist/chunks/{action-menu-t3Dz4j_h.js → action-menu-D0d5ph_3.js} +2 -2
- package/dist/chunks/{action-menu-t3Dz4j_h.js.map → action-menu-D0d5ph_3.js.map} +1 -1
- package/dist/chunks/{format-Bp26FG4I.js → format-CH02ev3l.js} +2 -2
- package/dist/chunks/{format-Bp26FG4I.js.map → format-CH02ev3l.js.map} +1 -1
- package/dist/chunks/{index-DUFYNR2K.js → index-CFwvg1Ju.js} +20 -20
- package/dist/chunks/{index-DUFYNR2K.js.map → index-CFwvg1Ju.js.map} +1 -1
- package/dist/chunks/{index-DAoyCWtW.js → index-Dktc7Q6f.js} +4 -4
- package/dist/chunks/{index-DAoyCWtW.js.map → index-Dktc7Q6f.js.map} +1 -1
- package/dist/chunks/{index-BxREZKXb.js → index-Dotd2g8H.js} +2 -2
- package/dist/chunks/index-Dotd2g8H.js.map +1 -0
- package/dist/chunks/{loader-CzviN_sy.js → loader-DOYCI2xk.js} +4 -2
- package/dist/chunks/loader-DOYCI2xk.js.map +1 -0
- package/dist/chunks/{reference-select-QtclFeCr.js → reference-select-D_Clnq0X.js} +3 -3
- package/dist/chunks/{reference-select-QtclFeCr.js.map → reference-select-D_Clnq0X.js.map} +1 -1
- package/dist/chunks/{style-select-CorMfmfN.js → style-select-VJryW_Ms.js} +2 -2
- package/dist/chunks/{style-select-CorMfmfN.js.map → style-select-VJryW_Ms.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-BxREZKXb.js.map +0 -1
- package/dist/chunks/loader-CzviN_sy.js.map +0 -1
|
@@ -7,7 +7,7 @@ import * as path from "node:path";
|
|
|
7
7
|
import path__default, { join, basename, dirname } from "node:path";
|
|
8
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-
|
|
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.
|
|
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,
|
|
@@ -926,27 +926,27 @@ class OperationsLibrary {
|
|
|
926
926
|
}
|
|
927
927
|
// Attachment operations
|
|
928
928
|
async attachAdd(options) {
|
|
929
|
-
const { addAttachment: addAttachment2 } = await import("./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2342
|
-
const { buildStyleChoices, listCustomStyles } = await import("./style-select-
|
|
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-
|
|
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-
|
|
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)
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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)
|
|
@@ -33558,4 +33558,4 @@ export {
|
|
|
33558
33558
|
restoreStdinAfterInk as r,
|
|
33559
33559
|
syncAttachments as s
|
|
33560
33560
|
};
|
|
33561
|
-
//# sourceMappingURL=index-
|
|
33561
|
+
//# sourceMappingURL=index-CFwvg1Ju.js.map
|