opencode-swarm 7.114.8 → 7.115.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/.opencode/skills/ci-fix-monitor/SKILL.md +8 -13
- package/.opencode/skills/commit-pr/SKILL.md +4 -0
- package/.opencode/skills/execute/SKILL.md +2 -0
- package/.opencode/skills/swarm-ci-monitor/SKILL.md +5 -0
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +2 -0
- package/.opencode/skills/writing-tests/SKILL.md +2 -0
- package/README.md +1 -0
- package/dist/cli/{config-doctor-jy3mdh9t.js → config-doctor-htzxe394.js} +2 -2
- package/dist/cli/{curator-qj970412.js → curator-hpc4tsjv.js} +4 -4
- package/dist/cli/{curator-llm-factory-ez48eq02.js → curator-llm-factory-6n9sgaj8.js} +4 -4
- package/dist/cli/{guardrail-explain-x2vaxp6s.js → guardrail-explain-hecpd738.js} +5 -5
- package/dist/cli/{guardrail-log-84wnx273.js → guardrail-log-dzbqcgz9.js} +3 -3
- package/dist/cli/{hive-promoter-ysk5edzw.js → hive-promoter-0kfb4vjk.js} +4 -4
- package/dist/cli/{index-z718bgxe.js → index-2etc05tv.js} +6 -6
- package/dist/cli/{index-yfedche9.js → index-8j5d3ytd.js} +1 -1
- package/dist/cli/{index-ry8nwsq6.js → index-m0rce3x6.js} +2 -2
- package/dist/cli/{index-7jmrbp68.js → index-m43zgtjn.js} +1 -1
- package/dist/cli/{index-cs5765s2.js → index-m766gvdt.js} +640 -583
- package/dist/cli/{index-9bsmzfk3.js → index-m7hc7nn7.js} +5 -1
- package/dist/cli/{index-a45jq4b7.js → index-nvc0nsvg.js} +6 -1
- package/dist/cli/index.js +4 -4
- package/dist/cli/{schema-aymfdrsb.js → schema-bqn7g3ez.js} +3 -1
- package/dist/commands/ci-monitor.d.ts +18 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema.d.ts +9 -0
- package/dist/config/skill-mirrors.d.ts +10 -1
- package/dist/index.js +214 -160
- package/dist/tools/apply-patch.d.ts +21 -0
- package/dist/utils/fuzzy-match.d.ts +115 -0
- package/dist/utils/sequence-matcher.d.ts +83 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
GateConfigSchema,
|
|
6
6
|
PluginConfigSchema,
|
|
7
7
|
stripKnownSwarmPrefix
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-nvc0nsvg.js";
|
|
9
9
|
import {
|
|
10
10
|
log
|
|
11
11
|
} from "./index-zgwm4ryv.js";
|
|
@@ -828,6 +828,10 @@ function validateConfigKey(path2, value) {
|
|
|
828
828
|
emitObjectTypeMismatch("checkpoint", value, findings);
|
|
829
829
|
break;
|
|
830
830
|
}
|
|
831
|
+
case "apply_patch": {
|
|
832
|
+
emitObjectTypeMismatch("apply_patch", value, findings);
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
831
835
|
case "automation": {
|
|
832
836
|
emitObjectTypeMismatch("automation", value, findings);
|
|
833
837
|
break;
|
|
@@ -1496,6 +1496,10 @@ var CheckpointConfigSchema = exports_external.object({
|
|
|
1496
1496
|
auto_checkpoint_threshold: exports_external.number().int().min(1).max(20).default(3),
|
|
1497
1497
|
allow_empty_commits: exports_external.boolean().default(false)
|
|
1498
1498
|
}).strict();
|
|
1499
|
+
var ApplyPatchConfigSchema = exports_external.object({
|
|
1500
|
+
fuzzy_match: exports_external.boolean().default(false),
|
|
1501
|
+
fuzzy_match_context_aware: exports_external.boolean().default(false)
|
|
1502
|
+
}).strict();
|
|
1499
1503
|
var AutomationModeSchema = exports_external.enum(["manual", "hybrid", "auto"]);
|
|
1500
1504
|
var AutomationCapabilitiesSchema = exports_external.object({
|
|
1501
1505
|
plan_sync: exports_external.boolean().default(true),
|
|
@@ -2222,6 +2226,7 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2222
2226
|
lint: LintConfigSchema.optional(),
|
|
2223
2227
|
secretscan: SecretscanConfigSchema.optional(),
|
|
2224
2228
|
checkpoint: CheckpointConfigSchema.optional(),
|
|
2229
|
+
apply_patch: ApplyPatchConfigSchema.optional(),
|
|
2225
2230
|
automation: AutomationConfigSchema.optional(),
|
|
2226
2231
|
knowledge: KnowledgeConfigSchema.optional(),
|
|
2227
2232
|
memory: MemoryConfigSchema.optional(),
|
|
@@ -2411,4 +2416,4 @@ var PluginConfigSchema = exports_external.object({
|
|
|
2411
2416
|
skills: SkillsConfigSchema.optional()
|
|
2412
2417
|
});
|
|
2413
2418
|
|
|
2414
|
-
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, GATE_CONFIG_KNOWN_SECTION_KEYS, 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 };
|
|
2419
|
+
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, GATE_CONFIG_KNOWN_SECTION_KEYS, 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, ApplyPatchConfigSchema, 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 };
|
package/dist/cli/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-m766gvdt.js";
|
|
11
|
+
import"./index-8j5d3ytd.js";
|
|
12
12
|
import"./index-c8s9a3zh.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-m7hc7nn7.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_AGENT_CONFIGS
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-nvc0nsvg.js";
|
|
17
17
|
import"./index-yrrqs4b0.js";
|
|
18
18
|
import"./index-scww5b77.js";
|
|
19
19
|
import"./index-ga4ta3cr.js";
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
AgentOverrideConfigSchema,
|
|
7
7
|
AgentReasoningConfigSchema,
|
|
8
8
|
AgentThinkingConfigSchema,
|
|
9
|
+
ApplyPatchConfigSchema,
|
|
9
10
|
ArchitecturalSupervisionConfigSchema,
|
|
10
11
|
AuthorityConfigSchema,
|
|
11
12
|
AutoReviewConfigSchema,
|
|
@@ -86,7 +87,7 @@ import {
|
|
|
86
87
|
resolveGeneratedAgentRole,
|
|
87
88
|
resolveGuardrailsConfig,
|
|
88
89
|
stripKnownSwarmPrefix
|
|
89
|
-
} from "./index-
|
|
90
|
+
} from "./index-nvc0nsvg.js";
|
|
90
91
|
import"./index-bfwt3abw.js";
|
|
91
92
|
import"./index-p0arc26j.js";
|
|
92
93
|
import"./index-293f68mj.js";
|
|
@@ -172,6 +173,7 @@ export {
|
|
|
172
173
|
AutoReviewConfigSchema,
|
|
173
174
|
AuthorityConfigSchema,
|
|
174
175
|
ArchitecturalSupervisionConfigSchema,
|
|
176
|
+
ApplyPatchConfigSchema,
|
|
175
177
|
AgentThinkingConfigSchema,
|
|
176
178
|
AgentReasoningConfigSchema,
|
|
177
179
|
AgentOverrideConfigSchema,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm ci-monitor command.
|
|
3
|
+
*
|
|
4
|
+
* Triggers the architect to enter MODE: CI_MONITOR — drives an already
|
|
5
|
+
* human-reviewed, approved PR to green and merged. Accepts a PR reference in
|
|
6
|
+
* the same three formats as /swarm pr-review and /swarm pr-feedback (full
|
|
7
|
+
* URL, owner/repo#N, or a bare PR number resolved against the origin
|
|
8
|
+
* remote). No free-text instructions are accepted: this is a mechanical,
|
|
9
|
+
* deliberately-invoked closeout flow, not a review or feedback session, and
|
|
10
|
+
* it performs a merge — trailing tokens after the PR reference are rejected
|
|
11
|
+
* with an explicit error rather than silently forwarded into the MODE
|
|
12
|
+
* signal, closing off any accidental or injected free-text channel into a
|
|
13
|
+
* merge-capable mode.
|
|
14
|
+
*
|
|
15
|
+
* PR-reference parsing and sanitization are shared with /swarm pr-review and
|
|
16
|
+
* /swarm pr-feedback via ./pr-ref.ts.
|
|
17
|
+
*/
|
|
18
|
+
export declare function handleCiMonitorCommand(directory: string, args: string[]): string;
|
|
@@ -512,6 +512,14 @@ export declare const COMMAND_REGISTRY: {
|
|
|
512
512
|
readonly category: "agent";
|
|
513
513
|
readonly toolPolicy: "none";
|
|
514
514
|
};
|
|
515
|
+
readonly 'ci-monitor': {
|
|
516
|
+
readonly handler: (ctx: CommandContext) => CommandResult;
|
|
517
|
+
readonly description: "Drive an already-reviewed, approved PR to green and merged (monitor CI, fix, merge) [pr]";
|
|
518
|
+
readonly args: "<pr-url|owner/repo#N|N>";
|
|
519
|
+
readonly details: "Triggers MODE: CI_MONITOR — takes an already human-reviewed, approved PR, exhaustively researches every CI failure, fixes it end-to-end, iterates until all required checks are green (max 5 fix cycles), then merges via `gh pr merge` with no merge-strategy flag. Invoke only after human review is complete; the skill re-verifies reviewDecision: APPROVED and mergeable state before doing anything destructive. Distinct from /swarm pr-subscribe, which passively watches a PR without a merge terminal. Supports full GitHub URL, owner/repo#N shorthand, or bare PR number (resolved against origin).";
|
|
520
|
+
readonly category: "agent";
|
|
521
|
+
readonly toolPolicy: "none";
|
|
522
|
+
};
|
|
515
523
|
readonly 'pr subscribe': {
|
|
516
524
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
517
525
|
readonly description: "Subscribe the current session to PR state-change notifications";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare const _internals: {
|
|
|
18
18
|
};
|
|
19
19
|
export type { MigrationStatus, Phase, PhaseStatus, Plan, Task, TaskSize, TaskStatus, } from './plan-schema';
|
|
20
20
|
export { MigrationStatusSchema, PhaseSchema, PhaseStatusSchema, PlanSchema, TaskSchema, TaskSizeSchema, TaskStatusSchema, } from './plan-schema';
|
|
21
|
-
export type { AgentOverrideConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, MemoryConfig, ModelPricingConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, PricingConfig, RepoGraphConfig, SkillPropagationConfig, SwarmConfig, TurboConfig, WorktreeIsolationConfig, } from './schema';
|
|
22
|
-
export { AgentOverrideConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, MemoryConfigSchema, ModelPricingConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, PricingConfigSchema, RepoGraphConfigSchema, SkillPropagationConfigSchema, SwarmConfigSchema, TurboConfigSchema, WorktreeIsolationConfigSchema, } from './schema';
|
|
21
|
+
export type { AgentOverrideConfig, ApplyPatchConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, MemoryConfig, ModelPricingConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, PricingConfig, RepoGraphConfig, SkillPropagationConfig, SwarmConfig, TurboConfig, WorktreeIsolationConfig, } from './schema';
|
|
22
|
+
export { AgentOverrideConfigSchema, ApplyPatchConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, MemoryConfigSchema, ModelPricingConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, PricingConfigSchema, RepoGraphConfigSchema, SkillPropagationConfigSchema, SwarmConfigSchema, TurboConfigSchema, WorktreeIsolationConfigSchema, } from './schema';
|
|
23
23
|
export type { DeltaSpec, Obligation, SpecDelta, SpecRequirement, SpecScenario, SpecSection, SwarmSpec, } from './spec-schema';
|
|
24
24
|
export { DeltaSpecSchema, ObligationSchema, SpecDeltaSchema, SpecRequirementSchema, SpecScenarioSchema, SpecSectionSchema, SwarmSpecSchema, validateSpecContent, } from './spec-schema';
|
|
25
25
|
export { resolveWorktreeIsolationConfig } from './worktree-isolation-config';
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -548,6 +548,11 @@ export declare const CheckpointConfigSchema: z.ZodObject<{
|
|
|
548
548
|
allow_empty_commits: z.ZodDefault<z.ZodBoolean>;
|
|
549
549
|
}, z.core.$strict>;
|
|
550
550
|
export type CheckpointConfig = z.infer<typeof CheckpointConfigSchema>;
|
|
551
|
+
export declare const ApplyPatchConfigSchema: z.ZodObject<{
|
|
552
|
+
fuzzy_match: z.ZodDefault<z.ZodBoolean>;
|
|
553
|
+
fuzzy_match_context_aware: z.ZodDefault<z.ZodBoolean>;
|
|
554
|
+
}, z.core.$strict>;
|
|
555
|
+
export type ApplyPatchConfig = z.infer<typeof ApplyPatchConfigSchema>;
|
|
551
556
|
export declare const AutomationModeSchema: z.ZodEnum<{
|
|
552
557
|
auto: "auto";
|
|
553
558
|
manual: "manual";
|
|
@@ -1865,6 +1870,10 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
1865
1870
|
auto_checkpoint_threshold: z.ZodDefault<z.ZodNumber>;
|
|
1866
1871
|
allow_empty_commits: z.ZodDefault<z.ZodBoolean>;
|
|
1867
1872
|
}, z.core.$strict>>;
|
|
1873
|
+
apply_patch: z.ZodOptional<z.ZodObject<{
|
|
1874
|
+
fuzzy_match: z.ZodDefault<z.ZodBoolean>;
|
|
1875
|
+
fuzzy_match_context_aware: z.ZodDefault<z.ZodBoolean>;
|
|
1876
|
+
}, z.core.$strict>>;
|
|
1868
1877
|
automation: z.ZodOptional<z.ZodType<{
|
|
1869
1878
|
mode: "auto" | "manual" | "hybrid";
|
|
1870
1879
|
capabilities: {
|
|
@@ -82,10 +82,17 @@ export declare const OPENCODE_ONLY_ARCHITECT_MODE_SKILLS: Array<{
|
|
|
82
82
|
* byte-identity contract to additional runtime mirrors when present.
|
|
83
83
|
* - `divergent`: both must exist; content intentionally differs per runtime.
|
|
84
84
|
* - `opencode-only`: `.opencode` exists; no `.claude` mirror expected.
|
|
85
|
+
* - `adapter`: a non-architect-MODE skill whose `.opencode` copy is
|
|
86
|
+
* canonical and has no `.claude` copy at all, but does have one or more
|
|
87
|
+
* thin adapter shims (e.g. `.agents/skills/<slug>/`) that reference the
|
|
88
|
+
* canonical file by a fixed substring (`expectedCanonicalRef`). Mirrors
|
|
89
|
+
* the `ADAPTER_ARCHITECT_MODE_SKILLS` check, generalized to skills that
|
|
90
|
+
* are not architect MODE skills (so `identical`/`divergent`, which both
|
|
91
|
+
* require a `.claude` copy to exist, do not fit).
|
|
85
92
|
*/
|
|
86
93
|
export declare const ADDITIONAL_SKILL_MIRROR_CONTRACTS: Array<{
|
|
87
94
|
slug: string;
|
|
88
|
-
kind: 'identical' | 'divergent' | 'opencode-only';
|
|
95
|
+
kind: 'identical' | 'divergent' | 'opencode-only' | 'adapter';
|
|
89
96
|
canonical?: '.claude' | '.opencode';
|
|
90
97
|
extraIdenticalPaths?: string[];
|
|
91
98
|
/**
|
|
@@ -100,6 +107,8 @@ export declare const ADDITIONAL_SKILL_MIRROR_CONTRACTS: Array<{
|
|
|
100
107
|
* previously did existence-only checks with no content comparison.
|
|
101
108
|
*/
|
|
102
109
|
sharedSafetyHeadings?: string[];
|
|
110
|
+
adapterPaths?: string[];
|
|
111
|
+
expectedCanonicalRef?: string;
|
|
103
112
|
reason: string;
|
|
104
113
|
}>;
|
|
105
114
|
/**
|