@ncukondo/reference-manager 0.4.0 → 0.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoDpC;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CA8BvC;AAkwBD;;GAEG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAaxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoDpC;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CA8BvC;AAmwBD;;GAEG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAaxD"}
package/dist/cli.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { Command } from "commander";
2
2
  import { ZodOptional as ZodOptional$2, z } from "zod";
3
- import { L as Library, F as FileWatcher } from "./chunks/file-watcher-B-SiUw5f.js";
3
+ import { L as Library, F as FileWatcher } from "./chunks/file-watcher-Dqkw6R7-.js";
4
4
  import { promises, existsSync, mkdtempSync, writeFileSync, readFileSync } from "node:fs";
5
5
  import * as os from "node:os";
6
6
  import { tmpdir } from "node:os";
7
7
  import * as path from "node:path";
8
8
  import { join, extname } from "node:path";
9
9
  import { mkdir, unlink, rename, copyFile, rm, readFile } from "node:fs/promises";
10
- import { u as updateReference, g as getDefaultExportFromCjs, B as BUILTIN_STYLES, a as addReferences, c as citeReferences, l as listReferences, r as removeReference, s as searchReferences, b as startServerWithFileWatcher } from "./chunks/index-DLIGxQaB.js";
10
+ import { u as updateReference, g as getDefaultExportFromCjs, B as BUILTIN_STYLES, a as addReferences, c as citeReferences, l as listReferences, r as removeReference, s as searchReferences, b as startServerWithFileWatcher } from "./chunks/index-9dyK2f9_.js";
11
11
  import process$1, { stdin, stdout } from "node:process";
12
12
  import { l as loadConfig } from "./chunks/loader-DuzyKV70.js";
13
13
  import { spawn } from "node:child_process";
14
14
  import { serve } from "@hono/node-server";
15
15
  const name = "@ncukondo/reference-manager";
16
- const version$1 = "0.4.0";
16
+ const version$1 = "0.5.1";
17
17
  const description$1 = "A local reference management tool using CSL-JSON as the single source of truth";
18
18
  const packageJson = {
19
19
  name,
@@ -21538,19 +21538,19 @@ class OperationsLibrary {
21538
21538
  }
21539
21539
  // High-level operations
21540
21540
  async search(options) {
21541
- const { searchReferences: searchReferences2 } = await import("./chunks/index-DLIGxQaB.js").then((n) => n.i);
21541
+ const { searchReferences: searchReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.i);
21542
21542
  return searchReferences2(this.library, options);
21543
21543
  }
21544
21544
  async list(options) {
21545
- const { listReferences: listReferences2 } = await import("./chunks/index-DLIGxQaB.js").then((n) => n.h);
21545
+ const { listReferences: listReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.h);
21546
21546
  return listReferences2(this.library, options ?? {});
21547
21547
  }
21548
21548
  async cite(options) {
21549
- const { citeReferences: citeReferences2 } = await import("./chunks/index-DLIGxQaB.js").then((n) => n.f);
21549
+ const { citeReferences: citeReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.f);
21550
21550
  return citeReferences2(this.library, options);
21551
21551
  }
21552
21552
  async import(inputs, options) {
21553
- const { addReferences: addReferences2 } = await import("./chunks/index-DLIGxQaB.js").then((n) => n.e);
21553
+ const { addReferences: addReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.e);
21554
21554
  return addReferences2(inputs, this.library, options ?? {});
21555
21555
  }
21556
21556
  }
@@ -22243,7 +22243,8 @@ function registerMcpCommand(program) {
22243
22243
  try {
22244
22244
  const globalOpts = program.opts();
22245
22245
  const mcpOptions = {
22246
- configPath: globalOpts.config ?? ""
22246
+ // Treat empty string as undefined to use default config path
22247
+ configPath: globalOpts.config || void 0
22247
22248
  };
22248
22249
  if (globalOpts.library !== void 0) {
22249
22250
  mcpOptions.libraryPath = globalOpts.library;