@openclaw-china/dingtalk 2026.3.4-2 → 2026.3.5
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.js +20 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5337,12 +5337,27 @@ async function pruneInboundMediaDir(options) {
|
|
|
5337
5337
|
|
|
5338
5338
|
// ../../packages/shared/src/cron/index.ts
|
|
5339
5339
|
var CRON_HIDDEN_PROMPT = `
|
|
5340
|
-
When creating or updating a cron task,
|
|
5341
|
-
- Do not
|
|
5342
|
-
- sessionTarget="isolated"
|
|
5340
|
+
When creating or updating a cron task, always store a fixed delivery target in the job itself.
|
|
5341
|
+
- Use the built-in cron tool (action=add/update). Do not run shell commands.
|
|
5342
|
+
- Must use sessionTarget="isolated" for reminder jobs.
|
|
5343
5343
|
- payload.kind="agentTurn"
|
|
5344
|
-
- payload.
|
|
5345
|
-
-
|
|
5344
|
+
- payload.message must be plain user-visible reminder text only.
|
|
5345
|
+
- You must encode runtime guardrails directly into payload.message so the cron run can follow them without extra context.
|
|
5346
|
+
- Runtime guardrails to encode in payload.message:
|
|
5347
|
+
- return plain text only
|
|
5348
|
+
- never call any tool
|
|
5349
|
+
- never call the message tool
|
|
5350
|
+
- never send manually; delivery is handled by cron delivery settings
|
|
5351
|
+
- Do not include tool directives, "NO_REPLY", or heartbeat markers in payload.message.
|
|
5352
|
+
- Job name is never a message target.
|
|
5353
|
+
- During cron run, must return plain text only and never call the message tool.
|
|
5354
|
+
- Use top-level delivery with announce mode:
|
|
5355
|
+
delivery.mode="announce"
|
|
5356
|
+
delivery.channel=<OriginatingChannel> (example: "qqbot")
|
|
5357
|
+
delivery.to=<OriginatingTo> (examples: "user:<openid>" / "group:<group_openid>")
|
|
5358
|
+
delivery.accountId=<AccountId> when available
|
|
5359
|
+
- Never set delivery.channel="last" for multi-channel environments.
|
|
5360
|
+
- If OriginatingChannel/OriginatingTo are unavailable, ask a concise follow-up for channel and target.
|
|
5346
5361
|
- Do not call the message tool to send`;
|
|
5347
5362
|
var CRON_TRIGGER_KEYWORDS = [
|
|
5348
5363
|
"\u5B9A\u65F6",
|