lite-kits 0.1.1__py3-none-any.whl → 0.3.2__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 +782 -189
  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 +177 -0
  7. lite_kits/core/installer.py +242 -351
  8. lite_kits/core/manifest.py +146 -146
  9. lite_kits/core/validator.py +183 -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.2.dist-info/METADATA +259 -0
  38. lite_kits-0.3.2.dist-info/RECORD +41 -0
  39. {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.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.2.dist-info}/WHEEL +0 -0
  63. {lite_kits-0.1.1.dist-info → lite_kits-0.3.2.dist-info}/entry_points.txt +0 -0
@@ -1,146 +0,0 @@
1
- ---
2
- description: Quickly orient to project context, installed kits, and current state
3
- ---
4
-
5
- # Agent Orientation Protocol
6
-
7
- **Purpose**: Provide concise project orientation for AI agents at start of work session.
8
-
9
- ## Execution Steps
10
-
11
- Execute the following steps to gather orientation information:
12
-
13
- ### 1. Detect Installed Kits
14
-
15
- Check for kit marker files to determine what's installed:
16
-
17
- ```bash
18
- # Check all kits in one command
19
- KITS_INSTALLED=""
20
- [ -f .claude/commands/orient.md ] && KITS_INSTALLED="${KITS_INSTALLED}project "
21
- [ -f .claude/commands/commit.md ] && KITS_INSTALLED="${KITS_INSTALLED}git "
22
- [ -f .specify/memory/pr-workflow-guide.md ] && KITS_INSTALLED="${KITS_INSTALLED}multiagent "
23
- KITS_INSTALLED="${KITS_INSTALLED:-vanilla only}"
24
- ```
25
-
26
- ### 2. Determine Agent Role
27
-
28
- Identify which agent you are and your role:
29
-
30
- ```bash
31
- # Detect model and interface
32
- MODEL="claude-sonnet-4.5" # Default Claude model, adjust based on actual model used
33
- INTERFACE="Claude Code"
34
- AGENT_ROLE="$MODEL @ $INTERFACE (Primary)"
35
- ```
36
-
37
- ### 3. Read Primary Documentation
38
-
39
- Read these files in order (if they exist):
40
-
41
- 1. **`.github/copilot-instructions.md`** - Project overview, stack, conventions
42
- 2. **`.specify/memory/constitution.md`** - Project philosophy and principles
43
- 3. **`README.md`** - General project information
44
-
45
- Extract:
46
- - Project name and description
47
- - Technology stack
48
- - Key architectural decisions
49
- - Development conventions
50
-
51
- ### 4. Check Git State
52
-
53
- ```bash
54
- # Efficient single-command git status check
55
- # Get branch, recent commits, and changes in one go
56
- CURRENT_BRANCH=$(git branch --show-current 2>/dev/null || echo "(not in git repo)")
57
- RECENT_COMMITS=$(git log --oneline -3 2>/dev/null | head -1 || echo "(no commits)")
58
- CHANGES=$(git status --short 2>/dev/null | wc -l || echo "0")
59
- ```
60
-
61
- ### 5. Check Active Work
62
-
63
- Look for active feature work:
64
-
65
- ```bash
66
- # Check if current branch matches a spec directory
67
- if [[ "$CURRENT_BRANCH" =~ ^[0-9]+ ]] || [[ "$CURRENT_BRANCH" =~ ^dev/[0-9]+ ]]; then
68
- # Extract spec number from branch name
69
- SPEC_NUM=$(echo "$CURRENT_BRANCH" | grep -oE '[0-9]+' | head -1)
70
- SPEC_DIR="specs/$SPEC_NUM-*"
71
- # Check for spec files efficiently
72
- SPEC_FILES=$(ls -1 $SPEC_DIR/{spec,plan,tasks}.md 2>/dev/null | wc -l)
73
- fi
74
- ```
75
-
76
- ### 6. Check Multi-Agent Coordination (if multiagent-kit installed)
77
-
78
- ```bash
79
- # Only check if multiagent kit is installed
80
- if [[ "$KITS_INSTALLED" == *"multiagent"* ]]; then
81
- # Efficient check for collaboration activity
82
- ACTIVE_SESSIONS=$(find specs/*/collaboration/active/sessions/ -name "*.md" 2>/dev/null | wc -l)
83
- PENDING_HANDOFF=$(find specs/*/collaboration/active/decisions/ -name "handoff-*.md" 2>/dev/null | head -1)
84
- fi
85
- ```
86
-
87
- ### 7. Generate Concise Output
88
-
89
- Provide a **concise summary** (~150 words max) in this format:
90
-
91
- ```
92
- ## Orientation Complete
93
-
94
- **Installed Kits**: [KITS_INSTALLED]
95
-
96
- **I am**: [AGENT_ROLE from step 2]
97
- **Project**: [project name from docs]
98
- **Stack**: [main technologies]
99
- **Branch**: [CURRENT_BRANCH]
100
- **Recent work**: [RECENT_COMMITS - just the message]
101
- **Uncommitted changes**: [CHANGES count]
102
- **Active feature**: [current spec if SPEC_FILES > 0]
103
- **Coordination**: [solo work / handoff pending / etc]
104
-
105
- **Next suggested action**: [based on state analysis below]
106
- ```
107
-
108
- ### 8. Suggest Next Action
109
-
110
- Based on the state you discovered, suggest the next logical action:
111
-
112
- **Decision logic**:
113
-
114
- - **No spec on current branch** → "Run `/specify` to start a new feature"
115
- - **Spec exists, no plan** → "Run `/plan` to create implementation plan"
116
- - **Plan exists, no tasks** → "Run `/tasks` to break down into tasks"
117
- - **Tasks exist** → "Run `/implement` to start coding"
118
- - **Handoff detected** (multiagent) → "Review handoff in `specs/[feature]/collaboration/active/decisions/`"
119
- - **Uncommitted changes** → "Review changes and consider running `/commit`" (if git-kit installed)
120
-
121
- ## Important Notes
122
-
123
- - Keep output **concise** - this is an orientation, not a full analysis
124
- - Focus on **actionable context** - what the agent needs to know right now
125
- - **Don't modify any files** - this is read-only orientation
126
- - If documentation is missing, note it briefly and continue
127
- - Gracefully handle missing files (don't error if docs don't exist)
128
-
129
- ## Example Output
130
-
131
- ```
132
- ## Orientation Complete
133
-
134
- **Installed Kits**: project, git
135
-
136
- **I am**: claude-sonnet-4.5 @ Claude Code (Primary)
137
- **Project**: Blog Platform API (TypeScript/Node.js)
138
- **Stack**: Node.js, Express, PostgreSQL, TypeScript
139
- **Branch**: dev/003-user-authentication
140
- **Recent work**: Added JWT token validation (2 commits today)
141
- **Uncommitted changes**: 3 modified files
142
- **Active feature**: specs/003-user-authentication/ (spec + plan complete)
143
- **Coordination**: Solo work
144
-
145
- **Next suggested action**: Run `/tasks` to break down the implementation plan into actionable tasks.
146
- ```