🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

unique-aicommit

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unique-aicommit

A tool to generate standardized commit messages using AI.

latest
npmnpm
Version
1.0.37
Version published
Weekly downloads
11
-8.33%
Maintainers
1
Weekly downloads
 
Created
Source

aicommit

基于AI自动生成commit信息,通过CLI提升工作流程。

安装

前置:需要安装NodeNPM

npm install -g unique-aicommit

用法

支持的 AI 模型:

获取 API 密钥 👆

选择 AI 模型

aicommit config set AI_PROVIDER=deepseek
or
aicommit config set AI_PROVIDER=moonshot
or
aicommit config set AI_PROVIDER=deepbricks

设置 API:

aicommit config set DeepSeek_KEY=<your token>
or
aicommit config set Moonshot_KEY=<your token>
or
aicommit config set Deepbricks_KEY=<your token>

生成 Commit 信息

在你的 git 仓库中,运行:

aicommit

演示: aicommit

生成分支名称

基于暂存区的更改自动生成分支名:

aicommit branch
# or
aicommit b

分支生成功能支持:

  • 自动分析暂存区内容生成语义化分支名
  • 支持常用分支类型前缀(feat:、fix:、docs: 等)
  • 可以编辑或取消生成的分支名
  • 自动创建并切换到新分支

获取配置值

获取完整配置:

aicommit config list

要获取指定配置选项,请使用以下命令:

aicommit config get <key>

例如,要检索 API 密钥:

aicommit config get DeepSeek_KEY

参考 aicommits

Keywords

AI

FAQs

Package last updated on 20 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts