Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files- lib/gemini.ts +8 -0
- lib/parse.ts +0 -0
- lib/prompts.ts +7 -0
- lib/textGeneration.ts +0 -0
- lib/types.ts +42 -0
- lib/youtube.ts +0 -0
lib/gemini.ts
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/**
|
3 |
+
* @license
|
4 |
+
* SPDX-License-Identifier: Apache-2.0
|
5 |
+
*/
|
6 |
+
|
7 |
+
// This file is no longer used. All AI logic has been moved to the Python backend (main.py).
|
8 |
+
// This is a more secure and powerful architecture.
|
lib/parse.ts
ADDED
File without changes
|
lib/prompts.ts
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/**
|
3 |
+
* @license
|
4 |
+
* SPDX-License-Identifier: Apache-2.0
|
5 |
+
*/
|
6 |
+
|
7 |
+
// This file is no longer used. The prompt is now securely stored and used on the Python backend (main.py).
|
lib/textGeneration.ts
ADDED
File without changes
|
lib/types.ts
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @license
|
3 |
+
* SPDX-License-Identifier: Apache-2.0
|
4 |
+
*/
|
5 |
+
|
6 |
+
export interface InitialInput {
|
7 |
+
fullName: string;
|
8 |
+
jobTitle: string;
|
9 |
+
careerGoal: string;
|
10 |
+
jobDescription?: string;
|
11 |
+
uploadedResumeContent?: string;
|
12 |
+
yearsOfExperience: string;
|
13 |
+
keySkills: string;
|
14 |
+
previousRoles: string;
|
15 |
+
education: string;
|
16 |
+
}
|
17 |
+
|
18 |
+
export type ResumeSectionType = "Professional Summary" | "Skills Section" | "Experience" | "Education";
|
19 |
+
|
20 |
+
export interface ResumeSection {
|
21 |
+
id: ResumeSectionType;
|
22 |
+
title: string;
|
23 |
+
content: string;
|
24 |
+
}
|
25 |
+
|
26 |
+
export type ResumeDocument = ResumeSection[];
|
27 |
+
|
28 |
+
export interface ScoreResponse {
|
29 |
+
score: number;
|
30 |
+
suggestions: string[];
|
31 |
+
}
|
32 |
+
|
33 |
+
export interface ActiveEditor {
|
34 |
+
sectionId: ResumeSectionType;
|
35 |
+
content: string;
|
36 |
+
}
|
37 |
+
|
38 |
+
// Kept for legacy compatibility if needed elsewhere, but new types are preferred
|
39 |
+
export interface GeneratedResumeContent {
|
40 |
+
title: string;
|
41 |
+
content: string;
|
42 |
+
}
|
lib/youtube.ts
ADDED
File without changes
|