@fetchbrain.com/sdk 0.8.0 → 0.9.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.
@@ -1,4 +1,4 @@
1
- import { R as RawRequest, a as RecallResult, b as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-B579TMo9.mjs';
1
+ import { R as RawRequest, a as RecallResult, b as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-CPyPUGeb.mjs';
2
2
 
3
3
  /**
4
4
  * Mock FetchBrain for unit testing
@@ -1,4 +1,4 @@
1
- import { R as RawRequest, a as RecallResult, b as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-B579TMo9.js';
1
+ import { R as RawRequest, a as RecallResult, b as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-CPyPUGeb.js';
2
2
 
3
3
  /**
4
4
  * Mock FetchBrain for unit testing
@@ -42,6 +42,12 @@ interface RunReport {
42
42
  scraped: number;
43
43
  learned: number;
44
44
  recalled: number;
45
+ /** Recalled pages whose fetch was skipped (pre-recalled at enqueue). Per run() call. */
46
+ requestsSkipped?: number;
47
+ /** Recalled pages that were fetched first (recall happened in the handler). Per run() call. */
48
+ lateRecalls?: number;
49
+ /** Pages handled outside FetchBrain (`skipLabels`). Per run() call. */
50
+ bypassed?: number;
45
51
  labels?: Record<string, RunLabelCounts>;
46
52
  }
47
53
  /** Change counts accumulated by a client, once per learn HTTP batch. */
@@ -42,6 +42,12 @@ interface RunReport {
42
42
  scraped: number;
43
43
  learned: number;
44
44
  recalled: number;
45
+ /** Recalled pages whose fetch was skipped (pre-recalled at enqueue). Per run() call. */
46
+ requestsSkipped?: number;
47
+ /** Recalled pages that were fetched first (recall happened in the handler). Per run() call. */
48
+ lateRecalls?: number;
49
+ /** Pages handled outside FetchBrain (`skipLabels`). Per run() call. */
50
+ bypassed?: number;
45
51
  labels?: Record<string, RunLabelCounts>;
46
52
  }
47
53
  /** Change counts accumulated by a client, once per learn HTTP batch. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fetchbrain.com/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "FetchBrain SDK — make your Crawlee scrapers smarter with every run; recall before you fetch, teach what you learn.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",