@webywz/vibe-commit 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/parse-args.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,15 +55,15 @@ vibe-commit install # optional prepare-commit-msg hook
|
|
|
55
55
|
| `--scope <scope>` | Override inferred scope · 覆盖推断出的 scope |
|
|
56
56
|
| `--vibe <style>` | `playful` \| `pro` \| `terse` (default: `pro`) |
|
|
57
57
|
| `--no-ai` | Skip the API even if `OPENAI_API_KEY` is set · 即使有 Key 也不走 AI |
|
|
58
|
-
| `--breaking` | Force breaking
|
|
58
|
+
| `--breaking` | Force breaking (`!` + `BREAKING CHANGE:` footer = **subject**) · 强制破坏性变更(`!` + footer 文本即 **subject**) |
|
|
59
59
|
| `--json` | Machine-readable proposal · 机器可读提案 |
|
|
60
60
|
| `install [--path]` | Install the prepare-commit-msg hook · 安装钩子 |
|
|
61
61
|
| `uninstall [--path]` | Remove the managed hook · 卸载钩子 |
|
|
62
62
|
| `-h` / `-v` | Help / version · 帮助 / 版本 |
|
|
63
63
|
|
|
64
|
-
Offline heuristic also marks breaking when the staged diff removes public `export`s or bumps a `package.json` major version, and always attaches a `BREAKING CHANGE:` footer when `breaking` is true (so `--json` body matches the formatted message). Dry-run prints a one-line cause; `--json` may include `breakingReason`.
|
|
64
|
+
Offline heuristic also marks breaking when the staged diff removes public `export`s or bumps a `package.json` major version, and always attaches a `BREAKING CHANGE:` footer when `breaking` is true (so `--json` body matches the formatted message). Forced `--breaking` puts the **subject** in the footer; heuristic breaking still prefers a more specific bilingual reason when one is available. Dry-run prints a one-line cause; `--json` may include `breakingReason`.
|
|
65
65
|
|
|
66
|
-
离线启发式在删掉公开 `export`、或 `package.json` 主版本升级时也会标 breaking;只要 `breaking` 为真就会补上 `BREAKING CHANGE:` footer(`--json` 的 body
|
|
66
|
+
离线启发式在删掉公开 `export`、或 `package.json` 主版本升级时也会标 breaking;只要 `breaking` 为真就会补上 `BREAKING CHANGE:` footer(`--json` 的 body 与格式化输出一致)。强制 `--breaking` 时 footer 文本即 **subject**;启发式推断 breaking 时仍可用更具体的双语原因。干跑会打一行原因;`--json` 可带 `breakingReason`。
|
|
67
67
|
|
|
68
68
|
**Vibes** · 语气
|
|
69
69
|
|
|
@@ -146,8 +146,8 @@ console.log(formatCommit(message));
|
|
|
146
146
|
- new files / `export function` → `feat`
|
|
147
147
|
3. Optional AI draft with automatic heuristic fallback.
|
|
148
148
|
可选 AI 草稿,失败自动回退启发式。
|
|
149
|
-
4. **Breaking** when the diff removes a public `export`, bumps a `package.json` major,
|
|
150
|
-
**破坏性变更**:删公开 `export`、主版本升级、diff 里已有 footer,或传 `--breaking
|
|
149
|
+
4. **Breaking** when the diff removes a public `export`, bumps a `package.json` major, already has a `BREAKING CHANGE:` footer, or you pass `--breaking`. Forced `--breaking` puts the **subject** in the footer; heuristic cases keep a more specific bilingual reason when available. Dry-run shows why; `--json` may include `breakingReason`.
|
|
150
|
+
**破坏性变更**:删公开 `export`、主版本升级、diff 里已有 footer,或传 `--breaking`。强制 `--breaking` 时 footer 用 **subject**;启发式仍可用更具体的双语原因。干跑说明原因;`--json` 可带 `breakingReason`。
|
|
151
151
|
5. Managed `prepare-commit-msg` hook via `install` / `uninstall`.
|
|
152
152
|
通过 `install` / `uninstall` 管理 `prepare-commit-msg` 钩子。
|
|
153
153
|
|
package/dist/parse-args.js
CHANGED
|
@@ -17,7 +17,7 @@ Options
|
|
|
17
17
|
--scope <scope> Override inferred scope
|
|
18
18
|
--vibe <style> playful | pro | terse (default: pro)
|
|
19
19
|
--no-ai Skip AI even if OPENAI_API_KEY is set
|
|
20
|
-
--breaking Force
|
|
20
|
+
--breaking Force ! + BREAKING CHANGE footer (text = subject)
|
|
21
21
|
--json Print a machine-readable proposal
|
|
22
22
|
--path <repo> Repo root for install/uninstall (default: cwd)
|
|
23
23
|
-h, --help Show help
|