mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
Settings → Chat gets "Your AI subscriptions": one switch per provider, with whether its official terminal tool is installed and how to sign in. On, the chat goes through that tool (Claude Code, Antigravity CLI or Gemini CLI, Codex CLI, Cursor CLI, Copilot CLI) signed in with the user's account; off, through the API key. Replaces the hidden "empty the key" rule of 0.5.5. The tools are found in the usual install folders (nvm, fnm, Volta, Bun, pnpm, Homebrew…) and else through the login shell, once, in the background. Each run is read-only: no shell, no edits, no user hooks/MCP/extensions where the tool can turn them off, web search for the chat only; a dropped file is read with no web. Pure parts tested in scripts/test-cli-relay.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
9 lines
341 B
Bash
Executable File
9 lines
341 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-cli-relay.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc -swift-version 6 -strict-concurrency=complete \
|
|
NotchBuddy/Sources/App/CLIRelay.swift tests/CLIRelayTests.swift -o "$TEST_DIR/cli-relay-tests"
|
|
"$TEST_DIR/cli-relay-tests"
|