@moshi-labs/snitch 1.0.0 → 1.0.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.
- package/cli/commands/init.js +2 -1
- package/package.json +5 -2
package/cli/commands/init.js
CHANGED
|
@@ -26,7 +26,8 @@ export async function initCommand() {
|
|
|
26
26
|
: 'Server URL: ';
|
|
27
27
|
const serverUrl = await question(serverUrlPrompt);
|
|
28
28
|
if (serverUrl.trim()) {
|
|
29
|
-
|
|
29
|
+
// Strip trailing slashes
|
|
30
|
+
config.serverUrl = serverUrl.trim().replace(/\/+$/, '');
|
|
30
31
|
} else if (!config.serverUrl) {
|
|
31
32
|
console.log('Error: Server URL is required');
|
|
32
33
|
rl.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moshi-labs/snitch",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI daemon that reports Claude Code activity to a team server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,8 +15,11 @@
|
|
|
15
15
|
"test": "node bin/snitch.js --help"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@anthropic-ai/sdk": "^0.39.0",
|
|
18
19
|
"chokidar": "^3.5.3",
|
|
19
|
-
"commander": "^12.1.0"
|
|
20
|
+
"commander": "^12.1.0",
|
|
21
|
+
"dotenv": "^16.3.1",
|
|
22
|
+
"express": "^4.18.2"
|
|
20
23
|
},
|
|
21
24
|
"engines": {
|
|
22
25
|
"node": ">=18.0.0"
|