@ebowwa/glm-daemon 0.4.3 → 0.4.4
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/dist/bin/discord-cli.js
CHANGED
|
@@ -100449,7 +100449,7 @@ ${msg.text || ""}` : msg.text || "",
|
|
|
100449
100449
|
if (false) {}
|
|
100450
100450
|
|
|
100451
100451
|
// src/channels/telegram.ts
|
|
100452
|
-
class
|
|
100452
|
+
class GLMTelegramChannel extends BaseChannel {
|
|
100453
100453
|
id;
|
|
100454
100454
|
label = "Telegram";
|
|
100455
100455
|
capabilities = {
|
package/dist/bin/telegram-cli.js
CHANGED
|
@@ -100449,7 +100449,7 @@ ${msg.text || ""}` : msg.text || "",
|
|
|
100449
100449
|
if (false) {}
|
|
100450
100450
|
|
|
100451
100451
|
// src/channels/telegram.ts
|
|
100452
|
-
class
|
|
100452
|
+
class GLMTelegramChannel extends BaseChannel {
|
|
100453
100453
|
id;
|
|
100454
100454
|
label = "Telegram";
|
|
100455
100455
|
capabilities = {
|
|
@@ -100712,7 +100712,7 @@ async function main() {
|
|
|
100712
100712
|
console.error("[GLM-Daemon] TELEGRAM_BOT_TOKEN not found");
|
|
100713
100713
|
process.exit(1);
|
|
100714
100714
|
}
|
|
100715
|
-
const channel = new
|
|
100715
|
+
const channel = new GLMTelegramChannel(config);
|
|
100716
100716
|
await channel.start();
|
|
100717
100717
|
console.log("[GLM-Daemon] Bot running with GLM-4.7");
|
|
100718
100718
|
process.on("SIGINT", async () => {
|
package/dist/index.js
CHANGED
|
@@ -100643,7 +100643,7 @@ ${msg.text || ""}` : msg.text || "",
|
|
|
100643
100643
|
if (false) {}
|
|
100644
100644
|
|
|
100645
100645
|
// src/channels/telegram.ts
|
|
100646
|
-
class
|
|
100646
|
+
class GLMTelegramChannel extends BaseChannel {
|
|
100647
100647
|
id;
|
|
100648
100648
|
label = "Telegram";
|
|
100649
100649
|
capabilities = {
|
|
@@ -100916,7 +100916,7 @@ export {
|
|
|
100916
100916
|
executeBuiltinTool,
|
|
100917
100917
|
createGLMDaemon,
|
|
100918
100918
|
ToolBridge,
|
|
100919
|
-
|
|
100919
|
+
GLMTelegramChannel as TelegramChannel,
|
|
100920
100920
|
StringConversationMemory,
|
|
100921
100921
|
StateManager,
|
|
100922
100922
|
NumericConversationMemory,
|
package/package.json
CHANGED
package/src/channels/index.ts
CHANGED
|
@@ -31,15 +31,18 @@ export {
|
|
|
31
31
|
type MessageClassification,
|
|
32
32
|
} from "./base.js";
|
|
33
33
|
|
|
34
|
-
// Telegram
|
|
34
|
+
// Telegram (GLM-powered channel wrapping @ebowwa/channel-telegram)
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
GLMTelegramChannel,
|
|
37
37
|
type TelegramChannelConfig,
|
|
38
38
|
type TelegramConfig,
|
|
39
39
|
createTelegramChannel,
|
|
40
40
|
createTelegramConfigFromEnv,
|
|
41
41
|
} from "./telegram.js";
|
|
42
42
|
|
|
43
|
+
// Legacy alias for backwards compat
|
|
44
|
+
export { GLMTelegramChannel as TelegramChannel } from "./telegram.js";
|
|
45
|
+
|
|
43
46
|
// Discord
|
|
44
47
|
export {
|
|
45
48
|
DiscordChannel,
|
|
@@ -56,7 +59,7 @@ export {
|
|
|
56
59
|
import type { ChannelConnector } from "@ebowwa/channel-types";
|
|
57
60
|
import { BaseChannel } from "./base.js";
|
|
58
61
|
import {
|
|
59
|
-
|
|
62
|
+
GLMTelegramChannel,
|
|
60
63
|
type TelegramChannelConfig,
|
|
61
64
|
createTelegramConfigFromEnv,
|
|
62
65
|
} from "./telegram.js";
|
|
@@ -135,7 +138,7 @@ export function createChannelsFromEnv(): ChannelConnector[] {
|
|
|
135
138
|
// Telegram
|
|
136
139
|
const telegramConfig = createTelegramConfigFromEnv();
|
|
137
140
|
if (telegramConfig) {
|
|
138
|
-
channels.push(new
|
|
141
|
+
channels.push(new GLMTelegramChannel(telegramConfig));
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
// Discord
|
package/src/channels/telegram.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type { TelegramChannelConfig as TelegramConfig };
|
|
|
41
41
|
// TELEGRAM CHANNEL (Wraps @ebowwa/channel-telegram)
|
|
42
42
|
// ============================================================
|
|
43
43
|
|
|
44
|
-
export class
|
|
44
|
+
export class GLMTelegramChannel extends BaseChannel {
|
|
45
45
|
readonly id: ChannelId;
|
|
46
46
|
readonly label = "Telegram";
|
|
47
47
|
readonly capabilities: ChannelCapabilities = {
|
|
@@ -172,8 +172,8 @@ export class TelegramChannel extends BaseChannel {
|
|
|
172
172
|
/**
|
|
173
173
|
* Create a Telegram channel from config
|
|
174
174
|
*/
|
|
175
|
-
export function createTelegramChannel(config: TelegramChannelConfig):
|
|
176
|
-
return new
|
|
175
|
+
export function createTelegramChannel(config: TelegramChannelConfig): GLMTelegramChannel {
|
|
176
|
+
return new GLMTelegramChannel(config);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
/**
|