@m0xoo/openboard 1.0.2 → 1.0.3
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.
package/package.json
CHANGED
|
@@ -63,11 +63,6 @@ export class CodeReviewAgent {
|
|
|
63
63
|
}
|
|
64
64
|
// Resolve workspace path — code review runs in the main workspace (no new worktree needed).
|
|
65
65
|
let workspacePath = process.cwd();
|
|
66
|
-
// Fix WSL path mapping if the Node server is running on Windows
|
|
67
|
-
if (workspacePath.startsWith('/mnt/')) {
|
|
68
|
-
const driveLetter = workspacePath.charAt(5).toUpperCase();
|
|
69
|
-
workspacePath = `${driveLetter}:\\${workspacePath.slice(7).replace(/\//g, '\\')}`;
|
|
70
|
-
}
|
|
71
66
|
try {
|
|
72
67
|
const session = await opencodeClient.session.create({
|
|
73
68
|
body: { title: `Code Review for Ticket: ${ticket.title}` },
|
|
@@ -75,12 +75,6 @@ export class OpencodeAgent {
|
|
|
75
75
|
}
|
|
76
76
|
// 1. Find Worktree (Use the directory where openboard was started)
|
|
77
77
|
let originalWorkspacePath = process.cwd();
|
|
78
|
-
// Fix WSL path mapping if the Node server is running on Windows
|
|
79
|
-
if (originalWorkspacePath.startsWith('/mnt/')) {
|
|
80
|
-
const driveLetter = originalWorkspacePath.charAt(5).toUpperCase();
|
|
81
|
-
originalWorkspacePath = `${driveLetter}:\\${originalWorkspacePath.slice(7).replace(/\//g, '\\')}`;
|
|
82
|
-
console.log(`[opencode-agent] Normalized WSL path to Windows path for CWD: ${originalWorkspacePath}`);
|
|
83
|
-
}
|
|
84
78
|
// 2. Set up Worktree
|
|
85
79
|
// If this ticket already has a PR, we reuse the existing branch and worktree.
|
|
86
80
|
// Worktree paths are derived from branch name so they are stable across re-runs.
|