cerber-core 1.1.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cerber-core",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Your architecture roadmap becomes executable law. Guardian blocks commits that violate your plan. Pay architect once, Cerber enforces forever. Save $6k/month/dev.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,48 @@
1
+ /**
2
+ * ⚠️ CERBER TEMPLATE (NOT SOURCE OF TRUTH)
3
+ *
4
+ * This file is a starting point. Edit it to match YOUR architecture.
5
+ * The source of truth is CERBER.md.
6
+ *
7
+ * Generated by: npx cerber init
8
+ * Project: {{PROJECT_NAME}}
9
+ *
10
+ * See: https://github.com/Agaslez/cerber-core#guardian-configuration
11
+ */
12
+
13
+ export const BACKEND_SCHEMA = {
14
+ version: "1.0.0",
15
+
16
+ // Your architecture rules (customize)
17
+ rules: [],
18
+
19
+ // Patterns that should never appear in your code
20
+ forbiddenPatterns: [
21
+ // Uncomment and customize based on your tech stack:
22
+ // {
23
+ // pattern: /password\s*=\s*['"][^'"]+['"]/i,
24
+ // name: "Hardcoded passwords",
25
+ // severity: "error"
26
+ // },
27
+ // {
28
+ // pattern: /api[_-]?key\s*=\s*['"][^'"]+['"]/i,
29
+ // name: "Hardcoded API keys",
30
+ // severity: "error"
31
+ // }
32
+ ]
33
+ };
34
+
35
+ export default BACKEND_SCHEMA;
36
+
37
+ /**
38
+ * 💡 Next Steps:
39
+ *
40
+ * 1. Define your project structure in CERBER.md (single source of truth)
41
+ * 2. Add forbiddenPatterns for your tech stack
42
+ * 3. Add requiredImports rules for your architecture layers
43
+ * 4. Test with: npx cerber-guardian
44
+ *
45
+ * Full examples:
46
+ * - node_modules/cerber-core/examples/backend-schema.ts
47
+ * - node_modules/cerber-core/examples/frontend-schema.ts
48
+ */