opencode-swarm 7.116.0 → 7.117.0

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 (52) hide show
  1. package/.opencode/skills/commit-pr/SKILL.md +60 -579
  2. package/dist/cli/{curator-drift-c0by7063.js → curator-drift-7p2ky1th.js} +2 -2
  3. package/dist/cli/{curator-7s5yw6hw.js → curator-fr2m5hna.js} +13 -13
  4. package/dist/cli/{curator-llm-factory-x96dr0zf.js → curator-llm-factory-m0kvna8n.js} +13 -13
  5. package/dist/cli/{evidence-summary-service-ef6kgtev.js → evidence-summary-service-bwt6drb3.js} +5 -5
  6. package/dist/cli/{gate-evidence-thqt0beq.js → gate-evidence-j2m4cd85.js} +3 -2
  7. package/dist/cli/{guardrail-explain-kwqfkwch.js → guardrail-explain-xjgk822d.js} +14 -14
  8. package/dist/cli/{hive-promoter-rkkx40qv.js → hive-promoter-zpk5jmx0.js} +13 -13
  9. package/dist/cli/{index-bbsaxnj5.js → index-0pfqcjp6.js} +4 -0
  10. package/dist/cli/{index-qgeeyy75.js → index-4f4zv8pb.js} +29 -7
  11. package/dist/cli/{index-a6f8b0vn.js → index-5bcrp3bc.js} +1 -1
  12. package/dist/cli/{index-81vzywh3.js → index-abjjn4yh.js} +1 -1
  13. package/dist/cli/{index-8bvh0qfa.js → index-af94ke83.js} +3 -3
  14. package/dist/cli/{index-k5ey429j.js → index-aws8yhwq.js} +7 -7
  15. package/dist/cli/{index-jyetmzcn.js → index-c9m5skgs.js} +3 -3
  16. package/dist/cli/{index-3yh67t1h.js → index-dc3j6jmk.js} +5 -4
  17. package/dist/cli/{index-jtqkh8jf.js → index-fsrp8wp3.js} +10 -1
  18. package/dist/cli/{index-s385axt1.js → index-hskmya46.js} +3 -3
  19. package/dist/cli/{index-wh8949ef.js → index-kzj3fp7c.js} +3 -3
  20. package/dist/cli/{index-tvgvb5pa.js → index-n3sm9ewn.js} +2 -2
  21. package/dist/cli/{index-3b8n3dbd.js → index-pgtqxat4.js} +14 -14
  22. package/dist/cli/{index-me46ffm2.js → index-vkdr12ek.js} +1700 -936
  23. package/dist/cli/{index-cnrhj56z.js → index-xdsd2hma.js} +6 -6
  24. package/dist/cli/index.js +13 -13
  25. package/dist/cli/{knowledge-escalator-0bq62d34.js → knowledge-escalator-bmk725p4.js} +6 -6
  26. package/dist/cli/{knowledge-events-cwwky393.js → knowledge-events-px14n75v.js} +4 -3
  27. package/dist/cli/{knowledge-store-q8x4h82m.js → knowledge-store-z9znvtn2.js} +4 -4
  28. package/dist/cli/{knowledge-validator-zr0djm02.js → knowledge-validator-7r5t821g.js} +5 -5
  29. package/dist/cli/{pending-delegations-rr9x47rd.js → pending-delegations-9cn17983.js} +2 -2
  30. package/dist/cli/{pr-subscriptions-cny2jz2d.js → pr-subscriptions-8a6jwek2.js} +3 -3
  31. package/dist/cli/{skill-generator-mz267btk.js → skill-generator-4d3w8sqt.js} +7 -7
  32. package/dist/commands/close.d.ts +12 -0
  33. package/dist/commands/link.d.ts +7 -4
  34. package/dist/commands/registry.d.ts +6 -6
  35. package/dist/commands/reset-backup.d.ts +32 -0
  36. package/dist/commands/reset-session.d.ts +2 -0
  37. package/dist/commands/reset.d.ts +9 -0
  38. package/dist/commands/unlink.d.ts +12 -5
  39. package/dist/evidence/task-file.d.ts +7 -0
  40. package/dist/hooks/knowledge-events.d.ts +2 -0
  41. package/dist/hooks/knowledge-link.d.ts +31 -4
  42. package/dist/index.js +240 -229
  43. package/dist/knowledge/cohort-identity.d.ts +103 -0
  44. package/dist/knowledge/config-fingerprint.d.ts +57 -0
  45. package/dist/knowledge/family-manifest.d.ts +50 -0
  46. package/dist/knowledge/family-migration.d.ts +109 -0
  47. package/dist/knowledge/identity.d.ts +12 -2
  48. package/dist/knowledge/index.d.ts +1 -0
  49. package/dist/services/knowledge-diagnostics.d.ts +27 -0
  50. package/dist/services/status-service.d.ts +13 -0
  51. package/dist/utils/swarm-artifact-cache.d.ts +13 -0
  52. package/package.json +1 -1
@@ -8,8 +8,7 @@ import {
8
8
  import {
9
9
  readSwarmFileAsync,
10
10
  validateSwarmPath
11
- } from "./index-wh8949ef.js";
12
- import"./index-jtqkh8jf.js";
11
+ } from "./index-kzj3fp7c.js";
13
12
  import"./index-5e4e2hvv.js";
14
13
  import"./index-p0arc26j.js";
15
14
  import {
@@ -17,6 +16,7 @@ import {
17
16
  warn
18
17
  } from "./index-zgwm4ryv.js";
19
18
  import"./index-293f68mj.js";
19
+ import"./index-fsrp8wp3.js";
20
20
  import"./index-qe3v54nb.js";
21
21
  import"./index-a76rekgs.js";
22
22
 
@@ -14,38 +14,38 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-me46ffm2.js";
17
+ } from "./index-vkdr12ek.js";
18
18
  import"./index-nprawcc0.js";
19
19
  import"./index-8j5d3ytd.js";
20
20
  import"./index-c8s9a3zh.js";
21
21
  import"./index-m7hc7nn7.js";
22
22
  import"./index-nvc0nsvg.js";
23
- import"./index-cnrhj56z.js";
23
+ import"./index-xdsd2hma.js";
24
24
  import"./index-scww5b77.js";
25
25
  import"./index-4905hd2m.js";
26
- import"./index-a6f8b0vn.js";
27
- import"./index-s385axt1.js";
28
- import"./index-jyetmzcn.js";
29
- import"./index-8bvh0qfa.js";
30
- import"./index-3yh67t1h.js";
31
- import"./index-k5ey429j.js";
26
+ import"./index-5bcrp3bc.js";
27
+ import"./index-hskmya46.js";
28
+ import"./index-c9m5skgs.js";
29
+ import"./index-af94ke83.js";
30
+ import"./index-dc3j6jmk.js";
31
+ import"./index-aws8yhwq.js";
32
32
  import"./index-bfwt3abw.js";
33
- import"./index-qgeeyy75.js";
33
+ import"./index-4f4zv8pb.js";
34
34
  import"./index-vxv732ex.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
37
37
  import"./index-n6fa2hhk.js";
38
38
  import"./index-rdwfqhp7.js";
39
- import"./index-wh8949ef.js";
40
- import"./index-jtqkh8jf.js";
39
+ import"./index-kzj3fp7c.js";
41
40
  import"./index-5e4e2hvv.js";
42
41
  import"./index-p0arc26j.js";
43
42
  import"./index-zgwm4ryv.js";
44
43
  import"./index-dqh3zhhc.js";
45
- import"./index-81vzywh3.js";
46
- import"./index-bbsaxnj5.js";
44
+ import"./index-abjjn4yh.js";
45
+ import"./index-0pfqcjp6.js";
47
46
  import"./index-293f68mj.js";
48
47
  import"./index-42cx6g2h.js";
48
+ import"./index-fsrp8wp3.js";
49
49
  import"./index-q2rrv0cy.js";
50
50
  import"./index-vvk2g744.js";
51
51
  import"./index-qe3v54nb.js";
@@ -1,38 +1,38 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-me46ffm2.js";
4
+ } from "./index-vkdr12ek.js";
5
5
  import"./index-nprawcc0.js";
6
6
  import"./index-8j5d3ytd.js";
7
7
  import"./index-c8s9a3zh.js";
8
8
  import"./index-m7hc7nn7.js";
9
9
  import"./index-nvc0nsvg.js";
10
- import"./index-cnrhj56z.js";
10
+ import"./index-xdsd2hma.js";
11
11
  import"./index-scww5b77.js";
12
12
  import"./index-4905hd2m.js";
13
- import"./index-a6f8b0vn.js";
14
- import"./index-s385axt1.js";
15
- import"./index-jyetmzcn.js";
16
- import"./index-8bvh0qfa.js";
17
- import"./index-3yh67t1h.js";
18
- import"./index-k5ey429j.js";
13
+ import"./index-5bcrp3bc.js";
14
+ import"./index-hskmya46.js";
15
+ import"./index-c9m5skgs.js";
16
+ import"./index-af94ke83.js";
17
+ import"./index-dc3j6jmk.js";
18
+ import"./index-aws8yhwq.js";
19
19
  import"./index-bfwt3abw.js";
20
- import"./index-qgeeyy75.js";
20
+ import"./index-4f4zv8pb.js";
21
21
  import"./index-vxv732ex.js";
22
22
  import"./index-8fwhhayc.js";
23
23
  import"./index-q1exe2b3.js";
24
24
  import"./index-n6fa2hhk.js";
25
25
  import"./index-rdwfqhp7.js";
26
- import"./index-wh8949ef.js";
27
- import"./index-jtqkh8jf.js";
26
+ import"./index-kzj3fp7c.js";
28
27
  import"./index-5e4e2hvv.js";
29
28
  import"./index-p0arc26j.js";
30
29
  import"./index-zgwm4ryv.js";
31
30
  import"./index-dqh3zhhc.js";
32
- import"./index-81vzywh3.js";
33
- import"./index-bbsaxnj5.js";
31
+ import"./index-abjjn4yh.js";
32
+ import"./index-0pfqcjp6.js";
34
33
  import"./index-293f68mj.js";
35
34
  import"./index-42cx6g2h.js";
35
+ import"./index-fsrp8wp3.js";
36
36
  import"./index-q2rrv0cy.js";
37
37
  import"./index-vvk2g744.js";
38
38
  import"./index-qe3v54nb.js";
@@ -6,20 +6,20 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-cnrhj56z.js";
9
+ } from "./index-xdsd2hma.js";
10
10
  import"./index-scww5b77.js";
11
11
  import"./index-q1exe2b3.js";
12
- import"./index-wh8949ef.js";
13
- import"./index-jtqkh8jf.js";
12
+ import"./index-kzj3fp7c.js";
14
13
  import"./index-5e4e2hvv.js";
15
14
  import"./index-p0arc26j.js";
16
15
  import {
17
16
  log
18
17
  } from "./index-zgwm4ryv.js";
19
- import"./index-81vzywh3.js";
20
- import"./index-bbsaxnj5.js";
18
+ import"./index-abjjn4yh.js";
19
+ import"./index-0pfqcjp6.js";
21
20
  import"./index-293f68mj.js";
22
21
  import"./index-42cx6g2h.js";
22
+ import"./index-fsrp8wp3.js";
23
23
  import"./index-q2rrv0cy.js";
24
24
  import"./index-vvk2g744.js";
25
25
  import"./index-qe3v54nb.js";
@@ -9,10 +9,11 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-81vzywh3.js";
13
- import"./index-bbsaxnj5.js";
12
+ } from "./index-abjjn4yh.js";
13
+ import"./index-0pfqcjp6.js";
14
14
  import"./index-293f68mj.js";
15
15
  import"./index-42cx6g2h.js";
16
+ import"./index-fsrp8wp3.js";
16
17
  import"./index-q2rrv0cy.js";
17
18
  import"./index-vvk2g744.js";
18
19
  import"./index-qe3v54nb.js";
@@ -1,39 +1,39 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-tvgvb5pa.js";
5
- import"./index-me46ffm2.js";
4
+ } from "./index-n3sm9ewn.js";
5
+ import"./index-vkdr12ek.js";
6
6
  import"./index-nprawcc0.js";
7
7
  import"./index-8j5d3ytd.js";
8
8
  import"./index-c8s9a3zh.js";
9
9
  import"./index-m7hc7nn7.js";
10
10
  import"./index-nvc0nsvg.js";
11
- import"./index-cnrhj56z.js";
11
+ import"./index-xdsd2hma.js";
12
12
  import"./index-scww5b77.js";
13
13
  import"./index-4905hd2m.js";
14
- import"./index-a6f8b0vn.js";
15
- import"./index-s385axt1.js";
16
- import"./index-jyetmzcn.js";
17
- import"./index-8bvh0qfa.js";
18
- import"./index-3yh67t1h.js";
19
- import"./index-k5ey429j.js";
14
+ import"./index-5bcrp3bc.js";
15
+ import"./index-hskmya46.js";
16
+ import"./index-c9m5skgs.js";
17
+ import"./index-af94ke83.js";
18
+ import"./index-dc3j6jmk.js";
19
+ import"./index-aws8yhwq.js";
20
20
  import"./index-bfwt3abw.js";
21
- import"./index-qgeeyy75.js";
21
+ import"./index-4f4zv8pb.js";
22
22
  import"./index-vxv732ex.js";
23
23
  import"./index-8fwhhayc.js";
24
24
  import"./index-q1exe2b3.js";
25
25
  import"./index-n6fa2hhk.js";
26
26
  import"./index-rdwfqhp7.js";
27
- import"./index-wh8949ef.js";
28
- import"./index-jtqkh8jf.js";
27
+ import"./index-kzj3fp7c.js";
29
28
  import"./index-5e4e2hvv.js";
30
29
  import"./index-p0arc26j.js";
31
30
  import"./index-zgwm4ryv.js";
32
31
  import"./index-dqh3zhhc.js";
33
- import"./index-81vzywh3.js";
34
- import"./index-bbsaxnj5.js";
32
+ import"./index-abjjn4yh.js";
33
+ import"./index-0pfqcjp6.js";
35
34
  import"./index-293f68mj.js";
36
35
  import"./index-42cx6g2h.js";
36
+ import"./index-fsrp8wp3.js";
37
37
  import"./index-q2rrv0cy.js";
38
38
  import"./index-vvk2g744.js";
39
39
  import"./index-qe3v54nb.js";
@@ -6,38 +6,38 @@ import {
6
6
  isHiveEligible,
7
7
  promoteFromSwarm,
8
8
  promoteToHive
9
- } from "./index-me46ffm2.js";
9
+ } from "./index-vkdr12ek.js";
10
10
  import"./index-nprawcc0.js";
11
11
  import"./index-8j5d3ytd.js";
12
12
  import"./index-c8s9a3zh.js";
13
13
  import"./index-m7hc7nn7.js";
14
14
  import"./index-nvc0nsvg.js";
15
- import"./index-cnrhj56z.js";
15
+ import"./index-xdsd2hma.js";
16
16
  import"./index-scww5b77.js";
17
17
  import"./index-4905hd2m.js";
18
- import"./index-a6f8b0vn.js";
19
- import"./index-s385axt1.js";
20
- import"./index-jyetmzcn.js";
21
- import"./index-8bvh0qfa.js";
22
- import"./index-3yh67t1h.js";
23
- import"./index-k5ey429j.js";
18
+ import"./index-5bcrp3bc.js";
19
+ import"./index-hskmya46.js";
20
+ import"./index-c9m5skgs.js";
21
+ import"./index-af94ke83.js";
22
+ import"./index-dc3j6jmk.js";
23
+ import"./index-aws8yhwq.js";
24
24
  import"./index-bfwt3abw.js";
25
- import"./index-qgeeyy75.js";
25
+ import"./index-4f4zv8pb.js";
26
26
  import"./index-vxv732ex.js";
27
27
  import"./index-8fwhhayc.js";
28
28
  import"./index-q1exe2b3.js";
29
29
  import"./index-n6fa2hhk.js";
30
30
  import"./index-rdwfqhp7.js";
31
- import"./index-wh8949ef.js";
32
- import"./index-jtqkh8jf.js";
31
+ import"./index-kzj3fp7c.js";
33
32
  import"./index-5e4e2hvv.js";
34
33
  import"./index-p0arc26j.js";
35
34
  import"./index-zgwm4ryv.js";
36
35
  import"./index-dqh3zhhc.js";
37
- import"./index-81vzywh3.js";
38
- import"./index-bbsaxnj5.js";
36
+ import"./index-abjjn4yh.js";
37
+ import"./index-0pfqcjp6.js";
39
38
  import"./index-293f68mj.js";
40
39
  import"./index-42cx6g2h.js";
40
+ import"./index-fsrp8wp3.js";
41
41
  import"./index-q2rrv0cy.js";
42
42
  import"./index-vvk2g744.js";
43
43
  import"./index-qe3v54nb.js";
@@ -2,6 +2,9 @@
2
2
  import {
3
3
  withEvidenceLock
4
4
  } from "./index-42cx6g2h.js";
5
+ import {
6
+ invalidateCachedArtifact
7
+ } from "./index-fsrp8wp3.js";
5
8
  import {
6
9
  bunWrite
7
10
  } from "./index-qe3v54nb.js";
@@ -29,6 +32,7 @@ async function atomicWriteFile(targetPath, content) {
29
32
  _internals.unlinkSync(tempPath);
30
33
  } catch {}
31
34
  }
35
+ invalidateCachedArtifact(targetPath);
32
36
  }
33
37
  function withTaskEvidenceLock(directory, taskId, agent, fn) {
34
38
  return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-zgwm4ryv.js";
6
6
  import {
7
7
  atomicWriteFile
8
- } from "./index-bbsaxnj5.js";
8
+ } from "./index-0pfqcjp6.js";
9
9
 
10
10
  // src/hooks/knowledge-link.ts
11
11
  import {
@@ -13,7 +13,8 @@ import {
13
13
  lstatSync,
14
14
  mkdirSync,
15
15
  readFileSync,
16
- rmSync
16
+ rmSync,
17
+ statSync
17
18
  } from "fs";
18
19
  import * as os from "os";
19
20
  import * as path from "path";
@@ -93,12 +94,19 @@ function readLinkPointer(directory) {
93
94
  const safeId = sanitizeLinkId(linkId);
94
95
  if (!safeId)
95
96
  return null;
97
+ const rawVersion = obj.version;
98
+ const version = rawVersion === 2 ? 2 : 1;
96
99
  return {
97
- version: 1,
100
+ version,
98
101
  linkId: safeId,
99
102
  name: typeof obj.name === "string" ? obj.name : undefined,
100
103
  createdAt: typeof obj.createdAt === "string" ? obj.createdAt : new Date(0).toISOString(),
101
- source: obj.source === "auto" ? "auto" : "manual"
104
+ source: obj.source === "auto" ? "auto" : "manual",
105
+ cohortId: typeof obj.cohortId === "string" ? obj.cohortId : undefined,
106
+ identitySource: obj.identitySource === "remote" || obj.identitySource === "git-common-dir" || obj.identitySource === "path" ? obj.identitySource : undefined,
107
+ degraded: typeof obj.degraded === "boolean" ? obj.degraded : undefined,
108
+ configFingerprint: typeof obj.configFingerprint === "string" ? obj.configFingerprint : undefined,
109
+ generation: typeof obj.generation === "number" ? obj.generation : undefined
102
110
  };
103
111
  } catch {
104
112
  return null;
@@ -170,11 +178,21 @@ async function removeLinkPointer(directory) {
170
178
  }
171
179
  }
172
180
  var _resolutionCache = new Map;
181
+ function pointerStatFingerprint(directory) {
182
+ const pointerPath = resolveLinkPointerPath(directory);
183
+ try {
184
+ const st = statSync(pointerPath);
185
+ return `${st.mtimeMs}:${st.ctimeMs}:${st.size}`;
186
+ } catch {
187
+ return null;
188
+ }
189
+ }
173
190
  function resolveKnowledgeStoreDir(directory) {
174
191
  const localSwarm = path.join(directory, ".swarm");
175
192
  const now = Date.now();
176
193
  const cached = _resolutionCache.get(directory);
177
- if (cached && now < cached.expires) {
194
+ const currentStat = pointerStatFingerprint(directory);
195
+ if (cached && now < cached.expires && cached.pointerStat === currentStat) {
178
196
  return cached.linkDir ?? localSwarm;
179
197
  }
180
198
  let linkDir = null;
@@ -198,7 +216,11 @@ function resolveKnowledgeStoreDir(directory) {
198
216
  if (oldest !== undefined)
199
217
  _resolutionCache.delete(oldest);
200
218
  }
201
- _resolutionCache.set(directory, { linkDir, expires: now + CACHE_TTL_MS });
219
+ _resolutionCache.set(directory, {
220
+ linkDir,
221
+ expires: now + CACHE_TTL_MS,
222
+ pointerStat: currentStat
223
+ });
202
224
  return linkDir ?? localSwarm;
203
225
  }
204
226
  function invalidateKnowledgeStoreDirCache(directory) {
@@ -212,4 +234,4 @@ function isLinked(directory) {
212
234
  return readLinkPointer(directory) !== null;
213
235
  }
214
236
 
215
- export { resolveLinkDir, sanitizeLinkId, readLinkPointer, writeLinkPointer, removeLinkPointer, resolveKnowledgeStoreDir, isLinked };
237
+ export { resolveLinkDir, sanitizeLinkId, readLinkPointer, getLinkedLocalKnowledgeStatus, writeLinkPointer, removeLinkPointer, resolveKnowledgeStoreDir, isLinked };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-wh8949ef.js";
4
+ } from "./index-kzj3fp7c.js";
5
5
  import {
6
6
  log
7
7
  } from "./index-zgwm4ryv.js";
@@ -3,7 +3,7 @@ import {
3
3
  atomicWriteFile,
4
4
  taskEvidencePath,
5
5
  withTaskEvidenceLock
6
- } from "./index-bbsaxnj5.js";
6
+ } from "./index-0pfqcjp6.js";
7
7
  import {
8
8
  exports_external
9
9
  } from "./index-293f68mj.js";
@@ -4,7 +4,7 @@ import {
4
4
  countEntryViolationsInWindow,
5
5
  readKnowledgeEvents,
6
6
  recordKnowledgeEvent
7
- } from "./index-3yh67t1h.js";
7
+ } from "./index-dc3j6jmk.js";
8
8
  import {
9
9
  jaccardBigram,
10
10
  readKnowledge,
@@ -12,7 +12,7 @@ import {
12
12
  resolveSwarmKnowledgePath,
13
13
  transactKnowledge,
14
14
  wordBigrams
15
- } from "./index-k5ey429j.js";
15
+ } from "./index-aws8yhwq.js";
16
16
  import {
17
17
  isActiveStatus
18
18
  } from "./index-bfwt3abw.js";
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
188
188
  alreadyInactive: true
189
189
  };
190
190
  }
191
- const { quarantineEntry } = await import("./knowledge-validator-zr0djm02.js");
191
+ const { quarantineEntry } = await import("./knowledge-validator-7r5t821g.js");
192
192
  await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
193
193
  return { quarantined: true, entryId, contradictionsInWindow: count };
194
194
  } catch {
@@ -4,17 +4,17 @@ import {
4
4
  } from "./index-bfwt3abw.js";
5
5
  import {
6
6
  resolveKnowledgeStoreDir
7
- } from "./index-qgeeyy75.js";
8
- import {
9
- readCachedParsedFile
10
- } from "./index-jtqkh8jf.js";
7
+ } from "./index-4f4zv8pb.js";
11
8
  import {
12
9
  init_logger,
13
10
  log
14
11
  } from "./index-zgwm4ryv.js";
15
12
  import {
16
13
  atomicWriteFile
17
- } from "./index-bbsaxnj5.js";
14
+ } from "./index-0pfqcjp6.js";
15
+ import {
16
+ readCachedParsedFile
17
+ } from "./index-fsrp8wp3.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-vvk2g744.js";
@@ -595,7 +595,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
595
595
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
596
596
  if (atFloor.length === 0 && recovered.length === 0)
597
597
  return;
598
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-cwwky393.js");
598
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-px14n75v.js");
599
599
  const rollups = await readKnowledgeCounterRollups(directory);
600
600
  const flagIds = new Set;
601
601
  for (const e of atFloor) {
@@ -662,7 +662,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
662
662
  });
663
663
  }
664
664
  if (action === "quarantine" && toQuarantine.length > 0) {
665
- const { quarantineEntry } = await import("./knowledge-validator-zr0djm02.js");
665
+ const { quarantineEntry } = await import("./knowledge-validator-7r5t821g.js");
666
666
  for (const { id } of toQuarantine) {
667
667
  await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
668
668
  log("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
@@ -6,17 +6,17 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  resolveSwarmRejectedPath,
8
8
  transactKnowledge
9
- } from "./index-k5ey429j.js";
9
+ } from "./index-aws8yhwq.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-qgeeyy75.js";
12
+ } from "./index-4f4zv8pb.js";
13
13
  import {
14
14
  init_logger,
15
15
  warn
16
16
  } from "./index-zgwm4ryv.js";
17
17
  import {
18
18
  atomicWriteFile
19
- } from "./index-bbsaxnj5.js";
19
+ } from "./index-0pfqcjp6.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-vvk2g744.js";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveKnowledgeStoreDir
4
- } from "./index-qgeeyy75.js";
4
+ } from "./index-4f4zv8pb.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
8
8
  } from "./index-zgwm4ryv.js";
9
9
  import {
10
10
  atomicWriteFile
11
- } from "./index-bbsaxnj5.js";
11
+ } from "./index-0pfqcjp6.js";
12
12
  import {
13
13
  require_proper_lockfile
14
14
  } from "./index-vvk2g744.js";
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
594
594
  deltas.push({ id, delta });
595
595
  }
596
596
  if (deltas.length > 0) {
597
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-q8x4h82m.js");
597
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-z9znvtn2.js");
598
598
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
599
599
  }
600
600
  return {
@@ -625,7 +625,8 @@ var _internals = {
625
625
  resolveHiveEventsPath,
626
626
  appendHiveKnowledgeEvent,
627
627
  recordHiveKnowledgeEvent,
628
- readHiveKnowledgeEvents
628
+ readHiveKnowledgeEvents,
629
+ mergeRollupInto
629
630
  };
630
631
 
631
632
  export { KNOWLEDGE_EVENT_SCHEMA_VERSION, MAX_EVENT_LOG_ENTRIES, RECEIPT_EVENT_TYPES, resolveKnowledgeEventsPath, resolveKnowledgeCounterBaselinePath, resolveHiveEventsPath, resolveLegacyApplicationLogPath, newTraceId, newEventId, appendKnowledgeEvent, recordKnowledgeEvent, appendHiveKnowledgeEvent, recordHiveKnowledgeEvent, readKnowledgeEvents, readHiveKnowledgeEvents, readLegacyApplicationRecords, MAX_VIOLATION_TIMESTAMPS, recomputeCounters, countViolationsInWindow, countEntryViolationsInWindow, countEntryContradictionsInWindow, readKnowledgeCounterRollups, effectiveRetrievalOutcomes, applyKnowledgeVerdictFeedback, _internals };
@@ -115,5 +115,14 @@ async function readCachedParsedFile(filePath, namespace, readText, parse) {
115
115
  }
116
116
  return cloneCachedValue(value);
117
117
  }
118
+ function invalidateCachedArtifact(filePath) {
119
+ const resolvedPath = path.resolve(filePath);
120
+ textCache.delete(resolvedPath);
121
+ const prefix = `${resolvedPath}\x00`;
122
+ for (const key of parsedCache.keys()) {
123
+ if (key.startsWith(prefix))
124
+ parsedCache.delete(key);
125
+ }
126
+ }
118
127
 
119
- export { readCachedTextFile, readCachedParsedFile };
128
+ export { readCachedTextFile, readCachedParsedFile, invalidateCachedArtifact };
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-jyetmzcn.js";
5
+ } from "./index-c9m5skgs.js";
6
6
  import {
7
7
  effectiveRetrievalOutcomes,
8
8
  readKnowledgeCounterRollups
9
- } from "./index-3yh67t1h.js";
9
+ } from "./index-dc3j6jmk.js";
10
10
  import {
11
11
  computeOutcomeSignal,
12
12
  readKnowledge,
13
13
  resolveHiveKnowledgePath,
14
14
  resolveSwarmKnowledgePath,
15
15
  transactKnowledge
16
- } from "./index-k5ey429j.js";
16
+ } from "./index-aws8yhwq.js";
17
17
  import {
18
18
  isActiveStatus
19
19
  } from "./index-bfwt3abw.js";
@@ -1,13 +1,13 @@
1
1
  // @bun
2
- import {
3
- readCachedTextFile
4
- } from "./index-jtqkh8jf.js";
5
2
  import {
6
3
  SwarmError
7
4
  } from "./index-5e4e2hvv.js";
8
5
  import {
9
6
  warn
10
7
  } from "./index-zgwm4ryv.js";
8
+ import {
9
+ readCachedTextFile
10
+ } from "./index-fsrp8wp3.js";
11
11
  import {
12
12
  bunFile
13
13
  } from "./index-qe3v54nb.js";
@@ -12,7 +12,7 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-me46ffm2.js";
15
+ } from "./index-vkdr12ek.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
@@ -279,7 +279,7 @@ function evaluateDestructiveDecision(rawCommand, cwd, declaredScope) {
279
279
  firingRule: "destructive_block: dd with /dev/zero|null|urandom (data wipe)"
280
280
  };
281
281
  }
282
- if (/^git\s+push\b.*?(--force|-f)\b/.test(seg)) {
282
+ if (/^git\s+push\b.*?(--force(?!-with-lease)|-f)\b/.test(seg)) {
283
283
  return {
284
284
  decision: "block",
285
285
  firingRule: "destructive_block: git push --force"
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-tvgvb5pa.js";
4
+ } from "./index-n3sm9ewn.js";
5
5
  import {
6
6
  handleGuardrailLog
7
7
  } from "./index-m43zgtjn.js";
@@ -83,7 +83,7 @@ import {
83
83
  handleWriteRetroCommand,
84
84
  normalizeSwarmCommandInput,
85
85
  resolveCommand
86
- } from "./index-me46ffm2.js";
86
+ } from "./index-vkdr12ek.js";
87
87
  import"./index-nprawcc0.js";
88
88
  import"./index-8j5d3ytd.js";
89
89
  import"./index-c8s9a3zh.js";
@@ -93,32 +93,32 @@ import {
93
93
  ORCHESTRATOR_NAME,
94
94
  stripKnownSwarmPrefix
95
95
  } from "./index-nvc0nsvg.js";
96
- import"./index-cnrhj56z.js";
96
+ import"./index-xdsd2hma.js";
97
97
  import"./index-scww5b77.js";
98
98
  import"./index-4905hd2m.js";
99
- import"./index-a6f8b0vn.js";
100
- import"./index-s385axt1.js";
101
- import"./index-jyetmzcn.js";
102
- import"./index-8bvh0qfa.js";
103
- import"./index-3yh67t1h.js";
104
- import"./index-k5ey429j.js";
99
+ import"./index-5bcrp3bc.js";
100
+ import"./index-hskmya46.js";
101
+ import"./index-c9m5skgs.js";
102
+ import"./index-af94ke83.js";
103
+ import"./index-dc3j6jmk.js";
104
+ import"./index-aws8yhwq.js";
105
105
  import"./index-bfwt3abw.js";
106
- import"./index-qgeeyy75.js";
106
+ import"./index-4f4zv8pb.js";
107
107
  import"./index-vxv732ex.js";
108
108
  import"./index-8fwhhayc.js";
109
109
  import"./index-q1exe2b3.js";
110
110
  import"./index-n6fa2hhk.js";
111
111
  import"./index-rdwfqhp7.js";
112
- import"./index-wh8949ef.js";
113
- import"./index-jtqkh8jf.js";
112
+ import"./index-kzj3fp7c.js";
114
113
  import"./index-5e4e2hvv.js";
115
114
  import"./index-p0arc26j.js";
116
115
  import"./index-zgwm4ryv.js";
117
116
  import"./index-dqh3zhhc.js";
118
- import"./index-81vzywh3.js";
119
- import"./index-bbsaxnj5.js";
117
+ import"./index-abjjn4yh.js";
118
+ import"./index-0pfqcjp6.js";
120
119
  import"./index-293f68mj.js";
121
120
  import"./index-42cx6g2h.js";
121
+ import"./index-fsrp8wp3.js";
122
122
  import"./index-q2rrv0cy.js";
123
123
  import"./index-vvk2g744.js";
124
124
  import"./index-qe3v54nb.js";