claude-threads 1.5.0 → 1.5.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
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.5.1] - 2026-03-09
9
+
10
+ ### Fixed
11
+ - **Crash when stdin is not a TTY** - Bot now falls back to headless mode when stdin is not a TTY (e.g., when run via daemon in a non-interactive shell) (#287)
12
+
8
13
  ## [1.5.0] - 2026-03-08
9
14
 
10
15
  ### Added
package/dist/index.js CHANGED
@@ -79269,7 +79269,7 @@ class InkProvider {
79269
79269
  }
79270
79270
  async start() {
79271
79271
  const { config, onQuit, toggleCallbacks } = this.options;
79272
- if (!process.stdout.isTTY) {
79272
+ if (!process.stdout.isTTY || !process.stdin.isTTY) {
79273
79273
  throw new Error("InkProvider requires an interactive terminal (TTY). Use HeadlessProvider for non-TTY environments.");
79274
79274
  }
79275
79275
  let resolveHandlers;
@@ -80542,7 +80542,7 @@ function hasRequiredCliArgs(args) {
80542
80542
  return !!(args.url && args.token && args.channel);
80543
80543
  }
80544
80544
  async function main() {
80545
- const isHeadless = opts.headless || !process.stdout.isTTY;
80545
+ const isHeadless = opts.headless || !process.stdout.isTTY || !process.stdin.isTTY;
80546
80546
  if (!isHeadless) {
80547
80547
  process.stdout.write("\x1B[2J\x1B[H");
80548
80548
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-threads",
3
- "version": "1.5.0",
3
+ "version": "1.5.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",