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.
- lite_kits/__init__.py +56 -4
- lite_kits/cli.py +696 -185
- lite_kits/core/__init__.py +6 -0
- lite_kits/core/banner.py +1 -1
- lite_kits/core/conflict_checker.py +115 -0
- lite_kits/core/detector.py +140 -0
- lite_kits/core/installer.py +236 -351
- lite_kits/core/manifest.py +146 -146
- lite_kits/core/validator.py +146 -0
- lite_kits/kits/README.md +6 -6
- lite_kits/kits/dev/README.md +241 -241
- lite_kits/kits/dev/{claude/commands → commands/.claude}/audit.md +143 -143
- lite_kits/kits/dev/{claude/commands → commands/.claude}/cleanup.md +2 -2
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/commit.md +2 -2
- lite_kits/kits/{project/claude/commands → dev/commands/.claude}/orient.md +3 -4
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/pr.md +1 -1
- lite_kits/kits/{git/claude/commands → dev/commands/.claude}/review.md +202 -202
- lite_kits/kits/{project/claude/commands → dev/commands/.claude}/stats.md +162 -162
- lite_kits/kits/{project/github/prompts → dev/commands/.github}/audit.prompt.md +143 -143
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/cleanup.prompt.md +2 -2
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/commit.prompt.md +2 -2
- lite_kits/kits/dev/{github/prompts → commands/.github}/orient.prompt.md +3 -4
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/pr.prompt.md +1 -1
- lite_kits/kits/{git/github/prompts → dev/commands/.github}/review.prompt.md +202 -202
- lite_kits/kits/dev/{github/prompts → commands/.github}/stats.prompt.md +163 -163
- lite_kits/kits/kits.yaml +497 -180
- lite_kits/kits/multiagent/README.md +6 -6
- lite_kits/kits/multiagent/{claude/commands → commands/.claude}/sync.md +331 -331
- lite_kits/kits/multiagent/{github/prompts → commands/.github}/sync.prompt.md +73 -69
- lite_kits/kits/multiagent/memory/git-worktrees-protocol.md +370 -370
- lite_kits/kits/multiagent/memory/parallel-work-protocol.md +536 -536
- lite_kits/kits/multiagent/memory/pr-workflow-guide.md +275 -275
- lite_kits/kits/multiagent/templates/collaboration-structure/README.md +166 -166
- lite_kits/kits/multiagent/templates/decision.md +79 -79
- lite_kits/kits/multiagent/templates/handoff.md +95 -95
- lite_kits/kits/multiagent/templates/session-log.md +68 -68
- lite_kits-0.3.1.dist-info/METADATA +259 -0
- lite_kits-0.3.1.dist-info/RECORD +41 -0
- {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/licenses/LICENSE +21 -21
- lite_kits/kits/dev/claude/commands/commit.md +0 -612
- lite_kits/kits/dev/claude/commands/orient.md +0 -146
- lite_kits/kits/dev/claude/commands/pr.md +0 -593
- lite_kits/kits/dev/claude/commands/review.md +0 -202
- lite_kits/kits/dev/claude/commands/stats.md +0 -162
- lite_kits/kits/dev/github/prompts/audit.prompt.md +0 -143
- lite_kits/kits/dev/github/prompts/cleanup.prompt.md +0 -382
- lite_kits/kits/dev/github/prompts/commit.prompt.md +0 -591
- lite_kits/kits/dev/github/prompts/pr.prompt.md +0 -603
- lite_kits/kits/dev/github/prompts/review.prompt.md +0 -202
- lite_kits/kits/git/README.md +0 -365
- lite_kits/kits/git/claude/commands/cleanup.md +0 -361
- lite_kits/kits/git/scripts/bash/get-git-context.sh +0 -208
- lite_kits/kits/git/scripts/powershell/Get-GitContext.ps1 +0 -242
- lite_kits/kits/project/README.md +0 -228
- lite_kits/kits/project/claude/commands/audit.md +0 -143
- lite_kits/kits/project/claude/commands/review.md +0 -112
- lite_kits/kits/project/github/prompts/orient.prompt.md +0 -150
- lite_kits/kits/project/github/prompts/review.prompt.md +0 -112
- lite_kits/kits/project/github/prompts/stats.prompt.md +0 -163
- lite_kits-0.1.1.dist-info/METADATA +0 -447
- lite_kits-0.1.1.dist-info/RECORD +0 -58
- {lite_kits-0.1.1.dist-info → lite_kits-0.3.1.dist-info}/WHEEL +0 -0
- {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
|
-
|
15
|
+
$CurrentBranch = git branch --show-current
|
16
16
|
|
17
17
|
# Check if tracking remote
|
18
|
-
|
18
|
+
$RemoteBranch = git rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>$null
|
19
19
|
|
20
20
|
# Commits ahead/behind
|
21
|
-
if
|
22
|
-
|
23
|
-
|
24
|
-
else
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
31
|
-
|
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" |
|
38
|
+
git log --since="7 days ago" --format="%b" | Select-String "via.*@" | Sort-Object -Unique
|
39
39
|
|
40
40
|
# Count commits by agent
|
41
|
-
|
42
|
-
git log --since="7 days ago" --format="%b" |
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
else
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
|
96
|
-
|
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
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
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 $
|
133
|
+
git pull origin $CurrentBranch
|
131
134
|
|
132
135
|
Or if you have local commits:
|
133
|
-
git pull --rebase origin $
|
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 $
|
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
|
-
|
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
|
165
|
-
2. Pull with rebase: git pull --rebase origin $
|
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 $
|
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
|
-
|
177
|
-
|
179
|
+
$Today = Get-Date -Format "yyyy-MM-dd"
|
180
|
+
$Agent = "github-copilot" # or "claude-code"
|
178
181
|
|
179
|
-
|
182
|
+
$SessionLog = Get-ChildItem -Path specs/*/collaboration/active/sessions -Filter "${Today}*${Agent}*.md" -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
|
180
183
|
|
181
|
-
if
|
182
|
-
|
183
|
-
else
|
184
|
-
|
185
|
-
|
186
|
-
|
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
|
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
|
-
|
253
|
-
github-copilot
|
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-
|
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:
|
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
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
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)" |
|
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
|
-
|
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
|