@rachel_rotenberg/ai-contribution-tracker 1.0.26 → 1.0.27

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.
Files changed (2) hide show
  1. package/cli.js +0 -37
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -112,40 +112,6 @@ function ensurePassthroughHooks(hooksDir) {
112
112
  }
113
113
  }
114
114
 
115
- function installPreCommitFramework(hooksDir) {
116
- const configFile = path.join(process.cwd(), ".pre-commit-config.yaml");
117
- if (!fs.existsSync(configFile)) return;
118
-
119
- let preCommitBin = "";
120
- try {
121
- preCommitBin = execSync("which pre-commit 2>/dev/null || command -v pre-commit 2>/dev/null", {
122
- encoding: "utf8", shell: true, stdio: ["pipe", "pipe", "pipe"],
123
- }).trim();
124
- } catch { }
125
- if (!preCommitBin) return;
126
-
127
- try {
128
- execFileSync("git", ["config", "--global", "--unset", "core.hooksPath"], {
129
- encoding: "utf8", stdio: ["pipe", "pipe", "pipe"],
130
- });
131
- } catch { }
132
-
133
- try {
134
- execFileSync(preCommitBin, ["install"], {
135
- encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], cwd: process.cwd(),
136
- });
137
- ok("Installed pre-commit framework hooks");
138
- } catch (e) {
139
- warn(`Could not run pre-commit install: ${e.message}`);
140
- }
141
-
142
- try {
143
- const gitPath = hooksDir.replace(/\\/g, "/");
144
- execFileSync("git", ["config", "--global", "core.hooksPath", gitPath], {
145
- encoding: "utf8", stdio: ["pipe", "pipe", "pipe"],
146
- });
147
- } catch { }
148
- }
149
115
 
150
116
  /** Install the global git commit-msg hook. */
151
117
  function installGitHook() {
@@ -166,7 +132,6 @@ function installGitHook() {
166
132
  fs.mkdirSync(existingPath, { recursive: true });
167
133
  appendOrCreateHook(existingPath);
168
134
  ensurePassthroughHooks(existingPath);
169
- installPreCommitFramework(existingPath);
170
135
  } else {
171
136
  const hooksDir = path.join(os.homedir(), ".config", "ai-contribution-tracker", "git-hooks");
172
137
  fs.mkdirSync(hooksDir, { recursive: true });
@@ -183,8 +148,6 @@ function installGitHook() {
183
148
  } catch (e) {
184
149
  fail(`Could not set core.hooksPath: ${e.message}`);
185
150
  }
186
-
187
- installPreCommitFramework(hooksDir);
188
151
  }
189
152
  }
190
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rachel_rotenberg/ai-contribution-tracker",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "OpenCode plugin — tracks AI coding sessions and tags git commits with Impacted by AI markers",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",