@shisho/plugin-sdk 0.3.1 → 0.5.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/hooks.d.ts +4 -1
- package/manifest.d.ts +4 -1
- package/package.json +2 -2
package/hooks.d.ts
CHANGED
|
@@ -34,7 +34,10 @@ export interface SearchContext {
|
|
|
34
34
|
identifiers?: Array<{ type: string; value: string }>;
|
|
35
35
|
/** Read-only file metadata for matching hints. Not user-editable. */
|
|
36
36
|
file?: {
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* File type (e.g., "epub", "cbz", "m4b", "pdf"): the extension, except
|
|
39
|
+
* "kepub" for a .kepub.epub and "mobi" for .azw and .prc files.
|
|
40
|
+
*/
|
|
38
41
|
fileType?: string;
|
|
39
42
|
/**
|
|
40
43
|
* Absolute path to the enrichment target file. The runtime grants the
|
package/manifest.d.ts
CHANGED
|
@@ -40,7 +40,10 @@ export type MetadataField =
|
|
|
40
40
|
/** Metadata enricher capability declaration. */
|
|
41
41
|
export interface MetadataEnricherCap {
|
|
42
42
|
description?: string;
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* File types this enricher applies to (e.g., ["epub", "cbz"]). "epub" also
|
|
45
|
+
* covers KePub files, whose file type is "kepub".
|
|
46
|
+
*/
|
|
44
47
|
fileTypes?: string[];
|
|
45
48
|
/**
|
|
46
49
|
* Metadata fields this enricher may set.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shisho/plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TypeScript SDK for Shisho plugin development — types, host API declarations, and test utilities",
|
|
5
5
|
"homepage": "https://github.com/shishobooks/shisho/blob/master/packages/plugin-sdk/README.md",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"directory": "packages/plugin-sdk"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"fast-xml-parser": "^5.11.
|
|
29
|
+
"fast-xml-parser": "^5.11.2",
|
|
30
30
|
"linkedom": "^0.18.13",
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
}
|