opencode-swarm 7.129.0 → 7.129.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/{curation-policy-qwj9yxvp.js → curation-policy-vn1ybh31.js} +2 -2
- package/dist/cli/{curator-drift-24bdacdc.js → curator-drift-y1wm4atk.js} +1 -1
- package/dist/cli/{curator-llm-factory-j35jd864.js → curator-llm-factory-5dcetzsz.js} +13 -13
- package/dist/cli/{curator-wywrxn1j.js → curator-rtpbkffc.js} +13 -13
- package/dist/cli/{evidence-summary-service-thx1c3me.js → evidence-summary-service-hf7qq777.js} +2 -2
- package/dist/cli/{guardrail-explain-850vrn06.js → guardrail-explain-27xbz1h2.js} +14 -14
- package/dist/cli/{hive-promoter-w2hf8w69.js → hive-promoter-7x33c575.js} +13 -13
- package/dist/cli/{index-zty6p8ps.js → index-5fnc76da.js} +1 -1
- package/dist/cli/{index-dbn9d4kj.js → index-6w02qz7t.js} +13 -1
- package/dist/cli/{index-e3xtpsmf.js → index-ate4rw9q.js} +41104 -40944
- package/dist/cli/{index-23zsx7dm.js → index-g4mnf3p5.js} +1 -1
- package/dist/cli/{index-d4zjjtqs.js → index-kj86tyrs.js} +1 -1
- package/dist/cli/{index-4gsqjp9p.js → index-kxw2sx1d.js} +3 -1
- package/dist/cli/{index-kk1scggc.js → index-kzvwb2se.js} +1 -1
- package/dist/cli/{index-her5rv14.js → index-m8vrw3pt.js} +4 -4
- package/dist/cli/{index-jmsnbct2.js → index-pgyp3tta.js} +1 -1
- package/dist/cli/{index-3a0dthh5.js → index-s7tsx4v9.js} +14 -14
- package/dist/cli/{index-2445sx3d.js → index-s80bsjkj.js} +13 -4
- package/dist/cli/{index-rmyxgxpj.js → index-vpjvqkdq.js} +1 -1
- package/dist/cli/{index-gy9h08cg.js → index-w2kp2zvf.js} +3 -3
- package/dist/cli/{index-b2m6mtde.js → index-waqvy9a5.js} +2 -2
- package/dist/cli/{index-9s0ztmmz.js → index-wy5jy3m9.js} +3 -3
- package/dist/cli/{index-ecxwhwz7.js → index-y2pfmd0z.js} +1 -1
- package/dist/cli/index.js +13 -13
- package/dist/cli/{knowledge-escalator-h6jhw20r.js → knowledge-escalator-5ytt2y9n.js} +3 -3
- package/dist/cli/{knowledge-events-wtyjkcg0.js → knowledge-events-qnyfrsfv.js} +1 -1
- package/dist/cli/{knowledge-store-a1xr70yg.js → knowledge-store-yeybvcqw.js} +1 -1
- package/dist/cli/{knowledge-validator-afpv79e3.js → knowledge-validator-g2c4mbwa.js} +4 -4
- package/dist/cli/{pending-delegations-a1bbpp8b.js → pending-delegations-37t4xecr.js} +2 -2
- package/dist/cli/{pr-subscriptions-bxpqde8w.js → pr-subscriptions-zqbmctwz.js} +2 -2
- package/dist/cli/{scan-cursor-hh6gdzrg.js → scan-cursor-c5mcce5r.js} +2 -2
- package/dist/cli/{skill-generator-dmshq3p6.js → skill-generator-c77e0y98.js} +5 -5
- package/dist/config/index.d.ts +1 -1
- package/dist/config/loader.d.ts +21 -0
- package/dist/hooks/pr-workflow-gate.d.ts +13 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +17 -17
- package/dist/tools/dispatch-lanes.d.ts +3 -0
- 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-yeybvcqw.js");
|
|
612
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
|
+
getSafeDefaultConfigLoadResult,
|
|
4
5
|
loadAgentPrompt,
|
|
5
6
|
loadPluginConfig,
|
|
6
7
|
loadPluginConfigWithMeta,
|
|
7
8
|
loadPluginConfigWithMetaAsync,
|
|
8
9
|
resolveWorktreeIsolationConfig
|
|
9
|
-
} from "./index-
|
|
10
|
+
} from "./index-6w02qz7t.js";
|
|
10
11
|
import {
|
|
11
12
|
ApprovalEvidenceSchema,
|
|
12
13
|
BaseEvidenceSchema,
|
|
@@ -83,6 +84,7 @@ export {
|
|
|
83
84
|
loadAgentPrompt,
|
|
84
85
|
isSubagent,
|
|
85
86
|
isQAAgent,
|
|
87
|
+
getSafeDefaultConfigLoadResult,
|
|
86
88
|
_internals,
|
|
87
89
|
WorktreeIsolationConfigSchema,
|
|
88
90
|
TurboConfigSchema,
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-w2kp2zvf.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-kj86tyrs.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-g2c4mbwa.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
196
|
const { KnowledgeConfigSchema } = await import("./schema-2x7wsb0n.js");
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-kxw2sx1d.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
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-vpjvqkdq.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
7
|
} from "./index-8etcyr9r.js";
|
|
@@ -83,28 +83,28 @@ import {
|
|
|
83
83
|
handleWriteRetroCommand,
|
|
84
84
|
normalizeSwarmCommandInput,
|
|
85
85
|
resolveCommand
|
|
86
|
-
} from "./index-
|
|
86
|
+
} from "./index-ate4rw9q.js";
|
|
87
87
|
import"./index-v4n224r1.js";
|
|
88
88
|
import"./index-cpssctv1.js";
|
|
89
|
-
import"./index-
|
|
89
|
+
import"./index-kzvwb2se.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-wy5jy3m9.js";
|
|
94
|
+
import"./index-m8vrw3pt.js";
|
|
95
|
+
import"./index-5fnc76da.js";
|
|
96
96
|
import"./index-vxv732ex.js";
|
|
97
97
|
import"./index-c8s9a3zh.js";
|
|
98
98
|
import"./index-9ss2m4rs.js";
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
99
|
+
import"./index-g4mnf3p5.js";
|
|
100
|
+
import"./index-waqvy9a5.js";
|
|
101
|
+
import"./index-pgyp3tta.js";
|
|
102
102
|
import"./index-rtry5xyf.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
103
|
+
import"./index-w2kp2zvf.js";
|
|
104
|
+
import"./index-kj86tyrs.js";
|
|
105
105
|
import"./index-ae75rja9.js";
|
|
106
106
|
import"./index-q27bajqb.js";
|
|
107
|
-
import"./index-
|
|
107
|
+
import"./index-6w02qz7t.js";
|
|
108
108
|
import"./index-k5jrywpr.js";
|
|
109
109
|
import"./index-n832052r.js";
|
|
110
110
|
import {
|
|
@@ -122,8 +122,8 @@ import"./index-2tn5h2zp.js";
|
|
|
122
122
|
import"./index-1kz6da87.js";
|
|
123
123
|
import"./index-w9cb5zwh.js";
|
|
124
124
|
import"./index-4rhhvd1a.js";
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
125
|
+
import"./index-y2pfmd0z.js";
|
|
126
|
+
import"./index-s80bsjkj.js";
|
|
127
127
|
import"./index-z6xqpmqg.js";
|
|
128
128
|
import"./index-zjygnfay.js";
|
|
129
129
|
import"./index-zgwm4ryv.js";
|
|
@@ -140,8 +140,9 @@ async function readSwarmFileAsync(directory, filename, cache) {
|
|
|
140
140
|
cache.set(key, promise);
|
|
141
141
|
return promise;
|
|
142
142
|
}
|
|
143
|
-
const
|
|
144
|
-
const
|
|
143
|
+
const ENOENT_MAX_ATTEMPTS = 5;
|
|
144
|
+
const ENOENT_RETRY_DELAY_MS = 10;
|
|
145
|
+
const maxAttempts = 6;
|
|
145
146
|
for (let attempt = 0;attempt < maxAttempts; attempt++) {
|
|
146
147
|
try {
|
|
147
148
|
const resolvedPath = _internals.validateSwarmPath(directory, filename);
|
|
@@ -150,10 +151,18 @@ async function readSwarmFileAsync(directory, filename, cache) {
|
|
|
150
151
|
return await file.text();
|
|
151
152
|
});
|
|
152
153
|
} catch (err) {
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
154
|
+
const code = err?.code;
|
|
155
|
+
if (code === "ENOENT") {
|
|
156
|
+
if (attempt >= ENOENT_MAX_ATTEMPTS - 1)
|
|
157
|
+
return null;
|
|
158
|
+
await new Promise((resolve2) => setTimeout(resolve2, ENOENT_RETRY_DELAY_MS));
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
const isAvRetryable = code === "EBUSY" || code === "EPERM" || code === "EACCES";
|
|
162
|
+
if (!isAvRetryable || attempt === maxAttempts - 1) {
|
|
155
163
|
return null;
|
|
156
164
|
}
|
|
165
|
+
const retryDelayMs = 10 * 2 ** attempt;
|
|
157
166
|
await new Promise((resolve2) => setTimeout(resolve2, retryDelayMs));
|
|
158
167
|
}
|
|
159
168
|
}
|
|
@@ -650,7 +650,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
650
650
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
651
651
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
652
652
|
return;
|
|
653
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
653
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-qnyfrsfv.js");
|
|
654
654
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
655
655
|
const flagIds = new Set;
|
|
656
656
|
for (const e of atFloor) {
|
|
@@ -717,11 +717,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
720
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
720
|
+
const { quarantineEntry } = await import("./knowledge-validator-g2c4mbwa.js");
|
|
721
721
|
const { KnowledgeConfigSchema } = await import("./schema-2x7wsb0n.js");
|
|
722
722
|
let config;
|
|
723
723
|
try {
|
|
724
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
724
|
+
const { loadPluginConfigWithMeta } = await import("./index-kxw2sx1d.js");
|
|
725
725
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
726
726
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
727
727
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pgyp3tta.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-w2kp2zvf.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-q27bajqb.js";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-waqvy9a5.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-w2kp2zvf.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-kj86tyrs.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
package/dist/cli/index.js
CHANGED
|
@@ -7,28 +7,28 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-ate4rw9q.js";
|
|
11
11
|
import"./index-v4n224r1.js";
|
|
12
12
|
import"./index-cpssctv1.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-kzvwb2se.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-wy5jy3m9.js";
|
|
18
|
+
import"./index-m8vrw3pt.js";
|
|
19
|
+
import"./index-5fnc76da.js";
|
|
20
20
|
import"./index-vxv732ex.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
22
|
import"./index-9ss2m4rs.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
23
|
+
import"./index-g4mnf3p5.js";
|
|
24
|
+
import"./index-waqvy9a5.js";
|
|
25
|
+
import"./index-pgyp3tta.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-w2kp2zvf.js";
|
|
28
|
+
import"./index-kj86tyrs.js";
|
|
29
29
|
import"./index-ae75rja9.js";
|
|
30
30
|
import"./index-q27bajqb.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-6w02qz7t.js";
|
|
32
32
|
import"./index-k5jrywpr.js";
|
|
33
33
|
import"./index-n832052r.js";
|
|
34
34
|
import {
|
|
@@ -43,8 +43,8 @@ import"./index-2tn5h2zp.js";
|
|
|
43
43
|
import"./index-1kz6da87.js";
|
|
44
44
|
import"./index-w9cb5zwh.js";
|
|
45
45
|
import"./index-4rhhvd1a.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-y2pfmd0z.js";
|
|
47
|
+
import"./index-s80bsjkj.js";
|
|
48
48
|
import"./index-z6xqpmqg.js";
|
|
49
49
|
import"./index-zjygnfay.js";
|
|
50
50
|
import"./index-zgwm4ryv.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-m8vrw3pt.js";
|
|
12
|
+
import"./index-w2kp2zvf.js";
|
|
13
|
+
import"./index-kj86tyrs.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-kj86tyrs.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-waqvy9a5.js";
|
|
27
|
+
import"./index-pgyp3tta.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-w2kp2zvf.js";
|
|
30
|
+
import"./index-kj86tyrs.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-q27bajqb.js";
|
|
33
33
|
import"./index-bk5tah7q.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
readDelegations,
|
|
10
10
|
recordPendingDelegation,
|
|
11
11
|
sweepStaleDelegations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-y2pfmd0z.js";
|
|
13
|
+
import"./index-s80bsjkj.js";
|
|
14
14
|
import"./index-z6xqpmqg.js";
|
|
15
15
|
import"./index-zjygnfay.js";
|
|
16
16
|
import"./index-zgwm4ryv.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-g4mnf3p5.js";
|
|
13
|
+
import"./index-s80bsjkj.js";
|
|
14
14
|
import"./index-z6xqpmqg.js";
|
|
15
15
|
import"./index-zjygnfay.js";
|
|
16
16
|
import"./index-zgwm4ryv.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-5fnc76da.js";
|
|
8
|
+
import"./index-w2kp2zvf.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-wy5jy3m9.js";
|
|
37
|
+
import"./index-waqvy9a5.js";
|
|
38
|
+
import"./index-pgyp3tta.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-w2kp2zvf.js";
|
|
41
|
+
import"./index-kj86tyrs.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-q27bajqb.js";
|
|
44
44
|
import"./index-bk5tah7q.js";
|
package/dist/config/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { ALL_AGENT_NAMES, ALL_SUBAGENT_NAMES, DEFAULT_MODELS, isQAAgent, isSubag
|
|
|
3
3
|
export type { ApprovalEvidence, BaseEvidence, DiffEvidence, Evidence, EvidenceBundle, EvidenceType, EvidenceVerdict, NoteEvidence, ReviewEvidence, TestEvidence, } from './evidence-schema';
|
|
4
4
|
export { ApprovalEvidenceSchema, BaseEvidenceSchema, DiffEvidenceSchema, EVIDENCE_MAX_JSON_BYTES, EVIDENCE_MAX_PATCH_BYTES, EVIDENCE_MAX_TASK_BYTES, EvidenceBundleSchema, EvidenceSchema, EvidenceTypeSchema, EvidenceVerdictSchema, NoteEvidenceSchema, ReviewEvidenceSchema, TestEvidenceSchema, } from './evidence-schema';
|
|
5
5
|
export type { ConfigBuildResult, ConfigLoadResult, ConfigRecovery, } from './loader';
|
|
6
|
-
export { loadAgentPrompt, loadPluginConfig, loadPluginConfigWithMeta, loadPluginConfigWithMetaAsync, } from './loader';
|
|
6
|
+
export { getSafeDefaultConfigLoadResult, loadAgentPrompt, loadPluginConfig, loadPluginConfigWithMeta, loadPluginConfigWithMetaAsync, } from './loader';
|
|
7
7
|
import { loadPluginConfigWithMeta } from './loader';
|
|
8
8
|
/**
|
|
9
9
|
* Test-only dependency-injection seam — see `gitignore-warning.ts:_internals`
|
package/dist/config/loader.d.ts
CHANGED
|
@@ -75,6 +75,27 @@ export declare function loadPluginConfig(directory: string): PluginConfig;
|
|
|
75
75
|
* exactly once, no double-read.
|
|
76
76
|
*/
|
|
77
77
|
export declare function loadPluginConfigWithMeta(directory: string): ConfigLoadResult;
|
|
78
|
+
/**
|
|
79
|
+
* Safe-default `ConfigLoadResult` for init-path timeout / error fallback.
|
|
80
|
+
*
|
|
81
|
+
* Produces the same shape `loadPluginConfigWithMeta[Async]` returns when no
|
|
82
|
+
* config file exists on disk: empty config + guardrails enabled + no recovery.
|
|
83
|
+
* Used by `src/index.ts` when the parallelized config read times out or fails
|
|
84
|
+
* (Invariant 1 — init must remain bounded). A parity test in
|
|
85
|
+
* `tests/unit/config/loader-safe-default.test.ts` asserts this matches the
|
|
86
|
+
* classification fields the loader returns for a missing config file.
|
|
87
|
+
*
|
|
88
|
+
* Classification fields:
|
|
89
|
+
* - `loadedFromFile: false` — on timeout we cannot know whether a file
|
|
90
|
+
* existed (the `stat` itself may have stalled); `false` is the safe
|
|
91
|
+
* choice that avoids the guardrails-disabled warning gated by this
|
|
92
|
+
* flag at `src/index.ts` (the only init-path consumer).
|
|
93
|
+
* - `configHadErrors: false` — we did not observe a corrupt/oversized
|
|
94
|
+
* config, only a slow one; fail-closed consumers (e.g. the Full-Auto
|
|
95
|
+
* `locked` activation guard) treat this as "config defaults", which
|
|
96
|
+
* matches the runtime behavior of the safe-default `PluginConfig`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function getSafeDefaultConfigLoadResult(): ConfigLoadResult;
|
|
78
99
|
/**
|
|
79
100
|
* Async variant of `loadPluginConfigWithMeta`. Used by the plugin entry
|
|
80
101
|
* (issue #704) so initialization does not perform synchronous fs reads.
|
|
@@ -22,6 +22,19 @@ export declare const PR_REVIEW_DEPTH_TIER_THRESHOLDS: {
|
|
|
22
22
|
* multiple dimensions while every dimension stays mandatory to evaluate.
|
|
23
23
|
*/
|
|
24
24
|
export declare const PR_REVIEW_BASE_LANE_FLOORS: Record<PrReviewDepthTier, number>;
|
|
25
|
+
/**
|
|
26
|
+
* Minimum lane counts for a FULL micro (risk-family) sweep per depth tier. These
|
|
27
|
+
* mirror the base floors' tier *semantics* — not their numbers — scaled to the
|
|
28
|
+
* eleven risk families: S does not bind (a tier-S PR of ≤50 lines/≤3 files may
|
|
29
|
+
* consolidate a full sweep into one lane, exactly as base tier S permits); M
|
|
30
|
+
* requires at least half the families to get independent lanes (ceil(11/2) = 6,
|
|
31
|
+
* the deliberate scale-up from base M's 3 = ceil(6/2)); L requires one lane per
|
|
32
|
+
* family (the family count, matching base L = dimension count). The floor binds
|
|
33
|
+
* only on a batch (or the final attestation) that covers all eleven families;
|
|
34
|
+
* partial retry batches covering a subset are exempt, and callers may always
|
|
35
|
+
* dispatch more lanes than a tier's floor, never fewer.
|
|
36
|
+
*/
|
|
37
|
+
export declare const PR_REVIEW_MICRO_LANE_FLOORS: Record<PrReviewDepthTier, number>;
|
|
25
38
|
/**
|
|
26
39
|
* Unknown or uncomputable diff size fails strict to the deepest tier, as does
|
|
27
40
|
* any range containing a submodule pointer change: git's numstat reports a
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { Plugin } from '@opencode-ai/plugin';
|
|
2
|
+
import { loadPluginConfigWithMetaAsync } from './config';
|
|
2
3
|
import { createRepoGraphBuilderHook } from './hooks';
|
|
4
|
+
import { loadSnapshot } from './session/snapshot-reader.js';
|
|
5
|
+
import { ensureSwarmGitExcluded } from './utils/gitignore-warning';
|
|
3
6
|
/**
|
|
4
7
|
* FIFO-cap a session-keyed Map to at most `max` entries, evicting oldest first.
|
|
5
8
|
* Values tracked by these maps are plain data (timestamps/usage snapshots), never
|
|
@@ -18,6 +21,9 @@ declare function schedulePostResolutionTasks(tasks: readonly PostResolutionTask[
|
|
|
18
21
|
export declare function overrideIndexInternalsForTest(overrides: {
|
|
19
22
|
createRepoGraphBuilderHook?: typeof createRepoGraphBuilderHook;
|
|
20
23
|
schedulePostResolutionTasks?: typeof schedulePostResolutionTasks;
|
|
24
|
+
loadPluginConfigWithMetaAsync?: typeof loadPluginConfigWithMetaAsync;
|
|
25
|
+
loadSnapshot?: typeof loadSnapshot;
|
|
26
|
+
ensureSwarmGitExcluded?: typeof ensureSwarmGitExcluded;
|
|
21
27
|
}): () => void;
|
|
22
28
|
export declare function schedulePostResolutionTasksForTest(tasks: readonly PostResolutionTask[]): void;
|
|
23
29
|
declare const _default: {
|