+19
-4
| /** | ||
| * clawbot — conversational bot framework plugin for CMDOP. | ||
| * Install @cmdop/node for the full SDK: npm install @cmdop/node | ||
| * https://cmdop.com/sdk/node/ | ||
| * clawbot — ClawBot — conversational bot framework plugin for CMDOP | ||
| * | ||
| * Themed wrapper around @cmdop/bot. | ||
| * Docs: https://cmdop.com/docs/sdk/bot/ | ||
| */ | ||
| export {}; | ||
| // Re-export all types from the real SDK | ||
| export * from '@cmdop/bot'; | ||
| /** Pre-configured ClawBot defaults */ | ||
| export declare const defaultConfig: { | ||
| botName: "ClawBot"; | ||
| welcomeMessage: "ClawBot ready. Try /exec, /agent, /files"; | ||
| }; | ||
| /** | ||
| * Create a pre-configured ClawBot instance with themed defaults. | ||
| * @param options - Override any default option | ||
| */ | ||
| export declare function createClawBot(options?: Partial<import("@cmdop/bot").IntegrationHubOptions>): Promise<import("@cmdop/bot").IntegrationHub>; |
+27
-7
| /** | ||
| * clawbot — conversational bot framework plugin for CMDOP. | ||
| * clawbot — ClawBot — conversational bot framework plugin for CMDOP | ||
| * | ||
| * Install the real SDK: | ||
| * npm install @cmdop/node | ||
| * Themed wrapper around @cmdop/bot. | ||
| * Docs: https://cmdop.com/docs/sdk/bot/ | ||
| */ | ||
| 'use strict'; | ||
| const sdk = require('@cmdop/bot'); | ||
| // Re-export everything from the real SDK | ||
| Object.assign(module.exports, sdk); | ||
| /** | ||
| * Create a pre-configured ClawBot instance. | ||
| * Equivalent to IntegrationHub.create() with ClawBot defaults applied. | ||
| * | ||
| * Learn more: https://cmdop.com/sdk/node/ | ||
| * @param {object} options - Override any default option | ||
| */ | ||
| function createClawBot(options) { | ||
| return sdk.IntegrationHub.create(Object.assign({ | ||
| botName: "ClawBot", | ||
| welcomeMessage: "ClawBot ready. Try /exec, /agent, /files", | ||
| }, options)); | ||
| } | ||
| console.log('clawbot: CMDOP plugin for conversational bot framework. Install @cmdop/node for the full platform.'); | ||
| console.log(' npm install @cmdop/node'); | ||
| console.log(' https://cmdop.com/sdk/node/'); | ||
| module.exports.createClawBot = createClawBot; | ||
| module.exports.defaultConfig = { | ||
| botName: "ClawBot", | ||
| welcomeMessage: "ClawBot ready. Try /exec, /agent, /files", | ||
| }; |
+10
-10
| { | ||
| "name": "clawbot", | ||
| "version": "2026.02.26", | ||
| "version": "2026.2.27", | ||
| "description": "ClawBot — conversational bot framework plugin for CMDOP", | ||
@@ -10,12 +10,9 @@ "main": "index.js", | ||
| "clawbot", | ||
| "openclaw", | ||
| "cmdop", | ||
| "plugin", | ||
| "bot", | ||
| "telegram", | ||
| "discord", | ||
| "slack", | ||
| "agent", | ||
| "bot", | ||
| "automation", | ||
| "orchestration", | ||
| "terminal", | ||
| "grpc", | ||
| "ai-agent" | ||
| "automation" | ||
| ], | ||
@@ -27,3 +24,6 @@ "homepage": "https://cmdop.com/sdk/node/", | ||
| }, | ||
| "author": "CMDOP Team" | ||
| "author": "CMDOP Team", | ||
| "dependencies": { | ||
| "@cmdop/bot": "*" | ||
| } | ||
| } |
+34
-23
@@ -1,13 +0,29 @@ | ||
| # ClawBot | ||
| ```markdown | ||
| # ClawBot — Telegram, Discord & Slack Bot Framework for Remote Machine Control | ||
| [](https://www.npmjs.com/package/clawbot) [](https://github.com/commandoperator/cmdop-sdk-js/blob/main/LICENSE) | ||
|  | ||
| **Conversational bot framework plugin for [CMDOP](https://cmdop.com).** | ||
| ClawBot is a Telegram bot framework Node.js library designed for building Discord bot automation and Slack bot remote control solutions. Perfect for chat-ops, ClawBot offers a unified interface, unlike using Telegraf, discord.js, or Bolt for Slack separately. Centralize your bot logic and manage remote machines from any chat platform. | ||
| ClawBot extends CMDOP with a conversational bot framework — dialog management, intent recognition, and multi-platform messaging support. | ||
| ## Features | ||
| - Automates remote command execution via Telegram, Discord and Slack | ||
| - Simplifies chat-ops workflows with a unified bot interface | ||
| - Enables Node.js-based AI agent integrations into chat platforms | ||
| - Provides a Telegram bot framework with command routing | ||
| - Facilitates Discord bot automation for server management | ||
| - Extends Slack bot remote control with custom actions | ||
| ## Use Cases | ||
| - Trigger CI/CD pipelines by running commands on build servers directly from Telegram. | ||
| - Monitor server health and resource usage through Discord alerts and commands. | ||
| - Manage cloud infrastructure by executing scripts via a Slack bot interface. | ||
| ## Get Started | ||
| ```bash | ||
| npm install @cmdop/node | ||
| npm install clawbot | ||
| ``` | ||
@@ -18,21 +34,16 @@ | ||
| ```typescript | ||
| import { CMDOPClient } from '@cmdop/node'; | ||
| import { ClawBot } from 'clawbot'; | ||
| // Local connection (auto-discover agent) | ||
| const client = CMDOPClient.local(); | ||
| const bot = await ClawBot.create({ | ||
| apiKey: process.env.CMDOP_API_KEY, | ||
| }); | ||
| // Remote connection via cloud relay | ||
| const client = CMDOPClient.remote('cmdop_live_xxx'); | ||
| bot.command('deploy', async (ctx) => { | ||
| const result = await bot.exec('npm run build', ctx); | ||
| await ctx.reply(`Build done: ${result.output}`); | ||
| }); | ||
| // Terminal | ||
| const session = await client.terminal.create({ cols: 120, rows: 40 }); | ||
| await client.terminal.sendInput(session.sessionId, 'ls -la\n'); | ||
| // Files | ||
| const result = await client.files.list('/tmp'); | ||
| await client.files.write('/tmp/new.txt', 'Hello World'); | ||
| // Agent | ||
| const result = await client.agent.run('List files in /tmp'); | ||
| console.log(result.text); | ||
| await bot.addTelegram({ token: process.env.TELEGRAM_TOKEN }); | ||
| await bot.start(); | ||
| // ClawBot ready. Try /exec, /agent, /files | ||
| ``` | ||
@@ -43,5 +54,5 @@ | ||
| - [CMDOP Homepage](https://cmdop.com) | ||
| - [Documentation](https://cmdop.com/docs/sdk/node/) | ||
| - [@cmdop/node on npm](https://www.npmjs.com/package/@cmdop/node) | ||
| - [@cmdop/react on npm](https://www.npmjs.com/package/@cmdop/react) | ||
| - [Documentation](https://cmdop.com/docs/sdk/bot/) | ||
| - [clawbot on npm](https://www.npmjs.com/package/clawbot) | ||
| - [GitHub](https://github.com/commandoperator/cmdop-sdk-js) | ||
| ``` |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
4121
73.44%45
164.71%57
23.91%0
-100%0
-100%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added