diff options
| author | bndw <ben@bdw.to> | 2026-03-04 21:36:32 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-03-04 21:36:32 -0800 |
| commit | 73d2680b83ccbdbd8dfec2d319533e98b379b830 (patch) | |
| tree | 193eaf5157edcf12d06dde85fb44efaf3aae2004 /src/main/preload.ts | |
| parent | b6405dd6a4ba65fc5dc6746db7be7be7d0bb29f3 (diff) | |
feat: Thread optional `phase` param into `db/sessions.ts::cre… (+7 more)
- ✅ Thread optional `phase` param into `db/sessions.ts::createSession()`
- ✅ Thread optional `phase` param into `ipc/handlers.ts` sessions:create handler
- ✅ Thread optional `phase` param into `preload.ts` createSession API
- ✅ Update Plan phase system prompt to gracefully handle missing research.md
- ✅ Update Implement phase system prompt to gracefully handle missing plan.md
- ✅ Create `renderer/src/components/NewSessionModal.tsx`
- ✅ Update `App.tsx`: add modal state, split handler, add modal JSX
- ✅ Add modal CSS to `globals.css`
Diffstat (limited to 'src/main/preload.ts')
| -rw-r--r-- | src/main/preload.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/preload.ts b/src/main/preload.ts index e7ee0aa..fbdf871 100644 --- a/src/main/preload.ts +++ b/src/main/preload.ts | |||
| @@ -12,7 +12,7 @@ export interface ClaudeFlowAPI { | |||
| 12 | 12 | ||
| 13 | // Sessions | 13 | // Sessions |
| 14 | listSessions: (projectId: string) => Promise<Session[]>; | 14 | listSessions: (projectId: string) => Promise<Session[]>; |
| 15 | createSession: (projectId: string, name: string) => Promise<Session>; | 15 | createSession: (projectId: string, name: string, phase?: Phase) => Promise<Session>; |
| 16 | deleteSession: (id: string) => Promise<void>; | 16 | deleteSession: (id: string) => Promise<void>; |
| 17 | getSession: (id: string) => Promise<Session | undefined>; | 17 | getSession: (id: string) => Promise<Session | undefined>; |
| 18 | renameSession: (id: string, name: string) => Promise<void>; | 18 | renameSession: (id: string, name: string) => Promise<void>; |
| @@ -86,8 +86,8 @@ const api: ClaudeFlowAPI = { | |||
| 86 | 86 | ||
| 87 | // Sessions | 87 | // Sessions |
| 88 | listSessions: (projectId) => ipcRenderer.invoke("sessions:list", projectId), | 88 | listSessions: (projectId) => ipcRenderer.invoke("sessions:list", projectId), |
| 89 | createSession: (projectId, name) => | 89 | createSession: (projectId, name, phase) => |
| 90 | ipcRenderer.invoke("sessions:create", projectId, name), | 90 | ipcRenderer.invoke("sessions:create", projectId, name, phase), |
| 91 | deleteSession: (id) => ipcRenderer.invoke("sessions:delete", id), | 91 | deleteSession: (id) => ipcRenderer.invoke("sessions:delete", id), |
| 92 | getSession: (id) => ipcRenderer.invoke("sessions:get", id), | 92 | getSession: (id) => ipcRenderer.invoke("sessions:get", id), |
| 93 | renameSession: (id, name) => ipcRenderer.invoke("sessions:rename", id, name), | 93 | renameSession: (id, name) => ipcRenderer.invoke("sessions:rename", id, name), |
