@nevaberry/opencodecommit 1.0.2 → 1.1.0

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 CHANGED
@@ -5,13 +5,13 @@ AI commit messages via terminal AI agents. VSCodium / VS Code extension + standa
5
5
  **Security scanning built in** — diffs are scanned locally for secrets, source maps, and private keys before anything leaves your machine.
6
6
 
7
7
  [VSCodium Open VSX registry](https://open-vsx.org/extension/Nevaberry/opencodecommit)<br>
8
- [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Nevaberry.opencodecommit) · [npm](https://www.npmjs.com/package/@nevaberry/opencodecommit) · [crates.io](https://crates.io/crates/opencodecommit) · [GitHub](https://github.com/Nevaberry/opencodecommit)
8
+ [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Nevaberry.opencodecommit) · [npm](https://www.npmjs.com/package/opencodecommit) · [scoped npm](https://www.npmjs.com/package/@nevaberry/opencodecommit) · [crates.io](https://crates.io/crates/opencodecommit) · [GitHub](https://github.com/Nevaberry/opencodecommit)
9
9
 
10
10
  ## Install
11
11
 
12
12
  **Extension:** Search "OpenCodeCommit" in VSCodium / VS Code, or `ext install Nevaberry.opencodecommit`
13
13
 
14
- **CLI:** `cargo install opencodecommit` or `npm i -g @nevaberry/opencodecommit` (installs `occ` command)
14
+ **CLI:** `cargo install opencodecommit` or `npm i -g opencodecommit` (official unscoped alias: `@nevaberry/opencodecommit`)
15
15
 
16
16
  **Prerequisite:** At least one CLI backend:
17
17
 
@@ -33,6 +33,7 @@ Dropdown menu: mode-specific generation, refine, branch name generation, switch
33
33
  ## CLI Usage
34
34
 
35
35
  ```bash
36
+ occ tui # launch the minimal interactive TUI
36
37
  occ commit # generate message + commit
37
38
  occ commit --dry-run # preview only, don't commit
38
39
  occ commit --language Suomi # generate in Finnish
@@ -46,13 +47,32 @@ occ commit --text
46
47
  occ commit --allow-sensitive # skip secret scanning
47
48
  ```
48
49
 
50
+ `occ tui` is a small launcher over the existing commands, not a full git dashboard. It lets you generate, shorten, and commit messages, plus preview branch / PR / changelog output from one screen.
51
+
49
52
  `occ` is the short form. `opencodecommit` also works if `occ` clashes with something on your system.
50
53
 
51
54
  Exit codes: 0 success, 1 no changes, 2 backend error, 3 config error, 5 sensitive content detected
52
55
 
56
+ ## Transparent Git Guard
57
+
58
+ Use OpenCodeCommit as a background safety layer for normal `git commit` usage:
59
+
60
+ ```bash
61
+ occ guard install --global # install a machine-wide commit guard
62
+ occ guard uninstall --global # remove the machine-wide guard
63
+ ```
64
+
65
+ This installs a managed global hooks directory via `core.hooksPath`. `pre-commit` scans the staged diff for sensitive content, and other hook names are chained through so existing repo hooks still run.
66
+
53
67
  ## Sensitive Content Detection
54
68
 
55
- Diffs are scanned locally before being sent to any AI backend. The CLI blocks (exit 5) and the extension shows a warning dialog.
69
+ Diffs are scanned locally before being sent to any AI backend. `occ commit` blocks with exit code 5, and the global guard blocks normal `git commit` before the commit is created.
70
+
71
+ Guard warnings include the file, line number when available, rule, and a redacted snippet preview. If a hook-mode block is an intentional false positive, bypass only OpenCodeCommit for that one command:
72
+
73
+ ```bash
74
+ OCC_ALLOW_SENSITIVE=1 git commit ...
75
+ ```
56
76
 
57
77
  **Flagged file names:**
58
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevaberry/opencodecommit",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "AI-powered git commit message generator that delegates to terminal AI agents",
5
5
  "license": "MIT",
6
6
  "repository": {
Binary file
Binary file
Binary file
Binary file
Binary file