@dsh-libing/knowledge-base 0.1.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/CHANGELOG.md +16 -0
- package/README.md +80 -0
- package/cordis.patch.yml +3 -0
- package/icon.svg +6 -0
- package/lib/chunks.d.ts +8 -0
- package/lib/chunks.js +197 -0
- package/lib/client-types/client/BrowsePanel.d.ts +13 -0
- package/lib/client-types/client/Icon.d.ts +4 -0
- package/lib/client-types/client/ImageReview.d.ts +20 -0
- package/lib/client-types/client/ImportPanel.d.ts +19 -0
- package/lib/client-types/client/JobsPanel.d.ts +6 -0
- package/lib/client-types/client/KnowledgePage.d.ts +7 -0
- package/lib/client-types/client/Metadata.d.ts +10 -0
- package/lib/client-types/client/QualityReport.d.ts +6 -0
- package/lib/client-types/client/SettingsPanel.d.ts +6 -0
- package/lib/client-types/client/SourceText.d.ts +3 -0
- package/lib/client-types/client/UsageGuide.d.ts +8 -0
- package/lib/client-types/client/api.d.ts +953 -0
- package/lib/client-types/client/common.d.ts +11 -0
- package/lib/client-types/client/index.d.ts +14 -0
- package/lib/client-types/client/locales.d.ts +284 -0
- package/lib/client-types/client/searchCommand.d.ts +2 -0
- package/lib/client-types/client/useKnowledge.d.ts +251 -0
- package/lib/client-types/contract.d.ts +1197 -0
- package/lib/client-types/data.d.ts +1972 -0
- package/lib/client-types/settings.d.ts +33 -0
- package/lib/client-types/shared.d.ts +95 -0
- package/lib/client.js +305 -0
- package/lib/config.d.ts +13 -0
- package/lib/config.js +13 -0
- package/lib/contract.d.ts +1197 -0
- package/lib/contract.js +18 -0
- package/lib/data.d.ts +1972 -0
- package/lib/data.js +80 -0
- package/lib/document/convert.d.ts +5 -0
- package/lib/document/convert.js +325 -0
- package/lib/document/pdf-data.d.ts +99 -0
- package/lib/document/pdf-data.js +9 -0
- package/lib/document/pdf-layout.d.ts +24 -0
- package/lib/document/pdf-layout.js +234 -0
- package/lib/document/pdf-session.d.ts +39 -0
- package/lib/document/pdf-session.js +127 -0
- package/lib/document/pdf-vision.d.ts +26 -0
- package/lib/document/pdf-vision.js +115 -0
- package/lib/document/pdf-worker.d.ts +1 -0
- package/lib/document/pdf-worker.js +210 -0
- package/lib/document/pdf.d.ts +3 -0
- package/lib/document/pdf.js +218 -0
- package/lib/document/zip.d.ts +3 -0
- package/lib/document/zip.js +59 -0
- package/lib/figures/process.d.ts +187 -0
- package/lib/figures/process.js +159 -0
- package/lib/figures/prompts.d.ts +7 -0
- package/lib/figures/prompts.js +27 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +42 -0
- package/lib/indexes.d.ts +38 -0
- package/lib/indexes.js +101 -0
- package/lib/jobs.d.ts +2806 -0
- package/lib/jobs.js +435 -0
- package/lib/models.d.ts +24 -0
- package/lib/models.js +120 -0
- package/lib/retrieval.d.ts +209 -0
- package/lib/retrieval.js +173 -0
- package/lib/routes.d.ts +3 -0
- package/lib/routes.js +152 -0
- package/lib/runtime.d.ts +48 -0
- package/lib/runtime.js +41 -0
- package/lib/settings.d.ts +33 -0
- package/lib/settings.js +19 -0
- package/lib/shared.d.ts +95 -0
- package/lib/shared.js +17 -0
- package/lib/skills.d.ts +3 -0
- package/lib/skills.js +21 -0
- package/lib/store.d.ts +409 -0
- package/lib/store.js +328 -0
- package/lib/tools.d.ts +3 -0
- package/lib/tools.js +72 -0
- package/lib/util.d.ts +25 -0
- package/lib/util.js +89 -0
- package/package.json +125 -0
- package/skills/libing-kb-build/SKILL.md +10 -0
- package/skills/libing-kb-search/SKILL.md +10 -0
- package/skills/libing-knowledge-base/SKILL.md +15 -0
- package/skills/libing-knowledge-base/references/build.md +23 -0
- package/skills/libing-knowledge-base/references/search.md +21 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Translate } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { LocaleKey } from './locales.ts';
|
|
3
|
+
export type T = Translate<LocaleKey>;
|
|
4
|
+
export interface Actions {
|
|
5
|
+
t: T;
|
|
6
|
+
busy: boolean;
|
|
7
|
+
operationError?: string;
|
|
8
|
+
act: <V>(operation: () => Promise<V>) => Promise<V | undefined>;
|
|
9
|
+
dirty: (value: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function copy(value: string): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { LocaleKey } from './locales.ts';
|
|
3
|
+
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
4
|
+
interface LocaleNamespaceMap {
|
|
5
|
+
libingKnowledgeBase: LocaleKey;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
declare module '@deepseek-ai/dsh-api-session-controller/client' {
|
|
9
|
+
interface SessionReferenceSourceMap {
|
|
10
|
+
libingKnowledgeBase: unknown;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare const inject: string[];
|
|
14
|
+
export declare function apply(ctx: Context): void;
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
export declare const zh: {
|
|
2
|
+
reviewOriginal: string;
|
|
3
|
+
reviewFullImage: string;
|
|
4
|
+
reviewPreviewHelp: string;
|
|
5
|
+
reviewImageFailed: string;
|
|
6
|
+
reviewDescription: string;
|
|
7
|
+
reviewDescriptionHelp: string;
|
|
8
|
+
reviewLabels: string;
|
|
9
|
+
reviewLabelsHelp: string;
|
|
10
|
+
reviewMoreFields: string;
|
|
11
|
+
reviewTypes: string;
|
|
12
|
+
reviewUncertainties: string;
|
|
13
|
+
reviewUncertaintiesHelp: string;
|
|
14
|
+
reviewStructured: string;
|
|
15
|
+
reviewStructuredHelp: string;
|
|
16
|
+
reviewOtherActions: string;
|
|
17
|
+
reviewOtherHelp: string;
|
|
18
|
+
reviewModelDefault: string;
|
|
19
|
+
reviewReidentifyHelp: string;
|
|
20
|
+
reviewDecorationHelp: string;
|
|
21
|
+
reviewIgnoreHelp: string;
|
|
22
|
+
reviewRestoreHelp: string;
|
|
23
|
+
reviewStale: string;
|
|
24
|
+
typeArchitecture: string;
|
|
25
|
+
typePinout: string;
|
|
26
|
+
typeSchematic: string;
|
|
27
|
+
typeTiming: string;
|
|
28
|
+
typeFlowchart: string;
|
|
29
|
+
typeTable: string;
|
|
30
|
+
typeCurve: string;
|
|
31
|
+
typeOther: string;
|
|
32
|
+
typeDecoration: string;
|
|
33
|
+
exampleLibrary: string;
|
|
34
|
+
examplePath: string;
|
|
35
|
+
guideToolsTitle: string;
|
|
36
|
+
guideToolsHelp: string;
|
|
37
|
+
guideExample: string;
|
|
38
|
+
guideCommandsTitle: string;
|
|
39
|
+
guideCommandsHelp: string;
|
|
40
|
+
guideBuildCommandHelp: string;
|
|
41
|
+
toolCatalogTitle: string;
|
|
42
|
+
toolCatalogHelp: string;
|
|
43
|
+
toolCatalogExample: string;
|
|
44
|
+
toolSearchTitle: string;
|
|
45
|
+
toolSearchHelp: string;
|
|
46
|
+
toolSearchExample: string;
|
|
47
|
+
toolReadTitle: string;
|
|
48
|
+
toolReadHelp: string;
|
|
49
|
+
toolReadExample: string;
|
|
50
|
+
toolImageTitle: string;
|
|
51
|
+
toolImageHelp: string;
|
|
52
|
+
toolImageExample: string;
|
|
53
|
+
toolBuildTitle: string;
|
|
54
|
+
toolBuildHelp: string;
|
|
55
|
+
toolBuildExample: string;
|
|
56
|
+
toolJobTitle: string;
|
|
57
|
+
toolJobHelp: string;
|
|
58
|
+
toolJobExample: string;
|
|
59
|
+
usage: string;
|
|
60
|
+
libraryId: string;
|
|
61
|
+
libraryIdHelp: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
createdAtHelp: string;
|
|
64
|
+
publishedRevision: string;
|
|
65
|
+
publishedRevisionHelp: string;
|
|
66
|
+
noPublishedRevision: string;
|
|
67
|
+
notProvided: string;
|
|
68
|
+
notStarted: string;
|
|
69
|
+
publishDraft: string;
|
|
70
|
+
publishConfirm: string;
|
|
71
|
+
publishHelp: string;
|
|
72
|
+
publishAccept: string;
|
|
73
|
+
publishRisk: string;
|
|
74
|
+
publishPending: string;
|
|
75
|
+
jobAutoPublish: string;
|
|
76
|
+
jobReadyHelp: string;
|
|
77
|
+
jobReviewHelp: string;
|
|
78
|
+
jobBudgetHelp: string;
|
|
79
|
+
jobActiveHelp: string;
|
|
80
|
+
jobStoppedHelp: string;
|
|
81
|
+
jobId: string;
|
|
82
|
+
jobIdHelp: string;
|
|
83
|
+
jobDocId: string;
|
|
84
|
+
jobDocIdHelp: string;
|
|
85
|
+
jobFilename: string;
|
|
86
|
+
jobFilenameHelp: string;
|
|
87
|
+
jobSourceVersion: string;
|
|
88
|
+
jobSourceVersionHelp: string;
|
|
89
|
+
jobSourceHash: string;
|
|
90
|
+
jobSourceHashHelp: string;
|
|
91
|
+
jobRevision: string;
|
|
92
|
+
jobRevisionHelp: string;
|
|
93
|
+
jobCreatedHelp: string;
|
|
94
|
+
jobFinished: string;
|
|
95
|
+
jobFinishedHelp: string;
|
|
96
|
+
jobOutput: string;
|
|
97
|
+
jobOutputHelp: string;
|
|
98
|
+
callsHelp: string;
|
|
99
|
+
tokensHelp: string;
|
|
100
|
+
progressHelp: string;
|
|
101
|
+
pages: string;
|
|
102
|
+
images: string;
|
|
103
|
+
jobBlocks: string;
|
|
104
|
+
jobBlocksHelp: string;
|
|
105
|
+
events: string;
|
|
106
|
+
eventsHelp: string;
|
|
107
|
+
failures: string;
|
|
108
|
+
failuresHelp: string;
|
|
109
|
+
usageRecords: string;
|
|
110
|
+
usageRecordsHelp: string;
|
|
111
|
+
reportSummary: string;
|
|
112
|
+
blockingIssue: string;
|
|
113
|
+
noticeIssue: string;
|
|
114
|
+
reportHelp: string;
|
|
115
|
+
noIssues: string;
|
|
116
|
+
reportChunks: string;
|
|
117
|
+
reportChunksHelp: string;
|
|
118
|
+
withinTarget: string;
|
|
119
|
+
withinTargetHelp: string;
|
|
120
|
+
reportDocuments: string;
|
|
121
|
+
reportDocumentsHelp: string;
|
|
122
|
+
targetCharsHelp: string;
|
|
123
|
+
reportFiguresHelp: string;
|
|
124
|
+
ignoredFigures: string;
|
|
125
|
+
ignoredFiguresHelp: string;
|
|
126
|
+
unreviewedFigures: string;
|
|
127
|
+
unreviewedFiguresHelp: string;
|
|
128
|
+
oversized: string;
|
|
129
|
+
oversizedHelp: string;
|
|
130
|
+
pdfAudit: string;
|
|
131
|
+
pdfAuditHelp: string;
|
|
132
|
+
pageAt: string;
|
|
133
|
+
guideBuildTitle: string;
|
|
134
|
+
guideCreate: string;
|
|
135
|
+
guideBuild: string;
|
|
136
|
+
guidePublish: string;
|
|
137
|
+
guideQueryTitle: string;
|
|
138
|
+
guideQuery: string;
|
|
139
|
+
question: string;
|
|
140
|
+
exampleQuery: string;
|
|
141
|
+
commandHelp: string;
|
|
142
|
+
copyCommand: string;
|
|
143
|
+
copyFailed: string;
|
|
144
|
+
naturalQueryHelp: string;
|
|
145
|
+
naturalQuery: string;
|
|
146
|
+
guideUnpublished: string;
|
|
147
|
+
guideChoose: string;
|
|
148
|
+
guidePrerequisites: string;
|
|
149
|
+
guidePageSearch: string;
|
|
150
|
+
sendHelp: string;
|
|
151
|
+
nav: string;
|
|
152
|
+
title: string;
|
|
153
|
+
subtitle: string;
|
|
154
|
+
refresh: string;
|
|
155
|
+
loading: string;
|
|
156
|
+
create: string;
|
|
157
|
+
name: string;
|
|
158
|
+
empty: string;
|
|
159
|
+
open: string;
|
|
160
|
+
back: string;
|
|
161
|
+
documents: string;
|
|
162
|
+
chunks: string;
|
|
163
|
+
unpublished: string;
|
|
164
|
+
partial: string;
|
|
165
|
+
published: string;
|
|
166
|
+
latest: string;
|
|
167
|
+
latestOpen: string;
|
|
168
|
+
revision: string;
|
|
169
|
+
import: string;
|
|
170
|
+
browse: string;
|
|
171
|
+
jobs: string;
|
|
172
|
+
settings: string;
|
|
173
|
+
trash: string;
|
|
174
|
+
activity: string;
|
|
175
|
+
details: string;
|
|
176
|
+
remove: string;
|
|
177
|
+
restore: string;
|
|
178
|
+
purge: string;
|
|
179
|
+
close: string;
|
|
180
|
+
cancel: string;
|
|
181
|
+
confirm: string;
|
|
182
|
+
save: string;
|
|
183
|
+
saved: string;
|
|
184
|
+
failed: string;
|
|
185
|
+
syncFailed: string;
|
|
186
|
+
file: string;
|
|
187
|
+
titleField: string;
|
|
188
|
+
sourceVersion: string;
|
|
189
|
+
docId: string;
|
|
190
|
+
importHelp: string;
|
|
191
|
+
advanced: string;
|
|
192
|
+
vision: string;
|
|
193
|
+
summary: string;
|
|
194
|
+
defaultModel: string;
|
|
195
|
+
noModels: string;
|
|
196
|
+
skipImages: string;
|
|
197
|
+
acceptPartial: string;
|
|
198
|
+
acceptHelp: string;
|
|
199
|
+
chunkTarget: string;
|
|
200
|
+
inspect: string;
|
|
201
|
+
inspectHelp: string;
|
|
202
|
+
pageStart: string;
|
|
203
|
+
pageEnd: string;
|
|
204
|
+
rangeHelp: string;
|
|
205
|
+
rangeConfirm: string;
|
|
206
|
+
submit: string;
|
|
207
|
+
uploading: string;
|
|
208
|
+
calls: string;
|
|
209
|
+
tokens: string;
|
|
210
|
+
progress: string;
|
|
211
|
+
report: string;
|
|
212
|
+
retry: string;
|
|
213
|
+
retryHelp: string;
|
|
214
|
+
maxCalls: string;
|
|
215
|
+
maxTokens: string;
|
|
216
|
+
preview: string;
|
|
217
|
+
draft: string;
|
|
218
|
+
cancelJob: string;
|
|
219
|
+
query: string;
|
|
220
|
+
search: string;
|
|
221
|
+
noResults: string;
|
|
222
|
+
read: string;
|
|
223
|
+
next: string;
|
|
224
|
+
copyCitation: string;
|
|
225
|
+
copied: string;
|
|
226
|
+
source: string;
|
|
227
|
+
related: string;
|
|
228
|
+
review: string;
|
|
229
|
+
reviewHelp: string;
|
|
230
|
+
figure: string;
|
|
231
|
+
manual: string;
|
|
232
|
+
reidentify: string;
|
|
233
|
+
ignore: string;
|
|
234
|
+
decoration: string;
|
|
235
|
+
reviewRestore: string;
|
|
236
|
+
reviewSave: string;
|
|
237
|
+
dirty: string;
|
|
238
|
+
discard: string;
|
|
239
|
+
continueEdit: string;
|
|
240
|
+
schema: string;
|
|
241
|
+
schemaHelp: string;
|
|
242
|
+
location: string;
|
|
243
|
+
copyPath: string;
|
|
244
|
+
openFolder: string;
|
|
245
|
+
openUnavailable: string;
|
|
246
|
+
confirmName: string;
|
|
247
|
+
deleteHelp: string;
|
|
248
|
+
purgeHelp: string;
|
|
249
|
+
irreversible: string;
|
|
250
|
+
emptyTrash: string;
|
|
251
|
+
send: string;
|
|
252
|
+
session: string;
|
|
253
|
+
noSession: string;
|
|
254
|
+
sent: string;
|
|
255
|
+
noSkill: string;
|
|
256
|
+
untitled: string;
|
|
257
|
+
error: string;
|
|
258
|
+
scope: string;
|
|
259
|
+
warnings: string;
|
|
260
|
+
overLimit: string;
|
|
261
|
+
missingFile: string;
|
|
262
|
+
selectLibrary: string;
|
|
263
|
+
ready: string;
|
|
264
|
+
queued: string;
|
|
265
|
+
preflight: string;
|
|
266
|
+
converting: string;
|
|
267
|
+
describing: string;
|
|
268
|
+
splitting: string;
|
|
269
|
+
indexing: string;
|
|
270
|
+
validating: string;
|
|
271
|
+
publishing: string;
|
|
272
|
+
'needs-review': string;
|
|
273
|
+
'paused-budget': string;
|
|
274
|
+
cancelled: string;
|
|
275
|
+
failedState: string;
|
|
276
|
+
noJobs: string;
|
|
277
|
+
human: string;
|
|
278
|
+
restoreState: string;
|
|
279
|
+
trashState: string;
|
|
280
|
+
createState: string;
|
|
281
|
+
purgeState: string;
|
|
282
|
+
};
|
|
283
|
+
export type LocaleKey = keyof typeof zh;
|
|
284
|
+
export declare const en: Record<LocaleKey, string>;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** One mutation at a time. A successful write followed by a failed refresh is never repeated. */
|
|
3
|
+
export declare function useKnowledge(): {
|
|
4
|
+
state: {
|
|
5
|
+
hostVersion: string;
|
|
6
|
+
kbs: {
|
|
7
|
+
kbId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
location: {
|
|
11
|
+
kbPath: string;
|
|
12
|
+
revision: string | null;
|
|
13
|
+
wikiPath: string | null;
|
|
14
|
+
indexPath: string | null;
|
|
15
|
+
};
|
|
16
|
+
summary: {
|
|
17
|
+
revision: string | null;
|
|
18
|
+
documentCount: number;
|
|
19
|
+
chunkCount: number;
|
|
20
|
+
coverageIncomplete: boolean;
|
|
21
|
+
};
|
|
22
|
+
deletedAt?: string | undefined;
|
|
23
|
+
purge?: {
|
|
24
|
+
startedAt: string;
|
|
25
|
+
jobIds: string[];
|
|
26
|
+
error?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
deletedKbs: {
|
|
30
|
+
kbId: string;
|
|
31
|
+
name: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
deletedAt?: string | undefined;
|
|
34
|
+
purge?: {
|
|
35
|
+
startedAt: string;
|
|
36
|
+
jobIds: string[];
|
|
37
|
+
error?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
activities: {
|
|
41
|
+
eventId: string;
|
|
42
|
+
at: string;
|
|
43
|
+
action: "purge" | "create" | "trash" | "restore";
|
|
44
|
+
kbId: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}[];
|
|
47
|
+
jobs: {
|
|
48
|
+
kbId: string;
|
|
49
|
+
title: string;
|
|
50
|
+
sourceVersion: string;
|
|
51
|
+
docId: string;
|
|
52
|
+
jobId: string;
|
|
53
|
+
sourceFormat: "docx" | "pdf";
|
|
54
|
+
filename: string;
|
|
55
|
+
usage: {
|
|
56
|
+
calls: number;
|
|
57
|
+
tokens: number;
|
|
58
|
+
reportedCalls: number;
|
|
59
|
+
records: import("zod").JSONType[];
|
|
60
|
+
};
|
|
61
|
+
buildKey: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
config: {
|
|
64
|
+
dataRoot: string;
|
|
65
|
+
chunkTargetChars: number;
|
|
66
|
+
evidenceMaxChars: number;
|
|
67
|
+
catalogMaxChars: number;
|
|
68
|
+
candidateLimit: number;
|
|
69
|
+
maxInputBytes: number;
|
|
70
|
+
maxUncompressedBytes: number;
|
|
71
|
+
maxArchiveEntries: number;
|
|
72
|
+
modelTimeoutMs: number;
|
|
73
|
+
modelAttempts: number;
|
|
74
|
+
visionConcurrency: number;
|
|
75
|
+
maxModelCalls: number;
|
|
76
|
+
maxModelTokens: number;
|
|
77
|
+
visionMaxEdge: number;
|
|
78
|
+
visionTileSize: number;
|
|
79
|
+
visionMaxTiles: number;
|
|
80
|
+
modelMaxOutputTokens: number;
|
|
81
|
+
summaryMaxChars: number;
|
|
82
|
+
figureMaxChars: number;
|
|
83
|
+
pdfMaxPages: number;
|
|
84
|
+
pdfMaxPagePixels: number;
|
|
85
|
+
pdfPageTimeoutMs: number;
|
|
86
|
+
libreOfficePath: string;
|
|
87
|
+
visionProvider: string;
|
|
88
|
+
visionModel: string;
|
|
89
|
+
summaryProvider: string;
|
|
90
|
+
summaryModel: string;
|
|
91
|
+
skipImages: boolean;
|
|
92
|
+
acceptPartial: boolean;
|
|
93
|
+
};
|
|
94
|
+
state: "failed" | "needs-review" | "queued" | "preflight" | "converting" | "describing" | "splitting" | "indexing" | "validating" | "publishing" | "paused-budget" | "cancelled" | "ready";
|
|
95
|
+
sourceOriginalHash: string;
|
|
96
|
+
routes: {
|
|
97
|
+
vision: {
|
|
98
|
+
provider: string;
|
|
99
|
+
model: string;
|
|
100
|
+
} | null;
|
|
101
|
+
summary: {
|
|
102
|
+
provider: string;
|
|
103
|
+
model: string;
|
|
104
|
+
} | null;
|
|
105
|
+
};
|
|
106
|
+
schemaHash: string;
|
|
107
|
+
sessionId: string | null;
|
|
108
|
+
progress: {
|
|
109
|
+
totalPages?: number | undefined;
|
|
110
|
+
parsedPages?: number | undefined;
|
|
111
|
+
ocrPages?: number | undefined;
|
|
112
|
+
tables?: number | undefined;
|
|
113
|
+
blocks?: number | undefined;
|
|
114
|
+
currentPage?: number | undefined;
|
|
115
|
+
totalFigures?: number | undefined;
|
|
116
|
+
completedFigures?: number | undefined;
|
|
117
|
+
inflightFigures?: {
|
|
118
|
+
occurrenceId: string;
|
|
119
|
+
caption: string;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
totalChunks?: number | undefined;
|
|
122
|
+
indexedChunks?: number | undefined;
|
|
123
|
+
currentChunk?: {
|
|
124
|
+
title: string;
|
|
125
|
+
headingPath: string[];
|
|
126
|
+
chunkId: string;
|
|
127
|
+
} | undefined;
|
|
128
|
+
};
|
|
129
|
+
failures: {
|
|
130
|
+
at: string;
|
|
131
|
+
stage: "failed" | "needs-review" | "queued" | "preflight" | "converting" | "describing" | "splitting" | "indexing" | "validating" | "publishing" | "paused-budget" | "cancelled" | "ready";
|
|
132
|
+
error: string;
|
|
133
|
+
}[];
|
|
134
|
+
outputPath: string | null;
|
|
135
|
+
error?: string | null | undefined;
|
|
136
|
+
pageStart?: number | undefined;
|
|
137
|
+
pageEnd?: number | undefined;
|
|
138
|
+
revision?: string | undefined;
|
|
139
|
+
updatedAt?: string | undefined;
|
|
140
|
+
pdf?: {
|
|
141
|
+
pageCount: number;
|
|
142
|
+
selectedPages: {
|
|
143
|
+
start: number;
|
|
144
|
+
end: number;
|
|
145
|
+
count: number;
|
|
146
|
+
total: number;
|
|
147
|
+
partial: boolean;
|
|
148
|
+
};
|
|
149
|
+
outlineCount?: number | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
parserVersion?: string | undefined;
|
|
152
|
+
sourceHash?: string | undefined;
|
|
153
|
+
report?: {
|
|
154
|
+
revision: string;
|
|
155
|
+
sourceHash: string;
|
|
156
|
+
issues: {
|
|
157
|
+
code: string;
|
|
158
|
+
message: string;
|
|
159
|
+
blocking: boolean;
|
|
160
|
+
page?: number | undefined;
|
|
161
|
+
kind?: string | undefined;
|
|
162
|
+
snippet?: string | undefined;
|
|
163
|
+
reason?: string | undefined;
|
|
164
|
+
}[];
|
|
165
|
+
documents: number;
|
|
166
|
+
blocks: number;
|
|
167
|
+
figures: number;
|
|
168
|
+
ignoredFigures: number;
|
|
169
|
+
unreviewedFigures: number;
|
|
170
|
+
chunks: number;
|
|
171
|
+
withinTarget: number;
|
|
172
|
+
oversized: {
|
|
173
|
+
chunkId: string;
|
|
174
|
+
chars: number;
|
|
175
|
+
reason: string;
|
|
176
|
+
}[];
|
|
177
|
+
usage: {
|
|
178
|
+
calls: number;
|
|
179
|
+
tokens: number;
|
|
180
|
+
reportedCalls: number;
|
|
181
|
+
records: import("zod").JSONType[];
|
|
182
|
+
};
|
|
183
|
+
targetChars: number;
|
|
184
|
+
pdf?: {
|
|
185
|
+
pageCount: number;
|
|
186
|
+
selectedPages: {
|
|
187
|
+
start: number;
|
|
188
|
+
end: number;
|
|
189
|
+
count: number;
|
|
190
|
+
total: number;
|
|
191
|
+
partial: boolean;
|
|
192
|
+
};
|
|
193
|
+
outlineCount: number;
|
|
194
|
+
matchedBookmarks: number;
|
|
195
|
+
ocrPages: number;
|
|
196
|
+
pages: {
|
|
197
|
+
page: number;
|
|
198
|
+
status: "failed" | "needs-review" | "navigation" | "parsed";
|
|
199
|
+
ocr: boolean;
|
|
200
|
+
tables: number;
|
|
201
|
+
figures: number;
|
|
202
|
+
headings: {
|
|
203
|
+
text: string;
|
|
204
|
+
level: number;
|
|
205
|
+
basis?: string | undefined;
|
|
206
|
+
}[];
|
|
207
|
+
width?: number | undefined;
|
|
208
|
+
height?: number | undefined;
|
|
209
|
+
pageLabel?: string | null | undefined;
|
|
210
|
+
spanCount?: number | undefined;
|
|
211
|
+
artifactCount?: number | undefined;
|
|
212
|
+
excluded?: {
|
|
213
|
+
kind: string;
|
|
214
|
+
bbox: [number, number, number, number] | null;
|
|
215
|
+
text?: string | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
previewAssetId?: string | null | undefined;
|
|
218
|
+
error?: string | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
} | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
events?: {
|
|
223
|
+
at: string;
|
|
224
|
+
state: "failed" | "needs-review" | "queued" | "preflight" | "converting" | "describing" | "splitting" | "indexing" | "validating" | "publishing" | "paused-budget" | "cancelled" | "ready";
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
figureRefresh?: {
|
|
227
|
+
occurrenceId: string;
|
|
228
|
+
token: string;
|
|
229
|
+
} | null | undefined;
|
|
230
|
+
visionCapability?: string | undefined;
|
|
231
|
+
recoveredAt?: string | undefined;
|
|
232
|
+
finishedAt?: string | undefined;
|
|
233
|
+
cancelRequested?: boolean | undefined;
|
|
234
|
+
reused?: boolean | undefined;
|
|
235
|
+
}[];
|
|
236
|
+
dataRoot: string;
|
|
237
|
+
config: {
|
|
238
|
+
chunkTargetChars: number;
|
|
239
|
+
visionProvider: string;
|
|
240
|
+
visionModel: string;
|
|
241
|
+
maxInputBytes: number;
|
|
242
|
+
};
|
|
243
|
+
} | undefined;
|
|
244
|
+
error: string;
|
|
245
|
+
notice: "" | "saved" | "syncFailed";
|
|
246
|
+
busy: boolean;
|
|
247
|
+
loading: boolean;
|
|
248
|
+
load: () => Promise<boolean>;
|
|
249
|
+
act: <T>(operation: () => Promise<T>) => Promise<T | undefined>;
|
|
250
|
+
setError: React.Dispatch<React.SetStateAction<string>>;
|
|
251
|
+
};
|