Introduces `characterName` to the `Scenario` type, enabling AI personas to be explicitly named. This change also updates the `ScenarioCard` component to display the character name and adds foundational support for potential future scenario deletion functionality. The README has been updated with a new AI Studio link.
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
|
|
export interface Scenario {
|
|
id: string;
|
|
title: string;
|
|
description: string;
|
|
category: 'Social Anxiety' | 'Workplace' | 'Relationships' | 'Self-Talk';
|
|
difficulty: 'Beginner' | 'Intermediate' | 'Advanced';
|
|
systemInstruction: string;
|
|
initialMessage: string;
|
|
cbtFocus: string[];
|
|
characterName: string;
|
|
}
|
|
|
|
export interface UserSettings {
|
|
voiceName: 'Puck' | 'Charon' | 'Kore' | 'Fenrir' | 'Zephyr';
|
|
vocalStyle: string;
|
|
genderPreference: 'Male' | 'Female' | 'Neutral';
|
|
preferredAudioDeviceId?: string;
|
|
}
|
|
|
|
export interface Message {
|
|
id: string;
|
|
role: 'user' | 'model' | 'system';
|
|
text: string;
|
|
timestamp: Date;
|
|
isAnalysis?: boolean;
|
|
}
|
|
|
|
export type SessionMode = 'text' | 'voice';
|
|
|
|
export interface AudioConfig {
|
|
sampleRate: number;
|
|
}
|
|
|
|
export interface AnalysisResult {
|
|
analysis: {
|
|
distortions: string[];
|
|
isAdaptive: boolean;
|
|
evidence: string;
|
|
};
|
|
rating: {
|
|
score: number;
|
|
reason: string;
|
|
};
|
|
suggestions: {
|
|
alternativeThought: string;
|
|
behavioralStep: string;
|
|
};
|
|
}
|