fix: require name field in TPMJS spec, add workflow permissions
Breaking change for TPMJS spec: - Remove `exportName` field support from TpmjsToolDefinitionSchema - Make `name` field required (replaces deprecated `exportName`) - Update create-basic-tools to generate `name` field - Update sync routes to use `name` from validated schema - Add `permissions: contents: write` to Vercel registry sync workflow Packages using the old `exportName` field must update to use `name`.
This commit is contained in:
parent
704632bc75
commit
84d1e382a1
5 changed files with 22 additions and 38 deletions
|
|
@ -24,11 +24,8 @@ export function generatePackageJson(config: GeneratorConfig): string {
|
|||
tpmjs: {
|
||||
category: packageInfo.category,
|
||||
tools: tools.map((tool) => ({
|
||||
exportName: tool.exportName,
|
||||
name: tool.exportName,
|
||||
description: tool.description,
|
||||
...(tool.parameters && { parameters: tool.parameters }),
|
||||
...(tool.returns && { returns: tool.returns }),
|
||||
...(tool.aiAgent && { aiAgent: tool.aiAgent }),
|
||||
})),
|
||||
...(tools.some((t) => t.env) && {
|
||||
env: tools.flatMap((t) => t.env || []),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue