polite-crawler 0.7.10 → 0.7.11
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 +14 -0
- package/build/{cli-daemon-11H9DrcR.mjs → cli-daemon-CX276Rtz.mjs} +2 -2
- package/build/{cli-daemon-11H9DrcR.mjs.map → cli-daemon-CX276Rtz.mjs.map} +1 -1
- package/build/{cli-recipes-CELsPlba.mjs → cli-recipes-DBZzjwDF.mjs} +2 -2
- package/build/{cli-recipes-CELsPlba.mjs.map → cli-recipes-DBZzjwDF.mjs.map} +1 -1
- package/build/cli.mjs +7 -7
- package/build/{daemon-DazTlNoE.mjs → daemon-Ds_tQTbe.mjs} +3 -3
- package/build/{daemon-DazTlNoE.mjs.map → daemon-Ds_tQTbe.mjs.map} +1 -1
- package/build/{diff-BFVYtIvz.mjs → diff-CedQOqWF.mjs} +2 -2
- package/build/{diff-BFVYtIvz.mjs.map → diff-CedQOqWF.mjs.map} +1 -1
- package/build/{extract-CI-8rcx5.mjs → extract-BaYDYK4l.mjs} +2 -2
- package/build/{extract-CI-8rcx5.mjs.map → extract-BaYDYK4l.mjs.map} +1 -1
- package/build/index.d.mts +39 -2
- package/build/index.mjs +11 -11
- package/build/{open-CQO3gf6C.mjs → open-B-VbHm5U.mjs} +10 -6
- package/build/{open-CQO3gf6C.mjs.map → open-B-VbHm5U.mjs.map} +1 -1
- package/build/{recipe-C5iXikn3.mjs → recipe-BbavaUG2.mjs} +3 -3
- package/build/{recipe-C5iXikn3.mjs.map → recipe-BbavaUG2.mjs.map} +1 -1
- package/build/{recipe-product-BuejBcxL.mjs → recipe-product-CpQl83YU.mjs} +4 -4
- package/build/{recipe-product-BuejBcxL.mjs.map → recipe-product-CpQl83YU.mjs.map} +1 -1
- package/build/{runtime-CIuB8bcr.mjs → runtime-tMl2now7.mjs} +43 -3
- package/build/runtime-tMl2now7.mjs.map +1 -0
- package/build/{version-BGzjMFfh.mjs → version-B1sAEHHw.mjs} +2 -2
- package/build/{version-BGzjMFfh.mjs.map → version-B1sAEHHw.mjs.map} +1 -1
- package/build/{wacz-BQ_TbYhu.mjs → wacz-ZXgVsmzT.mjs} +3 -3
- package/build/{wacz-BQ_TbYhu.mjs.map → wacz-ZXgVsmzT.mjs.map} +1 -1
- package/build/{warc-dri2CGIB.mjs → warc-6l_5qZF-.mjs} +2 -2
- package/build/{warc-dri2CGIB.mjs.map → warc-6l_5qZF-.mjs.map} +1 -1
- package/package.json +1 -1
- package/build/runtime-CIuB8bcr.mjs.map +0 -1
package/build/index.d.mts
CHANGED
|
@@ -479,6 +479,17 @@ interface PageResult {
|
|
|
479
479
|
readonly from_cache: boolean;
|
|
480
480
|
/** This value is true when the page asked not to be AI input. Its title and text are then held back. */
|
|
481
481
|
readonly held_back: boolean;
|
|
482
|
+
/**
|
|
483
|
+
* This hash (SHA-256) is the blob of the body that the document shows, or null when the fetch gave
|
|
484
|
+
* no document. `body` of `openCrawler` gives the bytes of a capture.
|
|
485
|
+
*/
|
|
486
|
+
readonly blob?: string | null | undefined;
|
|
487
|
+
/**
|
|
488
|
+
* This value is true when the page did not change since the previous fetch. It is true for a 304
|
|
489
|
+
* (`not-modified`) and for an answer of the stored copy (`from_cache`). It is also true when the
|
|
490
|
+
* new body is the same as the body of the previous capture. A caller can then skip the page.
|
|
491
|
+
*/
|
|
492
|
+
readonly unchanged?: boolean | undefined;
|
|
482
493
|
readonly note: string | null;
|
|
483
494
|
/**
|
|
484
495
|
* This value tells that the document is an archived copy, not a fresh fetch: the archive, the date
|
|
@@ -516,6 +527,15 @@ interface PageOptions {
|
|
|
516
527
|
* @beta
|
|
517
528
|
*/
|
|
518
529
|
export declare const fetchPage: (runtime: CrawlRuntime, url: string, options: PageOptions) => Promise<PageResult>;
|
|
530
|
+
/**
|
|
531
|
+
* This function gives the body of a capture from the blob store, or undefined. It gives undefined
|
|
532
|
+
* when the capture is not known, has no body, or its blob is not in the store. It also gives
|
|
533
|
+
* undefined for a capture of a page that asked not to be AI input, as the held-back text is not
|
|
534
|
+
* given. It sends no request.
|
|
535
|
+
*
|
|
536
|
+
* @beta
|
|
537
|
+
*/
|
|
538
|
+
export declare const captureBody: (runtime: CrawlRuntime, capture: string) => Promise<Uint8Array | undefined>;
|
|
519
539
|
/** This result is a part of one stored document. */
|
|
520
540
|
interface ReadResult {
|
|
521
541
|
readonly doc: string;
|
|
@@ -1098,6 +1118,12 @@ interface ReadingIndex {
|
|
|
1098
1118
|
docsOfCapture(capture: string): Doc[];
|
|
1099
1119
|
/** This method tells if a capture gave a version of a document. */
|
|
1100
1120
|
hasVersion(capture: string): boolean;
|
|
1121
|
+
/**
|
|
1122
|
+
* This optional method gives a version that a capture gave, with no text, or undefined when the
|
|
1123
|
+
* capture gave no version. `body` uses it to find the blob of a capture. An index without it
|
|
1124
|
+
* makes `body` read the capture log, more slowly.
|
|
1125
|
+
*/
|
|
1126
|
+
captureVersion?(capture: string): DocVersion | undefined;
|
|
1101
1127
|
/**
|
|
1102
1128
|
* This optional method gives the hash of the current text of documents, with no text. Hybrid
|
|
1103
1129
|
* search uses it to find the documents whose text has no vectors. An index without it gives the
|
|
@@ -1212,6 +1238,8 @@ export declare class DocIndex implements ReadingIndex {
|
|
|
1212
1238
|
earlierTexts(doc: string, options?: {
|
|
1213
1239
|
readonly limit?: number;
|
|
1214
1240
|
}): VersionText[];
|
|
1241
|
+
/** This method gives a version that a capture gave, with no text, or undefined when the capture gave no version. */
|
|
1242
|
+
captureVersion(capture: string): DocVersion | undefined;
|
|
1215
1243
|
/** This method tells if a capture gave a version of a document. */
|
|
1216
1244
|
hasVersion(capture: string): boolean;
|
|
1217
1245
|
/**
|
|
@@ -3577,7 +3605,7 @@ export declare class WatchStore {
|
|
|
3577
3605
|
*/
|
|
3578
3606
|
export declare const runWatch: (runtime: CrawlRuntime, source: WatchStore | (() => Promise<WatchStore>), options?: WatchRunnerOptions) => WatchRun;
|
|
3579
3607
|
/** This is the version of the package. A test makes sure that it agrees with `package.json`. */
|
|
3580
|
-
export declare const VERSION = "0.7.
|
|
3608
|
+
export declare const VERSION = "0.7.11";
|
|
3581
3609
|
/** This is the product token that robots.txt rules match when an application gives no token. */
|
|
3582
3610
|
export declare const DEFAULT_TOKEN = "PoliteCrawler";
|
|
3583
3611
|
/** This page tells a site owner what the crawler is and how to control it. */
|
|
@@ -3818,6 +3846,13 @@ interface PoliteCrawler {
|
|
|
3818
3846
|
diff?(doc: string, options?: DiffOptions): Promise<DiffResult>;
|
|
3819
3847
|
/** This optional list keeps the pages that the crawler checks again on a schedule. `openCrawler` gives it. */
|
|
3820
3848
|
readonly watch?: WatchList;
|
|
3849
|
+
/**
|
|
3850
|
+
* This optional method gives the bytes of the body of a capture (the field `capture` of a page),
|
|
3851
|
+
* or undefined. It gives undefined for an unknown capture, a capture with no body, and a page that
|
|
3852
|
+
* asked not to be AI input. It sends no request. `openCrawler` gives it. Over a runtime of your
|
|
3853
|
+
* own, use `captureBody`.
|
|
3854
|
+
*/
|
|
3855
|
+
body?(capture: string): Promise<Uint8Array | undefined>;
|
|
3821
3856
|
/**
|
|
3822
3857
|
* This optional method checks the proposed values of fields against a stored document, and it
|
|
3823
3858
|
* locates each value. It does not make values. It sends no request. `openCrawler` gives it.
|
|
@@ -3848,12 +3883,14 @@ interface OpenedCrawler extends PoliteCrawler {
|
|
|
3848
3883
|
}
|
|
3849
3884
|
/**
|
|
3850
3885
|
* This crawler is the result of `openCrawler`: an `OpenedCrawler` with hybrid search. Its `find`
|
|
3851
|
-
* takes `rank: "hybrid"`, and it has `hybrid`, `embed` and `
|
|
3886
|
+
* takes `rank: "hybrid"`, and it has `hybrid`, `embed`, `rankWithin` and `body`. `OpenedCrawler` does not
|
|
3852
3887
|
* change, so an object of your own that implements the `OpenedCrawler` of 0.1.2 stays correct.
|
|
3853
3888
|
*/
|
|
3854
3889
|
interface HybridCrawler extends OpenedCrawler {
|
|
3855
3890
|
/** This method searches the stored documents. It also takes `rank: "hybrid"`, when the crawler has an embedder. */
|
|
3856
3891
|
find(q: string, options?: SearchOptions): Promise<Found[]>;
|
|
3892
|
+
/** This method gives the bytes of the body of a capture, or undefined. It sends no request. */
|
|
3893
|
+
body(capture: string): Promise<Uint8Array | undefined>;
|
|
3857
3894
|
/** This list is the watch list of `OpenedCrawler`, with each optional method, for example `reschedule`. */
|
|
3858
3895
|
readonly watch: Required<WatchList>;
|
|
3859
3896
|
/** This search ranks with the vectors of the embedder, or it is undefined when the crawler has no embedder. */
|
package/build/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { n as FileBlobStore, t as CaptureLog } from "./log-CB5bADmd.mjs";
|
|
2
2
|
import { t as browserMissing } from "./browser-C_dFMvO3.mjs";
|
|
3
|
-
import { c as startDaemon, i as daemonStateFile, n as DAEMON_STATE_SCHEMA, o as readDaemonState, r as changeCommand, s as scheduleWatches, t as DAEMON_DEFAULTS } from "./daemon-
|
|
4
|
-
import {
|
|
5
|
-
import { a as formatDiff, n as diffDocument, r as diffTexts, t as DIFF_LIMITS } from "./diff-
|
|
6
|
-
import { C as DISCOVER_LIMITS, D as readSitemap, E as feedDate, S as crawlSite, T as SITEMAP_LIMITS, _ as estimateTokens, b as SqliteHostStateStore, c as WatchStore, d as VectorStore, f as createHybridSearch, g as chunkTokensOf, h as chunkText, i as openCrawler, l as runWatch, m as HYBRID_DEFAULTS, n as defaultUserAgent, o as WATCH_LIMITS, p as CHUNK_LIMITS, r as isMailbox, s as WATCH_SCHEMA, t as createRuntime, u as VECTORS_SCHEMA, v as fuseRanks, w as discoverSite, x as CRAWL_LIMITS, y as unitVector } from "./open-
|
|
3
|
+
import { c as startDaemon, i as daemonStateFile, n as DAEMON_STATE_SCHEMA, o as readDaemonState, r as changeCommand, s as scheduleWatches, t as DAEMON_DEFAULTS } from "./daemon-Ds_tQTbe.mjs";
|
|
4
|
+
import { B as egressLookup, C as readPdf, E as NO_EMBEDDER, F as DEFAULT_SECRET_PARAMS, I as makeRecord, M as CAPTURE_SCHEMA, N as Crawler, P as DEADLINE_NOTE, S as isPdf, T as FAST_RANK_SHARE, a as fetchAndIndex, c as heldBackMeta, d as readDocument, f as recordOverride, g as archiveExtractor, h as versionAtTime, i as catchUpIndex, k as locate, l as isHeldBack, m as verifyQuote, n as HELD_BACK, o as fetchPage, p as reindex, r as captureBody, s as findDocuments, t as Extractors, u as isoTime, v as archivedDocId, w as DocIndex, z as EgressRefused } from "./runtime-tMl2now7.mjs";
|
|
5
|
+
import { a as formatDiff, n as diffDocument, r as diffTexts, t as DIFF_LIMITS } from "./diff-CedQOqWF.mjs";
|
|
6
|
+
import { C as DISCOVER_LIMITS, D as readSitemap, E as feedDate, S as crawlSite, T as SITEMAP_LIMITS, _ as estimateTokens, b as SqliteHostStateStore, c as WatchStore, d as VectorStore, f as createHybridSearch, g as chunkTokensOf, h as chunkText, i as openCrawler, l as runWatch, m as HYBRID_DEFAULTS, n as defaultUserAgent, o as WATCH_LIMITS, p as CHUNK_LIMITS, r as isMailbox, s as WATCH_SCHEMA, t as createRuntime, u as VECTORS_SCHEMA, v as fuseRanks, w as discoverSite, x as CRAWL_LIMITS, y as unitVector } from "./open-B-VbHm5U.mjs";
|
|
7
7
|
import { i as ollamaEmbedder, n as OLLAMA_MODELS, r as isLoopback, t as NO_OLLAMA } from "./ollama-B7eNmGhl.mjs";
|
|
8
8
|
import { n as TRANSFORMERS_MODELS, r as transformersEmbedder, t as NO_TRANSFORMERS } from "./transformers-Cb-KaPge.mjs";
|
|
9
|
-
import { n as checkFields, r as extractDocument, t as FIELD_KINDS } from "./extract-
|
|
9
|
+
import { n as checkFields, r as extractDocument, t as FIELD_KINDS } from "./extract-BaYDYK4l.mjs";
|
|
10
10
|
import { DAYS, compareHours, describeWeek, disagreements, fromCompact, fromSchemaOrg, fromText, toHoursWeek } from "./hours.mjs";
|
|
11
11
|
import { extractPage, typesOf } from "./html.mjs";
|
|
12
12
|
import { DEFAULT_POLICY, MemoryHostStateStore, VALIDATOR_MEMO, nextValidatorMemo, realClock } from "./politeness.mjs";
|
|
13
|
-
import { a as readJson, i as defineRecipe, n as RESERVED_RECIPES, o as registerRecipe, s as runRecipe, t as RECIPE_LIMITS } from "./recipe-
|
|
14
|
-
import { a as readAmount, c as chooseVenueReadings, d as rankHoursLinks, f as readVenue, i as productOf, l as locationMatches, n as pickProduct, o as readProduct, p as venueReadingsOf, r as pickVariant, s as VENUE_LIMITS, t as PRODUCT_LIMITS, u as namesVenue } from "./recipe-product-
|
|
13
|
+
import { a as readJson, i as defineRecipe, n as RESERVED_RECIPES, o as registerRecipe, s as runRecipe, t as RECIPE_LIMITS } from "./recipe-BbavaUG2.mjs";
|
|
14
|
+
import { a as readAmount, c as chooseVenueReadings, d as rankHoursLinks, f as readVenue, i as productOf, l as locationMatches, n as pickProduct, o as readProduct, p as venueReadingsOf, r as pickVariant, s as VENUE_LIMITS, t as PRODUCT_LIMITS, u as namesVenue } from "./recipe-product-CpQl83YU.mjs";
|
|
15
15
|
import { n as RenderRefused, r as playwrightRenderer, t as NO_PLAYWRIGHT } from "./render-B0NrFDkJ.mjs";
|
|
16
16
|
import { ALLOW_ALL, decide, parseRobots } from "./robots.mjs";
|
|
17
17
|
import { bodyEncoding, decodeBody } from "./text.mjs";
|
|
18
18
|
import { cacheKeyOf, canonicalUrl, siteOf } from "./urls.mjs";
|
|
19
|
-
import { i as durationMs, n as DEFAULT_TOKEN, r as VERSION, t as BOT_PAGE } from "./version-
|
|
19
|
+
import { i as durationMs, n as DEFAULT_TOKEN, r as VERSION, t as BOT_PAGE } from "./version-B1sAEHHw.mjs";
|
|
20
20
|
import { i as keyDirectory, n as KEY_DIRECTORY_TYPE, o as verifySignature, r as createWebBotAuthSigner, t as KEY_DIRECTORY_PATH } from "./webbotauth-DbiWmibz.mjs";
|
|
21
|
-
import { t as exportWacz } from "./wacz-
|
|
22
|
-
import { n as exportWarc } from "./warc-
|
|
23
|
-
export { ALLOW_ALL, BOT_PAGE, CAPTURE_SCHEMA, CHUNK_LIMITS, CRAWL_LIMITS, CaptureLog, Crawler, DAEMON_DEFAULTS, DAEMON_STATE_SCHEMA, DAYS, DEADLINE_NOTE, DEFAULT_POLICY, DEFAULT_SECRET_PARAMS, DEFAULT_TOKEN, DIFF_LIMITS, DISCOVER_LIMITS, DocIndex, EgressRefused, Extractors, FAST_RANK_SHARE, FIELD_KINDS, FileBlobStore, HELD_BACK, HYBRID_DEFAULTS, KEY_DIRECTORY_PATH, KEY_DIRECTORY_TYPE, MemoryHostStateStore, NO_EMBEDDER, NO_OLLAMA, NO_PLAYWRIGHT, NO_TRANSFORMERS, OLLAMA_MODELS, PRODUCT_LIMITS, RECIPE_LIMITS, RESERVED_RECIPES, RenderRefused, SITEMAP_LIMITS, SqliteHostStateStore, TRANSFORMERS_MODELS, VALIDATOR_MEMO, VECTORS_SCHEMA, VENUE_LIMITS, VERSION, VectorStore, WATCH_LIMITS, WATCH_SCHEMA, WatchStore, archiveExtractor, archivedDocId, bodyEncoding, browserMissing, cacheKeyOf, canonicalUrl, catchUpIndex, changeCommand, checkFields, chooseVenueReadings, chunkText, chunkTokensOf, compareHours, crawlSite, createHybridSearch, createRuntime, createWebBotAuthSigner, daemonStateFile, decide, decodeBody, defaultUserAgent, defineRecipe, describeWeek, diffDocument, diffTexts, disagreements, discoverSite, durationMs, egressLookup, estimateTokens, exportWacz, exportWarc, extractDocument, extractPage, feedDate, fetchAndIndex, fetchPage, findDocuments, formatDiff, fromCompact, fromSchemaOrg, fromText, fuseRanks, heldBackMeta, isHeldBack, isLoopback, isMailbox, isPdf, isoTime, keyDirectory, locate, locationMatches, makeRecord, namesVenue, nextValidatorMemo, ollamaEmbedder, openCrawler, parseRobots, pickProduct, pickVariant, playwrightRenderer, productOf, rankHoursLinks, readAmount, readDaemonState, readDocument, readJson, readPdf, readProduct, readSitemap, readVenue, realClock, recordOverride, registerRecipe, reindex, runRecipe, runWatch, scheduleWatches, siteOf, startDaemon, toHoursWeek, transformersEmbedder, typesOf, unitVector, venueReadingsOf, verifyQuote, verifySignature, versionAtTime };
|
|
21
|
+
import { t as exportWacz } from "./wacz-ZXgVsmzT.mjs";
|
|
22
|
+
import { n as exportWarc } from "./warc-6l_5qZF-.mjs";
|
|
23
|
+
export { ALLOW_ALL, BOT_PAGE, CAPTURE_SCHEMA, CHUNK_LIMITS, CRAWL_LIMITS, CaptureLog, Crawler, DAEMON_DEFAULTS, DAEMON_STATE_SCHEMA, DAYS, DEADLINE_NOTE, DEFAULT_POLICY, DEFAULT_SECRET_PARAMS, DEFAULT_TOKEN, DIFF_LIMITS, DISCOVER_LIMITS, DocIndex, EgressRefused, Extractors, FAST_RANK_SHARE, FIELD_KINDS, FileBlobStore, HELD_BACK, HYBRID_DEFAULTS, KEY_DIRECTORY_PATH, KEY_DIRECTORY_TYPE, MemoryHostStateStore, NO_EMBEDDER, NO_OLLAMA, NO_PLAYWRIGHT, NO_TRANSFORMERS, OLLAMA_MODELS, PRODUCT_LIMITS, RECIPE_LIMITS, RESERVED_RECIPES, RenderRefused, SITEMAP_LIMITS, SqliteHostStateStore, TRANSFORMERS_MODELS, VALIDATOR_MEMO, VECTORS_SCHEMA, VENUE_LIMITS, VERSION, VectorStore, WATCH_LIMITS, WATCH_SCHEMA, WatchStore, archiveExtractor, archivedDocId, bodyEncoding, browserMissing, cacheKeyOf, canonicalUrl, captureBody, catchUpIndex, changeCommand, checkFields, chooseVenueReadings, chunkText, chunkTokensOf, compareHours, crawlSite, createHybridSearch, createRuntime, createWebBotAuthSigner, daemonStateFile, decide, decodeBody, defaultUserAgent, defineRecipe, describeWeek, diffDocument, diffTexts, disagreements, discoverSite, durationMs, egressLookup, estimateTokens, exportWacz, exportWarc, extractDocument, extractPage, feedDate, fetchAndIndex, fetchPage, findDocuments, formatDiff, fromCompact, fromSchemaOrg, fromText, fuseRanks, heldBackMeta, isHeldBack, isLoopback, isMailbox, isPdf, isoTime, keyDirectory, locate, locationMatches, makeRecord, namesVenue, nextValidatorMemo, ollamaEmbedder, openCrawler, parseRobots, pickProduct, pickVariant, playwrightRenderer, productOf, rankHoursLinks, readAmount, readDaemonState, readDocument, readJson, readPdf, readProduct, readSitemap, readVenue, realClock, recordOverride, registerRecipe, reindex, runRecipe, runWatch, scheduleWatches, siteOf, startDaemon, toHoursWeek, transformersEmbedder, typesOf, unitVector, venueReadingsOf, verifyQuote, verifySignature, versionAtTime };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
|
|
2
2
|
import { r as checkedRenderer } from "./browser-C_dFMvO3.mjs";
|
|
3
|
-
import { i as durationMs, n as DEFAULT_TOKEN, r as VERSION, t as BOT_PAGE } from "./version-
|
|
3
|
+
import { i as durationMs, n as DEFAULT_TOKEN, r as VERSION, t as BOT_PAGE } from "./version-B1sAEHHw.mjs";
|
|
4
4
|
import { n as FileBlobStore, t as CaptureLog } from "./log-CB5bADmd.mjs";
|
|
5
|
-
import { A as
|
|
6
|
-
import { n as diffDocument, r as diffTexts } from "./diff-
|
|
5
|
+
import { A as parseQuery, E as NO_EMBEDDER, L as sha256$1, N as Crawler, P as DEADLINE_NOTE, R as stableStringify, a as fetchAndIndex, b as archivedOf, d as readDocument, i as catchUpIndex, j as snippetOf, l as isHeldBack, m as verifyQuote, o as fetchPage, p as reindex, r as captureBody, s as findDocuments, t as Extractors, u as isoTime, w as DocIndex } from "./runtime-tMl2now7.mjs";
|
|
6
|
+
import { n as diffDocument, r as diffTexts } from "./diff-CedQOqWF.mjs";
|
|
7
7
|
import { extractPage } from "./html.mjs";
|
|
8
8
|
import { cacheKeyOf, canonicalUrl, scopeTest } from "./urls.mjs";
|
|
9
9
|
import { decodeBody } from "./text.mjs";
|
|
10
|
-
import { r as extractDocument } from "./extract-
|
|
10
|
+
import { r as extractDocument } from "./extract-BaYDYK4l.mjs";
|
|
11
11
|
import { matchesPattern } from "./robots.mjs";
|
|
12
12
|
import { MemoryHostStateStore, nextValidatorMemo, realClock } from "./politeness.mjs";
|
|
13
13
|
import { r as playwrightRenderer } from "./render-B0NrFDkJ.mjs";
|
|
14
|
-
import { o as registerRecipe } from "./recipe-
|
|
14
|
+
import { o as registerRecipe } from "./recipe-BbavaUG2.mjs";
|
|
15
15
|
import { createHash, randomUUID } from "node:crypto";
|
|
16
16
|
import { join } from "node:path";
|
|
17
17
|
import { existsSync, lstatSync, mkdirSync, realpathSync, statSync } from "node:fs";
|
|
@@ -3447,6 +3447,10 @@ const openCrawler = (options) => {
|
|
|
3447
3447
|
archiveDespiteRobots: fetchOptions.archiveDespiteRobots
|
|
3448
3448
|
});
|
|
3449
3449
|
},
|
|
3450
|
+
async body(capture) {
|
|
3451
|
+
await live();
|
|
3452
|
+
return captureBody(runtime, capture);
|
|
3453
|
+
},
|
|
3450
3454
|
async find(q, findOptions = {}) {
|
|
3451
3455
|
await live();
|
|
3452
3456
|
const { rank, ...rest } = findOptions;
|
|
@@ -3553,4 +3557,4 @@ const openCrawler = (options) => {
|
|
|
3553
3557
|
};
|
|
3554
3558
|
export { DISCOVER_LIMITS as C, readSitemap as D, feedDate as E, crawlSite as S, SITEMAP_LIMITS as T, estimateTokens as _, open_exports as a, SqliteHostStateStore as b, WatchStore as c, VectorStore as d, createHybridSearch as f, chunkTokensOf as g, chunkText as h, openCrawler as i, runWatch as l, HYBRID_DEFAULTS as m, defaultUserAgent as n, WATCH_LIMITS as o, CHUNK_LIMITS as p, isMailbox as r, WATCH_SCHEMA as s, createRuntime as t, VECTORS_SCHEMA as u, fuseRanks as v, discoverSite as w, CRAWL_LIMITS as x, unitVector as y };
|
|
3555
3559
|
|
|
3556
|
-
//# sourceMappingURL=open-
|
|
3560
|
+
//# sourceMappingURL=open-B-VbHm5U.mjs.map
|