@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.
- package/dist/chunks/{file-watcher-B_WpVHSV.js → file-watcher-CrsNHUpz.js} +81 -29
- package/dist/chunks/file-watcher-CrsNHUpz.js.map +1 -0
- package/dist/chunks/format-CduFas9k.js +934 -0
- package/dist/chunks/format-CduFas9k.js.map +1 -0
- package/dist/chunks/{index-DHgeuWGP.js → index-B4gr0P83.js} +16 -20
- package/dist/chunks/{index-DHgeuWGP.js.map → index-B4gr0P83.js.map} +1 -1
- package/dist/chunks/{index-CEYp8OSj.js → index-CfuE2EuX.js} +6 -80
- package/dist/chunks/index-CfuE2EuX.js.map +1 -0
- package/dist/chunks/{index-4SVOiraD.js → index-CqrsgD_G.js} +1026 -177
- package/dist/chunks/index-CqrsgD_G.js.map +1 -0
- package/dist/chunks/{index-Bzl4_3Ki.js → index-D_UafVdu.js} +2 -2
- package/dist/chunks/index-D_UafVdu.js.map +1 -0
- package/dist/chunks/{loader-DuhmXjiI.js → loader-BN5sS7lg.js} +2 -2
- package/dist/chunks/{loader-DuhmXjiI.js.map → loader-BN5sS7lg.js.map} +1 -1
- package/dist/chunks/{reference-select-CgM-RBIa.js → reference-select-DbnF3oWs.js} +4 -16
- package/dist/chunks/reference-select-DbnF3oWs.js.map +1 -0
- package/dist/chunks/{style-select-tmKOHx_B.js → style-select-CbV5k3AV.js} +3 -3
- package/dist/chunks/{style-select-tmKOHx_B.js.map → style-select-CbV5k3AV.js.map} +1 -1
- package/dist/cli/commands/edit.d.ts +24 -3
- package/dist/cli/commands/edit.d.ts.map +1 -1
- package/dist/cli/commands/update.d.ts +1 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/core/csl-json/types.d.ts +0 -12
- package/dist/core/csl-json/types.d.ts.map +1 -1
- package/dist/core/library-interface.d.ts +14 -2
- package/dist/core/library-interface.d.ts.map +1 -1
- package/dist/core/library.d.ts +10 -1
- package/dist/core/library.d.ts.map +1 -1
- package/dist/features/edit/edit-session.d.ts +4 -0
- package/dist/features/edit/edit-session.d.ts.map +1 -1
- package/dist/features/edit/edit-validator.d.ts +19 -0
- package/dist/features/edit/edit-validator.d.ts.map +1 -0
- package/dist/features/edit/field-transformer.d.ts +4 -0
- package/dist/features/edit/field-transformer.d.ts.map +1 -1
- package/dist/features/edit/index.d.ts +2 -1
- package/dist/features/edit/index.d.ts.map +1 -1
- package/dist/features/edit/json-serializer.d.ts +9 -0
- package/dist/features/edit/json-serializer.d.ts.map +1 -1
- package/dist/features/edit/validation-prompt.d.ts +17 -0
- package/dist/features/edit/validation-prompt.d.ts.map +1 -0
- package/dist/features/edit/yaml-serializer.d.ts +10 -0
- package/dist/features/edit/yaml-serializer.d.ts.map +1 -1
- package/dist/features/fulltext/index.d.ts +0 -1
- package/dist/features/fulltext/index.d.ts.map +1 -1
- package/dist/features/interactive/apps/runCiteFlow.d.ts +1 -1
- package/dist/features/interactive/apps/runCiteFlow.d.ts.map +1 -1
- package/dist/features/interactive/apps/runSearchFlow.d.ts.map +1 -1
- package/dist/features/interactive/components/SearchableMultiSelect.d.ts.map +1 -1
- package/dist/features/interactive/components/index.d.ts +1 -0
- package/dist/features/interactive/components/index.d.ts.map +1 -1
- package/dist/features/interactive/components/layout.d.ts +23 -0
- package/dist/features/interactive/components/layout.d.ts.map +1 -0
- package/dist/features/interactive/search-prompt.d.ts +2 -15
- package/dist/features/interactive/search-prompt.d.ts.map +1 -1
- package/dist/features/operations/change-details.d.ts +27 -0
- package/dist/features/operations/change-details.d.ts.map +1 -0
- package/dist/features/operations/json-output.d.ts +2 -0
- package/dist/features/operations/json-output.d.ts.map +1 -1
- package/dist/features/operations/remove.d.ts +0 -1
- package/dist/features/operations/remove.d.ts.map +1 -1
- package/dist/features/operations/update.d.ts +4 -2
- package/dist/features/operations/update.d.ts.map +1 -1
- package/dist/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/object.d.ts +5 -0
- package/dist/utils/object.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/alternate-screen-DcxkOKfW.js +0 -19
- package/dist/chunks/alternate-screen-DcxkOKfW.js.map +0 -1
- package/dist/chunks/file-watcher-B_WpVHSV.js.map +0 -1
- package/dist/chunks/format-C6FA-7hE.js +0 -397
- package/dist/chunks/format-C6FA-7hE.js.map +0 -1
- package/dist/chunks/index-4SVOiraD.js.map +0 -1
- package/dist/chunks/index-Bzl4_3Ki.js.map +0 -1
- package/dist/chunks/index-CEYp8OSj.js.map +0 -1
- package/dist/chunks/jsx-runtime-Q5cUjSur.js +0 -322
- package/dist/chunks/jsx-runtime-Q5cUjSur.js.map +0 -1
- package/dist/chunks/reference-select-CgM-RBIa.js.map +0 -1
- package/dist/features/fulltext/manager.d.ts +0 -109
- 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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