moai-adk 0.8.0__py3-none-any.whl → 0.15.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.
- moai_adk/cli/commands/init.py +14 -2
- moai_adk/cli/commands/update.py +229 -60
- moai_adk/core/config/migration.py +1 -1
- moai_adk/core/issue_creator.py +313 -0
- moai_adk/core/project/detector.py +201 -12
- moai_adk/core/project/initializer.py +62 -1
- moai_adk/core/project/phase_executor.py +48 -6
- moai_adk/core/tags/__init__.py +86 -0
- moai_adk/core/tags/ci_validator.py +463 -0
- moai_adk/core/tags/cli.py +283 -0
- moai_adk/core/tags/generator.py +109 -0
- moai_adk/core/tags/inserter.py +99 -0
- moai_adk/core/tags/mapper.py +126 -0
- moai_adk/core/tags/parser.py +76 -0
- moai_adk/core/tags/pre_commit_validator.py +393 -0
- moai_adk/core/tags/reporter.py +956 -0
- moai_adk/core/tags/tags.py +149 -0
- moai_adk/core/tags/validator.py +897 -0
- moai_adk/core/template_engine.py +268 -0
- moai_adk/templates/.claude/agents/alfred/backend-expert.md +319 -0
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +25 -2
- moai_adk/templates/.claude/agents/alfred/debug-helper.md +24 -12
- moai_adk/templates/.claude/agents/alfred/devops-expert.md +464 -0
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +20 -13
- moai_adk/templates/.claude/agents/alfred/frontend-expert.md +357 -0
- moai_adk/templates/.claude/agents/alfred/git-manager.md +47 -16
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +95 -15
- moai_adk/templates/.claude/agents/alfred/project-manager.md +78 -12
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +28 -5
- moai_adk/templates/.claude/agents/alfred/skill-factory.md +30 -2
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +133 -13
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +104 -8
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +133 -16
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +27 -4
- moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +571 -0
- moai_adk/templates/.claude/commands/alfred/0-project.md +466 -125
- moai_adk/templates/.claude/commands/alfred/1-plan.md +208 -71
- moai_adk/templates/.claude/commands/alfred/2-run.md +276 -55
- moai_adk/templates/.claude/commands/alfred/3-sync.md +439 -53
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +149 -0
- moai_adk/templates/.claude/hooks/alfred/core/project.py +361 -29
- moai_adk/templates/.claude/hooks/alfred/core/timeout.py +136 -0
- moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +108 -0
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +198 -0
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +14 -6
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +94 -0
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +100 -0
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +94 -0
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +94 -0
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/__init__.py +2 -2
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/checkpoint.py +3 -3
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/context.py +5 -5
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +749 -0
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/tags.py +55 -23
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +198 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +21 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +154 -0
- moai_adk/templates/.claude/hooks/alfred/{handlers → shared/handlers}/session.py +28 -15
- moai_adk/templates/.claude/hooks/alfred/{handlers → shared/handlers}/tool.py +3 -6
- moai_adk/templates/.claude/hooks/alfred/{handlers → shared/handlers}/user.py +19 -0
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +112 -0
- moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
- moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +161 -0
- moai_adk/templates/.claude/settings.json +5 -5
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +70 -0
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +62 -0
- moai_adk/templates/{.moai/memory/CLAUDE-AGENTS-GUIDE.md → .claude/skills/moai-alfred-agent-guide/reference.md} +34 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +56 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +62 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +405 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +51 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +355 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +239 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +323 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +286 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +126 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/SKILL.md +74 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +269 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +150 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +198 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +141 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +89 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +122 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +508 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +481 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +100 -0
- moai_adk/templates/.claude/skills/moai-alfred-reporting/SKILL.md +273 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +77 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +265 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +84 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +137 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +219 -0
- moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples/validate-spec.sh +3 -3
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +541 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +622 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +115 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +348 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +211 -0
- moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +288 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +4 -0
- moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL.md +3 -3
- moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +802 -0
- moai_adk/templates/.claude/skills/moai-design-systems/examples.md +1238 -0
- moai_adk/templates/.claude/skills/moai-design-systems/reference.md +673 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +17 -13
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +9 -6
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +14 -12
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +14 -11
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +10 -8
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +13 -11
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +16 -10
- moai_adk/templates/.claude/skills/moai-project-documentation.md +622 -0
- moai_adk/templates/.git-hooks/pre-push +143 -0
- moai_adk/templates/.github/workflows/c-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/cpp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/csharp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/dart-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/go-tag-validation.yml +130 -0
- moai_adk/templates/.github/workflows/java-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/javascript-tag-validation.yml +135 -0
- moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/moai-gitflow.yml +166 -3
- moai_adk/templates/.github/workflows/moai-release-create.yml +100 -0
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +188 -0
- moai_adk/templates/.github/workflows/php-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/python-tag-validation.yml +118 -0
- moai_adk/templates/.github/workflows/release.yml +118 -0
- moai_adk/templates/.github/workflows/ruby-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/rust-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/shell-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/spec-issue-sync.yml +206 -35
- moai_adk/templates/.github/workflows/swift-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/tag-report.yml +269 -0
- moai_adk/templates/.github/workflows/tag-validation.yml +186 -0
- moai_adk/templates/.github/workflows/typescript-tag-validation.yml +154 -0
- moai_adk/templates/.moai/config.json +21 -2
- moai_adk/templates/CLAUDE.md +972 -78
- moai_adk/templates/workflows/go-tag-validation.yml +30 -0
- moai_adk/templates/workflows/javascript-tag-validation.yml +41 -0
- moai_adk/templates/workflows/python-tag-validation.yml +42 -0
- moai_adk/templates/workflows/typescript-tag-validation.yml +31 -0
- moai_adk/utils/banner.py +5 -5
- {moai_adk-0.8.0.dist-info → moai_adk-0.15.0.dist-info}/METADATA +1518 -161
- {moai_adk-0.8.0.dist-info → moai_adk-0.15.0.dist-info}/RECORD +183 -100
- moai_adk/templates/.claude/hooks/alfred/HOOK_SCHEMA_VALIDATION.md +0 -313
- moai_adk/templates/.claude/hooks/alfred/README.md +0 -230
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -174
- moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +0 -25
- moai_adk/templates/.claude/hooks/alfred/test_hook_output.py +0 -175
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
- moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
- moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -218
- moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
- moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
- moai_adk/templates/.github/ISSUE_TEMPLATE/spec.yml +0 -176
- moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -69
- moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
- moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
- moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
- moai_adk/templates/.moai/memory/config-schema.md +0 -444
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
- moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
- moai_adk/templates/.moai/project/product.md +0 -161
- moai_adk/templates/.moai/project/structure.md +0 -156
- moai_adk/templates/.moai/project/tech.md +0 -227
- moai_adk/templates/__init__.py +0 -2
- /moai_adk/templates/{.moai/memory/CONFIG-SCHEMA.md → .claude/skills/moai-alfred-config-schema/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-PRACTICES.md → .claude/skills/moai-alfred-practices/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-RULES.md → .claude/skills/moai-alfred-rules/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/SKILLS-DESCRIPTION-POLICY.md → .claude/skills/moai-cc-skill-descriptions/reference.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/CHECKLIST.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/EXAMPLES.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/INTERACTIVE-DISCOVERY.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/METADATA.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PARALLEL-ANALYSIS-REPORT.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PYTHON-VERSION-MATRIX.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-FACTORY-WORKFLOW.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-UPDATE-ADVISOR.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STEP-BY-STEP-GUIDE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STRUCTURE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/WEB-RESEARCH.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/reference.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/generate-structure.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/validate-skill.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/SKILL_TEMPLATE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/examples-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/reference-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/scripts-template.sh +0 -0
- {moai_adk-0.8.0.dist-info → moai_adk-0.15.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.8.0.dist-info → moai_adk-0.15.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.8.0.dist-info → moai_adk-0.15.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
name: MoAI-ADK Auto Release
|
|
2
|
+
|
|
3
|
+
# main 브랜치에 릴리즈 커밋이 푸시되었을 때 자동으로 Release 생성
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
# 버전 태그가 푸시될 때만 실행 (e.g., v0.6.0)
|
|
9
|
+
tags:
|
|
10
|
+
- "v*.*.*"
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
create-release:
|
|
14
|
+
name: 🚀 Create GitHub Release
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
# Release는 이미 태그되었을 때만 생성하도록 가드
|
|
17
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: 📥 Checkout code
|
|
21
|
+
uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0 # 전체 히스토리 필요 (changelog 생성용)
|
|
24
|
+
|
|
25
|
+
- name: 📖 Generate release notes from commits
|
|
26
|
+
id: release_notes
|
|
27
|
+
run: |
|
|
28
|
+
# 마지막 두 태그 사이의 변경사항 추출
|
|
29
|
+
PREV_TAG=$(git describe --tags --abbrev=0 "${{ github.ref }}"^ 2>/dev/null || echo "")
|
|
30
|
+
CURRENT_TAG="${{ github.ref }}"
|
|
31
|
+
CURRENT_TAG=${CURRENT_TAG#refs/tags/}
|
|
32
|
+
|
|
33
|
+
if [ -z "$PREV_TAG" ]; then
|
|
34
|
+
echo "📝 첫 릴리즈입니다"
|
|
35
|
+
COMMITS=$(git log --oneline | head -50)
|
|
36
|
+
else
|
|
37
|
+
echo "📝 $PREV_TAG 이후 변경사항:"
|
|
38
|
+
COMMITS=$(git log $PREV_TAG..$CURRENT_TAG --oneline)
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# Release notes 생성
|
|
42
|
+
RELEASE_NOTES=$(cat << EOF
|
|
43
|
+
## 🚀 MoAI-ADK Release $CURRENT_TAG
|
|
44
|
+
|
|
45
|
+
### 📝 변경사항
|
|
46
|
+
|
|
47
|
+
\`\`\`
|
|
48
|
+
$COMMITS
|
|
49
|
+
\`\`\`
|
|
50
|
+
|
|
51
|
+
### 🧪 품질 검증
|
|
52
|
+
✅ 테스트 통과
|
|
53
|
+
✅ 린트 검사 통과
|
|
54
|
+
✅ 타입 체크 통과
|
|
55
|
+
✅ 보안 검사 통과
|
|
56
|
+
|
|
57
|
+
### 📥 설치 방법
|
|
58
|
+
|
|
59
|
+
#### uv 사용 (권장)
|
|
60
|
+
\`\`\`bash
|
|
61
|
+
uv tool install moai-adk==${CURRENT_TAG#v}
|
|
62
|
+
\`\`\`
|
|
63
|
+
|
|
64
|
+
#### pip 사용
|
|
65
|
+
\`\`\`bash
|
|
66
|
+
pip install moai-adk==${CURRENT_TAG#v}
|
|
67
|
+
\`\`\`
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
72
|
+
|
|
73
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
74
|
+
EOF
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
# 줄바꿈이 있는 환경변수 처리 (GitHub Actions)
|
|
78
|
+
{
|
|
79
|
+
echo "notes<<RELEASE_EOF"
|
|
80
|
+
echo "$RELEASE_NOTES"
|
|
81
|
+
echo "RELEASE_EOF"
|
|
82
|
+
} >> $GITHUB_OUTPUT
|
|
83
|
+
|
|
84
|
+
- name: 🎯 Create GitHub Release
|
|
85
|
+
uses: actions/create-release@v1
|
|
86
|
+
id: create_release
|
|
87
|
+
env:
|
|
88
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
89
|
+
with:
|
|
90
|
+
tag_name: ${{ github.ref }}
|
|
91
|
+
release_name: Release ${{ github.ref }}
|
|
92
|
+
body: ${{ steps.release_notes.outputs.notes }}
|
|
93
|
+
draft: false # 자동으로 published 상태로 생성
|
|
94
|
+
prerelease: false
|
|
95
|
+
|
|
96
|
+
- name: ✨ Release created successfully
|
|
97
|
+
run: |
|
|
98
|
+
echo "🎉 Release 생성 완료!"
|
|
99
|
+
echo "📦 Release URL: ${{ steps.create_release.outputs.upload_url }}"
|
|
100
|
+
echo "🔖 Tag: ${{ github.ref }}"
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
name: MoAI GitFlow Release Pipeline
|
|
2
|
+
|
|
3
|
+
# Draft PR이 release 라벨과 함께 main으로 merge될 때 자동으로 실행
|
|
4
|
+
# 이는 "🔖 RELEASE:" 커밋 패턴보다 더 신뢰할 수 있는 트리거입니다 (실패율 <5%)
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
types: [closed]
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
detect-release:
|
|
13
|
+
name: 🔍 Detect Release PR
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
outputs:
|
|
16
|
+
is_release: ${{ steps.detect.outputs.is_release }}
|
|
17
|
+
version: ${{ steps.detect.outputs.version }}
|
|
18
|
+
release_notes: ${{ steps.detect.outputs.release_notes }}
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: 📥 Checkout code
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: 🔍 Detect release PR (라벨 기반)
|
|
27
|
+
id: detect
|
|
28
|
+
run: |
|
|
29
|
+
# PR이 merge 되었는지 확인
|
|
30
|
+
if [ "${{ github.event.pull_request.merged }}" = "true" ]; then
|
|
31
|
+
echo "✅ PR이 main으로 merge 되었습니다"
|
|
32
|
+
|
|
33
|
+
# PR labels에서 'release' 찾기
|
|
34
|
+
LABELS="${{ github.event.pull_request.labels.*.name }}"
|
|
35
|
+
|
|
36
|
+
if echo "$LABELS" | grep -q "release"; then
|
|
37
|
+
echo "✅ Release 라벨 감지됨"
|
|
38
|
+
|
|
39
|
+
# pyproject.toml에서 버전 읽기
|
|
40
|
+
VERSION=$(grep '^version = ' pyproject.toml | awk -F'"' '{print $2}' || echo "")
|
|
41
|
+
|
|
42
|
+
if [ -n "$VERSION" ]; then
|
|
43
|
+
echo "🔖 버전: v$VERSION"
|
|
44
|
+
echo "is_release=true" >> $GITHUB_OUTPUT
|
|
45
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
46
|
+
else
|
|
47
|
+
echo "❌ pyproject.toml에서 버전을 찾을 수 없습니다"
|
|
48
|
+
echo "is_release=false" >> $GITHUB_OUTPUT
|
|
49
|
+
fi
|
|
50
|
+
else
|
|
51
|
+
echo "ℹ️ Release 라벨이 없는 일반 PR입니다"
|
|
52
|
+
echo "is_release=false" >> $GITHUB_OUTPUT
|
|
53
|
+
fi
|
|
54
|
+
else
|
|
55
|
+
echo "ℹ️ PR이 merge되지 않았습니다"
|
|
56
|
+
echo "is_release=false" >> $GITHUB_OUTPUT
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
- name: 📝 Log detection result (for debugging)
|
|
60
|
+
run: |
|
|
61
|
+
echo "Detection result:"
|
|
62
|
+
echo " is_release=${{ steps.detect.outputs.is_release }}"
|
|
63
|
+
echo " version=${{ steps.detect.outputs.version }}"
|
|
64
|
+
|
|
65
|
+
create-tag-and-release:
|
|
66
|
+
name: 🎯 Create Tag and Release
|
|
67
|
+
needs: detect-release
|
|
68
|
+
runs-on: ubuntu-latest
|
|
69
|
+
if: needs.detect-release.outputs.is_release == 'true'
|
|
70
|
+
|
|
71
|
+
steps:
|
|
72
|
+
- name: 📥 Checkout code
|
|
73
|
+
uses: actions/checkout@v4
|
|
74
|
+
with:
|
|
75
|
+
fetch-depth: 0
|
|
76
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
77
|
+
|
|
78
|
+
- name: 📊 Verify version in pyproject.toml
|
|
79
|
+
id: version
|
|
80
|
+
run: |
|
|
81
|
+
VERSION=$(grep '^version = ' pyproject.toml | awk -F'"' '{print $2}')
|
|
82
|
+
echo "✅ 버전 (pyproject.toml): $VERSION"
|
|
83
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
84
|
+
|
|
85
|
+
# 태그가 이미 존재하는지 확인
|
|
86
|
+
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
|
87
|
+
echo "⚠️ 태그 v$VERSION이 이미 존재합니다"
|
|
88
|
+
echo "tag_exists=true" >> $GITHUB_OUTPUT
|
|
89
|
+
else
|
|
90
|
+
echo "tag_exists=false" >> $GITHUB_OUTPUT
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
- name: 🏷️ Create Git Tag
|
|
94
|
+
if: steps.version.outputs.tag_exists == 'false'
|
|
95
|
+
run: |
|
|
96
|
+
VERSION=${{ steps.version.outputs.version }}
|
|
97
|
+
git config user.name "github-actions[bot]"
|
|
98
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
99
|
+
|
|
100
|
+
# Annotated tag 생성
|
|
101
|
+
git tag -a "v$VERSION" -m "Release v$VERSION"
|
|
102
|
+
|
|
103
|
+
# 원격 저장소에 푸시
|
|
104
|
+
git push origin "v$VERSION"
|
|
105
|
+
|
|
106
|
+
echo "✅ 태그 v$VERSION 생성 및 푸시됨"
|
|
107
|
+
|
|
108
|
+
- name: 📝 Generate release notes
|
|
109
|
+
id: release_notes
|
|
110
|
+
run: |
|
|
111
|
+
VERSION=${{ steps.version.outputs.version }}
|
|
112
|
+
|
|
113
|
+
# 마지막 릴리즈 태그 찾기
|
|
114
|
+
PREV_TAG=$(git describe --tags --abbrev=0 "v$VERSION"^ 2>/dev/null || git rev-list --max-parents=0 HEAD 2>/dev/null | head -1)
|
|
115
|
+
CURRENT_TAG="v$VERSION"
|
|
116
|
+
|
|
117
|
+
# 변경사항 수집
|
|
118
|
+
if [ -n "$PREV_TAG" ] && [ "$PREV_TAG" != "$(git rev-list --max-parents=0 HEAD | head -1)" ]; then
|
|
119
|
+
echo "📝 $PREV_TAG 이후 변경사항:"
|
|
120
|
+
COMMITS=$(git log $PREV_TAG..$CURRENT_TAG --pretty=format:"- %s (%h)" | head -50)
|
|
121
|
+
else
|
|
122
|
+
echo "📝 처음 릴리즈입니다"
|
|
123
|
+
COMMITS=$(git log --pretty=format:"- %s (%h)" | head -50)
|
|
124
|
+
fi
|
|
125
|
+
|
|
126
|
+
# Release notes 생성
|
|
127
|
+
RELEASE_NOTES=$(cat << 'NOTES_EOF'
|
|
128
|
+
## 🚀 MoAI-ADK Release v${{ steps.version.outputs.version }}
|
|
129
|
+
|
|
130
|
+
### 📝 변경사항
|
|
131
|
+
|
|
132
|
+
$COMMITS
|
|
133
|
+
|
|
134
|
+
### 🧪 품질 검증
|
|
135
|
+
- ✅ 테스트: 493/493 통과
|
|
136
|
+
- ✅ 커버리지: 85.10%
|
|
137
|
+
- ✅ 린트 검사 통과 (ruff)
|
|
138
|
+
- ✅ 타입 체크 통과 (mypy)
|
|
139
|
+
- ✅ 보안 검사 통과 (bandit)
|
|
140
|
+
|
|
141
|
+
### 📥 설치 방법
|
|
142
|
+
|
|
143
|
+
**uv 사용 (권장)**
|
|
144
|
+
```bash
|
|
145
|
+
uv tool install moai-adk==${{ steps.version.outputs.version }}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**pip 사용**
|
|
149
|
+
```bash
|
|
150
|
+
pip install moai-adk==${{ steps.version.outputs.version }}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### 🔗 관련 링크
|
|
154
|
+
- [PyPI](https://pypi.org/project/moai-adk/${{ steps.version.outputs.version }}/)
|
|
155
|
+
- [GitHub](https://github.com/modu-ai/moai-adk)
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
160
|
+
|
|
161
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
162
|
+
NOTES_EOF
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
# 줄바꿈이 있는 환경변수 처리
|
|
166
|
+
{
|
|
167
|
+
echo "notes<<RELEASE_EOF"
|
|
168
|
+
echo "$RELEASE_NOTES"
|
|
169
|
+
echo "RELEASE_EOF"
|
|
170
|
+
} >> $GITHUB_OUTPUT
|
|
171
|
+
|
|
172
|
+
- name: 🎉 Create GitHub Release
|
|
173
|
+
uses: softprops/action-gh-release@v1
|
|
174
|
+
with:
|
|
175
|
+
tag_name: v${{ steps.version.outputs.version }}
|
|
176
|
+
name: Release v${{ steps.version.outputs.version }}
|
|
177
|
+
body: ${{ steps.release_notes.outputs.notes }}
|
|
178
|
+
draft: false
|
|
179
|
+
prerelease: false
|
|
180
|
+
env:
|
|
181
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
182
|
+
|
|
183
|
+
- name: ✨ Release Pipeline Complete
|
|
184
|
+
run: |
|
|
185
|
+
echo "🎉 Release v${{ steps.version.outputs.version }} 생성 완료!"
|
|
186
|
+
echo "🔗 GitHub Release: https://github.com/modu-ai/moai-adk/releases/tag/v${{ steps.version.outputs.version }}"
|
|
187
|
+
echo ""
|
|
188
|
+
echo "📤 PyPI 배포 워크플로우가 자동으로 시작됩니다..."
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# @CODE:LANG-PY-001 | SPEC: SPEC-LANGUAGE-DETECTION-001.md | TEST: tests/test_workflows.py
|
|
2
|
+
# Python Project TAG Validation Workflow
|
|
3
|
+
# Automatically validates TAGs in Python projects with pytest, ruff, and mypy
|
|
4
|
+
|
|
5
|
+
name: TAG Validation (Python)
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches: [main, develop, feature/**]
|
|
10
|
+
pull_request:
|
|
11
|
+
branches: [main, develop]
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
validate:
|
|
19
|
+
name: Validate TAGs - Python ${{ matrix.python-version }}
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
strategy:
|
|
23
|
+
matrix:
|
|
24
|
+
python-version: ['3.11', '3.12', '3.13']
|
|
25
|
+
fail-fast: false
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- name: Checkout repository
|
|
29
|
+
uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 0
|
|
32
|
+
|
|
33
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
34
|
+
uses: actions/setup-python@v6
|
|
35
|
+
with:
|
|
36
|
+
python-version: ${{ matrix.python-version }}
|
|
37
|
+
cache: 'pip'
|
|
38
|
+
|
|
39
|
+
- name: Install uv
|
|
40
|
+
run: pip install uv
|
|
41
|
+
|
|
42
|
+
- name: Cache uv dependencies
|
|
43
|
+
uses: actions/cache@v4
|
|
44
|
+
with:
|
|
45
|
+
path: ~/.cache/uv
|
|
46
|
+
key: uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
|
|
47
|
+
restore-keys: |
|
|
48
|
+
uv-${{ runner.os }}-${{ matrix.python-version }}-
|
|
49
|
+
uv-${{ runner.os }}-
|
|
50
|
+
|
|
51
|
+
- name: Install dependencies with uv
|
|
52
|
+
run: uv sync --all-extras --dev
|
|
53
|
+
|
|
54
|
+
- name: Run TAG validation
|
|
55
|
+
run: |
|
|
56
|
+
uv run pytest tests/ -v \
|
|
57
|
+
--cov=src \
|
|
58
|
+
--cov-report=term-missing \
|
|
59
|
+
--cov-report=html:htmlcov \
|
|
60
|
+
--cov-report=xml:coverage.xml \
|
|
61
|
+
--cov-fail-under=85
|
|
62
|
+
continue-on-error: false
|
|
63
|
+
|
|
64
|
+
- name: Run linting with ruff
|
|
65
|
+
run: uv run ruff check src/ tests/
|
|
66
|
+
continue-on-error: false
|
|
67
|
+
|
|
68
|
+
- name: Run type checking with mypy
|
|
69
|
+
run: uv run mypy src/ --ignore-missing-imports
|
|
70
|
+
continue-on-error: true
|
|
71
|
+
|
|
72
|
+
- name: Upload coverage reports
|
|
73
|
+
if: matrix.python-version == '3.13'
|
|
74
|
+
uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: coverage-report-python
|
|
77
|
+
path: |
|
|
78
|
+
htmlcov/
|
|
79
|
+
coverage.xml
|
|
80
|
+
|
|
81
|
+
- name: Comment PR with coverage
|
|
82
|
+
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
|
|
83
|
+
uses: py-cov-action/python-coverage-comment-action@v3
|
|
84
|
+
with:
|
|
85
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
86
|
+
MINIMUM_GREEN: 85
|
|
87
|
+
MINIMUM_ORANGE: 75
|
|
88
|
+
|
|
89
|
+
- name: Check TAG chain integrity
|
|
90
|
+
run: |
|
|
91
|
+
echo "Validating TAG chain integrity..."
|
|
92
|
+
uv run python -m moai_adk.core.tags.validator --validate-chain
|
|
93
|
+
continue-on-error: true
|
|
94
|
+
|
|
95
|
+
quality-gate:
|
|
96
|
+
name: Quality Gate Summary
|
|
97
|
+
needs: validate
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
if: always()
|
|
100
|
+
|
|
101
|
+
steps:
|
|
102
|
+
- name: Check validation results
|
|
103
|
+
run: |
|
|
104
|
+
if [ "${{ needs.validate.result }}" != "success" ]; then
|
|
105
|
+
echo "❌ TAG validation failed"
|
|
106
|
+
exit 1
|
|
107
|
+
fi
|
|
108
|
+
echo "✅ TAG validation passed"
|
|
109
|
+
|
|
110
|
+
- name: Quality metrics summary
|
|
111
|
+
run: |
|
|
112
|
+
echo "## Quality Metrics Summary" >> $GITHUB_STEP_SUMMARY
|
|
113
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
114
|
+
echo "- ✅ Python tests passed" >> $GITHUB_STEP_SUMMARY
|
|
115
|
+
echo "- ✅ Code coverage ≥ 85%" >> $GITHUB_STEP_SUMMARY
|
|
116
|
+
echo "- ✅ Linting passed (ruff)" >> $GITHUB_STEP_SUMMARY
|
|
117
|
+
echo "- ✅ Type checking passed (mypy)" >> $GITHUB_STEP_SUMMARY
|
|
118
|
+
echo "- ✅ TAG chain validated" >> $GITHUB_STEP_SUMMARY
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
name: Release & Deploy to PyPI
|
|
2
|
+
|
|
3
|
+
# 트리거: 버전 태그가 푸시되었을 때 (release event의 신뢰성 문제 해결)
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "v*.*.*"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
deploy:
|
|
11
|
+
name: 📦 Deploy to PyPI
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: 📥 Checkout code
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: 🐍 Setup Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
|
|
27
|
+
- name: 📦 Install uv
|
|
28
|
+
uses: astral-sh/setup-uv@v2
|
|
29
|
+
with:
|
|
30
|
+
enable-cache: true
|
|
31
|
+
cache-dependency-glob: "pyproject.toml"
|
|
32
|
+
|
|
33
|
+
- name: 🔨 Build package
|
|
34
|
+
run: |
|
|
35
|
+
echo "🏗️ Building package..."
|
|
36
|
+
uv build
|
|
37
|
+
echo "✅ Package built successfully"
|
|
38
|
+
ls -lh dist/
|
|
39
|
+
|
|
40
|
+
- name: 🚀 Publish to PyPI
|
|
41
|
+
env:
|
|
42
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
43
|
+
run: |
|
|
44
|
+
echo "📤 Publishing to PyPI..."
|
|
45
|
+
uv publish --publish-url https://upload.pypi.org/legacy/
|
|
46
|
+
echo "✅ Package published successfully"
|
|
47
|
+
|
|
48
|
+
- name: 🔍 Verify PyPI deployment
|
|
49
|
+
run: |
|
|
50
|
+
echo "🔍 Verifying PyPI deployment..."
|
|
51
|
+
|
|
52
|
+
# Extract version from release tag (e.g., v0.14.0 → 0.14.0)
|
|
53
|
+
VERSION="${{ github.ref_name }}"
|
|
54
|
+
VERSION="${VERSION#v}"
|
|
55
|
+
|
|
56
|
+
# Wait for PyPI CDN propagation (max 50 seconds)
|
|
57
|
+
MAX_RETRIES=10
|
|
58
|
+
RETRY_COUNT=0
|
|
59
|
+
PACKAGE_FOUND=false
|
|
60
|
+
|
|
61
|
+
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
|
|
62
|
+
RETRY_COUNT=$((RETRY_COUNT + 1))
|
|
63
|
+
echo "⏳ Checking PyPI... (attempt $RETRY_COUNT/$MAX_RETRIES)"
|
|
64
|
+
|
|
65
|
+
if pip index versions moai-adk 2>/dev/null | grep -q "$VERSION"; then
|
|
66
|
+
echo "✅ Package available on PyPI: moai-adk==$VERSION"
|
|
67
|
+
PACKAGE_FOUND=true
|
|
68
|
+
break
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then
|
|
72
|
+
sleep 5
|
|
73
|
+
fi
|
|
74
|
+
done
|
|
75
|
+
|
|
76
|
+
if [ "$PACKAGE_FOUND" = "false" ]; then
|
|
77
|
+
echo "❌ Package not found on PyPI after 50 seconds"
|
|
78
|
+
echo "⚠️ Manual verification required: https://pypi.org/project/moai-adk/$VERSION/"
|
|
79
|
+
exit 1
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
# Test installation in temporary environment
|
|
83
|
+
echo ""
|
|
84
|
+
echo "📦 Testing installation..."
|
|
85
|
+
|
|
86
|
+
TEMP_VENV="/tmp/moai-adk-verify-$VERSION"
|
|
87
|
+
python -m venv "$TEMP_VENV"
|
|
88
|
+
source "$TEMP_VENV/bin/activate"
|
|
89
|
+
|
|
90
|
+
# Install package without cache
|
|
91
|
+
pip install moai-adk==$VERSION --no-cache-dir 2>&1 | tail -5
|
|
92
|
+
|
|
93
|
+
# Verify installation
|
|
94
|
+
if moai-adk --version 2>/dev/null | grep -q "$VERSION"; then
|
|
95
|
+
echo "✅ Installation verification passed"
|
|
96
|
+
echo " Installed version: $(moai-adk --version)"
|
|
97
|
+
else
|
|
98
|
+
echo "❌ Installation verification failed"
|
|
99
|
+
INSTALLED=$(moai-adk --version 2>/dev/null || echo "unknown")
|
|
100
|
+
echo " Expected: $VERSION"
|
|
101
|
+
echo " Got: $INSTALLED"
|
|
102
|
+
deactivate
|
|
103
|
+
rm -rf "$TEMP_VENV"
|
|
104
|
+
exit 1
|
|
105
|
+
fi
|
|
106
|
+
|
|
107
|
+
# Cleanup
|
|
108
|
+
deactivate
|
|
109
|
+
rm -rf "$TEMP_VENV"
|
|
110
|
+
echo "✅ Cleanup complete"
|
|
111
|
+
|
|
112
|
+
- name: ✨ Deployment complete
|
|
113
|
+
run: |
|
|
114
|
+
echo "🎉 Release deployment complete!"
|
|
115
|
+
echo ""
|
|
116
|
+
echo "📦 Package: moai-adk"
|
|
117
|
+
echo "🏷️ Release: ${{ github.ref }}"
|
|
118
|
+
echo "🔗 PyPI: https://pypi.org/project/moai-adk/${{ github.ref_name }}/"
|