Research tools now have complete implementations: - **page-brief**: Uses @mozilla/readability + jsdom for content extraction, sbd for sentence parsing, comprehensive error handling with timeout and network error detection - **compare-pages**: Uses natural library TF-IDF for text similarity, detects agreements via high-similarity sentences, identifies conflicts using negation pattern analysis - **source-credibility**: Uses tldts for domain parsing, cheerio for HTML analysis, calculates 6 credibility signals (HTTPS, domain reputation, author, date, citations, contact info), weighted scoring system - **claim-checklist**: Uses sbd for sentence boundary detection, regex patterns for claim identification (statistics, quotes, historical, scientific, factual), priority levels and evidence suggestions - **timeline-from-text**: Uses chrono-node for date parsing, sbd for context extraction, calculates confidence scores, identifies gaps >30 days All tools follow AI SDK v6 pattern (tool() + jsonSchema()), include proper TypeScript types, input validation, comprehensive error handling, and Node.js 18+ fetch requirement verification. Updated blocks.yml with comprehensive philosophy and domain rules for quality validation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
{
|
|
"name": "@tpmjs/tools-claim-checklist",
|
|
"version": "0.2.0",
|
|
"description": "Extract checkable factual claims from text and identify what needs citations",
|
|
"type": "module",
|
|
"keywords": ["tpmjs", "research", "ai", "claims", "fact-checking", "citations"],
|
|
"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:*",
|
|
"@types/sbd": "^1.0.5",
|
|
"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/claim-checklist"
|
|
},
|
|
"homepage": "https://tpmjs.com",
|
|
"license": "MIT",
|
|
"tpmjs": {
|
|
"category": "research",
|
|
"frameworks": ["vercel-ai"],
|
|
"tools": [
|
|
{
|
|
"name": "claimChecklistTool",
|
|
"description": "Extract checkable factual claims from text and mark what needs citations",
|
|
"parameters": [
|
|
{
|
|
"name": "text",
|
|
"type": "string",
|
|
"description": "The text to analyze for factual claims",
|
|
"required": true
|
|
}
|
|
],
|
|
"returns": {
|
|
"type": "ClaimChecklist",
|
|
"description": "Object with claims array and summary statistics"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"ai": "6.0.0-beta.124",
|
|
"sbd": "^1.0.19"
|
|
}
|
|
}
|