Restructure to monorepo and update dependencies#79
Merged
Merged
Conversation
JeremyDev87
force-pushed
the
fix/77
branch
2 times, most recently
from
December 22, 2025 06:42
b3f5997 to
cbe87b5
Compare
- Reorganize project structure (packages/rules, apps/mcp-server) - Create codingbuddy-rules package - Update MCP SDK and zod dependencies - Fix workspace configuration resolve #77
JeremyDev87
marked this pull request as ready for review
December 22, 2025 06:50
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.
Restructure to monorepo and update dependencies
📋 Summary
This PR restructures the project into a monorepo architecture and updates key dependencies. The main changes include reorganizing the project structure, creating a new
codingbuddy-rulespackage, and updating dependencies to their latest versions.Resolves: #77
🔄 Changes
Project Structure Reorganization
Moved
.ai-rules/→packages/rules/.ai-rules/packages/rulespackageMoved
mcp-server/→apps/mcp-server/Updated
package.jsonworkspaces configurationNew Package:
codingbuddy-rulesCreated a new publishable package
packages/rules/that exports AI rules:package.json: Package configuration with proper exportsindex.js: ExportsrulesPathpointing to.ai-rulesdirectoryindex.d.ts: TypeScript definitions.ai-rules/: All AI rules files (agents, adapters, schemas, rules)This package can be published to npm and used by other projects that want to use CodingBuddy's AI rules.
Dependency Updates
@modelcontextprotocol/sdk:1.24.3→1.25.1@hono/node-server,json-schema-typedzod:^3.22.0→^4.2.1New dependencies:
@hono/node-server@^1.19.7json-schema-typed@^8.0.2Code Changes
MCP Server Rules Service (
apps/mcp-server/src/rules/rules.service.ts)Updated the rules directory resolution logic to support the new monorepo structure:
CODINGBUDDY_RULES_DIRtakes precedencecodingbuddy-rulespackage to get rules pathdist/src/rules) and development (src/rules) pathsapps/mcp-server→packages/rules)Documentation Updates
Updated path references in multiple documentation files:
.antigravity/rules/instructions.md.claude/rules/custom-instructions.md.codex/rules/system-prompt.md.github/workflows/*.yml(canary, dev, release).kiro/rules/guidelines.md.q/rules/customizations.mdCLAUDE.md,CONTRIBUTING.mdREADME.*.md)docs/directoryYarn Configuration
.yarnrc.ymlat root levelmcp-server/.yarnrc.yml(consolidated to root)yarn.lockwith new workspace structure📊 Impact
Files Changed
yarn.lockinmcp-server/Breaking Changes
.ai-rules/directly will need to update paths or use thecodingbuddy-rulespackage.Migration Guide
For projects using CodingBuddy rules:
Option 1: Use the package (Recommended)
Option 2: Environment variable
export CODINGBUDDY_RULES_DIR=/path/to/packages/rules/.ai-rulesOption 3: Update paths
.ai-rules/topackages/rules/.ai-rules/✅ Testing
🔗 Related