nextclaw 0.6.14 → 0.6.16
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/cli/index.js +24 -14
- package/package.json +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -534,7 +534,7 @@ function loadPluginRegistry(config2, workspaceDir) {
|
|
|
534
534
|
"gateway",
|
|
535
535
|
"cron"
|
|
536
536
|
],
|
|
537
|
-
reservedChannelIds:
|
|
537
|
+
reservedChannelIds: [],
|
|
538
538
|
reservedProviderIds: PROVIDERS.map((provider) => provider.name),
|
|
539
539
|
logger: {
|
|
540
540
|
info: (message) => console.log(message),
|
|
@@ -623,7 +623,7 @@ var PluginCommands = class {
|
|
|
623
623
|
const report = buildPluginStatusReport({
|
|
624
624
|
config: config2,
|
|
625
625
|
workspaceDir,
|
|
626
|
-
reservedChannelIds:
|
|
626
|
+
reservedChannelIds: [],
|
|
627
627
|
reservedProviderIds: PROVIDERS.map((provider) => provider.name)
|
|
628
628
|
});
|
|
629
629
|
const list = opts.enabled ? report.plugins.filter((plugin) => plugin.status === "loaded") : report.plugins;
|
|
@@ -680,7 +680,7 @@ var PluginCommands = class {
|
|
|
680
680
|
const report = buildPluginStatusReport({
|
|
681
681
|
config: config2,
|
|
682
682
|
workspaceDir,
|
|
683
|
-
reservedChannelIds:
|
|
683
|
+
reservedChannelIds: [],
|
|
684
684
|
reservedProviderIds: PROVIDERS.map((provider) => provider.name)
|
|
685
685
|
});
|
|
686
686
|
const plugin = report.plugins.find((entry) => entry.id === id || entry.name === id);
|
|
@@ -765,7 +765,7 @@ var PluginCommands = class {
|
|
|
765
765
|
const report = buildPluginStatusReport({
|
|
766
766
|
config: config2,
|
|
767
767
|
workspaceDir,
|
|
768
|
-
reservedChannelIds:
|
|
768
|
+
reservedChannelIds: [],
|
|
769
769
|
reservedProviderIds: PROVIDERS.map((provider) => provider.name)
|
|
770
770
|
});
|
|
771
771
|
const keepFiles = Boolean(opts.keepFiles || opts.keepConfig);
|
|
@@ -959,7 +959,7 @@ var PluginCommands = class {
|
|
|
959
959
|
const report = buildPluginStatusReport({
|
|
960
960
|
config: config2,
|
|
961
961
|
workspaceDir,
|
|
962
|
-
reservedChannelIds:
|
|
962
|
+
reservedChannelIds: [],
|
|
963
963
|
reservedProviderIds: PROVIDERS.map((provider) => provider.name)
|
|
964
964
|
});
|
|
965
965
|
const pluginErrors = report.plugins.filter((plugin) => plugin.status === "error");
|
|
@@ -1327,8 +1327,19 @@ var ConfigCommands = class {
|
|
|
1327
1327
|
|
|
1328
1328
|
// src/cli/commands/channels.ts
|
|
1329
1329
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
1330
|
-
import { getWorkspacePath as getWorkspacePath2, loadConfig as loadConfig3, saveConfig as saveConfig3, PROVIDERS as PROVIDERS2 } from "@nextclaw/core";
|
|
1330
|
+
import { BUILTIN_CHANNEL_PLUGIN_IDS, getWorkspacePath as getWorkspacePath2, loadConfig as loadConfig3, saveConfig as saveConfig3, PROVIDERS as PROVIDERS2 } from "@nextclaw/core";
|
|
1331
1331
|
import { buildPluginStatusReport as buildPluginStatusReport2, enablePluginInConfig as enablePluginInConfig2, getPluginChannelBindings } from "@nextclaw/openclaw-compat";
|
|
1332
|
+
var CHANNEL_LABELS = {
|
|
1333
|
+
telegram: "Telegram",
|
|
1334
|
+
whatsapp: "WhatsApp",
|
|
1335
|
+
discord: "Discord",
|
|
1336
|
+
feishu: "Feishu",
|
|
1337
|
+
mochat: "Mochat",
|
|
1338
|
+
dingtalk: "DingTalk",
|
|
1339
|
+
email: "Email",
|
|
1340
|
+
slack: "Slack",
|
|
1341
|
+
qq: "QQ"
|
|
1342
|
+
};
|
|
1332
1343
|
var ChannelCommands = class {
|
|
1333
1344
|
constructor(deps) {
|
|
1334
1345
|
this.deps = deps;
|
|
@@ -1336,18 +1347,17 @@ var ChannelCommands = class {
|
|
|
1336
1347
|
channelsStatus() {
|
|
1337
1348
|
const config2 = loadConfig3();
|
|
1338
1349
|
console.log("Channel Status");
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
console.log(`QQ: ${config2.channels.qq.enabled ? "\u2713" : "\u2717"}`);
|
|
1350
|
+
const channelConfig = config2.channels;
|
|
1351
|
+
for (const channelId of BUILTIN_CHANNEL_PLUGIN_IDS) {
|
|
1352
|
+
const label = CHANNEL_LABELS[channelId] ?? channelId;
|
|
1353
|
+
const enabled = channelConfig[channelId]?.enabled === true;
|
|
1354
|
+
console.log(`${label}: ${enabled ? "\u2713" : "\u2717"}`);
|
|
1355
|
+
}
|
|
1346
1356
|
const workspaceDir = getWorkspacePath2(config2.agents.defaults.workspace);
|
|
1347
1357
|
const report = buildPluginStatusReport2({
|
|
1348
1358
|
config: config2,
|
|
1349
1359
|
workspaceDir,
|
|
1350
|
-
reservedChannelIds:
|
|
1360
|
+
reservedChannelIds: [],
|
|
1351
1361
|
reservedProviderIds: PROVIDERS2.map((provider) => provider.name)
|
|
1352
1362
|
});
|
|
1353
1363
|
const pluginChannels = report.plugins.filter((plugin) => plugin.status === "loaded" && plugin.channelIds.length > 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextclaw",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"chokidar": "^3.6.0",
|
|
40
40
|
"commander": "^12.1.0",
|
|
41
|
-
"@nextclaw/core": "^0.6.
|
|
41
|
+
"@nextclaw/core": "^0.6.16",
|
|
42
42
|
"@nextclaw/server": "^0.4.2",
|
|
43
|
-
"@nextclaw/openclaw-compat": "^0.1.
|
|
43
|
+
"@nextclaw/openclaw-compat": "^0.1.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^20.17.6",
|