create-merlin-brain 3.7.2 → 3.8.0-beta.0

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.
@@ -0,0 +1,65 @@
1
+ {
2
+ "id": "security-audit",
3
+ "name": "Security Audit",
4
+ "description": "Run a full security sweep. Get fixes and a clean report.",
5
+ "version": "1.0",
6
+ "steps": [
7
+ {
8
+ "id": "scan",
9
+ "label": "Security Scan",
10
+ "agent_hint": "security",
11
+ "agent_override": "merlin-security",
12
+ "input_template": "Perform a comprehensive security audit of:\n\n{{task}}\n\nCheck for:\n- SQL injection, XSS, CSRF\n- Authentication and authorization bypasses\n- Secrets exposure (API keys, tokens in code)\n- Input validation gaps\n- Rate limiting absence\n- Dependency vulnerabilities\n- Insecure configurations\n\nProduce a findings report sorted by severity (CRITICAL > HIGH > MEDIUM > LOW).\n\nOutput SCAN_COMPLETE with findings.",
13
+ "expects": "SCAN_COMPLETE",
14
+ "output_file": "security-findings.md",
15
+ "retry": 1
16
+ },
17
+ {
18
+ "id": "prioritize",
19
+ "label": "Prioritize Findings",
20
+ "agent_hint": "architect",
21
+ "input_template": "Review and prioritize security findings:\n\n{{security-findings.md}}\n\nPrevious context:\n{{handoff}}\n\nFor each finding:\n1. Confirm it's a real vulnerability (not false positive)\n2. Assess exploitability\n3. Determine fix complexity\n4. Create prioritized fix plan (CRITICAL first)\n\nOutput PRIORITIZED with fix plan.",
22
+ "expects": "PRIORITIZED",
23
+ "output_file": "fix-plan.md",
24
+ "retry": 1
25
+ },
26
+ {
27
+ "id": "fix",
28
+ "label": "Apply Security Fixes",
29
+ "agent_hint": "security",
30
+ "input_template": "Apply security fixes according to this plan:\n\n{{fix-plan.md}}\n\nPrevious context:\n{{handoff}}\n\nFix all CRITICAL and HIGH issues. Document any MEDIUM issues deferred.\nCommit each fix atomically with descriptive messages.\n\nOutput FIXES_APPLIED when done.",
31
+ "expects": "FIXES_APPLIED",
32
+ "retry": 2,
33
+ "blend": true
34
+ },
35
+ {
36
+ "id": "verify",
37
+ "label": "Independent Security Review",
38
+ "agent_hint": "security",
39
+ "agent_override": "merlin-security",
40
+ "input_template": "Independent verification of security fixes.\n\nDO NOT read the original findings. Re-scan the codebase fresh.\nCompare your findings against the fix list in the handoff.\n\nContext:\n{{handoff}}\n\nOutput VERIFIED if all CRITICAL/HIGH issues are resolved.",
41
+ "expects": "VERIFIED",
42
+ "independent": true,
43
+ "retry": 1
44
+ },
45
+ {
46
+ "id": "test",
47
+ "label": "Security Tests",
48
+ "agent_hint": "test",
49
+ "input_template": "Write security-focused tests:\n- Auth bypass attempts\n- Input fuzzing for injection\n- Permission boundary tests\n- Rate limit verification\n\nContext:\n{{handoff}}\n\nOutput TESTS_PASS when all security tests pass.",
50
+ "expects": "TESTS_PASS",
51
+ "retry": 2
52
+ },
53
+ {
54
+ "id": "pr",
55
+ "label": "Security PR",
56
+ "agent_hint": "impl",
57
+ "input_template": "Create a PR for security fixes.\n\nContext:\n{{handoff}}\n\nPR should:\n- NOT expose vulnerability details in title\n- Include summary of fixes in private description\n- Tag as security-related\n\nOutput PR_CREATED when done.",
58
+ "expects": "PR_CREATED",
59
+ "action": "gh_pr_create",
60
+ "retry": 1
61
+ }
62
+ ],
63
+ "on_failure": "pause",
64
+ "on_complete": "notify"
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-merlin-brain",
3
- "version": "3.7.2",
3
+ "version": "3.8.0-beta.0",
4
4
  "description": "Merlin - The Ultimate AI Brain for Claude Code. One install: workflows, agents, loop, and Sights MCP server.",
5
5
  "type": "module",
6
6
  "main": "./dist/server/index.js",