nococli 1.0.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.
@@ -0,0 +1,17 @@
1
+ #!/bin/bash
2
+ # git-no-ai-author: Remove AI co-author signatures from commit messages
3
+ # Installed by npx git-no-ai-author
4
+
5
+ COMMIT_MSG_FILE=$1
6
+
7
+ # Patterns to remove - add more as needed
8
+ sed -i '/^Co-Authored-By: Claude Opus/d' "$COMMIT_MSG_FILE"
9
+ sed -i '/^Co-Authored-By: GitHub Copilot/d' "$COMMIT_MSG_FILE"
10
+ sed -i '/^Co-Authored-By: ChatGPT/d' "$COMMIT_MSG_FILE"
11
+ sed -i '/^Co-Authored-By: Anthropic/d' "$COMMIT_MSG_FILE"
12
+ sed -i '/^Co-Authored-By: OpenAI/d' "$COMMIT_MSG_FILE"
13
+ sed -i '/^Co-Authored-By: Cursor AI/d' "$COMMIT_MSG_FILE"
14
+ sed -i '/^Co-Authored-By: AI Assistant/d' "$COMMIT_MSG_FILE"
15
+
16
+ # Also remove any empty lines at the end
17
+ sed -i -e :a -e '/^\\n*$/{$d;N;ba' -e '}' "$COMMIT_MSG_FILE"
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "nococli",
3
+ "version": "1.0.0",
4
+ "description": "Keep your code yours — remove AI co-author signatures from git commits",
5
+ "type": "module",
6
+ "main": "./dist/install.js",
7
+ "bin": {
8
+ "noco": "./dist/cli.js"
9
+ },
10
+ "scripts": {
11
+ "build": "bun build ./src/*.ts --outdir ./dist --target bun && bun build ./src/*.ts --outdir ./dist --target node",
12
+ "dev": "bun run src/cli.ts",
13
+ "test": "bun test",
14
+ "prepublishOnly": "bun run build"
15
+ },
16
+ "keywords": [
17
+ "git",
18
+ "hook",
19
+ "ai",
20
+ "claude",
21
+ "copilot",
22
+ "commit",
23
+ "cursor",
24
+ "typescript"
25
+ ],
26
+ "author": "",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/yourusername/git-no-ai-author"
31
+ },
32
+ "dependencies": {
33
+ "chalk": "^5.3.0",
34
+ "commander": "^12.0.0",
35
+ "ora": "^8.0.1",
36
+ "prompts": "^2.4.2",
37
+ "listr2": "^8.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/node": "^20.11.0",
41
+ "@types/prompts": "^2.4.9",
42
+ "bun-types": "^1.0.0",
43
+ "typescript": "^5.3.0"
44
+ },
45
+ "engines": {
46
+ "node": ">=18.0.0"
47
+ },
48
+ "files": [
49
+ "dist",
50
+ "hooks"
51
+ ]
52
+ }