feat: add optional AI Agent / LLM tool generation to CLI scaffolding#85
Open
vivekgupta4Git wants to merge 2 commits into
Open
feat: add optional AI Agent / LLM tool generation to CLI scaffolding#85vivekgupta4Git wants to merge 2 commits into
vivekgupta4Git wants to merge 2 commits into
Conversation
Owner
|
Hey @vivekgupta4Git |
Author
|
@sunilksamanta thanks for the kind words. I have one question. Currently, the CLI only exposes the module generation command. But after adding the agentic tool file support, I’m thinking of exposing more generation commands so older repositories that don’t already have generated agentic files can also benefit. For example: "calmapi -g tool moduleName" ("-g" would act as a shortcut generation command.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds AI Agent / LLM Tool support to the calmapi module generation CLI.
As AI frameworks like LangChain, LangGraph, and Vercel AI SDK become more popular, backend frameworks also need to support AI integrations easily.
With this feature, developers can optionally generate standalone AI tool files (
*.tool.js) while creating a new CRUD module.The generated tool includes:
It also safely connects AI tool executions to existing
CalmControllerhandlers while following authentication rules usingAuthController.checkLogin.Key Changes
Interactive CLI Prompt: Added a native readline check (askQuestion) asking the user: “Do you want to generate an AI tool file for this module? (y/N)”.
Standalone Tool Template: Created sample.tools.js in the resource module templates. It generates a completely clean, isolated [module-name].tool.js file when opted in.
Zero Architectural Overhead: If the user declines the tool layer during generation, the project remains 100% clean and pristine (no tool file is generated, and standard templates are unchanged).
Documentation Alignment: Updated README.md and package.json description structures to reflect the updated framework capabilities.