@goodandready/dsh-voice 0.9.39 → 0.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +7 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -93,11 +93,16 @@ export function apply(ctx, baseConfig) {
93
93
  }
94
94
  }
95
95
 
96
+ /**
97
+ * Resolve one environment reference to its secret.
98
+ * `ref` is a plain string (e.g. `DEEPGRAM_API_KEY`); `credentials.resolve()`
99
+ * answers `{ value, source }`, so the value is unwrapped here.
100
+ */
96
101
  const resolveKey = async (ref) => {
97
- if (!ref || !ref.type) return ''
102
+ if (!ref || typeof ref !== 'string') return ''
98
103
  try {
99
104
  const resolved = await ctx.credentials.resolve(credentialRef(ref))
100
- return resolved || ''
105
+ return (typeof resolved === 'string' ? resolved : resolved?.value) || ''
101
106
  } catch {
102
107
  return ''
103
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-voice",
3
- "version": "0.9.39",
3
+ "version": "0.9.40",
4
4
  "description": "Voice input for DeepSeek Harness: dictation chunked by pauses and voice messages, each with its own provider fallback chain (Deepgram, Groq, HuggingFace, local whisper.cpp, plus any OpenAI-compatible API of your own).",
5
5
  "license": "MIT",
6
6
  "type": "module",