opencode-swarm 7.117.0 → 7.118.1
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.
- package/dist/cli/{config-doctor-htzxe394.js → config-doctor-p73yfdz0.js} +2 -2
- package/dist/cli/{core-zg8s1jwx.js → core-gf1t2jmn.js} +2 -1
- package/dist/cli/{curator-fr2m5hna.js → curator-8hfdh6cr.js} +14 -13
- package/dist/cli/{curator-drift-7p2ky1th.js → curator-drift-nn71xfz6.js} +2 -1
- package/dist/cli/{curator-llm-factory-m0kvna8n.js → curator-llm-factory-exrqs5ax.js} +14 -13
- package/dist/cli/{evidence-summary-service-bwt6drb3.js → evidence-summary-service-cy3k37je.js} +3 -2
- package/dist/cli/{guardrail-explain-xjgk822d.js → guardrail-explain-0rzn7wy4.js} +15 -14
- package/dist/cli/{guardrail-log-dzbqcgz9.js → guardrail-log-qjqgg7pz.js} +3 -3
- package/dist/cli/{hive-promoter-zpk5jmx0.js → hive-promoter-56zm6jfy.js} +19 -13
- package/dist/cli/{index-m7hc7nn7.js → index-11q1t6g0.js} +1 -1
- package/dist/cli/{index-dc3j6jmk.js → index-5hze8ztj.js} +10 -21
- package/dist/cli/{index-m43zgtjn.js → index-bcg89pt8.js} +1 -1
- package/dist/cli/{index-n3sm9ewn.js → index-ez0763de.js} +2 -2
- package/dist/cli/{index-8j5d3ytd.js → index-g2wrs7jy.js} +1 -1
- package/dist/cli/{index-af94ke83.js → index-jbdgpqpj.js} +3 -3
- package/dist/cli/{index-pgtqxat4.js → index-m90weyvs.js} +16 -15
- package/dist/cli/{index-vkdr12ek.js → index-ms18nybj.js} +1941 -1362
- package/dist/cli/{index-xdsd2hma.js → index-p45sshb5.js} +7 -5
- package/dist/cli/{index-nvc0nsvg.js → index-pdk1n8yh.js} +2 -0
- package/dist/cli/{index-c9m5skgs.js → index-pjhfe7c3.js} +2 -2
- package/dist/cli/{index-rdwfqhp7.js → index-q4kgsvdd.js} +7 -4
- package/dist/cli/{index-aws8yhwq.js → index-qx5z58a7.js} +19 -31
- package/dist/cli/{index-hskmya46.js → index-r2ysfdet.js} +7 -29
- package/dist/cli/{index-scww5b77.js → index-vwvkpg0d.js} +4 -1
- package/dist/cli/{index-4f4zv8pb.js → index-wpgv6hht.js} +25 -1
- package/dist/cli/index-ye3fndsw.js +30 -0
- package/dist/cli/index.js +14 -13
- package/dist/cli/{knowledge-escalator-bmk725p4.js → knowledge-escalator-gt1q632m.js} +4 -4
- package/dist/cli/{knowledge-events-px14n75v.js → knowledge-events-0bjdtdsb.js} +2 -2
- package/dist/cli/{knowledge-store-z9znvtn2.js → knowledge-store-fm2300xf.js} +7 -2
- package/dist/cli/{knowledge-validator-7r5t821g.js → knowledge-validator-91kx3eqv.js} +3 -3
- package/dist/cli/{schema-bqn7g3ez.js → schema-7c484wjz.js} +1 -1
- package/dist/cli/{skill-generator-4d3w8sqt.js → skill-generator-3f8dqjj2.js} +6 -5
- package/dist/commands/promote.d.ts +3 -0
- package/dist/commands/registry.d.ts +2 -2
- package/dist/config/schema.d.ts +8 -4
- package/dist/diff/semantic-classifier.d.ts +1 -1
- package/dist/hooks/curator-postmortem.d.ts +1 -1
- package/dist/hooks/hive-policy.d.ts +81 -0
- package/dist/hooks/hive-promoter.d.ts +147 -28
- package/dist/hooks/hive-transaction.d.ts +113 -0
- package/dist/hooks/knowledge-curator.d.ts +4 -5
- package/dist/hooks/knowledge-events.d.ts +2 -1
- package/dist/hooks/knowledge-store.d.ts +6 -5
- package/dist/hooks/knowledge-types.d.ts +87 -0
- package/dist/index.js +352 -342
- package/dist/knowledge/hive-paths.d.ts +51 -0
- package/dist/services/knowledge-diagnostics.d.ts +18 -0
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-11q1t6g0.js";
|
|
16
|
+
import"./index-pdk1n8yh.js";
|
|
17
17
|
import"./index-bfwt3abw.js";
|
|
18
18
|
import"./index-5e4e2hvv.js";
|
|
19
19
|
import"./index-p0arc26j.js";
|
|
@@ -14,7 +14,8 @@ import {
|
|
|
14
14
|
resolveWorktreeBaseDir,
|
|
15
15
|
shortenWorktreePath,
|
|
16
16
|
writeLaneProfileToDiskReal
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-q4kgsvdd.js";
|
|
18
|
+
import"./index-ye3fndsw.js";
|
|
18
19
|
import"./index-5e4e2hvv.js";
|
|
19
20
|
import"./index-p0arc26j.js";
|
|
20
21
|
import"./index-zgwm4ryv.js";
|
|
@@ -14,28 +14,29 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-ms18nybj.js";
|
|
18
18
|
import"./index-nprawcc0.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-g2wrs7jy.js";
|
|
20
20
|
import"./index-c8s9a3zh.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
21
|
+
import"./index-11q1t6g0.js";
|
|
22
|
+
import"./index-pdk1n8yh.js";
|
|
23
|
+
import"./index-p45sshb5.js";
|
|
24
|
+
import"./index-vwvkpg0d.js";
|
|
25
25
|
import"./index-4905hd2m.js";
|
|
26
26
|
import"./index-5bcrp3bc.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
27
|
+
import"./index-r2ysfdet.js";
|
|
28
|
+
import"./index-pjhfe7c3.js";
|
|
29
|
+
import"./index-jbdgpqpj.js";
|
|
30
|
+
import"./index-5hze8ztj.js";
|
|
31
|
+
import"./index-qx5z58a7.js";
|
|
32
32
|
import"./index-bfwt3abw.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-wpgv6hht.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
|
-
import"./index-
|
|
38
|
+
import"./index-q4kgsvdd.js";
|
|
39
|
+
import"./index-ye3fndsw.js";
|
|
39
40
|
import"./index-kzj3fp7c.js";
|
|
40
41
|
import"./index-5e4e2hvv.js";
|
|
41
42
|
import"./index-p0arc26j.js";
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ms18nybj.js";
|
|
5
5
|
import"./index-nprawcc0.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-g2wrs7jy.js";
|
|
7
7
|
import"./index-c8s9a3zh.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
8
|
+
import"./index-11q1t6g0.js";
|
|
9
|
+
import"./index-pdk1n8yh.js";
|
|
10
|
+
import"./index-p45sshb5.js";
|
|
11
|
+
import"./index-vwvkpg0d.js";
|
|
12
12
|
import"./index-4905hd2m.js";
|
|
13
13
|
import"./index-5bcrp3bc.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
14
|
+
import"./index-r2ysfdet.js";
|
|
15
|
+
import"./index-pjhfe7c3.js";
|
|
16
|
+
import"./index-jbdgpqpj.js";
|
|
17
|
+
import"./index-5hze8ztj.js";
|
|
18
|
+
import"./index-qx5z58a7.js";
|
|
19
19
|
import"./index-bfwt3abw.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-wpgv6hht.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
|
-
import"./index-
|
|
25
|
+
import"./index-q4kgsvdd.js";
|
|
26
|
+
import"./index-ye3fndsw.js";
|
|
26
27
|
import"./index-kzj3fp7c.js";
|
|
27
28
|
import"./index-5e4e2hvv.js";
|
|
28
29
|
import"./index-p0arc26j.js";
|
package/dist/cli/{evidence-summary-service-bwt6drb3.js → evidence-summary-service-cy3k37je.js}
RENAMED
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-p45sshb5.js";
|
|
10
|
+
import"./index-vwvkpg0d.js";
|
|
11
11
|
import"./index-q1exe2b3.js";
|
|
12
|
+
import"./index-ye3fndsw.js";
|
|
12
13
|
import"./index-kzj3fp7c.js";
|
|
13
14
|
import"./index-5e4e2hvv.js";
|
|
14
15
|
import"./index-p0arc26j.js";
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-ez0763de.js";
|
|
5
|
+
import"./index-ms18nybj.js";
|
|
6
6
|
import"./index-nprawcc0.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-g2wrs7jy.js";
|
|
8
8
|
import"./index-c8s9a3zh.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
9
|
+
import"./index-11q1t6g0.js";
|
|
10
|
+
import"./index-pdk1n8yh.js";
|
|
11
|
+
import"./index-p45sshb5.js";
|
|
12
|
+
import"./index-vwvkpg0d.js";
|
|
13
13
|
import"./index-4905hd2m.js";
|
|
14
14
|
import"./index-5bcrp3bc.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
15
|
+
import"./index-r2ysfdet.js";
|
|
16
|
+
import"./index-pjhfe7c3.js";
|
|
17
|
+
import"./index-jbdgpqpj.js";
|
|
18
|
+
import"./index-5hze8ztj.js";
|
|
19
|
+
import"./index-qx5z58a7.js";
|
|
20
20
|
import"./index-bfwt3abw.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-wpgv6hht.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
|
-
import"./index-
|
|
26
|
+
import"./index-q4kgsvdd.js";
|
|
27
|
+
import"./index-ye3fndsw.js";
|
|
27
28
|
import"./index-kzj3fp7c.js";
|
|
28
29
|
import"./index-5e4e2hvv.js";
|
|
29
30
|
import"./index-p0arc26j.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-bcg89pt8.js";
|
|
5
|
+
import"./index-g2wrs7jy.js";
|
|
6
|
+
import"./index-pdk1n8yh.js";
|
|
7
7
|
import"./index-bfwt3abw.js";
|
|
8
8
|
import"./index-5e4e2hvv.js";
|
|
9
9
|
import"./index-p0arc26j.js";
|
|
@@ -2,32 +2,36 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals1 as _internals,
|
|
4
4
|
checkHivePromotions,
|
|
5
|
+
countDistinctProjects,
|
|
5
6
|
createHivePromoterHook,
|
|
6
7
|
isHiveEligible,
|
|
7
8
|
promoteFromSwarm,
|
|
8
9
|
promoteToHive
|
|
9
|
-
} from "./index-
|
|
10
|
+
} from "./index-ms18nybj.js";
|
|
10
11
|
import"./index-nprawcc0.js";
|
|
11
|
-
import"./index-
|
|
12
|
+
import"./index-g2wrs7jy.js";
|
|
12
13
|
import"./index-c8s9a3zh.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
14
|
+
import"./index-11q1t6g0.js";
|
|
15
|
+
import"./index-pdk1n8yh.js";
|
|
16
|
+
import"./index-p45sshb5.js";
|
|
17
|
+
import"./index-vwvkpg0d.js";
|
|
17
18
|
import"./index-4905hd2m.js";
|
|
18
19
|
import"./index-5bcrp3bc.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import
|
|
20
|
+
import"./index-r2ysfdet.js";
|
|
21
|
+
import"./index-pjhfe7c3.js";
|
|
22
|
+
import"./index-jbdgpqpj.js";
|
|
23
|
+
import"./index-5hze8ztj.js";
|
|
24
|
+
import {
|
|
25
|
+
resolveHiveKnowledgePath
|
|
26
|
+
} from "./index-qx5z58a7.js";
|
|
24
27
|
import"./index-bfwt3abw.js";
|
|
25
|
-
import"./index-
|
|
28
|
+
import"./index-wpgv6hht.js";
|
|
26
29
|
import"./index-vxv732ex.js";
|
|
27
30
|
import"./index-8fwhhayc.js";
|
|
28
31
|
import"./index-q1exe2b3.js";
|
|
29
32
|
import"./index-n6fa2hhk.js";
|
|
30
|
-
import"./index-
|
|
33
|
+
import"./index-q4kgsvdd.js";
|
|
34
|
+
import"./index-ye3fndsw.js";
|
|
31
35
|
import"./index-kzj3fp7c.js";
|
|
32
36
|
import"./index-5e4e2hvv.js";
|
|
33
37
|
import"./index-p0arc26j.js";
|
|
@@ -43,10 +47,12 @@ import"./index-vvk2g744.js";
|
|
|
43
47
|
import"./index-qe3v54nb.js";
|
|
44
48
|
import"./index-a76rekgs.js";
|
|
45
49
|
export {
|
|
50
|
+
resolveHiveKnowledgePath,
|
|
46
51
|
promoteToHive,
|
|
47
52
|
promoteFromSwarm,
|
|
48
53
|
isHiveEligible,
|
|
49
54
|
createHivePromoterHook,
|
|
55
|
+
countDistinctProjects,
|
|
50
56
|
checkHivePromotions,
|
|
51
57
|
_internals
|
|
52
58
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
resolveHiveEventsPath,
|
|
3
4
|
resolveKnowledgeStoreDir
|
|
4
|
-
} from "./index-
|
|
5
|
+
} from "./index-wpgv6hht.js";
|
|
5
6
|
import {
|
|
6
7
|
init_logger,
|
|
7
8
|
warn
|
|
@@ -22,7 +23,6 @@ var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
|
|
|
22
23
|
import { randomUUID } from "crypto";
|
|
23
24
|
import { existsSync } from "fs";
|
|
24
25
|
import { appendFile, mkdir, readFile, stat } from "fs/promises";
|
|
25
|
-
import * as os from "os";
|
|
26
26
|
import * as path from "path";
|
|
27
27
|
init_logger();
|
|
28
28
|
var KNOWLEDGE_EVENT_SCHEMA_VERSION = 1;
|
|
@@ -44,19 +44,7 @@ function resolveKnowledgeEventsPath(directory) {
|
|
|
44
44
|
function resolveKnowledgeCounterBaselinePath(directory) {
|
|
45
45
|
return path.join(resolveKnowledgeStoreDir(directory), "knowledge-counter-baseline.json");
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
const platform = process.platform;
|
|
49
|
-
const home = process.env.HOME || os.homedir();
|
|
50
|
-
let dir;
|
|
51
|
-
if (platform === "win32") {
|
|
52
|
-
dir = path.join(process.env.LOCALAPPDATA || path.join(home, "AppData", "Local"), "opencode-swarm", "Data");
|
|
53
|
-
} else if (platform === "darwin") {
|
|
54
|
-
dir = path.join(home, "Library", "Application Support", "opencode-swarm");
|
|
55
|
-
} else {
|
|
56
|
-
dir = path.join(process.env.XDG_DATA_HOME || path.join(home, ".local", "share"), "opencode-swarm");
|
|
57
|
-
}
|
|
58
|
-
return path.join(dir, "shared-knowledge-events.jsonl");
|
|
59
|
-
}
|
|
47
|
+
var resolveHiveEventsPath2 = resolveHiveEventsPath;
|
|
60
48
|
function resolveLegacyApplicationLogPath(directory) {
|
|
61
49
|
return path.join(resolveKnowledgeStoreDir(directory), "knowledge-application.jsonl");
|
|
62
50
|
}
|
|
@@ -117,13 +105,14 @@ async function recordKnowledgeEvent(directory, event) {
|
|
|
117
105
|
}
|
|
118
106
|
async function appendHiveKnowledgeEvent(event) {
|
|
119
107
|
const populated = withDefaults(event);
|
|
120
|
-
const filePath =
|
|
108
|
+
const filePath = resolveHiveEventsPath2();
|
|
121
109
|
const dirPath = path.dirname(filePath);
|
|
122
110
|
await mkdir(dirPath, { recursive: true });
|
|
123
111
|
let release;
|
|
124
112
|
try {
|
|
125
113
|
release = await import_proper_lockfile.default.lock(dirPath, {
|
|
126
|
-
retries: { retries: 200, minTimeout: 10, maxTimeout: 100 }
|
|
114
|
+
retries: { retries: 200, minTimeout: 10, maxTimeout: 100 },
|
|
115
|
+
stale: 5000
|
|
127
116
|
});
|
|
128
117
|
await appendFile(filePath, `${JSON.stringify(populated)}
|
|
129
118
|
`, "utf-8");
|
|
@@ -177,7 +166,7 @@ async function readKnowledgeEvents(directory, maxEvents) {
|
|
|
177
166
|
return out;
|
|
178
167
|
}
|
|
179
168
|
async function readHiveKnowledgeEvents() {
|
|
180
|
-
const filePath =
|
|
169
|
+
const filePath = resolveHiveEventsPath2();
|
|
181
170
|
if (!existsSync(filePath))
|
|
182
171
|
return [];
|
|
183
172
|
const content = await readFile(filePath, "utf-8");
|
|
@@ -594,7 +583,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
594
583
|
deltas.push({ id, delta });
|
|
595
584
|
}
|
|
596
585
|
if (deltas.length > 0) {
|
|
597
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
586
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-fm2300xf.js");
|
|
598
587
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
599
588
|
}
|
|
600
589
|
return {
|
|
@@ -622,11 +611,11 @@ var _internals = {
|
|
|
622
611
|
applyKnowledgeVerdictFeedback,
|
|
623
612
|
newTraceId,
|
|
624
613
|
newEventId,
|
|
625
|
-
resolveHiveEventsPath,
|
|
614
|
+
resolveHiveEventsPath: resolveHiveEventsPath2,
|
|
626
615
|
appendHiveKnowledgeEvent,
|
|
627
616
|
recordHiveKnowledgeEvent,
|
|
628
617
|
readHiveKnowledgeEvents,
|
|
629
618
|
mergeRollupInto
|
|
630
619
|
};
|
|
631
620
|
|
|
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 };
|
|
621
|
+
export { KNOWLEDGE_EVENT_SCHEMA_VERSION, MAX_EVENT_LOG_ENTRIES, RECEIPT_EVENT_TYPES, resolveKnowledgeEventsPath, resolveKnowledgeCounterBaselinePath, resolveHiveEventsPath2 as resolveHiveEventsPath, resolveLegacyApplicationLogPath, newTraceId, newEventId, appendKnowledgeEvent, recordKnowledgeEvent, appendHiveKnowledgeEvent, recordHiveKnowledgeEvent, readKnowledgeEvents, readHiveKnowledgeEvents, readLegacyApplicationRecords, MAX_VIOLATION_TIMESTAMPS, recomputeCounters, countViolationsInWindow, countEntryViolationsInWindow, countEntryContradictionsInWindow, readKnowledgeCounterRollups, effectiveRetrievalOutcomes, applyKnowledgeVerdictFeedback, _internals };
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-ms18nybj.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-g2wrs7jy.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
countEntryViolationsInWindow,
|
|
5
5
|
readKnowledgeEvents,
|
|
6
6
|
recordKnowledgeEvent
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-5hze8ztj.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-
|
|
15
|
+
} from "./index-qx5z58a7.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-
|
|
191
|
+
const { quarantineEntry } = await import("./knowledge-validator-91kx3eqv.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 {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ez0763de.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bcg89pt8.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -83,32 +83,33 @@ import {
|
|
|
83
83
|
handleWriteRetroCommand,
|
|
84
84
|
normalizeSwarmCommandInput,
|
|
85
85
|
resolveCommand
|
|
86
|
-
} from "./index-
|
|
86
|
+
} from "./index-ms18nybj.js";
|
|
87
87
|
import"./index-nprawcc0.js";
|
|
88
|
-
import"./index-
|
|
88
|
+
import"./index-g2wrs7jy.js";
|
|
89
89
|
import"./index-c8s9a3zh.js";
|
|
90
|
-
import"./index-
|
|
90
|
+
import"./index-11q1t6g0.js";
|
|
91
91
|
import {
|
|
92
92
|
AGENT_TOOL_MAP,
|
|
93
93
|
ORCHESTRATOR_NAME,
|
|
94
94
|
stripKnownSwarmPrefix
|
|
95
|
-
} from "./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
95
|
+
} from "./index-pdk1n8yh.js";
|
|
96
|
+
import"./index-p45sshb5.js";
|
|
97
|
+
import"./index-vwvkpg0d.js";
|
|
98
98
|
import"./index-4905hd2m.js";
|
|
99
99
|
import"./index-5bcrp3bc.js";
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
100
|
+
import"./index-r2ysfdet.js";
|
|
101
|
+
import"./index-pjhfe7c3.js";
|
|
102
|
+
import"./index-jbdgpqpj.js";
|
|
103
|
+
import"./index-5hze8ztj.js";
|
|
104
|
+
import"./index-qx5z58a7.js";
|
|
105
105
|
import"./index-bfwt3abw.js";
|
|
106
|
-
import"./index-
|
|
106
|
+
import"./index-wpgv6hht.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
|
-
import"./index-
|
|
111
|
+
import"./index-q4kgsvdd.js";
|
|
112
|
+
import"./index-ye3fndsw.js";
|
|
112
113
|
import"./index-kzj3fp7c.js";
|
|
113
114
|
import"./index-5e4e2hvv.js";
|
|
114
115
|
import"./index-p0arc26j.js";
|