palz-connector 1.7.4-beta.1 → 1.7.4-beta.2

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,7 +1,7 @@
1
1
  {
2
2
  "id": "palz-connector",
3
3
  "name": "Palz Connector Channel",
4
- "version": "1.7.4-beta.1",
4
+ "version": "1.7.4-beta.2",
5
5
  "description": "Palz IM 接入 OpenClaw",
6
6
  "channels": [
7
7
  "palz-connector"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palz-connector",
3
- "version": "1.7.4-beta.1",
3
+ "version": "1.7.4-beta.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "description": "Palz IM 接入 OpenClaw — 模块化架构,基于 OpenClaw Runtime 消息管道",
@@ -21,6 +21,8 @@
21
21
  "id": "palz-connector",
22
22
  "label": "Palz Connector",
23
23
  "selectionLabel": "Palz Connector (IM)",
24
+ "docsPath": "/channels/palz-connector",
25
+ "docsLabel": "Palz Connector",
24
26
  "order": 100
25
27
  }
26
28
  },
package/src/bot.js CHANGED
@@ -228,19 +228,6 @@ function buildUniclawEventContext(params) {
228
228
  },
229
229
  };
230
230
  }
231
- function buildFileSharingSystemPrompt() {
232
- return [
233
- "## File Sharing",
234
- "When you create or generate a file that the user requested (documents, images, presentations, spreadsheets, archives, etc.), you MUST include a MEDIA: token in your reply so the file gets delivered to the user.",
235
- "Always write your normal text reply first (description, summary, or explanation), then append the MEDIA: line(s) at the end.",
236
- "Format: place `MEDIA: <absolute-file-path>` on its own line at the end of your reply.",
237
- "Example:",
238
- " Here is the presentation you requested. It includes 5 slides covering the main topics.",
239
- " MEDIA: /path/to/workspace/output.pptx",
240
- "Without the MEDIA: line, the user only sees text and cannot download the file.",
241
- "Multiple files: one MEDIA: line per file.",
242
- ].join("\n");
243
- }
244
231
  function buildKbIngestNoticeMessage(results) {
245
232
  const lines = results.map((result, index) => {
246
233
  const details = [
@@ -391,10 +378,13 @@ async function _handlePalzMessageInner(params) {
391
378
  if (!suppressAck) {
392
379
  try {
393
380
  log(`${tag}: [ACK] 发送确认消息 conv=${msg.conversation_id} sender=${msg.sender_id}`);
381
+ const ackContent = account.config.processLanguage === "en"
382
+ ? "Got it, thinking…"
383
+ : "收到,正在思考中…";
394
384
  await sendToPalzIM({
395
385
  config: account.config,
396
386
  conversationId: msg.conversation_id,
397
- content: "收到,正在思考中…",
387
+ content: ackContent,
398
388
  conversationType: msg.conversation_type || "direct",
399
389
  msgId: msg.msg_id,
400
390
  senderId: msg.sender_id,
@@ -681,7 +671,6 @@ async function _dispatchPalzMessageInner(params) {
681
671
  log(`${tag}: ${step6bCtx}`);
682
672
  span?.addEvent(step6bCtx);
683
673
  const showProcess = config.showProcess === true;
684
- const groupSystemPrompt = buildFileSharingSystemPrompt();
685
674
  const ctx = core.channel.reply.finalizeInboundContext({
686
675
  Body: combinedBody,
687
676
  BodyForAgent: messageBody,
@@ -714,7 +703,6 @@ async function _dispatchPalzMessageInner(params) {
714
703
  CommandAuthorized: commandAuthorized,
715
704
  OriginatingChannel: "palz-connector",
716
705
  OriginatingTo: palzTo,
717
- GroupSystemPrompt: groupSystemPrompt,
718
706
  ...mediaPayload,
719
707
  });
720
708
  const step6bOutput = `[STEP 6b 输出] finalized context keys=[${Object.keys(ctx).join(",")}] CommandAuthorized=${ctx.CommandAuthorized}`;
package/src/channel.js CHANGED
@@ -16,6 +16,8 @@ export const palzPlugin = {
16
16
  id: "palz-connector",
17
17
  label: "Palz Connector",
18
18
  selectionLabel: "Palz Connector (IM)",
19
+ docsPath: "/channels/palz-connector",
20
+ docsLabel: "Palz Connector",
19
21
  blurb: "Palz IM 接入 OpenClaw",
20
22
  order: 100,
21
23
  },