@kraftapps-ai/kai 1.8.6 → 1.8.7

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/kai +17 -3
  2. package/package.json +1 -1
package/kai CHANGED
@@ -61,11 +61,25 @@ MEMORY_FILE=".kai/memory.md"
61
61
  LOOP_SCRIPT=".kai/loop.sh"
62
62
 
63
63
 
64
- # ── Ensure .kai/ is git-ignored ───────────────────────
64
+ # ── Ensure .kai/ and Playwright artifacts are git-ignored
65
65
 
66
66
  mkdir -p .kai
67
- if [ ! -f ".kai/.gitignore" ]; then
68
- echo "*" > .kai/.gitignore
67
+
68
+ # Add to project .gitignore (not just .kai/.gitignore) to prevent tracking
69
+ if [ -f ".gitignore" ]; then
70
+ for pattern in ".kai/" ".playwright-mcp/"; do
71
+ grep -qxF "$pattern" .gitignore 2>/dev/null || echo "$pattern" >> .gitignore
72
+ done
73
+ else
74
+ printf '%s\n' ".kai/" ".playwright-mcp/" > .gitignore
75
+ fi
76
+
77
+ # Untrack .kai/ files if they were committed before the gitignore existed
78
+ if git ls-files --cached .kai/ 2>/dev/null | grep -q .; then
79
+ git rm -r --cached .kai/ > /dev/null 2>&1 || true
80
+ fi
81
+ if git ls-files --cached .playwright-mcp/ 2>/dev/null | grep -q .; then
82
+ git rm -r --cached .playwright-mcp/ > /dev/null 2>&1 || true
69
83
  fi
70
84
 
71
85
  # ── Auto-init if needed ───────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kraftapps-ai/kai",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "Autonomous AI developer loop for Claude Code",
5
5
  "bin": {
6
6
  "kai": "kai"