@voiceclaw/voiceclaw-plugin 1.2.0 → 1.2.1
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/src/channel.d.ts +3 -3
- package/dist/src/channel.js +4 -4
- package/package.json +1 -1
package/dist/src/channel.d.ts
CHANGED
|
@@ -37,10 +37,10 @@ export declare const voiceClawPlugin: {
|
|
|
37
37
|
resolveAccount: (cfg: Record<string, any>, accountId?: string) => ResolvedAccount | undefined;
|
|
38
38
|
isConfigured: (account: ResolvedAccount) => Promise<boolean>;
|
|
39
39
|
unconfiguredReason: () => string;
|
|
40
|
-
isEnabled: (account:
|
|
40
|
+
isEnabled: (account: any) => boolean;
|
|
41
41
|
disabledReason: () => string;
|
|
42
|
-
describeAccount: (account:
|
|
43
|
-
accountId:
|
|
42
|
+
describeAccount: (account: any) => {
|
|
43
|
+
accountId: any;
|
|
44
44
|
enabled: boolean;
|
|
45
45
|
configured: boolean;
|
|
46
46
|
};
|
package/dist/src/channel.js
CHANGED
|
@@ -79,12 +79,12 @@ export const voiceClawPlugin = {
|
|
|
79
79
|
return loadSavedToken(account.accountId) !== null || Boolean(account.pairingCode);
|
|
80
80
|
},
|
|
81
81
|
unconfiguredReason: () => 'no pairing code',
|
|
82
|
-
isEnabled: (account) => account
|
|
82
|
+
isEnabled: (account) => account?.enabled !== false,
|
|
83
83
|
disabledReason: () => 'disabled',
|
|
84
84
|
describeAccount: (account) => ({
|
|
85
|
-
accountId: account
|
|
86
|
-
enabled: account
|
|
87
|
-
configured: loadSavedToken(account.accountId) !== null || Boolean(account.pairingCode),
|
|
85
|
+
accountId: account?.accountId ?? 'default',
|
|
86
|
+
enabled: account?.enabled !== false,
|
|
87
|
+
configured: account ? (loadSavedToken(account.accountId) !== null || Boolean(account.pairingCode)) : false,
|
|
88
88
|
}),
|
|
89
89
|
setAccountEnabled: ({ cfg, accountId, enabled }) => {
|
|
90
90
|
const accounts = { ...cfg.channels?.voiceclaw?.accounts };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceclaw/voiceclaw-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
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",
|