lite-kits 0.1.1__py3-none-any.whl → 0.3.1__py3-none-any.whl

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 (63) hide show
  1. lite_kits/__init__.py +56 -4
  2. lite_kits/cli.py +696 -185
  3. lite_kits/core/__init__.py +6 -0
  4. lite_kits/core/banner.py +1 -1
  5. lite_kits/core/conflict_checker.py +115 -0
  6. lite_kits/core/detector.py +140 -0
  7. lite_kits/core/installer.py +236 -351
  8. lite_kits/core/manifest.py +146 -146
  9. lite_kits/core/validator.py +146 -0
  10. lite_kits/kits/README.md +6 -6
  11. lite_kits/kits/dev/README.md +241 -241
  12. lite_kits/kits/dev/{claude/commands → commands/.claude}/audit.md +143 -143
  13. lite_kits/kits/dev/{claude/commands → commands/.claude}/cleanup.md +2 -2
  14. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/commit.md +2 -2
  15. lite_kits/kits/{project/claude/commands → dev/commands/.claude}/orient.md +3 -4
  16. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/pr.md +1 -1
  17. lite_kits/kits/{git/claude/commands → dev/commands/.claude}/review.md +202 -202
  18. lite_kits/kits/{project/claude/commands → dev/commands/.claude}/stats.md +162 -162
  19. lite_kits/kits/{project/github/prompts → dev/commands/.github}/audit.prompt.md +143 -143
  20. lite_kits/kits/{git/github/prompts → dev/commands/.github}/cleanup.prompt.md +2 -2
  21. lite_kits/kits/{git/github/prompts → dev/commands/.github}/commit.prompt.md +2 -2
  22. lite_kits/kits/dev/{github/prompts → commands/.github}/orient.prompt.md +3 -4
  23. lite_kits/kits/{git/github/prompts → dev/commands/.github}/pr.prompt.md +1 -1
  24. lite_kits/kits/{git/github/prompts → dev/commands/.github}/review.prompt.md +202 -202
  25. lite_kits/kits/dev/{github/prompts → commands/.github}/stats.prompt.md +163 -163
  26. lite_kits/kits/kits.yaml +497 -180
  27. lite_kits/kits/multiagent/README.md +6 -6
  28. lite_kits/kits/multiagent/{claude/commands → commands/.claude}/sync.md +331 -331
  29. lite_kits/kits/multiagent/{github/prompts → commands/.github}/sync.prompt.md +73 -69
  30. lite_kits/kits/multiagent/memory/git-worktrees-protocol.md +370 -370
  31. lite_kits/kits/multiagent/memory/parallel-work-protocol.md +536 -536
  32. lite_kits/kits/multiagent/memory/pr-workflow-guide.md +275 -275
  33. lite_kits/kits/multiagent/templates/collaboration-structure/README.md +166 -166
  34. lite_kits/kits/multiagent/templates/decision.md +79 -79
  35. lite_kits/kits/multiagent/templates/handoff.md +95 -95
  36. lite_kits/kits/multiagent/templates/session-log.md +68 -68
  37. lite_kits-0.3.1.dist-info/METADATA +259 -0
  38. lite_kits-0.3.1.dist-info/RECORD +41 -0
  39. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/licenses/LICENSE +21 -21
  40. lite_kits/kits/dev/claude/commands/commit.md +0 -612
  41. lite_kits/kits/dev/claude/commands/orient.md +0 -146
  42. lite_kits/kits/dev/claude/commands/pr.md +0 -593
  43. lite_kits/kits/dev/claude/commands/review.md +0 -202
  44. lite_kits/kits/dev/claude/commands/stats.md +0 -162
  45. lite_kits/kits/dev/github/prompts/audit.prompt.md +0 -143
  46. lite_kits/kits/dev/github/prompts/cleanup.prompt.md +0 -382
  47. lite_kits/kits/dev/github/prompts/commit.prompt.md +0 -591
  48. lite_kits/kits/dev/github/prompts/pr.prompt.md +0 -603
  49. lite_kits/kits/dev/github/prompts/review.prompt.md +0 -202
  50. lite_kits/kits/git/README.md +0 -365
  51. lite_kits/kits/git/claude/commands/cleanup.md +0 -361
  52. lite_kits/kits/git/scripts/bash/get-git-context.sh +0 -208
  53. lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +0 -242
  54. lite_kits/kits/project/README.md +0 -228
  55. lite_kits/kits/project/claude/commands/audit.md +0 -143
  56. lite_kits/kits/project/claude/commands/review.md +0 -112
  57. lite_kits/kits/project/github/prompts/orient.prompt.md +0 -150
  58. lite_kits/kits/project/github/prompts/review.prompt.md +0 -112
  59. lite_kits/kits/project/github/prompts/stats.prompt.md +0 -163
  60. lite_kits-0.1.1.dist-info/METADATA +0 -447
  61. lite_kits-0.1.1.dist-info/RECORD +0 -58
  62. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/WHEEL +0 -0
  63. {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/entry_points.txt +0 -0
@@ -12,57 +12,59 @@ description: Check multi-agent sync status with ASCII visualization
12
12
 
13
13
  ```powershell
14
14
  # Current branch
15
- CURRENT_BRANCH=$(git branch --show-current)
15
+ $CurrentBranch = git branch --show-current
16
16
 
17
17
  # Check if tracking remote
18
- REMOTE_BRANCH=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null)
18
+ $RemoteBranch = git rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>$null
19
19
 
20
20
  # Commits ahead/behind
21
- if [ -n "$REMOTE_BRANCH" ]; then
22
- AHEAD=$(git rev-list --count $REMOTE_BRANCH..HEAD)
23
- BEHIND=$(git rev-list --count HEAD..$REMOTE_BRANCH)
24
- else
25
- AHEAD="N/A"
26
- BEHIND="N/A"
27
- fi
21
+ if ($RemoteBranch) {
22
+ $Ahead = (git rev-list --count "$RemoteBranch..HEAD")
23
+ $Behind = (git rev-list --count "HEAD..$RemoteBranch")
24
+ } else {
25
+ $Ahead = "N/A"
26
+ $Behind = "N/A"
27
+ }
28
28
 
29
29
  # Uncommitted changes
30
- MODIFIED=$(git status --short | wc -l)
31
- UNTRACKED=$(git ls-files --others --exclude-standard | wc -l)
30
+ $Modified = (git status --short | Measure-Object).Count
31
+ $Untracked = (git ls-files --others --exclude-standard | Measure-Object).Count
32
32
  ```
33
33
 
34
34
  ### 2. Detect Multi-Agent Activity
35
35
 
36
36
  ```powershell
37
37
  # Check for recent commits by different agents
38
- git log --since="7 days ago" --format="%b" | grep "via.*@" | sort -u
38
+ git log --since="7 days ago" --format="%b" | Select-String "via.*@" | Sort-Object -Unique
39
39
 
40
40
  # Count commits by agent
41
- echo "Recent activity (last 7 days):"
42
- git log --since="7 days ago" --format="%b" | \
43
- grep "via.*@" | \
44
- sed 's/.*via \(.*\)/\1/' | \
45
- sort | uniq -c | sort -rn
41
+ Write-Host "Recent activity (last 7 days):"
42
+ git log --since="7 days ago" --format="%b" |
43
+ Select-String "via.*@" |
44
+ ForEach-Object { $_ -replace '.*via (.*)', '$1' } |
45
+ Group-Object |
46
+ Sort-Object Count -Descending |
47
+ ForEach-Object { Write-Host "$($_.Count) $($_.Name)" }
46
48
  ```
47
49
 
48
50
  ### 3. Check Collaboration Structure
49
51
 
50
52
  ```powershell
51
53
  # Find active collaboration directories
52
- if [ -d "specs" ]; then
53
- # List active sessions
54
- SESSION_COUNT=$(find specs/*/collaboration/active/sessions -name "*.md" 2>/dev/null | wc -l)
55
-
56
- # List pending handoffs
57
- HANDOFF_COUNT=$(find specs/*/collaboration/active/decisions -name "handoff-*.md" 2>/dev/null | wc -l)
58
-
59
- # List active features
60
- FEATURES=$(find specs -maxdepth 1 -type d -name "[0-9]*" | wc -l)
61
- else
62
- SESSION_COUNT=0
63
- HANDOFF_COUNT=0
64
- FEATURES=0
65
- fi
54
+ if (Test-Path "specs") {
55
+ # List active sessions
56
+ $SessionCount = (Get-ChildItem -Path specs/*/collaboration/active/sessions -Filter *.md -Recurse -ErrorAction SilentlyContinue).Count
57
+
58
+ # List pending handoffs
59
+ $HandoffCount = (Get-ChildItem -Path specs/*/collaboration/active/decisions -Filter handoff-*.md -Recurse -ErrorAction SilentlyContinue).Count
60
+
61
+ # List active features
62
+ $Features = (Get-ChildItem -Path specs -Directory | Where-Object { $_.Name -match '^\d+' }).Count
63
+ } else {
64
+ $SessionCount = 0
65
+ $HandoffCount = 0
66
+ $Features = 0
67
+ }
66
68
  ```
67
69
 
68
70
  ### 4. Generate ASCII Visualization
@@ -92,8 +94,8 @@ Remote: origin/dev/001-starter-kits
92
94
  Agent Activity (last 7 days):
93
95
  ===========================================================
94
96
 
95
- github-copilot-cli ████████████ 12 commits
96
- github-copilot-cli ████████ 8 commits
97
+ github-copilot ████████████ 12 commits
98
+ claude-code ████████ 8 commits
97
99
 
98
100
  ===========================================================
99
101
  Collaboration Status:
@@ -110,12 +112,13 @@ Pending handoffs: 1 ⚠
110
112
 
111
113
  ```powershell
112
114
  # Check if there are merge conflicts
113
- if git ls-files -u | wc -l | grep -q "^0$"; then
114
- echo "✓ No merge conflicts"
115
- else
116
- echo "⚠ Merge conflicts detected"
117
- git diff --name-only --diff-filter=U
118
- fi
115
+ $ConflictCount = (git ls-files -u | Measure-Object).Count
116
+ if ($ConflictCount -eq 0) {
117
+ Write-Host "✓ No merge conflicts" -ForegroundColor Green
118
+ } else {
119
+ Write-Host "⚠ Merge conflicts detected" -ForegroundColor Yellow
120
+ git diff --name-only --diff-filter=U
121
+ }
119
122
  ```
120
123
 
121
124
  ### 6. Provide Sync Recommendations
@@ -127,10 +130,10 @@ Based on the status, suggest actions:
127
130
  ⚠ You are behind the remote branch
128
131
 
129
132
  Recommended action:
130
- git pull origin $CURRENT_BRANCH
133
+ git pull origin $CurrentBranch
131
134
 
132
135
  Or if you have local commits:
133
- git pull --rebase origin $CURRENT_BRANCH
136
+ git pull --rebase origin $CurrentBranch
134
137
  ```
135
138
 
136
139
  **If commits to push**:
@@ -138,7 +141,7 @@ Or if you have local commits:
138
141
  ✓ You have commits to push
139
142
 
140
143
  Recommended action:
141
- git push origin $CURRENT_BRANCH
144
+ git push origin $CurrentBranch
142
145
  ```
143
146
 
144
147
  **If handoffs pending**:
@@ -146,7 +149,7 @@ Recommended action:
146
149
  ⚠ Pending handoff detected
147
150
 
148
151
  Review handoff:
149
- cat specs/*/collaboration/active/decisions/handoff-*.md
152
+ Get-Content specs/*/collaboration/active/decisions/handoff-*.md
150
153
 
151
154
  Accept handoff:
152
155
  1. Review the handoff document
@@ -161,10 +164,10 @@ Accept handoff:
161
164
  You have local commits AND remote has new commits.
162
165
 
163
166
  Recommended actions:
164
- 1. Review remote changes: git fetch && git log HEAD..origin/$CURRENT_BRANCH
165
- 2. Pull with rebase: git pull --rebase origin $CURRENT_BRANCH
167
+ 1. Review remote changes: git fetch; git log "HEAD..origin/$CurrentBranch"
168
+ 2. Pull with rebase: git pull --rebase origin $CurrentBranch
166
169
  3. Resolve conflicts if any
167
- 4. Push: git push origin $CURRENT_BRANCH
170
+ 4. Push: git push origin $CurrentBranch
168
171
  ```
169
172
 
170
173
  ### 7. Session Log Status
@@ -173,17 +176,17 @@ If multiagent-kit installed, check session logs:
173
176
 
174
177
  ```powershell
175
178
  # Find today's session log
176
- TODAY=$(date +%Y-%m-%d)
177
- AGENT="github-copilot-cli" # or "github-copilot-cli"
179
+ $Today = Get-Date -Format "yyyy-MM-dd"
180
+ $Agent = "github-copilot" # or "claude-code"
178
181
 
179
- SESSION_LOG=$(find specs/*/collaboration/active/sessions -name "${TODAY}*${AGENT}*.md" 2>/dev/null | head -1)
182
+ $SessionLog = Get-ChildItem -Path specs/*/collaboration/active/sessions -Filter "${Today}*${Agent}*.md" -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
180
183
 
181
- if [ -n "$SESSION_LOG" ]; then
182
- echo "✓ Session log exists: $SESSION_LOG"
183
- else
184
- echo "⚠ No session log for today"
185
- echo " Create one: specs/<feature>/collaboration/active/sessions/${TODAY}-${AGENT}.md"
186
- fi
184
+ if ($SessionLog) {
185
+ Write-Host "✓ Session log exists: $($SessionLog.FullName)" -ForegroundColor Green
186
+ } else {
187
+ Write-Host "⚠ No session log for today" -ForegroundColor Yellow
188
+ Write-Host " Create one: specs/<feature>/collaboration/active/sessions/${Today}-${Agent}.md"
189
+ }
187
190
  ```
188
191
 
189
192
  ## Output Examples
@@ -211,7 +214,7 @@ Remote: origin/dev/001-starter-kits
211
214
  Agent Activity (last 7 days):
212
215
  ===========================================================
213
216
 
214
- github-copilot-cli ████████████ 12 commits
217
+ github-copilot ████████████ 12 commits
215
218
 
216
219
  ===========================================================
217
220
  Collaboration Status:
@@ -249,8 +252,8 @@ Remote: origin/dev/002-blog-feature
249
252
  Agent Activity (last 7 days):
250
253
  ===========================================================
251
254
 
252
- github-copilot-cli ████████ 5 commits (most recent)
253
- github-copilot-cli ████ 3 commits
255
+ claude-code ████████ 5 commits (most recent)
256
+ github-copilot ████ 3 commits
254
257
 
255
258
  ===========================================================
256
259
  Collaboration Status:
@@ -261,13 +264,13 @@ Active sessions: 2
261
264
  Pending handoffs: 1 ⚠
262
265
 
263
266
  Handoff found:
264
- specs/002-blog-feature/collaboration/active/decisions/handoff-to-claude.md
267
+ specs/002-blog-feature/collaboration/active/decisions/handoff-to-copilot.md
265
268
 
266
269
  ===========================================================
267
270
  Recommended Actions:
268
271
  ===========================================================
269
272
 
270
- 1. Review handoff: cat specs/002-blog-feature/collaboration/active/decisions/handoff-to-claude.md
273
+ 1. Review handoff: Get-Content specs/002-blog-feature/collaboration/active/decisions/handoff-to-copilot.md
271
274
  2. Pull latest: git pull origin dev/002-blog-feature
272
275
  3. Review changes: git log -1 origin/dev/002-blog-feature
273
276
  4. Start work on handoff items
@@ -286,19 +289,20 @@ If working with worktrees:
286
289
  git worktree list
287
290
 
288
291
  # Check which worktrees are active
289
- for worktree in $(git worktree list --porcelain | grep "worktree" | cut -d' ' -f2); do
290
- echo "Worktree: $worktree"
291
- cd "$worktree"
292
- git status --short
293
- cd - > /dev/null
294
- done
292
+ $Worktrees = git worktree list --porcelain | Select-String "^worktree" | ForEach-Object { ($_ -split ' ')[1] }
293
+ foreach ($worktree in $Worktrees) {
294
+ Write-Host "Worktree: $worktree"
295
+ Push-Location $worktree
296
+ git status --short
297
+ Pop-Location
298
+ }
295
299
  ```
296
300
 
297
301
  ### Compare with Other Branches
298
302
 
299
303
  ```powershell
300
304
  # Compare with main
301
- git log main..HEAD --oneline --format="%h %s (via %b)" | grep "via"
305
+ git log main..HEAD --oneline --format="%h %s (via %b)" | Select-String "via"
302
306
 
303
307
  # Show what's new in main since you branched
304
308
  git log HEAD..main --oneline
@@ -308,8 +312,8 @@ git log HEAD..main --oneline
308
312
 
309
313
  ```powershell
310
314
  # List branches not updated in 30 days
311
- git for-each-ref --format='%(refname:short) %(committerdate:relative)' \
312
- refs/heads/ | grep -E '(weeks|months|years) ago'
315
+ git for-each-ref --format='%(refname:short) %(committerdate:relative)' refs/heads/ |
316
+ Select-String '(weeks|months|years) ago'
313
317
  ```
314
318
 
315
319
  ## Important Notes