Complete three overdue cleanups discovered during macOS health check: D-56 daemon dissolution: delete bin/clide.dart, DaemonServer, and orphaned tests (test/cli/, subprocess_test, in_process_test). Update stale "clide --daemon" references in i18n catalogs, error messages, editor_commands, CI scripts, and decision records. ptyc retirement: delete ptyc/ source tree, PtySession, scm_rights. Remove from Toolchain resolution, ToolCheck gate, backend serialization, testmode harness, Makefile, CI, and sandbox entitlements. PTY spawning uses NativePty (Dart FFI forkpty) since the terminal was absorbed in-tree. D-5 amended. Golden tests: wire the existing but never-applied clideGoldenConfig via flutter_test_config.dart. Disable CI goldens (Skia anti-aliasing differs between macOS/Linux even with Ahem). Keep platform-keyed goldens only — goldens/linux/ and goldens/macos/ each run on their own OS. Test suite: 826 pass, 0 fail on macOS (was 829 pass, 11 fail). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
820 B
Dart
24 lines
820 B
Dart
/// Error type for the PTY subsystem. Flutter-free — `dart:io`'s
|
|
/// `OSError` + `ProcessException` don't quite fit (we're a mix of
|
|
/// syscall-level and subprocess-level failures), and we can't pull
|
|
/// `PlatformException` from `package:flutter/services.dart` since the
|
|
/// core library stays Flutter-free per D-005.
|
|
library;
|
|
|
|
/// A PTY operation failed. [op] identifies the step (`forkpty`,
|
|
/// `read`, `ioctl`, etc.); [errno] is POSIX errno when the failure
|
|
/// came from a syscall, otherwise `null`.
|
|
class PtyException implements Exception {
|
|
const PtyException(this.op, this.message, {this.errno});
|
|
|
|
final String op;
|
|
final String message;
|
|
final int? errno;
|
|
|
|
@override
|
|
String toString() {
|
|
final suffix = errno != null ? ' (errno=$errno)' : '';
|
|
return 'PtyException($op): $message$suffix';
|
|
}
|
|
}
|