- Add Journal.AI project with LLamaSharp-based AI service (Phi-3 model) - Implement coach sessions (daily check-in, evening review, weekly review) - Add conversation CRUD with SQLCipher persistence - AI chat with full conversation history for context-aware replies - Frontend: CoachPanel, AI stores, conversation stores, side panel UI - Conversation list with create, rename, and delete support - Fix Phi-3 output quality (system prompt leaking, token cleanup, JSON filtering) - Fix CREATEDRAFT kind override in coach sessions Co-Authored-By: Oz <oz-agent@warp.dev>
33 lines
918 B
C#
33 lines
918 B
C#
namespace Journal.Core.Dtos;
|
|
|
|
public sealed record CoachPlanDto(
|
|
string Kind,
|
|
string Title,
|
|
string Summary,
|
|
IReadOnlyList<string> Questions,
|
|
IReadOnlyList<string> SuggestedNextActions,
|
|
IReadOnlyList<string> SuggestedTags,
|
|
IReadOnlyList<CoachEvidenceDto> Evidence,
|
|
CoachPatchProposalDto? PatchProposal = null);
|
|
|
|
public sealed record CoachEvidenceDto(
|
|
string? RecordId,
|
|
string Text);
|
|
|
|
public sealed record CoachPatchProposalDto(
|
|
string Kind,
|
|
string? Description = null,
|
|
string? Content = null);
|
|
|
|
public sealed record CoachContextDto(
|
|
string DateLocal,
|
|
string? WeekStartLocal = null,
|
|
string? WeekEndLocal = null,
|
|
IReadOnlyList<string>? RecentEntries = null,
|
|
IReadOnlyList<string>? RecentFragments = null,
|
|
CoachPreferencesDto? Preferences = null);
|
|
|
|
public sealed record CoachPreferencesDto(
|
|
int MaxQuestions = 3,
|
|
int MaxNextActions = 3);
|