wiki-graph-sdk 0.8.1 → 0.8.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/README.md +25 -0
- package/dist/archives.cjs +7 -0
- package/dist/archives.cjs.map +1 -1
- package/dist/archives.d.ts +2 -0
- package/dist/archives.js +8 -0
- package/dist/archives.js.map +1 -1
- package/dist/conversions.cjs.map +1 -1
- package/dist/conversions.js +1 -0
- package/dist/conversions.js.map +1 -1
- package/dist/default-worker.cjs +50 -10
- package/dist/default-worker.cjs.map +1 -1
- package/dist/default-worker.js +54 -10
- package/dist/default-worker.js.map +1 -1
- package/dist/embedding.cjs.map +1 -1
- package/dist/embedding.js +1 -0
- package/dist/embedding.js.map +1 -1
- package/dist/gc.cjs +52 -10
- package/dist/gc.cjs.map +1 -1
- package/dist/gc.d.ts +3 -0
- package/dist/gc.js +56 -10
- package/dist/gc.js.map +1 -1
- package/dist/host-pQiVAKEY.d.ts +10 -0
- package/dist/index.cjs +86 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.js +90 -12
- package/dist/index.js.map +1 -1
- package/dist/local-config.cjs.map +1 -1
- package/dist/local-config.js +1 -0
- package/dist/local-config.js.map +1 -1
- package/dist/maintenance.cjs.map +1 -1
- package/dist/maintenance.js +1 -0
- package/dist/maintenance.js.map +1 -1
- package/dist/node-platform.cjs +18 -4
- package/dist/node-platform.cjs.map +1 -1
- package/dist/node-platform.d.ts +12 -3
- package/dist/node-platform.js +18 -4
- package/dist/node-platform.js.map +1 -1
- package/dist/runtime-config.cjs.map +1 -1
- package/dist/runtime-config.js +1 -0
- package/dist/runtime-config.js.map +1 -1
- package/dist/stage.cjs.map +1 -1
- package/dist/stage.js +1 -0
- package/dist/stage.js.map +1 -1
- package/dist/worker.cjs +81 -42
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.d.ts +7 -2
- package/dist/worker.js +85 -42
- package/dist/worker.js.map +1 -1
- package/package.json +2 -2
package/dist/archives.d.ts
CHANGED
|
@@ -175,6 +175,8 @@ declare class WikiGraphArchiveHandle {
|
|
|
175
175
|
readonly rebuilt: boolean;
|
|
176
176
|
}>;
|
|
177
177
|
cleanSearchIndex(options?: WikiGraphOperationOptions): Promise<WikiGraphArchiveIndexStatus>;
|
|
178
|
+
/** Clear cached search sessions without changing the archive index. */
|
|
179
|
+
clearSearchSessions(options?: WikiGraphOperationOptions): Promise<void>;
|
|
178
180
|
listChapters(options?: WikiGraphOperationOptions): Promise<readonly ChapterEntry[]>;
|
|
179
181
|
getChapter(path: string, options?: WikiGraphOperationOptions): Promise<ChapterEntry>;
|
|
180
182
|
addChapter(options: {
|
package/dist/archives.js
CHANGED
|
@@ -142,6 +142,7 @@ import * as yauzl from "yauzl";
|
|
|
142
142
|
import * as yazl from "yazl";
|
|
143
143
|
import { Environment, Loader } from "nunjucks";
|
|
144
144
|
import {
|
|
145
|
+
getWikiGraphPlatform,
|
|
145
146
|
getWikiGraphStorage,
|
|
146
147
|
installWikiGraphPlatform,
|
|
147
148
|
installWikiGraphStorage,
|
|
@@ -2138,6 +2139,13 @@ var WikiGraphArchiveHandle = class {
|
|
|
2138
2139
|
);
|
|
2139
2140
|
return status;
|
|
2140
2141
|
}
|
|
2142
|
+
/** Clear cached search sessions without changing the archive index. */
|
|
2143
|
+
async clearSearchSessions(options = {}) {
|
|
2144
|
+
await this.#runtime.run(
|
|
2145
|
+
async () => await deleteArchiveSearchSessions(this.path),
|
|
2146
|
+
options.signal
|
|
2147
|
+
);
|
|
2148
|
+
}
|
|
2141
2149
|
async listChapters(options = {}) {
|
|
2142
2150
|
return await this.#readDocument(
|
|
2143
2151
|
async (document) => await listChapters2(document),
|