Commands/Dictionary 미연결 버그 4건 수정
1. CommandsPage: handleSave/handleDelete에 실제 IPC 호출 연결 - instruction:create/update/delete 호출 추가 - 프리셋은 삭제 불가 (isBuiltin 체크) 2. Preload: instruction API 추가 (getAll/create/update/delete/reorder) - 기존에 preload 브릿지가 없어서 렌더러에서 호출 불가했음 3. Dictionary → STT initialPrompt 주입 - VoiceModeService._transcribe에서 DictionaryService.getPromptHints() 호출 - 사용자 사전 단어를 Whisper initialPrompt로 전달 4. DictionaryPage: 편집 기능 추가 - 각 항목에 Edit 버튼 추가 - Add/Edit 공용 다이얼로그 (editId로 분기)
This commit is contained in:
parent
6e9e8b1f29
commit
5596a52dcb
4 changed files with 185 additions and 44 deletions
|
|
@ -231,6 +231,18 @@ const electronAPI = {
|
|||
getVersion: () => invoke<string>(IPC_CHANNELS.SYSTEM.GET_VERSION),
|
||||
checkMicPermission: () =>
|
||||
invoke<PermissionStatus>(IPC_CHANNELS.SYSTEM.CHECK_MIC_PERMISSION)
|
||||
},
|
||||
|
||||
// ── Instruction (커스텀 명령어) ────────────────────────
|
||||
instruction: {
|
||||
getAll: () => invoke<unknown[]>('instruction:getAll'),
|
||||
getById: (params: { id: string }) => invoke<unknown>('instruction:getById', params),
|
||||
create: (params: { name: string; description: string; prompt: string }) =>
|
||||
invoke<unknown>('instruction:create', params),
|
||||
update: (params: { id: string; name?: string; description?: string; prompt?: string }) =>
|
||||
invoke<unknown>('instruction:update', params),
|
||||
delete: (params: { id: string }) => invoke<void>('instruction:delete', params),
|
||||
reorder: (params: { ids: string[] }) => invoke<void>('instruction:reorder', params),
|
||||
}
|
||||
} as const
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue