feat: Initialize project structure

Sets up the basic project configuration for Cognitive Clarity. This includes:
- Initializing `package.json` with necessary dependencies (React, Gemini API, Lucide React) and build scripts for Vite.
- Creating a basic `index.html` with Tailwind CSS and Google Fonts integration.
- Setting up `index.tsx` as the React application entry point.
- Configuring `tsconfig.json` for TypeScript compilation with Vite.
- Establishing `vite.config.ts` for development server setup and environment variable handling.
- Adding a standard `.gitignore` file.
- Updating `README.md` with local run instructions and AI Studio links.
- Defining `metadata.json` for application details.
- Creating core type definitions in `types.ts`.
- Populating `constants.ts` with initial CBT glossary terms.
- Adding utility functions for audio processing in `services/audioUtils.ts`.
This commit is contained in:
John Remillard committed 2025-12-17 11:52:32 -05:00
1 parent a6780ce1b2
commit c78604de02
22 files changed
+2097 -8

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
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[];
}
export interface Message {
id: string;
role: 'user' | 'model' | 'system';
text: string;
timestamp: Date;
isAnalysis?: boolean; // If true, this is a CBT analysis, not part of roleplay
}
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;
};
}