@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.
- package/dist/index.js +7 -7
- 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
|
|
84
|
-
console.log(`[VoiceClaw Plugin] listAccountIds called.
|
|
85
|
-
// If
|
|
86
|
-
if (
|
|
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
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
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.
|
|
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",
|