claude-threads 1.16.3 → 1.17.1
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/CHANGELOG.md +18 -0
- package/README.md +1 -0
- package/dist/index.js +99 -2849
- package/dist/mcp/mcp-server.js +18 -0
- package/docs/CONFIGURATION.md +2 -0
- package/package.json +8 -4
package/dist/mcp/mcp-server.js
CHANGED
|
@@ -55520,6 +55520,14 @@ var COMMAND_REGISTRY = [
|
|
|
55520
55520
|
worksInFirstMessage: true,
|
|
55521
55521
|
isStackable: true
|
|
55522
55522
|
},
|
|
55523
|
+
{
|
|
55524
|
+
command: "mentions",
|
|
55525
|
+
description: "Toggle quiet mode: only respond when @mentioned by name",
|
|
55526
|
+
args: "on / off",
|
|
55527
|
+
category: "settings",
|
|
55528
|
+
audience: "user",
|
|
55529
|
+
claudeNotes: "User decisions, not yours"
|
|
55530
|
+
},
|
|
55523
55531
|
{
|
|
55524
55532
|
command: "update",
|
|
55525
55533
|
description: "Show auto-update status",
|
|
@@ -55790,6 +55798,15 @@ var handlePermissions = async (ctx, args) => {
|
|
|
55790
55798
|
await ctx.sessionManager.setSessionPermissionMode(ctx.threadId, ctx.username, mode);
|
|
55791
55799
|
return { handled: true };
|
|
55792
55800
|
};
|
|
55801
|
+
var handleMentions = async (ctx, args) => {
|
|
55802
|
+
if (ctx.commandContext === "first-message") {
|
|
55803
|
+
return { handled: false };
|
|
55804
|
+
}
|
|
55805
|
+
if (ctx.isAllowed) {
|
|
55806
|
+
await ctx.sessionManager.setRespondOnlyWhenMentioned(ctx.threadId, ctx.username, args);
|
|
55807
|
+
}
|
|
55808
|
+
return { handled: true };
|
|
55809
|
+
};
|
|
55793
55810
|
var handleWorktree = async (ctx, args) => {
|
|
55794
55811
|
const parts = args?.split(/\s+/) || [];
|
|
55795
55812
|
const subcommandOrBranch = parts[0]?.toLowerCase();
|
|
@@ -55923,6 +55940,7 @@ handlers.set("kick", handleKick);
|
|
|
55923
55940
|
handlers.set("github-email", handleGitHubEmail);
|
|
55924
55941
|
handlers.set("cd", handleCd);
|
|
55925
55942
|
handlers.set("permissions", handlePermissions);
|
|
55943
|
+
handlers.set("mentions", handleMentions);
|
|
55926
55944
|
handlers.set("worktree", handleWorktree);
|
|
55927
55945
|
handlers.set("bug", handleBug);
|
|
55928
55946
|
handlers.set("plugin", handlePlugin);
|
package/docs/CONFIGURATION.md
CHANGED
|
@@ -9,6 +9,7 @@ version: 1
|
|
|
9
9
|
workingDir: /home/user/repos/myproject
|
|
10
10
|
chrome: false
|
|
11
11
|
worktreeMode: prompt
|
|
12
|
+
respondOnlyWhenMentioned: false
|
|
12
13
|
|
|
13
14
|
platforms:
|
|
14
15
|
# Mattermost
|
|
@@ -41,6 +42,7 @@ platforms:
|
|
|
41
42
|
| `workingDir` | Default working directory for Claude | Current directory |
|
|
42
43
|
| `chrome` | Enable Chrome integration | `false` |
|
|
43
44
|
| `worktreeMode` | Git worktree mode: `off`, `prompt`, or `require` | `prompt` |
|
|
45
|
+
| `respondOnlyWhenMentioned` | Start new threads in quiet mode, where the bot only replies to messages that @mention it. Users can still toggle per-thread with `!mentions`. | `false` |
|
|
44
46
|
|
|
45
47
|
## Platform Settings
|
|
46
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-threads",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "Share Claude Code sessions live in a Mattermost channel with interactive features",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"commander": "^14.0.2",
|
|
72
72
|
"diff": "^8.0.3",
|
|
73
73
|
"express-rate-limit": "^8.3.0",
|
|
74
|
-
"hono": "4.12.
|
|
74
|
+
"hono": "4.12.25",
|
|
75
75
|
"ink": "^6.6.0",
|
|
76
76
|
"ink-scroll-view": "^0.3.5",
|
|
77
77
|
"js-yaml": "^4.1.1",
|
|
@@ -116,7 +116,9 @@
|
|
|
116
116
|
"flatted": ">=3.4.0",
|
|
117
117
|
"picomatch": ">=2.3.2",
|
|
118
118
|
"path-to-regexp": ">=8.4.0",
|
|
119
|
-
"fast-uri": ">=3.1.2"
|
|
119
|
+
"fast-uri": ">=3.1.2",
|
|
120
|
+
"ws": "$ws",
|
|
121
|
+
"shell-quote": ">=1.8.4"
|
|
120
122
|
},
|
|
121
123
|
"resolutions": {
|
|
122
124
|
"hono": "$hono",
|
|
@@ -125,6 +127,8 @@
|
|
|
125
127
|
"flatted": ">=3.4.0",
|
|
126
128
|
"picomatch": ">=2.3.2",
|
|
127
129
|
"path-to-regexp": ">=8.4.0",
|
|
128
|
-
"fast-uri": ">=3.1.2"
|
|
130
|
+
"fast-uri": ">=3.1.2",
|
|
131
|
+
"ws": "$ws",
|
|
132
|
+
"shell-quote": ">=1.8.4"
|
|
129
133
|
}
|
|
130
134
|
}
|