refactor(editor): share the compdb entry query with a new CLI command
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 8s

This commit is contained in:
faumaray committed 2026-12-04 08:09:11 +03:00
1 parent af735c28ff
commit f5eb489e79
9 files changed
+221 -64

No files matched your search

+2
View File
@@ -263,6 +263,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 85 (`vbs lock show` & Daemon Mermaid Graphs)**: added `vbs lock show [--project DIR]` printing the pinned lock revision, contexts, and entries (package/version/source/digest/signed state). A swarm worker added a `mermaid` format to the daemon `graph` request (flowchart nodes/links/prerequisites) with test coverage (4/5 substantive tasks; the final build/help tasks were stopped and completed by the orchestrator).
- **Wave 86 (Shared Compdb Entry Query & `vbs compdb-entries`)**: extracted the bounded compile-database projection into `Editor::query_compdb_entries` (`CompdbEntry`/`CompdbQuery`/`CompdbQueryResult`), reused by the daemon `compdb_entries` request and exposed as the `vbs compdb-entries [--project] [--build-dir] [--file] [--limit]` CLI.
## 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))**: Track C (macOS/Windows ports + dual-profile cross-compilation) and dedicated external editor plugins remain planned; Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement/distribution, binary-variant signing/distribution) and Track E3 daemon capabilities are implemented, and Track E4 now uses `Void::Net` for the registry client/server and remote cache plus `Void::Sqlite` for the StateStore when available.
+1
View File
@@ -89,4 +89,5 @@ Base HEAD: `fe0d1a6`
| Wave 83 (Tokens revoke + deps update) | `revoke_token`/`vbs tokens revoke`; swarm added daemon `deps` `update` flag | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry 9/9, Daemon suite passes, full CTest 8/8) | `include/Void/Build/Package/RegistryClient.hpp`, `src/Package/RegistryClient.cpp`, `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/{RegistryTests,DaemonTests}.cpp`, `tests/CliContracts.cmake`, docs |
| Wave 84 (Install CLI options + users pagination) | `daemon install --component/--no-cmake-export/--no-native-export`; swarm paginated `/api/v1/users` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry 9/9, full CTest 8/8) | `src/Main.cpp`, `registry/service/RegistryService.cpp`, `tests/{RegistryTests,CliContracts}.cmake/cpp`, docs |
| Wave 85 (Lock show + mermaid graph) | `vbs lock show`; swarm added daemon `graph --format mermaid` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; CLI contract passes, Daemon suite passes, full CTest 8/8) | `src/Main.cpp`, `src/Daemon/Daemon.cpp`, `tests/{DaemonTests,CliContracts}.cpp/cmake`, docs |
| Wave 86 (Shared compdb query + CLI) | `Editor::query_compdb_entries` reused by the daemon and the new `vbs compdb-entries` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon test and CLI contract pass, full CTest 8/8) | `include/Void/Build/Editor/CompDb.hpp`, `src/Editor/CompDb.cpp`, `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/CliContracts.cmake`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] 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) |
+7
View File
@@ -1281,6 +1281,13 @@ dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
re-run by the orchestrator). Registry suite: **9 / 9 passed** (11.10 s).
- `vbs_cli_contract` passes (8.53 s).
## Shared Compdb Query & `vbs compdb-entries` (GCC 16.2, pin `0002e74`)
- `Editor::query_compdb_entries` now backs both the daemon `compdb_entries` request and the new
`vbs compdb-entries` CLI; `Daemon.compdb_entries_queries_published_database` still passes
(4.56 s) and the CLI contract covers `--help` and the no-database error (13.73 s).
- Full CTest: **8 / 8 passed** in 267.19 s.
## 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).