mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
- ClaudeHost: recognise terminal sessions from the hook's term_program / bundle_id and route them to the Claude Code pill (AgentTask.hostApp). - The pill says "Claude Code" and "Open <terminal>" brings it forward; "Handled in …" notes name the right app. - New setting, off by default: answer terminal sessions' questions and permissions in the notch. Off, the terminal asks itself straight away. - Tests: scripts/test-claude-host.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
305 B
Bash
Executable File
9 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-claude-host.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc NotchBuddy/Sources/App/ClaudeHost.swift \
|
|
tests/ClaudeHostTests.swift -o "$TEST_DIR/claude-host-tests"
|
|
"$TEST_DIR/claude-host-tests"
|