opencode-swarm 7.136.4 → 7.136.5
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-qwp5y9dk.js → config-doctor-n3hatm9d.js} +2 -2
- package/dist/cli/{curation-policy-8tsbaa4q.js → curation-policy-c4g08bg1.js} +2 -2
- package/dist/cli/{curator-763smew7.js → curator-jc5cc980.js} +12 -12
- package/dist/cli/{curator-llm-factory-dg8mmzy7.js → curator-llm-factory-atfnhbn6.js} +12 -12
- package/dist/cli/{guardrail-explain-6jc012g3.js → guardrail-explain-v6f8efve.js} +13 -13
- package/dist/cli/{guardrail-log-86aw7fne.js → guardrail-log-0mrq14g9.js} +3 -3
- package/dist/cli/{hive-promoter-en786ja4.js → hive-promoter-wyejhz8b.js} +12 -12
- package/dist/cli/{index-94pvh7hc.js → index-6kd0ezgd.js} +1 -1
- package/dist/cli/{index-06htxvzq.js → index-84se71v1.js} +1 -1
- package/dist/cli/{index-fhnbzz75.js → index-8f4346kf.js} +1 -1
- package/dist/cli/{index-qv1xc6rd.js → index-akc6rp3x.js} +2 -2
- package/dist/cli/{index-rkp6jvc3.js → index-bqan4y2y.js} +2 -2
- package/dist/cli/{index-pq8ge6fe.js → index-eeb35dnx.js} +1 -1
- package/dist/cli/{index-89fpahtg.js → index-f5qs217h.js} +6 -1
- package/dist/cli/{index-t1s4b5ha.js → index-hbzh7yyz.js} +669 -618
- package/dist/cli/{index-gjs5g97v.js → index-j7ja83v5.js} +1 -1
- package/dist/cli/{index-1hef020t.js → index-pyz1p8qv.js} +1 -1
- package/dist/cli/{index-bb3ks0v3.js → index-qhbr4h5n.js} +4 -4
- package/dist/cli/{index-wy2f83j5.js → index-tr0ctbhq.js} +5 -5
- package/dist/cli/{index-fkdxfdbx.js → index-vm05set2.js} +2 -2
- package/dist/cli/{index-g0sdhyqk.js → index-xp2pfbpq.js} +1 -1
- package/dist/cli/{index-et8b70c8.js → index-xvcctb2t.js} +14 -14
- package/dist/cli/{index-4cv991ra.js → index-yj61bped.js} +3 -3
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-e815bveb.js → knowledge-escalator-2xe8z24p.js} +3 -3
- package/dist/cli/{knowledge-events-dz2tyhpw.js → knowledge-events-wecrshsx.js} +1 -1
- package/dist/cli/{knowledge-store-97qr7m9k.js → knowledge-store-9f74whxw.js} +1 -1
- package/dist/cli/{knowledge-validator-xsetvy4v.js → knowledge-validator-4ng7x9dr.js} +4 -4
- package/dist/cli/{scan-cursor-129fwf7e.js → scan-cursor-yzj9n225.js} +2 -2
- package/dist/cli/{schema-3xdza5gg.js → schema-cr1nr1w0.js} +1 -1
- package/dist/cli/{skill-generator-8zhprasg.js → skill-generator-ybncj9et.js} +5 -5
- package/dist/hooks/guardrails/file-authority.d.ts +20 -1
- package/dist/index.js +283 -284
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/local-jsonl-provider.d.ts +4 -1
- package/dist/memory/redaction.d.ts +91 -0
- package/dist/memory/sqlite-provider.d.ts +5 -1
- package/dist/utils/arg-hash.d.ts +113 -0
- package/dist/utils/stable-stringify.d.ts +47 -2
- package/package.json +1 -1
|
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
702
702
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
703
703
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
704
704
|
return;
|
|
705
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
705
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-wecrshsx.js");
|
|
706
706
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
707
707
|
const flagIds = new Set;
|
|
708
708
|
for (const e of atFloor) {
|
|
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
772
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
773
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
772
|
+
const { quarantineEntry } = await import("./knowledge-validator-4ng7x9dr.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-cr1nr1w0.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-bqan4y2y.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qhbr4h5n.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-84se71v1.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-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-4ng7x9dr.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
196
|
+
const { KnowledgeConfigSchema } = await import("./schema-cr1nr1w0.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-bqan4y2y.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-6kd0ezgd.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-qhbr4h5n.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-zzhyws9g.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-akc6rp3x.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-xp2pfbpq.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-
|
|
87
|
+
} from "./index-hbzh7yyz.js";
|
|
88
88
|
import"./index-vm4xw9z3.js";
|
|
89
89
|
import"./index-nfm9f10v.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
90
|
+
import"./index-f5qs217h.js";
|
|
91
|
+
import"./index-j7ja83v5.js";
|
|
92
92
|
import"./index-45y0y3xh.js";
|
|
93
93
|
import"./index-ne28wyyc.js";
|
|
94
94
|
import"./index-y8552snf.js";
|
|
95
95
|
import"./index-4905hd2m.js";
|
|
96
96
|
import"./index-134d35c1.js";
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
97
|
+
import"./index-yj61bped.js";
|
|
98
|
+
import"./index-tr0ctbhq.js";
|
|
99
|
+
import"./index-8f4346kf.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-d2sf9an1.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-vm05set2.js";
|
|
106
|
+
import"./index-6kd0ezgd.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
108
|
+
import"./index-qhbr4h5n.js";
|
|
109
|
+
import"./index-84se71v1.js";
|
|
110
110
|
import"./index-ae75rja9.js";
|
|
111
111
|
import"./index-zzhyws9g.js";
|
|
112
112
|
import"./index-b3jfcptk.js";
|
|
113
|
-
import"./index-
|
|
113
|
+
import"./index-pyz1p8qv.js";
|
|
114
114
|
import"./index-k5jrywpr.js";
|
|
115
115
|
import"./index-n832052r.js";
|
|
116
116
|
import {
|
|
117
117
|
init_schema,
|
|
118
118
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-eeb35dnx.js";
|
|
120
120
|
import"./index-bk5tah7q.js";
|
|
121
121
|
import"./index-8fwhhayc.js";
|
|
122
122
|
import"./index-q1exe2b3.js";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vm05set2.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-qhbr4h5n.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-84se71v1.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
package/dist/cli/index.js
CHANGED
|
@@ -6,39 +6,39 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-hbzh7yyz.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
11
|
import"./index-nfm9f10v.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-f5qs217h.js";
|
|
13
|
+
import"./index-j7ja83v5.js";
|
|
14
14
|
import"./index-45y0y3xh.js";
|
|
15
15
|
import"./index-ne28wyyc.js";
|
|
16
16
|
import"./index-y8552snf.js";
|
|
17
17
|
import"./index-4905hd2m.js";
|
|
18
18
|
import"./index-134d35c1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-yj61bped.js";
|
|
20
|
+
import"./index-tr0ctbhq.js";
|
|
21
|
+
import"./index-8f4346kf.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-d2sf9an1.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-vm05set2.js";
|
|
28
|
+
import"./index-6kd0ezgd.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-qhbr4h5n.js";
|
|
31
|
+
import"./index-84se71v1.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-zzhyws9g.js";
|
|
34
34
|
import"./index-b3jfcptk.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-pyz1p8qv.js";
|
|
36
36
|
import"./index-k5jrywpr.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-eeb35dnx.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-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-tr0ctbhq.js";
|
|
12
|
+
import"./index-qhbr4h5n.js";
|
|
13
|
+
import"./index-84se71v1.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-zzhyws9g.js";
|
|
16
16
|
import"./index-b3jfcptk.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-84se71v1.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-zzhyws9g.js";
|
|
34
34
|
import"./index-b3jfcptk.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-vm05set2.js";
|
|
27
|
+
import"./index-6kd0ezgd.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-qhbr4h5n.js";
|
|
30
|
+
import"./index-84se71v1.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-zzhyws9g.js";
|
|
33
33
|
import"./index-b3jfcptk.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-8f4346kf.js";
|
|
8
|
+
import"./index-qhbr4h5n.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-zzhyws9g.js";
|
|
11
11
|
import"./index-b3jfcptk.js";
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-yj61bped.js";
|
|
37
|
+
import"./index-vm05set2.js";
|
|
38
|
+
import"./index-6kd0ezgd.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-qhbr4h5n.js";
|
|
41
|
+
import"./index-84se71v1.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-zzhyws9g.js";
|
|
44
44
|
import"./index-b3jfcptk.js";
|
|
@@ -22,8 +22,27 @@ import { type FileZone } from '../../context/zone-classifier';
|
|
|
22
22
|
* silently dropped nested keys, collapsing distinct todo contents to the same
|
|
23
23
|
* hash.
|
|
24
24
|
*
|
|
25
|
+
* When `stableCanonicalStringify` throws (cyclic refs, BigInt quirks), a
|
|
26
|
+
* constant fallback would make distinct-but-unserializable args collide,
|
|
27
|
+
* producing false-positive consecutive-equality detection (#2060-class
|
|
28
|
+
* bug). `coarseObjectDiscriminator` mixes in a shallow structural summary
|
|
29
|
+
* instead, so identical unserializable args still collide (true positive
|
|
30
|
+
* preserved) while distinct ones no longer do.
|
|
31
|
+
*
|
|
32
|
+
* Hash input is bounded by `boundedBunHash` (`src/utils/arg-hash.ts`), which
|
|
33
|
+
* hashes a length-prefixed head+tail SAMPLE rather than a bare prefix. That
|
|
34
|
+
* matters here more than anywhere: this hash drives the consecutive-repetition
|
|
35
|
+
* circuit breaker in `tool-before.ts`, which THROWS. Under a bare-prefix cap,
|
|
36
|
+
* ten consecutive large writes sharing a 64 KB boilerplate header but with
|
|
37
|
+
* differing appended bodies would have hashed identically and tripped it.
|
|
38
|
+
*
|
|
39
|
+
* Both this bounding and the fallback discriminator are shared verbatim with
|
|
40
|
+
* `hooks/adversarial-detector.ts:hashArgsForSpiral`; keep them in the shared
|
|
41
|
+
* module rather than re-inlining a copy here.
|
|
42
|
+
*
|
|
25
43
|
* @param args Tool arguments to hash
|
|
26
|
-
* @returns Numeric hash (0 for non-objects
|
|
44
|
+
* @returns Numeric hash (0 for non-objects; a discriminated fallback hash if
|
|
45
|
+
* stable stringification fails)
|
|
27
46
|
*/
|
|
28
47
|
export declare function hashArgs(args: unknown): number;
|
|
29
48
|
/** A record of an agent attesting to (resolving/suppressing/deferring) a finding. */
|