@clawchatsai/connector 0.1.1 → 0.1.2
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.d.ts +3 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,9 @@ interface PluginApi {
|
|
|
39
39
|
start: (ctx: PluginServiceContext) => Promise<void>;
|
|
40
40
|
stop: (ctx: PluginServiceContext) => Promise<void>;
|
|
41
41
|
}) => void;
|
|
42
|
-
registerCli: (handler: (ctx: PluginCliContext) => void
|
|
42
|
+
registerCli: (handler: (ctx: PluginCliContext) => void, opts?: {
|
|
43
|
+
commands?: string[];
|
|
44
|
+
}) => void;
|
|
43
45
|
registerCommand: (opts: {
|
|
44
46
|
name: string;
|
|
45
47
|
description: string;
|
package/dist/index.js
CHANGED
|
@@ -1340,7 +1340,7 @@ const plugin = {
|
|
|
1340
1340
|
cmd.command('import <path>')
|
|
1341
1341
|
.description('Import databases and config from a folder (e.g. migrate from old data directory)')
|
|
1342
1342
|
.action((srcPath) => handleImport(String(srcPath)));
|
|
1343
|
-
});
|
|
1343
|
+
}, { commands: ['clawchats'] });
|
|
1344
1344
|
// Slash command for status from any channel
|
|
1345
1345
|
api.registerCommand({
|
|
1346
1346
|
name: 'clawchats',
|