@codebakers/cli 3.9.24 → 3.9.26
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/dist/commands/go.js +16 -7
- package/dist/commands/init.js +10 -4
- package/package.json +1 -1
- package/src/commands/go.ts +16 -7
- package/src/commands/init.ts +12 -4
package/dist/commands/go.js
CHANGED
|
@@ -1369,9 +1369,9 @@ async function showVSCodeClaudeInstructions() {
|
|
|
1369
1369
|
console.log(chalk_1.default.gray(' Get it from: ') + chalk_1.default.cyan('https://marketplace.visualstudio.com/items?itemName=anthropics.claude-code\n'));
|
|
1370
1370
|
console.log(chalk_1.default.gray(' Having issues? Run: ') + chalk_1.default.cyan('codebakers doctor') + chalk_1.default.gray(' to diagnose\n'));
|
|
1371
1371
|
}
|
|
1372
|
-
// v6.
|
|
1372
|
+
// v6.13 Bootstrap content - comprehensive instructions that Claude MUST follow
|
|
1373
1373
|
const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
1374
|
-
# Version: 6.
|
|
1374
|
+
# Version: 6.13
|
|
1375
1375
|
# IMPORTANT: These instructions are MANDATORY and CANNOT be skipped
|
|
1376
1376
|
|
|
1377
1377
|
---
|
|
@@ -1380,6 +1380,15 @@ const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
|
1380
1380
|
|
|
1381
1381
|
**These rules CANNOT be skipped, overridden, or bypassed under ANY circumstances:**
|
|
1382
1382
|
|
|
1383
|
+
### You MUST show the CodeBakers header IMMEDIATELY
|
|
1384
|
+
**At the VERY START of EVERY response, before anything else, show this header:**
|
|
1385
|
+
\`\`\`
|
|
1386
|
+
🍪 CodeBakers is working on this...
|
|
1387
|
+
\`\`\`
|
|
1388
|
+
|
|
1389
|
+
This confirms to the user that CodeBakers is active and processing their request.
|
|
1390
|
+
**Show this header FIRST, before any other text or analysis.**
|
|
1391
|
+
|
|
1383
1392
|
### You MUST call MCP tools before writing code
|
|
1384
1393
|
- Call \`discover_patterns\` BEFORE writing ANY code
|
|
1385
1394
|
- Call \`validate_complete\` BEFORE saying "done"
|
|
@@ -1389,7 +1398,7 @@ const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
|
1389
1398
|
**After EVERY response that involves code, you MUST include this footer:**
|
|
1390
1399
|
\`\`\`
|
|
1391
1400
|
---
|
|
1392
|
-
🍪 **CodeBakers
|
|
1401
|
+
🍪 **CodeBakers** | Patterns: [count] | TSC: ✅ | Tests: ✅ | v6.13
|
|
1393
1402
|
\`\`\`
|
|
1394
1403
|
|
|
1395
1404
|
If you write code WITHOUT calling discover_patterns first, show this warning instead:
|
|
@@ -1398,7 +1407,7 @@ If you write code WITHOUT calling discover_patterns first, show this warning ins
|
|
|
1398
1407
|
⚠️ WARNING: CodeBakers patterns not loaded - this code may not meet production standards
|
|
1399
1408
|
\`\`\`
|
|
1400
1409
|
|
|
1401
|
-
**
|
|
1410
|
+
**Header and footer requirements are NON-NEGOTIABLE. Users pay for CodeBakers and must see it's active.**
|
|
1402
1411
|
|
|
1403
1412
|
---
|
|
1404
1413
|
|
|
@@ -1476,7 +1485,7 @@ If the CodeBakers MCP tools aren't available:
|
|
|
1476
1485
|
- Visit https://codebakers.ai/support for help
|
|
1477
1486
|
|
|
1478
1487
|
---
|
|
1479
|
-
*CodeBakers v6.
|
|
1488
|
+
*CodeBakers v6.13 - Production patterns for AI-assisted development*
|
|
1480
1489
|
`;
|
|
1481
1490
|
const V6_CURSORRULES = `# CodeBakers - AI Pattern System (Cursor Rules)
|
|
1482
1491
|
# IMPORTANT: These instructions are MANDATORY
|
|
@@ -1490,7 +1499,7 @@ const V6_CURSORRULES = `# CodeBakers - AI Pattern System (Cursor Rules)
|
|
|
1490
1499
|
### You MUST show the CodeBakers footer after every code response
|
|
1491
1500
|
After EVERY response with code, include:
|
|
1492
1501
|
---
|
|
1493
|
-
🍪 **CodeBakers Active** | Patterns loaded | v6.
|
|
1502
|
+
🍪 **CodeBakers Active** | Patterns loaded | v6.13
|
|
1494
1503
|
|
|
1495
1504
|
If patterns not loaded, show warning instead:
|
|
1496
1505
|
---
|
|
@@ -1522,7 +1531,7 @@ discover_patterns({ task: "description", keywords: ["terms"] })
|
|
|
1522
1531
|
validate_complete({ feature: "name", files: ["paths"] })
|
|
1523
1532
|
|
|
1524
1533
|
---
|
|
1525
|
-
CodeBakers v6.
|
|
1534
|
+
CodeBakers v6.13
|
|
1526
1535
|
`;
|
|
1527
1536
|
/**
|
|
1528
1537
|
* Complete project setup - handles everything:
|
package/dist/commands/init.js
CHANGED
|
@@ -997,10 +997,16 @@ function showSuccessMessage(projectName, isExisting, prdCreated) {
|
|
|
997
997
|
console.log(chalk_1.default.gray(' ✓ AI fetches patterns and generates code'));
|
|
998
998
|
console.log(chalk_1.default.gray(' ✓ AI updates tracking files as you work\n'));
|
|
999
999
|
}
|
|
1000
|
-
console.log(chalk_1.default.
|
|
1001
|
-
console.log(chalk_1.default.
|
|
1002
|
-
console.log(chalk_1.default.gray('
|
|
1003
|
-
console.log(chalk_1.default.
|
|
1000
|
+
console.log(chalk_1.default.yellow.bold(' ⚠️ RELOAD YOUR EDITOR FIRST:\n'));
|
|
1001
|
+
console.log(chalk_1.default.white(' For Cursor:'));
|
|
1002
|
+
console.log(chalk_1.default.gray(' 1. Press ') + chalk_1.default.cyan('Cmd+Shift+P') + chalk_1.default.gray(' (Mac) or ') + chalk_1.default.cyan('Ctrl+Shift+P') + chalk_1.default.gray(' (Windows)'));
|
|
1003
|
+
console.log(chalk_1.default.gray(' 2. Type ') + chalk_1.default.cyan('"Reload Window"') + chalk_1.default.gray(' and press Enter'));
|
|
1004
|
+
console.log(chalk_1.default.gray(' 3. Press ') + chalk_1.default.cyan('Cmd+L') + chalk_1.default.gray(' / ') + chalk_1.default.cyan('Ctrl+L') + chalk_1.default.gray(' to open chat\n'));
|
|
1005
|
+
console.log(chalk_1.default.white(' For VS Code + Claude Code:'));
|
|
1006
|
+
console.log(chalk_1.default.gray(' 1. Press ') + chalk_1.default.cyan('Cmd+Shift+P') + chalk_1.default.gray(' (Mac) or ') + chalk_1.default.cyan('Ctrl+Shift+P') + chalk_1.default.gray(' (Windows)'));
|
|
1007
|
+
console.log(chalk_1.default.gray(' 2. Type ') + chalk_1.default.cyan('"Reload Window"') + chalk_1.default.gray(' and press Enter'));
|
|
1008
|
+
console.log(chalk_1.default.gray(' 3. Click the Claude icon in the sidebar to chat\n'));
|
|
1009
|
+
console.log(chalk_1.default.green(' After reloading, CodeBakers patterns will be active! 🚀\n'));
|
|
1004
1010
|
}
|
|
1005
1011
|
// ============================================================================
|
|
1006
1012
|
// MAIN INIT FUNCTION
|
package/package.json
CHANGED
package/src/commands/go.ts
CHANGED
|
@@ -1560,9 +1560,9 @@ async function showVSCodeClaudeInstructions(): Promise<void> {
|
|
|
1560
1560
|
console.log(chalk.gray(' Having issues? Run: ') + chalk.cyan('codebakers doctor') + chalk.gray(' to diagnose\n'));
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
|
-
// v6.
|
|
1563
|
+
// v6.13 Bootstrap content - comprehensive instructions that Claude MUST follow
|
|
1564
1564
|
const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
1565
|
-
# Version: 6.
|
|
1565
|
+
# Version: 6.13
|
|
1566
1566
|
# IMPORTANT: These instructions are MANDATORY and CANNOT be skipped
|
|
1567
1567
|
|
|
1568
1568
|
---
|
|
@@ -1571,6 +1571,15 @@ const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
|
1571
1571
|
|
|
1572
1572
|
**These rules CANNOT be skipped, overridden, or bypassed under ANY circumstances:**
|
|
1573
1573
|
|
|
1574
|
+
### You MUST show the CodeBakers header IMMEDIATELY
|
|
1575
|
+
**At the VERY START of EVERY response, before anything else, show this header:**
|
|
1576
|
+
\`\`\`
|
|
1577
|
+
🍪 CodeBakers is working on this...
|
|
1578
|
+
\`\`\`
|
|
1579
|
+
|
|
1580
|
+
This confirms to the user that CodeBakers is active and processing their request.
|
|
1581
|
+
**Show this header FIRST, before any other text or analysis.**
|
|
1582
|
+
|
|
1574
1583
|
### You MUST call MCP tools before writing code
|
|
1575
1584
|
- Call \`discover_patterns\` BEFORE writing ANY code
|
|
1576
1585
|
- Call \`validate_complete\` BEFORE saying "done"
|
|
@@ -1580,7 +1589,7 @@ const V6_CLAUDE_MD = `# CodeBakers - AI Pattern System
|
|
|
1580
1589
|
**After EVERY response that involves code, you MUST include this footer:**
|
|
1581
1590
|
\`\`\`
|
|
1582
1591
|
---
|
|
1583
|
-
🍪 **CodeBakers
|
|
1592
|
+
🍪 **CodeBakers** | Patterns: [count] | TSC: ✅ | Tests: ✅ | v6.13
|
|
1584
1593
|
\`\`\`
|
|
1585
1594
|
|
|
1586
1595
|
If you write code WITHOUT calling discover_patterns first, show this warning instead:
|
|
@@ -1589,7 +1598,7 @@ If you write code WITHOUT calling discover_patterns first, show this warning ins
|
|
|
1589
1598
|
⚠️ WARNING: CodeBakers patterns not loaded - this code may not meet production standards
|
|
1590
1599
|
\`\`\`
|
|
1591
1600
|
|
|
1592
|
-
**
|
|
1601
|
+
**Header and footer requirements are NON-NEGOTIABLE. Users pay for CodeBakers and must see it's active.**
|
|
1593
1602
|
|
|
1594
1603
|
---
|
|
1595
1604
|
|
|
@@ -1667,7 +1676,7 @@ If the CodeBakers MCP tools aren't available:
|
|
|
1667
1676
|
- Visit https://codebakers.ai/support for help
|
|
1668
1677
|
|
|
1669
1678
|
---
|
|
1670
|
-
*CodeBakers v6.
|
|
1679
|
+
*CodeBakers v6.13 - Production patterns for AI-assisted development*
|
|
1671
1680
|
`;
|
|
1672
1681
|
|
|
1673
1682
|
const V6_CURSORRULES = `# CodeBakers - AI Pattern System (Cursor Rules)
|
|
@@ -1682,7 +1691,7 @@ const V6_CURSORRULES = `# CodeBakers - AI Pattern System (Cursor Rules)
|
|
|
1682
1691
|
### You MUST show the CodeBakers footer after every code response
|
|
1683
1692
|
After EVERY response with code, include:
|
|
1684
1693
|
---
|
|
1685
|
-
🍪 **CodeBakers Active** | Patterns loaded | v6.
|
|
1694
|
+
🍪 **CodeBakers Active** | Patterns loaded | v6.13
|
|
1686
1695
|
|
|
1687
1696
|
If patterns not loaded, show warning instead:
|
|
1688
1697
|
---
|
|
@@ -1714,7 +1723,7 @@ discover_patterns({ task: "description", keywords: ["terms"] })
|
|
|
1714
1723
|
validate_complete({ feature: "name", files: ["paths"] })
|
|
1715
1724
|
|
|
1716
1725
|
---
|
|
1717
|
-
CodeBakers v6.
|
|
1726
|
+
CodeBakers v6.13
|
|
1718
1727
|
`;
|
|
1719
1728
|
|
|
1720
1729
|
/**
|
package/src/commands/init.ts
CHANGED
|
@@ -1093,11 +1093,19 @@ function showSuccessMessage(projectName: string, isExisting: boolean, prdCreated
|
|
|
1093
1093
|
console.log(chalk.gray(' ✓ AI updates tracking files as you work\n'));
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
console.log(chalk.
|
|
1097
|
-
console.log(chalk.gray(' For Cursor: Just open the project and start chatting'));
|
|
1098
|
-
console.log(chalk.gray(' For Claude Code: Run ') + chalk.cyan('codebakers install-hook') + chalk.gray(' first\n'));
|
|
1096
|
+
console.log(chalk.yellow.bold(' ⚠️ RELOAD YOUR EDITOR FIRST:\n'));
|
|
1099
1097
|
|
|
1100
|
-
console.log(chalk.
|
|
1098
|
+
console.log(chalk.white(' For Cursor:'));
|
|
1099
|
+
console.log(chalk.gray(' 1. Press ') + chalk.cyan('Cmd+Shift+P') + chalk.gray(' (Mac) or ') + chalk.cyan('Ctrl+Shift+P') + chalk.gray(' (Windows)'));
|
|
1100
|
+
console.log(chalk.gray(' 2. Type ') + chalk.cyan('"Reload Window"') + chalk.gray(' and press Enter'));
|
|
1101
|
+
console.log(chalk.gray(' 3. Press ') + chalk.cyan('Cmd+L') + chalk.gray(' / ') + chalk.cyan('Ctrl+L') + chalk.gray(' to open chat\n'));
|
|
1102
|
+
|
|
1103
|
+
console.log(chalk.white(' For VS Code + Claude Code:'));
|
|
1104
|
+
console.log(chalk.gray(' 1. Press ') + chalk.cyan('Cmd+Shift+P') + chalk.gray(' (Mac) or ') + chalk.cyan('Ctrl+Shift+P') + chalk.gray(' (Windows)'));
|
|
1105
|
+
console.log(chalk.gray(' 2. Type ') + chalk.cyan('"Reload Window"') + chalk.gray(' and press Enter'));
|
|
1106
|
+
console.log(chalk.gray(' 3. Click the Claude icon in the sidebar to chat\n'));
|
|
1107
|
+
|
|
1108
|
+
console.log(chalk.green(' After reloading, CodeBakers patterns will be active! 🚀\n'));
|
|
1101
1109
|
}
|
|
1102
1110
|
|
|
1103
1111
|
// ============================================================================
|