tlc-claude-code 0.7.2 → 0.7.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.
Files changed (3) hide show
  1. package/bin/server.js +16 -0
  2. package/package.json +2 -2
  3. package/server.md +9 -31
package/bin/server.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require('path');
4
+ const { spawn } = require('child_process');
5
+
6
+ // Run the server from the parent directory
7
+ const serverPath = path.join(__dirname, '..', 'server', 'index.js');
8
+
9
+ const child = spawn('node', [serverPath], {
10
+ stdio: 'inherit',
11
+ cwd: process.cwd()
12
+ });
13
+
14
+ child.on('exit', (code) => {
15
+ process.exit(code || 0);
16
+ });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "tlc-claude-code",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "TLC - Test Led Coding for Claude Code",
5
5
  "bin": {
6
6
  "tlc-claude-code": "./bin/install.js",
7
7
  "tlc-dashboard": "./dashboard/dist/index.js",
8
- "tlc-server": "./server/index.js"
8
+ "tlc-server": "./bin/server.js"
9
9
  },
10
10
  "files": [
11
11
  "bin/",
package/server.md CHANGED
@@ -4,44 +4,22 @@ Launch a unified development environment with live app preview, real-time logs,
4
4
 
5
5
  ## Instructions for Claude
6
6
 
7
- **DO NOT generate server code. Use the pre-built server from the TLC package.**
7
+ **DO NOT generate server code. Run the pre-built server from the TLC package.**
8
8
 
9
- ### Step 1: Find TLC Server
9
+ ### Step 1: Start Server
10
10
 
11
- ```bash
12
- # The server is installed with TLC at one of these locations:
13
- ~/.claude/commands/tlc/../../../server/
14
- # Or in node_modules:
15
- npx tlc-server
16
- ```
17
-
18
- Run this to locate it:
19
- ```bash
20
- SERVER_PATH=$(npm root -g)/tlc-claude-code/server
21
- if [ ! -d "$SERVER_PATH" ]; then
22
- SERVER_PATH=$(dirname $(which tlc-claude-code 2>/dev/null || echo ""))/../server
23
- fi
24
- echo "Server at: $SERVER_PATH"
25
- ```
26
-
27
- ### Step 2: Install Dependencies (first time only)
11
+ Run this command in the user's project directory:
28
12
 
29
13
  ```bash
30
- cd "$SERVER_PATH" && npm install
14
+ npx -p tlc-claude-code tlc-server
31
15
  ```
32
16
 
33
- ### Step 3: Start Server
34
-
35
- ```bash
36
- cd /path/to/user/project && node "$SERVER_PATH/index.js"
37
- ```
38
-
39
- Or use npx:
40
- ```bash
41
- npx tlc-server
42
- ```
17
+ That's it. The server will:
18
+ - Auto-detect the project type
19
+ - Start the user's app
20
+ - Open dashboard at http://localhost:3147
43
21
 
44
- ### Step 4: Show User the URLs
22
+ ### Step 2: Show User the URLs
45
23
 
46
24
  ```
47
25
  TLC Dev Server running!