@zerowall/dsh-plugin-mineru 0.0.0-stage → 0.1.0-preview.2
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/LICENSE +21 -0
- package/README.i18n.yaml +7 -0
- package/README.md +12 -2
- package/README.zh.md +13 -0
- package/dsh.bundle.patch.yml +3 -0
- package/lib/client.js +14982 -0
- package/lib/index.js +8096 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +418 -0
- package/lib/typert.remote-client.d.ts +43 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +290 -0
- package/lib/types/client/index.d.ts +2 -0
- package/lib/types/host/content.d.ts +4 -0
- package/lib/types/host/index.d.ts +95 -0
- package/lib/types/shared/types.d.ts +77 -0
- package/lib/types.js +0 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +102 -3
- package/plugin-detail.md +7 -0
- package/plugin-detail.zh.md +7 -0
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
|
|
5
|
+
|
|
6
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_clearToken_result$schema$value
|
|
7
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_clearToken_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_clearToken_result$schema$value ??= z.object({
|
|
8
|
+
'apiBaseUrl': z.string(),
|
|
9
|
+
'tokenCredential': z.string(),
|
|
10
|
+
'mode': z.union([z.literal("auto"), z.literal("precision"), z.literal("agent")]),
|
|
11
|
+
'modelVersion': z.union([z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]),
|
|
12
|
+
'language': z.string(),
|
|
13
|
+
'enableTable': z.boolean(),
|
|
14
|
+
'enableFormula': z.boolean(),
|
|
15
|
+
'isOcr': z.boolean(),
|
|
16
|
+
'extraFormats': z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")])),
|
|
17
|
+
'timeoutMs': z.number(),
|
|
18
|
+
'pollIntervalMs': z.number(),
|
|
19
|
+
'pollJitterMs': z.number(),
|
|
20
|
+
'submitRatePerMinute': z.number(),
|
|
21
|
+
'dailyLimit': z.number(),
|
|
22
|
+
'inlineMarkdownBytes': z.number(),
|
|
23
|
+
'artifactRootName': z.string(),
|
|
24
|
+
'api': z.union([z.literal("precision"), z.literal("agent"), z.literal("local")]),
|
|
25
|
+
'tokenConfigured': z.boolean(),
|
|
26
|
+
'tokenManagementUrl': z.string(),
|
|
27
|
+
'available': z.boolean(),
|
|
28
|
+
'registeredTools': z.array(z.string()),
|
|
29
|
+
}))
|
|
30
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_getConfigStatus_result$schema$value
|
|
31
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_getConfigStatus_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_getConfigStatus_result$schema$value ??= z.object({
|
|
32
|
+
'apiBaseUrl': z.string(),
|
|
33
|
+
'tokenCredential': z.string(),
|
|
34
|
+
'mode': z.union([z.literal("auto"), z.literal("precision"), z.literal("agent")]),
|
|
35
|
+
'modelVersion': z.union([z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]),
|
|
36
|
+
'language': z.string(),
|
|
37
|
+
'enableTable': z.boolean(),
|
|
38
|
+
'enableFormula': z.boolean(),
|
|
39
|
+
'isOcr': z.boolean(),
|
|
40
|
+
'extraFormats': z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")])),
|
|
41
|
+
'timeoutMs': z.number(),
|
|
42
|
+
'pollIntervalMs': z.number(),
|
|
43
|
+
'pollJitterMs': z.number(),
|
|
44
|
+
'submitRatePerMinute': z.number(),
|
|
45
|
+
'dailyLimit': z.number(),
|
|
46
|
+
'inlineMarkdownBytes': z.number(),
|
|
47
|
+
'artifactRootName': z.string(),
|
|
48
|
+
'api': z.union([z.literal("precision"), z.literal("agent"), z.literal("local")]),
|
|
49
|
+
'tokenConfigured': z.boolean(),
|
|
50
|
+
'tokenManagementUrl': z.string(),
|
|
51
|
+
'available': z.boolean(),
|
|
52
|
+
'registeredTools': z.array(z.string()),
|
|
53
|
+
}))
|
|
54
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0$schema$value
|
|
55
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0$schema$value ??= z.string())
|
|
56
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_result$schema$value
|
|
57
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_setToken_result$schema$value ??= z.object({
|
|
58
|
+
'apiBaseUrl': z.string(),
|
|
59
|
+
'tokenCredential': z.string(),
|
|
60
|
+
'mode': z.union([z.literal("auto"), z.literal("precision"), z.literal("agent")]),
|
|
61
|
+
'modelVersion': z.union([z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]),
|
|
62
|
+
'language': z.string(),
|
|
63
|
+
'enableTable': z.boolean(),
|
|
64
|
+
'enableFormula': z.boolean(),
|
|
65
|
+
'isOcr': z.boolean(),
|
|
66
|
+
'extraFormats': z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")])),
|
|
67
|
+
'timeoutMs': z.number(),
|
|
68
|
+
'pollIntervalMs': z.number(),
|
|
69
|
+
'pollJitterMs': z.number(),
|
|
70
|
+
'submitRatePerMinute': z.number(),
|
|
71
|
+
'dailyLimit': z.number(),
|
|
72
|
+
'inlineMarkdownBytes': z.number(),
|
|
73
|
+
'artifactRootName': z.string(),
|
|
74
|
+
'api': z.union([z.literal("precision"), z.literal("agent"), z.literal("local")]),
|
|
75
|
+
'tokenConfigured': z.boolean(),
|
|
76
|
+
'tokenManagementUrl': z.string(),
|
|
77
|
+
'available': z.boolean(),
|
|
78
|
+
'registeredTools': z.array(z.string()),
|
|
79
|
+
}))
|
|
80
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_testAgent_result$schema$value
|
|
81
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_testAgent_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_testAgent_result$schema$value ??= z.object({
|
|
82
|
+
'ok': z.literal(true),
|
|
83
|
+
'api': z.literal("agent"),
|
|
84
|
+
}))
|
|
85
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_testConnection_result$schema$value
|
|
86
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_testConnection_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_testConnection_result$schema$value ??= z.object({
|
|
87
|
+
'ok': z.literal(true),
|
|
88
|
+
'api': z.union([z.literal("precision"), z.literal("agent"), z.literal("local")]),
|
|
89
|
+
'tokenConfigured': z.boolean(),
|
|
90
|
+
}))
|
|
91
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_testToken_result$schema$value
|
|
92
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_testToken_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_testToken_result$schema$value ??= z.object({
|
|
93
|
+
'ok': z.literal(true),
|
|
94
|
+
'api': z.literal("precision"),
|
|
95
|
+
}))
|
|
96
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0$schema$value
|
|
97
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0$schema$value ??= z.object({
|
|
98
|
+
'apiBaseUrl': z.union([z.undefined(), z.string()]).optional(),
|
|
99
|
+
'tokenCredential': z.union([z.undefined(), z.string()]).optional(),
|
|
100
|
+
'mode': z.union([z.undefined(), z.literal("auto"), z.literal("precision"), z.literal("agent")]).optional(),
|
|
101
|
+
'modelVersion': z.union([z.undefined(), z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]).optional(),
|
|
102
|
+
'language': z.union([z.undefined(), z.string()]).optional(),
|
|
103
|
+
'enableTable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
104
|
+
'enableFormula': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
105
|
+
'isOcr': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
106
|
+
'extraFormats': z.union([z.undefined(), z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")]))]).optional(),
|
|
107
|
+
'timeoutMs': z.union([z.undefined(), z.number()]).optional(),
|
|
108
|
+
'pollIntervalMs': z.union([z.undefined(), z.number()]).optional(),
|
|
109
|
+
'pollJitterMs': z.union([z.undefined(), z.number()]).optional(),
|
|
110
|
+
'submitRatePerMinute': z.union([z.undefined(), z.number()]).optional(),
|
|
111
|
+
'dailyLimit': z.union([z.undefined(), z.number()]).optional(),
|
|
112
|
+
'inlineMarkdownBytes': z.union([z.undefined(), z.number()]).optional(),
|
|
113
|
+
'artifactRootName': z.union([z.undefined(), z.string()]).optional(),
|
|
114
|
+
}))
|
|
115
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_result$schema$value
|
|
116
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_result$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_result$schema$value ??= z.object({
|
|
117
|
+
'apiBaseUrl': z.string(),
|
|
118
|
+
'tokenCredential': z.string(),
|
|
119
|
+
'mode': z.union([z.literal("auto"), z.literal("precision"), z.literal("agent")]),
|
|
120
|
+
'modelVersion': z.union([z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]),
|
|
121
|
+
'language': z.string(),
|
|
122
|
+
'enableTable': z.boolean(),
|
|
123
|
+
'enableFormula': z.boolean(),
|
|
124
|
+
'isOcr': z.boolean(),
|
|
125
|
+
'extraFormats': z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")])),
|
|
126
|
+
'timeoutMs': z.number(),
|
|
127
|
+
'pollIntervalMs': z.number(),
|
|
128
|
+
'pollJitterMs': z.number(),
|
|
129
|
+
'submitRatePerMinute': z.number(),
|
|
130
|
+
'dailyLimit': z.number(),
|
|
131
|
+
'inlineMarkdownBytes': z.number(),
|
|
132
|
+
'artifactRootName': z.string(),
|
|
133
|
+
'api': z.union([z.literal("precision"), z.literal("agent"), z.literal("local")]),
|
|
134
|
+
'tokenConfigured': z.boolean(),
|
|
135
|
+
'tokenManagementUrl': z.string(),
|
|
136
|
+
'available': z.boolean(),
|
|
137
|
+
'registeredTools': z.array(z.string()),
|
|
138
|
+
}))
|
|
139
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0_strict$schema$value
|
|
140
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0_strict$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0_strict$schema$value ??= z.string())
|
|
141
|
+
let _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0_strict$schema$value
|
|
142
|
+
const _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0_strict$schema = () => (_zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0_strict$schema$value ??= z.strictObject({
|
|
143
|
+
'apiBaseUrl': z.union([z.undefined(), z.string()]).optional(),
|
|
144
|
+
'tokenCredential': z.union([z.undefined(), z.string()]).optional(),
|
|
145
|
+
'mode': z.union([z.undefined(), z.literal("auto"), z.literal("precision"), z.literal("agent")]).optional(),
|
|
146
|
+
'modelVersion': z.union([z.undefined(), z.literal("pipeline"), z.literal("vlm"), z.literal("MinerU-HTML")]).optional(),
|
|
147
|
+
'language': z.union([z.undefined(), z.string()]).optional(),
|
|
148
|
+
'enableTable': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
149
|
+
'enableFormula': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
150
|
+
'isOcr': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
|
|
151
|
+
'extraFormats': z.union([z.undefined(), z.array(z.union([z.literal("docx"), z.literal("html"), z.literal("latex")]))]).optional(),
|
|
152
|
+
'timeoutMs': z.union([z.undefined(), z.number()]).optional(),
|
|
153
|
+
'pollIntervalMs': z.union([z.undefined(), z.number()]).optional(),
|
|
154
|
+
'pollJitterMs': z.union([z.undefined(), z.number()]).optional(),
|
|
155
|
+
'submitRatePerMinute': z.union([z.undefined(), z.number()]).optional(),
|
|
156
|
+
'dailyLimit': z.union([z.undefined(), z.number()]).optional(),
|
|
157
|
+
'inlineMarkdownBytes': z.union([z.undefined(), z.number()]).optional(),
|
|
158
|
+
'artifactRootName': z.union([z.undefined(), z.string()]).optional(),
|
|
159
|
+
}))
|
|
160
|
+
|
|
161
|
+
const $remote = createTypertRemoteInfo({
|
|
162
|
+
package: '@zerowall/dsh-plugin-mineru',
|
|
163
|
+
methods: {
|
|
164
|
+
'zerowallMineru/clearToken': {
|
|
165
|
+
service: 'zerowallMineru',
|
|
166
|
+
invocation: { kind: 'direct' },
|
|
167
|
+
parameters: [
|
|
168
|
+
],
|
|
169
|
+
result: {
|
|
170
|
+
mode: 'strict',
|
|
171
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru/types#MineruConfigStatus',
|
|
172
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_clearToken_result$schema,
|
|
173
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean"},"enableFormula":{"type":"boolean"},"isOcr":{"type":"boolean"},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"},"api":{"type":"string","enum":["precision","agent","local"]},"tokenConfigured":{"type":"boolean"},"tokenManagementUrl":{"type":"string"},"available":{"type":"boolean"},"registeredTools":{"type":"array","items":{"type":"string"}}},"required":["apiBaseUrl","tokenCredential","mode","modelVersion","language","enableTable","enableFormula","isOcr","extraFormats","timeoutMs","pollIntervalMs","pollJitterMs","submitRatePerMinute","dailyLimit","inlineMarkdownBytes","artifactRootName","api","tokenConfigured","tokenManagementUrl","available","registeredTools"],"additionalProperties":true},
|
|
174
|
+
},
|
|
175
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":225,"column":31},
|
|
176
|
+
},
|
|
177
|
+
'zerowallMineru/getConfigStatus': {
|
|
178
|
+
service: 'zerowallMineru',
|
|
179
|
+
invocation: { kind: 'direct' },
|
|
180
|
+
parameters: [
|
|
181
|
+
],
|
|
182
|
+
result: {
|
|
183
|
+
mode: 'strict',
|
|
184
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru/types#MineruConfigStatus',
|
|
185
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_getConfigStatus_result$schema,
|
|
186
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean"},"enableFormula":{"type":"boolean"},"isOcr":{"type":"boolean"},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"},"api":{"type":"string","enum":["precision","agent","local"]},"tokenConfigured":{"type":"boolean"},"tokenManagementUrl":{"type":"string"},"available":{"type":"boolean"},"registeredTools":{"type":"array","items":{"type":"string"}}},"required":["apiBaseUrl","tokenCredential","mode","modelVersion","language","enableTable","enableFormula","isOcr","extraFormats","timeoutMs","pollIntervalMs","pollJitterMs","submitRatePerMinute","dailyLimit","inlineMarkdownBytes","artifactRootName","api","tokenConfigured","tokenManagementUrl","available","registeredTools"],"additionalProperties":true},
|
|
187
|
+
},
|
|
188
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":222,"column":36},
|
|
189
|
+
},
|
|
190
|
+
'zerowallMineru/setToken': {
|
|
191
|
+
service: 'zerowallMineru',
|
|
192
|
+
invocation: { kind: 'direct' },
|
|
193
|
+
parameters: [
|
|
194
|
+
{
|
|
195
|
+
name: 'value',
|
|
196
|
+
source: 'json',
|
|
197
|
+
codec: {
|
|
198
|
+
mode: 'strict',
|
|
199
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/setToken:value',
|
|
200
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0$schema,
|
|
201
|
+
jsonSchema: {"type":"string"},
|
|
202
|
+
},
|
|
203
|
+
strictCodec: {
|
|
204
|
+
mode: 'strict',
|
|
205
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/setToken:value',
|
|
206
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_parameter_0_strict$schema,
|
|
207
|
+
jsonSchema: {"type":"string"},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
result: {
|
|
212
|
+
mode: 'strict',
|
|
213
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru/types#MineruConfigStatus',
|
|
214
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_setToken_result$schema,
|
|
215
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean"},"enableFormula":{"type":"boolean"},"isOcr":{"type":"boolean"},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"},"api":{"type":"string","enum":["precision","agent","local"]},"tokenConfigured":{"type":"boolean"},"tokenManagementUrl":{"type":"string"},"available":{"type":"boolean"},"registeredTools":{"type":"array","items":{"type":"string"}}},"required":["apiBaseUrl","tokenCredential","mode","modelVersion","language","enableTable","enableFormula","isOcr","extraFormats","timeoutMs","pollIntervalMs","pollJitterMs","submitRatePerMinute","dailyLimit","inlineMarkdownBytes","artifactRootName","api","tokenConfigured","tokenManagementUrl","available","registeredTools"],"additionalProperties":true},
|
|
216
|
+
},
|
|
217
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":224,"column":29},
|
|
218
|
+
},
|
|
219
|
+
'zerowallMineru/testAgent': {
|
|
220
|
+
service: 'zerowallMineru',
|
|
221
|
+
invocation: { kind: 'direct' },
|
|
222
|
+
parameters: [
|
|
223
|
+
],
|
|
224
|
+
result: {
|
|
225
|
+
mode: 'strict',
|
|
226
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/testAgent:result',
|
|
227
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_testAgent_result$schema,
|
|
228
|
+
jsonSchema: {"type":"object","properties":{"ok":{"type":"boolean","const":true},"api":{"type":"string","const":"agent"}},"required":["ok","api"],"additionalProperties":true},
|
|
229
|
+
},
|
|
230
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":276,"column":30},
|
|
231
|
+
},
|
|
232
|
+
'zerowallMineru/testConnection': {
|
|
233
|
+
service: 'zerowallMineru',
|
|
234
|
+
invocation: { kind: 'direct' },
|
|
235
|
+
parameters: [
|
|
236
|
+
],
|
|
237
|
+
result: {
|
|
238
|
+
mode: 'strict',
|
|
239
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru/types#MineruConnectionTestResult',
|
|
240
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_testConnection_result$schema,
|
|
241
|
+
jsonSchema: {"type":"object","properties":{"ok":{"type":"boolean","const":true},"api":{"type":"string","enum":["precision","agent","local"]},"tokenConfigured":{"type":"boolean"}},"required":["ok","api","tokenConfigured"],"additionalProperties":true},
|
|
242
|
+
},
|
|
243
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":226,"column":35},
|
|
244
|
+
},
|
|
245
|
+
'zerowallMineru/testToken': {
|
|
246
|
+
service: 'zerowallMineru',
|
|
247
|
+
invocation: { kind: 'direct' },
|
|
248
|
+
parameters: [
|
|
249
|
+
],
|
|
250
|
+
result: {
|
|
251
|
+
mode: 'strict',
|
|
252
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/testToken:result',
|
|
253
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_testToken_result$schema,
|
|
254
|
+
jsonSchema: {"type":"object","properties":{"ok":{"type":"boolean","const":true},"api":{"type":"string","const":"precision"}},"required":["ok","api"],"additionalProperties":true},
|
|
255
|
+
},
|
|
256
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":263,"column":30},
|
|
257
|
+
},
|
|
258
|
+
'zerowallMineru/updateConfig': {
|
|
259
|
+
service: 'zerowallMineru',
|
|
260
|
+
invocation: { kind: 'direct' },
|
|
261
|
+
parameters: [
|
|
262
|
+
{
|
|
263
|
+
name: 'input',
|
|
264
|
+
source: 'json',
|
|
265
|
+
codec: {
|
|
266
|
+
mode: 'strict',
|
|
267
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/updateConfig:input',
|
|
268
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0$schema,
|
|
269
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean","enum":[false,true]},"enableFormula":{"type":"boolean","enum":[false,true]},"isOcr":{"type":"boolean","enum":[false,true]},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"}},"required":[],"additionalProperties":true},
|
|
270
|
+
},
|
|
271
|
+
strictCodec: {
|
|
272
|
+
mode: 'strict',
|
|
273
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru#zerowallMineru/updateConfig:input',
|
|
274
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_parameter_0_strict$schema,
|
|
275
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean","enum":[false,true]},"enableFormula":{"type":"boolean","enum":[false,true]},"isOcr":{"type":"boolean","enum":[false,true]},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"}},"required":[],"additionalProperties":false},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
result: {
|
|
280
|
+
mode: 'strict',
|
|
281
|
+
typeSymbol: '@zerowall/dsh-plugin-mineru/types#MineruConfigStatus',
|
|
282
|
+
create: _zerowall_dsh_plugin_mineru_zerowallMineru_updateConfig_result$schema,
|
|
283
|
+
jsonSchema: {"type":"object","properties":{"apiBaseUrl":{"type":"string"},"tokenCredential":{"type":"string"},"mode":{"type":"string","enum":["auto","precision","agent"]},"modelVersion":{"type":"string","enum":["pipeline","vlm","MinerU-HTML"]},"language":{"type":"string"},"enableTable":{"type":"boolean"},"enableFormula":{"type":"boolean"},"isOcr":{"type":"boolean"},"extraFormats":{"type":"array","items":{"type":"string","enum":["docx","html","latex"]}},"timeoutMs":{"type":"number"},"pollIntervalMs":{"type":"number"},"pollJitterMs":{"type":"number"},"submitRatePerMinute":{"type":"number"},"dailyLimit":{"type":"number"},"inlineMarkdownBytes":{"type":"number"},"artifactRootName":{"type":"string"},"api":{"type":"string","enum":["precision","agent","local"]},"tokenConfigured":{"type":"boolean"},"tokenManagementUrl":{"type":"string"},"available":{"type":"boolean"},"registeredTools":{"type":"array","items":{"type":"string"}}},"required":["apiBaseUrl","tokenCredential","mode","modelVersion","language","enableTable","enableFormula","isOcr","extraFormats","timeoutMs","pollIntervalMs","pollJitterMs","submitRatePerMinute","dailyLimit","inlineMarkdownBytes","artifactRootName","api","tokenConfigured","tokenManagementUrl","available","registeredTools"],"additionalProperties":true},
|
|
284
|
+
},
|
|
285
|
+
sourceLocation: {"file":"packages/plugin/src/host/index.ts","line":223,"column":33},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
}, z)
|
|
289
|
+
|
|
290
|
+
export const TYPERT = {
|
|
291
|
+
package: '@zerowall/dsh-plugin-mineru',
|
|
292
|
+
face: 'host',
|
|
293
|
+
schemas: [
|
|
294
|
+
],
|
|
295
|
+
get invocations() { return $remote.descriptors },
|
|
296
|
+
model: {
|
|
297
|
+
"services": [
|
|
298
|
+
{
|
|
299
|
+
"tags": [],
|
|
300
|
+
"key": "zerowallMineru",
|
|
301
|
+
"exportName": "ZeroWallMineruService",
|
|
302
|
+
"members": [
|
|
303
|
+
{
|
|
304
|
+
"kind": "method",
|
|
305
|
+
"name": "getConfigStatus",
|
|
306
|
+
"signature": "@Remote('getConfigStatus') async getConfigStatus(): Promise<MineruConfigStatus>"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "method",
|
|
310
|
+
"name": "updateConfig",
|
|
311
|
+
"signature": "@Remote('updateConfig') async updateConfig(input: Partial<MineruConfig>): Promise<MineruConfigStatus>"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"kind": "method",
|
|
315
|
+
"name": "setToken",
|
|
316
|
+
"signature": "@Remote('setToken') async setToken(value: string): Promise<MineruConfigStatus>"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "method",
|
|
320
|
+
"name": "clearToken",
|
|
321
|
+
"signature": "@Remote('clearToken') async clearToken(): Promise<MineruConfigStatus>"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"kind": "method",
|
|
325
|
+
"name": "testConnection",
|
|
326
|
+
"signature": "@Remote('testConnection') async testConnection(): Promise<MineruConnectionTestResult>"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"kind": "method",
|
|
330
|
+
"name": "testToken",
|
|
331
|
+
"signature": "@Remote('testToken') async testToken(): Promise<{ ok: true; api: 'precision' }>"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "method",
|
|
335
|
+
"name": "testAgent",
|
|
336
|
+
"signature": "@Remote('testAgent') async testAgent(): Promise<{ ok: true; api: 'agent' }>"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "method",
|
|
340
|
+
"name": "parse",
|
|
341
|
+
"signature": "parse(input: ParseInput): Promise<MineruParseResult>",
|
|
342
|
+
"summary": "Parse a session attachment, workspace file or document URL and retain its task for recovery.",
|
|
343
|
+
"jsDoc": "/** Parse a session attachment, workspace file or document URL and retain its task for recovery. */"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"kind": "method",
|
|
347
|
+
"name": "getRun",
|
|
348
|
+
"signature": "getRun(input: { taskId: string }): MineruParseResult | undefined"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"kind": "method",
|
|
352
|
+
"name": "listRuns",
|
|
353
|
+
"signature": "listRuns(): MineruParseResult[]"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"kind": "method",
|
|
357
|
+
"name": "task",
|
|
358
|
+
"signature": "task(input: TaskInput): Promise<MineruTaskResult>",
|
|
359
|
+
"summary": "Resume the recorded upload or poll an existing task without submitting another document.",
|
|
360
|
+
"jsDoc": "/** Resume the recorded upload or poll an existing task without submitting another document. */"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"types": [
|
|
364
|
+
{
|
|
365
|
+
"name": "MineruApi",
|
|
366
|
+
"declaration": "export type MineruApi = 'precision' | 'agent';"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "MineruArtifact",
|
|
370
|
+
"declaration": "export type MineruArtifact = { name: string; path: string; mediaType: string; bytes: number; checksum: string; kind: 'markdown' | 'json' | 'image' | 'export' | 'archive'; };"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "MineruConfig",
|
|
374
|
+
"declaration": "export type MineruConfig = { apiBaseUrl: string; tokenCredential: string; mode: MineruMode; modelVersion: MineruModelVersion; language: string; enableTable: boolean; enableFormula: boolean; isOcr: boolean; extraFormats: MineruExtraFormat[]; timeoutMs: number; pollIntervalMs: number; pollJitterMs: number; submitRatePerMinute: number; dailyLimit: number; inlineMarkdownBytes: number; artifactRootName: string; };"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "MineruConfigStatus",
|
|
378
|
+
"declaration": "export type MineruConfigStatus = MineruConfig & { api: MineruApi | 'local'; tokenConfigured: boolean; tokenManagementUrl: string; available: boolean; registeredTools: readonly string[]; };"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "MineruConnectionTestResult",
|
|
382
|
+
"declaration": "export type MineruConnectionTestResult = { ok: true; api: MineruApi | 'local'; tokenConfigured: boolean; };"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "MineruExtraFormat",
|
|
386
|
+
"declaration": "export type MineruExtraFormat = 'docx' | 'html' | 'latex';"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "MineruMode",
|
|
390
|
+
"declaration": "export type MineruMode = 'auto' | 'precision' | 'agent';"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "MineruModelVersion",
|
|
394
|
+
"declaration": "export type MineruModelVersion = 'pipeline' | 'vlm' | 'MinerU-HTML';"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "MineruParseResult",
|
|
398
|
+
"declaration": "export type MineruParseResult = { ok: true; api: MineruApi; mode: MineruMode; modelVersion: MineruModelVersion; taskId?: string; sourceName: string; runDir: string; durationMs: number; preview: { markdown: string; truncated: boolean; bytes: number; }; artifacts: MineruArtifact[]; };"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "MineruTaskResult",
|
|
402
|
+
"declaration": "export type MineruTaskResult = { ok: true; api: MineruApi; taskId: string; state: 'waiting-file' | 'pending' | 'running' | 'converting' | 'done' | 'failed'; result?: MineruParseResult; error?: string; };"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "ParseInput",
|
|
406
|
+
"declaration": "export interface ParseInput {\n sessionId: string;\n source: string;\n mode?: MineruMode;\n overrides?: Partial<MineruConfig>;\n signal?: AbortSignal;\n onTaskSubmitted?: (id: string) => Promise<void>;\n}"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "TaskInput",
|
|
410
|
+
"declaration": "export interface TaskInput {\n sessionId: string;\n taskId: string;\n api: MineruApi;\n wait: boolean;\n signal?: AbortSignal;\n}"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"events": [],
|
|
416
|
+
"objects": []
|
|
417
|
+
},
|
|
418
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
6
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
7
|
+
import type { MineruConfig, MineruConfigStatus, MineruConnectionTestResult } from '@zerowall/dsh-plugin-mineru/types'
|
|
8
|
+
|
|
9
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
10
|
+
interface TypertRemoteNamespace$7a65726f77616c6c4d696e657275 {
|
|
11
|
+
clearToken: () => Promise<RemoteResult<MineruConfigStatus>>
|
|
12
|
+
getConfigStatus: () => Promise<RemoteResult<MineruConfigStatus>>
|
|
13
|
+
setToken: (value: string) => Promise<RemoteResult<MineruConfigStatus>>
|
|
14
|
+
testAgent: () => Promise<RemoteResult<{ ok: true; api: 'agent'; }>>
|
|
15
|
+
testConnection: () => Promise<RemoteResult<MineruConnectionTestResult>>
|
|
16
|
+
testToken: () => Promise<RemoteResult<{ ok: true; api: 'precision'; }>>
|
|
17
|
+
updateConfig: (input: Partial<MineruConfig>) => Promise<RemoteResult<MineruConfigStatus>>
|
|
18
|
+
}
|
|
19
|
+
interface TypertRemoteMap {
|
|
20
|
+
'zerowallMineru/clearToken': () => Promise<RemoteResult<MineruConfigStatus>>
|
|
21
|
+
'zerowallMineru/getConfigStatus': () => Promise<RemoteResult<MineruConfigStatus>>
|
|
22
|
+
'zerowallMineru/setToken': (value: string) => Promise<RemoteResult<MineruConfigStatus>>
|
|
23
|
+
'zerowallMineru/testAgent': () => Promise<RemoteResult<{ ok: true; api: 'agent'; }>>
|
|
24
|
+
'zerowallMineru/testConnection': () => Promise<RemoteResult<MineruConnectionTestResult>>
|
|
25
|
+
'zerowallMineru/testToken': () => Promise<RemoteResult<{ ok: true; api: 'precision'; }>>
|
|
26
|
+
'zerowallMineru/updateConfig': (input: Partial<MineruConfig>) => Promise<RemoteResult<MineruConfigStatus>>
|
|
27
|
+
}
|
|
28
|
+
interface TypertRemoteNamespaceMap {
|
|
29
|
+
'zerowallMineru': TypertRemoteNamespace$7a65726f77616c6c4d696e657275
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
34
|
+
readonly 'zerowallMineru/clearToken': TypertRemoteMethod<{ }, MineruConfigStatus>
|
|
35
|
+
readonly 'zerowallMineru/getConfigStatus': TypertRemoteMethod<{ }, MineruConfigStatus>
|
|
36
|
+
readonly 'zerowallMineru/setToken': TypertRemoteMethod<{ readonly 'value': string }, MineruConfigStatus>
|
|
37
|
+
readonly 'zerowallMineru/testAgent': TypertRemoteMethod<{ }, { ok: true; api: 'agent'; }>
|
|
38
|
+
readonly 'zerowallMineru/testConnection': TypertRemoteMethod<{ }, MineruConnectionTestResult>
|
|
39
|
+
readonly 'zerowallMineru/testToken': TypertRemoteMethod<{ }, { ok: true; api: 'precision'; }>
|
|
40
|
+
readonly 'zerowallMineru/updateConfig': TypertRemoteMethod<{ readonly 'input': Partial<MineruConfig> }, MineruConfigStatus>
|
|
41
|
+
}>
|
|
42
|
+
export default TYPERT_REMOTE
|
|
43
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typert.remote-client.d.ts","names":["clearToken","getConfigStatus","setToken","testAgent","testConnection","testToken","updateConfig"],"sources":["../src/host/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;IAgO8BA,U;IAHKC,e;IAEPC,Q;IAoDCC,S;IAlDKC,c;IAqCLC,S;IAxCGC,Y;;;IAEFN,2B;IAHKC,gC;IAEPC,yB;IAoDCC,0B;IAlDKC,+B;IAqCLC,0B;IAxCGC,6B","ignoreList":[]}
|