@edihasaj/recall 1.0.2 → 1.0.4

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.
@@ -1232,6 +1232,7 @@ var INJECTION_ARTIFACT_RE = new RegExp(
1232
1232
  "i"
1233
1233
  );
1234
1234
  var EPHEMERAL_TASK_CONTEXT_RE = /(?:^\s*\/goal\b|pause for (?:the )?user\b|this is task def(?:inition)?:|key details\s+description\s+(?:goal|background)\b|link to jira ticket|what(?:'|’)s changed\?|this article lists the tools we use for development|required software on node)/i;
1235
+ var CODEX_INTERNAL_PROMPT_RE = /(?:^\s*generate a title and a git branch name for a coding agent\b|^\s*#\s*overview\s+generate\s+0\s+to\s+3\s+hyperpersonalized suggestions for what this user can do with codex\b|^\s*you are an expert at upholding safety and compliance standards for codex ambient suggestions\b|^\s*you are the implementation worker for one isolated git worktree\b|^\s*you are reviewing github pull request\b[^\n]*\bon behalf of the maintainer\b|^\s*#\s*github issue workorder\s*:|^\s*continue the previous coding task using user-provided context only\b)/i;
1235
1236
  function looksLikeQuestionContext(text) {
1236
1237
  if (/\b(?:always|never|remember|memorize|save this|from now on|by default|make it a rule)\b/i.test(text)) {
1237
1238
  return false;
@@ -1246,7 +1247,7 @@ function looksLikeQuestionContext(text) {
1246
1247
  return /\?\s*$/.test(text.trim()) || /(?:^|[.!?]\s+)(?:how|why|what|where|which|who|can|could|should|would|do|does|did|is|are|was|were|have|has)\b/i.test(text);
1247
1248
  }
1248
1249
  function isNonUserCaptureContext(text) {
1249
- return SYSTEM_SCAFFOLD_RE.test(text) || NON_USER_CONTEXT_RE.test(text) || INJECTION_ARTIFACT_RE.test(text) || EPHEMERAL_TASK_CONTEXT_RE.test(text) || looksLikeQuestionContext(text);
1250
+ return SYSTEM_SCAFFOLD_RE.test(text) || NON_USER_CONTEXT_RE.test(text) || INJECTION_ARTIFACT_RE.test(text) || EPHEMERAL_TASK_CONTEXT_RE.test(text) || CODEX_INTERNAL_PROMPT_RE.test(text) || looksLikeQuestionContext(text);
1250
1251
  }
1251
1252
 
1252
1253
  // src/scanner/signal.ts
@@ -3967,4 +3968,4 @@ export {
3967
3968
  processCorrection,
3968
3969
  processReviewFeedback
3969
3970
  };
3970
- //# sourceMappingURL=chunk-DUTMCVI6.js.map
3971
+ //# sourceMappingURL=chunk-4LE3UXSJ.js.map