|
@@ -42,6 +42,11 @@ export const RepoMetaSchema = z.object({
|
|
|
stars: z.number().optional(),
|
|
stars: z.number().optional(),
|
|
|
forks: z.number().optional(),
|
|
forks: z.number().optional(),
|
|
|
license: z.string().optional(),
|
|
license: z.string().optional(),
|
|
|
|
|
+ // Today's star gain (currentPeriodStars from the trending API). Emitted into
|
|
|
|
|
+ // the structured repo-meta block by the collector so the cover scene can show
|
|
|
|
|
+ // "+N" per repo. Nested inside github.repo, so it flows through compose/render
|
|
|
|
|
+ // automatically (github is passed whole-object) — no extra plumbing needed.
|
|
|
|
|
+ todayStars: z.number().optional(),
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export type RepoMeta = z.infer<typeof RepoMetaSchema>;
|
|
export type RepoMeta = z.infer<typeof RepoMetaSchema>;
|