opencode-swarm 7.121.4 → 7.122.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.
- package/dist/cli/{curation-policy-10wnhpwn.js → curation-policy-cj1tpzr5.js} +2 -2
- package/dist/cli/{curator-3azybqrw.js → curator-3rze3pd4.js} +8 -8
- package/dist/cli/{curator-llm-factory-6rafny5e.js → curator-llm-factory-8rg0f77t.js} +8 -8
- package/dist/cli/{guardrail-explain-d1m747g5.js → guardrail-explain-hdsxa2c5.js} +9 -9
- package/dist/cli/{hive-promoter-4xnj3fdk.js → hive-promoter-dh38qd9m.js} +8 -8
- package/dist/cli/{index-5a3xsnzg.js → index-3r1w7xky.js} +1 -1
- package/dist/cli/{index-35xyj7gn.js → index-3sx27bxt.js} +26 -3
- package/dist/cli/{index-982hhpcm.js → index-68aggz0v.js} +1 -1
- package/dist/cli/{index-q0fv0xec.js → index-ahxrne50.js} +143 -84
- package/dist/cli/{index-x4fwtd59.js → index-gr7ssnj9.js} +3 -3
- package/dist/cli/{index-db82jxt7.js → index-j33zb3cx.js} +2 -2
- package/dist/cli/{index-2k6z335c.js → index-jzpv74mq.js} +9 -9
- package/dist/cli/{index-0f800qg7.js → index-ny13nr0x.js} +2 -2
- package/dist/cli/{index-j8349ac0.js → index-rkd6qwjh.js} +1 -1
- package/dist/cli/{index-ft6jw816.js → index-xdsj4qtd.js} +3 -3
- package/dist/cli/index.js +8 -8
- package/dist/cli/{knowledge-escalator-8ajq1fhb.js → knowledge-escalator-sya06p12.js} +3 -3
- package/dist/cli/{knowledge-events-2sjy3aa7.js → knowledge-events-xzps61a9.js} +3 -1
- package/dist/cli/{knowledge-store-27cesthc.js → knowledge-store-qg66a93n.js} +1 -1
- package/dist/cli/{knowledge-validator-9keh3p8j.js → knowledge-validator-gar6wv4f.js} +4 -4
- package/dist/cli/{scan-cursor-qmsmmg1b.js → scan-cursor-nx5y5k7r.js} +2 -2
- package/dist/cli/{skill-generator-hkyxdc3j.js → skill-generator-nt5qxafq.js} +5 -5
- package/dist/hooks/cohort-cache.d.ts +44 -0
- package/dist/hooks/hive-promoter.d.ts +4 -3
- package/dist/hooks/host-boundary.d.ts +147 -0
- package/dist/hooks/incremental-verify.d.ts +3 -0
- package/dist/hooks/knowledge-events.d.ts +25 -2
- package/dist/hooks/knowledge-injector.d.ts +9 -1
- package/dist/hooks/knowledge-receipt-validator.d.ts +98 -0
- package/dist/hooks/micro-reflector.d.ts +3 -0
- package/dist/hooks/pr-auto-subscribe.d.ts +3 -0
- package/dist/hooks/promotion-evidence-store.d.ts +33 -0
- package/dist/index.js +237 -230
- package/dist/services/knowledge-diagnostics.d.ts +12 -0
- package/dist/session/snapshot-writer.d.ts +5 -0
- package/dist/state.d.ts +11 -0
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
authorizeCuration,
|
|
5
5
|
buildConfigFingerprintInput,
|
|
6
6
|
readCohortConfigFingerprint
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3r1w7xky.js";
|
|
8
8
|
import"./index-rtry5xyf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-3sx27bxt.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-3jvqw5hy.js";
|
|
12
12
|
import"./index-zgwm4ryv.js";
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-ahxrne50.js";
|
|
18
18
|
import"./index-kyvg2cmp.js";
|
|
19
19
|
import"./index-vqcgmy4y.js";
|
|
20
20
|
import"./index-emkb0bbe.js";
|
|
21
21
|
import"./index-4905hd2m.js";
|
|
22
22
|
import"./index-nprawcc0.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
23
|
+
import"./index-gr7ssnj9.js";
|
|
24
|
+
import"./index-xdsj4qtd.js";
|
|
25
|
+
import"./index-rkd6qwjh.js";
|
|
26
26
|
import"./index-vxv732ex.js";
|
|
27
27
|
import"./index-c8s9a3zh.js";
|
|
28
28
|
import"./index-816rkp4y.js";
|
|
29
29
|
import"./index-22e127jw.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-j33zb3cx.js";
|
|
31
|
+
import"./index-3r1w7xky.js";
|
|
32
32
|
import"./index-rtry5xyf.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
import"./index-ny13nr0x.js";
|
|
34
|
+
import"./index-3sx27bxt.js";
|
|
35
35
|
import"./index-ae75rja9.js";
|
|
36
36
|
import"./index-3jvqw5hy.js";
|
|
37
37
|
import"./index-9xpgytj9.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ahxrne50.js";
|
|
5
5
|
import"./index-kyvg2cmp.js";
|
|
6
6
|
import"./index-vqcgmy4y.js";
|
|
7
7
|
import"./index-emkb0bbe.js";
|
|
8
8
|
import"./index-4905hd2m.js";
|
|
9
9
|
import"./index-nprawcc0.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-gr7ssnj9.js";
|
|
11
|
+
import"./index-xdsj4qtd.js";
|
|
12
|
+
import"./index-rkd6qwjh.js";
|
|
13
13
|
import"./index-vxv732ex.js";
|
|
14
14
|
import"./index-c8s9a3zh.js";
|
|
15
15
|
import"./index-816rkp4y.js";
|
|
16
16
|
import"./index-22e127jw.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-j33zb3cx.js";
|
|
18
|
+
import"./index-3r1w7xky.js";
|
|
19
19
|
import"./index-rtry5xyf.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-ny13nr0x.js";
|
|
21
|
+
import"./index-3sx27bxt.js";
|
|
22
22
|
import"./index-ae75rja9.js";
|
|
23
23
|
import"./index-3jvqw5hy.js";
|
|
24
24
|
import"./index-9xpgytj9.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-68aggz0v.js";
|
|
5
|
+
import"./index-ahxrne50.js";
|
|
6
6
|
import"./index-kyvg2cmp.js";
|
|
7
7
|
import"./index-vqcgmy4y.js";
|
|
8
8
|
import"./index-emkb0bbe.js";
|
|
9
9
|
import"./index-4905hd2m.js";
|
|
10
10
|
import"./index-nprawcc0.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-gr7ssnj9.js";
|
|
12
|
+
import"./index-xdsj4qtd.js";
|
|
13
|
+
import"./index-rkd6qwjh.js";
|
|
14
14
|
import"./index-vxv732ex.js";
|
|
15
15
|
import"./index-c8s9a3zh.js";
|
|
16
16
|
import"./index-816rkp4y.js";
|
|
17
17
|
import"./index-22e127jw.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-j33zb3cx.js";
|
|
19
|
+
import"./index-3r1w7xky.js";
|
|
20
20
|
import"./index-rtry5xyf.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-ny13nr0x.js";
|
|
22
|
+
import"./index-3sx27bxt.js";
|
|
23
23
|
import"./index-ae75rja9.js";
|
|
24
24
|
import"./index-3jvqw5hy.js";
|
|
25
25
|
import"./index-9xpgytj9.js";
|
|
@@ -7,26 +7,26 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ahxrne50.js";
|
|
11
11
|
import"./index-kyvg2cmp.js";
|
|
12
12
|
import"./index-vqcgmy4y.js";
|
|
13
13
|
import"./index-emkb0bbe.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
15
|
import"./index-nprawcc0.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
import"./index-gr7ssnj9.js";
|
|
17
|
+
import"./index-xdsj4qtd.js";
|
|
18
|
+
import"./index-rkd6qwjh.js";
|
|
19
19
|
import"./index-vxv732ex.js";
|
|
20
20
|
import"./index-c8s9a3zh.js";
|
|
21
21
|
import"./index-816rkp4y.js";
|
|
22
22
|
import"./index-22e127jw.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-j33zb3cx.js";
|
|
24
|
+
import"./index-3r1w7xky.js";
|
|
25
25
|
import"./index-rtry5xyf.js";
|
|
26
26
|
import {
|
|
27
27
|
resolveHiveKnowledgePath
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
} from "./index-ny13nr0x.js";
|
|
29
|
+
import"./index-3sx27bxt.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-3jvqw5hy.js";
|
|
32
32
|
import"./index-9xpgytj9.js";
|
|
@@ -38,7 +38,8 @@ var RECEIPT_EVENT_TYPES = new Set([
|
|
|
38
38
|
"contradicted",
|
|
39
39
|
"violated",
|
|
40
40
|
"n_a",
|
|
41
|
-
"override"
|
|
41
|
+
"override",
|
|
42
|
+
"no_relevant"
|
|
42
43
|
]);
|
|
43
44
|
function resolveKnowledgeEventsPath(directory) {
|
|
44
45
|
return path.join(resolveKnowledgeStoreDir(directory), "knowledge-events.jsonl");
|
|
@@ -367,32 +368,46 @@ function recomputeCounters(events, legacyRecords = [], baseline = new Map) {
|
|
|
367
368
|
break;
|
|
368
369
|
}
|
|
369
370
|
case "acknowledged": {
|
|
371
|
+
if (!e.knowledge_id)
|
|
372
|
+
break;
|
|
370
373
|
const r = get(map, e.knowledge_id);
|
|
371
374
|
r.acknowledged_count += 1;
|
|
372
375
|
r.last_acknowledged_at = maxIso(r.last_acknowledged_at, e.timestamp);
|
|
373
376
|
break;
|
|
374
377
|
}
|
|
375
378
|
case "applied": {
|
|
379
|
+
if (!e.knowledge_id)
|
|
380
|
+
break;
|
|
376
381
|
const r = get(map, e.knowledge_id);
|
|
377
382
|
r.applied_explicit_count += 1;
|
|
378
383
|
r.last_applied_at = maxIso(r.last_applied_at, e.timestamp);
|
|
379
384
|
break;
|
|
380
385
|
}
|
|
381
386
|
case "ignored":
|
|
387
|
+
if (!e.knowledge_id)
|
|
388
|
+
break;
|
|
382
389
|
get(map, e.knowledge_id).ignored_count += 1;
|
|
383
390
|
break;
|
|
384
391
|
case "violated": {
|
|
392
|
+
if (!e.knowledge_id)
|
|
393
|
+
break;
|
|
385
394
|
const r = get(map, e.knowledge_id);
|
|
386
395
|
r.violated_count += 1;
|
|
387
396
|
r.violation_timestamps.push(e.timestamp);
|
|
388
397
|
break;
|
|
389
398
|
}
|
|
390
399
|
case "contradicted":
|
|
400
|
+
if (!e.knowledge_id)
|
|
401
|
+
break;
|
|
391
402
|
get(map, e.knowledge_id).contradicted_count += 1;
|
|
392
403
|
break;
|
|
393
404
|
case "n_a":
|
|
405
|
+
if (!e.knowledge_id)
|
|
406
|
+
break;
|
|
394
407
|
get(map, e.knowledge_id).n_a_count += 1;
|
|
395
408
|
break;
|
|
409
|
+
case "no_relevant":
|
|
410
|
+
break;
|
|
396
411
|
case "outcome": {
|
|
397
412
|
if (!e.knowledge_id)
|
|
398
413
|
break;
|
|
@@ -446,6 +461,14 @@ function countViolationsInWindow(timestamps, windowDays, now = new Date) {
|
|
|
446
461
|
}
|
|
447
462
|
return count;
|
|
448
463
|
}
|
|
464
|
+
function countEmptyTraceTerminals(events) {
|
|
465
|
+
let n = 0;
|
|
466
|
+
for (const e of events) {
|
|
467
|
+
if (e.type === "no_relevant")
|
|
468
|
+
n += 1;
|
|
469
|
+
}
|
|
470
|
+
return n;
|
|
471
|
+
}
|
|
449
472
|
async function countEntryViolationsInWindow(directory, entryId, windowDays, now = new Date) {
|
|
450
473
|
try {
|
|
451
474
|
const cutoff = now.getTime() - windowDays * 24 * 60 * 60 * 1000;
|
|
@@ -585,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
585
608
|
deltas.push({ id, delta });
|
|
586
609
|
}
|
|
587
610
|
if (deltas.length > 0) {
|
|
588
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
611
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-qg66a93n.js");
|
|
589
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
590
613
|
}
|
|
591
614
|
return {
|
|
@@ -620,4 +643,4 @@ var _internals = {
|
|
|
620
643
|
mergeRollupInto
|
|
621
644
|
};
|
|
622
645
|
|
|
623
|
-
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 };
|
|
646
|
+
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, countEmptyTraceTerminals, countEntryViolationsInWindow, countEntryContradictionsInWindow, readKnowledgeCounterRollups, effectiveRetrievalOutcomes, applyKnowledgeVerdictFeedback, _internals };
|