opencode-swarm 7.98.2 → 7.99.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 +1 -0
- package/dist/cli/{config-doctor-7yrxfa6b.js → config-doctor-9fhfy6p7.js} +2 -2
- package/dist/cli/{evidence-summary-service-559nas1m.js → evidence-summary-service-4hs44n2c.js} +5 -5
- package/dist/cli/{gate-evidence-nphg8hay.js → gate-evidence-ywys9vfs.js} +4 -4
- package/dist/cli/{guardrail-explain-xktjjh53.js → guardrail-explain-ktm6szbm.js} +13 -13
- package/dist/cli/{guardrail-log-53z1cf46.js → guardrail-log-ya49kpwn.js} +3 -3
- package/dist/cli/{index-91qtsbce.js → index-3naa2ajc.js} +1 -1
- package/dist/cli/{index-chan9mkv.js → index-4pt2py5p.js} +16 -14
- package/dist/cli/{index-a0dv2c7k.js → index-5fxjagjt.js} +1 -1
- package/dist/cli/{index-471qxz9g.js → index-7hnwnw5g.js} +11 -1
- package/dist/cli/{index-kv4dd5c5.js → index-9b7qp18e.js} +1 -1
- package/dist/cli/{index-hb10a2g8.js → index-f7nma02k.js} +2 -2
- package/dist/cli/{index-rvweaxsd.js → index-ft4gehk1.js} +2 -2
- package/dist/cli/{index-gnd1280x.js → index-h9ptj4b1.js} +1 -1
- package/dist/cli/{index-72k57f21.js → index-hw8r3e5p.js} +1098 -790
- package/dist/cli/{index-mh1ej70w.js → index-r8f89sm9.js} +2 -2
- package/dist/cli/{index-zy22fg5h.js → index-svf2zjxs.js} +5 -1
- package/dist/cli/{index-xchgryg4.js → index-vn263hqt.js} +16 -2
- package/dist/cli/{index-fjxjb66n.js → index-vwyjkzgs.js} +3 -3
- package/dist/cli/{index-yrzfbqqh.js → index-wwnjw0fb.js} +3 -3
- package/dist/cli/{index-5z2e78tv.js → index-xsswhy6k.js} +1 -1
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-store-pa58msy5.js → knowledge-store-tsa8ezka.js} +4 -4
- package/dist/cli/{pending-delegations-8b2js1vq.js → pending-delegations-c785p5n2.js} +2 -2
- package/dist/cli/{pr-subscriptions-ttvr1ta9.js → pr-subscriptions-fqrzm0tv.js} +3 -3
- package/dist/cli/{schema-mygkbbe9.js → schema-nz638xc3.js} +5 -1
- package/dist/cli/{skill-generator-3tkwcg4x.js → skill-generator-99rrfwae.js} +5 -5
- package/dist/cli/{telemetry-aa1ma1dr.js → telemetry-jm7t8031.js} +1 -1
- package/dist/commands/costs.d.ts +4 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +9 -2
- package/dist/config/evidence-schema.d.ts +44 -44
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema.d.ts +24 -0
- package/dist/index.js +2933 -2314
- package/dist/services/cost-accounting.d.ts +65 -0
- package/dist/telemetry.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1094,6 +1094,7 @@ Control how tool outputs are summarized for LLM context.
|
|
|
1094
1094
|
| `/swarm evidence [task]` | Evidence bundles for a task or all tasks |
|
|
1095
1095
|
| `/swarm archive [--dry-run]` | Archive old evidence with retention policy |
|
|
1096
1096
|
| `/swarm benchmark` | Performance benchmarks |
|
|
1097
|
+
| `/swarm costs [--json]` | Per-agent, per-task, per-gate, and per-retry token/cost totals from telemetry |
|
|
1097
1098
|
| `/swarm retrieve [id]` | Retrieve auto-summarized tool outputs (supports offset/limit pagination) |
|
|
1098
1099
|
| `/swarm reset --confirm` | Clear swarm state files |
|
|
1099
1100
|
| `/swarm reset-session` | Clear session state files in `.swarm/session/` (preserves plan and context) |
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-svf2zjxs.js";
|
|
16
|
+
import"./index-7hnwnw5g.js";
|
|
17
17
|
import"./index-5e4e2hvv.js";
|
|
18
18
|
import"./index-p0arc26j.js";
|
|
19
19
|
import"./index-zgwm4ryv.js";
|
package/dist/cli/{evidence-summary-service-559nas1m.js → evidence-summary-service-4hs44n2c.js}
RENAMED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
} from "./index-wwnjw0fb.js";
|
|
10
|
+
import"./index-r8f89sm9.js";
|
|
11
|
+
import"./index-9b7qp18e.js";
|
|
12
12
|
import"./index-we94wkty.js";
|
|
13
13
|
import"./index-jtqkh8jf.js";
|
|
14
14
|
import"./index-5e4e2hvv.js";
|
|
@@ -16,10 +16,10 @@ import"./index-p0arc26j.js";
|
|
|
16
16
|
import {
|
|
17
17
|
log
|
|
18
18
|
} from "./index-zgwm4ryv.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-3naa2ajc.js";
|
|
20
20
|
import"./index-293f68mj.js";
|
|
21
21
|
import"./index-b9v501fr.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-vn263hqt.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
|
|
25
25
|
// src/services/evidence-summary-service.ts
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
readTaskEvidenceRaw,
|
|
10
10
|
recordAgentDispatch,
|
|
11
11
|
recordGateEvidence
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-r8f89sm9.js";
|
|
13
|
+
import"./index-9b7qp18e.js";
|
|
14
|
+
import"./index-3naa2ajc.js";
|
|
15
15
|
import"./index-293f68mj.js";
|
|
16
16
|
import"./index-b9v501fr.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-vn263hqt.js";
|
|
18
18
|
import"./index-a76rekgs.js";
|
|
19
19
|
export {
|
|
20
20
|
recordGateEvidence,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-ft4gehk1.js";
|
|
5
|
+
import"./index-hw8r3e5p.js";
|
|
6
|
+
import"./index-xsswhy6k.js";
|
|
7
7
|
import"./index-2a6ppa65.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
8
|
+
import"./index-vwyjkzgs.js";
|
|
9
|
+
import"./index-f7nma02k.js";
|
|
10
|
+
import"./index-svf2zjxs.js";
|
|
11
|
+
import"./index-7hnwnw5g.js";
|
|
12
|
+
import"./index-wwnjw0fb.js";
|
|
13
13
|
import"./index-adz3nk9b.js";
|
|
14
14
|
import"./index-v4fcn4tr.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-r8f89sm9.js";
|
|
16
|
+
import"./index-9b7qp18e.js";
|
|
17
|
+
import"./index-5fxjagjt.js";
|
|
18
18
|
import"./index-we94wkty.js";
|
|
19
19
|
import"./index-jtqkh8jf.js";
|
|
20
20
|
import"./index-5e4e2hvv.js";
|
|
21
21
|
import"./index-p0arc26j.js";
|
|
22
22
|
import"./index-zgwm4ryv.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-3naa2ajc.js";
|
|
24
24
|
import"./index-293f68mj.js";
|
|
25
25
|
import"./index-b9v501fr.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-vn263hqt.js";
|
|
27
27
|
import"./index-a76rekgs.js";
|
|
28
28
|
export {
|
|
29
29
|
handleGuardrailExplain
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-h9ptj4b1.js";
|
|
5
|
+
import"./index-xsswhy6k.js";
|
|
6
|
+
import"./index-7hnwnw5g.js";
|
|
7
7
|
import"./index-5e4e2hvv.js";
|
|
8
8
|
import"./index-p0arc26j.js";
|
|
9
9
|
import"./index-zgwm4ryv.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ft4gehk1.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-h9ptj4b1.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
handleConcurrencyCommand,
|
|
31
31
|
handleConfigCommand,
|
|
32
32
|
handleConsolidateCommand,
|
|
33
|
+
handleCostsCommand,
|
|
33
34
|
handleCouncilCommand,
|
|
34
35
|
handleCurateCommand,
|
|
35
36
|
handleDarkMatterCommand,
|
|
@@ -78,32 +79,32 @@ import {
|
|
|
78
79
|
handleWriteRetroCommand,
|
|
79
80
|
normalizeSwarmCommandInput,
|
|
80
81
|
resolveCommand
|
|
81
|
-
} from "./index-
|
|
82
|
-
import"./index-
|
|
82
|
+
} from "./index-hw8r3e5p.js";
|
|
83
|
+
import"./index-xsswhy6k.js";
|
|
83
84
|
import"./index-2a6ppa65.js";
|
|
84
|
-
import"./index-
|
|
85
|
-
import"./index-
|
|
86
|
-
import"./index-
|
|
85
|
+
import"./index-vwyjkzgs.js";
|
|
86
|
+
import"./index-f7nma02k.js";
|
|
87
|
+
import"./index-svf2zjxs.js";
|
|
87
88
|
import {
|
|
88
89
|
AGENT_TOOL_MAP,
|
|
89
90
|
ORCHESTRATOR_NAME,
|
|
90
91
|
stripKnownSwarmPrefix
|
|
91
|
-
} from "./index-
|
|
92
|
-
import"./index-
|
|
92
|
+
} from "./index-7hnwnw5g.js";
|
|
93
|
+
import"./index-wwnjw0fb.js";
|
|
93
94
|
import"./index-adz3nk9b.js";
|
|
94
95
|
import"./index-v4fcn4tr.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
96
|
+
import"./index-r8f89sm9.js";
|
|
97
|
+
import"./index-9b7qp18e.js";
|
|
98
|
+
import"./index-5fxjagjt.js";
|
|
98
99
|
import"./index-we94wkty.js";
|
|
99
100
|
import"./index-jtqkh8jf.js";
|
|
100
101
|
import"./index-5e4e2hvv.js";
|
|
101
102
|
import"./index-p0arc26j.js";
|
|
102
103
|
import"./index-zgwm4ryv.js";
|
|
103
|
-
import"./index-
|
|
104
|
+
import"./index-3naa2ajc.js";
|
|
104
105
|
import"./index-293f68mj.js";
|
|
105
106
|
import"./index-b9v501fr.js";
|
|
106
|
-
import"./index-
|
|
107
|
+
import"./index-vn263hqt.js";
|
|
107
108
|
import"./index-a76rekgs.js";
|
|
108
109
|
// src/commands/command-names.ts
|
|
109
110
|
var COMMAND_NAMES = Object.freeze(Object.keys(COMMAND_REGISTRY));
|
|
@@ -386,6 +387,7 @@ export {
|
|
|
386
387
|
handleDarkMatterCommand,
|
|
387
388
|
handleCurateCommand,
|
|
388
389
|
handleCouncilCommand,
|
|
390
|
+
handleCostsCommand,
|
|
389
391
|
handleConsolidateCommand,
|
|
390
392
|
handleConfigCommand,
|
|
391
393
|
handleConcurrencyCommand,
|
|
@@ -1021,6 +1021,15 @@ var SwarmConfigSchema = exports_external.object({
|
|
|
1021
1021
|
name: exports_external.string().optional(),
|
|
1022
1022
|
agents: exports_external.record(exports_external.string(), AgentOverrideConfigSchema).optional()
|
|
1023
1023
|
});
|
|
1024
|
+
var ModelPricingConfigSchema = exports_external.object({
|
|
1025
|
+
input_per_million: exports_external.number().min(0),
|
|
1026
|
+
output_per_million: exports_external.number().min(0),
|
|
1027
|
+
reasoning_per_million: exports_external.number().min(0).optional(),
|
|
1028
|
+
cache_per_million: exports_external.number().min(0).optional()
|
|
1029
|
+
});
|
|
1030
|
+
var PricingConfigSchema = exports_external.object({
|
|
1031
|
+
models: exports_external.record(exports_external.string().min(1), ModelPricingConfigSchema).optional().default({})
|
|
1032
|
+
});
|
|
1024
1033
|
var HooksConfigSchema = exports_external.object({
|
|
1025
1034
|
system_enhancer: exports_external.boolean().default(true),
|
|
1026
1035
|
compaction: exports_external.boolean().default(true),
|
|
@@ -2016,6 +2025,7 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2016
2025
|
hooks: HooksConfigSchema.optional(),
|
|
2017
2026
|
gates: GateConfigSchema.optional(),
|
|
2018
2027
|
context_budget: ContextBudgetConfigSchema.optional(),
|
|
2028
|
+
pricing: PricingConfigSchema.optional(),
|
|
2019
2029
|
guardrails: GuardrailsConfigSchema.optional(),
|
|
2020
2030
|
watchdog: WatchdogConfigSchema.optional(),
|
|
2021
2031
|
self_review: SelfReviewConfigSchema.optional(),
|
|
@@ -2221,4 +2231,4 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2221
2231
|
skills: SkillsConfigSchema.optional()
|
|
2222
2232
|
});
|
|
2223
2233
|
|
|
2224
|
-
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, SkillsConfigSchema, 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 };
|
|
2234
|
+
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, ModelPricingConfigSchema, PricingConfigSchema, 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, SkillsConfigSchema, 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 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteFile
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-9b7qp18e.js";
|
|
5
5
|
import {
|
|
6
6
|
readCachedParsedFile
|
|
7
7
|
} from "./index-jtqkh8jf.js";
|
|
8
8
|
import {
|
|
9
9
|
require_proper_lockfile
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-3naa2ajc.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./index-a76rekgs.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-hw8r3e5p.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-xsswhy6k.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|