@rachel_rotenberg/ai-contribution-tracker 1.0.1 → 1.0.3
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/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -89,7 +89,7 @@ function writeFlag(g: string, s: TrackerState) {
|
|
|
89
89
|
}
|
|
90
90
|
// Always overwrite with latest state — state only grows, never shrinks
|
|
91
91
|
}
|
|
92
|
-
fs.writeFileSync(fp, marker);
|
|
92
|
+
fs.writeFileSync(fp, marker.replace(/[\u200b\u200c\u200d\u200e\u200f\ufeff]/g, ""));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// ─── Plugin ─────────────────────────────────────────────────
|
|
@@ -250,7 +250,7 @@ const AIContributionTracker: Plugin = async ({ directory, worktree }) => {
|
|
|
250
250
|
if (sess.gitDir) {
|
|
251
251
|
// gitDir known — write directly
|
|
252
252
|
const state = loadState(sess.gitDir);
|
|
253
|
-
const src = `opencode/${input.agent ?? "session"}`;
|
|
253
|
+
const src = `opencode/${sanitizeAgentName(input.agent ?? "session")}`;
|
|
254
254
|
if (!state.mainAgentTypes.includes(src)) state.mainAgentTypes.push(src);
|
|
255
255
|
state.promptCount += 1;
|
|
256
256
|
if (input.model?.modelID && !state.models.includes(input.model.modelID)) state.models.push(input.model.modelID);
|
package/package.json
CHANGED