Add AI-powered application generation with business logic and testing to ObjectQL#36
Add AI-powered application generation with business logic and testing to ObjectQL#36
Conversation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…lidation Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…rns to constants Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
@copilot 生成的企业应用元数据范围应该包含规范文档中的所有元数据,而不只是元数据,你应该开发一个agent分步生成,你应该具有对话能力,客户提出改进的需求,你针对性地做改进 |
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
@copilot ai生成的代码项目应该包括业务逻辑部分,actions,hooks等等。应该提供测试方案验证app的业务逻辑 |
|
@copilot 继续完成所有工作 |
1 similar comment
I'm continuing the work now. Based on the previous feedback, I'm implementing:
Working on these enhancements now. |
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Simplified in commit a440f5c. Merged 4 separate commands into a unified interface: Before:
After (single command with modes):
Benefits: Simpler to use, fewer commands to remember, consistent flag-based interface, built-in help when no mode specified. |
|
你这个改动太极端了,没有意义,没有减少学习成本。觉得最常见的场景是交互式会话,要让用户很方便的输入这个命令。 |
|
…ands Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Redesigned in commit 89616e8. The interactive mode is now the default and easiest to use: Just type: objectql aiThis immediately starts the conversational builder. Other modes use clear subcommands:
The most common scenario (interactive conversation) now requires only 2 words, making it very convenient while keeping other modes clear and discoverable. |
|
ai相关的功能考虑到放到内核中,因为下一步API也要实现。cli只是调用内核。然后还要帮我更新docs相关的文档。 |
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Completed in commit 7d07a31: Moved to Core:
Usage: // In any package
import { ObjectQLAgent } from '@objectql/core';
const agent = new ObjectQLAgent({ apiKey: '...' });
const result = await agent.generateApp({ description: '...' });Documentation:
|
|
2026-01-13T03:18:13.4617348Z ##[group]Run pnpm install --frozen-lockfile |
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Fixed in commit 764696b. Updated |
AI Agent and CLI for Enterprise Application Creation and Validation
Completed
1. Moved AI functionality to core package
@objectql/core/src/ai-agent.tswith ObjectQLAgent class@objectql/core2. Improved AI command structure with interactive mode as default
objectql ai- Default interactive conversational modeobjectql ai generate- One-shot generation subcommandobjectql ai validate- Validation subcommandobjectql ai chat- Chat assistant subcommand3. Complete metadata and business logic generation
4. AI-powered validation
5. Interactive features
6. Comprehensive documentation
/docs/ai/cli-usage.md- Complete CLI guide/docs/ai/programmatic-api.md- Programmatic API documentation/docs/ai/index.md- Main AI documentation index7. CI/Build fixes
Summary
CI Build Fix:
Updated
pnpm-lock.yamlto include the new dependencies added to@objectql/core:openai@^4.28.0- OpenAI API clientjs-yaml@^4.1.0- YAML parsing for metadata@types/js-yaml@^4.0.5- TypeScript types for js-yamlArchitecture:
Moved AI functionality from CLI to core package enabling:
@objectql/core, CLI is thin wrappernew ObjectQLAgent()Package Structure:
API Usage:
CLI Usage:
Documentation:
The implementation enables the API server and other packages to use the same AI capabilities while maintaining the user-friendly CLI interface. All builds now pass successfully.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.