tpmjs/packages/tools/official/template-render/package.json
Ajax Davis 5926373be6 chore: update ai package to 6.0.49 across all packages
- Updated all packages from ai@6.0.23 to ai@6.0.49
- Added pnpm override to ensure consistent version
- Created changeset for publishing affected packages
2026-01-25 11:33:03 +10:00

84 lines
2 KiB
JSON

{
"name": "@tpmjs/tools-template-render",
"version": "0.1.0",
"description": "Render mustache-style templates with variable tracking",
"type": "module",
"keywords": [
"tpmjs",
"template",
"mustache",
"render",
"data"
],
"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/mustache": "^4.2.6",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/anthropics/tpmjs.git",
"directory": "packages/tools/official/template-render"
},
"homepage": "https://tpmjs.com",
"license": "MIT",
"tpmjs": {
"category": "data",
"frameworks": [
"vercel-ai"
],
"tools": [
{
"name": "templateRenderTool",
"description": "Render mustache-style templates with data and track variable usage",
"parameters": [
{
"name": "template",
"type": "string",
"description": "The mustache-style template string with {{variable}} placeholders",
"required": true
},
{
"name": "data",
"type": "object",
"description": "Data object to substitute into the template",
"required": true
},
{
"name": "options",
"type": "object",
"description": "Optional settings like HTML escaping",
"required": false
}
],
"returns": {
"type": "TemplateRenderResult",
"description": "Rendered template with tracking of used and unused variables"
}
}
]
},
"dependencies": {
"ai": "6.0.49",
"mustache": "^4.2.0"
}
}