refactor: rename exportName to name across entire codebase
- Database: Migrate column export_name to name in tools table - Prisma schema: Update Tool model to use name field - Sync routes: Update keyword and changes sync to use name - Railway executor: Update API endpoints to use name parameter - API routes: Update all tool routes to use name field - Web app: Update all pages and components - Playground: Update tool loader and sidebar - create-basic-tools: Update types and generators - Scripts: Update sync and test scripts Database migration was done via direct SQL: ALTER TABLE tools RENAME COLUMN export_name TO name; The unique constraint remains on (package_id, name). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1a1cc36ff0
commit
ada3ffb341
44 changed files with 222 additions and 233 deletions
|
|
@ -27,7 +27,7 @@ async function main() {
|
|||
const tools = await prisma.tool.findMany({
|
||||
select: {
|
||||
id: true,
|
||||
exportName: true,
|
||||
name: true,
|
||||
package: {
|
||||
select: {
|
||||
npmPackageName: true,
|
||||
|
|
@ -97,7 +97,7 @@ async function main() {
|
|||
OR: [{ importHealth: 'BROKEN' }, { executionHealth: 'BROKEN' }],
|
||||
},
|
||||
select: {
|
||||
exportName: true,
|
||||
name: true,
|
||||
package: {
|
||||
select: {
|
||||
npmPackageName: true,
|
||||
|
|
@ -113,7 +113,7 @@ async function main() {
|
|||
console.log(`\n⚠️ Broken Tools (${brokenTools.length}):`);
|
||||
for (const tool of brokenTools) {
|
||||
console.log(
|
||||
` - ${tool.package.npmPackageName}/${tool.exportName} (Import: ${tool.importHealth}, Execution: ${tool.executionHealth})`
|
||||
` - ${tool.package.npmPackageName}/${tool.name} (Import: ${tool.importHealth}, Execution: ${tool.executionHealth})`
|
||||
);
|
||||
if (tool.healthCheckError) {
|
||||
console.log(` Error: ${tool.healthCheckError.slice(0, 100)}...`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue