feat: AI-Native integration (MCP, Schemas, Docs) + UX improvements

This commit is contained in:
s41r4j
2026-01-29 01:02:43 +05:30
parent c3e0d4ab03
commit b53f06b799
9 changed files with 1414 additions and 39 deletions
+18
View File
@@ -0,0 +1,18 @@
const fs = require('fs');
const path = require('path');
const { tools } = require('../bin/lib/ai/interface');
const schema = tools.map(tool => ({
type: "function",
function: {
name: tool.name,
description: tool.description,
parameters: tool.inputSchema
}
}));
const outputPath = path.resolve(__dirname, '../bin/tools-schema.json');
fs.writeFileSync(outputPath, JSON.stringify(schema, null, 2));
console.log(`✅ Generated OpenAI-compatible tool schemas at: ${outputPath}`);
console.log(`Total tools: ${tools.length}`);