@atercates/claude-deck 0.2.5 → 0.2.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.
@@ -5,5 +5,7 @@ export async function GET() {
5
5
  return NextResponse.json({
6
6
  user: os.userInfo().username,
7
7
  hostname: os.hostname(),
8
+ sshHost: process.env.SSH_HOST || null,
9
+ sshPort: process.env.SSH_PORT || null,
8
10
  });
9
11
  }
@@ -41,8 +41,13 @@ export function OpenInVSCode({
41
41
  window.open(`vscode://file${workingDirectory}`, "_self");
42
42
  } else {
43
43
  const user = systemInfo?.user || "root";
44
+ const sshHost = systemInfo?.sshHost || host;
45
+ const sshPort = systemInfo?.sshPort;
46
+ const remote = sshPort
47
+ ? `${user}@${sshHost}:${sshPort}`
48
+ : `${user}@${sshHost}`;
44
49
  window.open(
45
- `vscode://vscode-remote/ssh-remote+${user}@${host}${workingDirectory}`,
50
+ `vscode://vscode-remote/ssh-remote+${remote}${workingDirectory}`,
46
51
  "_self"
47
52
  );
48
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atercates/claude-deck",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Self-hosted web UI for managing Claude Code sessions",
5
5
  "bin": {
6
6
  "claude-deck": "./scripts/claude-deck"