chatccc 0.2.141 → 0.2.142
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 +1 -1
- package/src/index.ts +3 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -79,6 +79,7 @@ import { setMessageHandler } from "./sim-store.ts";
|
|
|
79
79
|
import { handleAgentImageRequest } from "./agent-image-rpc.ts";
|
|
80
80
|
import { handleAgentFileRequest } from "./agent-file-rpc.ts";
|
|
81
81
|
import { handleAgentStopStuckRequest } from "./agent-stop-stuck.ts";
|
|
82
|
+
import { applyPrivacy } from "./privacy.ts";
|
|
82
83
|
import {
|
|
83
84
|
createCardKitCard,
|
|
84
85
|
sendCardKitMessage,
|
|
@@ -145,13 +146,13 @@ function createFeishuAdapter(): PlatformAdapter {
|
|
|
145
146
|
|
|
146
147
|
// ---- 进度展示(CardKit 委托) ----
|
|
147
148
|
async cardCreate(cardJson) {
|
|
148
|
-
return createCardKitCard(await auth(), cardJson);
|
|
149
|
+
return createCardKitCard(await auth(), applyPrivacy(cardJson));
|
|
149
150
|
},
|
|
150
151
|
async cardSend(chatId, cardId) {
|
|
151
152
|
return sendCardKitMessage(await auth(), chatId, cardId);
|
|
152
153
|
},
|
|
153
154
|
async cardUpdate(cardId, cardJson, sequence) {
|
|
154
|
-
return updateCardKitCard(await auth(), cardId, cardJson, sequence);
|
|
155
|
+
return updateCardKitCard(await auth(), cardId, applyPrivacy(cardJson), sequence);
|
|
155
156
|
},
|
|
156
157
|
};
|
|
157
158
|
}
|