Skip to main content

下一代版本控制系统 - AI原生、实时协作、多模态版本控制

Project description

WiGit - 下一代版本控制系统

基于Git协议的AI原生、实时协作、多模态版本控制系统

Python License Status


📖 简介

WiGit 是一个革命性的版本控制系统,在完整实现 Git 核心协议的基础上,提供了五大增强功能层:

  • 🔄 实时协作 - 像 Figma 一样的实时编辑体验
  • 🤖 AI 原生集成 - 语义提交、智能合并、代码解释
  • 🎨 多模态版本控制 - 设计稿、API契约、数据库Schema版本化
  • 💎 经济激励层 - 贡献度NFT、代码悬赏、声誉系统
  • 🧠 认知增强 - 注意力热图、代码考古、复杂度分析

🚀 快速开始

安装

# 克隆仓库
git clone https://github.com/wigit/wigit.git
cd wigit

# 安装依赖
pip install -r requirements.txt

# 开发模式安装
pip install -e .

基础使用

# 登录账户
wigit login

# 初始化仓库
wigit init

# 添加文件
wigit add .

# 使用AI生成提交信息
wigit commit --semantic

# 查看状态
wigit status

# 查看历史
wigit log --graph

增强功能

# AI智能合并
wigit smart-merge feature-branch

# 代码考古
wigit archeology src/main.py 42

# 创建悬赏
wigit bounty create "修复登录Bug" "登录页面无法跳转" -r money:100:CNY

# 查看排行榜
wigit leaderboard

# AI代码审查
wigit review src/main.py

# 版本化设计稿
wigit design version design.figma

# 版本化API契约
wigit api version openapi.json

# 代码复杂度分析
wigit complexity src/main.py

# 查看代码热图
wigit heatmap src/main.py

📁 项目结构

wigit/
├── __init__.py          # 包入口
├── WiGit.py             # 核心业务逻辑(完整Git实现)
├── cli.py               # 命令行接口
├── Plus.py              # 五大增强层
├── setup.py             # 安装脚本
├── pyproject.toml       # 项目配置
└── README.md            # 说明文档

🔧 命令参考

基础命令

命令 说明
wigit init 初始化仓库
wigit add <files> 添加文件到暂存区
wigit commit -m <msg> 提交更改
wigit commit --semantic AI生成提交信息
wigit status 查看状态
wigit log 查看历史
wigit diff 查看差异
wigit branch 分支管理
wigit checkout <branch> 切换分支
wigit merge <branch> 合并分支
wigit push 推送到远程
wigit pull 从远程拉取

AI增强命令

命令 说明
wigit semantic AI生成语义化提交信息
wigit smart-merge <branch> AI智能合并
wigit explain <file> AI解释代码
wigit review <file> AI代码审查
wigit knowledge <query> 知识图谱查询

经济激励命令

命令 说明
wigit bounty create 创建悬赏
wigit bounty list 列出悬赏
wigit bounty claim <id> 认领悬赏
wigit nft mint 铸造贡献NFT
wigit nft list 列出NFT
wigit leaderboard 贡献排行榜
wigit reputation 查看声誉

多模态命令

命令 说明
wigit design version <file> 版本化设计稿
wigit design diff <v1> <v2> 比较设计稿版本
wigit api version <file> 版本化API契约
wigit schema version <file> 版本化数据库Schema

认知增强命令

命令 说明
wigit heatmap <file> 代码注意力热图
wigit complexity <file> 复杂度分析
wigit archeology <file> <line> 代码考古
wigit ghost add 添加代码幽灵注释
wigit ghost list 列出幽灵注释

🤝 贡献指南

欢迎贡献代码!请遵循以下流程:

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交更改 (git commit -m 'Add some AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 开启 Pull Request

📝 许可证

╔═══════════════════════════════════════════════════════════════╗
║                                                               ║
║   WEIZI ® Qumo ™ ©'23 All rights reserved.                   ║
║                                                               ║
║   This software is provided for viewing purposes only.       ║
║                                                               ║
║   You may not:                                               ║
║   • Copy this software                                       ║
║   • Modify this software                                     ║
║   • Distribute this software                                 ║
║   • Sell this software                                       ║
║   • Use this code in any form without explicit written       ║
║     permission from the author                               ║
║                                                               ║
║   For licensing inquiries, contact: licensing@wigit.com      ║
║                                                               ║
╚═══════════════════════════════════════════════════════════════╝

📞 联系方式

🙏 致谢

  • Git 社区 - 提供版本控制协议基础
  • DeepSeek - 提供AI API支持
  • 所有贡献者

Built with ❤️ by WEIZI ® Qumo ™
```

同时建议创建一个 LICENSE 文件:

# LICENSE

WEIZI ® Qumo ™ ©'23 All rights reserved.

This software is provided for viewing purposes only.

You may not:
- Copy this software
- Modify this software
- Distribute this software
- Sell this software
- Use this code in any form without explicit written permission from the author

For licensing inquiries, contact: licensing@wigit.com

---

This software is protected by copyright law and international treaties. 
Unauthorized reproduction or distribution of this program, or any portion 
of it, may result in severe civil and criminal penalties, and will be 
prosecuted to the maximum extent possible under law.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wigit-1.0.0.tar.gz (44.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wigit-1.0.0-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file wigit-1.0.0.tar.gz.

File metadata

  • Download URL: wigit-1.0.0.tar.gz
  • Upload date:
  • Size: 44.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for wigit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f629e0201e36c698fb3da00f0f7dd5a629a3e39e892fcfc4619fa866be472675
MD5 e1bb0e6e9cbfc1c389f8fd15f95979c9
BLAKE2b-256 c57ee2c9c4e83f0e7d7a367987331d2c98210110b51c7e5a7aa0a4bf299e9d8b

See more details on using hashes here.

File details

Details for the file wigit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wigit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for wigit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bfeec0eeaf1d7e057773a8c25446fc3236b9c62ca9a9469ff4eb255e58bdc03
MD5 8463eaf8fd1453e5329efc00c5510af4
BLAKE2b-256 b2f0a81de12fc699e9bf83cc8470bb126b88f519c9bedca1e9d6dbbb081d5350

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page