bonzai-burn 1.0.80 → 1.0.81
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.
|
@@ -6,9 +6,6 @@ function openCursorHandler(req, res) {
|
|
|
6
6
|
try {
|
|
7
7
|
const requestedPath = req.body.path || '';
|
|
8
8
|
|
|
9
|
-
console.log('[open-cursor] ROOT:', ROOT);
|
|
10
|
-
console.log('[open-cursor] requestedPath:', requestedPath);
|
|
11
|
-
|
|
12
9
|
// Resolve path relative to ROOT (similar to other endpoints)
|
|
13
10
|
// If path is absolute and within ROOT, use it directly
|
|
14
11
|
// Otherwise, resolve it relative to ROOT
|
|
@@ -48,8 +45,6 @@ function openCursorHandler(req, res) {
|
|
|
48
45
|
return res.status(400).json({ error: 'Invalid path' });
|
|
49
46
|
}
|
|
50
47
|
|
|
51
|
-
console.log('[open-cursor] resolved filePath:', filePath);
|
|
52
|
-
|
|
53
48
|
const { line } = req.body;
|
|
54
49
|
|
|
55
50
|
// Always use cursor CLI command first (it handles line numbers correctly)
|
|
@@ -98,7 +93,7 @@ function openCursorHandler(req, res) {
|
|
|
98
93
|
}, 500);
|
|
99
94
|
}
|
|
100
95
|
|
|
101
|
-
res.json({ success: true, message: 'Cursor opened and focused successfully'
|
|
96
|
+
res.json({ success: true, message: 'Cursor opened and focused successfully' });
|
|
102
97
|
}
|
|
103
98
|
});
|
|
104
99
|
};
|
|
@@ -4,7 +4,9 @@ const { listAllFiles } = require('../utils/fileList');
|
|
|
4
4
|
|
|
5
5
|
function listHandler(req, res) {
|
|
6
6
|
try {
|
|
7
|
-
const
|
|
7
|
+
const relativeFiles = listAllFiles(ROOT);
|
|
8
|
+
// Prefix all paths with ROOT to make them absolute
|
|
9
|
+
const files = relativeFiles.map(f => path.join(ROOT, f));
|
|
8
10
|
res.json({ files });
|
|
9
11
|
} catch (e) {
|
|
10
12
|
res.status(500).send(e.message);
|