opencode-swarm 6.43.1 → 6.44.0

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.
@@ -8,6 +8,19 @@ export type QAAgentName = (typeof QA_AGENTS)[number];
8
8
  export type PipelineAgentName = (typeof PIPELINE_AGENTS)[number];
9
9
  export type AgentName = (typeof ALL_AGENT_NAMES)[number];
10
10
  export declare const AGENT_TOOL_MAP: Record<AgentName, ToolName[]>;
11
+ /**
12
+ * Human-readable descriptions for tools shown in the architect Available Tools block.
13
+ * Used to generate the Available Tools section of the architect prompt at construction time.
14
+ */
15
+ /**
16
+ * Canonical set of tool names that write/modify file contents.
17
+ * Used by scope-guard.ts and guardrails.ts to detect write operations.
18
+ * NOTE: bash/shell tools are intentionally excluded — bash commands are opaque
19
+ * to static scope analysis. Post-hoc detection via guardrails diff-scope provides secondary coverage.
20
+ */
21
+ export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "create_file", "insert", "replace", "append", "prepend"];
22
+ export type WriteToolName = (typeof WRITE_TOOL_NAMES)[number];
23
+ export declare const TOOL_DESCRIPTIONS: Partial<Record<ToolName, string>>;
11
24
  export declare const DEFAULT_MODELS: Record<string, string>;
12
25
  export declare function isQAAgent(name: string): name is QAAgentName;
13
26
  export declare function isSubagent(name: string): boolean;
@@ -442,6 +442,7 @@ export declare const CuratorConfigSchema: z.ZodObject<{
442
442
  compliance_report: z.ZodDefault<z.ZodBoolean>;
443
443
  suppress_warnings: z.ZodDefault<z.ZodBoolean>;
444
444
  drift_inject_max_chars: z.ZodDefault<z.ZodNumber>;
445
+ llm_timeout_ms: z.ZodDefault<z.ZodNumber>;
445
446
  }, z.core.$strip>;
446
447
  export type CuratorConfig = z.infer<typeof CuratorConfigSchema>;
447
448
  export declare const SlopDetectorConfigSchema: z.ZodObject<{
@@ -753,6 +754,7 @@ export declare const PluginConfigSchema: z.ZodObject<{
753
754
  compliance_report: z.ZodDefault<z.ZodBoolean>;
754
755
  suppress_warnings: z.ZodDefault<z.ZodBoolean>;
755
756
  drift_inject_max_chars: z.ZodDefault<z.ZodNumber>;
757
+ llm_timeout_ms: z.ZodDefault<z.ZodNumber>;
756
758
  }, z.core.$strip>>;
757
759
  tool_output: z.ZodOptional<z.ZodObject<{
758
760
  truncation_enabled: z.ZodDefault<z.ZodBoolean>;
@@ -77,6 +77,7 @@ export interface CuratorConfig {
77
77
  compliance_report: boolean;
78
78
  suppress_warnings: boolean;
79
79
  drift_inject_max_chars: number;
80
+ llm_timeout_ms?: number;
80
81
  }
81
82
  export interface CuratorInitResult {
82
83
  briefing: string;
@@ -15,7 +15,7 @@ import type { KnowledgeConfig } from './knowledge-types.js';
15
15
  * Takes a system prompt and user input, returns the LLM output text.
16
16
  * Used to delegate analysis to the explorer agent in CURATOR mode.
17
17
  */
18
- export type CuratorLLMDelegate = (systemPrompt: string, userInput: string) => Promise<string>;
18
+ export type CuratorLLMDelegate = (systemPrompt: string, userInput: string, signal?: AbortSignal) => Promise<string>;
19
19
  /**
20
20
  * Parse KNOWLEDGE_UPDATES section from curator LLM output.
21
21
  * Expected format per line: "- [action] [entry_id or "new"]: [reason]"
@@ -72,7 +72,7 @@ export declare function runCuratorInit(directory: string, config: CuratorConfig,
72
72
  * @param llmDelegate - Optional LLM delegate for enhanced analysis
73
73
  * @returns CuratorPhaseResult with digest, compliance, and recommendations
74
74
  */
75
- export declare function runCuratorPhase(directory: string, phase: number, agentsDispatched: string[], _config: CuratorConfig, _knowledgeConfig: {
75
+ export declare function runCuratorPhase(directory: string, phase: number, agentsDispatched: string[], config: CuratorConfig, _knowledgeConfig: {
76
76
  directory?: string;
77
77
  }, llmDelegate?: CuratorLLMDelegate): Promise<CuratorPhaseResult>;
78
78
  /**