@aliyunrds/ctxdb 0.0.8-beta.2 → 0.0.8-beta.3

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.
@@ -337,6 +337,11 @@ async function captureTurn(transcriptPath, cfg, client, agent = "default") {
337
337
  if (!turn.some((m) => m.role === "user")) {
338
338
  return { captured: false, reason: "no_user_in_turn", messageCount: 0 };
339
339
  }
340
+ const AUTOMATED_REVIEW_PREFIX = "[SYSTEM: This is an automated background review task. It is NOT a user message.";
341
+ const userMsgs = turn.filter((m) => m.role === "user");
342
+ if (userMsgs.every((m) => m.content.startsWith(AUTOMATED_REVIEW_PREFIX))) {
343
+ return { captured: false, reason: "automated_review_skip", messageCount: 0 };
344
+ }
340
345
  const turnRows = selectTurnRows(rows);
341
346
  if (dbg) debug("capture", "current turn rows", summarizeTranscriptRows(turnRows));
342
347
  const kb = isKnowledgeBaseUploadTurn(toKbDetectionMessages(turnRows));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliyunrds/ctxdb",
3
- "version": "0.0.8-beta.2",
3
+ "version": "0.0.8-beta.3",
4
4
  "type": "module",
5
5
  "description": "Unified access layer for RDS ContextDatabase: `ctxdb` CLI (memory + KB ops), one-shot `setup --agent <qoder|codex|claude>` installer, per-agent config, hooks, and SKILL.md.",
6
6
  "license": "Apache-2.0",