@papercraneai/sandbox-agent 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -574,8 +574,12 @@ app.get("/files/read", async (req, res) => {
574
574
  gif: "image/gif",
575
575
  webp: "image/webp"
576
576
  };
577
+ // Return relative path (strip PROJECT_DIR prefix) so CLI users see usable paths
578
+ const relativePath = fullPath.startsWith(PROJECT_DIR)
579
+ ? fullPath.slice(PROJECT_DIR.length).replace(/^\/+/, "")
580
+ : fullPath;
577
581
  res.json({
578
- path: fullPath,
582
+ path: relativePath,
579
583
  name: fullPath.split("/").pop(),
580
584
  content,
581
585
  size: stats.size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papercraneai/sandbox-agent",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Claude Agent SDK server for sandbox environments",
5
5
  "license": "MIT",
6
6
  "type": "module",