tpmjs/packages/tools/discord-post/package.json
Ajax Davis 938a382aab feat: add environment variables support for agents and collections
- Add envVars field to Agent and Collection models in Prisma schema
- Add envVars to UpdateAgentSchema and UpdateCollectionSchema types
- Implement env vars merging logic (agent overrides collection)
- Pass env vars through tool executor to sandbox
- Add UI for managing env vars in agent and collection settings pages
- Update API routes to handle envVars PATCH updates
- Refactor discord tool execute functions for biome compatibility

This allows users to configure tool-specific environment variables (like
DISCORD_BOT_TOKEN) at both the collection and agent level, with agent
settings taking precedence over collection settings.
2026-01-12 01:35:29 +10:00

48 lines
1.1 KiB
JSON

{
"name": "@tpmjs/discord-post",
"version": "0.2.0",
"description": "AI SDK tool to post messages to a Discord channel",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"type-check": "tsc --noEmit"
},
"keywords": [
"tpmjs",
"discord",
"ai",
"communication"
],
"tpmjs": {
"category": "communication",
"frameworks": [
"vercel-ai"
],
"env": [
{
"name": "DISCORD_BOT_TOKEN",
"description": "Discord bot token with Send Messages permission",
"required": true
}
],
"tools": [
{
"name": "discordPostTool",
"description": "Post a message or rich embed to a Discord channel. Supports plain text messages and formatted embeds with titles, descriptions, colors, and fields."
}
]
},
"dependencies": {
"ai": "6.0.23"
},
"devDependencies": {
"@tpmjs/tsconfig": "workspace:*",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"license": "MIT"
}