bonzai-burn 1.0.79 → 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.
@@ -5,7 +5,7 @@ const { ROOT } = require('../config');
5
5
  function openCursorHandler(req, res) {
6
6
  try {
7
7
  const requestedPath = req.body.path || '';
8
-
8
+
9
9
  // Resolve path relative to ROOT (similar to other endpoints)
10
10
  // If path is absolute and within ROOT, use it directly
11
11
  // Otherwise, resolve it relative to ROOT
@@ -44,7 +44,7 @@ function openCursorHandler(req, res) {
44
44
  if (!filePath.startsWith(ROOT)) {
45
45
  return res.status(400).json({ error: 'Invalid path' });
46
46
  }
47
-
47
+
48
48
  const { line } = req.body;
49
49
 
50
50
  // Always use cursor CLI command first (it handles line numbers correctly)
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-burn",
3
- "version": "1.0.79",
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",