opencode-swarm 7.114.8 → 7.114.9
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/{curator-qj970412.js → curator-5xt89z05.js} +1 -1
- package/dist/cli/{curator-llm-factory-ez48eq02.js → curator-llm-factory-pnhvf3s3.js} +1 -1
- package/dist/cli/{guardrail-explain-x2vaxp6s.js → guardrail-explain-7aztgtyh.js} +2 -2
- package/dist/cli/{hive-promoter-ysk5edzw.js → hive-promoter-q899q2m6.js} +1 -1
- package/dist/cli/{index-z718bgxe.js → index-54sevh81.js} +2 -2
- package/dist/cli/{index-ry8nwsq6.js → index-m9m7p49w.js} +1 -1
- package/dist/cli/{index-cs5765s2.js → index-typ408f4.js} +705 -648
- package/dist/cli/index.js +1 -1
- package/dist/commands/ci-monitor.d.ts +18 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/skill-mirrors.d.ts +10 -1
- package/dist/index.js +132 -111
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -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";
|
|
@@ -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
|
/**
|