Skip to content

feat: suport mockserver file as database and add dsl-genenrator skill#1792

Open
hexqi wants to merge 9 commits intoopentiny:feat/dsl-generator-skillfrom
hexqi:feat/file-as-database
Open

feat: suport mockserver file as database and add dsl-genenrator skill#1792
hexqi wants to merge 9 commits intoopentiny:feat/dsl-generator-skillfrom
hexqi:feat/file-as-database

Conversation

@hexqi
Copy link
Copy Markdown
Collaborator

@hexqi hexqi commented Mar 23, 2026

English | 简体中文

PR

  • file启动模式:mockserver 添加使用file(而不是db)启动方式(data/**/*.json文件),使用该模式时,mockserver接口从文件中获取数据,也会更新到文件中
    使用方式:项目根目录执行 pnpm dev:file
  • 添加dsl-generator skill:添加项目级skill时,可以在claude code中使用该skill 生成页面/区块/应用的DSL到 data/**/*.json中,配合file启动模式,可以实现让本地AI Agent工具生成生成页面/区块/应用

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

hexqi added 8 commits March 5, 2026 19:17
This commit fixes 4 critical issues identified in commit 6acc71e:

1. [P0] ESM/CJS interop crash
   - Convert StoreAdapter.js from ES6 export to CommonJS
   - Convert NedbStore.js from ES6 imports/exports to CommonJS
   - Fixes startup crash caused by module format mismatch

2. [P0] StoreFactory constructor arguments
   - Pass config.fileDbPath to FileStore constructor
   - Pass filename in options object to NedbStore constructor
   - Import getDatabasePath utility

3. [P0] NedbStore double $set wrapping
   - Remove extra $set wrapping in update method
   - Pass update operators directly to NeDB

4. [P1] Unique constraint configuration
   - Align on 'indexes' array format across all stores
   - Extract unique fields from indexes in FileStore
   - Process indexes array directly in NedbStore

All fixes verified with startup test.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 23, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (3)
  • refactor/develop
  • ospp-*
  • release/*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 04c6d25e-0d73-4377-966d-8766c9a83187

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the enhancement New feature or request label Mar 23, 2026
@hexqi hexqi changed the title Feat/file as database feat: suport mockserver file as database and add dsl-genenrator skill Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant