opencode-swarm 7.72.0 → 7.72.1

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
@@ -52,7 +52,7 @@ var package_default;
52
52
  var init_package = __esm(() => {
53
53
  package_default = {
54
54
  name: "opencode-swarm",
55
- version: "7.72.0",
55
+ version: "7.72.1",
56
56
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
57
57
  main: "dist/index.js",
58
58
  types: "dist/index.d.ts",
@@ -22384,6 +22384,9 @@ var init_config = __esm(() => {
22384
22384
  });
22385
22385
 
22386
22386
  // src/services/warning-buffer.ts
22387
+ function getDeferredWarnings() {
22388
+ return [...deferredWarnings];
22389
+ }
22387
22390
  var deferredWarnings;
22388
22391
  var init_warning_buffer = __esm(() => {
22389
22392
  deferredWarnings = [];
@@ -47229,11 +47232,11 @@ async function getDiagnoseData(directory) {
47229
47232
  detail: "No snapshots yet (snapshots written on next session start)"
47230
47233
  });
47231
47234
  }
47232
- if (deferredWarnings.length > 0) {
47235
+ if (getDeferredWarnings().length > 0) {
47233
47236
  checks5.push({
47234
47237
  name: "Deferred Warnings",
47235
47238
  status: "\u26A0\uFE0F",
47236
- detail: `${deferredWarnings.length} warning(s) deferred from init (run with verbose logs for details)`
47239
+ detail: `${getDeferredWarnings().length} warning(s) deferred from init (run with verbose logs for details)`
47237
47240
  });
47238
47241
  }
47239
47242
  const cachePaths = getPluginCachePaths();
@@ -47272,7 +47275,8 @@ async function getDiagnoseData(directory) {
47272
47275
  checks: checks5,
47273
47276
  passCount,
47274
47277
  totalCount,
47275
- allPassed
47278
+ allPassed,
47279
+ deferredWarnings: getDeferredWarnings()
47276
47280
  };
47277
47281
  }
47278
47282
  function formatDiagnoseMarkdown(diagnose) {
@@ -47283,11 +47287,11 @@ function formatDiagnoseMarkdown(diagnose) {
47283
47287
  "",
47284
47288
  `**Result**: ${diagnose.allPassed ? "\u2705 All checks passed" : `\u26A0\uFE0F ${diagnose.passCount}/${diagnose.totalCount} checks passed`}`
47285
47289
  ];
47286
- if (deferredWarnings.length > 0) {
47290
+ if (diagnose.deferredWarnings.length > 0) {
47287
47291
  lines.push("");
47288
47292
  lines.push("## Deferred Warnings");
47289
47293
  lines.push("");
47290
- for (const warning of deferredWarnings) {
47294
+ for (const warning of diagnose.deferredWarnings) {
47291
47295
  lines.push(`- ${warning}`);
47292
47296
  }
47293
47297
  }
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var package_default;
69
69
  var init_package = __esm(() => {
70
70
  package_default = {
71
71
  name: "opencode-swarm",
72
- version: "7.72.0",
72
+ version: "7.72.1",
73
73
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
74
74
  main: "dist/index.js",
75
75
  types: "dist/index.d.ts",
@@ -16953,6 +16953,12 @@ function addDeferredWarning(warning) {
16953
16953
  deferredWarnings.push(warning);
16954
16954
  }
16955
16955
  }
16956
+ function getDeferredWarnings() {
16957
+ return [...deferredWarnings];
16958
+ }
16959
+ function clearDeferredWarnings() {
16960
+ deferredWarnings.length = 0;
16961
+ }
16956
16962
  var deferredWarnings, MAX_DEFERRED_WARNINGS = 50;
16957
16963
  var init_warning_buffer = __esm(() => {
16958
16964
  deferredWarnings = [];
@@ -70782,11 +70788,11 @@ async function getDiagnoseData(directory) {
70782
70788
  detail: "No snapshots yet (snapshots written on next session start)"
70783
70789
  });
70784
70790
  }
70785
- if (deferredWarnings.length > 0) {
70791
+ if (getDeferredWarnings().length > 0) {
70786
70792
  checks5.push({
70787
70793
  name: "Deferred Warnings",
70788
70794
  status: "⚠️",
70789
- detail: `${deferredWarnings.length} warning(s) deferred from init (run with verbose logs for details)`
70795
+ detail: `${getDeferredWarnings().length} warning(s) deferred from init (run with verbose logs for details)`
70790
70796
  });
70791
70797
  }
70792
70798
  const cachePaths = getPluginCachePaths();
@@ -70825,7 +70831,8 @@ async function getDiagnoseData(directory) {
70825
70831
  checks: checks5,
70826
70832
  passCount,
70827
70833
  totalCount,
70828
- allPassed
70834
+ allPassed,
70835
+ deferredWarnings: getDeferredWarnings()
70829
70836
  };
70830
70837
  }
70831
70838
  function formatDiagnoseMarkdown(diagnose) {
@@ -70836,11 +70843,11 @@ function formatDiagnoseMarkdown(diagnose) {
70836
70843
  "",
70837
70844
  `**Result**: ${diagnose.allPassed ? "✅ All checks passed" : `⚠️ ${diagnose.passCount}/${diagnose.totalCount} checks passed`}`
70838
70845
  ];
70839
- if (deferredWarnings.length > 0) {
70846
+ if (diagnose.deferredWarnings.length > 0) {
70840
70847
  lines.push("");
70841
70848
  lines.push("## Deferred Warnings");
70842
70849
  lines.push("");
70843
- for (const warning of deferredWarnings) {
70850
+ for (const warning of diagnose.deferredWarnings) {
70844
70851
  lines.push(`- ${warning}`);
70845
70852
  }
70846
70853
  }
@@ -142600,7 +142607,7 @@ var OpenCodeSwarm = async (ctx) => {
142600
142607
  };
142601
142608
  async function initializeOpenCodeSwarm(ctx) {
142602
142609
  const { config: config3, loadedFromFile } = await loadPluginConfigWithMetaAsync(ctx.directory);
142603
- deferredWarnings.length = 0;
142610
+ clearDeferredWarnings();
142604
142611
  if (config3.full_auto?.enabled === true) {
142605
142612
  const criticModel = config3.full_auto.critic_model ?? config3.agents?.critic?.model ?? DEFAULT_MODELS.critic;
142606
142613
  const architectModel = config3.agents?.architect?.model ?? DEFAULT_MODELS.default;
@@ -14,6 +14,7 @@ export interface DiagnoseData {
14
14
  passCount: number;
15
15
  totalCount: number;
16
16
  allPassed: boolean;
17
+ deferredWarnings: readonly string[];
17
18
  }
18
19
  /**
19
20
  * Resolve the grammar WASM directory from an arbitrary module directory.
@@ -1,9 +1,12 @@
1
+ export declare function addDeferredWarning(warning: string): void;
1
2
  /**
2
- * Bounded buffer for deferred non-critical init warnings.
3
- * Populated during plugin startup when quiet:true; replayed in /swarm diagnose.
4
- * Extracted from index.ts so agents/index.ts and diagnose-service.ts can
5
- * share the buffer without creating a circular dependency.
6
- * Max 50 entries to prevent memory growth.
3
+ * Returns a shallow copy of the current deferred warnings. The copy is
4
+ * safe to read but cannot mutate the internal buffer. Use
5
+ * addDeferredWarning() to add entries.
7
6
  */
8
- export declare const deferredWarnings: string[];
9
- export declare function addDeferredWarning(warning: string): void;
7
+ export declare function getDeferredWarnings(): readonly string[];
8
+ /**
9
+ * Clears all deferred warnings. This is for session-lifecycle management
10
+ * and is called by src/index.ts at session start to isolate state.
11
+ */
12
+ export declare function clearDeferredWarnings(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.72.0",
3
+ "version": "7.72.1",
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",