opencode-swarm 7.76.1 → 7.76.2

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.
@@ -117,6 +117,13 @@ export declare const COMMAND_REGISTRY: {
117
117
  readonly description: "Run tool registration coherence check";
118
118
  readonly category: "diagnostics";
119
119
  };
120
+ readonly 'doctor-tools': {
121
+ readonly handler: (ctx: CommandContext) => Promise<string>;
122
+ readonly description: "Run tool registration coherence check";
123
+ readonly category: "diagnostics";
124
+ readonly aliasOf: "doctor tools";
125
+ readonly deprecated: true;
126
+ };
120
127
  readonly diagnose: {
121
128
  readonly handler: (ctx: CommandContext) => Promise<string>;
122
129
  readonly description: "Run health check on swarm state";
@@ -7,18 +7,24 @@ interface BundledSkillFile {
7
7
  relativePath: string;
8
8
  }
9
9
  declare function getSyncCacheKey(projectDirectory: string, packageRoot: string): string;
10
- declare function collectBundledSkillFilesBounded(sourceDir: string, state: CopyState, relativeDir?: string): BundledSkillFile[];
10
+ declare function collectBundledSkillFilesBoundedAsync(sourceDir: string, state: CopyState, relativeDir?: string): Promise<BundledSkillFile[]>;
11
11
  /**
12
12
  * Materialize missing built-in mode skills into the target project so architect
13
13
  * MODE dispatch can load SKILL.md files in repositories that do not already
14
14
  * vendor the latest opencode-swarm skill tree.
15
15
  *
16
+ * Async, bounded, and fail-open: safe to `await withTimeout(...)` on the
17
+ * plugin-init path (AGENTS.md Invariant 1). Runs at plugin init so the
18
+ * architect's very first auto-entered mode (e.g. SPECIFY on a fresh project) can
19
+ * load its SKILL.md without a manual `/swarm` command or session restart; the
20
+ * command path calls it again as a backstop for pre-existing projects.
21
+ *
16
22
  * This is intentionally missing-only and fail-open: custom project skills are
17
23
  * never overwritten, and any filesystem error leaves command execution fail-open.
18
24
  */
19
- export declare function syncBundledProjectSkillsIfMissing(projectDirectory: string, packageRoot: string, quiet?: boolean): void;
25
+ export declare function syncBundledProjectSkillsIfMissingAsync(projectDirectory: string, packageRoot: string, quiet?: boolean): Promise<void>;
20
26
  export declare const _test_exports: {
21
- collectBundledSkillFilesBounded: typeof collectBundledSkillFilesBounded;
27
+ collectBundledSkillFilesBoundedAsync: typeof collectBundledSkillFilesBoundedAsync;
22
28
  getSyncCacheKey: typeof getSyncCacheKey;
23
29
  resetBundledProjectSkillSyncCache: () => void;
24
30
  };