claude-threads 1.8.2 → 1.8.3
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 +15 -0
- package/README.md +2 -3
- package/dist/index.js +812 -793
- package/dist/mcp/permission-server.js +14 -23
- package/package.json +5 -5
|
@@ -5,43 +5,25 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
function __accessProp(key) {
|
|
9
|
-
return this[key];
|
|
10
|
-
}
|
|
11
|
-
var __toESMCache_node;
|
|
12
|
-
var __toESMCache_esm;
|
|
13
8
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
-
var canCache = mod != null && typeof mod === "object";
|
|
15
|
-
if (canCache) {
|
|
16
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
-
var cached = cache.get(mod);
|
|
18
|
-
if (cached)
|
|
19
|
-
return cached;
|
|
20
|
-
}
|
|
21
9
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
10
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
11
|
for (let key of __getOwnPropNames(mod))
|
|
24
12
|
if (!__hasOwnProp.call(to, key))
|
|
25
13
|
__defProp(to, key, {
|
|
26
|
-
get:
|
|
14
|
+
get: () => mod[key],
|
|
27
15
|
enumerable: true
|
|
28
16
|
});
|
|
29
|
-
if (canCache)
|
|
30
|
-
cache.set(mod, to);
|
|
31
17
|
return to;
|
|
32
18
|
};
|
|
33
19
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
-
var __returnValue = (v) => v;
|
|
35
|
-
function __exportSetter(name, newValue) {
|
|
36
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
-
}
|
|
38
20
|
var __export = (target, all) => {
|
|
39
21
|
for (var name in all)
|
|
40
22
|
__defProp(target, name, {
|
|
41
23
|
get: all[name],
|
|
42
24
|
enumerable: true,
|
|
43
25
|
configurable: true,
|
|
44
|
-
set:
|
|
26
|
+
set: (newValue) => all[name] = () => newValue
|
|
45
27
|
});
|
|
46
28
|
};
|
|
47
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -6297,7 +6279,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
6297
6279
|
}
|
|
6298
6280
|
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
6299
6281
|
function getTime(strictTimeZone) {
|
|
6300
|
-
return function
|
|
6282
|
+
return function time(str) {
|
|
6301
6283
|
const matches = TIME.exec(str);
|
|
6302
6284
|
if (!matches)
|
|
6303
6285
|
return false;
|
|
@@ -17690,7 +17672,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
17690
17672
|
if (!duplex.push(data))
|
|
17691
17673
|
ws.pause();
|
|
17692
17674
|
});
|
|
17693
|
-
ws.once("error", function
|
|
17675
|
+
ws.once("error", function error(err) {
|
|
17694
17676
|
if (duplex.destroyed)
|
|
17695
17677
|
return;
|
|
17696
17678
|
terminateOnDestroy = false;
|
|
@@ -17708,7 +17690,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
17708
17690
|
return;
|
|
17709
17691
|
}
|
|
17710
17692
|
let called = false;
|
|
17711
|
-
ws.once("error", function
|
|
17693
|
+
ws.once("error", function error(err2) {
|
|
17712
17694
|
called = true;
|
|
17713
17695
|
callback(err2);
|
|
17714
17696
|
});
|
|
@@ -53762,6 +53744,9 @@ class ClaudeCli extends EventEmitter2 {
|
|
|
53762
53744
|
this.stderrBuffer = this.stderrBuffer.slice(-10240);
|
|
53763
53745
|
}
|
|
53764
53746
|
this.log.debug(`stderr: ${text.trim()}`);
|
|
53747
|
+
if (process.env.INTEGRATION_TEST === "1") {
|
|
53748
|
+
process.stderr.write(text);
|
|
53749
|
+
}
|
|
53765
53750
|
this.maybeEmitRateLimit(text);
|
|
53766
53751
|
});
|
|
53767
53752
|
this.process.on("error", (err) => {
|
|
@@ -53785,6 +53770,12 @@ class ClaudeCli extends EventEmitter2 {
|
|
|
53785
53770
|
`;
|
|
53786
53771
|
const preview = typeof content === "string" ? content.substring(0, 50) : `[${content.length} blocks]`;
|
|
53787
53772
|
this.log.debug(`Sending: ${preview}...`);
|
|
53773
|
+
if (process.env.INTEGRATION_TEST === "1") {
|
|
53774
|
+
const stack = new Error().stack?.split(`
|
|
53775
|
+
`).slice(2, 6).join(" > ").replace(/\s+at\s+/g, " < ") ?? "?";
|
|
53776
|
+
process.stderr.write(`[claude-cli sendMessage pid=${this.process.pid}] ${preview} | ${stack}
|
|
53777
|
+
`);
|
|
53778
|
+
}
|
|
53788
53779
|
this.process.stdin.write(msg);
|
|
53789
53780
|
}
|
|
53790
53781
|
sendToolResult(toolUseId, content) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-threads",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
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",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"test:watch": "bun test src/ --watch",
|
|
18
18
|
"test:coverage": "bun test src/ --coverage",
|
|
19
19
|
"test:integration:setup": "docker compose -f tests/integration/docker/docker-compose.yml up -d && bun run tests/integration/setup/wait-for-mattermost.ts && bun run tests/integration/setup/setup-mattermost.ts",
|
|
20
|
-
"test:integration:run": "INTEGRATION_TEST=1 bun test tests/integration/suites --timeout
|
|
20
|
+
"test:integration:run": "INTEGRATION_TEST=1 bun test tests/integration/suites --timeout 120000",
|
|
21
21
|
"test:integration": "bun run test:integration:setup && bun run test:integration:run",
|
|
22
22
|
"test:integration:teardown": "docker compose -f tests/integration/docker/docker-compose.yml down -v",
|
|
23
23
|
"test:integration:clean": "bun run tests/integration/setup/teardown.ts",
|
|
24
24
|
"test:integration:slack:setup": "bun run tests/integration/fixtures/slack/mock-server.ts &",
|
|
25
|
-
"test:integration:slack:run": "TEST_PLATFORMS=slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout
|
|
25
|
+
"test:integration:slack:run": "TEST_PLATFORMS=slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout 120000",
|
|
26
26
|
"test:integration:slack:teardown": "pkill -f 'mock-server.ts' || true",
|
|
27
|
-
"test:integration:slack": "bun run test:integration:slack:teardown; bun run tests/integration/fixtures/slack/mock-server.ts & sleep 2 && TEST_PLATFORMS=slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout
|
|
28
|
-
"test:integration:all": "bun run test:integration:setup && bun run tests/integration/fixtures/slack/mock-server.ts & sleep 2 && TEST_PLATFORMS=mattermost,slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout
|
|
27
|
+
"test:integration:slack": "bun run test:integration:slack:teardown; bun run tests/integration/fixtures/slack/mock-server.ts & sleep 2 && TEST_PLATFORMS=slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout 120000; bun run test:integration:slack:teardown",
|
|
28
|
+
"test:integration:all": "bun run test:integration:setup && bun run tests/integration/fixtures/slack/mock-server.ts & sleep 2 && TEST_PLATFORMS=mattermost,slack INTEGRATION_TEST=1 bun test tests/integration/suites --timeout 120000; bun run test:integration:slack:teardown",
|
|
29
29
|
"lint": "eslint src/",
|
|
30
30
|
"lint:fix": "eslint src/ --fix",
|
|
31
31
|
"typecheck": "tsc --noEmit",
|