@fetchbrain.com/sdk 0.5.1 → 0.6.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, L as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-BMwfPE5J.js';
1
+ import { R as RawRequest, a as RecallResult, L as LearnResponse, S as StatsResponse, A as AskResponse, F as FetchBrainConfig } from '../types-B1MFygnZ.js';
2
2
 
3
3
  /**
4
4
  * Mock FetchBrain for unit testing
@@ -9,6 +9,15 @@ type MemoryDepth = "fresh" | "recent" | "standard" | "deep";
9
9
  interface FetchBrainConfig {
10
10
  /** API key for authentication */
11
11
  apiKey: string;
12
+ /**
13
+ * Name this scraper so it gets its own memory (otherwise every scraper on
14
+ * your account outside Apify shares one default memory). Same as setting the
15
+ * FETCHBRAIN_SCRAPER_ID env var; a valid option wins, an empty or invalid one
16
+ * falls back to the env var. Lowercase letters, digits, '.', '_' and '-',
17
+ * max 64, starting with a letter or digit. Invalid names are ignored with a
18
+ * warning. On Apify a name overrides the actor id.
19
+ */
20
+ scraper?: string;
12
21
  /** Base URL for API (defaults to production) */
13
22
  baseUrl?: string;
14
23
  /** How far back the brain recalls: fresh=1h, recent=24h, standard=7d, deep=30d */
@@ -9,6 +9,15 @@ type MemoryDepth = "fresh" | "recent" | "standard" | "deep";
9
9
  interface FetchBrainConfig {
10
10
  /** API key for authentication */
11
11
  apiKey: string;
12
+ /**
13
+ * Name this scraper so it gets its own memory (otherwise every scraper on
14
+ * your account outside Apify shares one default memory). Same as setting the
15
+ * FETCHBRAIN_SCRAPER_ID env var; a valid option wins, an empty or invalid one
16
+ * falls back to the env var. Lowercase letters, digits, '.', '_' and '-',
17
+ * max 64, starting with a letter or digit. Invalid names are ignored with a
18
+ * warning. On Apify a name overrides the actor id.
19
+ */
20
+ scraper?: string;
12
21
  /** Base URL for API (defaults to production) */
13
22
  baseUrl?: string;
14
23
  /** How far back the brain recalls: fresh=1h, recent=24h, standard=7d, deep=30d */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fetchbrain.com/sdk",
3
- "version": "0.5.1",
3
+ "version": "0.6.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",