- Update all packages to latest versions via pnpm update --latest - Downgrade Prisma 7 to 6 (v7 requires schema migration) - Downgrade Tailwind CSS 4 to 3 (v4 requires PostCSS migration) - Downgrade Storybook 10 to 8 (addons not available in v10) - Pin cheerio to 1.0.0-rc.12 via pnpm override (type exports changed) - Fix AI SDK tool definitions: parameters -> inputSchema - Fix cheerio types in extract-meta and table-extract tools - Add explicit type annotations to tool execute functions - Migrate biome config to v2.3.11 schema All type-checks, tests, and builds pass.
109 lines
3.2 KiB
JSON
109 lines
3.2 KiB
JSON
{
|
|
"name": "@tpmjs/createblogpost",
|
|
"version": "0.3.0",
|
|
"description": "A tool for creating structured blog posts with AI-generated content",
|
|
"type": "module",
|
|
"keywords": [
|
|
"tpmjs",
|
|
"blog",
|
|
"content",
|
|
"ai",
|
|
"writing"
|
|
],
|
|
"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.5.1",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ajaxdavis/tpmjs.git",
|
|
"directory": "packages/tools/official/createBlogPost"
|
|
},
|
|
"homepage": "https://tpmjs.com",
|
|
"license": "MIT",
|
|
"tpmjs": {
|
|
"category": "text-analysis",
|
|
"frameworks": [
|
|
"vercel-ai"
|
|
],
|
|
"tools": [
|
|
{
|
|
"exportName": "createBlogPostTool",
|
|
"description": "Creates structured blog posts with customizable frontmatter, content sections, and SEO metadata. Supports multiple output formats including Markdown and MDX.",
|
|
"parameters": [
|
|
{
|
|
"name": "title",
|
|
"type": "string",
|
|
"description": "The title of the blog post",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "author",
|
|
"type": "string",
|
|
"description": "The author of the blog post",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "content",
|
|
"type": "string",
|
|
"description": "The main content of the blog post",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "tags",
|
|
"type": "string[]",
|
|
"description": "Array of tags for categorization",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "format",
|
|
"type": "'markdown' | 'mdx'",
|
|
"description": "Output format for the blog post",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "excerpt",
|
|
"type": "string",
|
|
"description": "Short excerpt or summary of the post",
|
|
"required": false
|
|
}
|
|
],
|
|
"returns": {
|
|
"type": "BlogPost",
|
|
"description": "A structured blog post object with frontmatter, content, and metadata including slug, wordCount, readingTime, and formattedOutput"
|
|
},
|
|
"aiAgent": {
|
|
"useCase": "Use this tool when users need to generate blog posts, articles, or structured content with proper frontmatter and metadata. Ideal for content management systems, static site generators, and documentation sites.",
|
|
"limitations": "Does not include AI content generation - you must provide the content. Only formats and structures existing content.",
|
|
"examples": [
|
|
"Create a blog post about TypeScript best practices",
|
|
"Generate a tutorial post with code examples",
|
|
"Format an article with SEO metadata"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"ai": "6.0.23"
|
|
}
|
|
}
|