@voiceclaw/voiceclaw-plugin 1.0.4 → 1.0.6

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/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -80,10 +80,10 @@ export default function register(api) {
80
80
  listAccountIds: (cfg) => {
81
81
  const accounts = cfg.channels?.voiceclaw?.accounts ?? {};
82
82
  const ids = Object.keys(accounts);
83
- const topLevelConfig = cfg.plugins?.entries?.['voiceclaw-plugin']?.config;
84
- console.log(`[VoiceClaw Plugin] listAccountIds called. topLevelConfig exists: ${!!topLevelConfig}, explicit channels: ${ids.join(',')}`);
85
- // If top-level config exists, ensure 'default' is in the list
86
- if (topLevelConfig && !ids.includes('default')) {
83
+ const hasPluginEntry = cfg.plugins?.entries?.['voiceclaw-plugin'] !== undefined;
84
+ console.log(`[VoiceClaw Plugin] listAccountIds called. hasPluginEntry: ${hasPluginEntry}, explicit channels: ${ids.join(',')}`);
85
+ // If the plugin acts as enabled, ensure 'default' is in the list
86
+ if (hasPluginEntry && !ids.includes('default')) {
87
87
  ids.push('default');
88
88
  }
89
89
  console.log(`[VoiceClaw Plugin] listAccountIds returning: ${ids.join(',')}`);
@@ -127,9 +127,9 @@ export default function register(api) {
127
127
  api.logger.info('VoiceClaw: gateway.start() called');
128
128
  handleInbound = ctx.processInbound;
129
129
  let accounts = ctx.config.channels?.voiceclaw?.accounts ?? {};
130
- // Auto-inject default account if top-level config exists and default isn't explicitly defined
131
- const topLevelConfig = ctx.config.plugins?.entries?.['voiceclaw-plugin']?.config;
132
- if (topLevelConfig && !accounts['default']) {
130
+ // Auto-inject default account if plugin entry exists and default isn't explicitly defined
131
+ const hasPluginEntry = ctx.config.plugins?.entries?.['voiceclaw-plugin'] !== undefined;
132
+ if (hasPluginEntry && !accounts['default']) {
133
133
  accounts = { ...accounts, default: {} };
134
134
  }
135
135
  for (const [accountId, baseAccount] of Object.entries(accounts)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceclaw/voiceclaw-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "OpenClaw channel plugin for VoiceClaw — relay messages between your AI agent and the VoiceClaw iOS/macOS app via Siri",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",