devbonzai 2.2.203 → 2.2.204
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
package/templates/config.js
CHANGED
|
@@ -3,6 +3,9 @@ const path = require('path');
|
|
|
3
3
|
// Root directory (one level up from templates/)
|
|
4
4
|
const ROOT = path.join(__dirname, '..');
|
|
5
5
|
|
|
6
|
+
// Anthropic API key for Claude
|
|
7
|
+
const ANTHROPIC_API_KEY = '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';
|
|
8
|
+
|
|
6
9
|
// Initialize babelParser (optional dependency)
|
|
7
10
|
let babelParser = null;
|
|
8
11
|
try {
|
|
@@ -13,6 +16,7 @@ try {
|
|
|
13
16
|
|
|
14
17
|
module.exports = {
|
|
15
18
|
ROOT,
|
|
16
|
-
babelParser
|
|
19
|
+
babelParser,
|
|
20
|
+
ANTHROPIC_API_KEY
|
|
17
21
|
};
|
|
18
22
|
|
|
@@ -4,9 +4,7 @@ const glob = require('glob');
|
|
|
4
4
|
const { Anthropic } = require('@anthropic-ai/sdk');
|
|
5
5
|
const { listAllFiles } = require('../utils/fileList');
|
|
6
6
|
const { getIgnorePatterns, shouldIgnore } = require('../utils/ignore');
|
|
7
|
-
|
|
8
|
-
// Hardcoded API key as fallback
|
|
9
|
-
const DEFAULT_API_KEY = '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';
|
|
7
|
+
const { ANTHROPIC_API_KEY } = require('../config');
|
|
10
8
|
|
|
11
9
|
module.exports = async function scanStandards(req, res) {
|
|
12
10
|
try {
|
|
@@ -16,8 +14,8 @@ module.exports = async function scanStandards(req, res) {
|
|
|
16
14
|
return res.status(400).json({ error: 'projectPath and standards required' });
|
|
17
15
|
}
|
|
18
16
|
|
|
19
|
-
// Use provided apiKey or fall back to
|
|
20
|
-
const anthropicApiKey = apiKey ||
|
|
17
|
+
// Use provided apiKey or fall back to config
|
|
18
|
+
const anthropicApiKey = apiKey || ANTHROPIC_API_KEY;
|
|
21
19
|
|
|
22
20
|
// Get file structure for context
|
|
23
21
|
const fileTree = getFileTree(projectPath);
|