tlc-claude-code 1.2.2 → 1.2.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/tlc.md +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tlc-claude-code",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "TLC - Test Led Coding for Claude Code",
5
5
  "bin": {
6
6
  "tlc": "./bin/tlc.js",
package/tlc.md CHANGED
@@ -9,7 +9,7 @@ One command. Context-aware. Visual dashboard.
9
9
  Always start by showing the version:
10
10
 
11
11
  ```
12
- TLC v1.2.1
12
+ TLC v{{VERSION}}
13
13
  ```
14
14
 
15
15
  Then proceed with sync check and status.
@@ -54,6 +54,15 @@ fi
54
54
  lastSync=$(jq -r '.lastSync // ""' .tlc.json)
55
55
  currentHead=$(git rev-parse HEAD 2>/dev/null)
56
56
 
57
+ # If lastSync missing, initialize it (existing config, first sync tracking)
58
+ if [ -z "$lastSync" ]; then
59
+ echo "Initializing sync tracking..."
60
+ # Update .tlc.json with current HEAD as lastSync
61
+ jq ".lastSync = \"$currentHead\"" .tlc.json > .tlc.json.tmp && mv .tlc.json.tmp .tlc.json
62
+ echo "✓ Synced (initialized to ${currentHead:0:7})"
63
+ # Continue to Step 1
64
+ fi
65
+
57
66
  if [ -n "$lastSync" ] && [ "$lastSync" != "$currentHead" ]; then
58
67
  echo "⚠️ Codebase changed since last sync."
59
68
  echo " Last sync: ${lastSync:0:7}"