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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user