opencode-swarm 7.139.1 → 7.139.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 (35) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +15 -0
  2. package/dist/cli/{config-doctor-tgnr91q3.js → config-doctor-hrb61yqe.js} +2 -2
  3. package/dist/cli/{curation-policy-2qnhgdtt.js → curation-policy-4tp0mbcb.js} +2 -2
  4. package/dist/cli/{curator-llm-factory-1ftzece0.js → curator-llm-factory-hvw13hmr.js} +12 -12
  5. package/dist/cli/{curator-nbsag633.js → curator-vpcs1p1v.js} +12 -12
  6. package/dist/cli/{guardrail-explain-vb9k9zwm.js → guardrail-explain-k62h3c92.js} +13 -13
  7. package/dist/cli/{guardrail-log-0djnvfas.js → guardrail-log-2ftew0p3.js} +3 -3
  8. package/dist/cli/{hive-promoter-bpt26yew.js → hive-promoter-mpf0cfkk.js} +12 -12
  9. package/dist/cli/{index-xec724kg.js → index-3radty3f.js} +1 -1
  10. package/dist/cli/{index-hgrkhxbk.js → index-6c5f309q.js} +2 -2
  11. package/dist/cli/{index-0ymhx85c.js → index-6w1re1qn.js} +1 -1
  12. package/dist/cli/{index-hn0mdcmj.js → index-8gftfvpp.js} +1 -1
  13. package/dist/cli/{index-15526t16.js → index-8p9pasnp.js} +1 -1
  14. package/dist/cli/{index-xr07r80d.js → index-a7nh382r.js} +37 -36
  15. package/dist/cli/{index-db7wf6ke.js → index-cyw81ngh.js} +4 -4
  16. package/dist/cli/{index-aymt7hzw.js → index-e9tx99ds.js} +1 -1
  17. package/dist/cli/{index-ywysg26s.js → index-ffpmqx30.js} +2 -2
  18. package/dist/cli/{index-en6qq954.js → index-ktagrqxw.js} +3 -3
  19. package/dist/cli/{index-dw09fz3w.js → index-q11t5erh.js} +1 -1
  20. package/dist/cli/{index-xka8s8jw.js → index-se8xc78k.js} +14 -14
  21. package/dist/cli/{index-vxbppwvf.js → index-w71cq27a.js} +5 -5
  22. package/dist/cli/{index-91s653xx.js → index-y47dwge1.js} +1 -1
  23. package/dist/cli/{index-y1zcsf2a.js → index-y64jv2pe.js} +1 -1
  24. package/dist/cli/{index-ht4q3548.js → index-yr6x707c.js} +2 -2
  25. package/dist/cli/index.js +12 -12
  26. package/dist/cli/{knowledge-escalator-pjg2x75c.js → knowledge-escalator-n9pmx4qr.js} +3 -3
  27. package/dist/cli/{knowledge-events-vxheptk8.js → knowledge-events-raevm18w.js} +1 -1
  28. package/dist/cli/{knowledge-store-36mascwz.js → knowledge-store-bcfqz8fr.js} +1 -1
  29. package/dist/cli/{knowledge-validator-anats6rj.js → knowledge-validator-jxqj96cx.js} +4 -4
  30. package/dist/cli/{scan-cursor-apbz9eez.js → scan-cursor-ah5swtyh.js} +2 -2
  31. package/dist/cli/{schema-x9fr2ey8.js → schema-f7jgrtxj.js} +1 -1
  32. package/dist/cli/{skill-generator-20czn4kd.js → skill-generator-hp7as46c.js} +5 -5
  33. package/dist/hooks/pr-workflow-gate.d.ts +8 -1
  34. package/dist/index.js +4 -4
  35. package/package.json +1 -1
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-ywysg26s.js";
5
+ } from "./index-ffpmqx30.js";
6
6
  import {
7
7
  computeOutcomeSignal,
8
8
  readKnowledge,
9
9
  resolveHiveKnowledgePath,
10
10
  resolveSwarmKnowledgePath,
11
11
  transactKnowledge
12
- } from "./index-db7wf6ke.js";
12
+ } from "./index-cyw81ngh.js";
13
13
  import {
14
14
  effectiveRetrievalOutcomes,
15
15
  readKnowledgeCounterRollups
16
- } from "./index-aymt7hzw.js";
16
+ } from "./index-e9tx99ds.js";
17
17
  import {
18
18
  init_knowledge_types,
19
19
  isActiveStatus
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-15526t16.js";
9
+ } from "./index-8p9pasnp.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-hgrkhxbk.js";
4
+ } from "./index-6c5f309q.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-hn0mdcmj.js";
7
+ } from "./index-8gftfvpp.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-xr07r80d.js";
87
+ } from "./index-a7nh382r.js";
88
88
  import"./index-vm4xw9z3.js";
89
89
  import"./index-wrt6m5ze.js";
90
- import"./index-y1zcsf2a.js";
91
- import"./index-91s653xx.js";
90
+ import"./index-y64jv2pe.js";
91
+ import"./index-y47dwge1.js";
92
92
  import"./index-0wp67gqj.js";
93
93
  import"./index-s608d3hw.js";
94
94
  import"./index-y8552snf.js";
95
95
  import"./index-4905hd2m.js";
96
96
  import"./index-134d35c1.js";
97
- import"./index-en6qq954.js";
98
- import"./index-vxbppwvf.js";
99
- import"./index-0ymhx85c.js";
97
+ import"./index-ktagrqxw.js";
98
+ import"./index-w71cq27a.js";
99
+ import"./index-6w1re1qn.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-5w7ekpy3.js";
105
- import"./index-ywysg26s.js";
106
- import"./index-xec724kg.js";
105
+ import"./index-ffpmqx30.js";
106
+ import"./index-3radty3f.js";
107
107
  import"./index-rtry5xyf.js";
108
- import"./index-db7wf6ke.js";
109
- import"./index-aymt7hzw.js";
108
+ import"./index-cyw81ngh.js";
109
+ import"./index-e9tx99ds.js";
110
110
  import"./index-ae75rja9.js";
111
111
  import"./index-668dpw5e.js";
112
112
  import"./index-gvhvz176.js";
113
- import"./index-dw09fz3w.js";
113
+ import"./index-q11t5erh.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-15526t16.js";
119
+ } from "./index-8p9pasnp.js";
120
120
  import"./index-bk5tah7q.js";
121
121
  import"./index-8fwhhayc.js";
122
122
  import"./index-q1exe2b3.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-db7wf6ke.js";
9
+ } from "./index-cyw81ngh.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-aymt7hzw.js";
15
+ } from "./index-e9tx99ds.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-anats6rj.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-jxqj96cx.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-x9fr2ey8.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-ht4q3548.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-f7jgrtxj.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-yr6x707c.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-15526t16.js";
9
+ } from "./index-8p9pasnp.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  init_schema,
4
4
  stripKnownSwarmPrefix
5
- } from "./index-15526t16.js";
5
+ } from "./index-8p9pasnp.js";
6
6
  import {
7
7
  getPathFlavor,
8
8
  isOnDifferentPathRoot,
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-dw09fz3w.js";
10
+ } from "./index-q11t5erh.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-15526t16.js";
57
+ } from "./index-8p9pasnp.js";
58
58
  import"./index-bk5tah7q.js";
59
59
  import {
60
60
  MigrationStatusSchema,
package/dist/cli/index.js CHANGED
@@ -6,39 +6,39 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-xr07r80d.js";
9
+ } from "./index-a7nh382r.js";
10
10
  import"./index-vm4xw9z3.js";
11
11
  import"./index-wrt6m5ze.js";
12
- import"./index-y1zcsf2a.js";
13
- import"./index-91s653xx.js";
12
+ import"./index-y64jv2pe.js";
13
+ import"./index-y47dwge1.js";
14
14
  import"./index-0wp67gqj.js";
15
15
  import"./index-s608d3hw.js";
16
16
  import"./index-y8552snf.js";
17
17
  import"./index-4905hd2m.js";
18
18
  import"./index-134d35c1.js";
19
- import"./index-en6qq954.js";
20
- import"./index-vxbppwvf.js";
21
- import"./index-0ymhx85c.js";
19
+ import"./index-ktagrqxw.js";
20
+ import"./index-w71cq27a.js";
21
+ import"./index-6w1re1qn.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-5w7ekpy3.js";
27
- import"./index-ywysg26s.js";
28
- import"./index-xec724kg.js";
27
+ import"./index-ffpmqx30.js";
28
+ import"./index-3radty3f.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-db7wf6ke.js";
31
- import"./index-aymt7hzw.js";
30
+ import"./index-cyw81ngh.js";
31
+ import"./index-e9tx99ds.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-668dpw5e.js";
34
34
  import"./index-gvhvz176.js";
35
- import"./index-dw09fz3w.js";
35
+ import"./index-q11t5erh.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-15526t16.js";
41
+ } from "./index-8p9pasnp.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-vxbppwvf.js";
12
- import"./index-db7wf6ke.js";
13
- import"./index-aymt7hzw.js";
11
+ } from "./index-w71cq27a.js";
12
+ import"./index-cyw81ngh.js";
13
+ import"./index-e9tx99ds.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-668dpw5e.js";
16
16
  import"./index-gvhvz176.js";
@@ -28,7 +28,7 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-aymt7hzw.js";
31
+ } from "./index-e9tx99ds.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-668dpw5e.js";
34
34
  import"./index-gvhvz176.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-db7wf6ke.js";
44
+ } from "./index-cyw81ngh.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-ywysg26s.js";
27
- import"./index-xec724kg.js";
26
+ } from "./index-ffpmqx30.js";
27
+ import"./index-3radty3f.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-db7wf6ke.js";
30
- import"./index-aymt7hzw.js";
29
+ import"./index-cyw81ngh.js";
30
+ import"./index-e9tx99ds.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-668dpw5e.js";
33
33
  import"./index-gvhvz176.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-0ymhx85c.js";
8
- import"./index-db7wf6ke.js";
7
+ } from "./index-6w1re1qn.js";
8
+ import"./index-cyw81ngh.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-668dpw5e.js";
11
11
  import"./index-gvhvz176.js";
@@ -96,7 +96,7 @@ import {
96
96
  resolveGeneratedAgentRole,
97
97
  resolveGuardrailsConfig,
98
98
  stripKnownSwarmPrefix
99
- } from "./index-15526t16.js";
99
+ } from "./index-8p9pasnp.js";
100
100
  import"./index-bk5tah7q.js";
101
101
  import"./index-3jcyn8g6.js";
102
102
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-en6qq954.js";
37
- import"./index-ywysg26s.js";
38
- import"./index-xec724kg.js";
36
+ } from "./index-ktagrqxw.js";
37
+ import"./index-ffpmqx30.js";
38
+ import"./index-3radty3f.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-db7wf6ke.js";
41
- import"./index-aymt7hzw.js";
40
+ import"./index-cyw81ngh.js";
41
+ import"./index-e9tx99ds.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-668dpw5e.js";
44
44
  import"./index-gvhvz176.js";
@@ -283,6 +283,13 @@ export interface PrWorkflowGateState {
283
283
  /** Canonical ordered semantic ledger frozen by the first micro dispatch. */
284
284
  prReviewTriggerLedger?: PrReviewInlineTriggerRow[];
285
285
  prReviewTriggerEvalPath?: string;
286
+ /**
287
+ * The run_id bound to the trigger-evaluation receipt at first consumption.
288
+ * Mirrors `prReviewArtifactRunId`: once set, a subsequent receipt under a
289
+ * different run_id is rejected, and it must agree with the findings artifact
290
+ * run_id (both live under `.swarm/pr-review/<run_id>/`). Closes issue #2124.
291
+ */
292
+ prReviewTriggerEvalRunId?: string;
286
293
  prReviewValidationBatches?: PrReviewValidationBatchRecord[];
287
294
  /** Keyed by validation batch id. See `PrReviewBatchCoherenceRecord`. */
288
295
  prReviewBatchCoherence?: Record<string, PrReviewBatchCoherenceRecord>;
@@ -465,7 +472,7 @@ export declare function recordPrFeedbackGateBatch(directory: string, sessionID:
465
472
  export declare function assertPrFeedbackGatePhaseSettled(directory: string, sessionID: string, phase: PrFeedbackGatePhase): Promise<PrWorkflowGateState>;
466
473
  /** Require every ordered feedback gate on one unchanged revision. */
467
474
  export declare function assertPrFeedbackReadyToPublish(directory: string, sessionID: string): Promise<PrWorkflowGateState>;
468
- export declare function markPrReviewTriggerEvaluationComplete(directory: string, sessionID: string, artifactPath: string): Promise<PrWorkflowGateState>;
475
+ export declare function markPrReviewTriggerEvaluationComplete(directory: string, sessionID: string, runId: string, artifactPath: string): Promise<PrWorkflowGateState>;
469
476
  /** Freeze one exact inline trigger ledger across every micro dispatch. */
470
477
  export declare function bindPrReviewTriggerLedger(directory: string, sessionID: string, input: unknown): Promise<PrWorkflowGateState>;
471
478
  export declare function assertPrReviewArtifactBoundary(directory: string, sessionID: string, runId: string, boundary: PrReviewArtifactBoundary, findingIds: string[]): Promise<PrWorkflowGateState>;