claude-threads 1.17.3 → 1.18.0
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 +7 -1
- package/dist/index.js +1534 -1338
- package/dist/mcp/mcp-server.js +12 -15
- package/package.json +8 -8
package/dist/mcp/mcp-server.js
CHANGED
|
@@ -14574,6 +14574,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
14574
14574
|
this._opcode = 0;
|
|
14575
14575
|
this._totalPayloadLength = 0;
|
|
14576
14576
|
this._messageLength = 0;
|
|
14577
|
+
this._numFragments = 0;
|
|
14577
14578
|
this._fragments = [];
|
|
14578
14579
|
this._errored = false;
|
|
14579
14580
|
this._loop = false;
|
|
@@ -14783,17 +14784,17 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
14783
14784
|
this.controlMessage(data, cb);
|
|
14784
14785
|
return;
|
|
14785
14786
|
}
|
|
14787
|
+
if (this._maxFragments > 0 && ++this._numFragments > this._maxFragments) {
|
|
14788
|
+
const error49 = this.createError(RangeError, "Too many message fragments", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS");
|
|
14789
|
+
cb(error49);
|
|
14790
|
+
return;
|
|
14791
|
+
}
|
|
14786
14792
|
if (this._compressed) {
|
|
14787
14793
|
this._state = INFLATING;
|
|
14788
14794
|
this.decompress(data, cb);
|
|
14789
14795
|
return;
|
|
14790
14796
|
}
|
|
14791
14797
|
if (data.length) {
|
|
14792
|
-
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
14793
|
-
const error49 = this.createError(RangeError, "Too many message fragments", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS");
|
|
14794
|
-
cb(error49);
|
|
14795
|
-
return;
|
|
14796
|
-
}
|
|
14797
14798
|
this._messageLength = this._totalPayloadLength;
|
|
14798
14799
|
this._fragments.push(data);
|
|
14799
14800
|
}
|
|
@@ -14811,11 +14812,6 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
14811
14812
|
cb(error49);
|
|
14812
14813
|
return;
|
|
14813
14814
|
}
|
|
14814
|
-
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
14815
|
-
const error49 = this.createError(RangeError, "Too many message fragments", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS");
|
|
14816
|
-
cb(error49);
|
|
14817
|
-
return;
|
|
14818
|
-
}
|
|
14819
14815
|
this._fragments.push(buf);
|
|
14820
14816
|
}
|
|
14821
14817
|
this.dataMessage(cb);
|
|
@@ -14833,6 +14829,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
14833
14829
|
this._totalPayloadLength = 0;
|
|
14834
14830
|
this._messageLength = 0;
|
|
14835
14831
|
this._fragmented = 0;
|
|
14832
|
+
this._numFragments = 0;
|
|
14836
14833
|
this._fragments = [];
|
|
14837
14834
|
if (this._opcode === 2) {
|
|
14838
14835
|
let data;
|
|
@@ -15967,8 +15964,8 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
15967
15964
|
autoPong: true,
|
|
15968
15965
|
closeTimeout: CLOSE_TIMEOUT,
|
|
15969
15966
|
protocolVersion: protocolVersions[1],
|
|
15970
|
-
maxBufferedChunks:
|
|
15971
|
-
maxFragments:
|
|
15967
|
+
maxBufferedChunks: 256 * 1024,
|
|
15968
|
+
maxFragments: 16 * 1024,
|
|
15972
15969
|
maxPayload: 100 * 1024 * 1024,
|
|
15973
15970
|
skipUTF8Validation: false,
|
|
15974
15971
|
perMessageDeflate: true,
|
|
@@ -16544,8 +16541,8 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
16544
16541
|
options = {
|
|
16545
16542
|
allowSynchronousEvents: true,
|
|
16546
16543
|
autoPong: true,
|
|
16547
|
-
maxBufferedChunks:
|
|
16548
|
-
maxFragments:
|
|
16544
|
+
maxBufferedChunks: 256 * 1024,
|
|
16545
|
+
maxFragments: 16 * 1024,
|
|
16549
16546
|
maxPayload: 100 * 1024 * 1024,
|
|
16550
16547
|
skipUTF8Validation: false,
|
|
16551
16548
|
perMessageDeflate: false,
|
|
@@ -57640,7 +57637,7 @@ var readPostInputSchema = {
|
|
|
57640
57637
|
max_messages: exports_external.coerce.number().int().optional().describe(`Maximum thread messages to return when include_thread is true. Defaults to ${DEFAULT_THREAD_LIMIT}, capped at ${MAX_THREAD_LIMIT}.`)
|
|
57641
57638
|
};
|
|
57642
57639
|
var reactToPostInputSchema = {
|
|
57643
|
-
url: exports_external.string().describe("Permalink URL to a post the bot can already see (its own channel, or a public channel on the same instance)."),
|
|
57640
|
+
url: exports_external.string().describe("Permalink URL to a post the bot can already see (its own channel, or a public channel on the same instance). " + "To react to a specific user message (e.g. to acknowledge the one that triggered the current task), use the " + "per-message permalink provided in that message's context — do NOT default to the thread-root permalink."),
|
|
57644
57641
|
emoji: exports_external.string().describe("Emoji name without colons, e.g. 'white_check_mark', '+1', 'eyes'. Platform-specific vocabulary applies.")
|
|
57645
57642
|
};
|
|
57646
57643
|
var updateOwnPostInputSchema = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-threads",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"package.json"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@hono/node-server": "2.0.
|
|
66
|
+
"@hono/node-server": "2.0.9",
|
|
67
67
|
"@inkjs/ui": "^2.0.0",
|
|
68
68
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
69
69
|
"@redactpii/node": "^1.0.16",
|
|
@@ -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.30",
|
|
75
75
|
"ink": "^6.6.0",
|
|
76
76
|
"ink-scroll-view": "^0.3.5",
|
|
77
77
|
"js-yaml": "^4.1.1",
|
|
@@ -79,25 +79,25 @@
|
|
|
79
79
|
"react": "^19.2.3",
|
|
80
80
|
"semver": "7.8.5",
|
|
81
81
|
"update-notifier": "^7.3.1",
|
|
82
|
-
"ws": "8.21.
|
|
82
|
+
"ws": "8.21.1",
|
|
83
83
|
"zod": "^4.3.6"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@eslint/js": "^10.0.1",
|
|
87
87
|
"@types/bun": "latest",
|
|
88
88
|
"@types/js-yaml": "^4.0.9",
|
|
89
|
-
"@types/node": "^26.
|
|
89
|
+
"@types/node": "^26.1.1",
|
|
90
90
|
"@types/prompts": "^2.4.9",
|
|
91
91
|
"@types/react": "^19.2.7",
|
|
92
92
|
"@types/semver": "^7.7.1",
|
|
93
93
|
"@types/update-notifier": "^6.0.8",
|
|
94
94
|
"@types/ws": "^8.18.0",
|
|
95
|
-
"eslint": "^10.
|
|
95
|
+
"eslint": "^10.7.0",
|
|
96
96
|
"husky": "^9.1.7",
|
|
97
97
|
"lint-staged": "^17.0.4",
|
|
98
|
-
"prettier": "^3.
|
|
98
|
+
"prettier": "^3.9.5",
|
|
99
99
|
"typescript": "^6.0.2",
|
|
100
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"typescript-eslint": "^8.64.0"
|
|
101
101
|
},
|
|
102
102
|
"engines": {
|
|
103
103
|
"node": ">=20.0.0",
|