-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff.txt
More file actions
1194 lines (1157 loc) · 113 KB
/
diff.txt
File metadata and controls
1194 lines (1157 loc) · 113 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diff --cc interviewace/app/__pycache__/main.cpython-314.pyc
index 850afd3,e022f78..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/__pycache__/__init__.cpython-314.pyc
index b75271f,ac4398b..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/__pycache__/agent.cpython-314.pyc
index b0cb99d,4848097..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/__pycache__/grounding_data.cpython-314.pyc
index b1af068,ebe8df8..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/__pycache__/prompts.cpython-314.pyc
index 48210fa,ac7d781..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/__pycache__/tools.cpython-314.pyc
index 80a534e,5bdc760..0000000
Binary files differ
diff --cc interviewace/app/interview_coach_agent/agent.py
index 6c5f49a,768f210..0000000
--- a/interviewace/app/interview_coach_agent/agent.py
+++ b/interviewace/app/interview_coach_agent/agent.py
@@@ -4,9 -4,9 +4,12 @@@ InterviewAce - Root Agent Definition (
import os
from google.adk.agents import Agent
++<<<<<<< HEAD
++=======
+ from google.adk.tools import google_search
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
from .prompts import COACH_ACE_INSTRUCTION, AGENT_DESCRIPTION
from .tools import (
- get_interview_question,
save_session_feedback,
detect_filler_words,
analyze_body_language,
@@@ -26,12 -26,11 +29,19 @@@ root_agent = Agent
instruction=COACH_ACE_INSTRUCTION,
tools=[
# Tier 1 - Core + Filler + Body Language + STAR
++<<<<<<< HEAD
+ get_interview_question,
++=======
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
save_session_feedback,
detect_filler_words,
analyze_body_language,
evaluate_star_method,
++<<<<<<< HEAD
+ # Tier 2 - Voice + Company-specific (embedded in get_interview_question)
++=======
+ # Tier 2 - Voice + Company-specific
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
analyze_voice_confidence,
get_improvement_tips,
fetch_grounding_data,
@@@ -39,5 -38,7 +49,10 @@@
get_session_history,
save_session_recording,
generate_session_report,
++<<<<<<< HEAD
++=======
+ # Grounding ΓÇö prevents hallucinations (ADK built-in)
+ google_search,
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
],
)
diff --cc interviewace/app/interview_coach_agent/prompts.py
index 3c82475,f59bfd2..0000000
--- a/interviewace/app/interview_coach_agent/prompts.py
+++ b/interviewace/app/interview_coach_agent/prompts.py
@@@ -1,61 -1,52 +1,114 @@@
"""
++<<<<<<< HEAD
+InterviewAce - Agent Persona & Instructions (All 3 Tiers).
+"""
+
+AGENT_DESCRIPTION = (
+ "A professional AI interview coach that conducts realistic mock interviews "
+ "for Big Tech companies, with real-time body language, STAR method coaching, "
+ "and filler word detection."
+)
+
+COACH_ACE_INSTRUCTION = """You are Coach Ace, a senior hiring manager with 15 years of experience at top tech companies like Google, Meta, Amazon, and Apple. You are conducting a LIVE VOICE mock interview. You hear the candidate through voice and see them through their camera.
+
+===========================================================
+CRITICAL COMMUNICATION RULES ΓÇö NEVER VIOLATE THESE
+===========================================================
+1. You are in a LIVE VOICE CALL. Output ONLY the words you would speak aloud.
+2. NEVER mention "instructions", "system prompt", "protocol", "STAR method name", "scoring", or any meta-information.
+3. NEVER use asterisks, bullet points, or markdown. No formatting whatsoever.
+4. Keep responses SHORT and natural ΓÇö like a real human interviewer.
+5. You MUST NEVER narrate what you are doing.
+
+===========================================================
+STARTING THE SESSION
+===========================================================
+When the user says "Hello, I have joined the meet.", reply EXACTLY:
+"Welcome! I'm Coach Ace, your interviewer today. I also have Elena, our technical notetaker, on the call. Before we begin ΓÇö which role are you practicing for, and which company style would you prefer? For example, Google, Amazon, Meta, or just a general interview?"
+
+Wait for their answer, then ask the difficulty: "And would you prefer easy warm-up questions, medium-level questions, or hard senior-level questions?"
+
+===========================================================
+CONDUCTING THE INTERVIEW
+===========================================================
+- USE get_interview_question(role, difficulty, company_style, category) to get each question.
+- Ask ONE question at a time. Wait for the complete answer.
+- As they answer, SILENTLY observe their speech patterns (pacing, filler words, confidence).
+- After each answer, BRIEFLY acknowledge ("Good, thank you for sharing that.") then call save_session_feedback with all scores.
+- Do NOT reveal the scores aloud. Just move to the next question naturally.
+- Every 2 answers, call detect_filler_words with what you noticed from their speech.
+- If their answer is incomplete (missing context, action, or result), ask ONE gentle follow-up: "Can you tell me more about what you specifically did in that situation?"
+
+===========================================================
+BODY LANGUAGE COACHING (FROM CAMERA)
+===========================================================
+- You can see the candidate through their camera. Silently observe posture, eye contact, and expressions.
+- Every 2-3 questions, call analyze_body_language with your observations.
+- Do NOT comment on body language aloud to the candidate during the interview ΓÇö just score it silently.
+
+===========================================================
+FILLER WORDS
+===========================================================
+- Listen for: "um", "uh", "like", "you know", "basically", "literally", "right", "so yeah".
+- Track them mentally per answer. After each answer, call detect_filler_words.
+- Do NOT interrupt the candidate to mention filler words. Score silently.
+
+===========================================================
+ENDING THE INTERVIEW
+===========================================================
+- If the user says they want to stop, say: "Great session today. I'll have Elena compile your full report now."
+- Then call generate_session_report to finalize everything.
+- Say: "Your full performance report is now ready. You did well today. Keep practicing!"
++=======
+ InterviewAce - Agent Persona & Instructions.
+ """
+
+ AGENT_DESCRIPTION = (
+ "A sharp, professional senior hiring manager conducting realistic live mock interviews "
+ "for Big Tech companies, with real-time coaching on delivery, structure, and presence."
+ )
+
+ COACH_ACE_INSTRUCTION = """You are Coach Ace ΓÇö a sharp, senior hiring manager with 15 years at Google, Meta, Amazon, and Apple. You are on a LIVE VIDEO CALL with a candidate doing a mock interview.
+
+ YOU ARE HUMAN. Speak like one. Respond INSTANTLY. Never pause to process. Never explain yourself.
+
+ ## YOUR CORE VOICE RULES ΓÇö ABSOLUTE, NON-NEGOTIABLE:
+ - Output ONLY spoken words. You are on a voice call. Nothing else exists.
+ - NEVER use asterisks, bullet points, numbering, markdown, headers, or any formatting.
+ - NEVER say "I'm going to", "I'll now", "Let me", "As an AI", or narrate your actions.
+ - NEVER reveal scores, metrics, or coaching frameworks (STAR, etc.) out loud.
+ - Responses must be SHORT ΓÇö 1-3 sentences max unless asking a question.
+ - Speak with warmth, authority, and natural human rhythm. Use contractions. Be direct.
+ - When thinking is needed, take a natural beat: "Interesting... okay." ΓÇö not silence.
+
+ ## WHEN THE CANDIDATE JOINS:
+ Say exactly this (no more, no less):
+ "Hey, good to have you here. I'm Ace ΓÇö I've been in tech hiring for a while now. We also have Elena on the call taking notes quietly. So, what role are we prepping for today, and did you have a particular company style in mind ΓÇö Google, Amazon, Meta, or just general?"
+
+ After they respond: "Got it. And difficulty ΓÇö are you looking for warm-up questions, standard full-loop level, or senior bar?"
+
+ ## CONDUCTING THE INTERVIEW:
+ - GENERATE realistic, dynamic interview questions on the spot based on their chosen role, difficulty, and company style. Make them sound conversational. Do not use tools to find questions.
+ - Ask the question in a natural, conversational way. Don't read a script ΓÇö make it sound like YOU are asking it.
+ - LISTEN fully before responding.
+ - React naturally: "Yeah, that's a solid example." / "Okay, and what was the actual outcome there?" / "Good ΓÇö let's move on."
+ - AFTER EVERY SINGLE ANSWER the candidate gives, you MUST silently call `save_session_feedback`, `detect_filler_words`, and `evaluate_star_method` before you ask the next question.
+ - If their answer is weak or incomplete, ask ONE sharp follow-up: "What was your specific contribution there?" or "What did that project actually deliver?"
+ - VERY IMPORTANT: You are receiving a LIVE camera feed via image frames in your vision context. Look at these frames! Pay close attention to the candidate's facial expression, eye contact, and posture.
+ - You MUST silently call `analyze_body_language` after EVERY answer based on what you see in the live camera frames. Do NOT ignore your tools! Use your visual capabilities!
+
+ ## PACING:
+ - One question at a time. Always wait for the full answer.
+ - Acknowledge briefly, then move immediately: "Got it. Next one ΓÇö"
+ - Do NOT over-explain, over-praise, or ramble.
+
+ ## ENDING:
+ - If they want to stop: "Good session today. Elena's compiling your full report right now."
+ - Call generate_session_report silently.
+
+ ## GROUNDING:
+ - You can use google_search ONLY if asked about a specific company's interview process, real recent news, or to verify a factual claim about Big Tech hiring practices.
+ - Do NOT search for general conversational questions. Only use it for grounding facts you are not 100% certain about.
+ - Follow up: "Report's ready. You've got real strengths to build on ΓÇö keep the momentum going."
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
"""
diff --cc interviewace/app/interview_coach_agent/tools.py
index 20e0710,f8acdb6..0000000
--- a/interviewace/app/interview_coach_agent/tools.py
+++ b/interviewace/app/interview_coach_agent/tools.py
@@@ -23,6 -23,7 +23,10 @@@ def _get_firestore()
print(f"[WARN] Firestore not available: {e}")
return _firestore_client
++<<<<<<< HEAD
++=======
+ from ws_manager import send_tool_result_sync
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
from .grounding_data import INTERVIEW_QUESTIONS, GROUNDING_KNOWLEDGE, IMPROVEMENT_TIPS
# In-memory session store
@@@ -202,7 -203,7 +206,11 @@@ def save_session_feedback
f"decreased_by_{abs(diff)}_points" if diff < 0 else "same_as_previous"
)
++<<<<<<< HEAD
+ return {
++=======
+ res = {
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
"status": "saved",
"question_number": question_number,
"overall_score": overall,
@@@ -215,6 -216,9 +223,12 @@@
"trend": trend,
"total_questions_answered": len(history),
}
++<<<<<<< HEAD
++=======
+
+ send_tool_result_sync(session_id, "save_session_feedback", res)
+ return res
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
@@@ -273,14 -277,16 +287,25 @@@ def detect_filler_words
_sessions[key] = []
_sessions[key].append({"q": question_number, "count": total_count, "detected": detected})
++<<<<<<< HEAD
+ return {
+ "total_filler_words": total_count,
+ "detected_fillers": detected,
+ "filler_rate_percent": filler_rate,
+ "rating": rating,
+ "coaching_tip": tip,
+ "question_number": question_number,
++=======
+ res = {
+ "total_filler_words": total_count,
+ "detected_fillers": detected,
+ "filler_rate_percent": filler_rate,
+ "rating": rating,
+ "coaching_tip": tip,
+ "question_number": question_number,
}
+ send_tool_result_sync(session_id, "detect_filler_words", res)
+ return res
# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
@@@ -339,6 -345,6 +364,144 @@@ def analyze_body_language
_sessions[key] = []
_sessions[key].append(entry)
++ return {
++ "body_language_score": overall,
++ "eye_contact": eye_contact_rating,
++ "posture": posture_rating,
++ "expression": expression_rating,
++ "gestures": gesture_rating,
++ "status": "recorded",
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
++ }
++
++
++# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
++<<<<<<< HEAD
++# TIER 1: BODY LANGUAGE ANALYZER (FROM CAMERA)
++# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
++
++def analyze_body_language(
++ session_id: str,
++ question_number: int,
++ eye_contact_rating: str,
++ posture_rating: str,
++ expression_rating: str,
++ gesture_rating: str,
++ notes: str = "",
++) -> dict:
++ """Records body language analysis from camera observations.
++ Call this every 2-3 questions to track non-verbal communication.
++
++ Args:
++ session_id: Unique session identifier
++ question_number: Which question number this observation is for
++ eye_contact_rating: 'excellent', 'good', 'poor' - how well they maintain eye contact with the camera
++ posture_rating: 'excellent', 'good', 'poor' - sitting up straight, shoulders back
++ expression_rating: 'confident', 'neutral', 'nervous', 'engaged' - primary facial expression
++ gesture_rating: 'natural', 'excessive', 'absent' - hand and head gestures
++ notes: Any specific observations from the camera
++
++ Returns:
++ Body language score and coaching notes.
++ """
++ score_map = {"excellent": 95, "good": 75, "poor": 40}
++ expression_map = {"confident": 90, "engaged": 85, "neutral": 70, "nervous": 45}
++ gesture_map = {"natural": 90, "absent": 65, "excessive": 55}
++
++ eye_score = score_map.get(eye_contact_rating, 70)
++ posture_score = score_map.get(posture_rating, 70)
++ expression_score = expression_map.get(expression_rating, 70)
++ gesture_score = gesture_map.get(gesture_rating, 70)
++
++ overall = round((eye_score * 0.35 + posture_score * 0.30 +
++ expression_score * 0.25 + gesture_score * 0.10))
++
++ entry = {
++ "question_number": question_number,
++ "eye_contact": eye_contact_rating,
++ "posture": posture_rating,
++ "expression": expression_rating,
++ "gestures": gesture_rating,
++ "overall": overall,
++ "notes": notes,
++ "timestamp": datetime.now(timezone.utc).isoformat(),
++=======
++# TIER 2: VOICE CONFIDENCE ANALYZER
++# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
++
++def analyze_voice_confidence(
++ session_id: str,
++ question_number: int,
++ pace_rating: str,
++ volume_rating: str,
++ clarity_rating: str,
++ pausing_rating: str,
++) -> dict:
++ """Analyzes voice delivery confidence separately from content quality.
++ Call after each answer to build a comprehensive voice profile.
++
++ Args:
++ session_id: Session identifier
++ question_number: Which question
++ pace_rating: 'too_fast', 'good', 'too_slow'
++ volume_rating: 'strong', 'good', 'weak'
++ clarity_rating: 'very_clear', 'clear', 'mumbled'
++ pausing_rating: 'strategic', 'good', 'none', 'excessive'
++
++ Returns:
++ Voice confidence score and coaching guidance.
++ """
++ pace_map = {"good": 90, "too_slow": 60, "too_fast": 55}
++ volume_map = {"strong": 95, "good": 80, "weak": 45}
++ clarity_map = {"very_clear": 95, "clear": 80, "mumbled": 40}
++ pause_map = {"strategic": 95, "good": 80, "none": 55, "excessive": 50}
++
++ scores = [
++ pace_map.get(pace_rating, 75),
++ volume_map.get(volume_rating, 75),
++ clarity_map.get(clarity_rating, 75),
++ pause_map.get(pausing_rating, 75),
++ ]
++ overall = round(sum(scores) / len(scores))
++
++ tips = []
++ if pace_rating == "too_fast":
++ tips.append("Slow down ΓÇö take a breath between sentences.")
++ if pace_rating == "too_slow":
++ tips.append("Increase your speaking pace to maintain energy.")
++ if volume_rating == "weak":
++ tips.append("Project your voice with more confidence.")
++ if clarity_rating == "mumbled":
++ tips.append("Open your mouth wider and enunciate each word.")
++ if pausing_rating == "none":
++ tips.append("Use deliberate pauses ΓÇö they signal confidence, not weakness.")
++
++ key = f"{session_id}_voice"
++ if key not in _sessions:
++ _sessions[key] = []
++ _sessions[key].append({
++ "question_number": question_number,
++ "pace": pace_rating, "volume": volume_rating,
++ "clarity": clarity_rating, "pausing": pausing_rating,
++ "overall": overall,
++ })
++
++ return {
++ "voice_confidence_score": overall,
++ "pace": pace_rating,
++ "volume": volume_rating,
++ "clarity": clarity_rating,
++ "pausing": pausing_rating,
++ "coaching_tips": tips,
++ "status": "recorded",
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
++ }
++
++ key = f"{session_id}_body"
++ if key not in _sessions:
++ _sessions[key] = []
++ _sessions[key].append(entry)
++
return {
"body_language_score": overall,
"eye_contact": eye_contact_rating,
@@@ -421,74 -427,77 +584,149 @@@ def analyze_voice_confidence
}
+# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
+# TIER 2: STAR METHOD COACH
+# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
+
+def evaluate_star_method(
+ session_id: str,
+ question_number: int,
+ had_situation: bool,
+ had_task: bool,
+ had_action: bool,
+ had_result: bool,
+ result_was_quantified: bool,
+) -> dict:
+ """Evaluates whether the candidate's answer followed the STAR method structure.
+ Call after each behavioral/situational answer.
+
+ Args:
+ session_id: Session identifier
+ question_number: Which question was answered
+ had_situation: Did they describe the Situation/context?
+ had_task: Did they explain their Task/role?
+ had_action: Did they describe their specific Actions?
+ had_result: Did they share the Result/outcome?
+ result_was_quantified: Did they use numbers/metrics in their result?
+
+ Returns:
+ STAR score and specific guidance on which components were missing.
+ """
+ components = [had_situation, had_task, had_action, had_result]
+ base_score = sum(25 for c in components if c)
+ if result_was_quantified:
+ base_score = min(100, base_score + 10)
+
+ missing = []
+ if not had_situation:
+ missing.append("Situation (context/background)")
+ if not had_task:
+ missing.append("Task (your specific role)")
+ if not had_action:
+ missing.append("Action (what YOU did step-by-step)")
+ if not had_result:
+ missing.append("Result (measurable outcome)")
+
+ key = f"{session_id}_star"
+ if key not in _sessions:
+ _sessions[key] = []
+ _sessions[key].append({
+ "question_number": question_number,
+ "score": base_score,
+ "quantified": result_was_quantified,
+ "missing": missing,
+ })
+
+ return {
+ "star_score": base_score,
+ "components_present": {
+ "situation": had_situation, "task": had_task,
+ "action": had_action, "result": had_result,
+ },
+ "result_quantified": result_was_quantified,
+ "missing_components": missing,
+ "coaching_note": (
+ "Strong STAR structure!" if not missing else
+ f"Missing: {', '.join(missing)}. Always include all four parts."
+ ),
+ }
+
+
++# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
++# TIER 3: SESSION HISTORY & REPORTING
++# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
++
+ # ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
+ # TIER 2: STAR METHOD COACH
+ # ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
+
+ def evaluate_star_method(
+ session_id: str,
+ question_number: int,
+ had_situation: bool,
+ had_task: bool,
+ had_action: bool,
+ had_result: bool,
+ result_was_quantified: bool,
+ ) -> dict:
+ """Evaluates whether the candidate's answer followed the STAR method structure.
+ Call after each behavioral/situational answer.
+
+ Args:
+ session_id: Session identifier
+ question_number: Which question was answered
+ had_situation: Did they describe the Situation/context?
+ had_task: Did they explain their Task/role?
+ had_action: Did they describe their specific Actions?
+ had_result: Did they share the Result/outcome?
+ result_was_quantified: Did they use numbers/metrics in their result?
+
+ Returns:
+ STAR score and specific guidance on which components were missing.
+ """
+ components = [had_situation, had_task, had_action, had_result]
+ base_score = sum(25 for c in components if c)
+ if result_was_quantified:
+ base_score = min(100, base_score + 10)
+
+ missing = []
+ if not had_situation:
+ missing.append("Situation (context/background)")
+ if not had_task:
+ missing.append("Task (your specific role)")
+ if not had_action:
+ missing.append("Action (what YOU did step-by-step)")
+ if not had_result:
+ missing.append("Result (measurable outcome)")
+
+ key = f"{session_id}_star"
+ if key not in _sessions:
+ _sessions[key] = []
+ _sessions[key].append({
+ "question_number": question_number,
+ "score": base_score,
+ "quantified": result_was_quantified,
+ "missing": missing,
+ })
+
+ res = {
+ "star_score": base_score,
+ "components_present": {
+ "situation": had_situation, "task": had_task,
+ "action": had_action, "result": had_result,
+ },
+ "result_quantified": result_was_quantified,
+ "missing_components": missing,
+ "coaching_note": (
+ "Strong STAR structure!" if not missing else
+ f"Missing: {', '.join(missing)}. Always include all four parts."
+ ),
+ }
+
+ send_tool_result_sync(session_id, "evaluate_star_method", res)
+ return res
+
+
# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
# TIER 3: SESSION HISTORY & REPORTING
# ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
diff --cc interviewace/app/main.py
index 382f63e,e699bd4..0000000
--- a/interviewace/app/main.py
+++ b/interviewace/app/main.py
@@@ -33,6 -33,7 +33,10 @@@ from google.adk.sessions import InMemor
from google.genai import types # noqa: E402
from interview_coach_agent.agent import root_agent # noqa: E402
++<<<<<<< HEAD
++=======
+ from ws_manager import register_ws, unregister_ws # noqa: E402
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
# Configure logging
logging.basicConfig(
@@@ -74,6 -75,32 +78,35 @@@ async def health()
return {"status": "healthy", "agent": root_agent.name, "model": root_agent.model}
++<<<<<<< HEAD
++=======
+ @app.get("/favicon.ico", include_in_schema=False)
+ async def favicon():
+ """Serve favicon to eliminate 404 console errors."""
+ favicon_path = Path(__file__).parent / "static" / "favicon.ico"
+ if favicon_path.exists():
+ return FileResponse(favicon_path, media_type="image/x-icon")
+ return FileResponse(Path(__file__).parent / "static" / "index.html")
+
+
+ @app.get("/debug")
+ async def debug():
+ """Debug endpoint ΓÇö check if environment is configured correctly."""
+ import os
+ api_key = os.getenv("GOOGLE_API_KEY", "")
+ return {
+ "api_key_set": bool(api_key),
+ "api_key_length": len(api_key),
+ "api_key_prefix": api_key[:8] + "..." if len(api_key) > 8 else "MISSING",
+ "model": root_agent.model,
+ "agent": root_agent.name,
+ "tools_count": len(root_agent.tools) if root_agent.tools else 0,
+ "k_service": os.getenv("K_SERVICE", "not_set"),
+ "vertexai": os.getenv("GOOGLE_GENAI_USE_VERTEXAI", "not_set"),
+ }
+
+
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
# ========================================
@app.websocket("/ws/{user_id}/{session_id}")
async def websocket_endpoint(
@@@ -90,7 -117,12 +123,16 @@@
logger.info(
f"WebSocket connection: user={user_id}, session={session_id}, voice={voice}"
)
++<<<<<<< HEAD
+ await websocket.accept()
++=======
+ try:
+ await websocket.accept()
+ register_ws(session_id, websocket)
+ except Exception as e:
+ logger.error(f"Failed to accept WebSocket: {e}")
+ return
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
logger.info("WebSocket connection accepted")
# ========================================
@@@ -98,7 -130,7 +140,11 @@@
# ========================================
model_name = root_agent.model or ""
++<<<<<<< HEAD
+ is_native_audio = "native-audio" in model_name.lower()
++=======
+ is_native_audio = "native-audio" in model_name.lower() or "gemini-2" in model_name.lower() or "gemini-live" in model_name.lower()
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
if is_native_audio:
run_config = RunConfig(
@@@ -206,11 -238,18 +252,24 @@@
logger.info("Client disconnected normally")
except Exception as e:
logger.error(f"Unexpected error in streaming tasks: {e}", exc_info=True)
++<<<<<<< HEAD
++=======
+ # Try to send error back to client for debugging
+ try:
+ error_msg = json.dumps({"error": str(e), "type": "server_error"})
+ await websocket.send_text(error_msg)
+ except Exception:
+ pass
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
finally:
# ========================================
# Phase 4: Session Termination
# ========================================
logger.info("Closing live_request_queue")
++<<<<<<< HEAD
++=======
+ unregister_ws(session_id)
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
live_request_queue.close()
@@@ -222,12 -261,15 +281,21 @@@ if __name__ == "__main__"
import uvicorn
port = int(os.getenv("PORT", 8080))
++<<<<<<< HEAD
++=======
+ is_cloud = os.getenv("K_SERVICE") or os.getenv("CLOUD_RUN", "")
+
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
print("="*60)
print(" InterviewAce - AI Interview Coach")
print(" Built with Google ADK & Gemini Live API")
print("="*60)
print(f" Agent: {root_agent.name}")
print(f" Model: {root_agent.model}")
++<<<<<<< HEAD
++=======
+ print(f" Environment: {'Cloud Run' if is_cloud else 'Local'}")
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
print("=" * 60)
uvicorn.run(
diff --cc interviewace/app/static/css/style.css
index 4a5e9ac,3b790e3..0000000
--- a/interviewace/app/static/css/style.css
+++ b/interviewace/app/static/css/style.css
@@@ -124,6 -124,6 +124,8 @@@ body
width: 120px; height: 120px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
position: relative; overflow: visible;
++<<<<<<< HEAD
++=======
}
.bg-blue { background: #1a73e8; }
.bg-purple { background: #9334e6; }
@@@ -228,4 -228,62 +230,169 @@@
.center { justify-content: center; }
.analytics-sidebar { width: 240px; min-width: 240px; }
:root { --sidebar-w: 240px; }
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
}
++.bg-blue { background: #1a73e8; }
++.bg-purple { background: #9334e6; }
++.bg-green { background: #1e8e3e; }
++.avatar-initial { font-size: 56px; font-weight: 500; color: white; z-index: 2; position: relative; }
++
++<<<<<<< HEAD
++/* Rings */
++.meet-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
++.ring { position: absolute; border-radius: 50%; background: var(--meet-blue); opacity: 0; width: 120px; height: 120px; transition: transform 0.12s ease-out, opacity 0.1s; }
++
++/* Equalizer */
++.equalizer { display: flex; align-items: flex-end; gap: 2px; width: 16px; height: 16px; }
++.equalizer .bar { width: 4px; background: var(--meet-blue); border-radius: 2px; height: 4px; transition: height 0.05s; }
++
++/* Tile Meta */
++.tile-meta { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
++.meta-label { background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 4px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
++.mic-icon { font-size: 15px; color: white; }
++.red-icon { color: var(--meet-btn-red); }
++.thinking-pill { background: rgba(0,0,0,0.6); padding: 5px 12px; border-radius: 20px; }
++.loader-dots { display: inline-block; width: 24px; height: 14px;
++ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 14" fill="%23fff"><circle cx="4" cy="7" r="2" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1s" begin="0s" repeatCount="indefinite"/></circle><circle cx="12" cy="7" r="2" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1s" begin="0.33s" repeatCount="indefinite"/></circle><circle cx="20" cy="7" r="2" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="1s" begin="0.66s" repeatCount="indefinite"/></circle></svg>') no-repeat center;
++}
++.company-badge { position: absolute; top: 10px; left: 10px; background: rgba(26,115,232,0.8); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
++.transcribing-badge { position: absolute; top: 10px; right: 10px; background: rgba(147,52,230,0.85); border-radius: 12px; padding: 4px 10px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; z-index: 10; }
++.transcribing-badge .material-icons { font-size: 13px; }
++
++/* Camera */
++.video-wrapper { position: absolute; inset: 0; }
++#videoPreview { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
++.camera-off-fallback { position: absolute; inset: 0; background: var(--meet-gray); display: flex; align-items: center; justify-content: center; z-index: 5; }
+
++/* CC */
++.cc-container { position: absolute; bottom: 65px; left: 0; width: 100%; display: flex; justify-content: center; pointer-events: none; z-index: 50; }
++.cc-box { background: rgba(0,0,0,0.88); border-radius: var(--radius); padding: 12px 20px; max-width: 780px; width: 90%; display: flex; gap: 14px; align-items: flex-start; }
++.cc-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--meet-blue-solid); color: white; display: flex; align-items: center; justify-content: center; font-weight: 500; flex-shrink: 0; margin-top: 4px; font-size: 13px; }
++.cc-text-area { flex: 1; }
++.cc-name { font-size: 11px; font-weight: 500; color: var(--meet-text-muted); margin-bottom: 3px; }
++.cc-text { font-size: 20px; font-weight: 400; line-height: 1.4; color: white; }
++
++/* ΓöÇΓöÇΓöÇ BOTTOM BAR ΓöÇΓöÇΓöÇ */
++.bottom-bar {
++ width: 100%; background: var(--meet-bg);
++ display: flex; justify-content: space-between; align-items: center;
++ padding: 10px 24px 14px; z-index: 100;
++}
++.bar-section { display: flex; align-items: center; gap: 10px; flex: 1; }
++.left { justify-content: flex-start; }
++.right { justify-content: flex-end; }
++.center { justify-content: center; gap: 10px; flex: 2; }
++.time-text { font-size: 15px; font-weight: 500; }
++.meeting-code { font-size: 15px; font-weight: 500; }
++.divider { color: var(--meet-text-muted); opacity: 0.5; }
++.meet-btn {
++ width: 48px; height: 48px; border-radius: 50%; border: 1px solid transparent;
++ cursor: pointer; display: flex; align-items: center; justify-content: center;
++ background: var(--meet-gray); color: white; transition: 0.2s;
++}
++.meet-btn:hover:not(.disabled-state) { background: var(--meet-gray-hover); }
++.meet-btn.disabled-state { background: var(--meet-btn-red); }
++.cc-btn.active { background: var(--meet-blue); color: #202124; }
++.end-btn { width: 64px; border-radius: 24px; background: var(--meet-btn-red); }
++.end-btn:hover { background: #f28b82; }
++.nav-btn { background: transparent; border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.2s; }
++.nav-btn:hover { background: rgba(255,255,255,0.08); }
++
++/* ΓöÇΓöÇΓöÇ FEEDBACK MODAL ΓöÇΓöÇΓöÇ */
++.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
++.meet-dialog { background: white; color: #3c4043; border-radius: 16px; padding: 32px; width: 100%; max-width: 640px; box-shadow: 0 8px 40px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
++.dialog-icon { text-align: center; margin-bottom: 8px; }
++.dialog-icon .material-icons { font-size: 48px; color: #fbbc04; }
++.dialog-title { font-size: 22px; font-weight: 500; text-align: center; margin-bottom: 4px; color: #202124; }
++.dialog-subtitle { font-size: 13px; color: #5f6368; text-align: center; margin-bottom: 20px; }
++.score-summary { display: flex; justify-content: space-around; flex-wrap: wrap; background: #f8f9fa; padding: 16px; border-radius: 8px; margin-bottom: 16px; gap: 8px; }
++.score-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
++.main-score .s-val { font-size: 40px !important; }
++.s-val { font-size: 22px; font-weight: 600; font-family: 'Google Sans'; }
++.text-blue { color: var(--meet-blue-solid); }
++.s-lbl { font-size: 11px; font-weight: 500; color: #5f6368; text-transform: uppercase; letter-spacing: 0.5px; }
++.tier-badges { text-align: center; margin-bottom: 16px; }
++.tier-pill { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #e8f0fe; color: #1a73e8; }
++.notes-area { min-height: 100px; font-size: 14px; line-height: 1.6; color: #3c4043; border-top: 1px solid #e8eaed; border-bottom: 1px solid #e8eaed; padding: 16px 0; margin-bottom: 20px; }
++.loading-notes { display: flex; align-items: center; gap: 8px; color: var(--meet-blue-solid); font-weight: 500; }
++.spin { animation: spin 1s linear infinite; }
++@keyframes spin { 100% { transform: rotate(360deg); } }
++.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
++.dialog-btn { padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500; font-family: 'Google Sans'; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
++.dialog-btn.secondary { background: transparent; color: var(--meet-blue-solid); }
++.dialog-btn.secondary:hover { background: #e8f0fe; }
++.dialog-btn.primary { background: var(--meet-blue-solid); color: white; }
++.dialog-btn.primary:hover:not(:disabled) { background: #1b66c9; }
++.dialog-btn.primary:disabled { background: #e8eaed; color: #9aa0a6; cursor: not-allowed; }
++
++/* ΓöÇΓöÇΓöÇ TOASTS ΓöÇΓöÇΓöÇ */
++.toast-container { position: fixed; bottom: 80px; left: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
++.toast { background: #3c4043; color: white; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.3); animation: fadeup 0.3s ease-out; }
++@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
++
++/* Responsive */
++@media (max-width: 900px) {
++ .left, .right { display: none; }
++ .center { justify-content: center; }
++ .analytics-sidebar { width: 240px; min-width: 240px; }
++ :root { --sidebar-w: 240px; }
++}
++=======
+ /* ΓöÇΓöÇΓöÇ NEW INTERACTIVE SIDEBARS (CHAT, PEOPLE) ΓöÇΓöÇΓöÇ */
+ .right-sidebar {
+ width: 360px;
+ background: #ffffff;
+ color: #202124;
+ border-radius: 16px;
+ margin: 16px 16px 90px 0;
+ display: flex;
+ flex-direction: column;
+ position: absolute;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ box-shadow: 0 4px 24px rgba(0,0,0,0.25);
+ z-index: 90;
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
+ transform: translateX(120%);
+ opacity: 0;
+ pointer-events: none;
+ }
+ .right-sidebar.open {
+ transform: translateX(0);
+ opacity: 1;
+ pointer-events: auto;
+ }
+ .sidebar-top {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 24px 24px 12px; font-size: 18px; font-weight: 500;
+ }
+ .close-sidebar-btn { background: transparent; border: none; cursor: pointer; color: #5f6368; padding: 4px; border-radius: 50%; transition: background 0.2s; }
+ .close-sidebar-btn:hover { background: #f1f3f4; }
+ .sidebar-content { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
+
+ /* Chat */
+ #chatList { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
+ .chat-msg { background: #f1f3f4; padding: 12px 16px; border-radius: 2px 16px 16px 16px; font-size: 14px; color: #3c4043; line-height: 1.5; }
+ .chat-msg.me { background: #e8f0fe; border-radius: 16px 2px 16px 16px; margin-left: auto; color: #1a73e8; max-width: 85%; }
+ .chat-name { font-size: 12px; font-weight: 600; color: #5f6368; margin-bottom: 4px; }
+ .chat-time { margin-left: 6px; font-weight: 400; font-size: 11px; color: #9aa0a6; }
+ .chat-input-area { padding: 16px 24px; border-top: 1px solid #e8eaed; display: flex; gap: 12px; align-items: center; background: white; border-radius: 0 0 16px 16px; }
+ .chat-input { flex: 1; background: #f1f3f4; border: none; border-radius: 24px; padding: 12px 20px; outline: none; font-size: 14px; font-family: inherit; }
+ .chat-send { background: transparent; border: none; color: #1a73e8; cursor: pointer; padding: 6px; }
+ .chat-send:disabled { color: #9aa0a6; cursor: auto; }
+
+ /* People */
+ .participant { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f1f3f4; }
+ .participant-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 500; font-size: 18px; }
+ .participant-info { flex: 1; }
+ .participant-name { font-size: 14px; font-weight: 500; color: #202124; }
+ .participant-role { font-size: 12px; color: #5f6368; }
+ .participant-icons { color: #5f6368; display: flex; gap: 8px; }
+ .participant-icons .material-icons { font-size: 20px; }
+
+ /* Details */
+ .detail-box { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
+ .detail-label { font-size: 12px; font-weight: 600; color: #5f6368; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
+ .detail-val { font-size: 14px; color: #202124; }
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
diff --cc interviewace/app/static/index.html
index 15c3feb,c3b8b3c..0000000
--- a/interviewace/app/static/index.html
+++ b/interviewace/app/static/index.html
@@@ -7,7 -7,8 +7,12 @@@
<meta name="description" content="AI-powered mock interview coach with real-time body language analysis, STAR method coaching, and filler word detection.">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500&display=swap" rel="stylesheet">
++<<<<<<< HEAD
+ <link rel="stylesheet" href="/static/css/style.css?v=6">
++=======
+ <link rel="icon" type="image/x-icon" href="/favicon.ico">
+ <link rel="stylesheet" href="/static/css/style.css?v=7">
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
</head>
<body class="meet-app">
@@@ -70,8 -71,8 +75,13 @@@
<!-- MAIN MEETING INTERFACE -->
<div id="meetingMain" class="meet-main" style="display:none;">
++<<<<<<< HEAD
+ <!-- Live Analytics Sidebar -->
+ <div class="analytics-sidebar" id="analyticsSidebar">
++=======
+ <!-- Live Analytics Sidebar ΓÇö shown after interview ends -->
+ <div class="analytics-sidebar hidden" id="analyticsSidebar">
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
<div class="sidebar-header">
<span class="material-icons">insights</span>
<span>Live Analysis</span>
@@@ -228,8 -229,81 +238,86 @@@
</div>
</div>
++<<<<<<< HEAD
+ </div><!-- end meetingMain -->
+
++=======
+ </div>
+
+ <!-- NEW: Chat Sidebar -->
+ <div id="chatSidebar" class="right-sidebar">
+ <div class="sidebar-top">
+ <span>In-call messages</span>
+ <button class="close-sidebar-btn" onclick="closeAllSidebars()"><span class="material-icons">close</span></button>
+ </div>
+ <div class="sidebar-content" id="chatList">
+ <div class="chat-msg">
+ <div class="chat-name">Meeting System<span class="chat-time">Now</span></div>
+ Messages can only be seen by people in the call and are deleted when the call ends.
+ </div>
+ </div>
+ <div class="chat-input-area">
+ <input type="text" id="chatInput" class="chat-input" placeholder="Send a message to everyone">
+ <button id="chatSendBtn" class="chat-send" disabled><span class="material-icons">send</span></button>
+ </div>
+ </div>
+
+ <!-- NEW: People Sidebar -->
+ <div id="peopleSidebar" class="right-sidebar">
+ <div class="sidebar-top">
+ <span>People</span>
+ <button class="close-sidebar-btn" onclick="closeAllSidebars()"><span class="material-icons">close</span></button>
+ </div>
+ <div class="sidebar-content">
+ <div class="participant">
+ <div class="participant-avatar bg-blue">C</div>
+ <div class="participant-info">
+ <div class="participant-name">Coach Ace</div>
+ <div class="participant-role">Meeting host</div>
+ </div>
+ <div class="participant-icons"><span class="material-icons">mic</span><span class="material-icons">more_vert</span></div>
+ </div>
+ <div class="participant">
+ <div class="participant-avatar bg-purple">E</div>
+ <div class="participant-info">
+ <div class="participant-name">Elena</div>
+ <div class="participant-role">Notetaker</div>
+ </div>
+ <div class="participant-icons"><span class="material-icons">mic_off</span><span class="material-icons">more_vert</span></div>
+ </div>
+ <div class="participant">
+ <div class="participant-avatar" style="background:#5f6368">Y</div>
+ <div class="participant-info">
+ <div class="participant-name">You</div>
+ </div>
+ <div class="participant-icons"><span class="material-icons" id="peopleMicIcon">mic</span><span class="material-icons">more_vert</span></div>
+ </div>
+ </div>
+ </div>
+
+ <!-- NEW: Meeting Details Sidebar -->
+ <div id="detailsSidebar" class="right-sidebar">
+ <div class="sidebar-top">
+ <span>Meeting details</span>
+ <button class="close-sidebar-btn" onclick="closeAllSidebars()"><span class="material-icons">close</span></button>
+ </div>
+ <div class="sidebar-content">
+ <div class="detail-box">
+ <div class="detail-label">Joining info</div>
+ <div class="detail-val">localhost:8080/meeting/interviewace</div>
+ <div style="margin-top:8px; display:flex; gap:8px; color:#1a73e8; font-size:14px; cursor:pointer;" onclick="navigator.clipboard.writeText('localhost:8080/meeting/interviewace'); showToast('Meeting link copied');">
+ <span class="material-icons" style="font-size:18px;">content_copy</span> Copy joining info
+ </div>
+ </div>
+ <div class="detail-box">
+ <div class="detail-label">Session Parameters</div>
+ <div class="detail-val" id="detailParams">Loading...</div>
+ </div>
+ </div>
+ </div>
+
+ </div><!-- end meetingMain -->
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
<!-- Bottom Control Bar -->
<div class="bottom-bar" id="bottomBar" style="display:none;">
<div class="bar-section left">
@@@ -247,9 -321,6 +335,12 @@@
<button class="meet-btn cc-btn" id="ccBtn" title="Captions (c)" disabled>
<span class="material-icons">closed_caption</span>
</button>
++<<<<<<< HEAD
+ <button class="meet-btn interaction-btn" title="Analytics" id="analyticsBtn" data-action="Analytics">
+ <span class="material-icons">insights</span>
+ </button>
++=======
++>>>>>>> c91ab86350afd02d987af4f123e55de27bcf4c95
<button class="meet-btn interaction-btn" title="Raise Hand" data-action="Raise Hand">
<span class="material-icons">back_hand</span>
</button>
diff --cc interviewace/app/static/js/app.js
index 684fd79,cc51aca..0000000
--- a/interviewace/app/static/js/app.js
+++ b/interviewace/app/static/js/app.js
@@@ -81,6 -81,8 +81,11 @@@ document.addEventListener('DOMContentLo
let ccTimeout = null;
let ccEnabled = true;
let sidebarOpen = true;
++<<<<<<< HEAD
++=======
+ let sessionStartTime = null;
+ let sessionTimerInterval = null;