## Summary - The `eventide` dep was renamed to [kotatsu](https://github.com/clice-io/kotatsu) with a broad rename of CMake identifiers, namespaces, header paths, and a few module reorgs (`serde` → `codec`, `reflection` → `meta`, `common` → `support`). Align clice to the new names. - CMake: FetchContent target, option prefix (`ETD_*` → `KOTA_*`, `ETD_SERDE_*` → `KOTA_CODEC_*`), target names (`eventide::{ipc::lsp,serde::toml,deco,zest}` → `kota::{ipc::lsp,codec::toml,deco,zest}`). - Namespaces: `eventide::` → `kota::`, `eventide::serde::` → `kota::codec::`, `eventide::refl::` → `kota::meta::`. The short `et` alias is dropped — all usages now spell `kota::` directly. - Headers: `eventide/*` → `kota/*`, including special cases `serde/serde/raw_value.h` → `codec/raw_value.h`, `ipc/json_codec.h` → `ipc/codec/json.h`, `common/meta.h` → `support/type_traits.h`, `common/ranges.h` → `support/ranges.h`. - Kotatsu split `JsonPeer` / `BincodePeer` out of `ipc/peer.h` into the codec-specific headers; added `kota/ipc/codec/{json,bincode}.h` includes where those types are used. - Depends on clice-io/kotatsu#110 (already merged) to prevent `-Wall -Wextra -Werror` from transitively propagating out of `kota::project_options`. ## Test plan - [x] `pixi run unit-test RelWithDebInfo` — 518/518 pass (9 skipped, unchanged from main) - [x] `pixi run integration-test RelWithDebInfo` — 119/119 pass - [x] `pixi run smoke-test RelWithDebInfo` — 2/2 pass - [x] `pixi run format` clean ## Notes - `tests/smoke/rapid_edit.jsonl` was intentionally left untouched: the embedded `#include "eventide/..."` strings are frozen snapshots of file contents the client sent at record time, not clice source. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated internal dependencies from `eventide` to `kota`, including async runtime, IPC transport, serialization codec, and metadata libraries. * Updated build configuration and CMake variables to align with the new dependency. * **Refactor** * Migrated internal implementation to use `kota` namespace and APIs throughout the codebase. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
63 lines
1.9 KiB
C++
63 lines
1.9 KiB
C++
#include <string>
|
|
#include <string_view>
|
|
|
|
#include "support/logging.h"
|
|
|
|
#include "kota/deco/deco.h"
|
|
#include "kota/zest/zest.h"
|
|
|
|
namespace {
|
|
|
|
using kota::deco::decl::KVStyle;
|
|
|
|
struct TestOptions {
|
|
DecoKV(style = KVStyle::JoinedOrSeparate,
|
|
names = {"--test-filter", "--test-filter="},
|
|
help = "Filter tests by name",
|
|
required = false)
|
|
<std::string> test_filter;
|
|
|
|
DecoKV(style = KVStyle::JoinedOrSeparate,
|
|
names = {"--log-level", "--log-level="},
|
|
help = "Log level: trace/debug/info/warn/err",
|
|
required = false)
|
|
<std::string> log_level;
|
|
|
|
DecoKV(style = KVStyle::JoinedOrSeparate,
|
|
names = {"--test-dir", "--test-dir="},
|
|
help = "Test data directory",
|
|
required = false)
|
|
<std::string> test_dir;
|
|
};
|
|
|
|
} // namespace
|
|
|
|
int main(int argc, const char** argv) {
|
|
auto args = kota::deco::util::argvify(argc, argv);
|
|
auto parsed = kota::deco::cli::parse<TestOptions>(args);
|
|
|
|
std::string_view filter = {};
|
|
if(parsed.has_value() && parsed->options.test_filter.has_value()) {
|
|
filter = *parsed->options.test_filter;
|
|
}
|
|
|
|
if(parsed.has_value() && parsed->options.log_level.has_value()) {
|
|
auto level = *parsed->options.log_level;
|
|
if(level == "trace") {
|
|
clice::logging::options.level = clice::logging::Level::trace;
|
|
} else if(level == "debug") {
|
|
clice::logging::options.level = clice::logging::Level::debug;
|
|
} else if(level == "info") {
|
|
clice::logging::options.level = clice::logging::Level::info;
|
|
} else if(level == "warn") {
|
|
clice::logging::options.level = clice::logging::Level::warn;
|
|
} else if(level == "err") {
|
|
clice::logging::options.level = clice::logging::Level::err;
|
|
}
|
|
}
|
|
|
|
clice::logging::stderr_logger("test", clice::logging::options);
|
|
|
|
return kota::zest::Runner::instance().run_tests(filter);
|
|
}
|