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/dist/cli/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-cs5765s2.js";
10
+ } from "./index-typ408f4.js";
11
11
  import"./index-yfedche9.js";
12
12
  import"./index-c8s9a3zh.js";
13
13
  import"./index-9bsmzfk3.js";
@@ -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
  /**