natureco-cli 4.6.6 → 4.6.7
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/package.json +1 -1
- package/src/commands/channels.js +27 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.7",
|
|
4
4
|
"description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"natureco": "bin/natureco.js"
|
package/src/commands/channels.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const chalk = require('chalk');
|
|
2
|
+
const tui = require('../utils/tui');
|
|
2
3
|
const F = require('../utils/format');
|
|
3
4
|
const { getConfig, saveConfig } = require('../utils/config');
|
|
4
5
|
const fs = require('fs');
|
|
@@ -296,29 +297,35 @@ function listChannels() {
|
|
|
296
297
|
F.header('Channels');
|
|
297
298
|
|
|
298
299
|
if (channels.length === 0) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
'natureco
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
'natureco irc connect',
|
|
308
|
-
'natureco mattermost connect',
|
|
309
|
-
'natureco imessage connect',
|
|
310
|
-
'natureco sms connect',
|
|
311
|
-
'natureco webhooks connect',
|
|
312
|
-
]);
|
|
300
|
+
console.log('\n' + tui.styled(' 📡 Bağlı Kanal Yok', { color: tui.PALETTE.warning, bold: true }));
|
|
301
|
+
console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
|
|
302
|
+
console.log('\n ' + tui.C.muted('Bağlamak için:'));
|
|
303
|
+
const connectCmds = ['telegram', 'whatsapp', 'discord', 'slack', 'signal', 'irc', 'mattermost', 'imessage', 'sms', 'webhooks'];
|
|
304
|
+
for (const c of connectCmds) {
|
|
305
|
+
console.log(' ' + tui.C.brand('natureco ' + c + ' connect'));
|
|
306
|
+
}
|
|
307
|
+
console.log('');
|
|
313
308
|
return;
|
|
314
309
|
}
|
|
315
310
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
311
|
+
console.log('\n' + tui.styled(' 📡 Bağlı Kanallar (' + channels.length + ')', { color: tui.PALETTE.primary, bold: true }));
|
|
312
|
+
console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
|
|
313
|
+
console.log('\n' + tui.table(channels, [
|
|
314
|
+
{
|
|
315
|
+
key: 'name', label: 'Kanal', minWidth: 14,
|
|
316
|
+
render: r => tui.styled(r.type + ' ' + r.name, { color: tui.PALETTE.primary, bold: true })
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
key: 'status', label: 'Durum', minWidth: 14,
|
|
320
|
+
render: r => r.status === 'connected'
|
|
321
|
+
? tui.styled(' ✓ Bağlı ', { bg: tui.PALETTE.success, color: '#000', bold: true })
|
|
322
|
+
: tui.styled(' ✗ Kopuk ', { bg: tui.PALETTE.muted, color: '#000', bold: true })
|
|
323
|
+
},
|
|
324
|
+
{ key: 'detail', label: 'Detay', minWidth: 30, render: r => tui.C.muted(r.detail) },
|
|
325
|
+
], { borderStyle: 'round', zebra: true }));
|
|
326
|
+
|
|
327
|
+
console.log('\n ' + tui.C.muted('Kaldırmak için: ') + tui.C.brand('natureco channels remove <kanal>'));
|
|
328
|
+
console.log('');
|
|
322
329
|
}
|
|
323
330
|
|
|
324
331
|
function statusChannels() {
|