Files
clide/pubspec.yaml
T
jpmschweitzerandClaude 235cbcc046 add Dart core package — IPC envelopes, daemon, ping round-trip
First real content for the `clide` Dart package at the repo root.
One AOT-compiled binary (ADR 0005) with two modes:

  * `clide --daemon`  long-running unix-socket server; listens on
    `$XDG_RUNTIME_DIR/clide-$USER.sock` with stale-socket
    reclaim, accepts JSON-lines request/response traffic, clean
    SIGTERM shutdown unlinks the socket file.
  * `clide <subcommand>`  one-shot; opens the socket, sends a
    request, writes the response JSON to stdout, exits with the
    dispatcher's error code per ADR 0006 (0/1/2/3/4). Unknown
    subcommands forward to the daemon so extensions can register
    their own without CLI changes.

Tier 0 handlers: `ping` (returns pong + version + UTC ts) and
`version`. Both are covered by `test/ipc/` + `test/daemon/`; the
subprocess test builds `bin/clide`, starts it, pings it, SIGTERMs
it, and asserts the socket file disappears.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-21 15:36:40 +02:00

39 lines
1.3 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: {}
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