skimpyclaw 0.1.6 → 0.1.7
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.
- package/dist/setup.js +1 -1
- package/dist/voice.js +13 -5
- package/package.json +1 -1
package/dist/setup.js
CHANGED
|
@@ -398,7 +398,7 @@ export function buildSetupConfig(input) {
|
|
|
398
398
|
},
|
|
399
399
|
heartbeat: {
|
|
400
400
|
intervalMs: 1800000,
|
|
401
|
-
prompt: 'Read HEARTBEAT.md. Follow it strictly. If nothing needs attention, reply HEARTBEAT_OK.',
|
|
401
|
+
prompt: 'Read ~/.skimpyclaw/agents/main/HEARTBEAT.md. Follow it strictly. If nothing needs attention, reply HEARTBEAT_OK.',
|
|
402
402
|
tools: {
|
|
403
403
|
enabled: true,
|
|
404
404
|
allowedPaths: [
|
package/dist/voice.js
CHANGED
|
@@ -187,11 +187,19 @@ function getSTTProvider(config) {
|
|
|
187
187
|
if (!providers || Object.keys(providers).length === 0) {
|
|
188
188
|
return null;
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
const isApiBackedSttProvider = (provider) => Boolean(provider && (provider.stt || provider.apiKey));
|
|
191
|
+
if (config.defaultProvider) {
|
|
192
|
+
const preferred = providers[config.defaultProvider];
|
|
193
|
+
if (isApiBackedSttProvider(preferred)) {
|
|
194
|
+
return { name: config.defaultProvider, provider: preferred };
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
for (const [name, provider] of Object.entries(providers)) {
|
|
198
|
+
if (isApiBackedSttProvider(provider)) {
|
|
199
|
+
return { name, provider };
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return null;
|
|
195
203
|
}
|
|
196
204
|
/**
|
|
197
205
|
* Resolve the API key, supporting ${ENV_VAR} syntax.
|