- Add @tpmjs/tools-page-brief for URL content extraction - Add @tpmjs/tools-compare-pages for cross-source validation - Add @tpmjs/tools-source-credibility for credibility scoring - Add @tpmjs/tools-claim-checklist for factual claim extraction - Add @tpmjs/tools-timeline-from-text for timeline generation - Move createBlogPost to packages/tools/official/ - Add blocks.yml for Blocks framework validation - Update pnpm-workspace.yaml to include official tools
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"name": "@tpmjs/tools-compare-pages",
|
|
"version": "0.1.0",
|
|
"description": "Compare two URLs for agreements, conflicts, and unique points for cross-source validation",
|
|
"type": "module",
|
|
"keywords": ["tpmjs", "research", "ai", "comparison", "fact-checking"],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsup --watch",
|
|
"type-check": "tsc --noEmit",
|
|
"clean": "rm -rf dist .turbo"
|
|
},
|
|
"devDependencies": {
|
|
"@tpmjs/tsconfig": "workspace:*",
|
|
"tsup": "^8.3.5",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/anthropics/tpmjs.git",
|
|
"directory": "packages/tools/official/compare-pages"
|
|
},
|
|
"homepage": "https://tpmjs.com",
|
|
"license": "MIT",
|
|
"tpmjs": {
|
|
"category": "research",
|
|
"frameworks": ["vercel-ai"],
|
|
"tools": [
|
|
{
|
|
"name": "comparePagesTool",
|
|
"description": "Compare two URLs for agreements, conflicts, and unique points",
|
|
"parameters": [
|
|
{
|
|
"name": "urlA",
|
|
"type": "string",
|
|
"description": "First URL to compare",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "urlB",
|
|
"type": "string",
|
|
"description": "Second URL to compare",
|
|
"required": true
|
|
}
|
|
],
|
|
"returns": {
|
|
"type": "PageComparison",
|
|
"description": "Object with agreements, conflicts, uniqueToA, and uniqueToB arrays"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"ai": "6.0.0-beta.124",
|
|
"natural": "^8.0.0"
|
|
}
|
|
}
|