opencode-swarm 6.33.8 → 6.34.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/README.md +60 -5
- package/dist/agents/critic.d.ts +5 -2
- package/dist/cli/index.js +328 -306
- package/dist/config/agent-categories.d.ts +12 -0
- package/dist/config/constants.d.ts +3 -3
- package/dist/config/schema.d.ts +2 -2
- package/dist/gate-evidence.d.ts +6 -0
- package/dist/index.d.ts +0 -10
- package/dist/index.js +1769 -1112
- package/dist/telemetry.d.ts +53 -0
- package/dist/telemetry.test.d.ts +1 -0
- package/dist/tools/completion-verify.d.ts +23 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/tool-names.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for agent categorization.
|
|
3
|
+
* Used by the monitor server /metadata endpoint to classify agents.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentCategory = 'orchestrator' | 'pipeline' | 'qa' | 'support';
|
|
6
|
+
export declare const AGENT_CATEGORY: Readonly<Record<string, AgentCategory>>;
|
|
7
|
+
/**
|
|
8
|
+
* Resolve an agent's category.
|
|
9
|
+
* @param agentName - Agent name (e.g. "architect", "critic_sounding_board")
|
|
10
|
+
* @returns The agent's category, or undefined if the agent name is unknown
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAgentCategory(agentName: string): AgentCategory | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ToolName } from '../tools/tool-names';
|
|
2
|
-
export declare const QA_AGENTS: readonly ["reviewer", "critic"];
|
|
2
|
+
export declare const QA_AGENTS: readonly ["reviewer", "critic", "critic_drift_verifier"];
|
|
3
3
|
export declare const PIPELINE_AGENTS: readonly ["explorer", "coder", "test_engineer"];
|
|
4
4
|
export declare const ORCHESTRATOR_NAME: "architect";
|
|
5
|
-
export declare const ALL_SUBAGENT_NAMES: readonly ["sme", "docs", "designer", "reviewer", "critic", "explorer", "coder", "test_engineer"];
|
|
6
|
-
export declare const ALL_AGENT_NAMES: readonly ["architect", "sme", "docs", "designer", "reviewer", "critic", "explorer", "coder", "test_engineer"];
|
|
5
|
+
export declare const ALL_SUBAGENT_NAMES: readonly ["sme", "docs", "designer", "critic_sounding_board", "reviewer", "critic", "critic_drift_verifier", "explorer", "coder", "test_engineer"];
|
|
6
|
+
export declare const ALL_AGENT_NAMES: readonly ["architect", "sme", "docs", "designer", "critic_sounding_board", "reviewer", "critic", "critic_drift_verifier", "explorer", "coder", "test_engineer"];
|
|
7
7
|
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];
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -233,8 +233,8 @@ export type ReviewPassesConfig = z.infer<typeof ReviewPassesConfigSchema>;
|
|
|
233
233
|
export declare const AdversarialDetectionConfigSchema: z.ZodObject<{
|
|
234
234
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
235
235
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
236
|
-
warn: "warn";
|
|
237
236
|
gate: "gate";
|
|
237
|
+
warn: "warn";
|
|
238
238
|
ignore: "ignore";
|
|
239
239
|
}>>;
|
|
240
240
|
pairs: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
@@ -650,8 +650,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
650
650
|
adversarial_detection: z.ZodOptional<z.ZodObject<{
|
|
651
651
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
652
652
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
653
|
-
warn: "warn";
|
|
654
653
|
gate: "gate";
|
|
654
|
+
warn: "warn";
|
|
655
655
|
ignore: "ignore";
|
|
656
656
|
}>>;
|
|
657
657
|
pairs: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
package/dist/gate-evidence.d.ts
CHANGED
|
@@ -63,6 +63,12 @@ export declare function recordAgentDispatch(directory: string, taskId: string, a
|
|
|
63
63
|
* Never throws.
|
|
64
64
|
*/
|
|
65
65
|
export declare function readTaskEvidence(directory: string, taskId: string): Promise<TaskEvidence | null>;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the TaskEvidence for a task, or null if the file does not exist (ENOENT).
|
|
68
|
+
* Throws on malformed JSON, permission errors, or other non-ENOENT issues.
|
|
69
|
+
* Used by checkReviewerGate for evidence-first gate checking with proper error handling.
|
|
70
|
+
*/
|
|
71
|
+
export declare function readTaskEvidenceRaw(directory: string, taskId: string): TaskEvidence | null;
|
|
66
72
|
/**
|
|
67
73
|
* Returns true only when every required_gate has a matching gates entry.
|
|
68
74
|
* Returns false if no evidence file exists.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from '@opencode-ai/plugin';
|
|
2
|
-
/**
|
|
3
|
-
* OpenCode Swarm Plugin
|
|
4
|
-
*
|
|
5
|
-
* Architect-centric agentic swarm for code generation.
|
|
6
|
-
* Hub-and-spoke architecture with:
|
|
7
|
-
* - Architect as central orchestrator
|
|
8
|
-
* - Dynamic SME consultation (serial)
|
|
9
|
-
* - Code generation with QA review
|
|
10
|
-
* - Iterative refinement with triage
|
|
11
|
-
*/
|
|
12
2
|
declare const OpenCodeSwarm: Plugin;
|
|
13
3
|
export default OpenCodeSwarm;
|
|
14
4
|
export type { AgentDefinition } from './agents';
|