Animation Smorgasbord (#15637)

Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
This commit is contained in:
Kit Langton
2026-03-02 16:24:32 -06:00
committed by GitHub
co-authored by Adam
parent 78069369e2
commit 9d7852b5c3
62 changed files with 5231 additions and 710 deletions
@@ -0,0 +1,25 @@
const make = (directory: string) => ({
session: {
create: async () => ({ data: { id: "story-session" } }),
prompt: async () => ({ data: undefined }),
shell: async () => ({ data: undefined }),
command: async () => ({ data: undefined }),
abort: async () => ({ data: undefined }),
},
worktree: {
create: async () => ({ data: { directory: `${directory}/worktree-1` } }),
},
})
const root = "/tmp/story"
export function useSDK() {
return {
directory: root,
url: "http://localhost:4096",
client: make(root),
createClient(input: { directory: string }) {
return make(input.directory)
},
}
}