opencode-swarm 7.71.2 → 7.72.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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Handle /swarm deep-research command.
3
+ *
4
+ * Sanitizes the question, parses flags, and emits a DEEP_RESEARCH mode signal
5
+ * that the architect picks up to run the orchestrator-worker deep-research
6
+ * protocol (decompose → iterative web_search/web_fetch retrieval → parallel
7
+ * sme synthesis → reviewer verification → critic challenge → cited report).
8
+ *
9
+ * Flag parsing:
10
+ * --depth standard|exhaustive research breadth (default: standard)
11
+ * --max-researchers N parallel synthesis workers per round, 1..6
12
+ * --rounds N max iterative research rounds, 1..4
13
+ * --brief emit a short brief instead of a full report
14
+ *
15
+ * Sanitizes the question to prevent prompt injection of rival MODE: headers
16
+ * (mirrors council.ts / deep-dive.ts).
17
+ */
18
+ export declare function handleDeepResearchCommand(_directory: string, args: string[]): Promise<string>;
@@ -19,6 +19,7 @@ export { handleCouncilCommand } from './council';
19
19
  export { handleCurateCommand } from './curate';
20
20
  export { handleDarkMatterCommand } from './dark-matter';
21
21
  export { handleDeepDiveCommand } from './deep-dive';
22
+ export { handleDeepResearchCommand } from './deep-research';
22
23
  export { handleDiagnoseCommand } from './diagnose';
23
24
  export { handleDoctorCommand } from './doctor';
24
25
  export { handleEvidenceCommand, handleEvidenceSummaryCommand, } from './evidence';
@@ -393,6 +393,20 @@ export declare const COMMAND_REGISTRY: {
393
393
  readonly category: "agent";
394
394
  readonly aliasOf: "deep-dive";
395
395
  };
396
+ readonly 'deep-research': {
397
+ readonly handler: (ctx: CommandContext) => CommandResult;
398
+ readonly description: "Launch a multi-source, fact-checked deep research pass and synthesize a cited report [question]";
399
+ readonly args: "<question> [--depth standard|exhaustive] [--max-researchers 1..6] [--rounds 1..4] [--brief]";
400
+ readonly details: "Runs the orchestrator-worker deep-research protocol: the architect decomposes the question into subtopics, gathers evidence with web_search and web_fetch across up to N iterative rounds, dispatches parallel sme synthesis workers, verifies every claim against cited sources with dual reviewers, challenges high-stakes claims with the critic, and presents a cited report in chat. Read-only — does not mutate source code, delegate to coder, or call declare_scope. Requires council.general.enabled and a search API key.";
401
+ readonly category: "agent";
402
+ };
403
+ readonly 'deep research': {
404
+ readonly handler: (ctx: CommandContext) => CommandResult;
405
+ readonly description: "Alias for /swarm deep-research — launch a cited deep research pass";
406
+ readonly args: "<question> [--depth standard|exhaustive] [--max-researchers 1..6] [--rounds 1..4] [--brief]";
407
+ readonly category: "agent";
408
+ readonly aliasOf: "deep-research";
409
+ };
396
410
  readonly 'codebase-review': {
397
411
  readonly handler: (ctx: CommandContext) => CommandResult;
398
412
  readonly description: "Launch codebase-review-swarm for a quote-grounded full-repo or large-subsystem audit";
@@ -1,4 +1,4 @@
1
- export declare const BUNDLED_PROJECT_SKILLS: readonly ["brainstorm", "specify", "clarify-spec", "resume", "clarify", "discover", "consult", "pre-phase-briefing", "council", "deep-dive", "codebase-review-swarm", "design-docs", "swarm-pr-review", "swarm-pr-feedback", "issue-ingest", "plan", "critic-gate", "execute", "phase-wrap"];
1
+ export declare const BUNDLED_PROJECT_SKILLS: readonly ["brainstorm", "specify", "clarify-spec", "resume", "clarify", "discover", "consult", "pre-phase-briefing", "council", "deep-dive", "deep-research", "codebase-review-swarm", "design-docs", "swarm-pr-review", "swarm-pr-feedback", "issue-ingest", "plan", "critic-gate", "execute", "phase-wrap"];
2
2
  interface CopyState {
3
3
  files: number;
4
4
  bytes: number;