fathom-mcp 0.4.7 → 0.4.8
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/package.json +1 -1
- package/src/cli.js +3 -2
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -785,8 +785,9 @@ async function runUpdate() {
|
|
|
785
785
|
fs.writeFileSync(path.join(fathomDir, "version"), packageVersion + "\n");
|
|
786
786
|
|
|
787
787
|
// Ensure SessionStart hook is registered for Claude Code workspaces
|
|
788
|
-
|
|
789
|
-
const hasClaude = agents.includes("claude-code")
|
|
788
|
+
// Detect by .claude/ dir (older configs may not have agents field)
|
|
789
|
+
const hasClaude = (found.config.agents || []).includes("claude-code")
|
|
790
|
+
|| fs.existsSync(path.join(projectDir, ".claude"));
|
|
790
791
|
let hooksUpdated = false;
|
|
791
792
|
if (hasClaude) {
|
|
792
793
|
const claudeSettingsPath = path.join(projectDir, ".claude", "settings.local.json");
|