ai-lens 0.8.53 → 0.8.55

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/.commithash CHANGED
@@ -1 +1 @@
1
- c830ed5
1
+ 93a1682
package/cli/init.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  } from './logger.js';
13
13
  import { getGitIdentity } from '../client/config.js';
14
14
  import { migrateIfNeeded } from '../client/sender.js';
15
+ import { stopCodexWatcher } from '../client/codex-watcher.js';
15
16
  import {
16
17
  CAPTURE_PATH, REPO_CAPTURE_PATH, detectInstalledTools, getCursorToolConfig, getClaudeCodeToolConfig,
17
18
  analyzeToolHooks, buildMergedConfig, writeHooksConfig, describePlan,
@@ -470,7 +471,7 @@ export default async function init() {
470
471
  );
471
472
  projects = (projectsInput && projectsInput.trim() && projectsInput.trim().toLowerCase() !== 'all')
472
473
  ? projectsInput
473
- : (projectHooksDefault || null);
474
+ : (currentProjects || projectHooksDefault || null);
474
475
  }
475
476
  // Guard: non-string (e.g. array from corrupt config) → treat as unset
476
477
  if (projects && typeof projects !== 'string') {
@@ -786,11 +787,13 @@ export default async function init() {
786
787
  saveLensConfig(newConfig);
787
788
 
788
789
  if (enableCodex) {
790
+ // Stop existing watcher so the new one picks up fresh config (projects, etc.)
791
+ await stopCodexWatcher();
789
792
  const watcherPath = flags.useRepoPath
790
793
  ? join(dirname(REPO_CAPTURE_PATH), 'codex-watcher.js')
791
794
  : join(dirname(CAPTURE_PATH), 'codex-watcher.js');
792
795
  if (startCodexWatcher(watcherPath)) {
793
- success(' Codex watcher started');
796
+ success(' Codex watcher restarted');
794
797
  } else {
795
798
  warn(` Codex watcher not started: missing ${watcherPath}`);
796
799
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-lens",
3
- "version": "0.8.53",
3
+ "version": "0.8.55",
4
4
  "type": "module",
5
5
  "description": "Centralized session analytics for AI coding tools",
6
6
  "bin": {