@cfio/cohort-sync 0.28.0 → 0.29.0
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 +16 -2
- package/dist/openclaw.plugin.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11975,6 +11975,13 @@ var DEFAULT_BEHAVIORAL_PROMPT = `BEFORE RESPONDING:
|
|
|
11975
11975
|
- Does your planned response address the task's stated scope? If not, do not comment.
|
|
11976
11976
|
- Do not post acknowledgment-only responses ("got it", "sounds good", "confirmed"). If you have no new information to add, do not comment.
|
|
11977
11977
|
- If the work is complete, transition the task to "waiting" and set noReply=true on your final comment, then stop working on this task.`;
|
|
11978
|
+
var ATMENTION_RESPONSE_PROMPT = `YOU WERE DIRECTLY @-MENTIONED. RESPOND.
|
|
11979
|
+
|
|
11980
|
+
- Use the cohort_comment tool to post a reply. Do NOT just think silently and exit.
|
|
11981
|
+
- Reply in your own voice (see your persona in IDENTITY.md).
|
|
11982
|
+
- If you need more context, fetch it via cohort_task before replying \u2014 then reply with what you found and your next step.
|
|
11983
|
+
- A brief, honest reply is better than no reply. If you genuinely have nothing to add, say so explicitly in a comment \u2014 don't go silent.
|
|
11984
|
+
- If the mention is a question, answer it. If it's a request, acknowledge what you'll do (and then do it).`;
|
|
11978
11985
|
var TOOLS_REFERENCE = `
|
|
11979
11986
|
TOOLS: Use these \u2014 do NOT call the REST API directly.
|
|
11980
11987
|
- cohort_comment(task_number, comment) \u2014 post a comment
|
|
@@ -12035,9 +12042,16 @@ Comment: "${n.preview}"`;
|
|
|
12035
12042
|
|
|
12036
12043
|
Scope: ${truncated}`;
|
|
12037
12044
|
}
|
|
12038
|
-
|
|
12045
|
+
let prompt;
|
|
12046
|
+
if (n.type === "comment" && n.isMentioned) {
|
|
12047
|
+
prompt = n.behavioralPrompt ? `${n.behavioralPrompt}
|
|
12048
|
+
|
|
12049
|
+
${ATMENTION_RESPONSE_PROMPT}` : ATMENTION_RESPONSE_PROMPT;
|
|
12050
|
+
} else {
|
|
12051
|
+
prompt = n.behavioralPrompt ? `${n.behavioralPrompt}
|
|
12039
12052
|
|
|
12040
12053
|
${DEFAULT_BEHAVIORAL_PROMPT}` : DEFAULT_BEHAVIORAL_PROMPT;
|
|
12054
|
+
}
|
|
12041
12055
|
const promptBlock = n.type === "comment" ? `
|
|
12042
12056
|
|
|
12043
12057
|
---
|
|
@@ -13473,7 +13487,7 @@ function dumpCtx(ctx) {
|
|
|
13473
13487
|
function dumpEvent(event) {
|
|
13474
13488
|
return dumpCtx(event);
|
|
13475
13489
|
}
|
|
13476
|
-
var PLUGIN_VERSION = true ? "0.
|
|
13490
|
+
var PLUGIN_VERSION = true ? "0.29.0" : "unknown";
|
|
13477
13491
|
function resolveGatewayToken(api) {
|
|
13478
13492
|
const token = api.config?.gateway?.auth?.token;
|
|
13479
13493
|
return typeof token === "string" ? token : null;
|
package/dist/package.json
CHANGED
package/package.json
CHANGED