opencode-swarm 7.18.0 → 7.18.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.
@@ -1,15 +1,20 @@
1
- import { type ConfigDoctorResult } from '../services/config-doctor';
1
+ import { type ConfigDoctorResult, type ModelAvailability } from '../services/config-doctor';
2
2
  /**
3
3
  * Format tool doctor result as markdown for command output.
4
4
  *
5
5
  * Exported for unit testing of the BLOCKING footer enforcement path.
6
6
  */
7
7
  export declare function formatToolDoctorMarkdown(result: ConfigDoctorResult): string;
8
+ export declare function loadModelAvailability(directory: string, client: unknown, options?: {
9
+ timeoutMs?: number;
10
+ }): Promise<ModelAvailability | undefined>;
8
11
  /**
9
12
  * Handle /swarm config doctor command.
10
13
  * Maps to: config doctor service (runConfigDoctor)
11
14
  */
12
- export declare function handleDoctorCommand(directory: string, args: string[]): Promise<string>;
15
+ export declare function handleDoctorCommand(directory: string, args: string[], options?: {
16
+ client?: unknown;
17
+ }): Promise<string>;
13
18
  /**
14
19
  * Handle /swarm doctor tools command.
15
20
  * Maps to: tool doctor service (runToolDoctor)
@@ -45,7 +45,7 @@ export declare function buildHelpText(): string;
45
45
  * Creates a command.execute.before handler for /swarm commands.
46
46
  * Uses factory pattern to close over directory and agents.
47
47
  */
48
- export declare function createSwarmCommandHandler(directory: string, agents: Record<string, AgentDefinition>): (input: {
48
+ export declare function createSwarmCommandHandler(directory: string, agents: Record<string, AgentDefinition>, client?: unknown): (input: {
49
49
  command: string;
50
50
  sessionID: string;
51
51
  arguments: string;
@@ -8,6 +8,7 @@ export type CommandContext = {
8
8
  args: string[];
9
9
  sessionID: string;
10
10
  agents: Record<string, AgentDefinition>;
11
+ client?: unknown;
11
12
  };
12
13
  export type CommandResult = Promise<string>;
13
14
  export type CommandCategory = 'core' | 'agent' | 'config' | 'diagnostics' | 'utility';