tpmjs/packages/tools/hello/package.json
Ajax Davis fada29ecbe feat: add npm-like features to tool detail page and update keyword to tpmjs
- Add download trend sparkline chart showing 30-day download history
- Add bundle size component with minified/gzipped sizes via bundlephobia proxy
- Add more install commands: yarn, bun, deno (in addition to npm, pnpm)
- Change discovery keyword from "tpmjs-tool" to "tpmjs" across entire codebase
- Update sync endpoints to use new keyword
- Update all documentation and package.json files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-29 21:30:42 +10:00

67 lines
1.8 KiB
JSON

{
"name": "@tpmjs/hello",
"version": "0.0.2",
"description": "Example TPMJS tools - Hello World and Hello Name",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"clean": "rm -rf dist",
"type-check": "tsc --noEmit"
},
"keywords": ["tpmjs", "ai-sdk", "hello", "example"],
"tpmjs": {
"category": "text-analysis",
"frameworks": ["vercel-ai"],
"tools": [
{
"exportName": "helloWorldTool",
"description": "Returns a simple 'Hello, World!' greeting with optional timestamp and customizable message",
"parameters": [
{
"name": "includeTimestamp",
"type": "boolean",
"description": "Whether to include the current timestamp in the greeting",
"required": false
}
],
"returns": {
"type": "string",
"description": "A greeting message, optionally with timestamp"
}
},
{
"exportName": "helloNameTool",
"description": "Returns a personalized greeting with the provided name",
"parameters": [
{
"name": "name",
"type": "string",
"description": "The name to greet",
"required": true
},
{
"name": "formal",
"type": "boolean",
"description": "Whether to use formal greeting (Mr./Ms.)",
"required": false
}
],
"returns": {
"type": "string",
"description": "A personalized greeting message"
}
}
]
},
"dependencies": {
"ai": "6.0.0-beta.124"
},
"devDependencies": {
"@tpmjs/tsconfig": "workspace:*",
"tsx": "^4.20.6",
"typescript": "^5.9.3"
},
"files": ["dist", "README.md"]
}