opencode-swarm 6.41.3 → 6.41.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.
package/dist/cli/index.js CHANGED
@@ -33432,7 +33432,7 @@ function darkMatterToKnowledgeEntries(pairs, projectName) {
33432
33432
  lesson,
33433
33433
  category: "architecture",
33434
33434
  tags: ["hidden-coupling", "co-change", "dark-matter"],
33435
- scope: "project",
33435
+ scope: "global",
33436
33436
  confidence,
33437
33437
  status: "candidate",
33438
33438
  confirmed_by: [],
package/dist/index.js CHANGED
@@ -32342,7 +32342,7 @@ function darkMatterToKnowledgeEntries(pairs, projectName) {
32342
32342
  lesson,
32343
32343
  category: "architecture",
32344
32344
  tags: ["hidden-coupling", "co-change", "dark-matter"],
32345
- scope: "project",
32345
+ scope: "global",
32346
32346
  confidence,
32347
32347
  status: "candidate",
32348
32348
  confirmed_by: [],
@@ -55228,8 +55228,7 @@ function createSystemEnhancerHook(config3, directory) {
55228
55228
  } = await Promise.resolve().then(() => (init_co_change_analyzer(), exports_co_change_analyzer));
55229
55229
  const darkMatter = await detectDarkMatter2(directory, {
55230
55230
  minCommits: 20,
55231
- minCoChanges: 3,
55232
- npmiThreshold: 0.3
55231
+ minCoChanges: 3
55233
55232
  });
55234
55233
  if (darkMatter && darkMatter.length > 0) {
55235
55234
  const darkMatterReport = formatDarkMatterOutput2(darkMatter);
@@ -55255,6 +55254,19 @@ function createSystemEnhancerHook(config3, directory) {
55255
55254
  }
55256
55255
  }
55257
55256
  }
55257
+ try {
55258
+ const knowledgePath = resolveSwarmKnowledgePath(directory);
55259
+ const allEntries = await readKnowledge(knowledgePath);
55260
+ const stale = allEntries.filter((e) => e.scope === "project" && e.auto_generated === true && Array.isArray(e.tags) && e.tags.includes("dark-matter"));
55261
+ if (stale.length > 0) {
55262
+ for (const e of stale) {
55263
+ e.scope = "global";
55264
+ e.updated_at = new Date().toISOString();
55265
+ }
55266
+ await rewriteKnowledge(knowledgePath, allEntries);
55267
+ warn(`[system-enhancer] Repaired ${stale.length} dark matter knowledge entries (scope: 'project' \u2192 'global')`);
55268
+ }
55269
+ } catch {}
55258
55270
  } catch {}
55259
55271
  const scoringEnabled = config3.context_budget?.scoring?.enabled === true;
55260
55272
  if (!scoringEnabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.41.3",
3
+ "version": "6.41.4",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",