@hopgoldy/agent-bridge 0.1.1 → 0.2.1

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/index.d.ts CHANGED
@@ -115,6 +115,18 @@ interface FeishuClientConfig {
115
115
  verificationToken?: string;
116
116
  requireMentionInGroup?: boolean;
117
117
  }
118
+ interface WecomClientConfig {
119
+ botId: string;
120
+ secret: string;
121
+ websocketUrl?: string;
122
+ requireMentionInGroup?: boolean;
123
+ }
124
+ interface WeixinClientConfig {
125
+ accountId: string;
126
+ token: string;
127
+ baseUrl?: string;
128
+ cdnBaseUrl?: string;
129
+ }
118
130
  interface PiCodingAgentConfig {
119
131
  bin?: string;
120
132
  sessionDir?: string;
@@ -124,6 +136,12 @@ interface PiCodingAgentConfig {
124
136
  type ClientConfig = {
125
137
  type: "feishu";
126
138
  config: FeishuClientConfig;
139
+ } | {
140
+ type: "wecom";
141
+ config: WecomClientConfig;
142
+ } | {
143
+ type: "weixin";
144
+ config: WeixinClientConfig;
127
145
  };
128
146
  type AgentConfig = {
129
147
  type: "pi-coding-agent";
@@ -167,5 +185,21 @@ interface FeishuInboundMessage {
167
185
  mentionedBot?: boolean;
168
186
  raw?: unknown;
169
187
  }
188
+ interface WecomInboundMessage {
189
+ chatId: string;
190
+ chatType: "dm" | "group";
191
+ messageId: string;
192
+ text: string;
193
+ mentionedBot?: boolean;
194
+ raw?: unknown;
195
+ }
196
+ interface WeixinInboundMessage {
197
+ chatId: string;
198
+ chatType: "dm" | "group";
199
+ messageId: string;
200
+ text: string;
201
+ mentionedBot?: boolean;
202
+ raw?: unknown;
203
+ }
170
204
 
171
- export type { AgentAdapter, AgentConfig, AgentInputEvent, AgentModule, AgentOutputEvent, AppConfig, AppDefaults, ChannelConfig, ChannelRunner, ClientConfig, ClientInputEvent, ClientModule, ClientOutputEvent, ConfigAdapter, ConfigCollectContext, ConfigInputOptions, ConfigSelectOption, FeishuClientConfig, FeishuInboundMessage, GatewayCoreOptions, IMAdapter, LegacyAgentInputEvent, OutboundAttachment, PiCodingAgentConfig, RunChannelOptions, SessionBindingStore };
205
+ export type { AgentAdapter, AgentConfig, AgentInputEvent, AgentModule, AgentOutputEvent, AppConfig, AppDefaults, ChannelConfig, ChannelRunner, ClientConfig, ClientInputEvent, ClientModule, ClientOutputEvent, ConfigAdapter, ConfigCollectContext, ConfigInputOptions, ConfigSelectOption, FeishuClientConfig, FeishuInboundMessage, GatewayCoreOptions, IMAdapter, LegacyAgentInputEvent, OutboundAttachment, PiCodingAgentConfig, RunChannelOptions, SessionBindingStore, WecomClientConfig, WecomInboundMessage, WeixinClientConfig, WeixinInboundMessage };
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@hopgoldy/agent-bridge",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
- "description": "IM to Pi bridge with dual-adapter architecture",
5
+ "description": "IM to Agent bridge with dual-adapter architecture",
6
+ "packageManager": "pnpm@10.33.0",
6
7
  "keywords": [
7
8
  "im",
8
9
  "bridge",
@@ -40,10 +41,14 @@
40
41
  "dependencies": {
41
42
  "@clack/prompts": "^1.7.0",
42
43
  "@larksuiteoapi/node-sdk": "^1.64.0",
43
- "commander": "^12.1.0"
44
+ "@openilink/openilink-sdk-node": "^0.6.0",
45
+ "@wecom/aibot-node-sdk": "^1.0.7",
46
+ "commander": "^12.1.0",
47
+ "qrcode-terminal": "^0.12.0"
44
48
  },
45
49
  "devDependencies": {
46
50
  "@types/node": "^24.3.0",
51
+ "@types/qrcode-terminal": "^0.12.2",
47
52
  "@vitest/coverage-v8": "^3.2.7",
48
53
  "commit-and-tag-version": "^12.7.3",
49
54
  "cross-env": "^10.0.0",
@@ -61,4 +66,4 @@
61
66
  "start": "node ./dist/agent-bridge.js",
62
67
  "release": "commit-and-tag-version && git push --follow-tags origin main"
63
68
  }
64
- }
69
+ }