Step 230: Enhance session recorder

This commit is contained in:
Bill
2026-02-10 08:33:19 -07:00
parent 718c99fef9
commit 835b90bbac
9 changed files with 273 additions and 7 deletions

View File

@@ -62,6 +62,8 @@ public:
void setUseAnnotationShapes(bool value) { useAnnotationShapes_ = value; }
bool getBlockVulnerableImports() const { return blockVulnerableImports_; }
void setBlockVulnerableImports(bool value) { blockVulnerableImports_ = value; }
bool getAutoRecordSessions() const { return autoRecordSessions_; }
void setAutoRecordSessions(bool value) { autoRecordSessions_ = value; }
int getLargeFileWarnMB() const { return largeFileWarnMB_; }
void setLargeFileWarnMB(int value) { largeFileWarnMB_ = value; }
int getLargeFileTextMB() const { return largeFileTextMB_; }
@@ -101,6 +103,7 @@ public:
reduceMotion_ = j.value("reduceMotion", reduceMotion_);
useAnnotationShapes_ = j.value("useAnnotationShapes", useAnnotationShapes_);
blockVulnerableImports_ = j.value("blockVulnerableImports", blockVulnerableImports_);
autoRecordSessions_ = j.value("autoRecordSessions", autoRecordSessions_);
largeFileWarnMB_ = j.value("largeFileWarnMB", largeFileWarnMB_);
largeFileTextMB_ = j.value("largeFileTextMB", largeFileTextMB_);
largeFileDisableHighlightMB_ = j.value("largeFileDisableHighlightMB", largeFileDisableHighlightMB_);
@@ -147,6 +150,7 @@ public:
j["reduceMotion"] = reduceMotion_;
j["useAnnotationShapes"] = useAnnotationShapes_;
j["blockVulnerableImports"] = blockVulnerableImports_;
j["autoRecordSessions"] = autoRecordSessions_;
j["largeFileWarnMB"] = largeFileWarnMB_;
j["largeFileTextMB"] = largeFileTextMB_;
j["largeFileDisableHighlightMB"] = largeFileDisableHighlightMB_;
@@ -230,6 +234,7 @@ private:
bool reduceMotion_ = false;
bool useAnnotationShapes_ = true;
bool blockVulnerableImports_ = false;
bool autoRecordSessions_ = false;
int largeFileWarnMB_ = 1;
int largeFileTextMB_ = 5;
int largeFileDisableHighlightMB_ = 10;