@sma1lboy/kobe 0.8.4 → 0.8.6

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.
@@ -122,13 +122,19 @@ export function createPtySessionManager({
122
122
  }
123
123
  const [cmd, ...args] = spec.command
124
124
  const spawnEnv = typeof env === "function" ? env() : env
125
- const pty = spawnPty(cmd, args, {
126
- name: "xterm-256color",
127
- cols,
128
- rows,
129
- cwd: spec.cwd,
130
- env: spawnEnv,
131
- })
125
+ let pty
126
+ try {
127
+ pty = spawnPty(cmd, args, {
128
+ name: "xterm-256color",
129
+ cols,
130
+ rows,
131
+ cwd: spec.cwd,
132
+ env: spawnEnv,
133
+ })
134
+ } catch (error) {
135
+ const path = typeof spawnEnv.PATH === "string" && spawnEnv.PATH ? "set" : "missing"
136
+ throw new Error(`PTY spawn failed (command ${cmd}, cwd ${spec.cwd}, PATH ${path}): ${error instanceof Error ? error.message : String(error)}`)
137
+ }
132
138
  const entry = {
133
139
  pty,
134
140
  scrollback: createScrollback(scrollbackCap),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@sma1lboy/kobe",
4
- "version": "0.8.4",
4
+ "version": "0.8.6",
5
5
  "description": "TUI orchestrator for Claude Code (codename)",
6
6
  "type": "module",
7
7
  "packageManager": "bun@1.3.13",
@@ -42,8 +42,10 @@
42
42
  "check-i18n": "bun run scripts/check-i18n.ts",
43
43
  "test": "bun run test:fast && bun run test:socket",
44
44
  "perf:golden": "bun scripts/perf-golden.ts",
45
+ "pty:soak": "bun scripts/pty-soak.ts",
45
46
  "test:fast": "vitest run --passWithNoTests --minWorkers=1 --maxWorkers=8",
46
47
  "test:socket": "KOBE_INCLUDE_SOCKET=1 vitest run test/daemon --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests",
48
+ "test:socket:coverage": "KOBE_INCLUDE_SOCKET=1 KOBE_COVERAGE_DAEMON=1 vitest run test/daemon --coverage --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests",
47
49
  "test:behavior": "KOBE_INCLUDE_BEHAVIOR=1 vitest run test/behavior --pool forks --minWorkers=1 --maxWorkers=1 --passWithNoTests",
48
50
  "test:render": "bun test test/render --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage-render",
49
51
  "coverage": "vitest run --coverage --passWithNoTests",