Files
codewhale/web/lib/types.ts
T
Hunter Bown 656f8e4b15 chore(release): fix clippy warnings and update web docs for v0.8.34
- Fix result_large_err and mem_replace_option_with_some in prefix_cache.rs
- Update web tool names from legacy (agent_spawn/agent_wait) to session-based (agent_open/agent_eval/agent_close)
- Fix config.toml examples: flat api_key instead of [api] section
- Add zh-CN fields to dispatch curation pipeline
- Update facts.generated.ts timestamp
2026-05-13 12:59:10 -05:00

41 lines
1.2 KiB
TypeScript

export type FeedKind = "issue" | "pull" | "release" | "discussion";
export interface FeedItem {
kind: FeedKind;
number: number;
title: string;
url: string;
state: "open" | "closed" | "merged" | "draft" | "published";
author: string;
authorAvatar: string;
createdAt: string; // ISO
updatedAt: string; // ISO
comments: number;
labels: { name: string; color: string }[];
body?: string;
}
export interface RepoStats {
stars: number;
forks: number;
openIssues: number;
openPulls: number;
contributors: number;
latestRelease?: { tag: string; publishedAt: string; url: string };
fetchedAt: string;
}
export interface CuratedDispatch {
generatedAt: string;
/** English — always present (backward compat). */
headline: string;
summary: string;
highlights: { title: string; href: string; tag: string; blurb: string }[];
movers: { number: number; title: string; href: string; reason: string }[];
/** zh-CN — populated by cron curate since ~May 2026. Falls back to English fields when absent. */
headlineZh?: string;
summaryZh?: string;
highlightsZh?: { title: string; href: string; tag: string; blurb: string }[];
moversZh?: { number: number; title: string; href: string; reason: string }[];
}