opencode-swarm 7.138.2 → 7.138.3

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 (36) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +5 -1
  2. package/dist/background/pr-review-trigger-contract.d.ts +38 -1
  3. package/dist/cli/{config-doctor-hzb0bck9.js → config-doctor-2mwgdbsn.js} +2 -2
  4. package/dist/cli/{curation-policy-aj37yvz8.js → curation-policy-5dqexw5j.js} +2 -2
  5. package/dist/cli/{curator-jt6dza8y.js → curator-jjtp9hn2.js} +12 -12
  6. package/dist/cli/{curator-llm-factory-m9f4h8t4.js → curator-llm-factory-wkjme59b.js} +12 -12
  7. package/dist/cli/{guardrail-explain-rks41rpx.js → guardrail-explain-xppwfnxr.js} +13 -13
  8. package/dist/cli/{guardrail-log-h39jxftx.js → guardrail-log-swet7rch.js} +3 -3
  9. package/dist/cli/{hive-promoter-34y2x4vt.js → hive-promoter-xvq8jzbs.js} +12 -12
  10. package/dist/cli/{index-49ygvqvm.js → index-1djv5684.js} +4 -4
  11. package/dist/cli/{index-8emf08eb.js → index-1v89yst3.js} +2 -2
  12. package/dist/cli/{index-qt3jjjw9.js → index-31vfewmn.js} +1 -1
  13. package/dist/cli/{index-r9pn41rj.js → index-93ky909v.js} +1 -1
  14. package/dist/cli/{index-89dwrz8n.js → index-99af5gvd.js} +50 -36
  15. package/dist/cli/{index-exq36v6w.js → index-ab57h0yq.js} +1 -1
  16. package/dist/cli/{index-xm07cqy2.js → index-adde7nm2.js} +5 -5
  17. package/dist/cli/{index-da98750t.js → index-btx8j39p.js} +1 -1
  18. package/dist/cli/{index-gpxg7wx8.js → index-gda7cwqz.js} +2 -2
  19. package/dist/cli/{index-qg5smxv9.js → index-jhb8kjc5.js} +3 -3
  20. package/dist/cli/{index-bakfqtye.js → index-js7th5my.js} +1 -1
  21. package/dist/cli/{index-yxswbd1t.js → index-rjratees.js} +1 -1
  22. package/dist/cli/{index-d01d4102.js → index-tc61fybd.js} +2 -2
  23. package/dist/cli/{index-ze4we97d.js → index-wqg74mwj.js} +1 -1
  24. package/dist/cli/{index-s7ac0xrf.js → index-xgmx9had.js} +14 -14
  25. package/dist/cli/{index-k6cq9wwh.js → index-y6dvs5tt.js} +1 -1
  26. package/dist/cli/index.js +12 -12
  27. package/dist/cli/{knowledge-escalator-qmpfh5yz.js → knowledge-escalator-7n384ys1.js} +3 -3
  28. package/dist/cli/{knowledge-events-7neg8x0p.js → knowledge-events-yaj0yjd6.js} +1 -1
  29. package/dist/cli/{knowledge-store-a6d4625r.js → knowledge-store-d99k0z2d.js} +1 -1
  30. package/dist/cli/{knowledge-validator-q1qrdyvx.js → knowledge-validator-e5fqy9h4.js} +4 -4
  31. package/dist/cli/{scan-cursor-3tqshkb2.js → scan-cursor-9y9msabt.js} +2 -2
  32. package/dist/cli/{schema-mtyaeh18.js → schema-xg5f11md.js} +1 -1
  33. package/dist/cli/{skill-generator-t3m5qajm.js → skill-generator-arvwfdfh.js} +5 -5
  34. package/dist/index.js +5 -5
  35. package/dist/tools/write-pr-review-trigger-eval.d.ts +2 -2
  36. package/package.json +1 -1
@@ -1057,7 +1057,11 @@ the complete ledger with `write_pr_review_trigger_eval`; its rows use the stable
1057
1057
  trigger IDs below. Every `MATCHED` row includes its returned `source_batch_id`
1058
1058
  and `source_lane_id`; every `NOT_TRIGGERED` row must omit both fields. Missing,
1059
1059
  extra, duplicate, malformed, or incorrectly provenanced rows make persistence
1060
- fail and Phase 4 BLOCKED. The tool atomically writes
1060
+ fail and Phase 4 BLOCKED. Evidence is frozen by the first micro dispatch and is
1061
+ authoritative thereafter. The final writer may omit its duplicate `evidence`
1062
+ fields; if it includes reworded evidence, the writer ignores that copy and
1063
+ persists the frozen values. It still requires the exact frozen classifications,
1064
+ plus provenance for every `MATCHED` row. The tool atomically writes
1061
1065
  `.swarm/pr-review/<run_id>/trigger-eval.json`, separate from `findings.jsonl`;
1062
1066
  pass the exact reviewed merge-base as `base_sha`, the exact live base branch
1063
1067
  tip/ref used to compute it as `base_ref`, and the same `pr_head_sha` to the
@@ -125,8 +125,44 @@ export declare const PrReviewPersistedInputRowSchema: z.ZodDiscriminatedUnion<[z
125
125
  result: z.ZodLiteral<"NOT_TRIGGERED">;
126
126
  evidence: z.ZodString;
127
127
  }, z.core.$strict>], "result">;
128
+ export declare const PrReviewWriterInputRowSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ trigger_id: z.ZodEnum<{
130
+ "auth-identity-secrets": "auth-identity-secrets";
131
+ "untrusted-input-boundaries": "untrusted-input-boundaries";
132
+ "subprocess-platform": "subprocess-platform";
133
+ "concurrency-state": "concurrency-state";
134
+ "dependencies-build-release": "dependencies-build-release";
135
+ "api-schema-migrations": "api-schema-migrations";
136
+ "test-infrastructure": "test-infrastructure";
137
+ "ui-accessibility-i18n": "ui-accessibility-i18n";
138
+ "privacy-observability": "privacy-observability";
139
+ "generated-provenance": "generated-provenance";
140
+ "unclassified-risk": "unclassified-risk";
141
+ }>;
142
+ result: z.ZodLiteral<"MATCHED">;
143
+ evidence: z.ZodOptional<z.ZodString>;
144
+ source_batch_id: z.ZodString;
145
+ source_lane_id: z.ZodString;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ trigger_id: z.ZodEnum<{
148
+ "auth-identity-secrets": "auth-identity-secrets";
149
+ "untrusted-input-boundaries": "untrusted-input-boundaries";
150
+ "subprocess-platform": "subprocess-platform";
151
+ "concurrency-state": "concurrency-state";
152
+ "dependencies-build-release": "dependencies-build-release";
153
+ "api-schema-migrations": "api-schema-migrations";
154
+ "test-infrastructure": "test-infrastructure";
155
+ "ui-accessibility-i18n": "ui-accessibility-i18n";
156
+ "privacy-observability": "privacy-observability";
157
+ "generated-provenance": "generated-provenance";
158
+ "unclassified-risk": "unclassified-risk";
159
+ }>;
160
+ result: z.ZodLiteral<"NOT_TRIGGERED">;
161
+ evidence: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strict>], "result">;
128
163
  export type PrReviewInlineTriggerRow = z.infer<typeof PrReviewInlineTriggerRowSchema>;
129
164
  export type PrReviewPersistedInputRow = z.infer<typeof PrReviewPersistedInputRowSchema>;
165
+ export type PrReviewWriterInputRow = z.infer<typeof PrReviewWriterInputRowSchema>;
130
166
  interface ValidatedTriggerLedger<TRow> {
131
167
  rows: TRow[];
132
168
  matchedIds: PrReviewTriggerId[];
@@ -134,6 +170,7 @@ interface ValidatedTriggerLedger<TRow> {
134
170
  }
135
171
  export declare function validatePrReviewInlineTriggerLedger(input: unknown): ValidatedTriggerLedger<PrReviewInlineTriggerRow>;
136
172
  export declare function validatePrReviewPersistedInputLedger(input: unknown): ValidatedTriggerLedger<PrReviewPersistedInputRow>;
173
+ export declare function validatePrReviewWriterInputLedger(input: unknown): ValidatedTriggerLedger<PrReviewWriterInputRow>;
137
174
  export interface BuildPrReviewTriggerReceiptV2Args {
138
175
  run_id: string;
139
176
  pr_head_sha: string;
@@ -184,7 +221,7 @@ export interface ParsedPrReviewTriggerReceipt {
184
221
  }>[];
185
222
  }
186
223
  /**
187
- * Bind every micro dispatch and the final receipt to one semantic ledger.
224
+ * Bind every micro dispatch to one semantic ledger at bind time.
188
225
  * Callers pass rows after exact-set validation; the tuple representation makes
189
226
  * the identity stable and independent of post-dispatch provenance fields.
190
227
  */
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-da98750t.js";
16
- import"./index-exq36v6w.js";
15
+ } from "./index-btx8j39p.js";
16
+ import"./index-ab57h0yq.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-3jcyn8g6.js";
19
19
  import"./index-bpmtbmy9.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-ze4we97d.js";
7
+ } from "./index-wqg74mwj.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-r9pn41rj.js";
9
+ import"./index-93ky909v.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-en4fb04r.js";
12
12
  import"./index-tqshdzaw.js";
@@ -14,36 +14,36 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-89dwrz8n.js";
17
+ } from "./index-99af5gvd.js";
18
18
  import"./index-vm4xw9z3.js";
19
19
  import"./index-rrxcfxrd.js";
20
- import"./index-qt3jjjw9.js";
21
- import"./index-da98750t.js";
20
+ import"./index-31vfewmn.js";
21
+ import"./index-btx8j39p.js";
22
22
  import"./index-y06a43sk.js";
23
23
  import"./index-ngqxzkqm.js";
24
24
  import"./index-y8552snf.js";
25
25
  import"./index-4905hd2m.js";
26
26
  import"./index-134d35c1.js";
27
- import"./index-qg5smxv9.js";
28
- import"./index-xm07cqy2.js";
29
- import"./index-yxswbd1t.js";
27
+ import"./index-jhb8kjc5.js";
28
+ import"./index-adde7nm2.js";
29
+ import"./index-rjratees.js";
30
30
  import"./index-6mjf4vr1.js";
31
31
  import"./index-c8s9a3zh.js";
32
32
  import"./index-9ss2m4rs.js";
33
33
  import"./index-wsdnttf4.js";
34
34
  import"./index-39k6y018.js";
35
- import"./index-d01d4102.js";
36
- import"./index-ze4we97d.js";
35
+ import"./index-tc61fybd.js";
36
+ import"./index-wqg74mwj.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-49ygvqvm.js";
39
- import"./index-r9pn41rj.js";
38
+ import"./index-1djv5684.js";
39
+ import"./index-93ky909v.js";
40
40
  import"./index-ae75rja9.js";
41
41
  import"./index-en4fb04r.js";
42
42
  import"./index-tqshdzaw.js";
43
- import"./index-k6cq9wwh.js";
43
+ import"./index-y6dvs5tt.js";
44
44
  import"./index-gprxjmm7.js";
45
45
  import"./index-n832052r.js";
46
- import"./index-exq36v6w.js";
46
+ import"./index-ab57h0yq.js";
47
47
  import"./index-bk5tah7q.js";
48
48
  import"./index-8fwhhayc.js";
49
49
  import"./index-q1exe2b3.js";
@@ -1,36 +1,36 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-89dwrz8n.js";
4
+ } from "./index-99af5gvd.js";
5
5
  import"./index-vm4xw9z3.js";
6
6
  import"./index-rrxcfxrd.js";
7
- import"./index-qt3jjjw9.js";
8
- import"./index-da98750t.js";
7
+ import"./index-31vfewmn.js";
8
+ import"./index-btx8j39p.js";
9
9
  import"./index-y06a43sk.js";
10
10
  import"./index-ngqxzkqm.js";
11
11
  import"./index-y8552snf.js";
12
12
  import"./index-4905hd2m.js";
13
13
  import"./index-134d35c1.js";
14
- import"./index-qg5smxv9.js";
15
- import"./index-xm07cqy2.js";
16
- import"./index-yxswbd1t.js";
14
+ import"./index-jhb8kjc5.js";
15
+ import"./index-adde7nm2.js";
16
+ import"./index-rjratees.js";
17
17
  import"./index-6mjf4vr1.js";
18
18
  import"./index-c8s9a3zh.js";
19
19
  import"./index-9ss2m4rs.js";
20
20
  import"./index-wsdnttf4.js";
21
21
  import"./index-39k6y018.js";
22
- import"./index-d01d4102.js";
23
- import"./index-ze4we97d.js";
22
+ import"./index-tc61fybd.js";
23
+ import"./index-wqg74mwj.js";
24
24
  import"./index-rtry5xyf.js";
25
- import"./index-49ygvqvm.js";
26
- import"./index-r9pn41rj.js";
25
+ import"./index-1djv5684.js";
26
+ import"./index-93ky909v.js";
27
27
  import"./index-ae75rja9.js";
28
28
  import"./index-en4fb04r.js";
29
29
  import"./index-tqshdzaw.js";
30
- import"./index-k6cq9wwh.js";
30
+ import"./index-y6dvs5tt.js";
31
31
  import"./index-gprxjmm7.js";
32
32
  import"./index-n832052r.js";
33
- import"./index-exq36v6w.js";
33
+ import"./index-ab57h0yq.js";
34
34
  import"./index-bk5tah7q.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
@@ -1,37 +1,37 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-gpxg7wx8.js";
5
- import"./index-89dwrz8n.js";
4
+ } from "./index-gda7cwqz.js";
5
+ import"./index-99af5gvd.js";
6
6
  import"./index-vm4xw9z3.js";
7
7
  import"./index-rrxcfxrd.js";
8
- import"./index-qt3jjjw9.js";
9
- import"./index-da98750t.js";
8
+ import"./index-31vfewmn.js";
9
+ import"./index-btx8j39p.js";
10
10
  import"./index-y06a43sk.js";
11
11
  import"./index-ngqxzkqm.js";
12
12
  import"./index-y8552snf.js";
13
13
  import"./index-4905hd2m.js";
14
14
  import"./index-134d35c1.js";
15
- import"./index-qg5smxv9.js";
16
- import"./index-xm07cqy2.js";
17
- import"./index-yxswbd1t.js";
15
+ import"./index-jhb8kjc5.js";
16
+ import"./index-adde7nm2.js";
17
+ import"./index-rjratees.js";
18
18
  import"./index-6mjf4vr1.js";
19
19
  import"./index-c8s9a3zh.js";
20
20
  import"./index-9ss2m4rs.js";
21
21
  import"./index-wsdnttf4.js";
22
22
  import"./index-39k6y018.js";
23
- import"./index-d01d4102.js";
24
- import"./index-ze4we97d.js";
23
+ import"./index-tc61fybd.js";
24
+ import"./index-wqg74mwj.js";
25
25
  import"./index-rtry5xyf.js";
26
- import"./index-49ygvqvm.js";
27
- import"./index-r9pn41rj.js";
26
+ import"./index-1djv5684.js";
27
+ import"./index-93ky909v.js";
28
28
  import"./index-ae75rja9.js";
29
29
  import"./index-en4fb04r.js";
30
30
  import"./index-tqshdzaw.js";
31
- import"./index-k6cq9wwh.js";
31
+ import"./index-y6dvs5tt.js";
32
32
  import"./index-gprxjmm7.js";
33
33
  import"./index-n832052r.js";
34
- import"./index-exq36v6w.js";
34
+ import"./index-ab57h0yq.js";
35
35
  import"./index-bk5tah7q.js";
36
36
  import"./index-8fwhhayc.js";
37
37
  import"./index-q1exe2b3.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-bakfqtye.js";
5
- import"./index-qt3jjjw9.js";
6
- import"./index-exq36v6w.js";
4
+ } from "./index-js7th5my.js";
5
+ import"./index-31vfewmn.js";
6
+ import"./index-ab57h0yq.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-3jcyn8g6.js";
9
9
  import"./index-bpmtbmy9.js";
@@ -7,38 +7,38 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-89dwrz8n.js";
10
+ } from "./index-99af5gvd.js";
11
11
  import"./index-vm4xw9z3.js";
12
12
  import"./index-rrxcfxrd.js";
13
- import"./index-qt3jjjw9.js";
14
- import"./index-da98750t.js";
13
+ import"./index-31vfewmn.js";
14
+ import"./index-btx8j39p.js";
15
15
  import"./index-y06a43sk.js";
16
16
  import"./index-ngqxzkqm.js";
17
17
  import"./index-y8552snf.js";
18
18
  import"./index-4905hd2m.js";
19
19
  import"./index-134d35c1.js";
20
- import"./index-qg5smxv9.js";
21
- import"./index-xm07cqy2.js";
22
- import"./index-yxswbd1t.js";
20
+ import"./index-jhb8kjc5.js";
21
+ import"./index-adde7nm2.js";
22
+ import"./index-rjratees.js";
23
23
  import"./index-6mjf4vr1.js";
24
24
  import"./index-c8s9a3zh.js";
25
25
  import"./index-9ss2m4rs.js";
26
26
  import"./index-wsdnttf4.js";
27
27
  import"./index-39k6y018.js";
28
- import"./index-d01d4102.js";
29
- import"./index-ze4we97d.js";
28
+ import"./index-tc61fybd.js";
29
+ import"./index-wqg74mwj.js";
30
30
  import"./index-rtry5xyf.js";
31
31
  import {
32
32
  resolveHiveKnowledgePath
33
- } from "./index-49ygvqvm.js";
34
- import"./index-r9pn41rj.js";
33
+ } from "./index-1djv5684.js";
34
+ import"./index-93ky909v.js";
35
35
  import"./index-ae75rja9.js";
36
36
  import"./index-en4fb04r.js";
37
37
  import"./index-tqshdzaw.js";
38
- import"./index-k6cq9wwh.js";
38
+ import"./index-y6dvs5tt.js";
39
39
  import"./index-gprxjmm7.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-exq36v6w.js";
41
+ import"./index-ab57h0yq.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-7neg8x0p.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-yaj0yjd6.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-q1qrdyvx.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-mtyaeh18.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-e5fqy9h4.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-xg5f11md.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-8emf08eb.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-1v89yst3.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-k6cq9wwh.js";
10
+ } from "./index-y6dvs5tt.js";
11
11
  import {
12
12
  ApprovalEvidenceSchema,
13
13
  BaseEvidenceSchema,
@@ -54,7 +54,7 @@ import {
54
54
  TurboConfigSchema,
55
55
  WorktreeIsolationConfigSchema,
56
56
  resolveAutoReviewConfig
57
- } from "./index-exq36v6w.js";
57
+ } from "./index-ab57h0yq.js";
58
58
  import"./index-bk5tah7q.js";
59
59
  import {
60
60
  MigrationStatusSchema,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  init_schema,
4
4
  stripKnownSwarmPrefix
5
- } from "./index-exq36v6w.js";
5
+ } from "./index-ab57h0yq.js";
6
6
  import {
7
7
  init_constants
8
8
  } from "./index-3jcyn8g6.js";
@@ -625,7 +625,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
625
625
  deltas.push({ id, delta });
626
626
  }
627
627
  if (deltas.length > 0) {
628
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-a6d4625r.js");
628
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-d99k0z2d.js");
629
629
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
630
630
  }
631
631
  return {