pi-cursor-bridge 0.1.0 → 0.1.1

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.
@@ -4,12 +4,25 @@ import { fileURLToPath } from "node:url";
4
4
  import { createStdioMcpExtension } from "./mcp-stdio.ts";
5
5
 
6
6
  const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
7
+ const hostCwd = resolve(process.cwd());
8
+ const hostWorkspaceId = hostCwd.replace(/\\/g, "/").toLowerCase();
7
9
 
8
10
  export default createStdioMcpExtension({
9
11
  label: "Cursor Bridge",
10
12
  clientName: "pi-cursor-bridge",
11
- packageVersion: "0.1.0",
13
+ packageVersion: "0.1.1",
12
14
  serverName: "cursor-bridge",
13
15
  serverScript: join(packageRoot, "dist", "cursor-bridge.mjs"),
14
- cwd: packageRoot,
16
+ cwd: hostCwd,
17
+ env: {
18
+ // A Pi process can be launched from Codex or Claude Code during testing.
19
+ // Do not let inherited host variables steal Pi's workspace identity.
20
+ CODEX_THREAD_ID: undefined,
21
+ CLAUDE_PROJECT_DIR: undefined,
22
+ CLAUDE_CODE_PROJECT_DIR: undefined,
23
+ CLAUDE_CODE_SESSION_ID: undefined,
24
+ CLAUDE_SESSION_ID: undefined,
25
+ CURSOR_BRIDGE_HOST_ID: `pi:${hostWorkspaceId}`,
26
+ CURSOR_PROJECT_PATH: hostCwd,
27
+ },
15
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cursor-bridge",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Use Cursor Context Engine and bounded Cursor Agent execution from the Pi coding agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",