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', openedPath: filePath });
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 files = listAllFiles(ROOT);
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);
@@ -63,5 +63,4 @@ if (terminalHandlers) {
63
63
  const port = 3001;
64
64
  server.listen(port, () => {
65
65
  console.log('File server running on http://localhost:' + port);
66
- console.log('ROOT directory:', ROOT);
67
66
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-burn",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "Git branch-based cleanup tool with bburn, baccept, and brevert commands",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",