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.
- package/dist/cli/index.js +748 -346
- package/dist/config/constants.d.ts +13 -0
- package/dist/config/schema.d.ts +2 -0
- package/dist/hooks/curator-types.d.ts +1 -0
- package/dist/hooks/curator.d.ts +2 -2
- package/dist/index.js +1694 -1131
- package/dist/plan/checkpoint.d.ts +25 -0
- package/dist/plan/checkpoint.test.d.ts +1 -0
- package/dist/plan/ledger-integrity.test.d.ts +5 -0
- package/dist/plan/ledger-snapshot-adversarial.test.d.ts +1 -0
- package/dist/plan/ledger.d.ts +196 -0
- package/dist/plan/ledger.test.d.ts +1 -0
- package/dist/plan/manager.d.ts +9 -0
- package/dist/plan/manager.ledger-aware.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -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>;
|
package/dist/hooks/curator.d.ts
CHANGED
|
@@ -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[],
|
|
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
|
/**
|