story-kit: start 65_story_standardised_script_test_entry_point_for_all_projects

This commit is contained in:
Dave
2026-02-23 12:59:55 +00:00
parent 216ca9ea2f
commit cbd0233e5e
8 changed files with 205 additions and 94 deletions

View File

@@ -26,7 +26,13 @@ export type WsResponse =
| { type: "update"; messages: Message[] }
| { type: "session_id"; session_id: string }
| { type: "error"; message: string }
| { type: "pipeline_state"; upcoming: PipelineStageItem[]; current: PipelineStageItem[]; qa: PipelineStageItem[]; merge: PipelineStageItem[] };
| {
type: "pipeline_state";
upcoming: PipelineStageItem[];
current: PipelineStageItem[];
qa: PipelineStageItem[];
merge: PipelineStageItem[];
};
export interface ProviderConfig {
provider: string;
@@ -280,7 +286,13 @@ export class ChatWebSocket {
if (data.type === "update") this.onUpdate?.(data.messages);
if (data.type === "session_id") this.onSessionId?.(data.session_id);
if (data.type === "error") this.onError?.(data.message);
if (data.type === "pipeline_state") this.onPipelineState?.({ upcoming: data.upcoming, current: data.current, qa: data.qa, merge: data.merge });
if (data.type === "pipeline_state")
this.onPipelineState?.({
upcoming: data.upcoming,
current: data.current,
qa: data.qa,
merge: data.merge,
});
} catch (err) {
this.onError?.(String(err));
}