You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(web): enhance sharing features with LLM-generated taglines
- Added support for LLM-generated taglines in share cards and analytics, improving user engagement.
- Updated `ProfileShareSection` and share image generation to incorporate the new tagline feature.
- Refactored `AnalysisClient` and related components to utilize the tagline, ensuring a cohesive user experience.
- Introduced a new column for taglines in the `analysis_insights` table and updated relevant Supabase types.
- Enhanced the overall structure of share templates to include taglines, providing a more personalized sharing experience.
Copy file name to clipboardExpand all lines: apps/web/src/inngest/functions/analyze-repo.ts
+31-15Lines changed: 31 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,7 @@ function computeEpisodeSummary(events: CommitEvent[]): Array<{
152
152
*/
153
153
interfaceNarrativeResult{
154
154
narrative: AnalysisReport["narrative"];
155
+
tagline: string|null;
155
156
inputTokens: number;
156
157
outputTokens: number;
157
158
}
@@ -227,9 +228,10 @@ export async function generateNarrativeWithLLM(params: {
227
228
"- Never infer intent, skill, or code quality. Avoid speculation and motivational language.",
228
229
"- Every claim must cite at least one specific metric name and value (e.g. burstiness_score=0.42).",
229
230
"- Each section must include evidence: 2-6 commit SHAs that support the section.",
231
+
"- Provide a concise tagline (<=60 characters) that describes the developer's vibe. This will be displayed on the share card and must remain observational.",
Copy file name to clipboardExpand all lines: apps/worker/src/index.ts
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,7 @@ function computeEpisodeSummary(events: CommitEvent[]): Array<{
243
243
interfaceNarrativeResult{
244
244
narrative: AnalysisReport["narrative"];
245
245
model: string;
246
+
tagline: string|null;
246
247
}
247
248
248
249
/**
@@ -292,8 +293,9 @@ async function generateNarrativeWithLLM(params: {
292
293
"Never infer intent, skill, or code quality. Avoid speculation and motivational language.",
293
294
"Every claim must cite at least one specific metric name and value (e.g. burstiness_score=0.42) or a specific commit subject line provided.",
294
295
"Each section must include evidence: 2-6 commit SHAs that support the section.",
296
+
"Provide a concise tagline (<=60 characters) that describes the developer's vibe. This tagline will be displayed on share cards and should remain observational.",
0 commit comments