moai-adk 0.8.2__py3-none-any.whl → 0.9.0__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.

Potentially problematic release.


This version of moai-adk might be problematic. Click here for more details.

Files changed (39) hide show
  1. moai_adk/core/config/migration.py +1 -1
  2. moai_adk/core/issue_creator.py +7 -3
  3. moai_adk/core/tags/__init__.py +23 -24
  4. moai_adk/core/tags/ci_validator.py +3 -5
  5. moai_adk/core/tags/cli.py +2 -2
  6. moai_adk/core/tags/pre_commit_validator.py +5 -5
  7. moai_adk/core/tags/reporter.py +3 -5
  8. moai_adk/core/tags/validator.py +3 -3
  9. moai_adk/templates/.claude/commands/alfred/1-plan.md +65 -15
  10. moai_adk/templates/.claude/commands/alfred/2-run.md +65 -15
  11. moai_adk/templates/.claude/commands/alfred/3-sync.md +68 -14
  12. moai_adk/templates/.claude/hooks/alfred/core/project.py +750 -0
  13. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +1 -1
  14. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +111 -33
  15. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +3 -3
  16. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +330 -0
  17. moai_adk/templates/README.md +256 -0
  18. {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/METADATA +347 -48
  19. {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/RECORD +22 -36
  20. moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
  21. moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
  22. moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
  23. moai_adk/templates/.github/workflows/tag-report.yml +0 -261
  24. moai_adk/templates/.github/workflows/tag-validation.yml +0 -176
  25. moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
  26. moai_adk/templates/.moai/hooks/install.sh +0 -79
  27. moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
  28. moai_adk/templates/.moai/memory/CONFIG-SCHEMA.md +0 -444
  29. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
  30. moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
  31. moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -87
  32. moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -435
  33. moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
  34. moai_adk/templates/src/moai_adk/core/tags/pre_commit_validator.py +0 -355
  35. moai_adk/templates/src/moai_adk/core/tags/reporter.py +0 -959
  36. moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
  37. {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/WHEEL +0 -0
  38. {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/entry_points.txt +0 -0
  39. {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,220 +0,0 @@
1
- # GitFlow Advisory Policy
2
-
3
- **Document ID**: @DOC:GITFLOW-POLICY-001
4
- **Published**: 2025-10-17
5
- **Status**: Advisory (recommended, not enforced)
6
- **Scope**: Personal and Team modes
7
-
8
- ---
9
-
10
- ## Overview
11
-
12
- MoAI-ADK **recommends** a GitFlow-inspired workflow. This policy shares best practices while letting teams adapt them as needed.
13
-
14
- ## Key Recommendations
15
-
16
- ### 1. Main Branch Access (Recommended)
17
-
18
- | Recommendation | Summary | Enforcement |
19
- |----------------|---------|-------------|
20
- | **Merge via develop** | Prefer merging `develop` into `main` | Advisory ⚠️ |
21
- | **Feature branches off develop** | Branch from `develop` and raise PRs back to `develop` | Advisory ⚠️ |
22
- | **Release process** | Release flow: `develop` → `main` (release engineer encouraged) | Advisory ⚠️ |
23
- | **Force push** | Warn when force-pushing, but allow it | Warning ⚠️ |
24
- | **Direct push** | Warn on direct pushes to `main`, but allow them | Warning ⚠️ |
25
-
26
- ### 2. Git Workflow (Recommended)
27
-
28
- ```
29
- ┌─────────────────────────────────────────────────────────┐
30
- │ RECOMMENDED GITFLOW │
31
- └─────────────────────────────────────────────────────────┘
32
-
33
- develop (recommended base branch)
34
- ↑ ↓
35
- ┌─────────────────┐
36
- │ │
37
- │ developer work │
38
- │ │
39
- ↓ ↑
40
- feature/SPEC-{ID} [PR: feature -> develop]
41
- [code review + approval]
42
- [Merge to develop]
43
-
44
- develop (stable)
45
-
46
- │ (release manager prepares)
47
-
48
- [PR: develop -> main]
49
- [CI/CD validation]
50
- [tag creation]
51
-
52
- main (release)
53
- ```
54
-
55
- **Flexibility**: Direct pushes to `main` are still possible, but the workflow above is preferred.
56
-
57
- ## Technical Implementation
58
-
59
- ### Pre-push Hook (Advisory Mode)
60
-
61
- **Location**: `.git/hooks/pre-push`
62
- **Purpose**: Warn on `main` branch pushes without blocking them
63
-
64
- ```bash
65
- # When attempting to push to main:
66
- ⚠️ ADVISORY: Non-standard GitFlow detected
67
-
68
- Current branch: feature/SPEC-123
69
- Target branch: main
70
-
71
- Recommended GitFlow workflow:
72
- 1. Work on feature/SPEC-{ID} branch (created from develop)
73
- 2. Push to feature/SPEC-{ID} and create PR to develop
74
- 3. Merge into develop after code review
75
- 4. When develop is stable, create PR from develop to main
76
- 5. Release manager merges develop -> main with tag
77
-
78
- ✓ Push will proceed (flexibility mode enabled)
79
- ```
80
-
81
- ### Force Push Advisory
82
-
83
- ```bash
84
- ⚠️ ADVISORY: Force-push to main branch detected
85
-
86
- Recommended approach:
87
- - Use GitHub PR with proper code review
88
- - Ensure changes are merged via fast-forward
89
-
90
- ✓ Push will proceed (flexibility mode enabled)
91
- ```
92
-
93
- ---
94
-
95
- ## Workflow Examples
96
-
97
- ### Scenario 1: Standard Feature Development (Recommended)
98
-
99
- ```bash
100
- # 1. Sync latest code from develop
101
- git checkout develop
102
- git pull origin develop
103
-
104
- # 2. Create a feature branch (from develop)
105
- git checkout -b feature/SPEC-001-new-feature
106
-
107
- # 3. Implement the change
108
- # ... write code and tests ...
109
-
110
- # 4. Commit
111
- git add .
112
- git commit -m "..."
113
-
114
- # 5. Push
115
- git push origin feature/SPEC-001-new-feature
116
-
117
- # 6. Open a PR: feature/SPEC-001-new-feature -> develop
118
-
119
- # 7. Merge into develop after review and approval
120
- ```
121
-
122
- ### Scenario 2: Fast Hotfix (Flexible)
123
-
124
- ```bash
125
- # When an urgent fix is required:
126
-
127
- # Option 1: Recommended (via develop)
128
- git checkout develop
129
- git checkout -b hotfix/critical-bug
130
- # ... apply fix ...
131
- git push origin hotfix/critical-bug
132
- # Open PRs: hotfix -> develop -> main
133
-
134
- # Option 2: Direct fix on main (allowed, not recommended)
135
- git checkout main
136
- # ... apply fix ...
137
- git commit -m "Fix critical bug"
138
- git push origin main # ⚠️ Advisory warning appears but push continues
139
- ```
140
-
141
- ### Scenario 3: Release (Standard or Flexible)
142
-
143
- ```bash
144
- # Standard approach (recommended):
145
- git checkout develop
146
- gh pr create --base main --head develop --title "Release v1.0.0"
147
-
148
- # Direct push (allowed):
149
- git checkout develop
150
- git push origin main # ⚠️ Advisory warning appears but push continues
151
- git tag -a v1.0.0 -m "Release v1.0.0"
152
- git push origin v1.0.0
153
- ```
154
-
155
- ---
156
-
157
- ## Policy Modes
158
-
159
- ### Strict Mode (Legacy, Currently Disabled)
160
-
161
- - ❌ Block direct pushes to `main`
162
- - ❌ Block force pushes
163
- - ❌ Block merges into `main` from any branch other than `develop`
164
-
165
- ### Advisory Mode (Active, v0.3.5+)
166
-
167
- - ⚠️ Warn but allow direct pushes to `main`
168
- - ⚠️ Warn but allow force pushes
169
- - ⚠️ Recommend best practices while preserving flexibility
170
- - ✅ Respect user judgment
171
-
172
- ---
173
-
174
- ## Recommended Checklist
175
-
176
- Every contributor should ensure:
177
-
178
- - [ ] `.git/hooks/pre-push` exists and is executable (755)
179
- - [ ] Feature branches fork from `develop`
180
- - [ ] Pull requests target `develop`
181
- - [ ] Releases merge `develop` → `main`
182
-
183
- **Verification Commands**:
184
- ```bash
185
- ls -la .git/hooks/pre-push
186
- git branch -vv
187
- ```
188
-
189
- ---
190
-
191
- ## FAQ
192
-
193
- **Q: Can we merge into `main` from branches other than `develop`?**
194
- A: Yes. You will see an advisory warning, but the merge proceeds. The recommended path remains `develop` → `main`.
195
-
196
- **Q: Are force pushes allowed?**
197
- A: Yes. You receive a warning, but the push succeeds. Use with caution.
198
-
199
- **Q: Can we commit/push directly to `main`?**
200
- A: Yes. Expect an advisory warning, yet the push continues.
201
-
202
- **Q: Can I disable the hook entirely?**
203
- A: Yes. Remove `.git/hooks/pre-push` or strip its execute permission.
204
-
205
- **Q: Why switch to Advisory Mode?**
206
- A: To promote best practices while respecting contributor flexibility and judgment.
207
-
208
- ---
209
-
210
- ## Policy Change Log
211
-
212
- | Date | Change | Owner |
213
- |------|------|--------|
214
- | 2025-10-17 | Initial policy drafted (Strict Mode) | git-manager |
215
- | 2025-10-17 | Switched to Advisory Mode (warnings only) | git-manager |
216
-
217
- ---
218
-
219
- **This policy is advisory—adapt it to fit your project needs.**
220
- **Reach out to the team lead or release engineer for questions or suggestions.**
@@ -1,5 +0,0 @@
1
- """MoAI-ADK core modules
2
-
3
- This package contains core functionality for MoAI-ADK including:
4
- - TAG validation and management
5
- """
@@ -1,87 +0,0 @@
1
- #!/usr/bin/env python3
2
- # @CODE:DOC-TAG-004 | TAG validation core module (Components 1, 2, 3 & 4)
3
- """TAG validation and management for MoAI-ADK
4
-
5
- This module provides TAG validation functionality for:
6
- - Pre-commit hook validation (Component 1)
7
- - CI/CD pipeline validation (Component 2)
8
- - Central validation system (Component 3)
9
- - Documentation & Reporting (Component 4)
10
- - TAG format checking
11
- - Duplicate detection
12
- - Orphan detection
13
- - Chain integrity validation
14
- """
15
-
16
- # Component 1: Pre-commit validator
17
- from .pre_commit_validator import (
18
- PreCommitValidator,
19
- ValidationResult,
20
- ValidationError,
21
- ValidationWarning,
22
- )
23
-
24
- # Component 2: CI/CD validator
25
- from .ci_validator import CIValidator
26
-
27
- # Component 3: Central validation system
28
- from .validator import (
29
- ValidationConfig,
30
- TagValidator,
31
- DuplicateValidator,
32
- OrphanValidator,
33
- ChainValidator,
34
- FormatValidator,
35
- CentralValidator,
36
- CentralValidationResult,
37
- ValidationIssue,
38
- ValidationStatistics,
39
- )
40
-
41
- # Component 4: Documentation & Reporting
42
- from .reporter import (
43
- TagInventory,
44
- TagMatrix,
45
- InventoryGenerator,
46
- MatrixGenerator,
47
- CoverageAnalyzer,
48
- StatisticsGenerator,
49
- ReportFormatter,
50
- ReportGenerator,
51
- CoverageMetrics,
52
- StatisticsReport,
53
- ReportResult,
54
- )
55
-
56
- __all__ = [
57
- # Component 1
58
- "PreCommitValidator",
59
- "ValidationResult",
60
- "ValidationError",
61
- "ValidationWarning",
62
- # Component 2
63
- "CIValidator",
64
- # Component 3
65
- "ValidationConfig",
66
- "TagValidator",
67
- "DuplicateValidator",
68
- "OrphanValidator",
69
- "ChainValidator",
70
- "FormatValidator",
71
- "CentralValidator",
72
- "CentralValidationResult",
73
- "ValidationIssue",
74
- "ValidationStatistics",
75
- # Component 4
76
- "TagInventory",
77
- "TagMatrix",
78
- "InventoryGenerator",
79
- "MatrixGenerator",
80
- "CoverageAnalyzer",
81
- "StatisticsGenerator",
82
- "ReportFormatter",
83
- "ReportGenerator",
84
- "CoverageMetrics",
85
- "StatisticsReport",
86
- "ReportResult",
87
- ]