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
@@ -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-4mcmb2rj.js");
628
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-a6d4625r.js");
629
629
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
630
630
  }
631
631
  return {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-5fdztrpt.js";
4
+ } from "./index-gpxg7wx8.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-06zw53mf.js";
7
+ } from "./index-bakfqtye.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,39 +84,39 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-mnw8g9bs.js";
87
+ } from "./index-89dwrz8n.js";
88
88
  import"./index-vm4xw9z3.js";
89
89
  import"./index-rrxcfxrd.js";
90
- import"./index-e2eedz1b.js";
91
- import"./index-vp3mwsd1.js";
90
+ import"./index-qt3jjjw9.js";
91
+ import"./index-da98750t.js";
92
92
  import"./index-y06a43sk.js";
93
93
  import"./index-ngqxzkqm.js";
94
94
  import"./index-y8552snf.js";
95
95
  import"./index-4905hd2m.js";
96
96
  import"./index-134d35c1.js";
97
- import"./index-mzqgtzxq.js";
98
- import"./index-navw2ezf.js";
99
- import"./index-aeyktf9q.js";
97
+ import"./index-qg5smxv9.js";
98
+ import"./index-xm07cqy2.js";
99
+ import"./index-yxswbd1t.js";
100
100
  import"./index-6mjf4vr1.js";
101
101
  import"./index-c8s9a3zh.js";
102
102
  import"./index-9ss2m4rs.js";
103
103
  import"./index-wsdnttf4.js";
104
104
  import"./index-39k6y018.js";
105
- import"./index-d4t92fa3.js";
106
- import"./index-9vvskh03.js";
105
+ import"./index-d01d4102.js";
106
+ import"./index-ze4we97d.js";
107
107
  import"./index-rtry5xyf.js";
108
- import"./index-8xqnp3gw.js";
109
- import"./index-kqzzdxc1.js";
108
+ import"./index-49ygvqvm.js";
109
+ import"./index-r9pn41rj.js";
110
110
  import"./index-ae75rja9.js";
111
111
  import"./index-en4fb04r.js";
112
112
  import"./index-tqshdzaw.js";
113
- import"./index-p7fn5byt.js";
113
+ import"./index-k6cq9wwh.js";
114
114
  import"./index-gprxjmm7.js";
115
115
  import"./index-n832052r.js";
116
116
  import {
117
117
  init_schema,
118
118
  stripKnownSwarmPrefix
119
- } from "./index-e78pqbkj.js";
119
+ } from "./index-exq36v6w.js";
120
120
  import"./index-bk5tah7q.js";
121
121
  import"./index-8fwhhayc.js";
122
122
  import"./index-q1exe2b3.js";
@@ -133,7 +133,7 @@ import {
133
133
  ORCHESTRATOR_NAME,
134
134
  init_constants
135
135
  } from "./index-3jcyn8g6.js";
136
- import"./index-0s4gr6qh.js";
136
+ import"./index-q344kj84.js";
137
137
  import"./index-4qzeef9h.js";
138
138
  import"./index-fsrp8wp3.js";
139
139
  import"./index-xybtaph7.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-8xqnp3gw.js";
9
+ } from "./index-49ygvqvm.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-kqzzdxc1.js";
15
+ } from "./index-r9pn41rj.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-pf377mtx.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-q1qrdyvx.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-1xtxr4d9.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-vmff7b40.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-mtyaeh18.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-8emf08eb.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-8xqnp3gw.js";
5
+ } from "./index-49ygvqvm.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-en4fb04r.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-kqzzdxc1.js";
7
+ } from "./index-r9pn41rj.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
package/dist/cli/index.js CHANGED
@@ -6,39 +6,39 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-mnw8g9bs.js";
9
+ } from "./index-89dwrz8n.js";
10
10
  import"./index-vm4xw9z3.js";
11
11
  import"./index-rrxcfxrd.js";
12
- import"./index-e2eedz1b.js";
13
- import"./index-vp3mwsd1.js";
12
+ import"./index-qt3jjjw9.js";
13
+ import"./index-da98750t.js";
14
14
  import"./index-y06a43sk.js";
15
15
  import"./index-ngqxzkqm.js";
16
16
  import"./index-y8552snf.js";
17
17
  import"./index-4905hd2m.js";
18
18
  import"./index-134d35c1.js";
19
- import"./index-mzqgtzxq.js";
20
- import"./index-navw2ezf.js";
21
- import"./index-aeyktf9q.js";
19
+ import"./index-qg5smxv9.js";
20
+ import"./index-xm07cqy2.js";
21
+ import"./index-yxswbd1t.js";
22
22
  import"./index-6mjf4vr1.js";
23
23
  import"./index-c8s9a3zh.js";
24
24
  import"./index-9ss2m4rs.js";
25
25
  import"./index-wsdnttf4.js";
26
26
  import"./index-39k6y018.js";
27
- import"./index-d4t92fa3.js";
28
- import"./index-9vvskh03.js";
27
+ import"./index-d01d4102.js";
28
+ import"./index-ze4we97d.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-8xqnp3gw.js";
31
- import"./index-kqzzdxc1.js";
30
+ import"./index-49ygvqvm.js";
31
+ import"./index-r9pn41rj.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-en4fb04r.js";
34
34
  import"./index-tqshdzaw.js";
35
- import"./index-p7fn5byt.js";
35
+ import"./index-k6cq9wwh.js";
36
36
  import"./index-gprxjmm7.js";
37
37
  import"./index-n832052r.js";
38
38
  import {
39
39
  init_package,
40
40
  package_default
41
- } from "./index-e78pqbkj.js";
41
+ } from "./index-exq36v6w.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -54,7 +54,7 @@ import {
54
54
  DEFAULT_AGENT_CONFIGS,
55
55
  init_constants
56
56
  } from "./index-3jcyn8g6.js";
57
- import"./index-0s4gr6qh.js";
57
+ import"./index-q344kj84.js";
58
58
  import"./index-4qzeef9h.js";
59
59
  import"./index-fsrp8wp3.js";
60
60
  import"./index-xybtaph7.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-navw2ezf.js";
12
- import"./index-8xqnp3gw.js";
13
- import"./index-kqzzdxc1.js";
11
+ } from "./index-xm07cqy2.js";
12
+ import"./index-49ygvqvm.js";
13
+ import"./index-r9pn41rj.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-en4fb04r.js";
16
16
  import"./index-tqshdzaw.js";
@@ -28,7 +28,7 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-kqzzdxc1.js";
31
+ } from "./index-r9pn41rj.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-en4fb04r.js";
34
34
  import"./index-tqshdzaw.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-8xqnp3gw.js";
44
+ } from "./index-49ygvqvm.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-d4t92fa3.js";
27
- import"./index-9vvskh03.js";
26
+ } from "./index-d01d4102.js";
27
+ import"./index-ze4we97d.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-8xqnp3gw.js";
30
- import"./index-kqzzdxc1.js";
29
+ import"./index-49ygvqvm.js";
30
+ import"./index-r9pn41rj.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-en4fb04r.js";
33
33
  import"./index-tqshdzaw.js";
@@ -41,7 +41,7 @@ import {
41
41
  sweepStaleDelegations,
42
42
  updateCoderSettlement,
43
43
  writeDelegationFallback
44
- } from "./index-0s4gr6qh.js";
44
+ } from "./index-q344kj84.js";
45
45
  import"./index-4qzeef9h.js";
46
46
  import"./index-fsrp8wp3.js";
47
47
  import"./index-xybtaph7.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-aeyktf9q.js";
8
- import"./index-8xqnp3gw.js";
7
+ } from "./index-yxswbd1t.js";
8
+ import"./index-49ygvqvm.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-en4fb04r.js";
11
11
  import"./index-tqshdzaw.js";
@@ -95,7 +95,7 @@ import {
95
95
  resolveGeneratedAgentRole,
96
96
  resolveGuardrailsConfig,
97
97
  stripKnownSwarmPrefix
98
- } from "./index-e78pqbkj.js";
98
+ } from "./index-exq36v6w.js";
99
99
  import"./index-bk5tah7q.js";
100
100
  import"./index-3jcyn8g6.js";
101
101
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-mzqgtzxq.js";
37
- import"./index-d4t92fa3.js";
38
- import"./index-9vvskh03.js";
36
+ } from "./index-qg5smxv9.js";
37
+ import"./index-d01d4102.js";
38
+ import"./index-ze4we97d.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-8xqnp3gw.js";
41
- import"./index-kqzzdxc1.js";
40
+ import"./index-49ygvqvm.js";
41
+ import"./index-r9pn41rj.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-en4fb04r.js";
44
44
  import"./index-tqshdzaw.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  scanDelegationFallbacksForRecovery,
10
10
  scanDelegationsForRecovery
11
- } from "./index-0s4gr6qh.js";
11
+ } from "./index-q344kj84.js";
12
12
  import"./index-4qzeef9h.js";
13
13
  import"./index-fsrp8wp3.js";
14
14
  import"./index-xybtaph7.js";
@@ -1,4 +1,5 @@
1
1
  import * as fsp from 'node:fs/promises';
2
+ import { type RowFormatFamily } from '../background/candidate-contract.js';
2
3
  import { type LaneOutputArtifact } from '../background/lane-output-store.js';
3
4
  import { type BackgroundDelegationRecord, type BackgroundDelegationResult, findByBatchId } from '../background/pending-delegations.js';
4
5
  import { type PrReviewInlineTriggerRow } from '../background/pr-review-trigger-contract.js';
@@ -16,6 +17,13 @@ export interface PrReviewLaneValidationFailure {
16
17
  }
17
18
  export type PrReviewLaneValidationResult = {
18
19
  ok: true;
20
+ /**
21
+ * Workflow lanes accepted only after repair — a synthesized canonical
22
+ * header, or valid rows retained beside malformed ones. Structural rather
23
+ * than log-only, so a repaired artifact is programmatically
24
+ * distinguishable from a well-formed one.
25
+ */
26
+ salvaged?: readonly string[];
19
27
  } | {
20
28
  ok: false;
21
29
  failure: PrReviewLaneValidationFailure;
@@ -491,6 +499,9 @@ export declare const _test_exports: {
491
499
  minimumConsolidatedLaneCover: typeof minimumConsolidatedLaneCover;
492
500
  analyzePrReviewBatchRecordIntegrity: typeof analyzePrReviewBatchRecordIntegrity;
493
501
  MAX_COVER_UNIVERSE_BITS: number;
502
+ extractCandidateIds: typeof extractCandidateIds;
503
+ parseCanonicalCandidateRows: typeof parseCanonicalCandidateRows;
504
+ resolvePrReviewRowFamily: typeof resolvePrReviewRowFamily;
494
505
  workflowGateStateRelativePath: typeof workflowGateStateRelativePath;
495
506
  workflowGateStateLockRelativePath: typeof workflowGateStateLockRelativePath;
496
507
  workflowCheckoutMutationLockRelativePath: typeof workflowCheckoutMutationLockRelativePath;
@@ -659,6 +670,35 @@ interface PrReviewGateContext {
659
670
  critic?: PrReviewPhaseComposition;
660
671
  candidateInventory?: string[];
661
672
  }
673
+ /**
674
+ * Extract candidate ids from a discovery artifact's [CANDIDATE] rows. When
675
+ * `scopeToLanes` is given (base-dimension sources credited for only a subset
676
+ * of their owned dimensions), rows whose `lane` field is outside that set are
677
+ * skipped — the artifact may legitimately discuss a dimension this source is
678
+ * no longer the authoritative source for (a more recent batch superseded it),
679
+ * and that stale content must not re-enter the candidate pool.
680
+ */
681
+ interface CanonicalCandidateArtifactRow {
682
+ candidateId: string;
683
+ workflowLane: string;
684
+ evidence: string;
685
+ lineNumber: number;
686
+ }
687
+ interface CandidateArtifactParseResult {
688
+ rows: CanonicalCandidateArtifactRow[];
689
+ issues: string[];
690
+ }
691
+ /**
692
+ * Single source of truth for a PR-review lane's row family.
693
+ *
694
+ * Coverage validation and id extraction previously derived this separately (one
695
+ * from the dispatch mode, one from lane membership). Because the artifact
696
+ * normalizer's output depends on the family, any disagreement would reintroduce
697
+ * the very coverage/inventory split this normalization exists to remove.
698
+ */
699
+ declare function resolvePrReviewRowFamily(workflowLane: string | undefined, mode?: string): RowFormatFamily;
700
+ declare function parseCanonicalCandidateRows(text: string, fallbackFamily: RowFormatFamily): CandidateArtifactParseResult;
701
+ declare function extractCandidateIds(text: string, fallbackFamily: RowFormatFamily, scopeToLanes?: readonly string[]): string[];
662
702
  type PrReviewComposablePhase = 'reviewer' | 'critic';
663
703
  /** One item's admitted verdict plus the lane provenance that admitted it. */
664
704
  interface PrReviewItemClaim {
@@ -748,7 +788,7 @@ declare function analyzePrReviewBatchRecordIntegrity(args: {
748
788
  */
749
789
  export declare function validatePrReviewDiscoveryLaneCompletion(input: PrReviewDiscoveryLaneValidationInput): PrReviewLaneValidationResult;
750
790
  /** Require at least one semantically valid discovery row or CLEAN attestation. */
751
- export declare function prReviewDiscoveryArtifactCoversLane(text: string, expectedWorkflowLane: string, ownedWorkflowLanes?: readonly string[]): boolean;
791
+ export declare function prReviewDiscoveryArtifactCoversLane(text: string, expectedWorkflowLane: string, ownedWorkflowLanes?: readonly string[], mode?: string): boolean;
752
792
  declare function parseCriticVerdict(text: string, itemId: string, reviewerSeverity?: string): {
753
793
  status: string;
754
794
  severity: string;