opencode-swarm 7.126.1 → 7.126.2

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 (41) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +5 -2
  2. package/.opencode/skills/swarm-pr-review/SKILL.md +1 -1
  3. package/dist/cli/{config-doctor-23jxdqwv.js → config-doctor-mfx27331.js} +2 -2
  4. package/dist/cli/{curation-policy-0t6hny6g.js → curation-policy-n944aq62.js} +2 -2
  5. package/dist/cli/{curator-llm-factory-36psae60.js → curator-llm-factory-0rf29gfq.js} +12 -12
  6. package/dist/cli/{curator-g8rggzbk.js → curator-qfh9xty4.js} +12 -12
  7. package/dist/cli/{guardrail-explain-6ffgrjx9.js → guardrail-explain-jsrjqps1.js} +13 -13
  8. package/dist/cli/{guardrail-log-57sczn5h.js → guardrail-log-61gya05m.js} +3 -3
  9. package/dist/cli/{hive-promoter-c458rgp5.js → hive-promoter-ktt17fyf.js} +12 -12
  10. package/dist/cli/{index-w0yztxgq.js → index-3xd9a2g7.js} +1 -1
  11. package/dist/cli/{index-yf4kvhrn.js → index-5nq8dp63.js} +14 -14
  12. package/dist/cli/{index-k5xh81c9.js → index-7bxw3v5w.js} +3 -3
  13. package/dist/cli/{index-6j9p0c40.js → index-88dt7c9z.js} +2 -2
  14. package/dist/cli/{index-1p9z8cc4.js → index-bf76q8q7.js} +1 -1
  15. package/dist/cli/{index-vvwf9ark.js → index-c48dvb6j.js} +2 -2
  16. package/dist/cli/{index-y9t766sw.js → index-d88y17ht.js} +45 -42
  17. package/dist/cli/{index-nkhp7j16.js → index-f97dm6tz.js} +5 -5
  18. package/dist/cli/{index-abw10n3f.js → index-gf9cxvp0.js} +1 -1
  19. package/dist/cli/{index-kx3533dm.js → index-gwss5btk.js} +1 -1
  20. package/dist/cli/{index-echdpdhy.js → index-gxw20m1d.js} +1 -1
  21. package/dist/cli/{index-cnhp6c0k.js → index-nqp13m5a.js} +1 -1
  22. package/dist/cli/{index-nmyg9b7v.js → index-pb8ag9vg.js} +4 -4
  23. package/dist/cli/{index-3hkbegq2.js → index-pf3xae4s.js} +1 -1
  24. package/dist/cli/{index-c8sqc3nh.js → index-vcqwhe9d.js} +4 -0
  25. package/dist/cli/{index-x1w4cx3n.js → index-z8ftpav0.js} +2 -2
  26. package/dist/cli/index.js +12 -12
  27. package/dist/cli/{knowledge-escalator-kd80m9vp.js → knowledge-escalator-nna0zec3.js} +3 -3
  28. package/dist/cli/{knowledge-events-j7jfwm1d.js → knowledge-events-7k82xk36.js} +1 -1
  29. package/dist/cli/{knowledge-store-1d4byc7y.js → knowledge-store-efvtng9t.js} +1 -1
  30. package/dist/cli/{knowledge-validator-63mkgt9x.js → knowledge-validator-jh93eagj.js} +4 -4
  31. package/dist/cli/{scan-cursor-qzn5jmbe.js → scan-cursor-cydz8d9q.js} +2 -2
  32. package/dist/cli/{schema-2j92wnns.js → schema-fa033pqw.js} +1 -1
  33. package/dist/cli/{skill-generator-sv6zvdvz.js → skill-generator-8v463kj7.js} +5 -5
  34. package/dist/hooks/delegation-gate.d.ts +14 -2
  35. package/dist/hooks/pr-workflow-gate.d.ts +18 -0
  36. package/dist/index.js +41 -38
  37. package/dist/tools/index.d.ts +1 -0
  38. package/dist/tools/manifest.d.ts +1 -0
  39. package/dist/tools/prepare-pr-workflow-checkout.d.ts +25 -0
  40. package/dist/tools/tool-metadata.d.ts +4 -0
  41. package/package.json +1 -1
@@ -139,8 +139,11 @@ tree:
139
139
  supersedes your planned fixes, and prefer the parallel work if it's more
140
140
  comprehensive (more tests, better edge coverage, clearer error handling).
141
141
  Abort your rebase, take the remote state, then add minor improvements on top.
142
- - Verify the working tree is clean first (`git status --porcelain`). If uncommitted
143
- changes exist, stash them or abort to prevent data loss.
142
+ - Verify the working tree is clean first (`git status --porcelain`). If tracked
143
+ changes exist, call `prepare_pr_workflow_checkout` with every explicit dirty
144
+ tracked path. It creates an auditable, path-scoped stash and returns its
145
+ recovery command. Do not issue `git stash` through shell. The controller never
146
+ stashes untracked files; move or remove those manually, or abort the checkout.
144
147
  - **Check out the head branch locally.** Feedback verification reads the working-tree
145
148
  filesystem (`Read`/`Glob`/`Grep`), and fixes must land on the PR branch — without a
146
149
  checkout you would verify and patch the base branch's code instead. Record the
@@ -136,7 +136,7 @@ If scope cannot be determined, review the narrowest safe scope available and sta
136
136
 
137
137
  Before launching explorers (Phase 3), confirm the PR branch refs are available:
138
138
  - If `head_ref` is a remote branch that is not checked out locally, fetch it via `git fetch origin <head_ref>`
139
- - **Check out the head branch locally.** Explorer agents read files from the working tree, not from git history — passing the commit range in the delegation prompt is not sufficient because `Read` / `Glob` / `Grep` tools operate on the filesystem. Without a checkout, explorers silently read the base branch's version of changed files and produce invalid candidates. **Before checking out, verify the working tree is clean (`git status --porcelain`). If uncommitted changes exist, stash them or abort the checkout to prevent data loss.**
139
+ - **Check out the head branch locally.** Explorer agents read files from the working tree, not from git history — passing the commit range in the delegation prompt is not sufficient because `Read` / `Glob` / `Grep` tools operate on the filesystem. Without a checkout, explorers silently read the base branch's version of changed files and produce invalid candidates. **Before checking out, verify the working tree is clean (`git status --porcelain`). If tracked changes exist, call `prepare_pr_workflow_checkout` with every explicit dirty tracked path. It creates an auditable, path-scoped stash and returns its recovery command. Do not issue `git stash` through shell. The controller never stashes untracked files; move or remove those manually, or abort the checkout.**
140
140
  - Explicitly pass the verified merge-base range (`base_sha...pr_head_sha`) in every explorer delegation so explorers inspect exactly the controller-bound PR diff. Include `base_ref` only as the live ref used to recompute `base_sha`; do not substitute a two-dot branch-tip range.
141
141
 
142
142
  If refs cannot be fetched or checked out, state the limitation in the context pack.
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-w0yztxgq.js";
16
- import"./index-c8sqc3nh.js";
15
+ } from "./index-3xd9a2g7.js";
16
+ import"./index-vcqwhe9d.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-kx3533dm.js";
7
+ } from "./index-gwss5btk.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-cnhp6c0k.js";
9
+ import"./index-nqp13m5a.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-q27bajqb.js";
12
12
  import"./index-zgwm4ryv.js";
@@ -1,31 +1,31 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-y9t766sw.js";
5
- import"./index-echdpdhy.js";
6
- import"./index-w0yztxgq.js";
4
+ } from "./index-d88y17ht.js";
5
+ import"./index-gxw20m1d.js";
6
+ import"./index-3xd9a2g7.js";
7
7
  import"./index-kk1scggc.js";
8
8
  import"./index-4905hd2m.js";
9
9
  import"./index-134d35c1.js";
10
10
  import"./index-6n2jpz7x.js";
11
- import"./index-k5xh81c9.js";
12
- import"./index-nkhp7j16.js";
13
- import"./index-3hkbegq2.js";
11
+ import"./index-7bxw3v5w.js";
12
+ import"./index-f97dm6tz.js";
13
+ import"./index-pf3xae4s.js";
14
14
  import"./index-vxv732ex.js";
15
15
  import"./index-c8s9a3zh.js";
16
16
  import"./index-9ss2m4rs.js";
17
17
  import"./index-23zsx7dm.js";
18
- import"./index-6j9p0c40.js";
19
- import"./index-kx3533dm.js";
18
+ import"./index-88dt7c9z.js";
19
+ import"./index-gwss5btk.js";
20
20
  import"./index-rtry5xyf.js";
21
- import"./index-nmyg9b7v.js";
22
- import"./index-cnhp6c0k.js";
21
+ import"./index-pb8ag9vg.js";
22
+ import"./index-nqp13m5a.js";
23
23
  import"./index-ae75rja9.js";
24
24
  import"./index-q27bajqb.js";
25
- import"./index-abw10n3f.js";
25
+ import"./index-gf9cxvp0.js";
26
26
  import"./index-k5jrywpr.js";
27
27
  import"./index-n832052r.js";
28
- import"./index-c8sqc3nh.js";
28
+ import"./index-vcqwhe9d.js";
29
29
  import"./index-bk5tah7q.js";
30
30
  import"./index-8fwhhayc.js";
31
31
  import"./index-q1exe2b3.js";
@@ -14,31 +14,31 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-y9t766sw.js";
18
- import"./index-echdpdhy.js";
19
- import"./index-w0yztxgq.js";
17
+ } from "./index-d88y17ht.js";
18
+ import"./index-gxw20m1d.js";
19
+ import"./index-3xd9a2g7.js";
20
20
  import"./index-kk1scggc.js";
21
21
  import"./index-4905hd2m.js";
22
22
  import"./index-134d35c1.js";
23
23
  import"./index-6n2jpz7x.js";
24
- import"./index-k5xh81c9.js";
25
- import"./index-nkhp7j16.js";
26
- import"./index-3hkbegq2.js";
24
+ import"./index-7bxw3v5w.js";
25
+ import"./index-f97dm6tz.js";
26
+ import"./index-pf3xae4s.js";
27
27
  import"./index-vxv732ex.js";
28
28
  import"./index-c8s9a3zh.js";
29
29
  import"./index-9ss2m4rs.js";
30
30
  import"./index-23zsx7dm.js";
31
- import"./index-6j9p0c40.js";
32
- import"./index-kx3533dm.js";
31
+ import"./index-88dt7c9z.js";
32
+ import"./index-gwss5btk.js";
33
33
  import"./index-rtry5xyf.js";
34
- import"./index-nmyg9b7v.js";
35
- import"./index-cnhp6c0k.js";
34
+ import"./index-pb8ag9vg.js";
35
+ import"./index-nqp13m5a.js";
36
36
  import"./index-ae75rja9.js";
37
37
  import"./index-q27bajqb.js";
38
- import"./index-abw10n3f.js";
38
+ import"./index-gf9cxvp0.js";
39
39
  import"./index-k5jrywpr.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-c8sqc3nh.js";
41
+ import"./index-vcqwhe9d.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -1,32 +1,32 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-x1w4cx3n.js";
5
- import"./index-y9t766sw.js";
6
- import"./index-echdpdhy.js";
7
- import"./index-w0yztxgq.js";
4
+ } from "./index-z8ftpav0.js";
5
+ import"./index-d88y17ht.js";
6
+ import"./index-gxw20m1d.js";
7
+ import"./index-3xd9a2g7.js";
8
8
  import"./index-kk1scggc.js";
9
9
  import"./index-4905hd2m.js";
10
10
  import"./index-134d35c1.js";
11
11
  import"./index-6n2jpz7x.js";
12
- import"./index-k5xh81c9.js";
13
- import"./index-nkhp7j16.js";
14
- import"./index-3hkbegq2.js";
12
+ import"./index-7bxw3v5w.js";
13
+ import"./index-f97dm6tz.js";
14
+ import"./index-pf3xae4s.js";
15
15
  import"./index-vxv732ex.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-9ss2m4rs.js";
18
18
  import"./index-23zsx7dm.js";
19
- import"./index-6j9p0c40.js";
20
- import"./index-kx3533dm.js";
19
+ import"./index-88dt7c9z.js";
20
+ import"./index-gwss5btk.js";
21
21
  import"./index-rtry5xyf.js";
22
- import"./index-nmyg9b7v.js";
23
- import"./index-cnhp6c0k.js";
22
+ import"./index-pb8ag9vg.js";
23
+ import"./index-nqp13m5a.js";
24
24
  import"./index-ae75rja9.js";
25
25
  import"./index-q27bajqb.js";
26
- import"./index-abw10n3f.js";
26
+ import"./index-gf9cxvp0.js";
27
27
  import"./index-k5jrywpr.js";
28
28
  import"./index-n832052r.js";
29
- import"./index-c8sqc3nh.js";
29
+ import"./index-vcqwhe9d.js";
30
30
  import"./index-bk5tah7q.js";
31
31
  import"./index-8fwhhayc.js";
32
32
  import"./index-q1exe2b3.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-1p9z8cc4.js";
5
- import"./index-echdpdhy.js";
6
- import"./index-c8sqc3nh.js";
4
+ } from "./index-bf76q8q7.js";
5
+ import"./index-gxw20m1d.js";
6
+ import"./index-vcqwhe9d.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-z6xqpmqg.js";
9
9
  import"./index-zjygnfay.js";
@@ -7,33 +7,33 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-y9t766sw.js";
11
- import"./index-echdpdhy.js";
12
- import"./index-w0yztxgq.js";
10
+ } from "./index-d88y17ht.js";
11
+ import"./index-gxw20m1d.js";
12
+ import"./index-3xd9a2g7.js";
13
13
  import"./index-kk1scggc.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
16
  import"./index-6n2jpz7x.js";
17
- import"./index-k5xh81c9.js";
18
- import"./index-nkhp7j16.js";
19
- import"./index-3hkbegq2.js";
17
+ import"./index-7bxw3v5w.js";
18
+ import"./index-f97dm6tz.js";
19
+ import"./index-pf3xae4s.js";
20
20
  import"./index-vxv732ex.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
23
  import"./index-23zsx7dm.js";
24
- import"./index-6j9p0c40.js";
25
- import"./index-kx3533dm.js";
24
+ import"./index-88dt7c9z.js";
25
+ import"./index-gwss5btk.js";
26
26
  import"./index-rtry5xyf.js";
27
27
  import {
28
28
  resolveHiveKnowledgePath
29
- } from "./index-nmyg9b7v.js";
30
- import"./index-cnhp6c0k.js";
29
+ } from "./index-pb8ag9vg.js";
30
+ import"./index-nqp13m5a.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-q27bajqb.js";
33
- import"./index-abw10n3f.js";
33
+ import"./index-gf9cxvp0.js";
34
34
  import"./index-k5jrywpr.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-c8sqc3nh.js";
36
+ import"./index-vcqwhe9d.js";
37
37
  import"./index-bk5tah7q.js";
38
38
  import"./index-8fwhhayc.js";
39
39
  import"./index-q1exe2b3.js";
@@ -8,7 +8,7 @@ import {
8
8
  init_constants,
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-c8sqc3nh.js";
11
+ } from "./index-vcqwhe9d.js";
12
12
  import {
13
13
  log
14
14
  } from "./index-zgwm4ryv.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-x1w4cx3n.js";
4
+ } from "./index-z8ftpav0.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-1p9z8cc4.js";
7
+ } from "./index-bf76q8q7.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -83,28 +83,28 @@ import {
83
83
  handleWriteRetroCommand,
84
84
  normalizeSwarmCommandInput,
85
85
  resolveCommand
86
- } from "./index-y9t766sw.js";
87
- import"./index-echdpdhy.js";
88
- import"./index-w0yztxgq.js";
86
+ } from "./index-d88y17ht.js";
87
+ import"./index-gxw20m1d.js";
88
+ import"./index-3xd9a2g7.js";
89
89
  import"./index-kk1scggc.js";
90
90
  import"./index-4905hd2m.js";
91
91
  import"./index-134d35c1.js";
92
92
  import"./index-6n2jpz7x.js";
93
- import"./index-k5xh81c9.js";
94
- import"./index-nkhp7j16.js";
95
- import"./index-3hkbegq2.js";
93
+ import"./index-7bxw3v5w.js";
94
+ import"./index-f97dm6tz.js";
95
+ import"./index-pf3xae4s.js";
96
96
  import"./index-vxv732ex.js";
97
97
  import"./index-c8s9a3zh.js";
98
98
  import"./index-9ss2m4rs.js";
99
99
  import"./index-23zsx7dm.js";
100
- import"./index-6j9p0c40.js";
101
- import"./index-kx3533dm.js";
100
+ import"./index-88dt7c9z.js";
101
+ import"./index-gwss5btk.js";
102
102
  import"./index-rtry5xyf.js";
103
- import"./index-nmyg9b7v.js";
104
- import"./index-cnhp6c0k.js";
103
+ import"./index-pb8ag9vg.js";
104
+ import"./index-nqp13m5a.js";
105
105
  import"./index-ae75rja9.js";
106
106
  import"./index-q27bajqb.js";
107
- import"./index-abw10n3f.js";
107
+ import"./index-gf9cxvp0.js";
108
108
  import"./index-k5jrywpr.js";
109
109
  import"./index-n832052r.js";
110
110
  import {
@@ -113,7 +113,7 @@ import {
113
113
  init_constants,
114
114
  init_schema,
115
115
  stripKnownSwarmPrefix
116
- } from "./index-c8sqc3nh.js";
116
+ } from "./index-vcqwhe9d.js";
117
117
  import"./index-bk5tah7q.js";
118
118
  import"./index-8fwhhayc.js";
119
119
  import"./index-q1exe2b3.js";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-6j9p0c40.js";
5
+ } from "./index-88dt7c9z.js";
6
6
  import {
7
7
  computeOutcomeSignal,
8
8
  readKnowledge,
9
9
  resolveHiveKnowledgePath,
10
10
  resolveSwarmKnowledgePath,
11
11
  transactKnowledge
12
- } from "./index-nmyg9b7v.js";
12
+ } from "./index-pb8ag9vg.js";
13
13
  import {
14
14
  effectiveRetrievalOutcomes,
15
15
  readKnowledgeCounterRollups
16
- } from "./index-cnhp6c0k.js";
16
+ } from "./index-nqp13m5a.js";
17
17
  import {
18
18
  init_knowledge_types,
19
19
  isActiveStatus
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-kx3533dm.js";
4
+ } from "./index-gwss5btk.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-nmyg9b7v.js";
12
+ } from "./index-pb8ag9vg.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-q27bajqb.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-echdpdhy.js";
5
+ } from "./index-gxw20m1d.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -6,7 +6,7 @@ import {
6
6
  loadPluginConfigWithMeta,
7
7
  loadPluginConfigWithMetaAsync,
8
8
  resolveWorktreeIsolationConfig
9
- } from "./index-abw10n3f.js";
9
+ } from "./index-gf9cxvp0.js";
10
10
  import {
11
11
  ApprovalEvidenceSchema,
12
12
  BaseEvidenceSchema,
@@ -58,7 +58,7 @@ import {
58
58
  WorktreeIsolationConfigSchema,
59
59
  isQAAgent,
60
60
  isSubagent
61
- } from "./index-c8sqc3nh.js";
61
+ } from "./index-vcqwhe9d.js";
62
62
  import"./index-bk5tah7q.js";
63
63
  import {
64
64
  MigrationStatusSchema,