opencode-swarm 7.138.1 → 7.138.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 (40) hide show
  1. package/dist/background/candidate-contract.d.ts +31 -0
  2. package/dist/background/pending-delegations.d.ts +7 -0
  3. package/dist/cli/{config-doctor-m79sx8b2.js → config-doctor-hzb0bck9.js} +2 -2
  4. package/dist/cli/{curation-policy-dkx4s5va.js → curation-policy-aj37yvz8.js} +2 -2
  5. package/dist/cli/{curator-jjf5x6bn.js → curator-jt6dza8y.js} +13 -13
  6. package/dist/cli/{curator-llm-factory-sprc6pm3.js → curator-llm-factory-m9f4h8t4.js} +13 -13
  7. package/dist/cli/{guardrail-explain-zs3hq02c.js → guardrail-explain-rks41rpx.js} +14 -14
  8. package/dist/cli/{guardrail-log-90dnv508.js → guardrail-log-h39jxftx.js} +3 -3
  9. package/dist/cli/{hive-promoter-zkay2ffy.js → hive-promoter-34y2x4vt.js} +13 -13
  10. package/dist/cli/{index-8xqnp3gw.js → index-49ygvqvm.js} +4 -4
  11. package/dist/cli/{index-mnw8g9bs.js → index-89dwrz8n.js} +139 -56
  12. package/dist/cli/{index-vmff7b40.js → index-8emf08eb.js} +2 -2
  13. package/dist/cli/{index-06zw53mf.js → index-bakfqtye.js} +1 -1
  14. package/dist/cli/{index-d4t92fa3.js → index-d01d4102.js} +2 -2
  15. package/dist/cli/{index-vp3mwsd1.js → index-da98750t.js} +1 -1
  16. package/dist/cli/{index-e78pqbkj.js → index-exq36v6w.js} +1 -1
  17. package/dist/cli/{index-5fdztrpt.js → index-gpxg7wx8.js} +2 -2
  18. package/dist/cli/{index-p7fn5byt.js → index-k6cq9wwh.js} +1 -1
  19. package/dist/cli/{index-0s4gr6qh.js → index-q344kj84.js} +2 -1
  20. package/dist/cli/{index-mzqgtzxq.js → index-qg5smxv9.js} +3 -3
  21. package/dist/cli/{index-e2eedz1b.js → index-qt3jjjw9.js} +1 -1
  22. package/dist/cli/{index-kqzzdxc1.js → index-r9pn41rj.js} +1 -1
  23. package/dist/cli/{index-6f6nt0c9.js → index-s7ac0xrf.js} +15 -15
  24. package/dist/cli/{index-navw2ezf.js → index-xm07cqy2.js} +5 -5
  25. package/dist/cli/{index-aeyktf9q.js → index-yxswbd1t.js} +1 -1
  26. package/dist/cli/{index-9vvskh03.js → index-ze4we97d.js} +1 -1
  27. package/dist/cli/index.js +13 -13
  28. package/dist/cli/{knowledge-escalator-6y5x8vat.js → knowledge-escalator-qmpfh5yz.js} +3 -3
  29. package/dist/cli/{knowledge-events-bnr4weyn.js → knowledge-events-7neg8x0p.js} +1 -1
  30. package/dist/cli/{knowledge-store-4mcmb2rj.js → knowledge-store-a6d4625r.js} +1 -1
  31. package/dist/cli/{knowledge-validator-pf377mtx.js → knowledge-validator-q1qrdyvx.js} +4 -4
  32. package/dist/cli/{pending-delegations-ztb67amh.js → pending-delegations-7dbc0j2a.js} +1 -1
  33. package/dist/cli/{scan-cursor-we0561wc.js → scan-cursor-3tqshkb2.js} +2 -2
  34. package/dist/cli/{schema-1xtxr4d9.js → schema-mtyaeh18.js} +1 -1
  35. package/dist/cli/{skill-generator-kns0dae2.js → skill-generator-t3m5qajm.js} +5 -5
  36. package/dist/cli/{worktree-collision-ownership-rc6pe17g.js → worktree-collision-ownership-hjrt5hx2.js} +1 -1
  37. package/dist/hooks/pr-workflow-gate.d.ts +41 -1
  38. package/dist/index.js +22 -9
  39. package/dist/tools/dispatch-lanes.d.ts +7 -0
  40. package/package.json +1 -1
@@ -43,6 +43,37 @@ export interface CandidateHeaderSelection {
43
43
  export declare function selectCandidateHeader(lines: readonly string[]): CandidateHeaderSelection | null;
44
44
  /** Remove fenced markdown blocks before any candidate-contract inspection. */
45
45
  export declare function removeCandidateCodeFences(text: string): string;
46
+ export interface NormalizedCandidateArtifact {
47
+ /** Fence-stripped text, with a canonical header synthesized when salvageable. */
48
+ text: string;
49
+ /** True when a canonical header was supplied by this normalizer. */
50
+ synthesizedHeader: boolean;
51
+ }
52
+ /**
53
+ * Normalize a lane artifact ONCE so every consumer parses byte-identical text.
54
+ *
55
+ * Coverage validation and candidate-id extraction previously applied the header
56
+ * rule in two separate places, so a repair applied to one could not be seen by
57
+ * the other — a lane could be judged "covered" while contributing zero findings
58
+ * to the inventory. Both callers now route through this function.
59
+ *
60
+ * A missing header is repaired; a *wrong* or *late* header is not, so genuine
61
+ * contract violations still fail closed:
62
+ * - a leading canonical header (either family) is left alone, preserving
63
+ * `expected-family-mismatch`;
64
+ * - a canonical header that exists but does not lead is left alone, preserving
65
+ * "a later valid header cannot rescue a malformed first marker";
66
+ * - only a total absence of any canonical header, together with at least one
67
+ * valid marker-bearing row, is repaired.
68
+ *
69
+ * KNOWN RESIDUAL: the two row families are both nine fields and differ only in
70
+ * the meaning of positions 6 and 7 (`evidence_summary`/`impact_context` versus
71
+ * `invariant_violated`/`evidence_summary`), neither of which is structurally
72
+ * distinguishable. A headerless lane that emits the other family's field order
73
+ * is therefore repaired into the expected family and its two prose fields are
74
+ * transposed. Callers surface `synthesizedHeader` so this is auditable.
75
+ */
76
+ export declare function normalizeCandidateArtifact(rawText: string, fallbackFamily: RowFormatFamily): NormalizedCandidateArtifact;
46
77
  export type CandidateFieldName = (typeof CANDIDATE_FIELDS)[RowFormatFamily][number];
47
78
  export interface CandidateFieldIssue {
48
79
  field: CandidateFieldName | 'row';
@@ -141,6 +141,13 @@ export interface BackgroundDelegationResult {
141
141
  outputArtifactError?: string;
142
142
  transcriptIncomplete?: boolean;
143
143
  messageCount?: number;
144
+ /**
145
+ * Workflow lanes whose discovery artifact was accepted only after repair — a
146
+ * synthesized canonical header, or valid rows retained beside malformed ones.
147
+ * Recorded on the durable ledger so a repaired lane stays distinguishable from
148
+ * a well-formed one after the fact, which is where post-mortems actually look.
149
+ */
150
+ salvagedWorkflowLanes?: string[];
144
151
  }
145
152
  export interface BackgroundTerminalResult {
146
153
  /** Stable identity derived from trusted correlation + immutable result metadata. */
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-vp3mwsd1.js";
16
- import"./index-e78pqbkj.js";
15
+ } from "./index-da98750t.js";
16
+ import"./index-exq36v6w.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-9vvskh03.js";
7
+ } from "./index-ze4we97d.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-kqzzdxc1.js";
9
+ import"./index-r9pn41rj.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-mnw8g9bs.js";
17
+ } from "./index-89dwrz8n.js";
18
18
  import"./index-vm4xw9z3.js";
19
19
  import"./index-rrxcfxrd.js";
20
- import"./index-e2eedz1b.js";
21
- import"./index-vp3mwsd1.js";
20
+ import"./index-qt3jjjw9.js";
21
+ import"./index-da98750t.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-mzqgtzxq.js";
28
- import"./index-navw2ezf.js";
29
- import"./index-aeyktf9q.js";
27
+ import"./index-qg5smxv9.js";
28
+ import"./index-xm07cqy2.js";
29
+ import"./index-yxswbd1t.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-d4t92fa3.js";
36
- import"./index-9vvskh03.js";
35
+ import"./index-d01d4102.js";
36
+ import"./index-ze4we97d.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-8xqnp3gw.js";
39
- import"./index-kqzzdxc1.js";
38
+ import"./index-49ygvqvm.js";
39
+ import"./index-r9pn41rj.js";
40
40
  import"./index-ae75rja9.js";
41
41
  import"./index-en4fb04r.js";
42
42
  import"./index-tqshdzaw.js";
43
- import"./index-p7fn5byt.js";
43
+ import"./index-k6cq9wwh.js";
44
44
  import"./index-gprxjmm7.js";
45
45
  import"./index-n832052r.js";
46
- import"./index-e78pqbkj.js";
46
+ import"./index-exq36v6w.js";
47
47
  import"./index-bk5tah7q.js";
48
48
  import"./index-8fwhhayc.js";
49
49
  import"./index-q1exe2b3.js";
@@ -56,7 +56,7 @@ import"./index-b8zgtz81.js";
56
56
  import"./index-j0xx9wpj.js";
57
57
  import"./index-4rhhvd1a.js";
58
58
  import"./index-3jcyn8g6.js";
59
- import"./index-0s4gr6qh.js";
59
+ import"./index-q344kj84.js";
60
60
  import"./index-4qzeef9h.js";
61
61
  import"./index-fsrp8wp3.js";
62
62
  import"./index-xybtaph7.js";
@@ -1,36 +1,36 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-mnw8g9bs.js";
4
+ } from "./index-89dwrz8n.js";
5
5
  import"./index-vm4xw9z3.js";
6
6
  import"./index-rrxcfxrd.js";
7
- import"./index-e2eedz1b.js";
8
- import"./index-vp3mwsd1.js";
7
+ import"./index-qt3jjjw9.js";
8
+ import"./index-da98750t.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-mzqgtzxq.js";
15
- import"./index-navw2ezf.js";
16
- import"./index-aeyktf9q.js";
14
+ import"./index-qg5smxv9.js";
15
+ import"./index-xm07cqy2.js";
16
+ import"./index-yxswbd1t.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-d4t92fa3.js";
23
- import"./index-9vvskh03.js";
22
+ import"./index-d01d4102.js";
23
+ import"./index-ze4we97d.js";
24
24
  import"./index-rtry5xyf.js";
25
- import"./index-8xqnp3gw.js";
26
- import"./index-kqzzdxc1.js";
25
+ import"./index-49ygvqvm.js";
26
+ import"./index-r9pn41rj.js";
27
27
  import"./index-ae75rja9.js";
28
28
  import"./index-en4fb04r.js";
29
29
  import"./index-tqshdzaw.js";
30
- import"./index-p7fn5byt.js";
30
+ import"./index-k6cq9wwh.js";
31
31
  import"./index-gprxjmm7.js";
32
32
  import"./index-n832052r.js";
33
- import"./index-e78pqbkj.js";
33
+ import"./index-exq36v6w.js";
34
34
  import"./index-bk5tah7q.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
@@ -43,7 +43,7 @@ import"./index-b8zgtz81.js";
43
43
  import"./index-j0xx9wpj.js";
44
44
  import"./index-4rhhvd1a.js";
45
45
  import"./index-3jcyn8g6.js";
46
- import"./index-0s4gr6qh.js";
46
+ import"./index-q344kj84.js";
47
47
  import"./index-4qzeef9h.js";
48
48
  import"./index-fsrp8wp3.js";
49
49
  import"./index-xybtaph7.js";
@@ -1,37 +1,37 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-5fdztrpt.js";
5
- import"./index-mnw8g9bs.js";
4
+ } from "./index-gpxg7wx8.js";
5
+ import"./index-89dwrz8n.js";
6
6
  import"./index-vm4xw9z3.js";
7
7
  import"./index-rrxcfxrd.js";
8
- import"./index-e2eedz1b.js";
9
- import"./index-vp3mwsd1.js";
8
+ import"./index-qt3jjjw9.js";
9
+ import"./index-da98750t.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-mzqgtzxq.js";
16
- import"./index-navw2ezf.js";
17
- import"./index-aeyktf9q.js";
15
+ import"./index-qg5smxv9.js";
16
+ import"./index-xm07cqy2.js";
17
+ import"./index-yxswbd1t.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-d4t92fa3.js";
24
- import"./index-9vvskh03.js";
23
+ import"./index-d01d4102.js";
24
+ import"./index-ze4we97d.js";
25
25
  import"./index-rtry5xyf.js";
26
- import"./index-8xqnp3gw.js";
27
- import"./index-kqzzdxc1.js";
26
+ import"./index-49ygvqvm.js";
27
+ import"./index-r9pn41rj.js";
28
28
  import"./index-ae75rja9.js";
29
29
  import"./index-en4fb04r.js";
30
30
  import"./index-tqshdzaw.js";
31
- import"./index-p7fn5byt.js";
31
+ import"./index-k6cq9wwh.js";
32
32
  import"./index-gprxjmm7.js";
33
33
  import"./index-n832052r.js";
34
- import"./index-e78pqbkj.js";
34
+ import"./index-exq36v6w.js";
35
35
  import"./index-bk5tah7q.js";
36
36
  import"./index-8fwhhayc.js";
37
37
  import"./index-q1exe2b3.js";
@@ -44,7 +44,7 @@ import"./index-b8zgtz81.js";
44
44
  import"./index-j0xx9wpj.js";
45
45
  import"./index-4rhhvd1a.js";
46
46
  import"./index-3jcyn8g6.js";
47
- import"./index-0s4gr6qh.js";
47
+ import"./index-q344kj84.js";
48
48
  import"./index-4qzeef9h.js";
49
49
  import"./index-fsrp8wp3.js";
50
50
  import"./index-xybtaph7.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-06zw53mf.js";
5
- import"./index-e2eedz1b.js";
6
- import"./index-e78pqbkj.js";
4
+ } from "./index-bakfqtye.js";
5
+ import"./index-qt3jjjw9.js";
6
+ import"./index-exq36v6w.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-mnw8g9bs.js";
10
+ } from "./index-89dwrz8n.js";
11
11
  import"./index-vm4xw9z3.js";
12
12
  import"./index-rrxcfxrd.js";
13
- import"./index-e2eedz1b.js";
14
- import"./index-vp3mwsd1.js";
13
+ import"./index-qt3jjjw9.js";
14
+ import"./index-da98750t.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-mzqgtzxq.js";
21
- import"./index-navw2ezf.js";
22
- import"./index-aeyktf9q.js";
20
+ import"./index-qg5smxv9.js";
21
+ import"./index-xm07cqy2.js";
22
+ import"./index-yxswbd1t.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-d4t92fa3.js";
29
- import"./index-9vvskh03.js";
28
+ import"./index-d01d4102.js";
29
+ import"./index-ze4we97d.js";
30
30
  import"./index-rtry5xyf.js";
31
31
  import {
32
32
  resolveHiveKnowledgePath
33
- } from "./index-8xqnp3gw.js";
34
- import"./index-kqzzdxc1.js";
33
+ } from "./index-49ygvqvm.js";
34
+ import"./index-r9pn41rj.js";
35
35
  import"./index-ae75rja9.js";
36
36
  import"./index-en4fb04r.js";
37
37
  import"./index-tqshdzaw.js";
38
- import"./index-p7fn5byt.js";
38
+ import"./index-k6cq9wwh.js";
39
39
  import"./index-gprxjmm7.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-e78pqbkj.js";
41
+ import"./index-exq36v6w.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -51,7 +51,7 @@ import"./index-b8zgtz81.js";
51
51
  import"./index-j0xx9wpj.js";
52
52
  import"./index-4rhhvd1a.js";
53
53
  import"./index-3jcyn8g6.js";
54
- import"./index-0s4gr6qh.js";
54
+ import"./index-q344kj84.js";
55
55
  import"./index-4qzeef9h.js";
56
56
  import"./index-fsrp8wp3.js";
57
57
  import"./index-xybtaph7.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-bnr4weyn.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-7neg8x0p.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-pf377mtx.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-1xtxr4d9.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-q1qrdyvx.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-mtyaeh18.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-vmff7b40.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-8emf08eb.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {