Files
clide/pubspec.yaml
T
jpmschweitzerandClaude edd8a20e0d add Dart PTY wrapper and test-core harness
PtySession wraps the ptyc helper: socketpair + Process.start + recvmsg
with SCM_RIGHTS for master-fd transfer, a background isolate that
loops on blocking read() and posts byte chunks, plus write/resize/
kill/close. close() SIGTERMs the child so the PTY's EOF wakes the
reader naturally; SIGKILL + fd close + isolate kill cover the edge
where the shell ignores SIGTERM — avoids the known Linux quirk where
closing an fd doesn't unblock an in-flight read() on it.

Env defaults stamp TERM=xterm-256color, COLORTERM=truecolor,
CLICOLOR_FORCE=1 so shells + tmux + Claude emit 24-bit sequences
that xterm.dart can render. User env (HOME / USER / SHELL) still
inherits via mergePtyEnv().

ffi: 2.1.3 added as a runtime dep — the FFI bindings for socketpair,
recvmsg, read/write, and ioctl(TIOCSWINSZ) need an allocator we're
not writing by hand. Justified in pubspec + listed in licenses.yaml
per D-042.

make test-core (ci/test_core.sh) runs the Flutter-free core tests
under a 120s hard timeout with setsid + process-group kill, wired
ahead of the fast app tests in push-check so a hung PTY test can't
wedge a pre-push. Current core suite: 24 tests in ~1s.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-22 09:01:01 +02:00

45 lines
1.6 KiB
YAML

# clide — Dart core package.
#
# This is the repo-root package: the `clide` CLI (one-shot subcommand
# mode) and the `clide --daemon` long-running process both compile from
# `bin/clide.dart` against `lib/`. It has NO Flutter dependency so
# `dart compile exe` produces a lean static binary.
#
# The Flutter desktop UI lives under `app/` as a separate package that
# depends on this one via a path: dependency. See ADR 0005 for the
# layout rationale.
#
# Version is mirrored from project.yaml on every bump. project.yaml is
# the single source of truth — if you change one without the other,
# `make build`'s ldflag stamping will reveal the drift.
name: clide
description: >-
Flutter desktop IDE for Claude Code — Dart core (CLI + daemon + shared
library). The Flutter UI lives under app/.
version: 2.0.0-dev
publish_to: none
repository: https://git.schweitz.net/jpmschweitzer/clide
environment:
sdk: ">=3.5.0 <4.0.0"
# Prefer-zero-deps. Anything added here must be justified against the
# "write it yourself" default (see memory:
# feedback_dart_deps_minimal_locked_cve_checked.md). Exact-pin; never
# carets.
dependencies:
# Dart-team-maintained allocator (`calloc`) + type helpers on top of
# dart:ffi. Saves ~50 LOC of malloc/free boilerplate for the PTY
# wrapper's libc bindings (socketpair, recvmsg with SCM_RIGHTS,
# ioctl). Tiny, zero transitive deps. Listed in
# app/assets/licenses.yaml per D-042.
ffi: 2.1.3
dev_dependencies:
lints: 5.0.0
test: 1.25.8
# Mocks at IO boundaries (daemon subprocess, socket). Null-safe,
# no codegen. Hand-rolled fakes for ChangeNotifier-style services.
mocktail: 1.0.4