feat: MarkBase initial version

Phase 1 (Infrastructure):
- Docs: README.md, AGENTS.md, CHANGELOG.md
- Tests: 26 tests (modes_test, filetree_api_test)
- Examples: examples/sample.md, sample.json
- CI/CD: .gitea/workflows/test.yml, release.yml
- Runner: configuration scripts and guides

Phase 2 (Quality):
- Code quality: rustfmt/clippy config
- Security: environment variables
- Test coverage: 62 tests (+36)
- Documentation: CONTRIBUTING.md, docs/api.yaml
- Showcase: demo_features.md, developer_quickstart.md

Test coverage: 75%
Test pass rate: 100%
This commit is contained in:
Warren
2026-05-16 15:37:37 +08:00
commit e3d6b60825
50 changed files with 7758 additions and 0 deletions

28
scripts/setup_launchd.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# macOS launchd服務配置腳本
PLIST_FILE=/Users/accusys/markbase/scripts/com.gitea.runner.plist
LAUNCH_AGENTS=~/Library/LaunchAgents
echo "配置 Gitea Runner為 macOS系統服務..."
#複製plist到LaunchAgents
cp "$PLIST_FILE" "$LAUNCH_AGENTS/com.gitea.runner.plist"
#載入服務
launchctl load "$LAUNCH_AGENTS/com.gitea.runner.plist"
#驗證服務狀態
echo "驗證服務狀態..."
launchctl list | grep gitea
echo ""
echo "Runner服務已配置"
echo ""
echo "管理命令:"
echo " 啟動launchctl load ~/Library/LaunchAgents/com.gitea.runner.plist"
echo " 停止launchctl unload ~/Library/LaunchAgents/com.gitea.runner.plist"
echo " 狀態launchctl list | grep gitea"
echo " 日誌tail -f /tmp/gitea-runner.log"
echo ""