MCPcopy Index your code
hub / github.com/anomalyco/opencode / config

Function config

packages/opencode/test/cli/cmd/tui/attention.test.ts:85–97  ·  view source on GitHub ↗
(attention: Partial<AttentionConfig["attention"]> = {})

Source from the content-addressed store, hash-verified

83}
84
85function config(attention: Partial<AttentionConfig["attention"]> = {}): AttentionConfig {
86 return {
87 attention: {
88 enabled: true,
89 notifications: true,
90 sound: true,
91 volume: 0.4,
92 sound_pack: "opencode.default",
93 sounds: {},
94 ...attention,
95 },
96 }
97}
98
99describe("createTuiAttention", () => {
100 test("defaults to sound always and notification blurred", async () => {

Callers 1

attention.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected