opencode-swarm 7.159.3 → 7.160.1
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/.opencode/skills/swarm-pr-review/SKILL.md +28 -29
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +21 -5
- package/dist/background/delegation-health.d.ts +1 -1
- package/dist/background/pending-delegations.d.ts +46 -1
- package/dist/background/pr-review-contract.d.ts +245 -2
- package/dist/cli/{coder-settlement-50p7dsya.js → coder-settlement-678ccmnf.js} +11 -10
- package/dist/cli/{config-doctor-a7drgs33.js → config-doctor-fr8dfrt2.js} +3 -3
- package/dist/cli/{core-madqgdsc.js → core-4j1hbhey.js} +2 -2
- package/dist/cli/{curation-policy-ray8h55z.js → curation-policy-47przjwg.js} +6 -6
- package/dist/cli/{curator-3sz7refy.js → curator-85d97240.js} +33 -32
- package/dist/cli/curator-llm-factory-s9s4s0q3.js +67 -0
- package/dist/cli/{evidence-summary-service-cwyjkdsa.js → evidence-summary-service-9dyt2kzh.js} +15 -14
- package/dist/cli/{gate-evidence-95k5ap1z.js → gate-evidence-a6paafg8.js} +7 -7
- package/dist/cli/guardrail-explain-4a2xdtew.js +68 -0
- package/dist/cli/{guardrail-log-nerqk9qb.js → guardrail-log-27nkntrx.js} +9 -6
- package/dist/cli/{guardrail-reset-chbc0mep.js → guardrail-reset-xn7k3hn8.js} +33 -32
- package/dist/cli/{hive-promoter-4rtxhw7n.js → hive-promoter-k57j3kp6.js} +33 -32
- package/dist/cli/{index-515nwvdp.js → index-497a3hhj.js} +19 -10
- package/dist/cli/{index-h96xp4t0.js → index-61c3d769.js} +875 -37
- package/dist/cli/{index-ve0xj03m.js → index-7ezv5j23.js} +4 -4
- package/dist/cli/{index-0zerbq1v.js → index-7h2armwf.js} +23 -14
- package/dist/cli/{index-ebxmfr4j.js → index-7npz9n4s.js} +5 -4
- package/dist/cli/{index-m9m3emns.js → index-7v0ex0jt.js} +2 -2
- package/dist/cli/{index-ebz97mks.js → index-8c9qzpy7.js} +1 -0
- package/dist/cli/{index-5hfqc3h3.js → index-98jmggma.js} +24 -7
- package/dist/cli/{index-8fyebh3w.js → index-awjx0wgk.js} +1 -1
- package/dist/cli/{index-av3gnekk.js → index-b5adxpy6.js} +1 -1
- package/dist/cli/{index-t3wk7q51.js → index-bqxffayb.js} +1 -1
- package/dist/cli/{index-yt75r1er.js → index-c9zp4xwc.js} +13 -2
- package/dist/cli/{index-9qw4sbg1.js → index-dh5q6z7y.js} +7 -7
- package/dist/cli/{index-prknc0xn.js → index-dke4wzkn.js} +108 -44
- package/dist/cli/{index-nvz4mp5w.js → index-dq93ar40.js} +6 -6
- package/dist/cli/{index-zswy6xgb.js → index-drqvph47.js} +7 -7
- package/dist/cli/{index-sn6mtxxc.js → index-e1ygmd4q.js} +35 -34
- package/dist/cli/{index-6jp5yxye.js → index-f72612zc.js} +16 -2
- package/dist/cli/{index-y2d381ce.js → index-gjx53y3c.js} +1 -1
- package/dist/cli/{index-xs32znyz.js → index-j3ss86kf.js} +1 -1
- package/dist/cli/{index-p3ym3y8b.js → index-jszabr0r.js} +4 -4
- package/dist/cli/{index-wwpe4am7.js → index-m1cw9fsh.js} +8 -8
- package/dist/cli/{index-8zw60wya.js → index-m84z3aa8.js} +13 -4
- package/dist/cli/index-mmr96pwr.js +785 -0
- package/dist/cli/{index-gk6gpe7r.js → index-nk498mx6.js} +2 -2
- package/dist/cli/{index-2jzmg2km.js → index-nnzdayvk.js} +6 -6
- package/dist/cli/{index-fnxmg8sz.js → index-ny0g8fdg.js} +5 -5
- package/dist/cli/{index-40t6s98s.js → index-pkz91fwm.js} +3 -3
- package/dist/cli/{index-bxpqq9th.js → index-pqjcyj0p.js} +3 -3
- package/dist/cli/{index-nhhek8yw.js → index-prv20xq6.js} +1 -1
- package/dist/cli/{index-mqfs5f8a.js → index-qc53dfzh.js} +2 -2
- package/dist/cli/{index-xqjhbfbx.js → index-v8dsmee1.js} +4 -4
- package/dist/cli/{index-qxpfmryw.js → index-wccdm7jv.js} +5 -5
- package/dist/cli/{index-rq4jcw64.js → index-z0bxbb9g.js} +4 -4
- package/dist/cli/{index-txwx9p21.js → index-zdv914xa.js} +585 -471
- package/dist/cli/{index-2fq4a3vk.js → index-znf683sm.js} +1 -1
- package/dist/cli/{index-v3ybemb1.js → index-zpzvpybn.js} +2 -2
- package/dist/cli/index.js +33 -32
- package/dist/cli/{knowledge-escalator-f80n84ch.js → knowledge-escalator-3q2x34cg.js} +14 -13
- package/dist/cli/{knowledge-events-1d7v2krw.js → knowledge-events-5y34w84b.js} +12 -11
- package/dist/cli/{knowledge-link-vm4caewt.js → knowledge-link-xezm8hr3.js} +5 -5
- package/dist/cli/{knowledge-store-66yxeet7.js → knowledge-store-fqv89q5k.js} +6 -6
- package/dist/cli/{knowledge-validator-p0xcx7jx.js → knowledge-validator-fsdx14tk.js} +8 -8
- package/dist/cli/{model-preflight-w85ecyxh.js → model-preflight-yqqchzjn.js} +1 -1
- package/dist/cli/{pending-delegations-vad1z71d.js → pending-delegations-6ae7wy5q.js} +7 -3
- package/dist/cli/{pr-review-reentry-authorization-kn3nny7h.js → pr-review-reentry-authorization-986tk381.js} +35 -33
- package/dist/cli/{pr-subscriptions-482gzvt6.js → pr-subscriptions-asjevc5p.js} +5 -4
- package/dist/cli/{runner-sn7a6zd0.js → runner-wsdcy2d6.js} +6 -6
- package/dist/cli/{scan-cursor-2v7995nb.js → scan-cursor-shn926r6.js} +7 -7
- package/dist/cli/{schema-dy8fqycb.js → schema-98tdb9h0.js} +4 -2
- package/dist/cli/{scope-persistence-baty62vx.js → scope-persistence-cn34xnwr.js} +10 -9
- package/dist/cli/{skill-generator-nwrvtqbz.js → skill-generator-kck7087c.js} +16 -15
- package/dist/cli/{telemetry-3rh94wv3.js → telemetry-gpr9s3sm.js} +3 -1
- package/dist/cli/{worktree-collision-ownership-cy24p5mr.js → worktree-collision-ownership-6b3kshcv.js} +6 -5
- package/dist/cli/{worktree-isolation-8jbx0s8d.js → worktree-isolation-he01qhss.js} +33 -32
- package/dist/config/constants.d.ts +8 -0
- package/dist/config/context-window.d.ts +11 -4
- package/dist/config/evidence-schema.d.ts +9 -6
- package/dist/config/schema.d.ts +8 -0
- package/dist/context-map/telemetry.d.ts +1 -1
- package/dist/health/learning-health.d.ts +356 -0
- package/dist/hooks/context-budget.d.ts +10 -1
- package/dist/hooks/curator.d.ts +2 -0
- package/dist/hooks/final-context-accounting.d.ts +2 -0
- package/dist/hooks/model-limits.d.ts +56 -25
- package/dist/hooks/pr-workflow-gate.d.ts +25 -1
- package/dist/hooks/skill-usage-pending.d.ts +1 -1
- package/dist/index.js +623 -609
- package/dist/observability/catalog.d.ts +2 -2
- package/dist/observability/ids.d.ts +17 -0
- package/dist/prm/trajectory-store.d.ts +1 -1
- package/dist/services/diagnose-service.d.ts +7 -0
- package/dist/services/status-service.d.ts +18 -0
- package/dist/telemetry.d.ts +52 -1
- package/dist/tools/context-status.d.ts +15 -1
- package/dist/tools/dispatch-lanes.d.ts +27 -3
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/repo-graph/ontology.d.ts +6 -0
- package/dist/tools/repo-graph/pack-query.d.ts +36 -0
- package/dist/tools/repo-graph/types.d.ts +198 -1
- package/dist/tools/repo-graph.d.ts +5 -3
- package/dist/tools/sast-baseline.d.ts +2 -0
- package/dist/tools/sast-scan.d.ts +2 -2
- package/dist/tools/submit-pr-review-result.d.ts +5 -0
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/opencode-swarm.schema.json +4 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-pyp5kmra.js +0 -66
- package/dist/cli/guardrail-explain-a13kbmrt.js +0 -67
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
atomicWriteFileAnyRoot
|
|
4
|
-
} from "./index-9qw4sbg1.js";
|
|
5
2
|
import {
|
|
6
3
|
withEvidenceLock
|
|
7
|
-
} from "./index-
|
|
4
|
+
} from "./index-b5adxpy6.js";
|
|
5
|
+
import {
|
|
6
|
+
atomicWriteFileAnyRoot
|
|
7
|
+
} from "./index-dh5q6z7y.js";
|
|
8
8
|
|
|
9
9
|
// src/evidence/task-file.ts
|
|
10
10
|
import * as path from "path";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
observeStoreHealth
|
|
4
|
+
} from "./index-mmr96pwr.js";
|
|
2
5
|
import {
|
|
3
6
|
telemetry
|
|
4
|
-
} from "./index-
|
|
7
|
+
} from "./index-dke4wzkn.js";
|
|
5
8
|
import {
|
|
6
9
|
init_logger,
|
|
7
10
|
warn
|
|
@@ -873,20 +876,26 @@ function emitCoreEventsHealth(directory, payload, preloadedAuthorityState) {
|
|
|
873
876
|
authorityCount = Object.keys(state.index.entries).length;
|
|
874
877
|
authorityEvicted = state.index.evicted;
|
|
875
878
|
}
|
|
879
|
+
const healthPayload = {
|
|
880
|
+
trigger: payload.trigger,
|
|
881
|
+
accepted_count: payload.accepted,
|
|
882
|
+
compacted_count: payload.compacted,
|
|
883
|
+
retained_count: payload.retained,
|
|
884
|
+
dropped_count: payload.dropped,
|
|
885
|
+
corrupt_count: payload.corrupt,
|
|
886
|
+
authority_index_count: authorityCount,
|
|
887
|
+
authority_evicted_count: authorityEvicted,
|
|
888
|
+
oldest_timestamp: payload.oldest,
|
|
889
|
+
newest_timestamp: payload.newest,
|
|
890
|
+
bytes: payload.bytes,
|
|
891
|
+
limit_bytes: payload.limitBytes
|
|
892
|
+
};
|
|
876
893
|
try {
|
|
877
|
-
telemetry.coreEventsHealth(
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
dropped_count: payload.dropped,
|
|
883
|
-
corrupt_count: payload.corrupt,
|
|
884
|
-
authority_index_count: authorityCount,
|
|
885
|
-
authority_evicted_count: authorityEvicted,
|
|
886
|
-
oldest_timestamp: payload.oldest,
|
|
887
|
-
newest_timestamp: payload.newest,
|
|
888
|
-
bytes: payload.bytes,
|
|
889
|
-
limit_bytes: payload.limitBytes
|
|
894
|
+
telemetry.coreEventsHealth(healthPayload);
|
|
895
|
+
observeStoreHealth({
|
|
896
|
+
directory,
|
|
897
|
+
kind: "core_events_health",
|
|
898
|
+
payload: healthPayload
|
|
890
899
|
});
|
|
891
900
|
} catch {}
|
|
892
901
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ALL_AGENT_NAMES,
|
|
4
4
|
SUMMARIZER_EXEMPT_TOOL_NAMES,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-c9zp4xwc.js";
|
|
7
7
|
import {
|
|
8
8
|
OUTCOME_BLOCK_THRESHOLD,
|
|
9
9
|
init_knowledge_types
|
|
@@ -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.
|
|
24
|
+
version: "7.160.1",
|
|
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",
|
|
@@ -316,7 +316,7 @@ function resolveExternalSkillsConfig(input) {
|
|
|
316
316
|
};
|
|
317
317
|
return merged;
|
|
318
318
|
}
|
|
319
|
-
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, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, 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, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, PluginConfigSchema;
|
|
319
|
+
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, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, 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, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
|
|
320
320
|
var init_schema = __esm(() => {
|
|
321
321
|
init_zod();
|
|
322
322
|
init_package();
|
|
@@ -1686,6 +1686,7 @@ var init_schema = __esm(() => {
|
|
|
1686
1686
|
inject_phase_reminders: exports_external.boolean().default(true).describe("Inject phase reminder directives during execution."),
|
|
1687
1687
|
hooks: HooksConfigSchema.optional().describe("Hook subsystem toggles and settings."),
|
|
1688
1688
|
pr_review_resilience: PrReviewResilienceConfigSchema.optional().describe("PR review base-wave staged canary/fanout resilience settings."),
|
|
1689
|
+
pr_review_legacy_transcript_compatibility: exports_external.boolean().optional().describe("Deprecated migration-only opt-in for transcript-row PR-review base and micro discovery lanes."),
|
|
1689
1690
|
gates: GateConfigSchema.optional().describe("Quality gate configuration (v6.9 anti-slop features)."),
|
|
1690
1691
|
context_budget: ContextBudgetConfigSchema.optional().describe("Context budget thresholds."),
|
|
1691
1692
|
pricing: PricingConfigSchema.optional().describe("Token/cost estimation fallback table. Provider-reported cost wins when present; entries only estimate from usage tokens when reports omit cost."),
|
|
@@ -1913,4 +1914,4 @@ var init_schema = __esm(() => {
|
|
|
1913
1914
|
});
|
|
1914
1915
|
});
|
|
1915
1916
|
|
|
1916
|
-
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, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, 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, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, PluginConfigSchema, init_schema };
|
|
1917
|
+
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, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, 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, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-nnzdayvk.js";
|
|
6
6
|
import {
|
|
7
7
|
init_git_executable,
|
|
8
8
|
resolveGitExecutableAsync
|
|
9
9
|
} from "./index-9e6fdz2h.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveKnowledgeStoreDir
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-prv20xq6.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -174,6 +174,7 @@ var SastEvidenceSchema = BaseEvidenceSchema.extend({
|
|
|
174
174
|
pre_existing_findings: exports_external.array(SastFindingSchema).optional(),
|
|
175
175
|
moved_findings: exports_external.array(SastFindingSchema).optional(),
|
|
176
176
|
baseline_used: exports_external.boolean().optional(),
|
|
177
|
+
truncated_pre_existing: exports_external.boolean().optional(),
|
|
177
178
|
truncated_moved_findings: exports_external.boolean().optional()
|
|
178
179
|
});
|
|
179
180
|
var SbomEvidenceSchema = BaseEvidenceSchema.extend({
|
|
@@ -4,26 +4,29 @@ import {
|
|
|
4
4
|
} from "./index-dtn0pne5.js";
|
|
5
5
|
import {
|
|
6
6
|
loadPluginConfigWithMeta
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bqxffayb.js";
|
|
8
8
|
import {
|
|
9
9
|
KnowledgeConfigSchema,
|
|
10
10
|
init_schema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-7npz9n4s.js";
|
|
12
|
+
import {
|
|
13
|
+
observeReceiptTransition
|
|
14
|
+
} from "./index-mmr96pwr.js";
|
|
12
15
|
import {
|
|
13
16
|
resolveHiveEventsPath
|
|
14
17
|
} from "./index-ae75rja9.js";
|
|
15
18
|
import {
|
|
16
19
|
resolveKnowledgeStoreDir
|
|
17
|
-
} from "./index-
|
|
20
|
+
} from "./index-prv20xq6.js";
|
|
18
21
|
import {
|
|
19
22
|
atomicWriteFile
|
|
20
|
-
} from "./index-
|
|
23
|
+
} from "./index-7ezv5j23.js";
|
|
21
24
|
import {
|
|
22
25
|
assertProjectRoot
|
|
23
|
-
} from "./index-
|
|
26
|
+
} from "./index-b5adxpy6.js";
|
|
24
27
|
import {
|
|
25
28
|
emit
|
|
26
|
-
} from "./index-
|
|
29
|
+
} from "./index-dke4wzkn.js";
|
|
27
30
|
import {
|
|
28
31
|
require_proper_lockfile
|
|
29
32
|
} from "./index-7g4c7s5r.js";
|
|
@@ -1755,11 +1758,25 @@ async function runLocked(directory, graceDays, action, options = {}) {
|
|
|
1755
1758
|
});
|
|
1756
1759
|
for (const observation of observations) {
|
|
1757
1760
|
emitKnowledgeReceiptTransition(observation);
|
|
1761
|
+
observeReceiptTransition({
|
|
1762
|
+
directory,
|
|
1763
|
+
kind: observation.transition,
|
|
1764
|
+
traceId: observation.knowledgeTraceId ?? "",
|
|
1765
|
+
receiptOutcome: observation.receiptOutcome,
|
|
1766
|
+
receiptSource: observation.receiptSource
|
|
1767
|
+
});
|
|
1758
1768
|
}
|
|
1759
1769
|
return result;
|
|
1760
1770
|
} catch (error) {
|
|
1761
1771
|
for (const observation of observations) {
|
|
1762
1772
|
emitKnowledgeReceiptTransition(observation);
|
|
1773
|
+
observeReceiptTransition({
|
|
1774
|
+
directory,
|
|
1775
|
+
kind: observation.transition,
|
|
1776
|
+
traceId: observation.knowledgeTraceId ?? "",
|
|
1777
|
+
receiptOutcome: observation.receiptOutcome,
|
|
1778
|
+
receiptSource: observation.receiptSource
|
|
1779
|
+
});
|
|
1763
1780
|
}
|
|
1764
1781
|
return unavailable(error);
|
|
1765
1782
|
}
|
|
@@ -2793,7 +2810,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2793
2810
|
}
|
|
2794
2811
|
let bumps = 0;
|
|
2795
2812
|
if (deltas.length > 0) {
|
|
2796
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2813
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-fqv89q5k.js");
|
|
2797
2814
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2798
2815
|
}
|
|
2799
2816
|
return {
|
|
@@ -242,6 +242,11 @@ var init_tool_metadata = __esm(() => {
|
|
|
242
242
|
description: "issue a one-use, identity-bound reviewer/test_engineer re-entry authorization for the active PR_REVIEW workflow (issue #2383)",
|
|
243
243
|
agents: ["architect"]
|
|
244
244
|
},
|
|
245
|
+
submit_pr_review_result: {
|
|
246
|
+
description: "submit one child-bound typed result for an active PR-review base or micro discovery lane",
|
|
247
|
+
agents: [],
|
|
248
|
+
prWorkflow: { modes: ["PR_REVIEW"], capability: "validate" }
|
|
249
|
+
},
|
|
245
250
|
approve_plan_critic: {
|
|
246
251
|
description: "record a MANUAL plan_critic_gate approval snapshot to unblock the ratchet-tighter critic_pre_plan execution gate when the critic already returned APPROVED but the mechanical recorder failed to persist it (issue #2012)",
|
|
247
252
|
agents: ["architect"]
|
|
@@ -558,7 +563,7 @@ var init_tool_metadata = __esm(() => {
|
|
|
558
563
|
agents: ["architect"]
|
|
559
564
|
},
|
|
560
565
|
context_status: {
|
|
561
|
-
description: "report current context-window headroom for the active session \u2014 returns tokens-used, usageSource (provider|estimated), model-limit, usage-percent, threshold-state (none/warn/critical), model name, and provider. Pure read-only: no state mutation, no warning injection. Works whether context_budget.enabled is true or false.",
|
|
566
|
+
description: "report current context-window headroom for the active session \u2014 returns tokens-used, usageSource (provider|estimated), model-limit with provenance (modelLimitSource: host|override|provider_cap|native|fallback; modelLimitResolution: user_provider_model|user_model|user_default|live_model_limit|static_provider_cap|static_native|static_default; fallbackActive: true when the denominator came from a static table or the flat 128k default \u2014 treat headroom as uncertain), usage-percent, threshold-state (none/warn/critical), model name, and provider. Pure read-only: no state mutation, no warning injection. Works whether context_budget.enabled is true or false.",
|
|
562
567
|
agents: ["architect"]
|
|
563
568
|
},
|
|
564
569
|
search: {
|
|
@@ -950,7 +955,7 @@ function isQAAgent(name) {
|
|
|
950
955
|
function isSubagent(name) {
|
|
951
956
|
return ALL_SUBAGENT_NAMES.includes(name);
|
|
952
957
|
}
|
|
953
|
-
var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
|
|
958
|
+
var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, PR_REVIEW_CHILD_TOOL_NAMES, PR_REVIEW_CHILD_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
|
|
954
959
|
var init_constants = __esm(() => {
|
|
955
960
|
init_agent_names();
|
|
956
961
|
init_tool_metadata();
|
|
@@ -1124,6 +1129,12 @@ var init_constants = __esm(() => {
|
|
|
1124
1129
|
SKILL_AGENT_TOOL_MAP = {
|
|
1125
1130
|
architect: [...SKILL_TOOL_NAMES]
|
|
1126
1131
|
};
|
|
1132
|
+
PR_REVIEW_CHILD_TOOL_NAMES = [
|
|
1133
|
+
"submit_pr_review_result"
|
|
1134
|
+
];
|
|
1135
|
+
PR_REVIEW_CHILD_AGENT_TOOL_MAP = {
|
|
1136
|
+
explorer: [...PR_REVIEW_CHILD_TOOL_NAMES]
|
|
1137
|
+
};
|
|
1127
1138
|
WRITE_TOOL_NAMES = [
|
|
1128
1139
|
"write",
|
|
1129
1140
|
"edit",
|
|
@@ -42,7 +42,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
42
42
|
token: "instance",
|
|
43
43
|
quarantineEligible: true,
|
|
44
44
|
parsesTarget: true,
|
|
45
|
-
producers: ["src/hooks/pr-workflow-gate.ts:
|
|
45
|
+
producers: ["src/hooks/pr-workflow-gate.ts:18397"],
|
|
46
46
|
note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:17880-17980) is writer-specific and load-bearing"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -74,7 +74,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
74
74
|
"src/summaries/manager.ts:122",
|
|
75
75
|
"src/evidence/manager.ts:288",
|
|
76
76
|
"src/evidence/manager.ts:456",
|
|
77
|
-
"src/tools/sast-baseline.ts:
|
|
77
|
+
"src/tools/sast-baseline.ts:199",
|
|
78
78
|
"src/tools/repo-graph/storage.ts:493",
|
|
79
79
|
"src/memory/reflection-service.ts:547 (pre-#2035)",
|
|
80
80
|
"src/hooks/review-receipt.ts:608",
|
|
@@ -123,8 +123,8 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
123
123
|
"src/tools/spec-write.ts:98",
|
|
124
124
|
"src/sdd/effective-spec.ts:1149",
|
|
125
125
|
"src/background/lane-output-store.ts:353",
|
|
126
|
-
"src/background/pending-delegations.ts:
|
|
127
|
-
"src/background/delegation-health.ts:
|
|
126
|
+
"src/background/pending-delegations.ts:1091",
|
|
127
|
+
"src/background/delegation-health.ts:391",
|
|
128
128
|
"src/tools/submit-phase-council-verdicts.ts:458",
|
|
129
129
|
"src/summaries/store.ts:46 (pre-#2035)"
|
|
130
130
|
],
|
|
@@ -250,10 +250,10 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
250
250
|
"src/context-map/capsule-persistence.ts:109",
|
|
251
251
|
"src/test-impact/history-store.ts:225",
|
|
252
252
|
"src/test-impact/history-store.ts:353",
|
|
253
|
-
"src/hooks/promotion-evidence-store.ts:
|
|
253
|
+
"src/hooks/promotion-evidence-store.ts:112",
|
|
254
254
|
"src/hooks/skill-usage-log.ts:1165",
|
|
255
|
-
"src/hooks/skill-usage-log.ts:
|
|
256
|
-
"src/hooks/skill-usage-pending.ts:
|
|
255
|
+
"src/hooks/skill-usage-log.ts:1675",
|
|
256
|
+
"src/hooks/skill-usage-pending.ts:817",
|
|
257
257
|
"src/parallel/file-locks.ts:113",
|
|
258
258
|
"src/plan/ledger.ts:1302",
|
|
259
259
|
"src/plan/ledger.ts:1303"
|