@chatpanel/channels 0.3.13 → 0.3.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/channels",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Drive ChatPanel agents from external messaging surfaces (Telegram, WhatsApp). One normalize→invoke→stream core per platform, wired through @chatpanel/pii redaction and the @chatpanel/events audit log. The local Telegram shape is outbound-only (long-poll) and opens no inbound port — the same property as Claude Code Remote Control. Pure, dependency-free ESM.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -30,7 +30,7 @@
30
30
  "start": "node bin/chatpanel-channels.js telegram"
31
31
  },
32
32
  "dependencies": {
33
- "@chatpanel/events": "^0.295.0",
33
+ "@chatpanel/events": "^0.329.0",
34
34
  "@chatpanel/pii": "^0.12.0"
35
35
  },
36
36
  "keywords": [
@@ -15,10 +15,10 @@ import { createVault } from '@chatpanel/pii';
15
15
  const TG_HOST = 'api.telegram.org';
16
16
 
17
17
  const HELP = [
18
- 'ChatPanel — drive your local agent from here.',
18
+ 'Chap — drive your local agent from here.',
19
19
  '',
20
20
  'Send a message and I run it on your machine.',
21
- '/pair <code> — enroll this chat (ChatPanel → Settings → Channels)',
21
+ '/pair <code> — enroll this chat (Chap → Settings → Channels)',
22
22
  '/new — start fresh (forget this conversation + new privacy vault)',
23
23
  '/stop — stop the current run',
24
24
  '/help — this message',
@@ -42,7 +42,7 @@ export function channelSystem(userSystem, reach) {
42
42
  "You are answering a message sent from the user's PHONE, relayed to this machine.",
43
43
  reach === 'device'
44
44
  ? 'You cannot read files, run commands, browse the web, or change anything.'
45
- : "You can READ files and search the user's ChatPanel history. You cannot write or edit "
45
+ : "You can READ files and search the user's Chap history. You cannot write or edit "
46
46
  + 'files, run shell commands, or browse the web — those are switched off for messages '
47
47
  + 'from a phone, and no tool will grant them.',
48
48
  'If a request needs something you cannot do, say so plainly in your FIRST reply and offer '
@@ -136,7 +136,7 @@ export function startTelegram({
136
136
  : `⛔ ${r.reason}`);
137
137
  }
138
138
  if (name === 'help' || name === 'start') return void send(norm.chatId, HELP);
139
- if (name === 'pair') return void send(norm.chatId, 'send /pair <code> — get the code in ChatPanel → Settings → Channels');
139
+ if (name === 'pair') return void send(norm.chatId, 'send /pair <code> — get the code in Chap → Settings → Channels');
140
140
  if (name === 'new') {
141
141
  chats.set(norm.chatId, freshChat());
142
142
  return void send(norm.chatId, '🧹 fresh conversation.');
@@ -157,7 +157,7 @@ export function startTelegram({
157
157
  // — tool scoping (reach → per-actor allowlist) is the next layer and lives above the bridge.
158
158
  const reach = pairing.reachOf(id);
159
159
  if (!reach) {
160
- return void send(norm.chatId, '🔒 not paired. Get a code in the ChatPanel extension, then send: /pair <code>');
160
+ return void send(norm.chatId, '🔒 not paired. Get a code in Chap (Settings → Channels), then send: /pair <code>');
161
161
  }
162
162
  if (!norm.text && !norm.photos.length) return;
163
163
  const st = chatState(norm.chatId);