claude-threads 1.13.0 → 1.13.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 CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.13.1] - 2026-05-05
11
+
12
+ ### Fixed
13
+ - **`read_post` works on Mattermost subpath installs.** `parseMattermostPermalink` matched only on origin and ignored the configured baseUrl path, so on a Mattermost install at `/chat` (e.g. `digilab.overheid.nl/chat`) every permalink had a leading `/chat` segment that pushed the path to four segments and got rejected with "not a Mattermost permalink for ..." even though the link was on the bot's own instance. The parser now strips the configured subpath as a path-segment prefix before validating the `{team}/pl/{id}` or `_redirect/pl/{id}` shape; segment-level comparison so `/chat` doesn't accidentally match `/chatter`. Regression from #366. (#368)
14
+
10
15
  ## [1.13.0] - 2026-05-05
11
16
 
12
17
  ### Added
@@ -56868,7 +56868,13 @@ function parseMattermostPermalink(url2, baseUrl) {
56868
56868
  if (parsed.origin !== base.origin) {
56869
56869
  return null;
56870
56870
  }
56871
- const segments = parsed.pathname.replace(/^\/+|\/+$/g, "").split("/");
56871
+ const baseSegments = base.pathname.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean);
56872
+ const allSegments = parsed.pathname.replace(/^\/+|\/+$/g, "").split("/");
56873
+ for (let i2 = 0;i2 < baseSegments.length; i2++) {
56874
+ if (allSegments[i2] !== baseSegments[i2])
56875
+ return null;
56876
+ }
56877
+ const segments = allSegments.slice(baseSegments.length);
56872
56878
  if (segments.length !== 3)
56873
56879
  return null;
56874
56880
  if (segments[1] !== "pl")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-threads",
3
- "version": "1.13.0",
3
+ "version": "1.13.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",