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 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 providerName = config.defaultProvider || Object.keys(providers)[0];
191
- const provider = providers[providerName];
192
- if (!provider)
193
- return null;
194
- return { name: providerName, provider };
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skimpyclaw",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Lightweight personal AI assistant with Telegram and Discord integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",