@ncukondo/reference-manager 0.16.0 → 0.17.0

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 (84) hide show
  1. package/dist/chunks/{file-watcher-B_WpVHSV.js → file-watcher-CrsNHUpz.js} +81 -29
  2. package/dist/chunks/file-watcher-CrsNHUpz.js.map +1 -0
  3. package/dist/chunks/format-CduFas9k.js +934 -0
  4. package/dist/chunks/format-CduFas9k.js.map +1 -0
  5. package/dist/chunks/{index-DHgeuWGP.js → index-B4gr0P83.js} +16 -20
  6. package/dist/chunks/{index-DHgeuWGP.js.map → index-B4gr0P83.js.map} +1 -1
  7. package/dist/chunks/{index-CEYp8OSj.js → index-CfuE2EuX.js} +6 -80
  8. package/dist/chunks/index-CfuE2EuX.js.map +1 -0
  9. package/dist/chunks/{index-4SVOiraD.js → index-CqrsgD_G.js} +1026 -177
  10. package/dist/chunks/index-CqrsgD_G.js.map +1 -0
  11. package/dist/chunks/{index-Bzl4_3Ki.js → index-D_UafVdu.js} +2 -2
  12. package/dist/chunks/index-D_UafVdu.js.map +1 -0
  13. package/dist/chunks/{loader-DuhmXjiI.js → loader-BN5sS7lg.js} +2 -2
  14. package/dist/chunks/{loader-DuhmXjiI.js.map → loader-BN5sS7lg.js.map} +1 -1
  15. package/dist/chunks/{reference-select-CgM-RBIa.js → reference-select-DbnF3oWs.js} +4 -16
  16. package/dist/chunks/reference-select-DbnF3oWs.js.map +1 -0
  17. package/dist/chunks/{style-select-tmKOHx_B.js → style-select-CbV5k3AV.js} +3 -3
  18. package/dist/chunks/{style-select-tmKOHx_B.js.map → style-select-CbV5k3AV.js.map} +1 -1
  19. package/dist/cli/commands/edit.d.ts +24 -3
  20. package/dist/cli/commands/edit.d.ts.map +1 -1
  21. package/dist/cli/commands/update.d.ts +1 -1
  22. package/dist/cli/commands/update.d.ts.map +1 -1
  23. package/dist/cli.js +2 -2
  24. package/dist/core/csl-json/types.d.ts +0 -12
  25. package/dist/core/csl-json/types.d.ts.map +1 -1
  26. package/dist/core/library-interface.d.ts +14 -2
  27. package/dist/core/library-interface.d.ts.map +1 -1
  28. package/dist/core/library.d.ts +10 -1
  29. package/dist/core/library.d.ts.map +1 -1
  30. package/dist/features/edit/edit-session.d.ts +4 -0
  31. package/dist/features/edit/edit-session.d.ts.map +1 -1
  32. package/dist/features/edit/edit-validator.d.ts +19 -0
  33. package/dist/features/edit/edit-validator.d.ts.map +1 -0
  34. package/dist/features/edit/field-transformer.d.ts +4 -0
  35. package/dist/features/edit/field-transformer.d.ts.map +1 -1
  36. package/dist/features/edit/index.d.ts +2 -1
  37. package/dist/features/edit/index.d.ts.map +1 -1
  38. package/dist/features/edit/json-serializer.d.ts +9 -0
  39. package/dist/features/edit/json-serializer.d.ts.map +1 -1
  40. package/dist/features/edit/validation-prompt.d.ts +17 -0
  41. package/dist/features/edit/validation-prompt.d.ts.map +1 -0
  42. package/dist/features/edit/yaml-serializer.d.ts +10 -0
  43. package/dist/features/edit/yaml-serializer.d.ts.map +1 -1
  44. package/dist/features/fulltext/index.d.ts +0 -1
  45. package/dist/features/fulltext/index.d.ts.map +1 -1
  46. package/dist/features/interactive/apps/runCiteFlow.d.ts +1 -1
  47. package/dist/features/interactive/apps/runCiteFlow.d.ts.map +1 -1
  48. package/dist/features/interactive/apps/runSearchFlow.d.ts.map +1 -1
  49. package/dist/features/interactive/components/SearchableMultiSelect.d.ts.map +1 -1
  50. package/dist/features/interactive/components/index.d.ts +1 -0
  51. package/dist/features/interactive/components/index.d.ts.map +1 -1
  52. package/dist/features/interactive/components/layout.d.ts +23 -0
  53. package/dist/features/interactive/components/layout.d.ts.map +1 -0
  54. package/dist/features/interactive/search-prompt.d.ts +2 -15
  55. package/dist/features/interactive/search-prompt.d.ts.map +1 -1
  56. package/dist/features/operations/change-details.d.ts +27 -0
  57. package/dist/features/operations/change-details.d.ts.map +1 -0
  58. package/dist/features/operations/json-output.d.ts +2 -0
  59. package/dist/features/operations/json-output.d.ts.map +1 -1
  60. package/dist/features/operations/remove.d.ts +0 -1
  61. package/dist/features/operations/remove.d.ts.map +1 -1
  62. package/dist/features/operations/update.d.ts +4 -2
  63. package/dist/features/operations/update.d.ts.map +1 -1
  64. package/dist/index.js +16 -15
  65. package/dist/index.js.map +1 -1
  66. package/dist/server.js +2 -2
  67. package/dist/utils/index.d.ts +1 -1
  68. package/dist/utils/index.d.ts.map +1 -1
  69. package/dist/utils/object.d.ts +5 -0
  70. package/dist/utils/object.d.ts.map +1 -1
  71. package/package.json +1 -1
  72. package/dist/chunks/alternate-screen-DcxkOKfW.js +0 -19
  73. package/dist/chunks/alternate-screen-DcxkOKfW.js.map +0 -1
  74. package/dist/chunks/file-watcher-B_WpVHSV.js.map +0 -1
  75. package/dist/chunks/format-C6FA-7hE.js +0 -397
  76. package/dist/chunks/format-C6FA-7hE.js.map +0 -1
  77. package/dist/chunks/index-4SVOiraD.js.map +0 -1
  78. package/dist/chunks/index-Bzl4_3Ki.js.map +0 -1
  79. package/dist/chunks/index-CEYp8OSj.js.map +0 -1
  80. package/dist/chunks/jsx-runtime-Q5cUjSur.js +0 -322
  81. package/dist/chunks/jsx-runtime-Q5cUjSur.js.map +0 -1
  82. package/dist/chunks/reference-select-CgM-RBIa.js.map +0 -1
  83. package/dist/features/fulltext/manager.d.ts +0 -109
  84. package/dist/features/fulltext/manager.d.ts.map +0 -1
@@ -1,109 +0,0 @@
1
- /**
2
- * Fulltext file management
3
- */
4
- import type { CslItem } from "../../core/csl-json/types.js";
5
- import type { FulltextType } from "./types.js";
6
- /**
7
- * Error thrown when fulltext I/O operation fails
8
- */
9
- export declare class FulltextIOError extends Error {
10
- readonly cause?: Error | undefined;
11
- constructor(message: string, cause?: Error | undefined);
12
- }
13
- /**
14
- * Error thrown when trying to detach non-attached fulltext
15
- */
16
- export declare class FulltextNotAttachedError extends Error {
17
- readonly itemId: string;
18
- readonly type: FulltextType;
19
- constructor(itemId: string, type: FulltextType);
20
- }
21
- /**
22
- * Options for attachFile
23
- */
24
- export interface AttachOptions {
25
- /** Move file instead of copy (default: false) */
26
- move?: boolean;
27
- /** Overwrite existing attachment without confirmation (default: false) */
28
- force?: boolean;
29
- }
30
- /**
31
- * Result of attachFile operation
32
- */
33
- export interface AttachResult {
34
- /** Generated filename */
35
- filename: string;
36
- /** Existing filename if already attached (when force=false) */
37
- existingFile?: string;
38
- /** Whether existing file was overwritten */
39
- overwritten: boolean;
40
- /** Old filename that was deleted (when force=true and filename changed) */
41
- deletedOldFile?: string;
42
- }
43
- /**
44
- * Options for detachFile
45
- */
46
- export interface DetachOptions {
47
- /** Delete file from disk (default: false, metadata-only detach) */
48
- removeFiles?: boolean;
49
- }
50
- /**
51
- * Result of detachFile operation
52
- */
53
- export interface DetachResult {
54
- /** Detached filename */
55
- filename: string;
56
- /** Whether file was deleted from disk */
57
- deleted: boolean;
58
- }
59
- /**
60
- * Manages fulltext file operations
61
- */
62
- export declare class FulltextManager {
63
- private readonly fulltextDirectory;
64
- constructor(fulltextDirectory: string);
65
- /**
66
- * Ensure the fulltext directory exists
67
- */
68
- ensureDirectory(): Promise<void>;
69
- /**
70
- * Attach a file to a reference
71
- */
72
- attachFile(item: CslItem, sourcePath: string, type: FulltextType, options?: AttachOptions): Promise<AttachResult>;
73
- /**
74
- * Validate that source file exists
75
- */
76
- private validateSourceFile;
77
- /**
78
- * Delete old file if force mode and filename changed
79
- * @returns Deleted filename or undefined
80
- */
81
- private deleteOldFileIfNeeded;
82
- /**
83
- * Copy or move file to destination
84
- */
85
- private copyOrMoveFile;
86
- /**
87
- * Get the full path for an attached file
88
- * @returns Full path or null if not attached
89
- */
90
- getFilePath(item: CslItem, type: FulltextType): string | null;
91
- /**
92
- * Detach a file from a reference
93
- */
94
- detachFile(item: CslItem, type: FulltextType, options?: DetachOptions): Promise<DetachResult>;
95
- /**
96
- * Get list of attached fulltext types
97
- */
98
- getAttachedTypes(item: CslItem): FulltextType[];
99
- /**
100
- * Check if item has attachment
101
- * @param type Optional type to check; if omitted, checks for any attachment
102
- */
103
- hasAttachment(item: CslItem, type?: FulltextType): boolean;
104
- /**
105
- * Get existing filename from item metadata
106
- */
107
- private getExistingFilename;
108
- }
109
- //# sourceMappingURL=manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/features/fulltext/manager.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;aAGtB,KAAK,CAAC,EAAE,KAAK;gBAD7B,OAAO,EAAE,MAAM,EACC,KAAK,CAAC,EAAE,KAAK,YAAA;CAKhC;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;aAE/B,MAAM,EAAE,MAAM;aACd,IAAI,EAAE,YAAY;gBADlB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY;CAKrC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iDAAiD;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,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