tpmjs/packages/tools/registryExecute/package.json
Ajax Davis ee825aa97c feat: add @tpmjs/registrySearch and @tpmjs/registryExecute SDK packages
- Create @tpmjs/registrySearch package for searching tool registry
- Create @tpmjs/registryExecute package for executing tools via sandbox
- Support self-hosted registries via TPMJS_API_URL and TPMJS_EXECUTOR_URL env vars
- Add /sdk documentation page with usage examples and architecture
- Add SDK link to navigation menu
- Include design doc for registry SDK architecture

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-12 07:29:06 +10:00

72 lines
2.1 KiB
JSON

{
"name": "@tpmjs/registryExecute",
"version": "0.1.0",
"description": "Execute tools from the TPMJS registry in any AI SDK agent",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"type-check": "tsc --noEmit"
},
"keywords": ["tpmjs-tool", "ai-sdk", "vercel-ai", "registry", "execute"],
"dependencies": {
"ai": "6.0.0-beta.124"
},
"devDependencies": {
"@tpmjs/tsconfig": "workspace:*",
"typescript": "^5.7.2"
},
"files": ["dist", "README.md"],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/ajaxdavis/tpmjs.git",
"directory": "packages/tools/registryExecute"
},
"homepage": "https://tpmjs.com",
"license": "MIT",
"tpmjs": {
"category": "api-integration",
"frameworks": ["vercel-ai"],
"tools": [
{
"exportName": "registryExecuteTool",
"description": "Execute a tool from the TPMJS registry by toolId. Use registrySearchTool first to find toolIds.",
"parameters": [
{
"name": "toolId",
"type": "string",
"description": "Tool identifier from registrySearchTool (format: 'package::exportName')",
"required": true
},
{
"name": "params",
"type": "object",
"description": "Parameters to pass to the tool",
"required": true
},
{
"name": "env",
"type": "object",
"description": "Environment variables (API keys) if required by the tool",
"required": false
}
],
"returns": {
"type": "object",
"description": "Tool execution result with output and timing"
},
"aiAgent": {
"useCase": "Use after finding a tool with registrySearchTool. Execute the tool by its toolId with the required parameters.",
"examples": [
"Execute '@exalabs/ai-sdk::webSearch' with query parameter",
"Execute '@firecrawl/ai-sdk::scrapeTool' with url parameter"
]
}
}
]
}
}