story-kit: merge 224_story_expand_work_item_to_full_screen_detail_view

This commit is contained in:
Dave
2026-02-27 11:21:35 +00:00
parent 3912f8ecc8
commit 101bfd78fe
6 changed files with 449 additions and 10 deletions

View File

@@ -101,6 +101,12 @@ export interface Message {
tool_call_id?: string;
}
export interface WorkItemContent {
content: string;
stage: string;
name: string | null;
}
export interface FileEntry {
name: string;
kind: "file" | "dir";
@@ -267,6 +273,13 @@ export const api = {
cancelChat(baseUrl?: string) {
return requestJson<boolean>("/chat/cancel", { method: "POST" }, baseUrl);
},
getWorkItemContent(storyId: string, baseUrl?: string) {
return requestJson<WorkItemContent>(
`/work-items/${encodeURIComponent(storyId)}`,
{},
baseUrl,
);
},
};
export class ChatWebSocket {