@helloxiaohu/plugin-mineru 0.0.11 → 0.0.13
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/index.js
CHANGED
|
@@ -29,6 +29,8 @@ export declare class MinerUToolset extends BuiltinToolset<StructuredToolInterfac
|
|
|
29
29
|
/**
|
|
30
30
|
* Validate credentials for MinerU toolset
|
|
31
31
|
* Requires integration configuration to be provided
|
|
32
|
+
* Note: configService and resultParser are runtime dependencies injected by the strategy,
|
|
33
|
+
* they should not be validated here as they are not part of user credentials
|
|
32
34
|
*/
|
|
33
35
|
_validateCredentials(credentials: MinerUToolsetConfig): Promise<void>;
|
|
34
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mineru.toolset.d.ts","sourceRoot":"","sources":["../../src/lib/mineru.toolset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,yBAAyB,CAAC;CAC1C;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,cAAc,CAAC,uBAAuB,EAAE,mBAAmB,CAAC;IAC7F,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;;;OAKG;gBACS,MAAM,EAAE,mBAAmB;IAKvC
|
|
1
|
+
{"version":3,"file":"mineru.toolset.d.ts","sourceRoot":"","sources":["../../src/lib/mineru.toolset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,yBAAyB,CAAC;CAC1C;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,cAAc,CAAC,uBAAuB,EAAE,mBAAmB,CAAC;IAC7F,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;;;OAKG;gBACS,MAAM,EAAE,mBAAmB;IAKvC;;;;;OAKG;IACY,oBAAoB,CAAC,WAAW,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMpF;;;OAGG;IACY,SAAS,IAAI,OAAO,CAAC,uBAAuB,CAAC,cAAc,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;CAezF"}
|
|
@@ -18,17 +18,13 @@ export class MinerUToolset extends BuiltinToolset {
|
|
|
18
18
|
/**
|
|
19
19
|
* Validate credentials for MinerU toolset
|
|
20
20
|
* Requires integration configuration to be provided
|
|
21
|
+
* Note: configService and resultParser are runtime dependencies injected by the strategy,
|
|
22
|
+
* they should not be validated here as they are not part of user credentials
|
|
21
23
|
*/
|
|
22
24
|
async _validateCredentials(credentials) {
|
|
23
25
|
if (!credentials.integration) {
|
|
24
26
|
throw new Error('MinerU integration is required');
|
|
25
27
|
}
|
|
26
|
-
if (!credentials.configService) {
|
|
27
|
-
throw new Error('ConfigService is required');
|
|
28
|
-
}
|
|
29
|
-
if (!credentials.resultParser) {
|
|
30
|
-
throw new Error('MinerUResultParserService is required');
|
|
31
|
-
}
|
|
32
28
|
}
|
|
33
29
|
/**
|
|
34
30
|
* Initialize tools for MinerU toolset
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helloxiaohu/plugin-mineru",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"description": "MinerU PDF to Markdown converter plugin for XpertAI platform with toolset support",
|
|
6
6
|
"keywords": [
|
|
@@ -42,17 +42,18 @@
|
|
|
42
42
|
"unzipper": "0.12.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
+
"@langchain/core": "0.3.72",
|
|
46
|
+
"@langchain/langgraph": "0.4.7",
|
|
47
|
+
"@nestjs/common": "^11.1.6",
|
|
45
48
|
"@nestjs/config": "^4.0.2",
|
|
46
|
-
"zod": "3.25.67",
|
|
47
49
|
"@xpert-ai/plugin-sdk": "^3.6.2",
|
|
48
50
|
"@metad/contracts": "^3.6.2",
|
|
49
|
-
"@nestjs/common": "^11.1.6",
|
|
50
51
|
"axios": "1.12.2",
|
|
51
52
|
"nestjs-i18n": "10.5.1",
|
|
52
53
|
"chalk": "4.1.2",
|
|
53
|
-
"@langchain/core": "^0.3.72",
|
|
54
54
|
"lodash-es": "4.17.21",
|
|
55
|
-
"uuid": "8.3.2"
|
|
55
|
+
"uuid": "8.3.2",
|
|
56
|
+
"zod": "3.25.67"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@types/unzipper": "^0.10.11"
|