Third slice of T-99. After this `clide status` actually does
something when typed in a shell.
* native/clide-cli/clide.c — ~250 LOC C. Walks CWD up to .git,
hashes the workspace root with FNV-1a 64-bit (byte-for-byte
identical to the Dart side, pinned via reference vectors in
paths_test.dart), opens the per-workspace socket, and ships argv
across the wire as `{cmd:"_argv", args:{argv:[...]}}`.
* lib/src/cli/argv_dispatch.dart — registers the `_argv` sentinel
command on the dispatcher. The handler runs the T-125 parser on
the embedded argv and either re-dispatches the unwrapped request
through the same dispatcher or returns the pre-built error
response. Keeps the parser in Dart so the C side stays dumb.
* lib/src/ipc/paths.dart — fnv1a64Hex hoisted to a public helper +
fixed to format as unsigned (Dart `int` is signed int64; the high
bit lit a leading minus that broke the cross-language compare).
Reference-vector tests added against the FNV reference.
* `make clide-cli` builds it via the host `cc`; output lands at
native/<platform>/clide and is gitignored. Test
test/cli/clide_cli_e2e_test.dart compiles + exercises the full
round-trip; skips cleanly when no cc is on PATH.
* CONTRIBUTING.md gets a "C clide shell client" section.
T-128 (delete legacy IPC) unblocked.
Co-Authored-By: Claude <noreply@anthropic.com>
123 lines
3.1 KiB
Plaintext
123 lines
3.1 KiB
Plaintext
# -- macOS sandbox (machine-specific paths; template is committed) ------
|
|
/macos/Runner/DebugProfile.entitlements
|
|
|
|
# -- Flutter / Dart (single package at repo root) -----------------------
|
|
/.dart_tool/
|
|
/.packages
|
|
/.flutter-plugins
|
|
/.flutter-plugins-dependencies
|
|
/build/
|
|
/.idea/
|
|
/.vscode/
|
|
/*.iml
|
|
/ios/Pods/
|
|
/macos/Pods/
|
|
/windows/flutter/ephemeral/
|
|
/linux/flutter/ephemeral/
|
|
/macos/Flutter/ephemeral/
|
|
/bin/clide
|
|
/bin/clide.exe
|
|
# pubspec.lock is committed (supply-chain policy).
|
|
|
|
# UI harness (Playwright) — npm + output artefacts.
|
|
tools/ui/node_modules/
|
|
tools/ui/out/
|
|
tools/ui/test-results/
|
|
tools/ui/playwright-report/
|
|
tools/ui/.serve.pid
|
|
|
|
# -- dugite-native (bundled git, downloaded at build time) ---------------
|
|
/native/dugite/
|
|
|
|
# -- dart doc output (generated by `dart doc`, uploaded as CI artefact) -
|
|
/doc/
|
|
|
|
# -- coverage output (regenerated by every `flutter test --coverage`).
|
|
# Floor lives in pubspec.yaml `coverage_floor:`; nothing under
|
|
# coverage/ is committed.
|
|
/coverage/
|
|
|
|
# -- Tee'd flutter-test output (see Makefile `make t T=...`) ---------
|
|
# Lives under test/ so the repo root stays uncluttered.
|
|
/test/.test-output/
|
|
|
|
# -- Build-time stamps generated by `make gen-build-info` -----------
|
|
# version (from pubspec.yaml), commit (git short SHA), date (UTC).
|
|
# Regenerated on every make build/run/test target.
|
|
/lib/src/build_info.g.dart
|
|
|
|
# -- Built C `clide` shell client (T-126). Source under ----------
|
|
# native/clide-cli/ stays in git; the per-platform compiled binary
|
|
# is built by `make clide-cli`.
|
|
/native/linux-x64/clide
|
|
/native/macos-arm64/clide
|
|
/native/macos-x64/clide
|
|
|
|
# -- Test, coverage, profile output ------------------------------------
|
|
*.test
|
|
*.out
|
|
*.prof
|
|
*.pprof
|
|
coverage.*
|
|
/tmp/
|
|
|
|
# Alchemist golden-test failure artefacts (diff images written when a
|
|
# pixel-compare fails locally; the committed fixtures live under
|
|
# app/test/goldens/goldens/{ci,linux}/).
|
|
test/goldens/failures/
|
|
|
|
# -- pql per-repo state (index + planning DB, rebuilt from markdown) ----
|
|
/.pql/*
|
|
!/.pql/changelog/
|
|
|
|
# -- SQLite index files (defensive; should never land at repo root) ----
|
|
*.sqlite
|
|
*.sqlite-journal
|
|
*.sqlite-wal
|
|
*.sqlite-shm
|
|
*.db
|
|
|
|
# -- Editor / IDE ------------------------------------------------------
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# -- OS cruft ----------------------------------------------------------
|
|
.DS_Store
|
|
._*
|
|
Thumbs.db
|
|
|
|
# -- Secrets -----------------------------------------------------------
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
*-credentials.md
|
|
|
|
# -- Claude Code — user-specific settings only; project-level settings
|
|
# and skills are committed
|
|
.claude/settings.local.json
|
|
|
|
# -- Legacy Python clide (under legacy/, pre-dating the Flutter rebuild).
|
|
# Narrowly scoped so repo-root ignores stay focused on the current
|
|
# toolchain.
|
|
legacy/.venv/
|
|
legacy/.ruff_cache/
|
|
legacy/**/__pycache__/
|
|
legacy/**/*.py[cod]
|
|
legacy/**/*$py.class
|
|
legacy/**/.pytest_cache/
|
|
legacy/**/.mypy_cache/
|
|
legacy/**/.ruff_cache/
|
|
legacy/**/*.egg-info/
|
|
legacy/**/htmlcov/
|
|
legacy/**/.coverage
|
|
legacy/**/.coverage.*
|
|
.clide/settings.yaml
|
|
.claude/skills/pql/
|
|
|
|
# frame0-wireframe local ID ↔ Frame0 ID mapping; per-machine state.
|
|
*.idmap.json
|
|
.pql/*
|
|
!.pql/changelog/
|