polite-crawler 0.7.8 → 0.7.10
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 +43 -0
- package/build/api.d.mts +227 -1
- package/build/api.mjs +424 -3
- package/build/api.mjs.map +1 -1
- package/build/{cli-daemon-f2xHraCa.mjs → cli-daemon-11H9DrcR.mjs} +2 -2
- package/build/{cli-daemon-f2xHraCa.mjs.map → cli-daemon-11H9DrcR.mjs.map} +1 -1
- package/build/{cli-recipes-ZFyc0wTa.mjs → cli-recipes-CELsPlba.mjs} +2 -2
- package/build/{cli-recipes-ZFyc0wTa.mjs.map → cli-recipes-CELsPlba.mjs.map} +1 -1
- package/build/cli.mjs +7 -7
- package/build/{daemon-CqQmcYh9.mjs → daemon-DazTlNoE.mjs} +3 -3
- package/build/{daemon-CqQmcYh9.mjs.map → daemon-DazTlNoE.mjs.map} +1 -1
- package/build/{diff-BwrS5qLG.mjs → diff-BFVYtIvz.mjs} +2 -2
- package/build/{diff-BwrS5qLG.mjs.map → diff-BFVYtIvz.mjs.map} +1 -1
- package/build/{extract-Dt-zWC9M.mjs → extract-CI-8rcx5.mjs} +2 -2
- package/build/{extract-Dt-zWC9M.mjs.map → extract-CI-8rcx5.mjs.map} +1 -1
- package/build/index.d.mts +1 -1
- package/build/index.mjs +10 -10
- package/build/{open-D2aPACL_.mjs → open-CQO3gf6C.mjs} +6 -6
- package/build/{open-D2aPACL_.mjs.map → open-CQO3gf6C.mjs.map} +1 -1
- package/build/{recipe-BZCG1pOy.mjs → recipe-C5iXikn3.mjs} +3 -3
- package/build/{recipe-BZCG1pOy.mjs.map → recipe-C5iXikn3.mjs.map} +1 -1
- package/build/{recipe-product-gd-6XJ4C.mjs → recipe-product-BuejBcxL.mjs} +4 -4
- package/build/{recipe-product-gd-6XJ4C.mjs.map → recipe-product-BuejBcxL.mjs.map} +1 -1
- package/build/{runtime-CD32YZv5.mjs → runtime-CIuB8bcr.mjs} +2 -2
- package/build/{runtime-CD32YZv5.mjs.map → runtime-CIuB8bcr.mjs.map} +1 -1
- package/build/{version-ACvb6zmT.mjs → version-BGzjMFfh.mjs} +2 -2
- package/build/{version-ACvb6zmT.mjs.map → version-BGzjMFfh.mjs.map} +1 -1
- package/build/{wacz-C2egGCSb.mjs → wacz-BQ_TbYhu.mjs} +3 -3
- package/build/{wacz-C2egGCSb.mjs.map → wacz-BQ_TbYhu.mjs.map} +1 -1
- package/build/{warc-DshKROY0.mjs → warc-dri2CGIB.mjs} +2 -2
- package/build/{warc-DshKROY0.mjs.map → warc-dri2CGIB.mjs.map} +1 -1
- package/package.json +1 -1
package/build/index.d.mts
CHANGED
|
@@ -3577,7 +3577,7 @@ export declare class WatchStore {
|
|
|
3577
3577
|
*/
|
|
3578
3578
|
export declare const runWatch: (runtime: CrawlRuntime, source: WatchStore | (() => Promise<WatchStore>), options?: WatchRunnerOptions) => WatchRun;
|
|
3579
3579
|
/** This is the version of the package. A test makes sure that it agrees with `package.json`. */
|
|
3580
|
-
export declare const VERSION = "0.7.
|
|
3580
|
+
export declare const VERSION = "0.7.10";
|
|
3581
3581
|
/** This is the product token that robots.txt rules match when an application gives no token. */
|
|
3582
3582
|
export declare const DEFAULT_TOKEN = "PoliteCrawler";
|
|
3583
3583
|
/** This page tells a site owner what the crawler is and how to control it. */
|
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 { C as DocIndex, F as makeRecord, M as Crawler, N as DEADLINE_NOTE, O as locate, P as DEFAULT_SECRET_PARAMS, R as EgressRefused, S as readPdf, T as NO_EMBEDDER, _ as archivedDocId, a as fetchPage, c as isHeldBack, d as recordOverride, f as reindex, h as archiveExtractor, i as fetchAndIndex, j as CAPTURE_SCHEMA, l as isoTime, m as versionAtTime, n as HELD_BACK, o as findDocuments, p as verifyQuote, r as catchUpIndex, s as heldBackMeta, t as Extractors, u as readDocument, w as FAST_RANK_SHARE, x as isPdf, z as egressLookup } from "./runtime-
|
|
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-DazTlNoE.mjs";
|
|
4
|
+
import { C as DocIndex, F as makeRecord, M as Crawler, N as DEADLINE_NOTE, O as locate, P as DEFAULT_SECRET_PARAMS, R as EgressRefused, S as readPdf, T as NO_EMBEDDER, _ as archivedDocId, a as fetchPage, c as isHeldBack, d as recordOverride, f as reindex, h as archiveExtractor, i as fetchAndIndex, j as CAPTURE_SCHEMA, l as isoTime, m as versionAtTime, n as HELD_BACK, o as findDocuments, p as verifyQuote, r as catchUpIndex, s as heldBackMeta, t as Extractors, u as readDocument, w as FAST_RANK_SHARE, x as isPdf, z as egressLookup } from "./runtime-CIuB8bcr.mjs";
|
|
5
|
+
import { a as formatDiff, n as diffDocument, r as diffTexts, t as DIFF_LIMITS } from "./diff-BFVYtIvz.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-CQO3gf6C.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-CI-8rcx5.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-C5iXikn3.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-BuejBcxL.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-BGzjMFfh.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-
|
|
21
|
+
import { t as exportWacz } from "./wacz-BQ_TbYhu.mjs";
|
|
22
|
+
import { n as exportWarc } from "./warc-dri2CGIB.mjs";
|
|
23
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 };
|
|
@@ -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-BGzjMFfh.mjs";
|
|
4
4
|
import { n as FileBlobStore, t as CaptureLog } from "./log-CB5bADmd.mjs";
|
|
5
|
-
import { A as snippetOf, C as DocIndex, I as sha256$1, L as stableStringify, M as Crawler, N as DEADLINE_NOTE, T as NO_EMBEDDER, a as fetchPage, c as isHeldBack, f as reindex, i as fetchAndIndex, k as parseQuery, l as isoTime, o as findDocuments, p as verifyQuote, r as catchUpIndex, t as Extractors, u as readDocument, y as archivedOf } from "./runtime-
|
|
6
|
-
import { n as diffDocument, r as diffTexts } from "./diff-
|
|
5
|
+
import { A as snippetOf, C as DocIndex, I as sha256$1, L as stableStringify, M as Crawler, N as DEADLINE_NOTE, T as NO_EMBEDDER, a as fetchPage, c as isHeldBack, f as reindex, i as fetchAndIndex, k as parseQuery, l as isoTime, o as findDocuments, p as verifyQuote, r as catchUpIndex, t as Extractors, u as readDocument, y as archivedOf } from "./runtime-CIuB8bcr.mjs";
|
|
6
|
+
import { n as diffDocument, r as diffTexts } from "./diff-BFVYtIvz.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-CI-8rcx5.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-C5iXikn3.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";
|
|
@@ -3553,4 +3553,4 @@ const openCrawler = (options) => {
|
|
|
3553
3553
|
};
|
|
3554
3554
|
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
3555
|
|
|
3556
|
-
//# sourceMappingURL=open-
|
|
3556
|
+
//# sourceMappingURL=open-CQO3gf6C.mjs.map
|