@sma1lboy/kobe 0.7.87 → 0.7.89

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.
@@ -17,6 +17,7 @@ import { createServer } from "node:http"
17
17
  import { spawn } from "node-pty"
18
18
  import { WebSocketServer } from "ws"
19
19
  import { allowedHostForBindHost, originAllowed } from "./origin-policy.mjs"
20
+ import { ptyEnv } from "./pty-env.mjs"
20
21
  import { createScrollback } from "./pty-scrollback.mjs"
21
22
  import { createPtySessionManager } from "./pty-session-lifecycle.mjs"
22
23
 
@@ -28,16 +29,6 @@ const HEALTH_MARKER = "kobe-web"
28
29
  const HOST = process.env.KOBE_WEB_HOST?.trim() || "127.0.0.1"
29
30
  const ALLOWED_HOST = allowedHostForBindHost(HOST)
30
31
 
31
- function ptyEnv() {
32
- const { NO_COLOR: _noColor, ...env } = process.env
33
- // Codex/CI shells often set NO_COLOR=1. The browser PTY is a real terminal
34
- // surface, so don't let the launcher process accidentally turn off colors in
35
- // Claude, Codex, shells, or common CLI tools.
36
- env.CLICOLOR = env.CLICOLOR ?? "1"
37
- env.COLORTERM = env.COLORTERM || "truecolor"
38
- return env
39
- }
40
-
41
32
  async function fetchSpec(taskId, mode) {
42
33
  // e2e/dev harness override: run an arbitrary TUI (dev:mock / dev:sandbox) in
43
34
  // the PTY instead of resolving a task's engine via the daemon — so a Playwright
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.7.87",
4
+ "version": "0.7.89",
5
5
  "description": "TUI orchestrator for Claude Code (codename)",
6
6
  "type": "module",
7
7
  "packageManager": "bun@1.3.13",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "scripts": {
27
27
  "dev": "env KOBE_DEV=1 bun --conditions=browser ./src/cli/index.ts",
28
+ "dev:mock": "env KOBE_DEV=1 bun ./src/tui-react/mock/host.tsx",
28
29
  "dev:mock-react": "env KOBE_DEV=1 bun ./src/tui-react/mock/host.tsx",
29
30
  "dev:mock-react-task-dialogs": "env KOBE_DEV=1 bun ./src/tui-react/component/mock-dialogs-host.tsx",
30
31
  "dev:mock-react-history": "env KOBE_DEV=1 bun ./src/tui-react/history/mock-host.tsx",