Initial commit: Add CLI tool with OpenAI integration, including file listing and echo functionalities. Introduce package.json for dependencies and scripts, and system prompt for AI behavior.

This commit is contained in:
sebseb7
2025-08-11 15:21:01 +02:00
commit f6f809263c
5 changed files with 377 additions and 0 deletions

15
tools/echo.js Normal file
View File

@@ -0,0 +1,15 @@
export default {
type: "function", name: "echo", description: "Echoes back the input string provided", strict: true,
parameters: {
type: "object", additionalProperties: false, required: [ "input" ],
properties: { "input": { type: "string", description: "The text to be echoed back" } }
}
};
export async function run(args) {
const text = typeof args?.text === 'string' ? args.text : '';
if (!text) {
return { error: 'Missing required parameter: text' };
}
return { content: text };
}