ronds_ai 0.1.0 → 0.1.2

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.
@@ -4,15 +4,19 @@ const path = require('path');
4
4
  const CURSOR_COMMAND = 'npx ronds_ai@latest record cursor';
5
5
  const CLAUDE_COMMAND = 'npx ronds_ai@latest record claude';
6
6
  const CURSOR_OLD_COMMAND = 'node .cursor/hooks/cursor_hook_request.cjs';
7
+ const CURSOR_OLD_JS_COMMAND = 'node .cursor/hooks/cursor_hook_request.js';
7
8
  const CLAUDE_OLD_COMMAND = 'node .claude/hooks/claude_hook_request.cjs';
9
+ const CLAUDE_OLD_JS_COMMAND = 'node .claude/hooks/claude_hook_request.js';
8
10
  const CLAUDE_MATCHER = 'Edit|Write|MultiEdit';
9
11
  const CURSOR_MANAGED_COMMANDS = new Set([
10
12
  CURSOR_COMMAND,
11
13
  CURSOR_OLD_COMMAND,
14
+ CURSOR_OLD_JS_COMMAND,
12
15
  ]);
13
16
  const CLAUDE_MANAGED_COMMANDS = new Set([
14
17
  CLAUDE_COMMAND,
15
18
  CLAUDE_OLD_COMMAND,
19
+ CLAUDE_OLD_JS_COMMAND,
16
20
  ]);
17
21
 
18
22
  function isPlainObject(value) {
@@ -198,8 +202,11 @@ function deployHooks(targetDir = process.cwd()) {
198
202
  const createdFiles = [];
199
203
 
200
204
  removeFileIfExists(path.join(baseDir, '.cursor', 'hooks', 'cursor_hook_request.cjs'), removedFiles);
205
+ removeFileIfExists(path.join(baseDir, '.cursor', 'hooks', 'cursor_hook_request.js'), removedFiles);
201
206
  removeFileIfExists(path.join(baseDir, '.claude', 'hooks', 'claude_hook_request.cjs'), removedFiles);
207
+ removeFileIfExists(path.join(baseDir, '.claude', 'hooks', 'claude_hook_request.js'), removedFiles);
202
208
  removeFileIfExists(path.join(baseDir, '.claude', 'hooks', 'claide_hook_request.cjs'), removedFiles);
209
+ removeFileIfExists(path.join(baseDir, '.claude', 'hooks', 'claide_hook_request.js'), removedFiles);
203
210
 
204
211
  const cursorPath = path.join(baseDir, '.cursor', 'hooks.json');
205
212
  const cursorResult = readJsonFile(cursorPath, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ronds_ai",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for reporting AI code edit events.",
5
5
  "bin": {
6
6
  "ronds_ai": "bin/ronds_ai.js"