Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 2.96 KB
/
Copy pathpackage.json
File metadata and controls
95 lines (95 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "agent-webtool",
"version": "0.8.2",
"description": "Web fetch and multi-engine search tools for AI agents (SDK + CLI + MCP server). No API keys required.",
"keywords": [
"agent",
"ai",
"baidu",
"claude",
"duckduckgo",
"llm",
"mcp",
"scraping",
"tools",
"toutiao",
"web-fetch",
"web-search",
"wechat"
],
"homepage": "https://github.com/semicoder-dev/agent-webtool#readme",
"bugs": {
"url": "https://github.com/semicoder-dev/agent-webtool/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/semicoder-dev/agent-webtool.git"
},
"bin": {
"agent-webtool": "./dist/cli.mjs",
"webtool": "./dist/cli.mjs"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"scripts": {
"build": "bun run build:cli && bun run build:sdk",
"build:cli": "bun build bin/cli.ts --target=node --format=esm --outfile=dist/cli.mjs && chmod +x dist/cli.mjs",
"build:sdk": "bun run clean:types && bun build src/index.ts --target=node --format=esm --packages=external --outfile=dist/index.mjs && bun build src/index.ts --target=node --format=cjs --packages=external --outfile=dist/index.cjs && tsc -p tsconfig.sdk.json",
"clean:types": "node -e \"require('node:fs').rmSync('dist/types', { recursive: true, force: true })\"",
"cli": "bun bin/cli.ts",
"format": "oxfmt .",
"format:check": "oxfmt --check .",
"lint": "oxlint .",
"mcp": "bun bin/cli.ts mcp",
"test": "bun test test/",
"verify:sdk": "node test/sdk-smoke.mjs && node test/sdk-smoke.cjs && tsc --noEmit --module NodeNext --moduleResolution NodeNext --target ES2022 --skipLibCheck test/sdk-consumer.ts",
"prepublishOnly": "bun run check && bun test test/ && bun run npm:pack",
"typecheck": "tsc --noEmit",
"check": "bun run lint && bun run format:check && bun run typecheck && bun run npm:check",
"npm:check": "bun scripts/npm/check.ts",
"npm:pack": "bun run build && bun scripts/npm/pack.ts"
},
"dependencies": {
"cheerio": "^1.2.0",
"marked": "^18.0.4",
"marked-terminal": "^7.3.0",
"turndown": "^7.2.4",
"undici": "^7.25.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@modelcontextprotocol/client": "^2.3.1",
"@modelcontextprotocol/server": "^2.3.1",
"@types/bun": "latest",
"@types/marked-terminal": "^6.1.1",
"@types/turndown": "^5.0.6",
"commander": "^14.0.3",
"oxfmt": "^0.62.0",
"oxlint": "^1.77.0",
"typescript": "^5"
},
"engines": {
"node": ">=20.18.1"
}
}