feat(daemon): add editor-extension watch poll protocol
This commit is contained in:
1 parent
e15e2cb2b4
commit
c7a6bad3c0
9 files changed
+122
-14
No files matched your search
@@ -120,9 +120,13 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
- Added the `ide_generate` daemon request (`vbs daemon ide generate [--profile] [--editor] [--force]`): it lowers the graph, publishes the compilation database, writes the requested editor presets (`.clangd`, `.vscode/`, `.zed/`, `.idea/`), and returns `ok`/`op=ide_generate`/`profile`/`editor` with `written` and `skipped` file lists.
|
||||
- Added `Daemon.ide_generate_writes_editor_configs` (invalid editor rejected; `.clangd` written) and a CLI help contract; Daemon suite is now 11 cases.
|
||||
|
||||
- **Wave 26 (Track E3 Editor-Extension Watch Protocol)**:
|
||||
- Added the `watch_poll` daemon request (`vbs daemon ide poll`): it drains the warm inotify watcher, buffers changed paths (bounded to 4096, shared with the daemon loop so events are never lost between requests), and returns `sequence`, `watch_events`, `changed`, `overflowed`, and `rescan_required` for editor extensions.
|
||||
- Added `Daemon.watch_poll_reports_changed_paths` (a newly created file is observed through repeated polls) and a CLI help contract; Daemon suite is now 12 cases.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement and distribution, binary-variant signing and distribution materialization, the #52 built-in-backend capability probe, and the VoidLibrary pin bump to `0002e74` done), Track E3 (daemon core, bounded `describe`, build-serving, dependency materialization, daemon-backed IDE metadata, compdb export and IDE config generation done; dedicated external editor extensions remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement and distribution, binary-variant signing and distribution materialization, the #52 built-in-backend capability probe, and the VoidLibrary pin bump to `0002e74` done), Track E3 (daemon core, bounded `describe`, build-serving, dependency materialization, daemon-backed IDE metadata, compdb export, IDE config generation and the editor watch-poll protocol done; dedicated external editor plugins remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
|
||||
## Environment notes & upstream boundaries
|
||||
|
||||
|
||||
@@ -32,4 +32,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 23 (Track C1 watcher split) | Move the Linux inotify watcher to `src/Watch/Linux/Watcher.cpp` with an explicit non-Linux boundary; update source lists/docs | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; full CTest 8/8) | `src/Watch/Linux/Watcher.cpp`, `CMakeLists.txt`, `build.cpp`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, docs |
|
||||
| Wave 24 (Track E3 daemon compdb export) | `compdb_export` daemon request + `vbs daemon compdb export` CLI: lowers the graph, publishes/selects the profile compdb, returns path/entry count | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon 10/10, full CTest 8/8) | `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/DaemonTests.cpp`, `tests/CliContracts.cmake`, docs |
|
||||
| Wave 25 (Track E3 daemon IDE generate) | `ide_generate` daemon request + `vbs daemon ide generate` CLI: lowers the graph, publishes compdb, writes editor presets, returns written/skipped lists | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon 11/11, full CTest 8/8) | `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/DaemonTests.cpp`, `tests/CliContracts.cmake`, docs |
|
||||
| Wave 26 (Track E3 editor watch protocol) | `watch_poll` daemon request + `vbs daemon ide poll`: drains the warm watcher, buffers bounded changed paths, returns sequence/events/changed/overflow state | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon 12/12, full CTest 8/8) | `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/DaemonTests.cpp`, `tests/CliContracts.cmake`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions, E4, live `conan`) | Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -478,6 +478,20 @@ dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
|
||||
- Full CTest: **8 / 8 passed** in 222.22 s.
|
||||
- `clang-format --dry-run --Werror` passes on the changed C++ files.
|
||||
|
||||
## Track E3 Editor-Extension Watch Protocol (GCC 16.2, pin `0002e74`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c cmake --build build/pinned --parallel 8
|
||||
dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
|
||||
dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
|
||||
```
|
||||
|
||||
- Build: exit 0. Daemon suite: **12 / 12 passed** in 19.76 s, including
|
||||
`watch_poll_reports_changed_paths`: a file created after daemon start is reported in
|
||||
`watch_poll.changed` within bounded polling attempts, with `sequence`/`watch_events` counters.
|
||||
- Full CTest: **8 / 8 passed** in 223.21 s.
|
||||
- `clang-format --dry-run --Werror` passes on the changed C++ files.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
Reference in new issue
Block a user