wiki-graph-sdk 0.7.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/LICENSE +201 -0
- package/README.md +32 -0
- package/dist/archives.cjs +2799 -0
- package/dist/archives.cjs.map +1 -0
- package/dist/archives.d.ts +249 -0
- package/dist/archives.js +2814 -0
- package/dist/archives.js.map +1 -0
- package/dist/conversions.cjs +1332 -0
- package/dist/conversions.cjs.map +1 -0
- package/dist/conversions.d.ts +37 -0
- package/dist/conversions.js +1308 -0
- package/dist/conversions.js.map +1 -0
- package/dist/data/editor/clue_reviewer.jinja +410 -0
- package/dist/data/editor/clue_reviewer_generator.jinja +428 -0
- package/dist/data/editor/revision_feedback.jinja +5 -0
- package/dist/data/editor/text_compressor.jinja +131 -0
- package/dist/data/guaranteed/response_intent_classifier.jinja +8 -0
- package/dist/data/output/epub/cover.xhtml.jinja +13 -0
- package/dist/data/output/epub/nav.xhtml.jinja +12 -0
- package/dist/data/output/epub/package.opf.xml.jinja +39 -0
- package/dist/data/output/epub/section.xhtml.jinja +12 -0
- package/dist/data/topologization/book_coherence_extraction.jinja +223 -0
- package/dist/data/topologization/chunk_extraction.jinja +233 -0
- package/dist/data/topologization/evidence_choice.jinja +38 -0
- package/dist/data/topologization/translate_chunks.jinja +138 -0
- package/dist/data/topologization/user_focused_extraction.jinja +378 -0
- package/dist/default-worker.cjs +1709 -0
- package/dist/default-worker.cjs.map +1 -0
- package/dist/default-worker.d.ts +10 -0
- package/dist/default-worker.js +1705 -0
- package/dist/default-worker.js.map +1 -0
- package/dist/embedding.cjs +1091 -0
- package/dist/embedding.cjs.map +1 -0
- package/dist/embedding.d.ts +26 -0
- package/dist/embedding.js +1062 -0
- package/dist/embedding.js.map +1 -0
- package/dist/entry-context.cjs +91 -0
- package/dist/entry-context.cjs.map +1 -0
- package/dist/entry-context.d.ts +20 -0
- package/dist/entry-context.js +68 -0
- package/dist/entry-context.js.map +1 -0
- package/dist/gc.cjs +731 -0
- package/dist/gc.cjs.map +1 -0
- package/dist/gc.d.ts +14 -0
- package/dist/gc.js +707 -0
- package/dist/gc.js.map +1 -0
- package/dist/index.cjs +4760 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +213 -0
- package/dist/index.js +4808 -0
- package/dist/index.js.map +1 -0
- package/dist/jobs-Dd5PMSId.d.ts +98 -0
- package/dist/llm.cjs +101 -0
- package/dist/llm.cjs.map +1 -0
- package/dist/llm.d.ts +7 -0
- package/dist/llm.js +79 -0
- package/dist/llm.js.map +1 -0
- package/dist/local-config.cjs +1024 -0
- package/dist/local-config.cjs.map +1 -0
- package/dist/local-config.d.ts +14 -0
- package/dist/local-config.js +989 -0
- package/dist/local-config.js.map +1 -0
- package/dist/maintenance.cjs +800 -0
- package/dist/maintenance.cjs.map +1 -0
- package/dist/maintenance.d.ts +24 -0
- package/dist/maintenance.js +778 -0
- package/dist/maintenance.js.map +1 -0
- package/dist/node-platform.cjs +758 -0
- package/dist/node-platform.cjs.map +1 -0
- package/dist/node-platform.d.ts +49 -0
- package/dist/node-platform.js +723 -0
- package/dist/node-platform.js.map +1 -0
- package/dist/planning.cjs +164 -0
- package/dist/planning.cjs.map +1 -0
- package/dist/planning.d.ts +43 -0
- package/dist/planning.js +137 -0
- package/dist/planning.js.map +1 -0
- package/dist/runtime-config.cjs +1155 -0
- package/dist/runtime-config.cjs.map +1 -0
- package/dist/runtime-config.d.ts +50 -0
- package/dist/runtime-config.js +1127 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/stage.cjs +1265 -0
- package/dist/stage.cjs.map +1 -0
- package/dist/stage.d.ts +16 -0
- package/dist/stage.js +1239 -0
- package/dist/stage.js.map +1 -0
- package/dist/wikispine.cjs +85 -0
- package/dist/wikispine.cjs.map +1 -0
- package/dist/wikispine.d.ts +6 -0
- package/dist/wikispine.js +63 -0
- package/dist/wikispine.js.map +1 -0
- package/dist/worker.cjs +738 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.ts +157 -0
- package/dist/worker.js +715 -0
- package/dist/worker.js.map +1 -0
- package/package.json +151 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { WikiGraphArchiveManager } from './archives.js';
|
|
2
|
+
export { WikiGraphArchiveCover, WikiGraphArchiveCreateOptions, WikiGraphArchiveCreateResult, WikiGraphArchiveEvidenceOptions, WikiGraphArchiveExistsError, WikiGraphArchiveHandle, WikiGraphArchiveIndexStatus, WikiGraphArchiveIndexSyncOptions, WikiGraphArchiveInspectChapterReference, WikiGraphArchiveInspectCoverage, WikiGraphArchiveInspectImprovement, WikiGraphArchiveInspectReport, WikiGraphArchiveListOptions, WikiGraphArchiveLocation, WikiGraphArchivePageOptions, WikiGraphArchiveRelatedOptions, WikiGraphArchiveScope, WikiGraphArchiveScopeOptions, WikiGraphArchiveSearchOptions, WikiGraphArchiveWriteOptions, WikiGraphChapterArtifactStatus, WikiGraphChapterMoveOptions, WikiGraphChapterResetStage, WikiGraphChapterSourceOptions, WikiGraphChapterTreeInput, WikiGraphOperationOptions, createWikiGraphArchiveInspectReport, resolveWikiGraphArchiveLocation } from './archives.js';
|
|
3
|
+
import { LocalConfigSection, LocalConfigObject } from './local-config.js';
|
|
4
|
+
export { LOCAL_CONFIG_SECTIONS, clearLocalConfigSection, deleteLocalConfigValue, maskLocalConfigSection, normalizeLocalConfigKey, parseLocalConfigSection, putLocalConfigValue, readLocalConfigSection, replaceLocalConfigSection, validateLocalConfigSection } from './local-config.js';
|
|
5
|
+
import { W as WikiGraphJobRuntime, a as WikiGraphJobManager } from './jobs-Dd5PMSId.js';
|
|
6
|
+
export { b as WikiGraphJob, c as WikiGraphJobBackend, d as WikiGraphJobChapterReference, e as WikiGraphJobCreateOptions, f as WikiGraphJobEnqueueOptions, g as WikiGraphJobEnqueuePlan, h as WikiGraphJobEnqueueResult, i as WikiGraphJobEventListener, j as WikiGraphJobEventsOptions, k as WikiGraphJobListOptions, l as WikiGraphJobSubscriptionOptions } from './jobs-Dd5PMSId.js';
|
|
7
|
+
import { ContinuationCursor, QueryIndexScope, ArchiveSourceLocatorResult, ArchiveCollectionResult, ArchiveFindResult, ArchiveEvidence, ArchiveRelatedResult, WikiGraphLibraryRecord, WikiGraphLibraryArchiveRecord, WikiGraphLibraryScanResult, ParsedWikiGraphLibraryUri, WikiGraphLibraryIndexState, rebuildWikiGraphLibraryIndex, ArchiveFindOptions, ArchiveCollectionOptions, readWikiGraphLibraryPage, ArchivePage, listRelatedWikiGraphLibraryObjects, listWikiGraphLibraryEvidence, ArchivePack } from 'wiki-graph-core';
|
|
8
|
+
export { ArchiveBacklinkBucket, ArchiveBacklinks, ArchiveCollectionOptions, ArchiveCollectionResult, ArchiveEvidence, ArchiveEvidenceItem, ArchiveFindEvidencePreview, ArchiveFindHit, ArchiveFindOptions, ArchiveFindResult, ArchiveListItem, ArchivePack, ArchivePage, ArchiveRelatedResult, ArchiveSourceLocator, ArchiveSourceLocatorResult, ArchiveTriplePattern, BookMeta, BuildJob, BuildJobEvent, BuildJobProgressCounter, BuildJobTarget, ChapterDetails, ChapterEntry, ChapterStage, ChapterTree, ChapterTreeApplyResult, ContinuationCursor, DEFAULT_EXTRACTION_PROMPT, DEFAULT_KNOWLEDGE_GRAPH_RECALL_PROMPT, File, IndexArtifactKind, LLMPaymentRequiredError, LocatedWikiGraphUri, ParsedWikiGraphLibraryUri, QueryIndexScope, SearchIndexEmbeddingProvider, WIKI_GRAPH_URI_PREFIX, WikiGraphError, WikiGraphLLMOptions, WikiGraphLibraryArchiveRecord, WikiGraphLibraryIndexState, WikiGraphLibraryRecord, WikiGraphLibraryScanResult, WikiGraphMaintenanceUpgradeResult, WikiGraphProgressCallback, WikiGraphProgressEvent, WikispineProvider, formatError, formatLocatedChapterResourceUri, formatLocatedChapterSourceCollectionUri, formatLocatedChapterUri, formatLocatedWikiGraphUri, formatWikiGraphCommandUri, formatWikiGraphLibraryUri, isSourceLocatorScopeUri, isWikiGraphLibraryUri, parseChapterPath, parseChapterTreeInput, parseChapterUriPath, parseLocatedWikiGraphUri, parseSourceTextJsonl, parseWikiGraphLibraryUri, parseWikiGraphUriSyntax, resolveExtractionPrompt, resolveKnowledgeGraphRecallPrompt } from 'wiki-graph-core';
|
|
9
|
+
import { WikiGraphConversionManager } from './conversions.js';
|
|
10
|
+
export { WikiGraphConversionFormat, WikiGraphConversionInput, WikiGraphConversionOptions, WikiGraphConversionResult, WikiGraphSourceFormat } from './conversions.js';
|
|
11
|
+
export { WikiGraphQueueWorkerOptions, requireKnowledgeGraphWikispineConfig, runWikiGraphQueueWorker } from './default-worker.js';
|
|
12
|
+
export { DANGEROUS_RUNTIME_ENV_NAMES, WikiGraphEntryEnvPolicy, WikiGraphEntryRuntimeContext, WikiGraphEntryRuntimeOptions, createEntryRuntimeContext } from './entry-context.js';
|
|
13
|
+
export { QueryEmbeddingResult, WikiGraphEmbeddingConfig, WikiGraphEmbeddingProvider, buildSearchIndexEmbeddingProvider, embedQueryText, embedQueryTextWithLocalConfig, readWikiGraphEmbeddingConfig } from './embedding.js';
|
|
14
|
+
export { buildWikiGraphLLMOptions } from './llm.js';
|
|
15
|
+
import { WikiGraphMaintenanceManager } from './maintenance.js';
|
|
16
|
+
export { WikiGraphLegacyMigrationResult, WikiGraphMaintenanceTarget } from './maintenance.js';
|
|
17
|
+
export { NodeDirectory, NodeFile, createNodeTemplateEnvironment, createNodeWikiGraphStorage, ensureNodeWikiGraphPlatform, getNodeResourcePath, installNodeWikiGraphPlatform, nodeWikiGraphPlatform, withNodeWikiGraphStorage, writeNodeFileHandle } from './node-platform.js';
|
|
18
|
+
export { DEFAULT_GENERATION_JOB_CONCURRENCY, DEFAULT_GENERATION_REQUEST_CONCURRENCY, GenerationConcurrency, GenerationPerformanceHint, GenerationPlanningCost, createGenerationPerformanceHints, formatGenerationPlanningDuration, formatGenerationPlanningModel, planGenerationTask } from './planning.js';
|
|
19
|
+
export { HostedProviderScope, WikiGraphProvider, WikiGraphRuntimeConfig, loadWikiGraphRuntimeConfig, resolveHostedProviderEndpoint, resolveWikispineConfig } from './runtime-config.js';
|
|
20
|
+
export { createStageLLM, loadRequiredStageConfig } from './stage.js';
|
|
21
|
+
export { nodeWikispineCommandRunner } from './wikispine.js';
|
|
22
|
+
import 'zod';
|
|
23
|
+
import 'node:fs/promises';
|
|
24
|
+
import 'nunjucks';
|
|
25
|
+
import 'wiki-graph-core/platform';
|
|
26
|
+
|
|
27
|
+
interface WikiGraphProviderTestResult {
|
|
28
|
+
readonly durationMs: number;
|
|
29
|
+
readonly model?: string;
|
|
30
|
+
readonly provider?: string;
|
|
31
|
+
readonly response?: string;
|
|
32
|
+
readonly dimensions?: number;
|
|
33
|
+
readonly tokens?: number;
|
|
34
|
+
readonly endpoint?: string;
|
|
35
|
+
readonly metadata?: {
|
|
36
|
+
readonly format: string;
|
|
37
|
+
readonly qid_count: number;
|
|
38
|
+
readonly surface_count: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
declare class WikiGraphConfigManager {
|
|
42
|
+
#private;
|
|
43
|
+
constructor(runtime: WikiGraphJobRuntime);
|
|
44
|
+
get(section: LocalConfigSection, options?: {
|
|
45
|
+
readonly maskSecrets?: boolean;
|
|
46
|
+
}): Promise<LocalConfigObject>;
|
|
47
|
+
replace(section: LocalConfigSection, value: LocalConfigObject): Promise<LocalConfigObject>;
|
|
48
|
+
put(section: LocalConfigSection, key: string, value: unknown): Promise<LocalConfigObject>;
|
|
49
|
+
delete(section: LocalConfigSection, key: string): Promise<LocalConfigObject>;
|
|
50
|
+
clear(section: LocalConfigSection): Promise<LocalConfigObject>;
|
|
51
|
+
testLLM(): Promise<WikiGraphProviderTestResult>;
|
|
52
|
+
testEmbedding(): Promise<WikiGraphProviderTestResult>;
|
|
53
|
+
testWikispine(): Promise<WikiGraphProviderTestResult>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface WikiGraphContinuationOptions {
|
|
57
|
+
/** Optional archive locator used to verify that the cursor belongs to it. */
|
|
58
|
+
readonly archive?: string;
|
|
59
|
+
readonly cursor: string;
|
|
60
|
+
readonly format?: ContinuationCursor["format"];
|
|
61
|
+
readonly limit?: number;
|
|
62
|
+
readonly signal?: AbortSignal;
|
|
63
|
+
}
|
|
64
|
+
interface WikiGraphContinuationContext {
|
|
65
|
+
readonly archiveKey: string;
|
|
66
|
+
readonly archivePath: string;
|
|
67
|
+
readonly backlinks?: boolean;
|
|
68
|
+
readonly chapters?: readonly number[];
|
|
69
|
+
readonly continuationKind?: ContinuationCursor["kind"];
|
|
70
|
+
readonly evidenceLimit?: number;
|
|
71
|
+
readonly format: ContinuationCursor["format"];
|
|
72
|
+
readonly ids?: readonly string[];
|
|
73
|
+
readonly indexScope: QueryIndexScope;
|
|
74
|
+
readonly libraryQuery?: "archive-members" | "objects";
|
|
75
|
+
readonly order?: "doc-asc" | "doc-desc";
|
|
76
|
+
readonly query?: string;
|
|
77
|
+
readonly role?: "any" | "object" | "self" | "subject" | undefined;
|
|
78
|
+
readonly skipUnindexed?: boolean;
|
|
79
|
+
readonly sourceContext?: number;
|
|
80
|
+
readonly targetUri?: string;
|
|
81
|
+
readonly triplePattern?: {
|
|
82
|
+
readonly objectQid?: string;
|
|
83
|
+
readonly predicate?: string;
|
|
84
|
+
readonly subjectQid?: string;
|
|
85
|
+
} | undefined;
|
|
86
|
+
readonly types: readonly string[] | null;
|
|
87
|
+
}
|
|
88
|
+
type ContinuationPageBase<TCursor extends ContinuationCursor> = {
|
|
89
|
+
readonly cursor: TCursor;
|
|
90
|
+
readonly format: TCursor["format"];
|
|
91
|
+
readonly limit: number;
|
|
92
|
+
};
|
|
93
|
+
type WikiGraphContinuationPage = (ContinuationPageBase<Extract<ContinuationCursor, {
|
|
94
|
+
readonly kind: "source-locators";
|
|
95
|
+
}>> & {
|
|
96
|
+
readonly kind: "source-locators";
|
|
97
|
+
readonly result: ArchiveSourceLocatorResult;
|
|
98
|
+
}) | (ContinuationPageBase<Extract<ContinuationCursor, {
|
|
99
|
+
readonly kind: "collection";
|
|
100
|
+
}>> & {
|
|
101
|
+
readonly kind: "collection";
|
|
102
|
+
readonly result: ArchiveCollectionResult;
|
|
103
|
+
}) | (ContinuationPageBase<Extract<ContinuationCursor, {
|
|
104
|
+
readonly kind: "search";
|
|
105
|
+
}>> & {
|
|
106
|
+
readonly kind: "search";
|
|
107
|
+
readonly result: ArchiveFindResult;
|
|
108
|
+
}) | (ContinuationPageBase<Extract<ContinuationCursor, {
|
|
109
|
+
readonly kind: "evidence";
|
|
110
|
+
}>> & {
|
|
111
|
+
readonly kind: "evidence";
|
|
112
|
+
readonly result: ArchiveEvidence;
|
|
113
|
+
}) | (ContinuationPageBase<Extract<ContinuationCursor, {
|
|
114
|
+
readonly kind: "related";
|
|
115
|
+
}>> & {
|
|
116
|
+
readonly kind: "related";
|
|
117
|
+
readonly result: ArchiveRelatedResult;
|
|
118
|
+
});
|
|
119
|
+
declare class WikiGraphContinuationManager {
|
|
120
|
+
#private;
|
|
121
|
+
constructor(runtime: WikiGraphJobRuntime);
|
|
122
|
+
next(options: WikiGraphContinuationOptions): Promise<WikiGraphContinuationPage>;
|
|
123
|
+
create(context: WikiGraphContinuationContext, cursor: string | null | undefined): Promise<string | null>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type WikiGraphLibraryTarget = ParsedWikiGraphLibraryUri | string;
|
|
127
|
+
type WikiGraphLibrarySearchOptions = Omit<ArchiveFindOptions, "embeddingProvider">;
|
|
128
|
+
type WikiGraphLibraryPageOptions = Omit<Parameters<typeof readWikiGraphLibraryPage>[2], "wikimediaResolver">;
|
|
129
|
+
interface WikiGraphLibraryAddArchiveOptions {
|
|
130
|
+
readonly inputPath: string;
|
|
131
|
+
readonly target: WikiGraphLibraryTarget;
|
|
132
|
+
readonly to?: string;
|
|
133
|
+
}
|
|
134
|
+
interface WikiGraphLibraryMoveArchiveOptions {
|
|
135
|
+
readonly target: WikiGraphLibraryTarget;
|
|
136
|
+
readonly to: string;
|
|
137
|
+
}
|
|
138
|
+
declare class WikiGraphLibraryManager {
|
|
139
|
+
#private;
|
|
140
|
+
constructor(runtime: WikiGraphJobRuntime);
|
|
141
|
+
create(folder: string): Promise<WikiGraphLibrary>;
|
|
142
|
+
get(uri?: string): Promise<WikiGraphLibrary>;
|
|
143
|
+
addArchive(options: WikiGraphLibraryAddArchiveOptions): Promise<WikiGraphLibraryArchiveRecord>;
|
|
144
|
+
assertCurrent(target: WikiGraphLibraryTarget): Promise<void>;
|
|
145
|
+
rebind(target: WikiGraphLibraryTarget, folder: string): Promise<WikiGraphLibraryScanResult>;
|
|
146
|
+
remove(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryRecord>;
|
|
147
|
+
scan(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryScanResult>;
|
|
148
|
+
getArchive(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryArchiveRecord>;
|
|
149
|
+
moveArchive(options: WikiGraphLibraryMoveArchiveOptions): Promise<WikiGraphLibraryArchiveRecord>;
|
|
150
|
+
removeArchive(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryArchiveRecord>;
|
|
151
|
+
indexState(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryIndexState>;
|
|
152
|
+
rebuildIndex(target: WikiGraphLibraryTarget, onProgress?: Parameters<typeof rebuildWikiGraphLibraryIndex>[1]): Promise<WikiGraphLibraryIndexState>;
|
|
153
|
+
cleanIndex(target: WikiGraphLibraryTarget): Promise<WikiGraphLibraryIndexState>;
|
|
154
|
+
getMetadata(target: WikiGraphLibraryTarget): Promise<Readonly<Record<string, unknown>>>;
|
|
155
|
+
replaceMetadata(target: WikiGraphLibraryTarget, value: Readonly<Record<string, unknown>>): Promise<Readonly<Record<string, unknown>>>;
|
|
156
|
+
putMetadata(target: WikiGraphLibraryTarget, key: string, value: unknown): Promise<Readonly<Record<string, unknown>>>;
|
|
157
|
+
deleteMetadata(target: WikiGraphLibraryTarget, key: string): Promise<Readonly<Record<string, unknown>>>;
|
|
158
|
+
clearMetadata(target: WikiGraphLibraryTarget): Promise<Readonly<Record<string, unknown>>>;
|
|
159
|
+
search(target: WikiGraphLibraryTarget, query: string, options?: WikiGraphLibrarySearchOptions): Promise<ArchiveFindResult>;
|
|
160
|
+
searchArchiveMembers(target: WikiGraphLibraryTarget, query: string, options?: WikiGraphLibrarySearchOptions): Promise<ArchiveFindResult>;
|
|
161
|
+
objects(target: WikiGraphLibraryTarget, options?: ArchiveCollectionOptions): Promise<ArchiveCollectionResult>;
|
|
162
|
+
archiveMembers(target: WikiGraphLibraryTarget, options?: ArchiveCollectionOptions): Promise<ArchiveCollectionResult>;
|
|
163
|
+
page(target: WikiGraphLibraryTarget, objectUri: string, options?: WikiGraphLibraryPageOptions): Promise<ArchivePage>;
|
|
164
|
+
related(target: WikiGraphLibraryTarget, objectUri: string, options?: Parameters<typeof listRelatedWikiGraphLibraryObjects>[2]): Promise<ArchiveRelatedResult>;
|
|
165
|
+
evidence(target: WikiGraphLibraryTarget, objectUri: string, options?: Parameters<typeof listWikiGraphLibraryEvidence>[2]): Promise<ArchiveEvidence>;
|
|
166
|
+
pack(target: WikiGraphLibraryTarget, objectUri: string, budget?: number): Promise<ArchivePack>;
|
|
167
|
+
list(): Promise<readonly WikiGraphLibrary[]>;
|
|
168
|
+
}
|
|
169
|
+
declare class WikiGraphLibrary {
|
|
170
|
+
#private;
|
|
171
|
+
constructor(runtime: WikiGraphJobRuntime, record: WikiGraphLibraryRecord);
|
|
172
|
+
get snapshot(): WikiGraphLibraryRecord;
|
|
173
|
+
get uri(): string;
|
|
174
|
+
archives(): Promise<readonly WikiGraphLibraryArchiveRecord[]>;
|
|
175
|
+
scan(): Promise<WikiGraphLibraryScanResult>;
|
|
176
|
+
remove(): Promise<WikiGraphLibraryRecord>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type WikiGraphSDKEnvPolicy = "development" | "production";
|
|
180
|
+
interface WikiGraphSDKRuntimeContext {
|
|
181
|
+
readonly cwd: string;
|
|
182
|
+
readonly env: NodeJS.ProcessEnv;
|
|
183
|
+
readonly envPolicy: WikiGraphSDKEnvPolicy;
|
|
184
|
+
readonly stateDir?: string | undefined;
|
|
185
|
+
}
|
|
186
|
+
declare function withWikiGraphSDKRuntimeContext<T>(context: WikiGraphSDKRuntimeContext, operation: () => Promise<T> | T): Promise<T>;
|
|
187
|
+
declare function getWikiGraphSDKRuntimeContext(): WikiGraphSDKRuntimeContext;
|
|
188
|
+
declare function getWikiGraphSDKStateDir(): string | undefined;
|
|
189
|
+
|
|
190
|
+
interface WikiGraphSDKOptions {
|
|
191
|
+
readonly cwd?: string;
|
|
192
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
193
|
+
readonly envPolicy?: WikiGraphSDKEnvPolicy;
|
|
194
|
+
readonly stateDir?: string;
|
|
195
|
+
}
|
|
196
|
+
declare class WikiGraphSDK implements WikiGraphJobRuntime {
|
|
197
|
+
#private;
|
|
198
|
+
readonly archives: WikiGraphArchiveManager;
|
|
199
|
+
readonly conversions: WikiGraphConversionManager;
|
|
200
|
+
readonly config: WikiGraphConfigManager;
|
|
201
|
+
readonly continuations: WikiGraphContinuationManager;
|
|
202
|
+
readonly jobs: WikiGraphJobManager;
|
|
203
|
+
readonly libraries: WikiGraphLibraryManager;
|
|
204
|
+
readonly maintenance: WikiGraphMaintenanceManager;
|
|
205
|
+
constructor(options?: WikiGraphSDKOptions);
|
|
206
|
+
run<T>(operation: () => Promise<T> | T, signal?: AbortSignal, options?: {
|
|
207
|
+
readonly skipHomeBootstrap?: boolean;
|
|
208
|
+
}): Promise<T>;
|
|
209
|
+
close(): void;
|
|
210
|
+
}
|
|
211
|
+
declare function createWikiGraphSDK(options?: WikiGraphSDKOptions): WikiGraphSDK;
|
|
212
|
+
|
|
213
|
+
export { LocalConfigObject, LocalConfigSection, WikiGraphArchiveManager, WikiGraphConfigManager, type WikiGraphContinuationContext, WikiGraphContinuationManager, type WikiGraphContinuationOptions, type WikiGraphContinuationPage, WikiGraphConversionManager, WikiGraphJobManager, WikiGraphJobRuntime, WikiGraphLibrary, type WikiGraphLibraryAddArchiveOptions, WikiGraphLibraryManager, type WikiGraphLibraryMoveArchiveOptions, type WikiGraphLibraryPageOptions, type WikiGraphLibrarySearchOptions, type WikiGraphLibraryTarget, WikiGraphMaintenanceManager, type WikiGraphProviderTestResult, WikiGraphSDK, type WikiGraphSDKEnvPolicy, type WikiGraphSDKOptions, type WikiGraphSDKRuntimeContext, createWikiGraphSDK, getWikiGraphSDKRuntimeContext, getWikiGraphSDKStateDir, withWikiGraphSDKRuntimeContext };
|