refactor: remove pricing field from TPMJS specification

Remove pricing field from the entire project as it doesn't make sense for tool metadata:

- Remove TpmjsPricingSchema and TpmjsPricing type from types package
- Remove pricing from TpmjsRichSchema validation
- Remove pricing from validateTpmjsField check
- Remove pricing documentation from /spec page
- Remove pricing examples from /publish page
- Remove pricing from HOW_TO_PUBLISH_A_TOOL.md
- Remove pricing from @tpmjs/createblogpost example package.json

The pricing field was removed from Tier 3 (Rich) metadata as it's not relevant for tool discovery and integration. Tools can document pricing in their README or documentation links instead.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-12-01 04:57:21 +10:00
parent d839536eb0
commit a6ec7df800
5 changed files with 0 additions and 86 deletions

View file

@ -133,10 +133,6 @@ Complete metadata for maximum visibility:
"type": "api-key",
"required": true
},
"pricing": {
"model": "pay-per-use",
"cost": "$0.001 per request"
},
"frameworks": ["vercel-ai", "langchain"],
"links": {
"documentation": "https://docs.example.com",
@ -316,9 +312,6 @@ Here's the complete `package.json` from the published example:
"required": false,
"type": "api-key"
},
"pricing": {
"model": "free"
},
"frameworks": ["vercel-ai", "langchain"],
"links": {
"documentation": "https://tpmjs.com/tools/createblogpost",
@ -362,7 +355,6 @@ Here's the complete `package.json` from the published example:
| Field | Type | Description |
|-------|------|-------------|
| `authentication` | object | Auth requirements |
| `pricing` | object | Pricing information |
| `frameworks` | array | Compatible frameworks |
| `links` | object | Related URLs |
| `tags` | array | Additional tags |
@ -393,23 +385,6 @@ If your tool requires authentication:
}
```
### Pricing Models
```json
"pricing": {
"model": "free" // or "pay-per-use", "subscription", "freemium"
}
```
For paid tools, add cost information:
```json
"pricing": {
"model": "pay-per-use",
"cost": "$0.001 per request"
}
```
## Quality Score
Your tool gets a quality score based on: