mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
wip(desktop): progress
This commit is contained in:
parent
d31824320e
commit
c36f3b9dbe
6 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import { useGlobalSDK } from "./global-sdk"
|
|||
import { EventSessionError } from "@opencode-ai/sdk/v2"
|
||||
import { makeAudioPlayer } from "@solid-primitives/audio"
|
||||
import idleSound from "@opencode-ai/ui/audio/staplebops-01.aac"
|
||||
import errorSound from "@opencode-ai/ui/audio/error-3.aac"
|
||||
|
||||
type NotificationBase = {
|
||||
directory?: string
|
||||
|
|
@ -29,6 +30,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
|||
name: "Notification",
|
||||
init: () => {
|
||||
const idlePlayer = makeAudioPlayer(idleSound)
|
||||
const errorPlayer = makeAudioPlayer(errorSound)
|
||||
const globalSDK = useGlobalSDK()
|
||||
|
||||
const [store, setStore] = makePersisted(
|
||||
|
|
@ -65,8 +67,8 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
|
|||
break
|
||||
}
|
||||
case "session.error": {
|
||||
errorPlayer.play()
|
||||
const session = event.properties.sessionID ?? "global"
|
||||
// errorPlayer.play()
|
||||
setStore("list", store.list.length, {
|
||||
...base,
|
||||
type: "error",
|
||||
|
|
|
|||
BIN
packages/ui/src/assets/audio/nope-01.aac
Normal file
BIN
packages/ui/src/assets/audio/nope-01.aac
Normal file
Binary file not shown.
BIN
packages/ui/src/assets/audio/nope-02.aac
Normal file
BIN
packages/ui/src/assets/audio/nope-02.aac
Normal file
Binary file not shown.
BIN
packages/ui/src/assets/audio/nope-03.aac
Normal file
BIN
packages/ui/src/assets/audio/nope-03.aac
Normal file
Binary file not shown.
BIN
packages/ui/src/assets/audio/nope-04.aac
Normal file
BIN
packages/ui/src/assets/audio/nope-04.aac
Normal file
Binary file not shown.
BIN
packages/ui/src/assets/audio/nope-05.aac
Normal file
BIN
packages/ui/src/assets/audio/nope-05.aac
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue