feat(app): add prompt input story (#32308)

This commit is contained in:
Brendan Allan
2026-06-14 13:40:09 +00:00
committed by GitHub
parent 3e523d506c
commit d37ddc501c
15 changed files with 501 additions and 228 deletions
@@ -9,24 +9,27 @@ const [data, setData] = createStore({
"story-session": [] as Array<{ id: string; role: string }>,
} as Record<string, Array<{ id: string; role: string }>>,
session_status: {} as Record<string, { type: "idle" | "busy" }>,
session_working: () => false,
agent: [{ name: "build", mode: "task", hidden: false }],
command: [{ name: "fix", description: "Run fix command", source: "project" }],
})
export function useSync() {
return {
data,
set(...input: unknown[]) {
;(setData as (...args: unknown[]) => void)(...input)
const sync = {
data,
set(...input: unknown[]) {
;(setData as (...args: unknown[]) => void)(...input)
},
session: {
get(id: string) {
return { id }
},
session: {
get(id: string) {
return { id }
},
optimistic: {
add() {},
remove() {},
},
optimistic: {
add() {},
remove() {},
},
}
},
}
export function useSync() {
return () => sync
}