opencode-swarm 7.86.0 → 7.87.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.
Files changed (61) hide show
  1. package/dist/cli/{capability-probe-jevmgwmf.js → capability-probe-wsjzcp48.js} +2 -2
  2. package/dist/cli/{config-doctor-zejarrr6.js → config-doctor-6h64pn8n.js} +4 -4
  3. package/dist/cli/{dispatch-k86d928w.js → dispatch-kb69qw40.js} +3 -3
  4. package/dist/cli/{evidence-summary-service-g2znnd33.js → evidence-summary-service-gg5m9z57.js} +4 -4
  5. package/dist/cli/{guardrail-explain-rtd1x26f.js → guardrail-explain-wb1cj312.js} +13 -13
  6. package/dist/cli/{guardrail-log-80116wmz.js → guardrail-log-eegabqcp.js} +5 -5
  7. package/dist/cli/{index-jwz50183.js → index-0m44n5qv.js} +14 -14
  8. package/dist/cli/{index-0sxvwjt0.js → index-1cb4wxnm.js} +2 -2
  9. package/dist/cli/{index-zfsbaaqh.js → index-5e4e2hvv.js} +1 -1
  10. package/dist/cli/{index-vq2321gg.js → index-5hvbw5xh.js} +2 -2
  11. package/dist/cli/{index-5cb86007.js → index-5vpe6vq9.js} +1 -1
  12. package/dist/cli/{index-red8fm8p.js → index-89xjr3h4.js} +1162 -214
  13. package/dist/cli/{index-f8r50m3h.js → index-adz3nk9b.js} +2 -2
  14. package/dist/cli/{index-7r2b453y.js → index-f13d3b69.js} +2 -2
  15. package/dist/cli/{index-ckntc5gf.js → index-gn8n22th.js} +2 -2
  16. package/dist/cli/{index-hw9b2xng.js → index-q9h0wb04.js} +36 -3
  17. package/dist/cli/{index-d9fbxaqd.js → index-s8bj492g.js} +1 -1
  18. package/dist/cli/{index-hz59hg4h.js → index-v4fcn4tr.js} +1 -1
  19. package/dist/cli/{index-eb85wtx9.js → index-vqyfscxd.js} +2 -2
  20. package/dist/cli/{index-5q66xc88.js → index-wv2yj8ka.js} +2598 -1406
  21. package/dist/cli/{index-yx44zd0p.js → index-zgwm4ryv.js} +9 -1
  22. package/dist/cli/index.js +12 -12
  23. package/dist/cli/{pending-delegations-rd40tv9s.js → pending-delegations-35fvcj7z.js} +3 -3
  24. package/dist/cli/{pr-subscriptions-y1nn36e5.js → pr-subscriptions-b18n1yd8.js} +4 -4
  25. package/dist/cli/{schema-8d32b2v6.js → schema-84146tvk.js} +3 -1
  26. package/dist/cli/{skill-generator-a5ehggyg.js → skill-generator-3pvpk4y2.js} +2 -2
  27. package/dist/commands/coupling.d.ts +36 -0
  28. package/dist/commands/epic.d.ts +52 -0
  29. package/dist/commands/registry.d.ts +18 -2
  30. package/dist/config/constants.d.ts +1 -0
  31. package/dist/config/schema.d.ts +145 -0
  32. package/dist/git/branch.d.ts +22 -1
  33. package/dist/hooks/delegation-gate/worktree-merge-status.d.ts +86 -0
  34. package/dist/index.js +8401 -5792
  35. package/dist/memory/schema.d.ts +3 -3
  36. package/dist/plan/manager.d.ts +10 -0
  37. package/dist/state.d.ts +16 -0
  38. package/dist/tools/epic-plan-waves.d.ts +79 -0
  39. package/dist/tools/epic-record-divergence.d.ts +73 -0
  40. package/dist/tools/epic-run-phase.d.ts +179 -0
  41. package/dist/tools/index.d.ts +3 -0
  42. package/dist/tools/manifest.d.ts +3 -0
  43. package/dist/tools/tool-metadata.d.ts +12 -0
  44. package/dist/turbo/epic/activation.d.ts +193 -0
  45. package/dist/turbo/epic/calibration-engine.d.ts +88 -0
  46. package/dist/turbo/epic/calibration.d.ts +65 -0
  47. package/dist/turbo/epic/cochange-conflict.d.ts +79 -0
  48. package/dist/turbo/epic/cochange-source.d.ts +80 -0
  49. package/dist/turbo/epic/coupling-report.d.ts +85 -0
  50. package/dist/turbo/epic/divergence-recorder.d.ts +112 -0
  51. package/dist/turbo/epic/index.d.ts +24 -0
  52. package/dist/turbo/epic/promotion-evidence.d.ts +42 -0
  53. package/dist/turbo/epic/state.d.ts +85 -0
  54. package/dist/turbo/epic/task-commit.d.ts +110 -0
  55. package/dist/turbo/epic/upstream-commits.d.ts +82 -0
  56. package/dist/turbo/epic/wave-planner.d.ts +83 -0
  57. package/dist/turbo/lean/partition-common.d.ts +85 -0
  58. package/dist/turbo/lean/planner.d.ts +12 -20
  59. package/dist/utils/index.d.ts +1 -1
  60. package/dist/utils/logger.d.ts +19 -0
  61. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  simpleGlobToRegex
4
- } from "./index-zfsbaaqh.js";
4
+ } from "./index-5e4e2hvv.js";
5
5
  import {
6
6
  warn
7
- } from "./index-yx44zd0p.js";
7
+ } from "./index-zgwm4ryv.js";
8
8
  import {
9
9
  bunSpawnSync
10
10
  } from "./index-b9v501fr.js";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-5q66xc88.js";
15
+ } from "./index-wv2yj8ka.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-vq2321gg.js";
22
+ } from "./index-5hvbw5xh.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./index-jtqkh8jf.js";
5
5
  import {
6
6
  SwarmError
7
- } from "./index-zfsbaaqh.js";
7
+ } from "./index-5e4e2hvv.js";
8
8
  import {
9
9
  warn
10
- } from "./index-yx44zd0p.js";
10
+ } from "./index-zgwm4ryv.js";
11
11
  import {
12
12
  bunFile
13
13
  } from "./index-b9v501fr.js";
@@ -596,6 +596,18 @@ var TOOL_METADATA = {
596
596
  external_skill_revoke: {
597
597
  description: "Revoke a previously promoted external skill. Returns a disabled message when external_skills.curation_enabled is false.",
598
598
  agents: []
599
+ },
600
+ epic_decide_phase: {
601
+ description: "Compute the Epic Mode verdict for a phase WITHOUT dispatching coders. Runs preflight + calibration + the three gates (p-threshold, hot-module, greenfield), persists the decision, and returns the verdict so the architect can dispatch waves via the visible Task tool (promote) or fall back to per-task serial (demote). Pair with `epic_plan_waves` to get the wave plan when promoted. Use when /swarm epic is on for the session.",
602
+ agents: ["architect"]
603
+ },
604
+ epic_plan_waves: {
605
+ description: "Partition a phase's pending tasks into ordered concurrent waves for Epic Mode dispatch. " + "A wave is a set of tasks with mutually disjoint declared scopes and all dependencies satisfied by prior waves. " + "Returns `{ waves: [{ waveId, taskIds, files }, ...], serializedTasks, degradedTasks }`. " + 'For each wave in order, the architect dispatches one `Task(subagent_type="coder", ...)` per `taskId` \u2014 all in one assistant message \u2014 so the wave runs concurrently and each coder appears as a visible subagent. ' + "Wait for the wave to finish before dispatching the next. " + "Pair with `epic_decide_phase` (called first; this tool is only relevant on a `promote` verdict). " + "Preflight reject reasons: `no-plan`, `no-phase`, `phase-empty`, `phase-already-complete`, `scopes-missing` (call `declare_scope` for `missingScopes`), `git-failed` (transient \u2014 retry), `planner-error`.",
606
+ agents: ["architect"]
607
+ },
608
+ epic_record_divergence: {
609
+ description: "After every `update_task_status(completed)`, record the task's declared-vs-actual divergence to .swarm/epic/divergence.jsonl. Feeds Epic Mode's self-calibration loop (Capability D). Best-effort: never blocks.",
610
+ agents: ["architect"]
599
611
  }
600
612
  };
601
613
  var TOOL_NAMES = Object.keys(TOOL_METADATA);
@@ -1695,13 +1707,34 @@ var LeanTurboConfigSchema = exports_external.object({
1695
1707
  merge_strategy: exports_external.enum(["merge", "rebase", "cherry-pick"]).default("merge").optional(),
1696
1708
  worktree_dir: exports_external.string().optional()
1697
1709
  });
1710
+ var EpicConfigSchema = exports_external.object({
1711
+ cochange: exports_external.object({
1712
+ enabled: exports_external.boolean().default(false),
1713
+ threshold: exports_external.number().min(-1).max(1).default(0.6),
1714
+ min_co_changes: exports_external.number().int().min(1).default(5)
1715
+ }).strict().optional(),
1716
+ mode: exports_external.object({
1717
+ enabled: exports_external.boolean().default(false),
1718
+ activation_threshold: exports_external.number().min(0).max(1).default(0.3),
1719
+ min_commits_for_signal: exports_external.number().int().min(1).default(20)
1720
+ }).strict().optional(),
1721
+ calibration: exports_external.object({
1722
+ enabled: exports_external.boolean().default(true),
1723
+ floor_threshold: exports_external.number().min(0).max(1).default(0.05),
1724
+ tighten_step: exports_external.number().min(0).max(1).default(0.02),
1725
+ loosen_step: exports_external.number().min(0).max(1).default(0.01),
1726
+ loosen_window: exports_external.number().int().min(1).default(10)
1727
+ }).strict().optional()
1728
+ }).strict();
1698
1729
  var StandardTurboConfigSchema = exports_external.object({
1699
1730
  strategy: exports_external.literal("standard"),
1700
- lean: LeanTurboConfigSchema.optional()
1731
+ lean: LeanTurboConfigSchema.optional(),
1732
+ epic: EpicConfigSchema.optional()
1701
1733
  });
1702
1734
  var LeanTurboStrategyConfigSchema = exports_external.object({
1703
1735
  strategy: exports_external.literal("lean"),
1704
- lean: LeanTurboConfigSchema
1736
+ lean: LeanTurboConfigSchema,
1737
+ epic: EpicConfigSchema.optional()
1705
1738
  });
1706
1739
  var TurboConfigSchema = exports_external.discriminatedUnion("strategy", [
1707
1740
  StandardTurboConfigSchema,
@@ -2043,4 +2076,4 @@ var PluginConfigSchema = exports_external.object({
2043
2076
  external_skills: ExternalSkillsConfigSchema.optional()
2044
2077
  });
2045
2078
 
2046
- export { ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, DEFAULT_AGENT_CONFIGS, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema };
2079
+ export { ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, DEFAULT_AGENT_CONFIGS, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema };
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  init_logger,
17
17
  warn
18
- } from "./index-yx44zd0p.js";
18
+ } from "./index-zgwm4ryv.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-bcp79s17.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  init_logger,
4
4
  warn
5
- } from "./index-yx44zd0p.js";
5
+ } from "./index-zgwm4ryv.js";
6
6
  import {
7
7
  __esm,
8
8
  __export,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-ckntc5gf.js";
4
+ } from "./index-gn8n22th.js";
5
5
  import {
6
6
  log
7
- } from "./index-yx44zd0p.js";
7
+ } from "./index-zgwm4ryv.js";
8
8
  import {
9
9
  withEvidenceLock
10
10
  } from "./index-bcp79s17.js";