cerber-core 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -50,7 +50,7 @@ ROI: Break-even on Day 1
50
50
  **For CTOs & Engineering Managers:**
51
51
  - **Reduce production incidents** - 95% bugs caught pre-production (vs 60-70% manual reviews)
52
52
  - **Cut debugging costs** - 4.5 hours saved per developer per session
53
- - **Speed up onboarding** - BIBLE.md = instant project understanding for new hires
53
+ - **Speed up onboarding** - CERBER.md = instant project understanding for new hires
54
54
  - **Enforce architecture** - Prevent technical debt before it enters codebase
55
55
 
56
56
  **Cost Comparison:**
@@ -91,7 +91,7 @@ Cerber guards → enforces your decisions
91
91
 
92
92
  **Cerber Core solution:**
93
93
  ```
94
- ✅ Architect defines rules once (BIBLE.md + Guardian schema)
94
+ ✅ Architect defines rules once (CERBER.md contract)
95
95
  ✅ Cerber enforces automatically forever
96
96
  ✅ Every commit validates against your roadmap (<1 second)
97
97
  ✅ Architecture stays intact as team scales
@@ -141,7 +141,7 @@ export const BACKEND_SCHEMA = {
141
141
  - **Focus Mode** - Generate 500 LOC context (vs 10K LOC) ⭐
142
142
  - Module boundaries enforcement
143
143
  - Connection contracts between modules
144
- - BIBLE.md project mapping
144
+ - CERBER.md project mapping
145
145
 
146
146
  ---
147
147
 
@@ -1143,88 +1143,6 @@ git commit # Guardian validates
1143
1143
 
1144
1144
  ---
1145
1145
 
1146
- ## 📖 BIBLE.md - Your Project's Single Source of Truth
1147
-
1148
- **BIBLE.md** is your project's master map - the ONE place where everything is documented.
1149
-
1150
- ### Why BIBLE.md?
1151
-
1152
- With AI coding, teams can diverge quickly. Everyone works fast, but in different directions. BIBLE.md keeps everyone aligned:
1153
-
1154
- - **All modules documented** - What exists, who owns it, what it does
1155
- - **All connections mapped** - How modules talk to each other
1156
- - **Team responsibilities clear** - Who works on what
1157
- - **Architecture decisions recorded** - Why things are built this way
1158
-
1159
- ### How It Works
1160
-
1161
- ```bash
1162
- # 1. Copy template
1163
- cp node_modules/cerber-core/team/templates/BIBLE_TEMPLATE.md .cerber/BIBLE.md
1164
-
1165
- # 2. Describe your architecture
1166
- nano .cerber/BIBLE.md
1167
-
1168
- # 3. Keep it updated when adding modules
1169
- # 4. Reference in code reviews
1170
- ```
1171
-
1172
- ### What's Inside BIBLE.md?
1173
-
1174
- ```markdown
1175
- # PROJECT BIBLE - Master Map
1176
-
1177
- ## Architecture Overview
1178
- [Visual diagram of your system]
1179
-
1180
- ## Modules Index
1181
- 1. **auth-service** - Authentication & JWT
1182
- - Owner: Alice
1183
- - Files: `src/modules/auth/`
1184
-
1185
- 2. **payment-service** - Stripe integration
1186
- - Owner: Bob
1187
- - Files: `src/modules/payment/`
1188
-
1189
- ## Connections Map
1190
- - `auth-service` → `user-service`: validateToken()
1191
- - `payment-service` → `notification-service`: sendReceipt()
1192
-
1193
- ## Team Responsibilities
1194
- - Alice: auth, user management
1195
- - Bob: payments, billing
1196
- ```
1197
-
1198
- ### Integration with Cerber
1199
-
1200
- Cerber automatically reads BIBLE.md from `.cerber/BIBLE.md` when running health checks:
1201
-
1202
- ```typescript
1203
- // server.ts
1204
- import { createHealthEndpoint } from 'cerber-core';
1205
-
1206
- const healthChecks = {
1207
- // Cerber automatically validates against .cerber/BIBLE.md
1208
- architecture: async () => {
1209
- // Checks if actual modules match BIBLE structure
1210
- return await validateArchitectureAgainstBible();
1211
- }
1212
- };
1213
-
1214
- app.get('/api/health', createHealthEndpoint(healthChecks));
1215
- ```
1216
-
1217
- **What Cerber checks:**
1218
- - **Guardian** validates modules match BIBLE structure (pre-commit)
1219
- - **Focus Mode** uses BIBLE to isolate context (500 LOC vs 10K LOC)
1220
- - **Module checks** ensure boundaries defined in BIBLE are respected
1221
- - **Morning checks** verify BIBLE is up-to-date with codebase
1222
- - **Runtime health** checks architecture drift from BIBLE
1223
-
1224
- **Result:** Your team stays aligned even when coding at AI speed! 🚀
1225
-
1226
- ---
1227
-
1228
1146
  ## 🏆 Why Cerber Core?
1229
1147
 
1230
1148
  ### Unique Innovations