opencode-swarm 7.125.1 → 7.125.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.
- package/dist/cli/{config-doctor-g3m2q646.js → config-doctor-8df6hk58.js} +2 -2
- package/dist/cli/{curation-policy-vgbx8530.js → curation-policy-7pvghg6f.js} +2 -2
- package/dist/cli/{curator-xk4g1nx2.js → curator-dw2zb74h.js} +12 -12
- package/dist/cli/{curator-llm-factory-7pvqy94w.js → curator-llm-factory-bntt6v8j.js} +12 -12
- package/dist/cli/{guardrail-explain-wfk16bpr.js → guardrail-explain-vmr4db9n.js} +13 -13
- package/dist/cli/{guardrail-log-5zz9xx6z.js → guardrail-log-8prd6cnc.js} +3 -3
- package/dist/cli/{hive-promoter-njwc5rt0.js → hive-promoter-xymt9vf2.js} +12 -12
- package/dist/cli/{index-txragda9.js → index-1s7jzcsy.js} +1 -1
- package/dist/cli/{index-kws8zn6y.js → index-39p1yyag.js} +1 -1
- package/dist/cli/{index-ghteqdy1.js → index-7mtvvt8p.js} +2 -2
- package/dist/cli/{index-kvrk3h8p.js → index-7ne6q2a0.js} +1 -1
- package/dist/cli/{index-dsf1yv4s.js → index-8ed9rz7y.js} +38 -36
- package/dist/cli/{index-z4sc6yxc.js → index-92xyawa7.js} +1 -1
- package/dist/cli/{index-mhhmecsw.js → index-em4h33my.js} +2 -2
- package/dist/cli/{index-3k8pg467.js → index-j8ptbcxz.js} +1 -1
- package/dist/cli/{index-mwdcvh0e.js → index-pgya7cnn.js} +4 -4
- package/dist/cli/{index-tn3shyqj.js → index-ptmhxsaf.js} +3 -3
- package/dist/cli/{index-8yvqkbw7.js → index-qcrah1jk.js} +3 -1
- package/dist/cli/{index-pbjenws7.js → index-sxdh19nk.js} +1 -1
- package/dist/cli/{index-83rwq7pb.js → index-tdpct4cz.js} +1 -1
- package/dist/cli/{index-93cq8t5b.js → index-v3f7jvm8.js} +5 -5
- package/dist/cli/{index-cz6fv84h.js → index-yrk6hfp1.js} +14 -14
- package/dist/cli/{index-rpg8qqjs.js → index-zbsxek49.js} +2 -2
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-jtyykzqc.js → knowledge-escalator-47hfstmk.js} +3 -3
- package/dist/cli/{knowledge-events-qhr97sy9.js → knowledge-events-j5dpp72w.js} +1 -1
- package/dist/cli/{knowledge-store-332x3pjv.js → knowledge-store-58gt7m85.js} +1 -1
- package/dist/cli/{knowledge-validator-3t8tgzsz.js → knowledge-validator-jjxw5mwc.js} +4 -4
- package/dist/cli/{scan-cursor-q21c9k9q.js → scan-cursor-h8we8dfv.js} +2 -2
- package/dist/cli/{schema-y2d7j2jk.js → schema-xpqbhcyp.js} +1 -1
- package/dist/cli/{skill-generator-3gkxx98d.js → skill-generator-k8d0vff0.js} +5 -5
- package/dist/config/schema.d.ts +4 -0
- package/dist/hooks/knowledge-application-gate.d.ts +8 -2
- package/dist/hooks/knowledge-application.d.ts +2 -0
- package/dist/index.js +6 -6
- package/dist/state.d.ts +33 -2
- package/package.json +1 -1
|
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
608
608
|
deltas.push({ id, delta });
|
|
609
609
|
}
|
|
610
610
|
if (deltas.length > 0) {
|
|
611
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
611
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-58gt7m85.js");
|
|
612
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-pgya7cnn.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-tdpct4cz.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-jjxw5mwc.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-xpqbhcyp.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-zbsxek49.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-em4h33my.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-1s7jzcsy.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -83,28 +83,28 @@ import {
|
|
|
83
83
|
handleWriteRetroCommand,
|
|
84
84
|
normalizeSwarmCommandInput,
|
|
85
85
|
resolveCommand
|
|
86
|
-
} from "./index-
|
|
87
|
-
import"./index-
|
|
88
|
-
import"./index-
|
|
86
|
+
} from "./index-8ed9rz7y.js";
|
|
87
|
+
import"./index-sxdh19nk.js";
|
|
88
|
+
import"./index-92xyawa7.js";
|
|
89
89
|
import"./index-fs02c7tz.js";
|
|
90
90
|
import"./index-4905hd2m.js";
|
|
91
91
|
import"./index-134d35c1.js";
|
|
92
92
|
import"./index-6n2jpz7x.js";
|
|
93
|
-
import"./index-
|
|
94
|
-
import"./index-
|
|
95
|
-
import"./index-
|
|
93
|
+
import"./index-ptmhxsaf.js";
|
|
94
|
+
import"./index-v3f7jvm8.js";
|
|
95
|
+
import"./index-39p1yyag.js";
|
|
96
96
|
import"./index-vxv732ex.js";
|
|
97
97
|
import"./index-c8s9a3zh.js";
|
|
98
98
|
import"./index-s9mj4rb9.js";
|
|
99
99
|
import"./index-23zsx7dm.js";
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
100
|
+
import"./index-7mtvvt8p.js";
|
|
101
|
+
import"./index-7ne6q2a0.js";
|
|
102
102
|
import"./index-rtry5xyf.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
103
|
+
import"./index-pgya7cnn.js";
|
|
104
|
+
import"./index-tdpct4cz.js";
|
|
105
105
|
import"./index-ae75rja9.js";
|
|
106
106
|
import"./index-q27bajqb.js";
|
|
107
|
-
import"./index-
|
|
107
|
+
import"./index-j8ptbcxz.js";
|
|
108
108
|
import"./index-k5jrywpr.js";
|
|
109
109
|
import"./index-n832052r.js";
|
|
110
110
|
import {
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
init_constants,
|
|
114
114
|
init_schema,
|
|
115
115
|
stripKnownSwarmPrefix
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-qcrah1jk.js";
|
|
117
117
|
import"./index-bk5tah7q.js";
|
|
118
118
|
import"./index-8fwhhayc.js";
|
|
119
119
|
import"./index-q1exe2b3.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
loadPluginConfigWithMeta,
|
|
7
7
|
loadPluginConfigWithMetaAsync,
|
|
8
8
|
resolveWorktreeIsolationConfig
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-j8ptbcxz.js";
|
|
10
10
|
import {
|
|
11
11
|
ApprovalEvidenceSchema,
|
|
12
12
|
BaseEvidenceSchema,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
WorktreeIsolationConfigSchema,
|
|
59
59
|
isQAAgent,
|
|
60
60
|
isSubagent
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-qcrah1jk.js";
|
|
62
62
|
import"./index-bk5tah7q.js";
|
|
63
63
|
import {
|
|
64
64
|
MigrationStatusSchema,
|
package/dist/cli/index.js
CHANGED
|
@@ -7,34 +7,34 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
} from "./index-8ed9rz7y.js";
|
|
11
|
+
import"./index-sxdh19nk.js";
|
|
12
|
+
import"./index-92xyawa7.js";
|
|
13
13
|
import"./index-fs02c7tz.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
15
|
import"./index-134d35c1.js";
|
|
16
16
|
import"./index-6n2jpz7x.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-ptmhxsaf.js";
|
|
18
|
+
import"./index-v3f7jvm8.js";
|
|
19
|
+
import"./index-39p1yyag.js";
|
|
20
20
|
import"./index-vxv732ex.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
22
|
import"./index-s9mj4rb9.js";
|
|
23
23
|
import"./index-23zsx7dm.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-7mtvvt8p.js";
|
|
25
|
+
import"./index-7ne6q2a0.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-pgya7cnn.js";
|
|
28
|
+
import"./index-tdpct4cz.js";
|
|
29
29
|
import"./index-ae75rja9.js";
|
|
30
30
|
import"./index-q27bajqb.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-j8ptbcxz.js";
|
|
32
32
|
import"./index-k5jrywpr.js";
|
|
33
33
|
import"./index-n832052r.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_AGENT_CONFIGS,
|
|
36
36
|
init_constants
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-qcrah1jk.js";
|
|
38
38
|
import"./index-bk5tah7q.js";
|
|
39
39
|
import"./index-8fwhhayc.js";
|
|
40
40
|
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-v3f7jvm8.js";
|
|
12
|
+
import"./index-pgya7cnn.js";
|
|
13
|
+
import"./index-tdpct4cz.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-q27bajqb.js";
|
|
16
16
|
import"./index-bk5tah7q.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveKnowledgeCounterBaselinePath,
|
|
27
27
|
resolveKnowledgeEventsPath,
|
|
28
28
|
resolveLegacyApplicationLogPath
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-tdpct4cz.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-q27bajqb.js";
|
|
32
32
|
import"./index-zgwm4ryv.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-7mtvvt8p.js";
|
|
27
|
+
import"./index-7ne6q2a0.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-pgya7cnn.js";
|
|
30
|
+
import"./index-tdpct4cz.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-q27bajqb.js";
|
|
33
33
|
import"./index-bk5tah7q.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-39p1yyag.js";
|
|
8
|
+
import"./index-pgya7cnn.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-q27bajqb.js";
|
|
11
11
|
import"./index-bk5tah7q.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-ptmhxsaf.js";
|
|
37
|
+
import"./index-7mtvvt8p.js";
|
|
38
|
+
import"./index-7ne6q2a0.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-pgya7cnn.js";
|
|
41
|
+
import"./index-tdpct4cz.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-q27bajqb.js";
|
|
44
44
|
import"./index-bk5tah7q.js";
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -825,6 +825,8 @@ export declare const KnowledgeApplicationConfigSchema: z.ZodObject<{
|
|
|
825
825
|
critical_requires_ack: z.ZodDefault<z.ZodBoolean>;
|
|
826
826
|
require_skill_refs: z.ZodDefault<z.ZodBoolean>;
|
|
827
827
|
high_risk_tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
828
|
+
max_gate_denials: z.ZodDefault<z.ZodNumber>;
|
|
829
|
+
gate_staleness_ms: z.ZodDefault<z.ZodNumber>;
|
|
828
830
|
}, z.core.$strip>;
|
|
829
831
|
export type KnowledgeApplicationConfig = z.infer<typeof KnowledgeApplicationConfigSchema>;
|
|
830
832
|
export declare const SkillPropagationConfigSchema: z.ZodObject<{
|
|
@@ -2130,6 +2132,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2130
2132
|
critical_requires_ack: z.ZodDefault<z.ZodBoolean>;
|
|
2131
2133
|
require_skill_refs: z.ZodDefault<z.ZodBoolean>;
|
|
2132
2134
|
high_risk_tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2135
|
+
max_gate_denials: z.ZodDefault<z.ZodNumber>;
|
|
2136
|
+
gate_staleness_ms: z.ZodDefault<z.ZodNumber>;
|
|
2133
2137
|
}, z.core.$strip>>;
|
|
2134
2138
|
skillPropagation: z.ZodOptional<z.ZodObject<{
|
|
2135
2139
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -15,8 +15,14 @@
|
|
|
15
15
|
* assemble the set of critical directives that have been shown but
|
|
16
16
|
* not acknowledged. In `mode: 'enforce'` it THROWS to block the
|
|
17
17
|
* action (per the FAIL-CLOSED contract — `output.error` is NOT a
|
|
18
|
-
* write API at toolBefore time)
|
|
19
|
-
*
|
|
18
|
+
* write API at toolBefore time) — UNLESS one of two bounded escape
|
|
19
|
+
* hatches has fired first (a per-directive denial-count limit, or a
|
|
20
|
+
* staleness TTL since the directive was shown; see
|
|
21
|
+
* `incrementGateDenialCount`/`buildGateDenialDirectiveKey` in
|
|
22
|
+
* `../state.js`), in which case the pending directives are
|
|
23
|
+
* auto-acknowledged and an audit event is durably written before the
|
|
24
|
+
* action is allowed to proceed. In `mode: 'warn'` it appends to
|
|
25
|
+
* `events.jsonl` and always lets the action proceed.
|
|
20
26
|
*
|
|
21
27
|
* Tools considered high-risk:
|
|
22
28
|
* - save_plan
|
|
@@ -68,6 +68,8 @@ export interface KnowledgeApplicationConfig {
|
|
|
68
68
|
critical_requires_ack: boolean;
|
|
69
69
|
require_skill_refs: boolean;
|
|
70
70
|
high_risk_tools?: string[];
|
|
71
|
+
max_gate_denials?: number;
|
|
72
|
+
gate_staleness_ms?: number;
|
|
71
73
|
}
|
|
72
74
|
export declare const DEFAULT_KNOWLEDGE_APPLICATION_CONFIG: KnowledgeApplicationConfig;
|
|
73
75
|
export interface GateResult {
|