tlc-claude-code 0.8.0 → 0.8.2
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/README.md +34 -38
- package/bin/install.js +6 -0
- package/bin/tlc.js +50 -0
- package/package.json +2 -1
- package/server/dashboard/index.html +572 -383
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Test Led Coding for Claude Code. Tests before code. Automatically.**
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx tlc-claude-code
|
|
10
|
+
npx tlc-claude-code # or just: tlc (after global install)
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
@@ -101,8 +101,7 @@ TLC knows where you are and what's next.
|
|
|
101
101
|
| `/tlc:claim` | Reserve a task |
|
|
102
102
|
| `/tlc:who` | See who's working on what |
|
|
103
103
|
| `/tlc:bug` | Log a bug |
|
|
104
|
-
|
|
|
105
|
-
| `npx tlc-claude-code init` | Add Docker dev launcher to project |
|
|
104
|
+
| `tlc init` | Add Docker dev launcher to project |
|
|
106
105
|
|
|
107
106
|
### Integration Commands
|
|
108
107
|
|
|
@@ -128,9 +127,10 @@ TLC supports distributed teams with git-based coordination.
|
|
|
128
127
|
```
|
|
129
128
|
|
|
130
129
|
```bash
|
|
131
|
-
/tlc:claim 2
|
|
132
|
-
/tlc:who
|
|
133
|
-
|
|
130
|
+
/tlc:claim 2 # Reserve task 2
|
|
131
|
+
/tlc:who # See team status
|
|
132
|
+
tlc init # Add dev server launcher
|
|
133
|
+
# Then double-click tlc-start.bat
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
**📄 [Full Team Workflow Guide →](docs/team-workflow.md)**
|
|
@@ -139,44 +139,34 @@ TLC supports distributed teams with git-based coordination.
|
|
|
139
139
|
|
|
140
140
|
## Dev Server
|
|
141
141
|
|
|
142
|
-
Launch a mini-Replit for your team
|
|
143
|
-
|
|
144
|
-
### Option 1: Docker (Recommended)
|
|
145
|
-
|
|
146
|
-
One-click launcher that runs your app, database, and dashboard in containers:
|
|
142
|
+
Launch a mini-Replit for your team with Docker:
|
|
147
143
|
|
|
148
144
|
```bash
|
|
149
|
-
# Add launcher to your project
|
|
150
|
-
|
|
145
|
+
# Add launcher to your project (one-time)
|
|
146
|
+
tlc init
|
|
151
147
|
|
|
152
148
|
# Then double-click tlc-start.bat (Windows)
|
|
153
149
|
```
|
|
154
150
|
|
|
155
151
|
**What you get:**
|
|
156
|
-
- **Dashboard**: http://localhost:3147 — Live preview, logs, tasks
|
|
157
|
-
- **App**: http://localhost:5000 — Your running application
|
|
158
|
-
- **Database**: localhost:5433 — PostgreSQL auto-provisioned
|
|
159
|
-
|
|
160
|
-
Containers are named `tlc-{project}-*` so you can run multiple projects simultaneously.
|
|
161
|
-
|
|
162
|
-
**Requirements:** [Docker Desktop](https://www.docker.com/products/docker-desktop)
|
|
163
152
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Runs the app directly on your machine with auto-detected start command.
|
|
173
|
-
|
|
174
|
-
### Features
|
|
153
|
+
| URL | Service |
|
|
154
|
+
|-----|---------|
|
|
155
|
+
| http://localhost:3147 | Dashboard — Live preview, logs, tasks |
|
|
156
|
+
| http://localhost:5000 | App — Your running application |
|
|
157
|
+
| http://localhost:8080 | DB Admin — Database GUI (Adminer) |
|
|
158
|
+
| localhost:5433 | Database — PostgreSQL |
|
|
175
159
|
|
|
160
|
+
**Features:**
|
|
176
161
|
- **Live preview** — Your app embedded in dashboard
|
|
177
162
|
- **Real-time logs** — App, tests, git activity
|
|
178
163
|
- **Bug submission** — Web form for QA
|
|
179
164
|
- **Task board** — Who's working on what
|
|
165
|
+
- **Multi-project** — Containers named `tlc-{project}-*` for simultaneous projects
|
|
166
|
+
|
|
167
|
+
**Requirements:** [Docker Desktop](https://www.docker.com/products/docker-desktop)
|
|
168
|
+
|
|
169
|
+
> **Note:** Windows only for now. macOS/Linux support coming soon.
|
|
180
170
|
|
|
181
171
|
---
|
|
182
172
|
|
|
@@ -271,14 +261,21 @@ C:\Code\TLC\ (or your install location)
|
|
|
271
261
|
## Install
|
|
272
262
|
|
|
273
263
|
```bash
|
|
274
|
-
#
|
|
275
|
-
|
|
264
|
+
# Install globally (recommended)
|
|
265
|
+
npm install -g tlc-claude-code
|
|
266
|
+
|
|
267
|
+
# Then use anywhere:
|
|
268
|
+
tlc # Install slash commands
|
|
269
|
+
tlc init # Add dev server to project
|
|
270
|
+
tlc --help # See all options
|
|
271
|
+
```
|
|
276
272
|
|
|
277
|
-
|
|
278
|
-
npx tlc-claude-code --global
|
|
273
|
+
Or use without installing:
|
|
279
274
|
|
|
280
|
-
|
|
281
|
-
npx tlc-claude-code
|
|
275
|
+
```bash
|
|
276
|
+
npx tlc-claude-code # Interactive install
|
|
277
|
+
npx tlc-claude-code --global # Global install
|
|
278
|
+
npx tlc-claude-code --local # Local install only
|
|
282
279
|
```
|
|
283
280
|
|
|
284
281
|
Commands install to `.claude/commands/tlc/`
|
|
@@ -289,7 +286,6 @@ Commands install to `.claude/commands/tlc/`
|
|
|
289
286
|
|
|
290
287
|
- **[Help / All Commands](help.md)** — Complete command reference
|
|
291
288
|
- **[Team Workflow](docs/team-workflow.md)** — Guide for teams (engineers + PO + QA)
|
|
292
|
-
- **[Server Spec](server.md)** — Dev server documentation
|
|
293
289
|
|
|
294
290
|
---
|
|
295
291
|
|
package/bin/install.js
CHANGED
|
@@ -134,6 +134,12 @@ function install(targetDir, installType) {
|
|
|
134
134
|
async function main() {
|
|
135
135
|
const args = process.argv.slice(2);
|
|
136
136
|
|
|
137
|
+
// Handle 'init' subcommand - delegate to init.js
|
|
138
|
+
if (args[0] === 'init') {
|
|
139
|
+
require('./init.js');
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
137
143
|
printBanner();
|
|
138
144
|
|
|
139
145
|
if (args.includes('--global') || args.includes('-g')) {
|
package/bin/tlc.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TLC CLI - Simple entry point
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* tlc - Install TLC commands (interactive)
|
|
8
|
+
* tlc init - Add dev server launcher to project
|
|
9
|
+
* tlc server - Start dev server
|
|
10
|
+
* tlc setup - Setup server requirements (Linux/macOS)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const args = process.argv.slice(2);
|
|
14
|
+
const command = args[0];
|
|
15
|
+
|
|
16
|
+
switch (command) {
|
|
17
|
+
case 'init':
|
|
18
|
+
require('./init.js');
|
|
19
|
+
break;
|
|
20
|
+
case 'server':
|
|
21
|
+
require('./server.js');
|
|
22
|
+
break;
|
|
23
|
+
case 'setup':
|
|
24
|
+
require('./setup.js');
|
|
25
|
+
break;
|
|
26
|
+
case 'help':
|
|
27
|
+
case '--help':
|
|
28
|
+
case '-h':
|
|
29
|
+
console.log(`
|
|
30
|
+
TLC - Test Led Coding
|
|
31
|
+
|
|
32
|
+
Usage:
|
|
33
|
+
tlc Install TLC commands to Claude Code
|
|
34
|
+
tlc init Add dev server launcher (tlc-start.bat) to project
|
|
35
|
+
tlc server Start the TLC dev server
|
|
36
|
+
tlc setup Setup server requirements (Linux/macOS)
|
|
37
|
+
|
|
38
|
+
Options:
|
|
39
|
+
--global, -g Install commands globally
|
|
40
|
+
--local, -l Install commands locally
|
|
41
|
+
|
|
42
|
+
Examples:
|
|
43
|
+
tlc --global Install commands for all projects
|
|
44
|
+
tlc init Add Docker launcher to current project
|
|
45
|
+
`);
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
// No subcommand = run install.js (the original behavior)
|
|
49
|
+
require('./install.js');
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tlc-claude-code",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "TLC - Test Led Coding for Claude Code",
|
|
5
5
|
"bin": {
|
|
6
|
+
"tlc": "./bin/tlc.js",
|
|
6
7
|
"tlc-claude-code": "./bin/install.js",
|
|
7
8
|
"tlc-dashboard": "./dashboard/dist/index.js",
|
|
8
9
|
"tlc-server": "./bin/server.js",
|