@helloxiaohu/plugin-mineru 0.0.12 → 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.
@@ -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;;;OAGG;IACY,oBAAoB,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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.12",
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": [