mattermost-claude-code 0.5.3 โ†’ 0.5.4

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.
Files changed (3) hide show
  1. package/README.md +12 -0
  2. package/dist/index.js +15 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -111,6 +111,18 @@ Options:
111
111
 
112
112
  CLI options override environment variables.
113
113
 
114
+ ## Session Commands
115
+
116
+ Type `/help` in any session thread to see available commands:
117
+
118
+ | Command | Description |
119
+ |:--------|:------------|
120
+ | `/help` | Show available commands |
121
+ | `/invite @user` | Invite a user to this session |
122
+ | `/kick @user` | Remove an invited user |
123
+ | `/permissions interactive` | Enable interactive permissions |
124
+ | `/stop` | Stop this session |
125
+
114
126
  ## Session Collaboration
115
127
 
116
128
  ### Invite Users
package/dist/index.js CHANGED
@@ -90,6 +90,21 @@ async function main() {
90
90
  }
91
91
  return;
92
92
  }
93
+ // Check for /help command
94
+ if (lowerContent === '/help' || lowerContent === 'help') {
95
+ await mattermost.createPost(`**Available commands:**\n\n` +
96
+ `| Command | Description |\n` +
97
+ `|:--------|:------------|\n` +
98
+ `| \`/help\` | Show this help message |\n` +
99
+ `| \`/invite @user\` | Invite a user to this session |\n` +
100
+ `| \`/kick @user\` | Remove an invited user |\n` +
101
+ `| \`/permissions interactive\` | Enable interactive permissions |\n` +
102
+ `| \`/stop\` | Stop this session |\n\n` +
103
+ `**Reactions:**\n` +
104
+ `- ๐Ÿ‘ Approve action ยท โœ… Approve all ยท ๐Ÿ‘Ž Deny\n` +
105
+ `- โŒ or ๐Ÿ›‘ on any message to stop session`, threadRoot);
106
+ return;
107
+ }
93
108
  // Check for /invite command
94
109
  const inviteMatch = content.match(/^\/invite\s+@?(\w+)/i);
95
110
  if (inviteMatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mattermost-claude-code",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
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",