@botcord/daemon 0.2.64 → 0.2.66

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/turn-text.js CHANGED
@@ -33,7 +33,8 @@ function readEnvelopeType(raw) {
33
33
  }
34
34
  function isThirdPartyConversation(conversationId) {
35
35
  return (conversationId.startsWith("telegram:") ||
36
- conversationId.startsWith("wechat:"));
36
+ conversationId.startsWith("wechat:") ||
37
+ conversationId.startsWith("feishu:"));
37
38
  }
38
39
  function replyDeliveryHint(msg) {
39
40
  return isThirdPartyConversation(msg.conversation.id)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botcord/daemon",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "description": "BotCord local daemon — bridges Hub inbox push to local Claude Code / Codex / Gemini CLIs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -134,6 +134,22 @@ describe("composeBotCordUserTurn", () => {
134
134
  expect(out).not.toContain("botcord_send");
135
135
  });
136
136
 
137
+ it("does not tell Feishu chats to use botcord_send", () => {
138
+ const out = composeBotCordUserTurn(
139
+ makeMessage({
140
+ channel: "gw_feishu_123",
141
+ conversation: { id: "feishu:user:oc_alice", kind: "direct" },
142
+ sender: { id: "feishu:user:ou_alice", name: "Alice", kind: "user" },
143
+ }),
144
+ );
145
+ expect(out).toContain("third-party gateway chat");
146
+ expect(out).toContain("Reply normally in your final assistant message");
147
+ expect(out).toContain("conversation_id: feishu:user:oc_alice");
148
+ expect(out).toContain("channel: gw_feishu_123");
149
+ expect(out).not.toContain("Plain text output WILL NOT be sent");
150
+ expect(out).not.toContain("botcord_send");
151
+ });
152
+
137
153
  it("passes owner-chat messages through verbatim (no wrapper, no hint)", () => {
138
154
  const out = composeBotCordUserTurn(
139
155
  makeMessage({
package/src/turn-text.ts CHANGED
@@ -66,7 +66,8 @@ function readEnvelopeType(raw: unknown): string | undefined {
66
66
  function isThirdPartyConversation(conversationId: string): boolean {
67
67
  return (
68
68
  conversationId.startsWith("telegram:") ||
69
- conversationId.startsWith("wechat:")
69
+ conversationId.startsWith("wechat:") ||
70
+ conversationId.startsWith("feishu:")
70
71
  );
71
72
  }
72
73