opencode-swarm 7.111.0 → 7.112.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.
Files changed (68) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +24 -0
  2. package/dist/background/pr-event-subscribers.d.ts +28 -0
  3. package/dist/background/pr-monitor-worker.d.ts +8 -1
  4. package/dist/background/pr-subscriptions.d.ts +6 -0
  5. package/dist/cli/{config-doctor-q5e9yzn6.js → config-doctor-mmw4c50z.js} +2 -2
  6. package/dist/cli/{core-9a7nn51x.js → core-f4cbabe7.js} +2 -2
  7. package/dist/cli/{curator-drift-169wgaxn.js → curator-drift-jvs1v6em.js} +2 -2
  8. package/dist/cli/curator-llm-factory-vxa4pz48.js +40 -0
  9. package/dist/cli/{curator-2hm297yd.js → curator-ztdgdpb6.js} +19 -19
  10. package/dist/cli/{dispatch-zr1xja4t.js → dispatch-wst7bypk.js} +2 -2
  11. package/dist/cli/{evidence-summary-service-8tasw2tt.js → evidence-summary-service-j6fnsfeq.js} +5 -5
  12. package/dist/cli/{gate-evidence-v6ds8rcp.js → gate-evidence-mk0ss1re.js} +3 -3
  13. package/dist/cli/guardrail-explain-gv1ht6b0.js +41 -0
  14. package/dist/cli/{guardrail-log-973nan7m.js → guardrail-log-xjgr00eq.js} +4 -4
  15. package/dist/cli/{hive-promoter-0f8xh2rn.js → hive-promoter-wdextf8h.js} +19 -19
  16. package/dist/cli/{index-1cn967sa.js → index-0dab9w37.js} +1 -1
  17. package/dist/cli/{index-r3j3458j.js → index-1rga1vvb.js} +1 -1
  18. package/dist/cli/{index-7xfh4k71.js → index-20hyxe3z.js} +403 -291
  19. package/dist/cli/{index-c483hnn4.js → index-30ejh1tx.js} +3 -3
  20. package/dist/cli/{index-v8pk35h7.js → index-32bx4kch.js} +70 -5
  21. package/dist/cli/{index-cmjq1kg7.js → index-82v0d72f.js} +3 -3
  22. package/dist/cli/{index-yw8qpf51.js → index-9fxs0rm1.js} +1 -1
  23. package/dist/cli/{index-9ptp9kky.js → index-azf2bmr5.js} +2 -2
  24. package/dist/cli/{index-0g5xsrp4.js → index-cq2hgvd2.js} +13 -5
  25. package/dist/cli/{index-j2v3w1ds.js → index-d0w40jm3.js} +4 -4
  26. package/dist/cli/{index-40h0yp9e.js → index-db1fh1fv.js} +1 -1
  27. package/dist/cli/{index-dnbca696.js → index-fhmw7evd.js} +2 -2
  28. package/dist/cli/{index-vzzt3ygr.js → index-g55nzpwn.js} +1 -1
  29. package/dist/cli/{index-yhmt3dw3.js → index-hpp2r0sd.js} +3 -3
  30. package/dist/cli/{index-kf2h31c7.js → index-hy5r0mgf.js} +21 -21
  31. package/dist/cli/{index-53z1afgh.js → index-npxmfj48.js} +1 -1
  32. package/dist/cli/{index-6jng9c8t.js → index-pm992z24.js} +1 -1
  33. package/dist/cli/{index-85bacexr.js → index-q1jaeynn.js} +4 -1
  34. package/dist/cli/{index-mvg66d9n.js → index-t6wfwdm1.js} +3 -3
  35. package/dist/cli/{index-5rfxzgmt.js → index-w84stmkx.js} +1 -1
  36. package/dist/cli/{index-xddysq89.js → index-xehrmy76.js} +1 -1
  37. package/dist/cli/index.js +19 -19
  38. package/dist/cli/{knowledge-escalator-0dkkenp2.js → knowledge-escalator-4gbz527n.js} +6 -6
  39. package/dist/cli/{knowledge-events-bckbj6ah.js → knowledge-events-b6x28fgc.js} +4 -4
  40. package/dist/cli/{knowledge-store-dvjbdn00.js → knowledge-store-h3cjx4dg.js} +9 -5
  41. package/dist/cli/{knowledge-validator-bqr936sg.js → knowledge-validator-q6jw2p0t.js} +5 -5
  42. package/dist/cli/{pending-delegations-yyz3fcfn.js → pending-delegations-gc3a2hfx.js} +2 -2
  43. package/dist/cli/{pr-subscriptions-vv8byxe6.js → pr-subscriptions-p8g2rzxd.js} +3 -3
  44. package/dist/cli/{schema-s48je8zt.js → schema-2p15yrvn.js} +1 -1
  45. package/dist/cli/{scope-persistence-tgp00wtd.js → scope-persistence-5ccgtebg.js} +2 -2
  46. package/dist/cli/{skill-generator-5rsjmmfq.js → skill-generator-fe6q8xgm.js} +7 -7
  47. package/dist/commands/ci-simulate.d.ts +36 -12
  48. package/dist/commands/pr-monitor-status.d.ts +8 -0
  49. package/dist/config/bundled-skills.d.ts +1 -1
  50. package/dist/config/schema.d.ts +5 -0
  51. package/dist/full-auto/oversight.d.ts +4 -1
  52. package/dist/full-auto/state.d.ts +12 -0
  53. package/dist/git/pr.d.ts +23 -0
  54. package/dist/hooks/delegation-gate/worktree-isolation.d.ts +110 -0
  55. package/dist/hooks/delegation-gate.d.ts +17 -2
  56. package/dist/hooks/full-auto-intercept.d.ts +1 -1
  57. package/dist/hooks/knowledge-events.d.ts +21 -1
  58. package/dist/hooks/knowledge-injector.d.ts +4 -0
  59. package/dist/hooks/knowledge-reader.d.ts +16 -0
  60. package/dist/hooks/knowledge-store.d.ts +23 -0
  61. package/dist/index.js +217 -192
  62. package/dist/tools/placeholder-scan.d.ts +14 -1
  63. package/dist/utils/bun-compat.d.ts +6 -0
  64. package/dist/worktree/merge.d.ts +12 -0
  65. package/package.json +7 -5
  66. package/dist/cli/curator-llm-factory-19s0r5v6.js +0 -40
  67. package/dist/cli/guardrail-explain-8w9rkdjx.js +0 -41
  68. /package/dist/cli/{index-7xgqky26.js → index-h91bv3hy.js} +0 -0
@@ -4,7 +4,20 @@ export interface PlaceholderScanInput {
4
4
  changed_files: string[];
5
5
  allow_globs?: string[];
6
6
  deny_patterns?: string[];
7
- added_lines?: Record<string, number[]>;
7
+ /**
8
+ * When provided, the scanner filters findings to only report patterns
9
+ * on lines that were added in this PR. The direct API accepts Sets and the
10
+ * JSON tool boundary accepts arrays, which are normalized before scanning.
11
+ * Lines not in the set are treated as pre-existing and silently ignored.
12
+ */
13
+ added_lines?: Record<string, Set<number> | number[]>;
14
+ /**
15
+ * Values that suppress findings when found as substrings in the excerpt.
16
+ * Unlike FILE_ALLOWLIST (which skips entire files), this filters individual
17
+ * findings by matching against the excerpt text.
18
+ */
19
+ sentinel_allowlist?: string[];
20
+ /** @deprecated Use sentinel_allowlist. Kept for existing callers. */
8
21
  allow_sentinels?: string[];
9
22
  }
10
23
  export interface PlaceholderFinding {
@@ -50,6 +50,12 @@ export declare function bunFile(filePath: string): BunCompatFile;
50
50
  * semantics every existing call site already expects via Bun.write.
51
51
  */
52
52
  export declare function bunWrite(filePath: string, data: string | Uint8Array | ArrayBuffer | ArrayBufferView): Promise<number>;
53
+ /**
54
+ * Cross-runtime sleep. Uses `Bun.sleep` when available (Bun), falls back to
55
+ * a `setTimeout`-based Promise on Node. This is the only correct way to
56
+ * introduce delays in plugin code that must run under both runtimes.
57
+ */
58
+ export declare function sleep(ms: number): Promise<void>;
53
59
  /**
54
60
  * Stable 32-bit hash. Bun's `Bun.hash` uses xxHash64 by default; on Node we
55
61
  * fall back to a 32-bit djb2 hash — identical hashes are NOT guaranteed
@@ -29,6 +29,8 @@ export declare const _internals: {
29
29
  cleanupOrphanedBranches: typeof cleanupOrphanedBranches;
30
30
  /** Test seam for startupOrphanRecovery — allows tests to intercept the recovery call. */
31
31
  startupOrphanRecovery: typeof startupOrphanRecovery;
32
+ /** FR-001b: exposes extractSessionId for lane ownership validation. */
33
+ extractSessionId: typeof extractSessionId;
32
34
  };
33
35
  export interface MergeSuccess {
34
36
  merged: true;
@@ -162,6 +164,15 @@ export declare function handleMergeConflict(primaryDir: string, _branchName: str
162
164
  * @returns Discriminated union: success, partial, or failure.
163
165
  */
164
166
  export declare function attemptMergeBackFromDirty(worktreePath: string, branchName: string, primaryDir: string, strategy: MergeStrategy): Promise<DirtyMergeSuccess | DirtyMergePartial | DirtyMergeFailure>;
167
+ /**
168
+ * Extracts the session ID from a swarm-lane branch name.
169
+ *
170
+ * Branch format: `swarm-lane/<sessionId>/<laneId>` or
171
+ * `swarm/lane/<sessionId>/<laneId>`.
172
+ * Returns the sessionId (second segment), or `null` if the name does not
173
+ * match the expected pattern.
174
+ */
175
+ declare function extractSessionId(branchName: string): string | null;
165
176
  /**
166
177
  * Cleans up orphaned swarm-lane branches that do not belong to any active session.
167
178
  *
@@ -186,3 +197,4 @@ export declare function cleanupOrphanedBranches(directory: string, activeSession
186
197
  * @returns Result indicating whether pruning happened, orphaned branches, and warnings.
187
198
  */
188
199
  export declare function startupOrphanRecovery(directory: string, activeSessionIds?: string[]): Promise<StartupRecoveryResult>;
200
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.111.0",
3
+ "version": "7.112.1",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -69,11 +69,13 @@
69
69
  ".opencode/skills/running-tests",
70
70
  ".opencode/skills/engineering-conventions",
71
71
  ".opencode/skills/commit-pr",
72
- ".opencode/skills/worktree-retry-cleanup",
73
- ".opencode/skills/skill-edit-validation",
74
- ".opencode/skills/merge-queue-readiness",
75
- ".opencode/skills/gate-attribution",
76
72
  ".opencode/skills/ci-failure-batching",
73
+ ".opencode/skills/gate-attribution",
74
+ ".opencode/skills/merge-queue-readiness",
75
+ ".opencode/skills/skill-edit-validation",
76
+ ".opencode/skills/swarm",
77
+ ".opencode/skills/swarm-ci-monitor",
78
+ ".opencode/skills/worktree-retry-cleanup",
77
79
  "tests/fixtures/memory-recall",
78
80
  "README.md",
79
81
  "LICENSE"
@@ -1,40 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-7xfh4k71.js";
5
- import"./index-53z1afgh.js";
6
- import"./index-c8s9a3zh.js";
7
- import"./index-xddysq89.js";
8
- import"./index-0g5xsrp4.js";
9
- import"./index-j2v3w1ds.js";
10
- import"./index-scww5b77.js";
11
- import"./index-yw8qpf51.js";
12
- import"./index-85bacexr.js";
13
- import"./index-cmjq1kg7.js";
14
- import"./index-c483hnn4.js";
15
- import"./index-mvg66d9n.js";
16
- import"./index-yhmt3dw3.js";
17
- import"./index-v8pk35h7.js";
18
- import"./index-bfwt3abw.js";
19
- import"./index-40h0yp9e.js";
20
- import"./index-jt58s751.js";
21
- import"./index-wvrj16f0.js";
22
- import"./index-q1exe2b3.js";
23
- import"./index-vzzt3ygr.js";
24
- import"./index-dnbca696.js";
25
- import"./index-r3j3458j.js";
26
- import"./index-jtqkh8jf.js";
27
- import"./index-5e4e2hvv.js";
28
- import"./index-p0arc26j.js";
29
- import"./index-zgwm4ryv.js";
30
- import"./index-6jng9c8t.js";
31
- import"./index-1cn967sa.js";
32
- import"./index-293f68mj.js";
33
- import"./index-5mkc2f9z.js";
34
- import"./index-vn263hqt.js";
35
- import"./index-vvk2g744.js";
36
- import"./index-7xgqky26.js";
37
- import"./index-a76rekgs.js";
38
- export {
39
- createCuratorLLMDelegate
40
- };
@@ -1,41 +0,0 @@
1
- // @bun
2
- import {
3
- handleGuardrailExplain
4
- } from "./index-9ptp9kky.js";
5
- import"./index-7xfh4k71.js";
6
- import"./index-53z1afgh.js";
7
- import"./index-c8s9a3zh.js";
8
- import"./index-xddysq89.js";
9
- import"./index-0g5xsrp4.js";
10
- import"./index-j2v3w1ds.js";
11
- import"./index-scww5b77.js";
12
- import"./index-yw8qpf51.js";
13
- import"./index-85bacexr.js";
14
- import"./index-cmjq1kg7.js";
15
- import"./index-c483hnn4.js";
16
- import"./index-mvg66d9n.js";
17
- import"./index-yhmt3dw3.js";
18
- import"./index-v8pk35h7.js";
19
- import"./index-bfwt3abw.js";
20
- import"./index-40h0yp9e.js";
21
- import"./index-jt58s751.js";
22
- import"./index-wvrj16f0.js";
23
- import"./index-q1exe2b3.js";
24
- import"./index-vzzt3ygr.js";
25
- import"./index-dnbca696.js";
26
- import"./index-r3j3458j.js";
27
- import"./index-jtqkh8jf.js";
28
- import"./index-5e4e2hvv.js";
29
- import"./index-p0arc26j.js";
30
- import"./index-zgwm4ryv.js";
31
- import"./index-6jng9c8t.js";
32
- import"./index-1cn967sa.js";
33
- import"./index-293f68mj.js";
34
- import"./index-5mkc2f9z.js";
35
- import"./index-vn263hqt.js";
36
- import"./index-vvk2g744.js";
37
- import"./index-7xgqky26.js";
38
- import"./index-a76rekgs.js";
39
- export {
40
- handleGuardrailExplain
41
- };