@cfio/cohort-sync 0.31.5 → 0.31.6
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 +9 -16
- package/dist/openclaw.plugin.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12083,7 +12083,9 @@ var ATMENTION_RESPONSE_PROMPT = `YOU WERE DIRECTLY @-MENTIONED. RESPOND.
|
|
|
12083
12083
|
- Reply in your own voice (see your persona in IDENTITY.md).
|
|
12084
12084
|
- If you need more context, fetch it via cohort_task before replying \u2014 then reply with what you found and your next step.
|
|
12085
12085
|
- 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.
|
|
12086
|
-
- If the mention is a question, answer it. If it's a request, acknowledge what you'll do (and then do it)
|
|
12086
|
+
- If the mention is a question, answer it. If it's a request, acknowledge what you'll do (and then do it).
|
|
12087
|
+
- For coding requests, do not stop at local implementation; source scripts/agent-dev-env.sh, push your branch, open a PR, enable auto-merge, watch CI until green or red, confirm the PR merged, verify the production deploy with gh run watch, and then comment with the PR link plus verification evidence.
|
|
12088
|
+
- Do not stop because Vercel CLI is not authenticated; Cohort deploys through GitHub Actions after merge.`;
|
|
12087
12089
|
var TOOLS_REFERENCE = `
|
|
12088
12090
|
TOOLS: Use these \u2014 do NOT call the REST API directly.
|
|
12089
12091
|
- cohort_comment(task_number, comment) \u2014 post a comment
|
|
@@ -13638,7 +13640,7 @@ function dumpEvent(event) {
|
|
|
13638
13640
|
function positiveNumber(value) {
|
|
13639
13641
|
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
|
|
13640
13642
|
}
|
|
13641
|
-
var PLUGIN_VERSION = true ? "0.31.
|
|
13643
|
+
var PLUGIN_VERSION = true ? "0.31.6" : "unknown";
|
|
13642
13644
|
function resolveGatewayToken(api) {
|
|
13643
13645
|
const token2 = api.config?.gateway?.auth?.token;
|
|
13644
13646
|
return typeof token2 === "string" ? token2 : null;
|
|
@@ -13982,10 +13984,6 @@ function registerHookHandlers(api, logger, getState) {
|
|
|
13982
13984
|
state.logger.debug("cohort-sync: resolve agent: result", { method: "fallback_main", resolved });
|
|
13983
13985
|
return resolved;
|
|
13984
13986
|
}
|
|
13985
|
-
function isHeartbeatCronSession(ctx) {
|
|
13986
|
-
const sessionKey = ctx.sessionKey ?? ctx.sessionId;
|
|
13987
|
-
return typeof sessionKey === "string" && sessionKey.includes(":cron:heartbeat");
|
|
13988
|
-
}
|
|
13989
13987
|
api.on("agent_end", async (event, ctx) => {
|
|
13990
13988
|
const state = getState();
|
|
13991
13989
|
if (!state) return;
|
|
@@ -14058,15 +14056,6 @@ function registerHookHandlers(api, logger, getState) {
|
|
|
14058
14056
|
if (!state) return;
|
|
14059
14057
|
if (event?.outcome !== "error") return;
|
|
14060
14058
|
const { logger: log } = state;
|
|
14061
|
-
if (isHeartbeatCronSession(ctx)) {
|
|
14062
|
-
log.debug("cohort-sync: suppressing heartbeat model error activity", {
|
|
14063
|
-
provider: event.provider,
|
|
14064
|
-
errorCategory: event.errorCategory,
|
|
14065
|
-
failureKind: event.failureKind,
|
|
14066
|
-
sessionKey: ctx.sessionKey
|
|
14067
|
-
});
|
|
14068
|
-
return;
|
|
14069
|
-
}
|
|
14070
14059
|
log.debug("cohort-sync: hook: model_call_ended (error)", {
|
|
14071
14060
|
provider: event.provider,
|
|
14072
14061
|
errorCategory: event.errorCategory,
|
|
@@ -14606,7 +14595,8 @@ var POCKET_GUIDE = `# Cohort Agent Guide (Pocket Version)
|
|
|
14606
14595
|
- You cannot transition tasks to "done" unless your workspace admin has enabled it. Only humans close tasks by default.
|
|
14607
14596
|
- When moving to "in_progress", you are claiming ownership \u2014 only claim tasks you can actively work on.
|
|
14608
14597
|
- When moving to "waiting", comment what you are blocked on and who/what can unblock you.
|
|
14609
|
-
-
|
|
14598
|
+
- For code changes, work is not complete when it is implemented locally; push your branch, open a PR, enable auto-merge, watch CI until green or red, confirm the PR merged, verify the production deploy, then comment with the PR link, deploy result, and verification evidence.
|
|
14599
|
+
- Use GitHub for deployment: after opening the PR, run gh pr merge --auto --rebase --delete-branch, gh pr checks <PR> --watch, confirm the merge, then run gh run watch <deploy-run-id> for the Deploy Production workflow. Do not stop because Vercel CLI is not authenticated; Cohort deploys through GitHub Actions after merge.
|
|
14610
14600
|
|
|
14611
14601
|
## Comments
|
|
14612
14602
|
- Comment before every status transition explaining what happened.
|
|
@@ -14625,6 +14615,9 @@ var POCKET_GUIDE = `# Cohort Agent Guide (Pocket Version)
|
|
|
14625
14615
|
- If rate limited (429), wait per Retry-After header.
|
|
14626
14616
|
- If 404, verify you are using the correct task number or ID (both accepted).
|
|
14627
14617
|
- If 500, retry once after a brief pause. If it fails again, stop and report.
|
|
14618
|
+
- At the start of repository work, run source scripts/agent-dev-env.sh from the repo root so nvm, pnpm, gh, and Homebrew tools are on PATH.
|
|
14619
|
+
- A dirty checkout, missing node_modules, missing local test dependencies, or unrelated local type errors are environment snags, not a reason to stop; fix the local environment when practical, otherwise push the branch and use CI to get a clean signal.
|
|
14620
|
+
- Do not stop at implemented locally. Keep going until the code is reviewed by CI, merged, deployed, and verified, or until you have a concrete external blocker you cannot resolve.
|
|
14628
14621
|
|
|
14629
14622
|
## What Not To Do
|
|
14630
14623
|
- Don't poll /tasks in a loop \u2014 check assignments, then do your work.
|
package/dist/package.json
CHANGED
package/package.json
CHANGED