feat: add energy-aware scheduling and daily insights

- Learn a per-device 7x24 energy profile from completed tasks\n- Constrain high-energy scheduling and expose energy peaks to AI\n- Add ghost-time overlays, daily review dialog, and proactive suggestions\n- Cover energy/insights logic and local OpenAI-compatible providers with tests\n- Update validation docs and screenshots
This commit is contained in:
Misaki
2026-10-26 19:08:09 +08:00
parent 555371a4e0
commit 9bafa71667
42 changed files with 1588 additions and 47 deletions
+5
View File
@@ -7,6 +7,7 @@
#include <atomic>
#include <optional>
#include "core/EnergyProfile.h"
#include "core/ProposedDiff.h"
#include "core/SyncTypes.h"
#include "core/ScheduleItem.h"
@@ -64,6 +65,10 @@ public:
qint64 syncCursor(const QString& deviceId, QString* error = nullptr) const;
bool setSyncCursor(const QString& deviceId, qint64 seq, QString* error = nullptr);
QVector<EnergyLevel> energyLevels() const;
bool replaceEnergyLevels(const QVector<EnergyLevel>& levels);
QVector<EnergySample> completedEnergySamples() const;
private:
bool openDatabase(QString* error);
bool configureConnection(QString* error);