feat: implement MoloApp plans 01-15 with integration

Full C++23 framework tree: runtime, observability, security,
data, app, realtime, supervisor, clients, CLI, example plus
enterprise tenancy, audit, operability, governance,
supplychain. Postgres via docker compose for tests.
This commit is contained in:
2026-10-23 18:20:04 +02:00
parent 54068f1953
commit 3c4334cec9
1068 changed files with 100899 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include <string>
#include <vector>
namespace molo::ai {
// SSE parser for OpenAI-compatible chat streams. Shared with the 06-realtime
// SSE client contract: text/event-stream, data lines, blank-line framing,
// end on "data: [DONE]". This file owns the CLI copy; the realtime part
// reuses the same framing rules, never a duplicate parser.
class SseStreamParser {
public:
void feed(const std::string& chunk);
std::vector<std::string> take_events();
bool done() const { return done_; }
void reset();
private:
std::string buffer_;
std::vector<std::string> events_;
bool done_ = false;
};
} // namespace molo::ai