claude-friends 0.4.16 → 0.4.18
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-friends",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"description": "See who's online in Claude Code. Add friends, share status, nudge each other.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "npx partykit dev",
|
|
12
12
|
"deploy": "npx partykit deploy",
|
|
13
|
-
"postinstall": "node -e \"const{cpSync,mkdirSync}=require('fs'),{join}=require('path'),d=join(require('os').homedir(),'.claude','commands');mkdirSync(d,{recursive:true});try{cpSync(join(__dirname,'commands'),d,{recursive:true})}catch{}\""
|
|
13
|
+
"postinstall": "node -e \"const{cpSync,mkdirSync,unlinkSync}=require('fs'),{join}=require('path'),d=join(require('os').homedir(),'.claude','commands');mkdirSync(d,{recursive:true});try{unlinkSync(join(d,'friend.md'))}catch{};try{unlinkSync(join(d,'friends.md'))}catch{};try{cpSync(join(__dirname,'commands'),d,{recursive:true})}catch{}\""
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"cli.js",
|
package/statusline.js
CHANGED
|
@@ -131,7 +131,7 @@ function formatNum(n) {
|
|
|
131
131
|
function getFriendsOnline() {
|
|
132
132
|
try {
|
|
133
133
|
const cache = JSON.parse(readFileSync(join(homedir(), ".claude-friends-online.json"), "utf-8"));
|
|
134
|
-
if (Date.now() - cache.lastUpdate > 30000) return { count: 0, names: [] };
|
|
134
|
+
if (!cache.lastUpdate || Date.now() - cache.lastUpdate > 30000) return { count: 0, names: [] };
|
|
135
135
|
return { count: cache.onlineCount || 0, names: cache.onlineNames || [] };
|
|
136
136
|
} catch {
|
|
137
137
|
return { count: 0, names: [] };
|
|
File without changes
|
|
File without changes
|