No project description provided
Project description
SourceSage
ïœTransforming code for AIïœ
[ð Website] ⢠[ð± GitHub] [ðŠ Twitter] ⢠[ð Official Blog]
SourceSageã¯ããããžã§ã¯ãã®ãœãŒã¹ã³ãŒããšãã¡ã€ã«æ§æãåäžã®ããŒã¯ããŠã³ãã¡ã€ã«ã«çµ±åããAIã«ããèªåä¿®æ£ãããã¥ã¡ã³ãåãå®çŸããPythonã¹ã¯ãªããã§ããéçºã®ã©ã€ããµã€ã¯ã«å šäœãéããŠãã³ãŒãã®å質åäžãšçç£æ§ã®åäžãæ¯æŽããŸãã
[!IMPORTANT] ãã®ãªããžããªã®ãªãªãŒã¹ããŒããREADMEãã³ãããã¡ãã»ãŒãžã®9å²è¿ãã¯claude.aiãChatGPT4ã掻çšããAIRA, SourceSage, Gaiah, HarmonAI_IIã§çæããŠããŸãã
æŽæ°å 容
- ã2024/06/10ã SourceSage 5.0.0
- AIRA ãš Harmon.AI ã®èšå®ãè¿œå ããã³ãŒãçææ©èœãè¿œå (
DocuMind
ãCommitCraft
)
- AIRA ãš Harmon.AI ã®èšå®ãè¿œå ããã³ãŒãçææ©èœãè¿œå (
- ã2024/05/12ã SourceSage 4.2.0
- ã¹ããŒãžã³ã°æ å ±ã®ãã³ãã¬ãŒãã«çµµæåãšGAIAHã«å¯Ÿå¿
- ã2024/04/30ã SourceSage 4.1.2
- GitHub Actionsã«ããPyPIãžã®èªåãããªãã·ã¥èšå®ãè¿œå ãããªãªãŒã¹ããã»ã¹ãèªåå
- ã2024/04/07ã SourceSage 4.1.0
- CLIåŒæ°ã®è¿œå ãšã³ã¢ã¢ãžã¥ãŒã«ã®ä¿®æ£ããããžã§ã¯ãã®æ§æãšãã¡ã€ã«ã®å€æŽã«ããã·ã³ãã«å
- ã»ããã¢ããæé ãå®è¡æ¹æ³ãã¯ã€ãã¯ã¹ã¿ãŒãã»ã¯ã·ã§ã³ããã¹ãããã¥ã¡ã³ãã®æŽæ°
- ã2024/04/05ã SourceSage 4.0.3
- README.mdã®ã»ããã¢ããæé ãšå®è¡æé ãç°¡çŽ å
- ãªããžããªã®ãªãŒããŒãšååãã³ãã³ãã©ã€ã³åŒæ°ã§æå®å¯èœã«
- ãã¹ãå®è¡æ¹æ³ã®ããã¥ã¡ã³ããæŽæ°
- ã2024/03/31ã SourceSage 3.0.0
- äžèš3ã€ã®æ©èœã®æ§æãææ¡
- IssueWiseæ©èœãè¿œå ããGitHubã®ãªãŒãã³IssueãååŸããŠAIã«ããèªåä¿®æ£ããµããŒã
- CommitCraftæ©èœãè¿œå ããå€æŽå·®åã远跡ããŠAIãé©åãªã³ãããã¡ãã»ãŒãžãçæ
- DocuMindæ©èœãè¿œå ãããããžã§ã¯ãã®æŠèŠãšGitã®å€æŽå±¥æŽãçµã¿åãããŠããã¥ã¡ã³ãå
- äžèš3ã€ã®æ©èœã®æ§æãææ¡
- ã2024/03/30ã SourceSage 2.0.0
- ChangelogGenerator classãå°å ¥ããã³ãŒãã®å¯èªæ§ãšä¿å®æ§ãåäž
- èšèªããšã®ã·ã³ã¿ãã¯ã¹ãã€ã©ã€ãæ©èœãè¿œå
- .SourceSageignoreãã¡ã€ã«ãå°å ¥ããäžèŠãªãã¡ã€ã«ããã©ã«ããèªåçã«é€å€
- ã2024/03/29ã åæãªãªãŒã¹
äž»ãªæ©èœ
IssueWiseïŒéçºåã®èª²é¡è§£æ±ºïŒ
- GitHubã®ãªãŒãã³IssueãèªåååŸããAIã«ãã課é¡ã®èªåä¿®æ£ããµããŒã
- 課é¡ãå¹ççã«ç¹å®ããè¿ éã«è§£æ±ºçãèŠã€ããããŸã
CommitCraftïŒéçºäžã®ã³ããã管çïŒ
- å€æŽå·®åã远跡ããAIãé©åãªã³ãããã¡ãã»ãŒãžãèªåçæ
- ã³ãããã®å 容ãæ£ç¢ºã«èšè¿°ã§ããå€æŽå±¥æŽãæ確ã«ç®¡çã§ããŸã
DocuMindïŒãªãªãŒã¹åŸã®ããã¥ã¡ã³ãåïŒ
- ãããžã§ã¯ãã®æŠèŠãšGitã®å€æŽå±¥æŽãçµã¿åãããŠããã¥ã¡ã³ãå
- ãããžã§ã¯ãã®å šäœåãææ¡ãããããã¡ã³ããã³ã¹æ§ãåäžããŸã
䜿çšæ¹æ³
ã»ããã¢ãã
SourceSageã䜿çšããã«ã¯ããŸãPythonã®ããã±ãŒãžãããŒãžã£ãŒã§ããpipã䜿ã£ãŠã€ã³ã¹ããŒã«ããŸãã以äžã®ã³ãã³ããã¿ãŒããã«ãŸãã¯ã³ãã³ãããã³ããã§å®è¡ããŠãã ããïŒ
pip install sourcesage
ããã«ãããSourceSageãã·ã¹ãã ã«ã€ã³ã¹ããŒã«ãããã³ãã³ãã©ã€ã³ããå®è¡ã§ããããã«ãªããŸãã
ã¯ã€ãã¯ã¹ã¿ãŒã
SourceSageããããžã§ã¯ãã§äœ¿çšããã«ã¯ã以äžã®æé ã«åŸã£ãŠãã ããïŒ
-
ã¿ãŒããã«ãŸãã¯ã³ãã³ãããã³ãããéããŸãã
-
cd
ã³ãã³ãã䜿ã£ãŠã解æ察象ã®ãããžã§ã¯ãã®ã«ãŒããã£ã¬ã¯ããªã«ç§»åããŸããäŸãã°ããããžã§ã¯ãã~/my_project
ãã£ã¬ã¯ããªã«ããå Žåã¯ã以äžã®ã³ãã³ããå®è¡ããŸãïŒcd ~/my_project
Note:
cd
ã³ãã³ã㯠"change directory" ã®ç¥ã§ãçŸåšã®ãã£ã¬ã¯ããªãæå®ãããã£ã¬ã¯ããªã«å€æŽããããã«äœ¿çšããŸãã -
次ã«ã以äžã®ã³ãã³ããå®è¡ããŠSourceSageãèµ·åããŸãïŒ
sourcesage
-
SourceSageãå®è¡ããããšã以äžã®ãã¡ã€ã«ã
SourceSageAssets
ãã£ã¬ã¯ããªã«çæãããŸãïŒDocuMind.md
ïŒAIããããžã§ã¯ãã®æ§é ãšå 容ãç解ãããã圢åŒã®ããŒã¯ããŠã³ãã¡ã€ã«ã§ããChangelog
ïŒGitã®å€æŽå±¥æŽãä¿åãããã£ã¬ã¯ããªã§ããISSUES_RESOLVE
: Issuesãšãããžã§ã¯ãå šäœãããŒãžããããã¡ã€ã«ãä¿åãããã£ã¬ã¯ããªã§ãããããã®ãã¡ã€ã«ã¯ãAIãIssueã解決ããããã®éèŠãªæ å ±æºãšãªããŸããCOMMIT_CRAFT
: éçºäžã®ã¹ããŒãžãããã³ãŒãã®ãã¡ã€ã«ãä¿åãããã£ã¬ã¯ããªã§ãããããã®ãã¡ã€ã«ã¯ãAIãé©åãªã³ãããã¡ãã»ãŒãžãçæããããã«äœ¿çšãããŸããopen_issues_filtered.json
ïŒGitHubãããã§ãããããªãŒãã³ãªIssueã®JSONãã¡ã€ã«ã§ããSTAGED_DIFF.md
ïŒã¹ããŒãžãããå€æŽã®å·®åæ å ±ãå«ãããŒã¯ããŠã³ãã¡ã€ã«ã§ãã
ãããã®ãã¡ã€ã«ã䜿ã£ãŠãAIã«ãããããžã§ã¯ãã®è§£æãèªåä¿®æ£ãããã¥ã¡ã³ãåãªã©ãè¡ãããšãã§ããŸãã
sourcesage
ãªããžããªæ å ±ã®åéãšå·®åæ å ±ã®ã¬ããŒãäœæ
sourcesage --mode Sage GenerateReport
ã³ãããã¡ãã»ãŒãžã®çæ
sourcesage --mode Sage GenerateReport CommitCraft --model-name "gemini/gemini-1.5-pro-latest"
ãªãªãŒã¹ããŒãã®çæ
sourcesage --mode DocuMind --docuMind-model "gemini/gemini-1.5-pro-latest" --docuMind-db ".SourceSageAssets\DOCUMIND\Repository_summary.md" --docuMind-release-report ".SourceSageAssets\RELEASE_REPORT\Report_v5.0.0.md" --docuMind-changelog ".SourceSageAssets\Changelog\CHANGELOG_release_5.0.0.md" --docuMind-output ".SourceSageAssets/DOCUMIND/RELEASE_NOTES_v5.0.0.md" --docuMind-prompt-output ".SourceSageAssets/DOCUMIND/_PROMPT_v5.0.0.md" --repo-name "SourceSage" --repo-version "v0.5.0"
ãªããžããªã®IssueãååŸããæ¹æ³
ããã©ã«ãã§ã¯ãSourceSageã¯çŸåšã®ãã£ã¬ã¯ããªããããžã§ã¯ãã®ã«ãŒããšããŠè§£æããŸãããã ããGitHubäžã®ãªããžããªã®IssueãååŸãããå Žåã¯ã以äžã®ããã«ãªããžããªã®ãªãŒããŒåãšãªããžããªåãã³ãã³ãã©ã€ã³åŒæ°ã§æå®ããŸãïŒ
sourcesage --owner Sunwood-ai-labs --repository SourceSage
äžèšã®äŸã§ã¯ãSunwood-ai-labs
ããªããžããªã®ãªãŒããŒåãSourceSage
ããªããžããªåã§ãããããã®åŒæ°ãæå®ããããšã§ãSourceSageã¯GitHub APIã䜿ã£ãŠãªããžããªã®ãªãŒãã³ãªIssueãååŸããopen_issues_filtered.json
ãã¡ã€ã«ã«ä¿åããŸãã
[!Note] GitHub APIã䜿çšããã«ã¯ãã€ã³ã¿ãŒãããæ¥ç¶ãå¿ èŠã§ãããŸãããªããžããªããã©ã€ããŒãã®å Žåã¯ãé©åãªã¢ã¯ã»ã¹ããŒã¯ã³ãèšå®ããå¿ èŠããããŸãã
以äžããSourceSageã®åºæ¬çãªäœ¿çšæ¹æ³ã§ãããã²èªåã®ãããžã§ã¯ãã§SourceSageã掻çšããŠãéçºå¹çã®åäžãäœéšããŠã¿ãŠãã ããïŒ
é€å€ãã¡ã€ã«ã®æå®
äœæ¥ãã£ã¬ã¯ããªã«.SourceSageignore
ãã¡ã€ã«ãäœæããããšã§ãä»»æã®ãã¡ã€ã«ããã£ã¬ã¯ããªãåŠçããé€å€ã§ããŸãããã®ãã¡ã€ã«ã«ã¯ãé€å€ããããã¡ã€ã«ããã£ã¬ã¯ããªã®ãã¿ãŒã³ã1è¡ãã€èšè¿°ããŸããäŸãã°ã以äžã®ããã«æå®ããŸãïŒ
# .SourceSageignoreã®äŸ
node_modules/
*.log
*.tmp
äžèšã®äŸã§ã¯ãnode_modules
ãã£ã¬ã¯ããªãšãæ¡åŒµåã.log
ãŸãã¯.tmp
ã®ãã¡ã€ã«ãé€å€ãããŸãã
.SourceSageignore
ãã¡ã€ã«ã䜿çšããå Žåã¯ã以äžã®ããã«ã³ãã³ãã©ã€ã³åŒæ°ã§æå®ããŸãïŒ
sourcesage --owner Sunwood-ai-labs --repository SourceSage --ignore-file .SourceSageignore
ãã®æ©èœã䜿çšããããšã§ãäžèŠãªãã¡ã€ã«ããã£ã¬ã¯ããªãåŠçããé€å€ããããå¹ççã«SourceSageãå®è¡ã§ããŸãã
1. IssueWiseïŒéçºåã®èª²é¡è§£æ±º
IssueWiseã¯ãGitHubã®ãªãŒãã³ãªIssue(課é¡)ãèªåçã«ååŸããSourceSageãçæãããããžã§ã¯ãã®æŠèŠãšçµã¿åãããããšã§ãAIã«ãã課é¡ã®èªåä¿®æ£ãå¯èœã«ããããŒã«ã§ããããã«ãããéçºè ã¯ãããžã§ã¯ãã®èª²é¡ãå¹ççã«ç¹å®ãã解決çãè¿ éã«èŠã€ããããšãã§ããŸãã
SourceSageAssets/ISSUE_WISE/ISSUES_RESOLVE
ã«çæãããããŒã¯ããŠã³ãã¡ã€ã«ã䜿çšããŸãã
äŸïŒdocs/SAMPLE/SAMPLE_ISSUE_11.md
ãã®ããŒã¯ããŠã³ãã¡ã€ã«ããã®ãŸãŸAIã«å ¥åããããšã§ãAIã課é¡ã解決ããããã®ã³ãŒããçæããŸããAIã¯ãIssueã®å 容ãšãããžã§ã¯ãã®æŠèŠãçµã¿åãããŠåæããé©åãªä¿®æ£ãææ¡ããŸãã
ãã®ããŒã¯ããŠã³ãã¡ã€ã«ã¯ãäžèšã®ãã¡ã€ã«ã®ãã©ãŒãããã§åºåãããŸãã
docs/ISSUES_RESOLVE/ISSUES_RESOLVE_TEMPLATE.md
IssueWiseã䜿çšããããšã§ãéçºè ã¯æäœæ¥ã§Issueã確èªããè² æ ã軜æžããAIã«ããèªåä¿®æ£ã®æ©æµãåããããšãã§ããŸãã
2. CommitCraftïŒéçºäžã®ã³ããã管ç
CommitCraftã¯ãéçºäžã®ã¹ããŒãžãããå€æŽã远跡ããAIã掻çšããŠé©åãªã³ãããã¡ãã»ãŒãžãèªåçæããããŒã«ã§ããããã«ãããéçºè ã¯ã³ãããã®å 容ãæ£ç¢ºã«èšè¿°ããããšãã§ãããããžã§ã¯ãã®å€æŽå±¥æŽãããæ確ã«ç®¡çã§ããŸãã
SourceSageAssets/COMMIT_CRAFT/STAGED_DIFF.md
ã«çæãããããŒã¯ããŠã³ãã¡ã€ã«ã䜿çšããŸãã
äŸïŒdocs/SAMPLE/SAMPLE_STAGE_INFO_AND_PROMT.md
ãã®ããŒã¯ããŠã³ãã¡ã€ã«ããã®ãŸãŸAIã«å ¥åããããšã§ãAIãã³ãããã¡ãã»ãŒãžãçæããŸããAIã¯ãã¹ããŒãžãããå€æŽã®å·®åãåæãããã®å 容ãèŠçŽããã³ãããã¡ãã»ãŒãžãææ¡ããŸãã
çµµæåã掻çšããèŠèŠçã«åãããããã³ãããã¡ãã»ãŒãžã®äŸã¯ãã¡ãã§ãã
äŸïŒdocs/SAMPLE/SAMPLE_STAGE_INFO_AND_PROMT_EMOJI.md
ãã®ãã¡ã€ã«ã§ã¯ãã³ãããã¡ãã»ãŒãžã®ãã©ãŒãããã«çµµæåãåãå ¥ããå€æŽå 容ãããçŽæçã«è¡šçŸããŠããŸãã
ãŸããGaiahçšã®ã³ãããã¡ãã»ãŒãžçæãæ¯æŽãããã³ãã¬ãŒãã®äŸã¯ãã¡ãã§ãã
äŸïŒdocs/SAMPLE/SAMPLE_STAGE_INFO_AND_PROMT_GAIAH.md
ãã®ãã³ãã¬ãŒãã§ã¯ãå¹æçã§æå³ã®ããã³ãããã¡ãã»ãŒãžãäœæããããã®ãã¹ããã©ã¯ãã£ã¹ã«åŸã£ãã¬ã€ãã©ã€ã³ãæäŸããŠããŸããäž»èŠãªå€æŽãšãã®ç®çã«çŠç¹ãåœãŠãã³ãããã§è¡ãããå€æŽãæ確ãã€ç°¡æœã«èª¬æããããã«ä¿ããŸãã
IssueãšããŒãžããããã¡ã€ã«ã®äŸã¯ãã¡ãã§ãã
äŸïŒdocs/SAMPLE/SAMPLE_STAGE_INFO_AND_ISSUES_AND_PROMT.md
ãã®ãã¡ã€ã«ã«ã¯ãã¹ããŒãžãããå€æŽã®å·®åãšãªãŒãã³ãªIssueã®æ å ±ãå«ãŸããŠããŸããAIã¯ãããã®æ å ±ãçµã¿åãããŠåæããããå æ¬çãªã³ãããã¡ãã»ãŒãžãçæããŸãã
CommitCraftã䜿çšããããšã§ãéçºè ã¯ã³ãããã¡ãã»ãŒãžãèããè² æ ã軜æžããäžè²«æ§ã®ããé©åãªã³ãããã¡ãã»ãŒãžãèªåçã«çæã§ããŸããçµµæåã®æŽ»çšãGaiahã®ãã³ãã¬ãŒããå©çšããããšã§ãããããããããå¹æçãªã³ãããã¡ãã»ãŒãžã®äœæãå¯èœã«ãªããŸãã
3. DocuMindïŒãªãªãŒã¹åŸã®ããã¥ã¡ã³ãå
DocuMindã¯ããªãªãŒã¹åŸã®ãããžã§ã¯ãã®çµ±åãšããã¥ã¡ã³ãåãæ¯æŽããããŒã«ã§ããSourceSageãçæãããããžã§ã¯ãã®æŠèŠãšãèªåçæãããGitã®å€æŽå±¥æŽãçµã¿åãããããšã§ããããžã§ã¯ãã®å šäœåãæ確ã«ææ¡ã§ããŸããããã«ãããéçºè ã¯ãããžã§ã¯ãã®ããã¥ã¡ã³ããå¹ççã«äœæããã¡ã³ããã³ã¹æ§ãåäžãããããšãã§ããŸãã
SourceSageAssets/DocuMind.md
ã«çæãããããŒã¯ããŠã³ãã¡ã€ã«ã䜿çšããŸãã
äŸïŒdocs/SAMPLE/SAMPLE_DocuMind.md
ãŸããSourceSageAssets/Changelog
ã«çæãããã³ãããã¡ãã»ãŒãžã®ããŒã¯ããŠã³ãã¡ã€ã«ã䜿çšããŸãã
äŸïŒdocs/SAMPLE/SAMPLE_CHANGELOG_release_4.1.0.md
ãã®2ã€ã®ããŒã¯ããŠã³ãã¡ã€ã«ããã®ãŸãŸAIã«å ¥åããããšã§ãAIããããžã§ã¯ãã®æ§é ãšå€æŽå 容ãç解ãããªãªãŒã¹ããŒããããã¥ã¡ã³ããçæããããšãã§ããŸããAIã¯ããããžã§ã¯ãã®æŠèŠãšGitã®å€æŽå±¥æŽãåæãããããžã§ã¯ãã®äž»èŠãªæ©èœãå€æŽç¹ãèŠçŽããŸãã
DocuMindã䜿çšããããšã§ãéçºè ã¯ããã¥ã¡ã³ãäœæã®è² æ ã軜æžããåžžã«ææ°ã®ç¶æ ãåæ ããããã¥ã¡ã³ããèªåçã«çæã§ããŸãã
éçºè åã
åäœãã¹ã
ãã®ããã¥ã¡ã³ãã§ã¯ããã¹ããå®è¡ããããã®ã³ãã³ãã©ã€ã³ã«ã€ããŠèª¬æããŸãã
ãã¹ãã®å®è¡
ãŠããããã¹ããå®è¡ããã«ã¯ã以äžã®ã³ãã³ãã䜿çšããŸãã
pytest tests/test_sourcesage.py
ãã®ã³ãã³ãã«ãããtests/test_sourcesage.py
ãã¡ã€ã«ã«å®çŸ©ããããã¹ãã±ãŒã¹ãå®è¡ãããŸãã
ããã±ãŒãžãªãªãŒã¹ã¬ã€ã
ãã®ããã¥ã¡ã³ãã§ã¯ãGitHub Actions CI/CDã䜿çšããŠPythonããã±ãŒãžãPyPIã«èªåçã«å ¬éããæ¹æ³ã«ã€ããŠèª¬æããŸãã
docs/package_release/README.md
åææ¡ä»¶
- PyPIã®ã¢ã«ãŠã³ããäœææžã¿ã§ããããš
- ãããžã§ã¯ãã®GitHubãªããžããªãååšããããš
è²¢ç®
SourceSageã®æ¹åã«ãååãã ããïŒãã°ã®å ±åãæ©èœè¿œå ã®ææ¡ãããå Žåã¯ãGitHubãªããžããªã§Issueãéãããã«ãªã¯ãšã¹ããéä¿¡ããŠãã ããã
ã©ã€ã»ã³ã¹
ãã®ãããžã§ã¯ãã¯MITã©ã€ã»ã³ã¹ã®äžã§å ¬éãããŠããŸãã
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sourcesage-5.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7142d37bdd3d4ca15dea5f0b03ce3cbe9655276eecd99bfadbe62f9dc34907fb |
|
MD5 | 48836abbe595ce8220e55cd512d6f4c7 |
|
BLAKE2b-256 | 64a73b5305587158dc116efeb7d71c3937c13b025e41126d06a9b67985b3e1e6 |