@kernel.chat/kbot 3.32.0 → 3.33.0
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/README.md +25 -2
- package/dist/tools/openclaw.d.ts +2 -0
- package/dist/tools/openclaw.d.ts.map +1 -0
- package/dist/tools/openclaw.js +172 -0
- package/dist/tools/openclaw.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
7
|
-
<img src="../../tools/video-assets/demo.gif" alt="kbot demo" width="700">
|
|
7
|
+
<img src="../../tools/video-assets/demo-hero.gif" alt="kbot demo — The Kernel Stack" width="700">
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
@@ -165,7 +165,7 @@ for await (const event of agent.stream("explain this code")) {
|
|
|
165
165
|
const files = await tools.execute('glob', { pattern: 'src/**/*.ts' })
|
|
166
166
|
console.log(files.result)
|
|
167
167
|
|
|
168
|
-
// List all
|
|
168
|
+
// List all 350+ tools
|
|
169
169
|
console.log(tools.list().map(t => t.name))
|
|
170
170
|
```
|
|
171
171
|
|
|
@@ -506,9 +506,32 @@ Inside the REPL, type `/help` for the full command list.
|
|
|
506
506
|
|
|
507
507
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, adding tools, and creating specialist agents.
|
|
508
508
|
|
|
509
|
+
## Demos
|
|
510
|
+
|
|
511
|
+
<details>
|
|
512
|
+
<summary><strong>Learning Engine</strong> — pattern extraction + skill routing</summary>
|
|
513
|
+
<img src="../../tools/video-assets/demo-learning.gif" alt="kbot learning engine" width="700">
|
|
514
|
+
</details>
|
|
515
|
+
|
|
516
|
+
<details>
|
|
517
|
+
<summary><strong>Agent Routing</strong> — 26 specialists, auto-routed by intent</summary>
|
|
518
|
+
<img src="../../tools/video-assets/demo-agents.gif" alt="kbot agent routing" width="700">
|
|
519
|
+
</details>
|
|
520
|
+
|
|
521
|
+
<details>
|
|
522
|
+
<summary><strong>Self-Defense</strong> — HMAC integrity, injection detection, audit</summary>
|
|
523
|
+
<img src="../../tools/video-assets/demo-defense.gif" alt="kbot self-defense" width="700">
|
|
524
|
+
</details>
|
|
525
|
+
|
|
526
|
+
<details>
|
|
527
|
+
<summary><strong>Local AI</strong> — $0 inference, fully offline</summary>
|
|
528
|
+
<img src="../../tools/video-assets/demo-local-ai.gif" alt="kbot local AI" width="700">
|
|
529
|
+
</details>
|
|
530
|
+
|
|
509
531
|
## Links
|
|
510
532
|
|
|
511
533
|
- [kernel.chat](https://kernel.chat) — Web companion
|
|
534
|
+
- [The Kernel Stack](./KERNEL_STACK.md) — Architecture manifesto
|
|
512
535
|
- [npm](https://www.npmjs.com/package/@kernel.chat/kbot)
|
|
513
536
|
- [Docker Hub](https://hub.docker.com/r/isaacsight/kbot)
|
|
514
537
|
- [Discord](https://discord.gg/kdMauM9abG)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openclaw.d.ts","sourceRoot":"","sources":["../../src/tools/openclaw.ts"],"names":[],"mappings":"AA0BA,wBAAgB,qBAAqB,IAAI,IAAI,CAwJ5C"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
// kbot OpenClaw Tools — The iPhone of Tokens
|
|
2
|
+
//
|
|
3
|
+
// Jensen Huang: "OpenClaw did for agentic systems what ChatGPT did for generative systems."
|
|
4
|
+
//
|
|
5
|
+
// Connects kbot to OpenClaw Gateway — discover agents, send messages,
|
|
6
|
+
// manage sessions across 20+ platforms (WhatsApp, Telegram, Slack, Discord, iMessage, etc.)
|
|
7
|
+
//
|
|
8
|
+
// Architecture: kbot ←→ OpenClaw Gateway (http://127.0.0.1:18789)
|
|
9
|
+
import { registerTool } from './index.js';
|
|
10
|
+
const GATEWAY_URL = process.env.OPENCLAW_GATEWAY_URL || 'http://127.0.0.1:18789';
|
|
11
|
+
async function clawFetch(path, options) {
|
|
12
|
+
const response = await fetch(`${GATEWAY_URL}${path}`, {
|
|
13
|
+
method: options?.method || 'GET',
|
|
14
|
+
headers: { 'Content-Type': 'application/json' },
|
|
15
|
+
body: options?.body ? JSON.stringify(options.body) : undefined,
|
|
16
|
+
});
|
|
17
|
+
if (!response.ok) {
|
|
18
|
+
const text = await response.text().catch(() => response.statusText);
|
|
19
|
+
throw new Error(`OpenClaw Gateway error: ${response.status} ${text}`);
|
|
20
|
+
}
|
|
21
|
+
return response.json();
|
|
22
|
+
}
|
|
23
|
+
export function registerOpenClawTools() {
|
|
24
|
+
registerTool({
|
|
25
|
+
name: 'openclaw_status',
|
|
26
|
+
description: 'Check if OpenClaw Gateway is running. Returns agent info, connected platforms, and session count.',
|
|
27
|
+
parameters: {},
|
|
28
|
+
tier: 'free',
|
|
29
|
+
async execute() {
|
|
30
|
+
try {
|
|
31
|
+
const status = await clawFetch('/api/status');
|
|
32
|
+
return JSON.stringify(status, null, 2);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
return `OpenClaw Gateway not running at ${GATEWAY_URL}.\nStart with: openclaw start\nError: ${err instanceof Error ? err.message : String(err)}`;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
registerTool({
|
|
40
|
+
name: 'openclaw_sessions',
|
|
41
|
+
description: 'List active OpenClaw conversations across all platforms (WhatsApp, Telegram, Slack, Discord, iMessage, etc.).',
|
|
42
|
+
parameters: {
|
|
43
|
+
platform: { type: 'string', description: 'Filter by platform (e.g., whatsapp, telegram, slack, discord)' },
|
|
44
|
+
limit: { type: 'string', description: 'Max sessions to return. Default: 20' },
|
|
45
|
+
},
|
|
46
|
+
tier: 'free',
|
|
47
|
+
async execute(args) {
|
|
48
|
+
const sessions = await clawFetch('/api/sessions');
|
|
49
|
+
let filtered = sessions;
|
|
50
|
+
if (args.platform) {
|
|
51
|
+
filtered = sessions.filter(s => s.platform.toLowerCase().includes(String(args.platform).toLowerCase()));
|
|
52
|
+
}
|
|
53
|
+
const limit = Number(args.limit) || 20;
|
|
54
|
+
filtered = filtered.slice(0, limit);
|
|
55
|
+
if (filtered.length === 0)
|
|
56
|
+
return 'No active sessions found.';
|
|
57
|
+
return filtered.map(s => `[${s.platform}] ${s.contact} (${s.id})${s.lastMessage ? ` — "${s.lastMessage}"` : ''}`).join('\n');
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
registerTool({
|
|
61
|
+
name: 'openclaw_history',
|
|
62
|
+
description: 'Get conversation history for an OpenClaw session. Useful for understanding context before responding.',
|
|
63
|
+
parameters: {
|
|
64
|
+
session_id: { type: 'string', description: 'Session ID to get history for', required: true },
|
|
65
|
+
limit: { type: 'string', description: 'Max messages to return. Default: 50' },
|
|
66
|
+
},
|
|
67
|
+
tier: 'free',
|
|
68
|
+
async execute(args) {
|
|
69
|
+
const messages = await clawFetch(`/api/sessions/${args.session_id}/history`);
|
|
70
|
+
const limit = Number(args.limit) || 50;
|
|
71
|
+
const recent = messages.slice(-limit);
|
|
72
|
+
if (recent.length === 0)
|
|
73
|
+
return 'No messages in this session.';
|
|
74
|
+
return recent.map(m => `[${m.role}]${m.timestamp ? ` (${m.timestamp})` : ''}: ${m.content}`).join('\n');
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
registerTool({
|
|
78
|
+
name: 'openclaw_send',
|
|
79
|
+
description: 'Send a message through OpenClaw to any platform. Reply to existing sessions or start new conversations on WhatsApp, Telegram, Slack, Discord, iMessage, etc.',
|
|
80
|
+
parameters: {
|
|
81
|
+
message: { type: 'string', description: 'Message to send', required: true },
|
|
82
|
+
session_id: { type: 'string', description: 'Session ID for existing conversation' },
|
|
83
|
+
platform: { type: 'string', description: 'Platform for new conversation (e.g., whatsapp, telegram, slack)' },
|
|
84
|
+
contact: { type: 'string', description: 'Contact for new conversation (phone number, username, channel)' },
|
|
85
|
+
},
|
|
86
|
+
tier: 'free',
|
|
87
|
+
async execute(args) {
|
|
88
|
+
if (args.session_id) {
|
|
89
|
+
const result = await clawFetch(`/api/sessions/${args.session_id}/send`, {
|
|
90
|
+
method: 'POST', body: { message: String(args.message) },
|
|
91
|
+
});
|
|
92
|
+
return result.status || 'Message sent.';
|
|
93
|
+
}
|
|
94
|
+
if (args.platform && args.contact) {
|
|
95
|
+
const result = await clawFetch('/api/sessions/new', {
|
|
96
|
+
method: 'POST',
|
|
97
|
+
body: { platform: String(args.platform), contact: String(args.contact), message: String(args.message) },
|
|
98
|
+
});
|
|
99
|
+
return result.session_id ? `New session ${result.session_id} — sent to ${args.contact} on ${args.platform}.` : 'Message sent.';
|
|
100
|
+
}
|
|
101
|
+
return 'Provide session_id (existing) or platform + contact (new conversation).';
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
registerTool({
|
|
105
|
+
name: 'openclaw_agents',
|
|
106
|
+
description: 'List OpenClaw agents running on the Gateway. Shows names, models, SOUL config, and status.',
|
|
107
|
+
parameters: {},
|
|
108
|
+
tier: 'free',
|
|
109
|
+
async execute() {
|
|
110
|
+
const agents = await clawFetch('/api/agents');
|
|
111
|
+
if (agents.length === 0)
|
|
112
|
+
return 'No agents configured. Create a SOUL.md and run: openclaw agent start';
|
|
113
|
+
return agents.map(a => `${a.name} [${a.status}]${a.model ? ` — ${a.model}` : ''}`).join('\n');
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
registerTool({
|
|
117
|
+
name: 'openclaw_delegate',
|
|
118
|
+
description: 'Delegate a task to an OpenClaw agent. The agent uses its SOUL personality and model to process the task. Use for multi-agent collaboration where kbot orchestrates OpenClaw agents.',
|
|
119
|
+
parameters: {
|
|
120
|
+
agent: { type: 'string', description: 'OpenClaw agent name to delegate to', required: true },
|
|
121
|
+
task: { type: 'string', description: 'Task or message for the agent', required: true },
|
|
122
|
+
context: { type: 'string', description: 'Optional context (conversation history, file contents)' },
|
|
123
|
+
},
|
|
124
|
+
tier: 'free',
|
|
125
|
+
async execute(args) {
|
|
126
|
+
const result = await clawFetch('/api/agents/delegate', {
|
|
127
|
+
method: 'POST',
|
|
128
|
+
body: { agent: String(args.agent), task: String(args.task), context: String(args.context || '') },
|
|
129
|
+
});
|
|
130
|
+
return result.response || result.error || 'No response from agent.';
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
registerTool({
|
|
134
|
+
name: 'openclaw_broadcast',
|
|
135
|
+
description: 'Broadcast a message across multiple OpenClaw sessions or platforms simultaneously. For announcements, notifications, multi-channel comms.',
|
|
136
|
+
parameters: {
|
|
137
|
+
message: { type: 'string', description: 'Message to broadcast', required: true },
|
|
138
|
+
platforms: { type: 'string', description: 'Comma-separated platforms to broadcast to (e.g., "whatsapp,telegram,slack")' },
|
|
139
|
+
},
|
|
140
|
+
tier: 'free',
|
|
141
|
+
async execute(args) {
|
|
142
|
+
const platforms = args.platforms ? String(args.platforms).split(',').map(p => p.trim()) : [];
|
|
143
|
+
const result = await clawFetch('/api/broadcast', {
|
|
144
|
+
method: 'POST',
|
|
145
|
+
body: { message: String(args.message), platforms },
|
|
146
|
+
});
|
|
147
|
+
return result.sent !== undefined ? `Broadcast: ${result.sent} sent, ${result.failed || 0} failed.` : result.error || 'Broadcast sent.';
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
registerTool({
|
|
151
|
+
name: 'openclaw_soul',
|
|
152
|
+
description: 'Read or update an OpenClaw agent\'s SOUL.md — the personality, capabilities, and behavior configuration.',
|
|
153
|
+
parameters: {
|
|
154
|
+
agent: { type: 'string', description: 'Agent name', required: true },
|
|
155
|
+
action: { type: 'string', description: '"read" or "update"', required: true },
|
|
156
|
+
content: { type: 'string', description: 'New SOUL.md content (for update)' },
|
|
157
|
+
},
|
|
158
|
+
tier: 'free',
|
|
159
|
+
async execute(args) {
|
|
160
|
+
if (args.action === 'read') {
|
|
161
|
+
const soul = await clawFetch(`/api/agents/${args.agent}/soul`);
|
|
162
|
+
return soul.content || 'No SOUL.md found.';
|
|
163
|
+
}
|
|
164
|
+
if (args.action === 'update' && args.content) {
|
|
165
|
+
await clawFetch(`/api/agents/${args.agent}/soul`, { method: 'PUT', body: { content: String(args.content) } });
|
|
166
|
+
return `SOUL.md updated for "${args.agent}".`;
|
|
167
|
+
}
|
|
168
|
+
return 'Use action="read" or action="update" with content.';
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=openclaw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openclaw.js","sourceRoot":"","sources":["../../src/tools/openclaw.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,4FAA4F;AAC5F,EAAE;AACF,sEAAsE;AACtE,4FAA4F;AAC5F,EAAE;AACF,kEAAkE;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,wBAAwB,CAAA;AAEhF,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,OAA6C;IAClF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,WAAW,GAAG,IAAI,EAAE,EAAE;QACpD,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK;QAChC,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;KAC/D,CAAC,CAAA;IACF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QACnE,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC,CAAA;IACvE,CAAC;IACD,OAAO,QAAQ,CAAC,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CAAC;YACD,OAAO,oDAAoD,CAAA;QAC7D,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernel.chat/kbot",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "The only AI agent that builds its own tools — and defends itself. Self-Defense System: HMAC memory integrity, prompt injection detection, knowledge sanitization, forge verification, anomaly detection, incident logging. Cybersecurity tools: dep_audit, secret_scan, ssl_check, headers_check, cve_lookup, port_scan, owasp_check. Machine-aware situated intelligence: full hardware profiling (CPU, GPU, RAM, display, battery, dev tools), resource-adaptive tool pipeline, memory-pressure throttling, GPU-accelerated model routing. Multi-channel cognitive engine: email agent, iMessage agent, consultation pipeline, Trader agent with paper trading & DeFi, 26 specialist agents, 345+ tools, 20 providers. Finance stack: 31 tools across market data, wallet & swaps, stocks, and sentiment. Synthesis Engine: closed-loop intelligence compounding. Runtime tool forging, Forge Registry, autopoietic health, immune self-audit. Cost-aware model routing, fallback chains, Bayesian skill routing. 11 local models (Llama 3.3, Qwen 3, DeepSeek R1, Codestral 22B). Embedded llama.cpp, MCP server, SDK. MIT.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|