n8n-nodes-agentsearch 0.1.0 → 0.2.1

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,6 +1,7 @@
1
1
  import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
2
  export declare const FREE_RELAY_URL = "https://relay.agentsearchhq.com/v1/search";
3
- export declare const LIMIT_MESSAGE = "Free AgentSearch limit reached (25 searches per day per user; resets daily). For unlimited search plus extract/render, use the paid API ($0.005 per call in USDC on Base via x402). Docs: https://agentsearchhq.com/?utm_source=n8n-nodes-agentsearch&utm_medium=package";
3
+ export declare const CLIENT_TAG = "n8n-nodes-agentsearch/0.2.1";
4
+ export declare const LIMIT_MESSAGE = "Free AgentSearch limit reached (25 searches per day per user; resets daily). For unlimited search plus extract (static pages) and render (JavaScript-heavy pages, or when extract returns thin content), use the paid API ($0.005 per call in USDC on Base via x402). Docs: https://agentsearchhq.com/?utm_source=n8n-nodes-agentsearch&utm_medium=package";
4
5
  export declare class AgentSearch implements INodeType {
5
6
  description: INodeTypeDescription;
6
7
  execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentSearch = exports.LIMIT_MESSAGE = exports.FREE_RELAY_URL = void 0;
3
+ exports.AgentSearch = exports.LIMIT_MESSAGE = exports.CLIENT_TAG = exports.FREE_RELAY_URL = void 0;
4
4
  const n8n_workflow_1 = require("n8n-workflow");
5
5
  exports.FREE_RELAY_URL = 'https://relay.agentsearchhq.com/v1/search';
6
+ exports.CLIENT_TAG = 'n8n-nodes-agentsearch/0.2.1';
6
7
  const DOCS = 'https://agentsearchhq.com/?utm_source=n8n-nodes-agentsearch&utm_medium=package';
7
- exports.LIMIT_MESSAGE = `Free AgentSearch limit reached (25 searches per day per user; resets daily). For unlimited search plus extract/render, use the paid API ($0.005 per call in USDC on Base via x402). Docs: ${DOCS}`;
8
+ exports.LIMIT_MESSAGE = `Free AgentSearch limit reached (25 searches per day per user; resets daily). For unlimited search plus extract (static pages) and render (JavaScript-heavy pages, or when extract returns thin content), use the paid API ($0.005 per call in USDC on Base via x402). Docs: ${DOCS}`;
8
9
  class AgentSearch {
9
10
  constructor() {
10
11
  this.description = {
@@ -58,6 +59,7 @@ class AgentSearch {
58
59
  method: 'POST',
59
60
  url: exports.FREE_RELAY_URL,
60
61
  body: { query, max_results: maxResults },
62
+ headers: { 'X-Agent-Client': exports.CLIENT_TAG },
61
63
  json: true,
62
64
  timeout: 30000,
63
65
  });
package/package.json CHANGED
@@ -1,8 +1,15 @@
1
1
  {
2
2
  "name": "n8n-nodes-agentsearch",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "n8n community node for AgentSearch: free live web search for AI agents and workflows (no credentials)",
5
- "keywords": ["n8n-community-node-package", "n8n", "agentsearch", "web-search", "search", "ai-agent"],
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "agentsearch",
9
+ "web-search",
10
+ "search",
11
+ "ai-agent"
12
+ ],
6
13
  "license": "MIT",
7
14
  "homepage": "https://agentsearchhq.com/?utm_source=n8n-nodes-agentsearch&utm_medium=package",
8
15
  "main": "index.js",
@@ -11,13 +18,35 @@
11
18
  "prepublishOnly": "npm run build",
12
19
  "test": "npm run build && node --test test/*.test.mjs"
13
20
  },
14
- "files": ["dist", "templates", "README.md", "LICENSE"],
21
+ "files": [
22
+ "dist",
23
+ "templates",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
15
27
  "n8n": {
16
28
  "n8nNodesApiVersion": 1,
17
29
  "credentials": [],
18
- "nodes": ["dist/nodes/AgentSearch/AgentSearch.node.js"]
30
+ "nodes": [
31
+ "dist/nodes/AgentSearch/AgentSearch.node.js"
32
+ ]
19
33
  },
20
- "engines": { "node": ">=20" },
21
- "peerDependencies": { "n8n-workflow": "*" },
22
- "devDependencies": { "n8n-workflow": "^1.82.0", "typescript": "^5.7.0", "@types/node": "^22.10.0" }
34
+ "engines": {
35
+ "node": ">=20"
36
+ },
37
+ "peerDependencies": {
38
+ "n8n-workflow": "*"
39
+ },
40
+ "devDependencies": {
41
+ "n8n-workflow": "^1.82.0",
42
+ "typescript": "^5.7.0",
43
+ "@types/node": "^22.10.0"
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/agentsearchhq-coder/n8n-nodes-agentsearch.git"
48
+ },
49
+ "bugs": {
50
+ "url": "https://github.com/agentsearchhq-coder/n8n-nodes-agentsearch/issues"
51
+ }
23
52
  }