opencode-swarm 7.144.4 → 7.144.6

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 (106) hide show
  1. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +2 -2
  2. package/dist/background/workspace-snapshot.d.ts +7 -0
  3. package/dist/cli/{capability-probe-f1paszww.js → capability-probe-976tt4ba.js} +6 -2
  4. package/dist/cli/{config-doctor-rw9zrjk6.js → config-doctor-4chz0b95.js} +2 -2
  5. package/dist/cli/{core-zjx9aqaf.js → core-p04nvknr.js} +4 -3
  6. package/dist/cli/{curation-policy-0wbrh11c.js → curation-policy-a511r0qz.js} +4 -4
  7. package/dist/cli/{curator-drift-2jbjv03a.js → curator-drift-ckjm272w.js} +2 -2
  8. package/dist/cli/curator-llm-factory-vc1mrc3r.js +63 -0
  9. package/dist/cli/{curator-g54a7wv0.js → curator-sxeh36gw.js} +33 -32
  10. package/dist/cli/{dispatch-1y1rnv1h.js → dispatch-ndxbsk98.js} +2 -2
  11. package/dist/cli/{evidence-summary-service-fnr5y54e.js → evidence-summary-service-spyxcgsx.js} +13 -12
  12. package/dist/cli/{gate-evidence-2xt1x07r.js → gate-evidence-nz0bwa15.js} +7 -6
  13. package/dist/cli/guardrail-explain-ass47kn8.js +64 -0
  14. package/dist/cli/{guardrail-log-5w4b9zrw.js → guardrail-log-fyzd55fp.js} +4 -4
  15. package/dist/cli/{hive-promoter-x63ehffd.js → hive-promoter-k8gtah3n.js} +33 -32
  16. package/dist/cli/{index-h98t1m88.js → index-01nhedm7.js} +29 -1
  17. package/dist/cli/{index-q4ed1jk7.js → index-42ezdzam.js} +1994 -1333
  18. package/dist/cli/{index-y8j8ehc8.js → index-68mqwvf5.js} +11 -5
  19. package/dist/cli/{index-1csyxv0f.js → index-6z5jtf7d.js} +2 -2
  20. package/dist/cli/{index-2m7mavaz.js → index-7zehmnv1.js} +2 -2
  21. package/dist/cli/index-9e6fdz2h.js +282 -0
  22. package/dist/cli/{index-mazgg5s2.js → index-9s8drsf9.js} +1 -1
  23. package/dist/cli/{index-b6e016tv.js → index-abtrcs16.js} +1 -1
  24. package/dist/cli/{index-8fwhhayc.js → index-b44qqqt2.js} +27 -18
  25. package/dist/cli/{index-yts89pqg.js → index-bac12jpv.js} +4 -4
  26. package/dist/cli/{index-psvxq93b.js → index-ckq719fr.js} +2 -2
  27. package/dist/cli/{index-k3cxyk66.js → index-cwtpqm5f.js} +1 -1
  28. package/dist/cli/{index-d12jd5mn.js → index-dj8cah6s.js} +1 -1
  29. package/dist/cli/{index-pw83zgny.js → index-dvybg11w.js} +3 -3
  30. package/dist/cli/{index-03pv47h2.js → index-ec1kywxg.js} +6 -6
  31. package/dist/cli/{index-74hpm6sh.js → index-f36ybbsv.js} +12 -6
  32. package/dist/cli/{index-az8etqpp.js → index-fgdhf6a5.js} +298 -1179
  33. package/dist/cli/{index-rn0eq85g.js → index-fv0s19g9.js} +1 -1
  34. package/dist/cli/{index-ywn7vtxp.js → index-h1p08s3n.js} +1 -1
  35. package/dist/cli/{index-nckg4gxb.js → index-h5krb653.js} +15 -4
  36. package/dist/cli/{index-bt9aa01f.js → index-hkdgkkhb.js} +1 -1
  37. package/dist/cli/{index-p7cm3gtj.js → index-jqvsh0g3.js} +35 -34
  38. package/dist/cli/{index-x6tp0hfr.js → index-n06653nr.js} +5 -5
  39. package/dist/cli/{index-jabkn643.js → index-n4hwcsbd.js} +2 -2
  40. package/dist/cli/{index-z6v7kwpa.js → index-q6bhmyxb.js} +1 -1
  41. package/dist/cli/{index-cz25e8xp.js → index-sqe3nqh5.js} +166 -34
  42. package/dist/cli/{index-q67jb94n.js → index-sswzhcqb.js} +1 -1
  43. package/dist/cli/{index-8j0va7jp.js → index-tq89td7b.js} +43 -22
  44. package/dist/cli/{index-dty5qgk2.js → index-vdha477y.js} +1 -1
  45. package/dist/cli/{index-zb0xcz9t.js → index-vngs0meh.js} +3 -3
  46. package/dist/cli/{index-fqcjragy.js → index-wknz5c8q.js} +1 -1
  47. package/dist/cli/{index-9qq7c18c.js → index-ytzz6pq1.js} +36 -1
  48. package/dist/cli/{index-4w5qdbk7.js → index-zde2mkmg.js} +6 -6
  49. package/dist/cli/{index-4nt52yr9.js → index-zj6t9zgx.js} +173 -25
  50. package/dist/cli/{index-btmsqv7p.js → index-zxr5r9b7.js} +5 -4
  51. package/dist/cli/index-zy7f84cs.js +1210 -0
  52. package/dist/cli/index.d.ts +11 -1
  53. package/dist/cli/index.js +61 -39
  54. package/dist/cli/{knowledge-escalator-ypg14d5r.js → knowledge-escalator-yaxzz0k5.js} +12 -11
  55. package/dist/cli/{knowledge-events-nkrym4wb.js → knowledge-events-rgcwewpn.js} +10 -9
  56. package/dist/cli/{knowledge-link-e4qgqmpx.js → knowledge-link-4cg4776a.js} +3 -3
  57. package/dist/cli/{knowledge-store-vh3nhtg2.js → knowledge-store-qf8t25sw.js} +4 -4
  58. package/dist/cli/{knowledge-validator-jrxvexv6.js → knowledge-validator-dx6zzcdf.js} +6 -6
  59. package/dist/cli/{pending-delegations-pw79c8ds.js → pending-delegations-9h1jmtw1.js} +3 -3
  60. package/dist/cli/{pr-subscriptions-fk628bhc.js → pr-subscriptions-8pg34pev.js} +3 -3
  61. package/dist/cli/{runner-b02sz2vx.js → runner-cqecp1na.js} +4 -4
  62. package/dist/cli/{scan-cursor-fp7w5jmc.js → scan-cursor-pbcaj8hj.js} +7 -5
  63. package/dist/cli/{schema-rptwqbm4.js → schema-tzcjwe8j.js} +3 -1
  64. package/dist/cli/{scope-persistence-0bkaxawa.js → scope-persistence-mjg4we75.js} +7 -6
  65. package/dist/cli/{skill-generator-nh8b4gjv.js → skill-generator-7jrzbaej.js} +14 -13
  66. package/dist/cli/{workspace-snapshot-w3tg4ne5.js → workspace-snapshot-d89zm6wm.js} +5 -2
  67. package/dist/cli/{worktree-collision-ownership-hqd9ypsz.js → worktree-collision-ownership-vy0kxa98.js} +26 -19
  68. package/dist/cli/{worktree-isolation-canf3rj8.js → worktree-isolation-awpkp0yh.js} +33 -32
  69. package/dist/cli/{worktree-provisioning-owner-g24xd417.js → worktree-provisioning-owner-zzkjycp1.js} +3 -3
  70. package/dist/commands/ci-simulate.d.ts +2 -0
  71. package/dist/config/cache-paths.d.ts +57 -0
  72. package/dist/config/evidence-schema.d.ts +3 -3
  73. package/dist/config/schema.d.ts +9 -0
  74. package/dist/git/branch.d.ts +2 -0
  75. package/dist/git/pr.d.ts +2 -0
  76. package/dist/hooks/delegation-gate/worktree-isolation.d.ts +7 -0
  77. package/dist/hooks/diff-scope.d.ts +7 -0
  78. package/dist/hooks/review-receipt-scope.d.ts +7 -0
  79. package/dist/hooks/reviewer-scope-lifecycle.d.ts +9 -0
  80. package/dist/hooks/semantic-diff-injection.d.ts +8 -0
  81. package/dist/index.js +599 -589
  82. package/dist/mutation/engine.d.ts +11 -0
  83. package/dist/review/diff-source.d.ts +2 -0
  84. package/dist/sandbox/capability-probe.d.ts +22 -0
  85. package/dist/sandbox/executor.d.ts +15 -0
  86. package/dist/sandbox/linux/bubblewrap-executor.d.ts +6 -0
  87. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +41 -0
  88. package/dist/tools/checkpoint.d.ts +11 -0
  89. package/dist/tools/complexity-hotspots.d.ts +15 -0
  90. package/dist/tools/diff-summary.d.ts +12 -0
  91. package/dist/tools/dispatch-lanes.d.ts +8 -0
  92. package/dist/tools/gh-evidence.d.ts +17 -1
  93. package/dist/tools/knowledge-receipt.d.ts +1 -1
  94. package/dist/tools/pkg-audit.d.ts +13 -0
  95. package/dist/tools/prepare-pr-workflow-checkout.d.ts +1 -0
  96. package/dist/utils/bun-compat.d.ts +80 -3
  97. package/dist/utils/git-binary-missing-error.d.ts +80 -2
  98. package/dist/utils/git-executable.d.ts +179 -0
  99. package/dist/utils/gitignore-warning.d.ts +10 -0
  100. package/dist/workflow/coder-settlement.d.ts +18 -0
  101. package/dist/worktree/core.d.ts +8 -0
  102. package/dist/worktree/merge.d.ts +33 -0
  103. package/package.json +3 -2
  104. package/dist/cli/curator-llm-factory-xgb4pxmm.js +0 -62
  105. package/dist/cli/guardrail-explain-6wcgr9tz.js +0 -63
  106. package/dist/cli/index-q1exe2b3.js +0 -256
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.144.4",
24
+ version: "7.144.6",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -130,7 +130,8 @@ var init_package = __esm(() => {
130
130
  "repro:1873": "bun build scripts/repro-1873-entry.ts --outdir dist-build-test/repro-1873 --target node --format esm && node scripts/repro-1873.mjs",
131
131
  "check:events": "bun run scripts/check-event-contract.ts",
132
132
  "check:test-file-cap": "bun run scripts/check-test-file-cap.ts",
133
- "check:gate-portability": "bun run scripts/check-gate-portability.ts"
133
+ "check:gate-portability": "bun run scripts/check-gate-portability.ts",
134
+ "check:bare-spawn": "bun run scripts/check-bare-executable-spawn.ts"
134
135
  },
135
136
  dependencies: {
136
137
  "@opencode-ai/plugin": "^1.18.3",
@@ -290,7 +291,7 @@ function resolveExternalSkillsConfig(input) {
290
291
  };
291
292
  return merged;
292
293
  }
293
- var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, PluginConfigSchema;
294
+ var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, PluginConfigSchema;
294
295
  var init_schema = __esm(() => {
295
296
  init_zod();
296
297
  init_package();
@@ -582,6 +583,9 @@ var init_schema = __esm(() => {
582
583
  }),
583
584
  language: exports_external.string().optional()
584
585
  });
586
+ GitConfigSchema = exports_external.object({
587
+ binary: exports_external.string().optional()
588
+ });
585
589
  UIReviewConfigSchema = exports_external.object({
586
590
  enabled: exports_external.boolean().default(false),
587
591
  trigger_paths: exports_external.array(exports_external.string()).default([
@@ -765,7 +769,8 @@ var init_schema = __esm(() => {
765
769
  gate_denial_stop_threshold: exports_external.number().int().min(1).default(5),
766
770
  execution_stall_warn_calls: exports_external.number().int().min(1).default(30),
767
771
  execution_stall_stop_calls: exports_external.number().int().min(1).default(60),
768
- execution_stall_episode_minutes: exports_external.number().int().min(1).default(30)
772
+ execution_stall_episode_minutes: exports_external.number().int().min(1).default(30),
773
+ sandbox_macos_enabled: exports_external.boolean().optional()
769
774
  });
770
775
  WatchdogConfigSchema = exports_external.object({
771
776
  scope_guard: exports_external.boolean().default(true),
@@ -1603,6 +1608,7 @@ var init_schema = __esm(() => {
1603
1608
  integration_analysis: IntegrationAnalysisConfigSchema.optional(),
1604
1609
  docs: DocsConfigSchema.optional(),
1605
1610
  design_docs: DesignDocsConfigSchema.optional(),
1611
+ git: GitConfigSchema.optional(),
1606
1612
  ui_review: UIReviewConfigSchema.optional(),
1607
1613
  compaction_advisory: CompactionAdvisoryConfigSchema.optional(),
1608
1614
  lint: LintConfigSchema.optional(),
@@ -1802,4 +1808,4 @@ var init_schema = __esm(() => {
1802
1808
  });
1803
1809
  });
1804
1810
 
1805
- export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, 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, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, 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, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema, init_schema };
1811
+ export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, 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, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema, init_schema };
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-fqcjragy.js";
12
+ } from "./index-wknz5c8q.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./index-bpmtbmy9.js";
25
25
  import {
26
26
  bunSpawn
27
- } from "./index-4nt52yr9.js";
27
+ } from "./index-zj6t9zgx.js";
28
28
 
29
29
  // src/evaluation/runner.ts
30
30
  import * as fs3 from "fs";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-q4ed1jk7.js";
15
+ } from "./index-42ezdzam.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-d12jd5mn.js";
22
+ } from "./index-dj8cah6s.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -0,0 +1,282 @@
1
+ // @bun
2
+ import {
3
+ advisoryWarn,
4
+ init_warning_buffer
5
+ } from "./index-4rhhvd1a.js";
6
+ import {
7
+ __esm
8
+ } from "./index-a76rekgs.js";
9
+
10
+ // src/utils/git-executable.ts
11
+ import { spawnSync } from "child_process";
12
+ import * as fs from "fs";
13
+ import * as os from "os";
14
+ import * as path from "path";
15
+ function excerptProbeOutput(raw) {
16
+ return raw.slice(0, PROBE_OUTPUT_EXCERPT_CHARS).replace(/[^\x20-\x7E]/g, " ").trim();
17
+ }
18
+ function unique(values) {
19
+ return [...new Set(values.filter(Boolean))];
20
+ }
21
+ function envOverride() {
22
+ const raw = _internals.env()[GIT_BINARY_ENV_VAR];
23
+ return raw && raw.trim() !== "" ? raw : undefined;
24
+ }
25
+ function effectiveOverride() {
26
+ return envOverride() ?? configuredOverride;
27
+ }
28
+ function overrideSource() {
29
+ if (envOverride() !== undefined)
30
+ return "env";
31
+ if (configuredOverride !== undefined)
32
+ return "config";
33
+ return;
34
+ }
35
+ function isAbsoluteForPlatform(candidate, platform) {
36
+ return platform === "win32" ? path.win32.isAbsolute(candidate) : path.posix.isAbsolute(candidate);
37
+ }
38
+ function windowsPlatformCandidates() {
39
+ const env = _internals.env();
40
+ const roots = unique([
41
+ env.ProgramFiles ?? "",
42
+ env["ProgramFiles(x86)"] ?? "",
43
+ env.LOCALAPPDATA ? `${env.LOCALAPPDATA}\\Programs` : ""
44
+ ]);
45
+ const installed = roots.flatMap((root) => [
46
+ `${root}\\Git\\cmd\\git.exe`,
47
+ `${root}\\Git\\bin\\git.exe`
48
+ ]);
49
+ return unique(installed);
50
+ }
51
+ function platformCandidates(platform) {
52
+ if (platform === "darwin") {
53
+ return ["/opt/homebrew/bin/git", "/usr/local/bin/git", "/usr/bin/git"];
54
+ }
55
+ if (platform === "win32") {
56
+ return windowsPlatformCandidates();
57
+ }
58
+ return ["/usr/bin/git", "/usr/local/bin/git", "/bin/git"];
59
+ }
60
+ function pathDelimiterFor(platform) {
61
+ return platform === "win32" ? ";" : ":";
62
+ }
63
+ function joinDirAndName(dir, name, platform) {
64
+ const sep = platform === "win32" ? "\\" : "/";
65
+ const trimmed = dir.replace(/[\\/]+$/, "");
66
+ return trimmed ? `${trimmed}${sep}${name}` : `${sep}${name}`;
67
+ }
68
+ function pathCandidates(platform) {
69
+ const pathValue = _internals.env().PATH ?? "";
70
+ if (!pathValue)
71
+ return [];
72
+ const dirs = pathValue.split(pathDelimiterFor(platform)).filter(Boolean);
73
+ const names = platform === "win32" ? [...WINDOWS_PATH_EXTENSIONS.map((ext) => `git${ext}`), "git"] : ["git"];
74
+ const out = [];
75
+ for (const dir of dirs) {
76
+ for (const name of names) {
77
+ out.push(joinDirAndName(dir, name, platform));
78
+ }
79
+ }
80
+ return unique(out);
81
+ }
82
+ function buildCandidates(platform) {
83
+ const override = effectiveOverride();
84
+ const overrideCandidate = override ? [{ source: "override", path: override }] : [];
85
+ const seen = new Set(overrideCandidate.map((c) => c.path));
86
+ const rest = [];
87
+ for (const p of platformCandidates(platform)) {
88
+ if (seen.has(p))
89
+ continue;
90
+ seen.add(p);
91
+ rest.push({ source: "platform", path: p });
92
+ }
93
+ for (const p of pathCandidates(platform)) {
94
+ if (seen.has(p))
95
+ continue;
96
+ seen.add(p);
97
+ rest.push({ source: "path", path: p });
98
+ }
99
+ return [...overrideCandidate, ...rest];
100
+ }
101
+ function probeCandidate(candidatePath, platform) {
102
+ if (!isAbsoluteForPlatform(candidatePath, platform)) {
103
+ return { accepted: false, reason: "not an absolute path" };
104
+ }
105
+ let stat;
106
+ try {
107
+ stat = fs.statSync(candidatePath);
108
+ } catch (err) {
109
+ const code = err?.code;
110
+ if (code === "ENOENT")
111
+ return { accepted: false, reason: "no such file" };
112
+ return {
113
+ accepted: false,
114
+ reason: `cannot stat (${code ?? "unknown error"})`
115
+ };
116
+ }
117
+ if (stat.isDirectory()) {
118
+ return { accepted: false, reason: "is a directory" };
119
+ }
120
+ if (!stat.isFile()) {
121
+ return { accepted: false, reason: "not a regular file" };
122
+ }
123
+ let result;
124
+ try {
125
+ result = _internals.spawnSync(candidatePath, ["--version"], {
126
+ cwd: os.tmpdir(),
127
+ stdio: ["ignore", "pipe", "ignore"],
128
+ windowsHide: true,
129
+ timeout: PER_PROBE_TIMEOUT_MS,
130
+ maxBuffer: PROBE_MAX_BUFFER_BYTES
131
+ });
132
+ } catch (err) {
133
+ return {
134
+ accepted: false,
135
+ reason: `spawn threw: ${err instanceof Error ? err.message : String(err)}`
136
+ };
137
+ }
138
+ if (result.error) {
139
+ return { accepted: false, reason: `spawn failed: ${result.error.message}` };
140
+ }
141
+ if (result.status !== 0) {
142
+ const statusDescription = result.status !== null ? `exit ${result.status}` : `signal ${result.signal ?? "unknown"}`;
143
+ return {
144
+ accepted: false,
145
+ reason: `git --version returned ${statusDescription}`
146
+ };
147
+ }
148
+ const versionOutput = (result.stdout ?? "").toString().trim();
149
+ if (!GIT_VERSION_PATTERN.test(versionOutput)) {
150
+ const excerpt = excerptProbeOutput(versionOutput);
151
+ return {
152
+ accepted: false,
153
+ reason: excerpt ? `not git: --version printed "${excerpt}"` : "not git: --version printed nothing"
154
+ };
155
+ }
156
+ return { accepted: true };
157
+ }
158
+ function* probeCycle(candidates, platform, attempts) {
159
+ const start = _internals.now();
160
+ let budgetExceeded = false;
161
+ for (const candidate of candidates) {
162
+ if (_internals.now() - start > TOTAL_BUDGET_MS) {
163
+ budgetExceeded = true;
164
+ break;
165
+ }
166
+ const result = probeCandidate(candidate.path, platform);
167
+ attempts.push({
168
+ source: candidate.source,
169
+ candidate: candidate.path,
170
+ accepted: result.accepted,
171
+ reason: result.reason
172
+ });
173
+ if (candidate.source === "override" && !result.accepted) {
174
+ advisoryWarn(`[opencode-swarm] git.binary override "${candidate.path}" is unusable (${result.reason}); falling back to automatic git resolution.`);
175
+ }
176
+ if (result.accepted) {
177
+ return { outcome: "accepted", path: candidate.path };
178
+ }
179
+ yield;
180
+ }
181
+ return budgetExceeded ? { outcome: "exhausted-budget" } : { outcome: "all-rejected" };
182
+ }
183
+ function driveSync(gen) {
184
+ let step = gen.next();
185
+ while (!step.done) {
186
+ step = gen.next();
187
+ }
188
+ return step.value;
189
+ }
190
+ async function driveAsync(gen) {
191
+ let step = gen.next();
192
+ while (!step.done) {
193
+ await _internals.yieldToEventLoop();
194
+ step = gen.next();
195
+ }
196
+ return step.value;
197
+ }
198
+ function readCache() {
199
+ if (cache === null)
200
+ return null;
201
+ if (cache.kind === "success")
202
+ return cache;
203
+ if (_internals.now() < cache.expiresAt)
204
+ return cache;
205
+ cache = null;
206
+ return null;
207
+ }
208
+ function applyProbeResult(result, attempts, generation) {
209
+ if (generation !== cacheGeneration) {
210
+ return result.outcome === "accepted" ? result.path : BARE_GIT;
211
+ }
212
+ lastAttempts = attempts;
213
+ if (result.outcome === "accepted") {
214
+ cache = { kind: "success", path: result.path };
215
+ return result.path;
216
+ }
217
+ cache = {
218
+ kind: "fallback",
219
+ expiresAt: _internals.now() + NEGATIVE_CACHE_TTL_MS
220
+ };
221
+ return BARE_GIT;
222
+ }
223
+ function resolveGitExecutable() {
224
+ const cached = readCache();
225
+ if (cached)
226
+ return cached.kind === "success" ? cached.path : BARE_GIT;
227
+ const platform = _internals.platform();
228
+ const attempts = [];
229
+ const generation = cacheGeneration;
230
+ const candidates = buildCandidates(platform);
231
+ const result = driveSync(probeCycle(candidates, platform, attempts));
232
+ return applyProbeResult(result, attempts, generation);
233
+ }
234
+ async function resolveGitExecutableAsync() {
235
+ const cached = readCache();
236
+ if (cached)
237
+ return cached.kind === "success" ? cached.path : BARE_GIT;
238
+ if (inFlightAsync)
239
+ return inFlightAsync;
240
+ const platform = _internals.platform();
241
+ const attempts = [];
242
+ const generation = cacheGeneration;
243
+ const candidates = buildCandidates(platform);
244
+ const run = (async () => {
245
+ const result = await driveAsync(probeCycle(candidates, platform, attempts));
246
+ return applyProbeResult(result, attempts, generation);
247
+ })();
248
+ inFlightAsync = run;
249
+ try {
250
+ return await run;
251
+ } finally {
252
+ if (inFlightAsync === run)
253
+ inFlightAsync = null;
254
+ }
255
+ }
256
+ function describeGitResolution() {
257
+ const cached = cache;
258
+ return {
259
+ resolved: cached?.kind === "success",
260
+ resolvedPath: cached?.kind === "success" ? cached.path : undefined,
261
+ attempts: [...lastAttempts],
262
+ overrideValue: effectiveOverride(),
263
+ overrideSource: overrideSource()
264
+ };
265
+ }
266
+ var GIT_BINARY_ENV_VAR = "OPENCODE_SWARM_GIT_BINARY", PER_PROBE_TIMEOUT_MS = 250, TOTAL_BUDGET_MS = 1000, NEGATIVE_CACHE_TTL_MS = 60000, BARE_GIT = "git", PROBE_MAX_BUFFER_BYTES, WINDOWS_PATH_EXTENSIONS, GIT_VERSION_PATTERN, PROBE_OUTPUT_EXCERPT_CHARS = 60, cache = null, lastAttempts, configuredOverride, inFlightAsync = null, cacheGeneration = 0, _internals;
267
+ var init_git_executable = __esm(() => {
268
+ init_warning_buffer();
269
+ PROBE_MAX_BUFFER_BYTES = 64 * 1024;
270
+ WINDOWS_PATH_EXTENSIONS = [".exe", ".cmd", ".bat"];
271
+ GIT_VERSION_PATTERN = /^git version \d+\.\d+/;
272
+ lastAttempts = [];
273
+ _internals = {
274
+ spawnSync,
275
+ platform: () => process.platform,
276
+ env: () => process.env,
277
+ now: () => Date.now(),
278
+ yieldToEventLoop: () => new Promise((resolve) => setTimeout(resolve, 0))
279
+ };
280
+ });
281
+
282
+ export { GIT_BINARY_ENV_VAR, resolveGitExecutable, resolveGitExecutableAsync, describeGitResolution, init_git_executable };
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-f9vvg5xb.js";
8
8
  import {
9
9
  bunWrite
10
- } from "./index-4nt52yr9.js";
10
+ } from "./index-zj6t9zgx.js";
11
11
 
12
12
  // src/evidence/task-file.ts
13
13
  import { renameSync, unlinkSync } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  bunSpawnSync
7
- } from "./index-4nt52yr9.js";
7
+ } from "./index-zj6t9zgx.js";
8
8
  import {
9
9
  warn
10
10
  } from "./index-zgwm4ryv.js";
@@ -1,8 +1,12 @@
1
1
  // @bun
2
2
  import {
3
+ _internals,
4
+ _internals1 as _internals2,
3
5
  exports_runner_client,
4
- init_runner_client
5
- } from "./index-q1exe2b3.js";
6
+ init_bubblewrap_executor,
7
+ init_runner_client,
8
+ init_sandbox_exec_executor
9
+ } from "./index-zy7f84cs.js";
6
10
  import {
7
11
  __esm,
8
12
  __toCommonJS
@@ -11,6 +15,9 @@ import {
11
15
  // src/sandbox/capability-probe.ts
12
16
  import { execFile, spawnSync } from "child_process";
13
17
  import * as os from "os";
18
+ function _resetCapabilityCache() {
19
+ _cached = undefined;
20
+ }
14
21
  function withProbeTimeout(cmd, args, ms) {
15
22
  return new Promise((resolve, reject) => {
16
23
  const controller = new AbortController;
@@ -50,7 +57,8 @@ function withProbeTimeout(cmd, args, ms) {
50
57
  }
51
58
  async function probeLinux() {
52
59
  try {
53
- const output = await withProbeTimeout("bwrap", ["--version"], 2000);
60
+ const binary = _internals.resolveBwrapBinary();
61
+ const output = await _internals3.withProbeTimeout(binary, ["--version"], 2000);
54
62
  if (output.length > 0) {
55
63
  return {
56
64
  status: "enabled",
@@ -85,20 +93,15 @@ async function probeLinux() {
85
93
  }
86
94
  async function probeMacOS() {
87
95
  try {
88
- const output = await withProbeTimeout("sandbox-exec", ["--version"], 2000);
89
- if (output.length > 0) {
90
- return {
91
- status: "enabled",
92
- strength: "strong",
93
- mechanism: "sandbox-exec",
94
- platform: "darwin"
95
- };
96
- }
96
+ const binary = _internals2.resolveSandboxExecBinary();
97
+ const target = _internals2.resolveProbeTargetBinary();
98
+ const profile = _internals2.buildProbeProfile(os.tmpdir());
99
+ await _internals3.withProbeTimeout(binary, ["-p", profile, target], 2000);
97
100
  return {
98
- status: "disabled",
101
+ status: "enabled",
102
+ strength: "strong",
99
103
  mechanism: "sandbox-exec",
100
- platform: "darwin",
101
- error: "binary returned empty version"
104
+ platform: "darwin"
102
105
  };
103
106
  } catch (err) {
104
107
  const msg = err instanceof Error ? err.message : String(err);
@@ -204,7 +207,13 @@ class SandboxCapabilityProbe {
204
207
  return _cached;
205
208
  }
206
209
  }
207
- var _cached;
208
- var init_capability_probe = () => {};
210
+ var _cached, _internals3;
211
+ var init_capability_probe = __esm(() => {
212
+ init_bubblewrap_executor();
213
+ init_sandbox_exec_executor();
214
+ _internals3 = {
215
+ withProbeTimeout
216
+ };
217
+ });
209
218
 
210
- export { isBubblewrapAvailable, isSandboxExecAvailable, isWindowsSandboxAvailable, SandboxCapabilityProbe, init_capability_probe };
219
+ export { _resetCapabilityCache, _internals3 as _internals, isBubblewrapAvailable, isSandboxExecAvailable, isWindowsSandboxAvailable, SandboxCapabilityProbe, init_capability_probe };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-dty5qgk2.js";
4
+ } from "./index-vdha477y.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-03pv47h2.js";
12
+ } from "./index-ec1kywxg.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-ywn7vtxp.js";
15
+ } from "./index-h1p08s3n.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-mazgg5s2.js";
18
+ } from "./index-9s8drsf9.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-9qq7c18c.js";
5
+ } from "./index-ytzz6pq1.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-y8j8ehc8.js";
8
+ } from "./index-68mqwvf5.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-rn0eq85g.js";
4
+ } from "./index-fv0s19g9.js";
5
5
 
6
6
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
7
7
  import { createHash, randomBytes } from "crypto";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-y8j8ehc8.js";
14
+ } from "./index-68mqwvf5.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-v3y3qg48.js";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-z6v7kwpa.js";
5
+ } from "./index-q6bhmyxb.js";
6
6
  import {
7
7
  unsafePathTextReason
8
8
  } from "./index-556ja8an.js";
9
9
  import {
10
10
  PlanSchema
11
- } from "./index-9qq7c18c.js";
11
+ } from "./index-ytzz6pq1.js";
12
12
  import {
13
13
  assertProjectRoot
14
14
  } from "./index-f9vvg5xb.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./index-7g4c7s5r.js";
18
18
  import {
19
19
  bunWrite
20
- } from "./index-4nt52yr9.js";
20
+ } from "./index-zj6t9zgx.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./index-a76rekgs.js";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-ywn7vtxp.js";
9
+ } from "./index-h1p08s3n.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-mazgg5s2.js";
12
+ } from "./index-9s8drsf9.js";
13
13
  import {
14
14
  readCachedParsedFile
15
15
  } from "./index-ed5ykebp.js";
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
709
  const {
710
710
  readAuthoritativeKnowledgeCounterRollups,
711
711
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-nkrym4wb.js");
712
+ } = await import("./knowledge-events-rgcwewpn.js");
713
713
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
714
  const flagIds = new Set;
715
715
  for (const e of atFloor) {
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
776
  });
777
777
  }
778
778
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-jrxvexv6.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-rptwqbm4.js");
779
+ const { quarantineEntry } = await import("./knowledge-validator-dx6zzcdf.js");
780
+ const { KnowledgeConfigSchema } = await import("./schema-tzcjwe8j.js");
781
781
  let config;
782
782
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-btmsqv7p.js");
783
+ const { loadPluginConfigWithMeta } = await import("./index-zxr5r9b7.js");
784
784
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
785
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
786
  } catch {