@ebowwa/channel-telegram 1.14.2 → 1.14.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,IAAI,EAAE,GACb,IAAI,CA4BN"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,IAAI,EAAE,GACb,IAAI,CAyBN"}
@@ -18,12 +18,9 @@ export function registerHelpCommand(bot, _memory, _tools) {
18
18
  '/resources - Show system resources\n' +
19
19
  '/logs [n] - Show last n log lines\n' +
20
20
  '/toolsoutput [on|off] - Toggle tool output messages\n' +
21
- '/innerthoughts [msg] - Ask the inner monologue\n' +
22
21
  '/help - Show this help\n\n' +
23
22
  '*Usage:*\n' +
24
- 'Just send any message and I\\\'ll respond with AI assistance!\n\n' +
25
- '*Mentions:*\n' +
26
- '@innerthoughts in any message triggers the inner monologue.', { parse_mode: 'Markdown' });
23
+ 'Just send any message and I\\\'ll respond with AI assistance!', { parse_mode: 'Markdown' });
27
24
  });
28
25
  }
29
26
  //# sourceMappingURL=help.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,UAAU,mBAAmB,CACjC,GAAgB,EAChB,OAA2B,EAC3B,MAAc;IAEd,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAwB,EAAE,EAAE;QACtD,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3B,MAAM,GAAG,CAAC,WAAW,CACnB,MAAM,EACN,8BAA8B;YAC9B,wCAAwC;YACxC,eAAe;YACf,iCAAiC;YACjC,8BAA8B;YAC9B,yCAAyC;YACzC,sCAAsC;YACtC,mCAAmC;YACnC,wCAAwC;YACxC,oCAAoC;YACpC,sCAAsC;YACtC,sCAAsC;YACtC,qCAAqC;YACrC,uDAAuD;YACvD,kDAAkD;YAClD,4BAA4B;YAC5B,YAAY;YACZ,mEAAmE;YACnE,eAAe;YACf,6DAA6D,EAC7D,EAAE,UAAU,EAAE,UAAU,EAAE,CAC3B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,UAAU,mBAAmB,CACjC,GAAgB,EAChB,OAA2B,EAC3B,MAAc;IAEd,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAwB,EAAE,EAAE;QACtD,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3B,MAAM,GAAG,CAAC,WAAW,CACnB,MAAM,EACN,8BAA8B;YAC9B,wCAAwC;YACxC,eAAe;YACf,iCAAiC;YACjC,8BAA8B;YAC9B,yCAAyC;YACzC,sCAAsC;YACtC,mCAAmC;YACnC,wCAAwC;YACxC,oCAAoC;YACpC,sCAAsC;YACtC,sCAAsC;YACtC,qCAAqC;YACrC,uDAAuD;YACvD,4BAA4B;YAC5B,YAAY;YACZ,+DAA+D,EAC/D,EAAE,UAAU,EAAE,UAAU,EAAE,CAC3B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -15,7 +15,6 @@ export { registerPauseCommand, isPaused, waitWhilePaused, clearPause } from './p
15
15
  export { registerResumeCommand } from './resume';
16
16
  export { registerQuietCommand, isQuiet, clearQuiet } from './quiet';
17
17
  export { registerVerboseCommand } from './verbose';
18
- export { registerInnerthoughtsCommand } from './innerthoughts';
19
18
  export { register as registerRestartCommand } from './restart';
20
19
  export type { CommandRegistrar, CommandContext } from './types';
21
20
  import type TelegramBot from 'node-telegram-bot-api';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC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AS,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,QAAQ,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAG/D,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEhE,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AAiBrD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,OAAO,wBAAwB,EAAE,kBAAkB,EAC3D,KAAK,EAAE,OAAO,UAAU,EAAE,IAAI,EAAE,GAC/B,IAAI,CAgBN"}
@@ -15,7 +15,6 @@ export { registerPauseCommand, isPaused, waitWhilePaused, clearPause } from './p
15
15
  export { registerResumeCommand } from './resume';
16
16
  export { registerQuietCommand, isQuiet, clearQuiet } from './quiet';
17
17
  export { registerVerboseCommand } from './verbose';
18
- export { registerInnerthoughtsCommand } from './innerthoughts';
19
18
  export { register as registerRestartCommand } from './restart';
20
19
  import { register as importedRegisterRestart } from './restart';
21
20
  import { registerStartCommand } from './start';
@@ -32,7 +31,6 @@ import { registerPauseCommand } from './pause';
32
31
  import { registerResumeCommand } from './resume';
33
32
  import { registerQuietCommand } from './quiet';
34
33
  import { registerVerboseCommand } from './verbose';
35
- import { registerInnerthoughtsCommand } from './innerthoughts';
36
34
  /**
37
35
  * Register all commands with the bot
38
36
  */
@@ -51,7 +49,6 @@ export function registerAllCommands(bot, memory, tools) {
51
49
  registerResumeCommand(bot, memory, tools);
52
50
  registerQuietCommand(bot, memory, tools);
53
51
  registerVerboseCommand(bot, memory, tools);
54
- registerInnerthoughtsCommand(bot, memory, tools);
55
52
  importedRegisterRestart(bot, tools);
56
53
  }
57
54
  //# sourceMappingURL=index.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,EAAE,KAAK,CAAC,CAAC;IACxC,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3C,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACxC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7C,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC1C,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC1C,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACzC,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3C,uBAAuB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebowwa/channel-telegram",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "Pure Telegram protocol adapter implementing ChannelConnector",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,12 +29,9 @@ export function registerHelpCommand(
29
29
  '/resources - Show system resources\n' +
30
30
  '/logs [n] - Show last n log lines\n' +
31
31
  '/toolsoutput [on|off] - Toggle tool output messages\n' +
32
- '/innerthoughts [msg] - Ask the inner monologue\n' +
33
32
  '/help - Show this help\n\n' +
34
33
  '*Usage:*\n' +
35
- 'Just send any message and I\\\'ll respond with AI assistance!\n\n' +
36
- '*Mentions:*\n' +
37
- '@innerthoughts in any message triggers the inner monologue.',
34
+ 'Just send any message and I\\\'ll respond with AI assistance!',
38
35
  { parse_mode: 'Markdown' }
39
36
  );
40
37
  });
@@ -16,7 +16,6 @@ export { registerPauseCommand, isPaused, waitWhilePaused, clearPause } from './p
16
16
  export { registerResumeCommand } from './resume';
17
17
  export { registerQuietCommand, isQuiet, clearQuiet } from './quiet';
18
18
  export { registerVerboseCommand } from './verbose';
19
- export { registerInnerthoughtsCommand } from './innerthoughts';
20
19
  export { register as registerRestartCommand } from './restart';
21
20
  import { register as importedRegisterRestart } from './restart';
22
21
 
@@ -38,7 +37,6 @@ import { registerPauseCommand } from './pause';
38
37
  import { registerResumeCommand } from './resume';
39
38
  import { registerQuietCommand } from './quiet';
40
39
  import { registerVerboseCommand } from './verbose';
41
- import { registerInnerthoughtsCommand } from './innerthoughts';
42
40
 
43
41
  /**
44
42
  * Register all commands with the bot
@@ -62,6 +60,5 @@ export function registerAllCommands(
62
60
  registerResumeCommand(bot, memory, tools);
63
61
  registerQuietCommand(bot, memory, tools);
64
62
  registerVerboseCommand(bot, memory, tools);
65
- registerInnerthoughtsCommand(bot, memory, tools);
66
63
  importedRegisterRestart(bot, tools);
67
64
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * /innerthoughts command - Ask the inner monologue daemon
3
- *
4
- * Connects to the seed-monologue daemon running on the VPS
5
- */
6
- import TelegramBot from 'node-telegram-bot-api';
7
- import { ConversationMemory } from '../conversation-memory';
8
- import type { Tool } from '../types';
9
- export declare function registerInnerthoughtsCommand(bot: TelegramBot, _memory: ConversationMemory, _tools: Tool[]): void;
10
- //# sourceMappingURL=innerthoughts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"innerthoughts.d.ts","sourceRoot":"","sources":["../../src/commands/innerthoughts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAgCrC,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,IAAI,EAAE,GACb,IAAI,CAoCN"}
@@ -1,52 +0,0 @@
1
- /**
2
- * /innerthoughts command - Ask the inner monologue daemon
3
- *
4
- * Connects to the seed-monologue daemon running on the VPS
5
- */
6
- const MONOLOGUE_URL = process.env.MONOLOGUE_URL || 'http://localhost:8920';
7
- async function askMonologue(question) {
8
- try {
9
- const res = await fetch(`${MONOLOGUE_URL}/ask`, {
10
- method: 'POST',
11
- headers: { 'Content-Type': 'application/json' },
12
- body: JSON.stringify({ question }),
13
- });
14
- if (!res.ok) {
15
- return `Monologue error: ${res.status}`;
16
- }
17
- const data = await res.json();
18
- let thought = data.thought || '...';
19
- // Clean up the thought for Telegram
20
- thought = thought
21
- .replace(/[*_\[\]]/g, '')
22
- .replace(/\n+/g, ' ')
23
- .trim()
24
- .slice(0, 400);
25
- return thought;
26
- }
27
- catch (error) {
28
- return `Could not reach inner monologue: ${error.message}`;
29
- }
30
- }
31
- export function registerInnerthoughtsCommand(bot, _memory, _tools) {
32
- // Match /innerthoughts followed by optional question
33
- bot.onText(/\/innerthoughts(?:\s+(.+))?/, async (msg, match) => {
34
- const chatId = msg.chat.id;
35
- const question = match?.[1]?.trim() || 'What are you thinking about?';
36
- bot.sendChatAction(chatId, 'typing');
37
- const thought = await askMonologue(question);
38
- await bot.sendMessage(chatId, `💭 *Inner Monologue*\n\n_${thought}_`, { parse_mode: 'Markdown' });
39
- });
40
- // Also respond to @innerthoughts mentions in regular messages
41
- bot.on('text', async (msg) => {
42
- const text = msg.text || '';
43
- if (text.toLowerCase().includes('@innerthoughts')) {
44
- const chatId = msg.chat.id;
45
- const question = text.replace(/@innerthoughts/gi, '').trim() || 'Hello?';
46
- bot.sendChatAction(chatId, 'typing');
47
- const thought = await askMonologue(question);
48
- await bot.sendMessage(chatId, `💭 _${thought}_`, { parse_mode: 'Markdown' });
49
- }
50
- });
51
- }
52
- //# sourceMappingURL=innerthoughts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"innerthoughts.js","sourceRoot":"","sources":["../../src/commands/innerthoughts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,uBAAuB,CAAC;AAE3E,KAAK,UAAU,YAAY,CAAC,QAAgB;IAC1C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,MAAM,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;YAC/C,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;SACnC,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO,oBAAoB,GAAG,CAAC,MAAM,EAAE,CAAC;QAC1C,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAA0B,CAAC;QACtD,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC;QAEpC,oCAAoC;QACpC,OAAO,GAAG,OAAO;aACd,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;aACxB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;aACpB,IAAI,EAAE;aACN,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAEjB,OAAO,OAAO,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,oCAAqC,KAAe,CAAC,OAAO,EAAE,CAAC;IACxE,CAAC;AACH,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,GAAgB,EAChB,OAA2B,EAC3B,MAAc;IAEd,qDAAqD;IACrD,GAAG,CAAC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ask the inner monologue daemon
3
- *
4
- * Connects to the seed-monologue daemon running on the VPS
5
- */
6
-
7
- import TelegramBot from 'node-telegram-bot-api';
8
- import { ConversationMemory } from '../conversation-memory';
9
- import type { Tool } from '../types';
10
-
11
- const MONOLOGUE_URL = process.env.MONOLOGUE_URL || 'http://localhost:8920';
12
-
13
- async function askMonologue(question: string): Promise<string> {
14
- try {
15
- const res = await fetch(`${MONOLOGUE_URL}/ask`, {
16
- method: 'POST',
17
- headers: { 'Content-Type': 'application/json' },
18
- body: JSON.stringify({ question }),
19
- });
20
-
21
- if (!res.ok) {
22
- return `Monologue error: ${res.status}`;
23
- }
24
-
25
- const data = await res.json() as { thought?: string };
26
- let thought = data.thought || '...';
27
-
28
- // Clean up the thought for Telegram
29
- thought = thought
30
- .replace(/[*_\[\]]/g, '')
31
- .replace(/\n+/g, ' ')
32
- .trim()
33
- .slice(0, 400);
34
-
35
- return thought;
36
- } catch (error) {
37
- return `Could not reach inner monologue: ${(error as Error).message}`;
38
- }
39
- }
40
-
41
- export function registerInnerthoughtsCommand(
42
- bot: TelegramBot,
43
- _memory: ConversationMemory,
44
- _tools: Tool[]
45
- ): void {
46
- // Match /innerthoughts followed by optional question
47
- bot.onText(/\/innerthoughts(?:\s+(.+))?/, async (msg: TelegramBot.Message, match: RegExpExecArray | null) => {
48
- const chatId = msg.chat.id;
49
- const question = match?.[1]?.trim() || 'What are you thinking about?';
50
-
51
- bot.sendChatAction(chatId, 'typing');
52
-
53
- const thought = await askMonologue(question);
54
-
55
- await bot.sendMessage(
56
- chatId,
57
- `💭 *Inner Monologue*\n\n_${thought}_`,
58
- { parse_mode: 'Markdown' }
59
- );
60
- });
61
-
62
- // Also respond to @innerthoughts mentions in regular messages
63
- bot.on('text', async (msg) => {
64
- const text = msg.text || '';
65
-
66
- if (text.toLowerCase().includes('@innerthoughts')) {
67
- const chatId = msg.chat.id;
68
- const question = text.replace(/@innerthoughts/gi, '').trim() || 'Hello?';
69
-
70
- bot.sendChatAction(chatId, 'typing');
71
-
72
- const thought = await askMonologue(question);
73
-
74
- await bot.sendMessage(
75
- chatId,
76
- `💭 _${thought}_`,
77
- { parse_mode: 'Markdown' }
78
- );
79
- }
80
- });
81
- }