Complete sprint 141-145 scaffolding, tooling, and tests

This commit is contained in:
Bill
2026-02-24 15:34:10 -07:00
parent 1c0645b2f9
commit 61e3f6ca32
94 changed files with 2878 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#pragma once
// Step 1652: C++ text-first default profile model.
#include <string>
#include <nlohmann/json.hpp>
struct CppTextFirstDefaultProfile {
std::string profileId;
std::string language;
std::string defaultMode;
bool deterministicProjection = true;
bool valid = false;
};
class CppTextFirstDefaultProfileFactory {
public:
static CppTextFirstDefaultProfile make(const std::string& profileId,
const std::string& language,
const std::string& defaultMode,
bool deterministicProjection) {
bool valid = !profileId.empty()
&& language == "cpp"
&& defaultMode == "text_first";
return {profileId, language, defaultMode, deterministicProjection, valid};
}
static nlohmann::json toJson(const CppTextFirstDefaultProfile& v) {
return {{"profile_id", v.profileId},
{"language", v.language},
{"default_mode", v.defaultMode},
{"deterministic_projection", v.deterministicProjection},
{"valid", v.valid}};
}
};