opencode-self-improvement 0.15.26 → 0.15.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-self-improvement",
3
- "version": "0.15.26",
3
+ "version": "0.15.27",
4
4
  "description": "Durable memory for opencode: remember facts, decisions, and commands across sessions, plus a one-command per-repo setup (/repo-init).",
5
5
  "main": "index.ts",
6
6
  "exports": {
@@ -41,9 +41,17 @@ export function quarantineReasons(row: { tags?: string[] }): string[] {
41
41
  }
42
42
 
43
43
  export function quarantineCandidate<
44
- T extends { content: string; tags?: string[] },
44
+ T extends { content: string; scope?: string; tags?: string[] },
45
45
  >(candidate: T): T {
46
- const hits = quarantinePatterns(candidate.content);
46
+ // #205: scope renders model-facing (inject/format.ts prints it on every
47
+ // injected line), so the scanner covers it as well as content. Hits are
48
+ // merged and deduplicated; provenance tags survive untouched.
49
+ const hits = [
50
+ ...new Set([
51
+ ...quarantinePatterns(candidate.content),
52
+ ...(candidate.scope ? quarantinePatterns(candidate.scope) : []),
53
+ ]),
54
+ ];
47
55
  if (!hits.length) return candidate;
48
56
  return {
49
57
  ...candidate,