@hmduc16031996/claude-mb-bridge 2.4.1 → 2.4.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/dist/index.js CHANGED
@@ -33,7 +33,7 @@ program
33
33
  // 1. Start local terminal server
34
34
  console.log('📦 Starting terminal server...');
35
35
  const localPort = parseInt(port, 10);
36
- const { server: terminalServer, actualPort } = await startTerminalServer(localPort, path, token, cleanup);
36
+ const { server: terminalServer, actualPort } = await startTerminalServer(localPort, path, token);
37
37
  console.log(`✅ Terminal server started on port ${actualPort}`);
38
38
  // 2. Start Cloudflare Tunnel
39
39
  console.log('🌐 Establishing secure tunnel...');
package/dist/server.js CHANGED
@@ -296,8 +296,6 @@ export function startTerminalServer(port, workingDir, terminalToken, onDisconnec
296
296
  session.term.removeListener('data', outputHandler);
297
297
  }
298
298
  }
299
- if (onDisconnect)
300
- onDisconnect();
301
299
  });
302
300
  });
303
301
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmduc16031996/claude-mb-bridge",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Bridge between Claude Code CLI and your mobile app via WebView",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/public/app.js CHANGED
@@ -507,12 +507,12 @@ class ClaudeRemote {
507
507
  letterSpacing: 0,
508
508
  lineHeight: 1.2,
509
509
  theme: {
510
- background: '#0d1117',
511
- foreground: '#f0f6fc',
510
+ background: '#1a1a1a',
511
+ foreground: '#f5f5f5',
512
512
  cursor: '#f0a500',
513
- cursorAccent: '#0d1117',
513
+ cursorAccent: '#1a1a1a',
514
514
  selectionBackground: 'rgba(240, 165, 0, 0.25)',
515
- selectionForeground: '#f0f6fc',
515
+ selectionForeground: '#f5f5f5',
516
516
  black: '#484f58',
517
517
  red: '#ff7b72',
518
518
  green: '#3fb950',
Binary file
Binary file
Binary file
Binary file
package/public/index.html CHANGED
@@ -6,12 +6,13 @@
6
6
  <meta name="mobile-web-app-capable" content="yes">
7
7
  <meta name="apple-mobile-web-app-capable" content="yes">
8
8
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
9
- <meta name="theme-color" content="#0d1117">
9
+ <meta name="theme-color" content="#1a1a1a">
10
10
  <meta name="description" content="Remote access to Claude Code sessions from any device">
11
11
 
12
12
  <!-- Favicon -->
13
- <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect fill='%230d1117' width='100' height='100' rx='20'/><text x='50' y='68' font-size='52' font-weight='600' text-anchor='middle' fill='%2358a6ff'>C</text></svg>">
14
- <link rel="apple-touch-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect fill='%230d1117' width='100' height='100'/><text x='50' y='68' font-size='52' font-weight='600' text-anchor='middle' fill='%2358a6ff'>C</text></svg>">
13
+ <link rel="icon" type="image/x-icon" href="/favicon.ico">
14
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
15
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png">
15
16
 
16
17
  <title>Claude Code Remote</title>
17
18
  <link rel="manifest" href="/manifest.json">
@@ -32,11 +33,7 @@
32
33
  <div class="auth-container">
33
34
  <!-- Logo -->
34
35
  <div class="auth-logo" aria-hidden="true">
35
- <svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
36
- <rect width="64" height="64" rx="12" fill="rgba(88, 166, 255, 0.1)"/>
37
- <rect x="1" y="1" width="62" height="62" rx="11" stroke="rgba(88, 166, 255, 0.3)" stroke-width="1"/>
38
- <text x="32" y="44" font-size="32" font-weight="600" text-anchor="middle" fill="#58a6ff" font-family="system-ui, sans-serif">C</text>
39
- </svg>
36
+ <img src="/ic_logo.png" width="64" height="64" alt="Claude Code" style="border-radius:12px;">
40
37
  </div>
41
38
 
42
39
  <h1>Claude Code Remote</h1>
@@ -5,20 +5,26 @@
5
5
  "start_url": "/",
6
6
  "display": "standalone",
7
7
  "orientation": "any",
8
- "background_color": "#0d1117",
9
- "theme_color": "#0d1117",
8
+ "background_color": "#1a1a1a",
9
+ "theme_color": "#1a1a1a",
10
10
  "icons": [
11
11
  {
12
- "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><defs><linearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23f0a500'/><stop offset='100%25' stop-color='%23ffb627'/></linearGradient></defs><rect fill='%230d1117' width='512' height='512' rx='102'/><text x='256' y='340' font-size='280' font-weight='bold' text-anchor='middle' fill='url(%23g)' font-family='system-ui'>C</text></svg>",
13
- "sizes": "512x512",
14
- "type": "image/svg+xml",
12
+ "src": "/android-chrome-192x192.png",
13
+ "sizes": "192x192",
14
+ "type": "image/png",
15
15
  "purpose": "any"
16
16
  },
17
17
  {
18
- "src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><rect fill='%230d1117' width='512' height='512'/><text x='256' y='340' font-size='280' font-weight='bold' text-anchor='middle' fill='%23f0a500' font-family='system-ui'>C</text></svg>",
18
+ "src": "/android-chrome-512x512.png",
19
19
  "sizes": "512x512",
20
- "type": "image/svg+xml",
21
- "purpose": "maskable"
20
+ "type": "image/png",
21
+ "purpose": "any maskable"
22
+ },
23
+ {
24
+ "src": "/apple-touch-icon.png",
25
+ "sizes": "180x180",
26
+ "type": "image/png",
27
+ "purpose": "any"
22
28
  }
23
29
  ],
24
30
  "categories": ["developer", "productivity", "utilities"]
package/public/styles.css CHANGED
@@ -3,22 +3,22 @@
3
3
  @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
4
4
 
5
5
  :root {
6
- /* GitHub Dark Theme Base */
7
- --bg-deep: #0d1117;
8
- --bg-primary: #161b22;
9
- --bg-elevated: #1c2128;
10
- --bg-surface: #21262d;
11
- --bg-hover: #30363d;
6
+ /* Claude Code Dark Theme */
7
+ --bg-deep: #1a1a1a;
8
+ --bg-primary: #222222;
9
+ --bg-elevated: #2a2a2a;
10
+ --bg-surface: #333333;
11
+ --bg-hover: #3d3d3d;
12
12
 
13
13
  /* Text hierarchy */
14
- --text-primary: #f0f6fc;
15
- --text-secondary: #8b949e;
16
- --text-muted: #6e7681;
14
+ --text-primary: #f5f5f5;
15
+ --text-secondary: #a0a0a0;
16
+ --text-muted: #6b6b6b;
17
17
 
18
- /* Accent - Surgical use only */
19
- --accent: #58a6ff;
20
- --accent-hover: #79c0ff;
21
- --accent-soft: rgba(88, 166, 255, 0.15);
18
+ /* Accent - Claude orange */
19
+ --accent: #d97706;
20
+ --accent-hover: #f0a500;
21
+ --accent-soft: rgba(217, 119, 6, 0.15);
22
22
 
23
23
  /* Semantic colors */
24
24
  --success: #3fb950;
@@ -26,8 +26,8 @@
26
26
  --warning: #d29922;
27
27
 
28
28
  /* Borders & Shadows */
29
- --border: rgba(240, 246, 252, 0.1);
30
- --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
29
+ --border: rgba(245, 245, 245, 0.1);
30
+ --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
31
31
 
32
32
  /* Typography */
33
33
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;