open-index/open-npm huggingface dataset:
npm package: @git-ai/cli
Description: 一个基于 AI 的 Git 提交消息生成器 CLI 工具，可自动分析代码变更并生成符合规范的提交信息
Author: Baran
Latest version: 1.0.6

# @git-ai/cli

[![npm version](https://img.shields.io/npm/v/@git-ai/cli.svg?logo=npm)](https://www.npmjs.com/package/@git-ai/cli)
[![npm downloads](https://img.shields.io/npm/dm/@git-ai/cli.svg)](https://www.npmjs.com/package/@git-ai/cli)
[![Build Status](https://img.shields.io/github/actions/workflow/status/code-ba/git-ai/publish.yml?branch=main&logo=github)](https://github.com/code-ba/git-ai/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

基于 AI 的 Git 提交消息生成器，自动分析代码变更并生成规范的 commit message。

## ✨ 特性

- 🤖 **AI 自动生成提交消息**
- 🔄 **完整 Git 工作流** (add/commit/fetch/merge/push)
- 🛡️ **冲突检测** (Git 冲突 + 代码冲突标记)
- 🔍 **AI 诊断** (commit 失败时自动分析)
- ⚙️ **灵活配置** (支持多 API/模型/密钥)
- 🎯 **符合规范** (feat/fix/docs 等格式)

## 📦 安装

```bash
npm install -g @git-ai/cli
```

## 🚀 快速开始

### 1. 配置 API

```bash
git ai set-baseURL https://api.siliconflow.cn/v1
git ai set-key your-api-key
git ai set-model Qwen/Qwen2.5-Coder-7B-Instruct
```

### 2. 生成提交

```bash
git ai
```

工具会自动执行：`git add` → AI 生成消息 → `git commit` → `git fetch` → `git merge` → `git push`

## 📖 常用命令

| 命令                         | 说明              |
| ---------------------------- | ----------------- |
| `git ai`                     | 生成并提交        |
| `git ai -e, --allowEmpty`    | 允许空提交        |
| `git ai -n, --noVerify`      | 跳过 Git hooks    |
| `git ai -s, --skip`          | 跳过 git add      |
| `git ai set-baseURL <url>`   | 设置 API 地址     |
| `git ai set-key <key>`       | 设置 API 密钥     |
| `git ai set-model <model>`   | 设置模型          |
| `git ai set-max-token <num>` | 设置最大 token 数 |

## ⚙️ 配置说明

### 多 API/模型支持

```bash
# 多个地址（随机选择）
git ai set-baseURL https://api1.com/v1,https://api2.com/v1

# 多个密钥（随机选择）
git ai set-key key1,key2,key3

# 多个模型（随机选择）
git ai set-model gpt-4,claude-3,gemini-pro
```

## 🔧 工作流程

```
检查环境 → git add → AI 生成消息 → git commit → git fetch → git merge → git push
```

## 📝 提交消息格式

```
<type>(<username>): <description>

[详细说明]
```

**类型**: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`

**示例**:

```sh
$ git ai
git-ai verb @git-ai/cli@1.0.0
git-ai verb 按 Ctrl+C 退出...
git-ai success AI 生成的内容：
docs(John): 更新文档和代码格式规范

- 添加了 select-model 命令的环境变量配置说明
- 统一了代码中的引号使用为双引号
- 修复了 package.json 中缺少的 access 字段
- 规范化了代码缩进和格式
git-ai info 本次模型消耗统计：总数 17050 tokens、输入 16977 tokens、输出 73 tokens
git-ai success git commit 提交成功...
git-ai info 获取 git 远程仓库地址
git-ai success 获取 git 远程仓库地址成功
git-ai info 获取远程仓库最新状态，执行 git fetch...
git-ai success 远程分支 origin 的最新更改状态获取成功
git-ai info 正在检测是否需要拉取...
git-ai success 本地代码是最新，无需合并
git-ai info 正在推送本地分支与远程分支的差异...
git-ai success 本地分支与远程分支的差异已推送。
git-ai verb 日志地址: C:\Users\用户名\.config\git-ai\cli\logs\2025-11\log-2025-11-22_10-56-59.txt
git-ai verb 本次执行指令耗时: 14.481 秒，程序退出...
```

## 📋 系统要求

- Node.js >= 12.20.0
- Git >= 2.0.0

## 📄 许可证

MIT License
npm package: @git-ai/husky-commit
Description: A Husky commit message validator that enforces conventional commit format
Author: Baran
Latest version: 1.0.0

# @git-ai/husky-commit

一个用于强制执行约定式提交格式的 Husky 提交消息验证器。

## 功能特性

- ✅ 验证 Git 提交消息是否符合约定式提交格式
- ✅ 支持多种提交类型：feat、fix、docs、style、refactor、perf、test、build、ci、chore、revert
- ✅ 允许中文和英文用户名
- ✅ 自动跳过合并提交（Merge branch 和 Merge remote-tracking）
- ✅ 简单易用，与 Husky 完美集成

## 安装

```bash
npm install --save-dev @git-ai/husky-commit
```

## 使用方法

### 1. 配置提交钩子

在 `.husky/commit-msg` 文件中添加以下内容：

```bash
npx husky-commit "$1"
```

## 提交消息格式

提交消息必须遵循以下格式：

```
<type>(<scope>): <description>
```

### 支持的提交类型

- **feat**: 新功能
- **fix**: 修复 bug
- **docs**: 文档更新
- **style**: 代码格式调整（不影响代码逻辑）
- **refactor**: 代码重构
- **perf**: 性能优化
- **test**: 测试相关
- **build**: 构建系统或外部依赖变更
- **ci**: CI 配置变更
- **chore**: 其他杂项
- **revert**: 回滚提交

### 示例

✅ 有效的提交消息：

```
feat(user): 添加用户登录功能
fix(auth): 修复认证逻辑错误
docs(readme): 更新安装说明
refactor(api): 重构 API 接口
chore: 更新依赖包
```

❌ 无效的提交消息：

```
修复bug
update
随便写写
```

## 配置选项

目前该工具使用默认配置，支持以下提交类型：

- `feat` - 新功能
- `fix` - 修复 bug
- `docs` - 文档更新
- `style` - 代码格式调整
- `refactor` - 代码重构
- `perf` - 性能优化
- `test` - 测试相关
- `build` - 构建系统变更
- `ci` - CI 配置变更
- `chore` - 杂项任务
- `revert` - 回滚提交

## 许可证

MIT License

## 作者

Baran - info@cxvh.com

## 仓库地址

- GitHub: https://github.com/code-ba/git-ai
- Issues: https://github.com/code-ba/git-ai/issues
- Homepage: https://github.com/code-ba/git-ai#readme
npm package: @git-copy/copy
Description: A Git copy helper to copy code from dev repository branch to main repository with one commit.
Author: Mihir Patel
Latest version: 0.0.5

# Git-Copy Script

A utility to copy and stage files from a development branch to a release branch in Git.  
Runs directly from GitHub, no clone required.

---

## Features

- Minimal fetch (`--depth=1`) for speed  
- Automatically stashes local changes  
- Creates a clean `sync` branch for staging  
- Works on **Linux/macOS/Git Bash/WSL** and **Windows PowerShell**  
- Supports plain alias or function (for optional future arguments)  

---

## Cross-Platform Installation

### Linux / macOS / Git Bash / WSL

#### Option A: Plain alias (no arguments)

```bash
echo 'alias git-copy="bash -c \"$(curl -fsSL https://raw.githubusercontent.com/<YourUsername>/git-copy-script/main/git-copy.sh)\""' >> ~/.bashrc && source ~/.bashrc
```

List all alias

```sh
alias
alias git-copy
```


```bash
git-copy
```

#### Option B: Function (supports future arguments)

```bash
echo 'git-copy() { bash -c "$(curl -fsSL https://raw.githubusercontent.com/<YourUsername>/git-copy-script/main/git-copy.sh)" "$@"; }' >> ~/.bashrc && source ~/.bashrc
```

```bash
git-copy              # default remote
git-copy devrepo      # optional remote override
```

### Windows PowerShell


#### Option A: Plain alias (no arguments)

```powershell
Add-Content $PROFILE 'Set-Alias git-copy "bash -c \"$(curl -fsSL https://raw.githubusercontent.com/<YourUsername>/git-copy-script/main/git-copy.sh)\""'
. $PROFILE
```

List all alias

```powershell
Get-Alias
Get-Alias git-copy
```

```powershell
git-copy
```

#### Option B: Function (supports future arguments)

```powershell
Add-Content $PROFILE 'function git-copy { param([string]$remote); bash -c "$(curl -fsSL https://raw.githubusercontent.com/<YourUsername>/git-copy-script/main/git-copy.sh)" $remote }'
. $PROFILE
```

```powershell
# Create Profile If Does Not Exists
New-Item -ItemType Directory -Force -Path (Split-Path $PROFILE)
```

```powershell
git-copy
git-copy devrepo
```

## Configuration

The script stores defaults in `.git/git-copy.conf`:

```txt
main_stream="origin"      # release remote
main_branch="master"      # release branch
dev_stream="devrepo"      # dev remote
dev_branch="master"       # dev branch
sync_branch="sync"        # working branch
```
npm package: @git-diff-view/lowlight
Description: @git-diff-view/lowlight
Author: MrWangJustToDo
Latest version: 0.1.3

# @git-diff-view/lowlight

> Built-in syntax highlighter for @git-diff-view using lowlight

[![npm version](https://img.shields.io/npm/v/@git-diff-view/lowlight)](https://www.npmjs.com/package/@git-diff-view/lowlight)
[![npm downloads](https://img.shields.io/npm/dm/@git-diff-view/lowlight)](https://www.npmjs.com/package/@git-diff-view/lowlight)

This package is the **default syntax highlighter** built into [@git-diff-view/core](../core). It uses [lowlight](https://github.com/wooorm/lowlight) (highlight.js wrapper) for syntax highlighting.

## Features

- ✅ Built into @git-diff-view/core by default
- ✅ No additional installation required
- ✅ Based on highlight.js
- ✅ Supports 190+ languages
- ✅ Fast and lightweight
- ✅ Works in browser and Node.js

## Usage

No explicit setup needed - it's automatically used by @git-diff-view/core:

```typescript
import { DiffFile } from "@git-diff-view/core";

const file = new DiffFile(/* ... */);
file.init();  // Automatically uses lowlight for syntax highlighting
```

## When to Use

This is the default highlighter and suitable for most use cases. Consider [@git-diff-view/shiki](../shiki) if you need:
- More accurate syntax highlighting
- VSCode-compatible themes
- Better language grammar support

## Related Packages

- [@git-diff-view/core](https://www.npmjs.com/package/@git-diff-view/core) - Core package that includes this
- [@git-diff-view/shiki](https://www.npmjs.com/package/@git-diff-view/shiki) - Alternative highlighter
- [lowlight](https://github.com/wooorm/lowlight) - Underlying library
- [highlight.js](https://highlightjs.org/) - Language definitions

## License

MIT © [MrWangJustToDo](https://github.com/MrWangJustToDo)
npm package: @git-dru/pancakeswap-sdk
Description: 🛠 An SDK for building applications on top of Pancakeswap.
Latest version: 2.4.3


> **Notice**
>
> Moved to https://github.com/pancakeswap/pancake-frontend/tree/develop/packages/swap-sdk

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @git-emoji/dataset-js
Description: Emoji data and contextual emoji data
Author: git-emoji
Latest version: 0.0.10

# Git-Emoji Dataset 📑

This repository contains emoji data and contextual keywords associated with them. It is meant to be used, **by everyone**, who needs a reference dataset of emojis applicable in git commit messages.

Note that the `main` branch may get updated at any time without notice.

## Installation

```sh
npm install @git-emoji/dataset-js
```

## Usage

```ts
const dataset = require('@git-emoji/dataset-js')
// or
import * as dataset from '@git-emoji/dataset-js'
```

Three kind of data are available in this package:

- Emoji data
- Contextual data
  - v1
  - v2
- Word data

### Emoji data

Emoji data are available under the `dataset.emoji` field:

```js
// nodejs REPL
> dataset.emoji._bug
{ s: '🐛', id: 'bug' }
> Object.keys(dataset.emoji).length
308
```

### Contextual data

*Contextual* emoji data are also available. Contextual emoji data describe the association between keywords and emojis. You can find them as an array assigned to the fields `dataset.context` and `dataset.contextV2`. 

Note that, the v2 revision has more focused and to-the-point entries, as opposed to the first version (v1) where associations are rather generic and multi-purpose.

This is an example of the contextual data (detailed result might be different):

```js
// nodejs REPL
> dataset.context.length
48
> dataset.context[0]
{
  keyword: [
    'bogus',     'bug',
    'bugfix',    'correct',
    'erroneous', 'fix',
    'incorrect', 'patch',
    'wrong'
  ],
  emoji: [
    { s: '🐞', id: 'beetle' },
    { s: '🐛', id: 'bug' },
    { s: '🗜', id: 'clamp' },
    { s: '🔨', id: 'hammer' },
    { s: '🔧', id: 'wrench' }
  ]
}
```

### Word data

Since words may have other variants with the same semantics, there's the words dataset in the package to help identify other variants. This data is accessible through the `dataset.word` property:

```js
// nodejs REPL
> dataset.word.authorize
{ cover: [ 'authorizing', 'authorization' ], tag: [ 'verb' ] }
> dataset.word.good
{ cover: [], tag: [] }
> Object.keys(dataset.word).length
373
```

## Thank you

Feel free to submit PRs and improve the dataset with your taste. 🍏