opencode-swarm 7.138.2 → 7.138.3
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/.opencode/skills/swarm-pr-review/SKILL.md +5 -1
- package/dist/background/pr-review-trigger-contract.d.ts +38 -1
- package/dist/cli/{config-doctor-hzb0bck9.js → config-doctor-2mwgdbsn.js} +2 -2
- package/dist/cli/{curation-policy-aj37yvz8.js → curation-policy-5dqexw5j.js} +2 -2
- package/dist/cli/{curator-jt6dza8y.js → curator-jjtp9hn2.js} +12 -12
- package/dist/cli/{curator-llm-factory-m9f4h8t4.js → curator-llm-factory-wkjme59b.js} +12 -12
- package/dist/cli/{guardrail-explain-rks41rpx.js → guardrail-explain-xppwfnxr.js} +13 -13
- package/dist/cli/{guardrail-log-h39jxftx.js → guardrail-log-swet7rch.js} +3 -3
- package/dist/cli/{hive-promoter-34y2x4vt.js → hive-promoter-xvq8jzbs.js} +12 -12
- package/dist/cli/{index-49ygvqvm.js → index-1djv5684.js} +4 -4
- package/dist/cli/{index-8emf08eb.js → index-1v89yst3.js} +2 -2
- package/dist/cli/{index-qt3jjjw9.js → index-31vfewmn.js} +1 -1
- package/dist/cli/{index-r9pn41rj.js → index-93ky909v.js} +1 -1
- package/dist/cli/{index-89dwrz8n.js → index-99af5gvd.js} +50 -36
- package/dist/cli/{index-exq36v6w.js → index-ab57h0yq.js} +1 -1
- package/dist/cli/{index-xm07cqy2.js → index-adde7nm2.js} +5 -5
- package/dist/cli/{index-da98750t.js → index-btx8j39p.js} +1 -1
- package/dist/cli/{index-gpxg7wx8.js → index-gda7cwqz.js} +2 -2
- package/dist/cli/{index-qg5smxv9.js → index-jhb8kjc5.js} +3 -3
- package/dist/cli/{index-bakfqtye.js → index-js7th5my.js} +1 -1
- package/dist/cli/{index-yxswbd1t.js → index-rjratees.js} +1 -1
- package/dist/cli/{index-d01d4102.js → index-tc61fybd.js} +2 -2
- package/dist/cli/{index-ze4we97d.js → index-wqg74mwj.js} +1 -1
- package/dist/cli/{index-s7ac0xrf.js → index-xgmx9had.js} +14 -14
- package/dist/cli/{index-k6cq9wwh.js → index-y6dvs5tt.js} +1 -1
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-qmpfh5yz.js → knowledge-escalator-7n384ys1.js} +3 -3
- package/dist/cli/{knowledge-events-7neg8x0p.js → knowledge-events-yaj0yjd6.js} +1 -1
- package/dist/cli/{knowledge-store-a6d4625r.js → knowledge-store-d99k0z2d.js} +1 -1
- package/dist/cli/{knowledge-validator-q1qrdyvx.js → knowledge-validator-e5fqy9h4.js} +4 -4
- package/dist/cli/{scan-cursor-3tqshkb2.js → scan-cursor-9y9msabt.js} +2 -2
- package/dist/cli/{schema-mtyaeh18.js → schema-xg5f11md.js} +1 -1
- package/dist/cli/{skill-generator-t3m5qajm.js → skill-generator-arvwfdfh.js} +5 -5
- package/dist/index.js +5 -5
- package/dist/tools/write-pr-review-trigger-eval.d.ts +2 -2
- package/package.json +1 -1
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./index-rrxcfxrd.js";
|
|
17
17
|
import {
|
|
18
18
|
stableCanonicalStringify
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-31vfewmn.js";
|
|
20
20
|
import {
|
|
21
21
|
detectStraySwarmDirs,
|
|
22
22
|
readDoctorArtifact,
|
|
23
23
|
removeStraySwarmDir,
|
|
24
24
|
runConfigDoctor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-btx8j39p.js";
|
|
26
26
|
import {
|
|
27
27
|
MAX_TRANSIENT_RETRIES,
|
|
28
28
|
archiveEvidence,
|
|
@@ -114,15 +114,15 @@ import {
|
|
|
114
114
|
retireSkill,
|
|
115
115
|
selectCandidateEntries,
|
|
116
116
|
syncBundledProjectSkillsIfMissingAsync
|
|
117
|
-
} from "./index-
|
|
117
|
+
} from "./index-jhb8kjc5.js";
|
|
118
118
|
import {
|
|
119
119
|
readRecentEscalations
|
|
120
|
-
} from "./index-
|
|
120
|
+
} from "./index-adde7nm2.js";
|
|
121
121
|
import {
|
|
122
122
|
alreadyCuratedThisGeneration,
|
|
123
123
|
claimNextScanBatch,
|
|
124
124
|
resolveCohortId
|
|
125
|
-
} from "./index-
|
|
125
|
+
} from "./index-rjratees.js";
|
|
126
126
|
import {
|
|
127
127
|
CURATOR_INIT_PROMPT,
|
|
128
128
|
CURATOR_PHASE_PROMPT,
|
|
@@ -175,11 +175,11 @@ import {
|
|
|
175
175
|
validateActionableFields,
|
|
176
176
|
validateLesson,
|
|
177
177
|
validateSkillPath
|
|
178
|
-
} from "./index-
|
|
178
|
+
} from "./index-tc61fybd.js";
|
|
179
179
|
import {
|
|
180
180
|
authorizeCuration,
|
|
181
181
|
buildConfigFingerprintInput
|
|
182
|
-
} from "./index-
|
|
182
|
+
} from "./index-wqg74mwj.js";
|
|
183
183
|
import {
|
|
184
184
|
cohortConfigFingerprint
|
|
185
185
|
} from "./index-rtry5xyf.js";
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
transactFile,
|
|
213
213
|
transactKnowledge,
|
|
214
214
|
wordBigrams
|
|
215
|
-
} from "./index-
|
|
215
|
+
} from "./index-1djv5684.js";
|
|
216
216
|
import {
|
|
217
217
|
MAX_EVENT_LOG_ENTRIES,
|
|
218
218
|
_internals,
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
recordHiveKnowledgeEvent,
|
|
223
223
|
recordKnowledgeEvent,
|
|
224
224
|
resolveKnowledgeEventsPath
|
|
225
|
-
} from "./index-
|
|
225
|
+
} from "./index-93ky909v.js";
|
|
226
226
|
import {
|
|
227
227
|
resolveHiveDataDir,
|
|
228
228
|
resolveHiveEventsPath,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
init_loader,
|
|
248
248
|
loadPluginConfig,
|
|
249
249
|
loadPluginConfigWithMeta
|
|
250
|
-
} from "./index-
|
|
250
|
+
} from "./index-y6dvs5tt.js";
|
|
251
251
|
import {
|
|
252
252
|
RetrospectiveEvidenceSchema
|
|
253
253
|
} from "./index-gprxjmm7.js";
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
package_default,
|
|
264
264
|
resolveAutoReviewConfig,
|
|
265
265
|
stripKnownSwarmPrefix
|
|
266
|
-
} from "./index-
|
|
266
|
+
} from "./index-ab57h0yq.js";
|
|
267
267
|
import {
|
|
268
268
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
269
269
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -1540,6 +1540,20 @@ var PrReviewPersistedInputRowSchema = exports_external.discriminatedUnion("resul
|
|
|
1540
1540
|
evidence: TriggerEvidenceSchema
|
|
1541
1541
|
}).strict()
|
|
1542
1542
|
]);
|
|
1543
|
+
var PrReviewWriterInputRowSchema = exports_external.discriminatedUnion("result", [
|
|
1544
|
+
exports_external.object({
|
|
1545
|
+
trigger_id: TriggerIdSchema,
|
|
1546
|
+
result: exports_external.literal("MATCHED"),
|
|
1547
|
+
evidence: TriggerEvidenceSchema.optional(),
|
|
1548
|
+
source_batch_id: exports_external.string().trim().min(1),
|
|
1549
|
+
source_lane_id: exports_external.string().trim().min(1)
|
|
1550
|
+
}).strict(),
|
|
1551
|
+
exports_external.object({
|
|
1552
|
+
trigger_id: TriggerIdSchema,
|
|
1553
|
+
result: exports_external.literal("NOT_TRIGGERED"),
|
|
1554
|
+
evidence: TriggerEvidenceSchema.optional()
|
|
1555
|
+
}).strict()
|
|
1556
|
+
]);
|
|
1543
1557
|
function rawTriggerIds(input) {
|
|
1544
1558
|
if (!Array.isArray(input))
|
|
1545
1559
|
return null;
|
|
@@ -18867,7 +18881,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
18867
18881
|
};
|
|
18868
18882
|
}
|
|
18869
18883
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
18870
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18884
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v89yst3.js");
|
|
18871
18885
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
18872
18886
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
18873
18887
|
if (sweepConfig?.enabled === false)
|
|
@@ -20460,7 +20474,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
20460
20474
|
}
|
|
20461
20475
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
20462
20476
|
try {
|
|
20463
|
-
const skillModule = await import("./skill-generator-
|
|
20477
|
+
const skillModule = await import("./skill-generator-arvwfdfh.js");
|
|
20464
20478
|
for (const cand of skillCandidates) {
|
|
20465
20479
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
20466
20480
|
continue;
|
|
@@ -20920,7 +20934,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
20920
20934
|
} catch {}
|
|
20921
20935
|
}
|
|
20922
20936
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
20923
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
20937
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-7n384ys1.js");
|
|
20924
20938
|
for (const { id } of contradictedEntries) {
|
|
20925
20939
|
try {
|
|
20926
20940
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -21739,7 +21753,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
21739
21753
|
warnings.push("Failed to collect knowledge summary.");
|
|
21740
21754
|
}
|
|
21741
21755
|
try {
|
|
21742
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
21756
|
+
const { getScanStatus } = await import("./scan-cursor-9y9msabt.js");
|
|
21743
21757
|
const scanStatus = await getScanStatus(directory);
|
|
21744
21758
|
if (scanStatus.remaining_estimate > 0) {
|
|
21745
21759
|
warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
|
|
@@ -21911,9 +21925,9 @@ var _internals24 = {
|
|
|
21911
21925
|
verifyPostMortemKnowledgeActions,
|
|
21912
21926
|
repairPostMortemActions,
|
|
21913
21927
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
21914
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
21928
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xg5f11md.js");
|
|
21915
21929
|
try {
|
|
21916
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21930
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v89yst3.js");
|
|
21917
21931
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
21918
21932
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
21919
21933
|
} catch {
|
|
@@ -21921,11 +21935,11 @@ var _internals24 = {
|
|
|
21921
21935
|
}
|
|
21922
21936
|
},
|
|
21923
21937
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
21924
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
21938
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-jjtp9hn2.js");
|
|
21925
21939
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
21926
21940
|
},
|
|
21927
21941
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
21928
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
21942
|
+
const { checkHivePromotions } = await import("./hive-promoter-xvq8jzbs.js");
|
|
21929
21943
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
21930
21944
|
},
|
|
21931
21945
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -21934,7 +21948,7 @@ var _internals24 = {
|
|
|
21934
21948
|
activateProposal,
|
|
21935
21949
|
listSkills: listSkills2,
|
|
21936
21950
|
sanitizeSlug
|
|
21937
|
-
} = await import("./skill-generator-
|
|
21951
|
+
} = await import("./skill-generator-arvwfdfh.js");
|
|
21938
21952
|
const result = {
|
|
21939
21953
|
approved: [],
|
|
21940
21954
|
rejected: [],
|
|
@@ -24561,9 +24575,9 @@ function hashContent(content) {
|
|
|
24561
24575
|
return createHash9("sha1").update(content).digest("hex");
|
|
24562
24576
|
}
|
|
24563
24577
|
async function loadConfigForPolicyCurator(directory) {
|
|
24564
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
24578
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xg5f11md.js");
|
|
24565
24579
|
try {
|
|
24566
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
24580
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v89yst3.js");
|
|
24567
24581
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
24568
24582
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
24569
24583
|
} catch {
|
|
@@ -28523,7 +28537,7 @@ async function runFinalizeStage(ctx) {
|
|
|
28523
28537
|
}
|
|
28524
28538
|
}
|
|
28525
28539
|
try {
|
|
28526
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
28540
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-xg5f11md.js");
|
|
28527
28541
|
const { config: pmLoadedConfig } = _internals36.loadPluginConfigWithMeta(ctx.directory);
|
|
28528
28542
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
28529
28543
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -30794,9 +30808,9 @@ var _internals41 = {
|
|
|
30794
30808
|
loadPluginConfigWithMeta,
|
|
30795
30809
|
loadCuratorDeps: async () => {
|
|
30796
30810
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
30797
|
-
import("./schema-
|
|
30798
|
-
import("./curator-
|
|
30799
|
-
import("./curator-llm-factory-
|
|
30811
|
+
import("./schema-xg5f11md.js"),
|
|
30812
|
+
import("./curator-jjtp9hn2.js"),
|
|
30813
|
+
import("./curator-llm-factory-wkjme59b.js")
|
|
30800
30814
|
]);
|
|
30801
30815
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
30802
30816
|
}
|
|
@@ -31701,7 +31715,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
31701
31715
|
let scanCompleted = false;
|
|
31702
31716
|
let scanRemaining = 0;
|
|
31703
31717
|
try {
|
|
31704
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
31718
|
+
const { getScanStatus } = await import("./scan-cursor-9y9msabt.js");
|
|
31705
31719
|
const status = await getScanStatus(directory);
|
|
31706
31720
|
scanGeneration = status.generation;
|
|
31707
31721
|
scanCompleted = status.completed;
|
|
@@ -31711,17 +31725,17 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
31711
31725
|
try {
|
|
31712
31726
|
const { isLinked: isLinked2 } = await import("./knowledge-link-xc6yhxmz.js");
|
|
31713
31727
|
if (isLinked2(directory)) {
|
|
31714
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
31728
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xg5f11md.js");
|
|
31715
31729
|
let config;
|
|
31716
31730
|
try {
|
|
31717
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
31731
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v89yst3.js");
|
|
31718
31732
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
31719
31733
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
31720
31734
|
} catch {
|
|
31721
31735
|
config = KnowledgeConfigSchema2.parse({});
|
|
31722
31736
|
}
|
|
31723
31737
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
31724
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
31738
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-5dqexw5j.js");
|
|
31725
31739
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
31726
31740
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
31727
31741
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -32932,7 +32946,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
32932
32946
|
const result = runConfigDoctor(config, directory);
|
|
32933
32947
|
let output;
|
|
32934
32948
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
32935
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
32949
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-2mwgdbsn.js");
|
|
32936
32950
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
32937
32951
|
applyLossy: true
|
|
32938
32952
|
});
|
|
@@ -56075,7 +56089,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
56075
56089
|
async function handleHelpCommand(ctx) {
|
|
56076
56090
|
const targetCommand = ctx.args.join(" ");
|
|
56077
56091
|
if (!targetCommand) {
|
|
56078
|
-
const { buildHelpText } = await import("./index-
|
|
56092
|
+
const { buildHelpText } = await import("./index-xgmx9had.js");
|
|
56079
56093
|
return buildHelpText();
|
|
56080
56094
|
}
|
|
56081
56095
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -56084,7 +56098,7 @@ async function handleHelpCommand(ctx) {
|
|
|
56084
56098
|
return _internals14.buildDetailedHelp(resolved.key, resolved.entry);
|
|
56085
56099
|
}
|
|
56086
56100
|
const similar = _internals14.findSimilarCommands(targetCommand);
|
|
56087
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
56101
|
+
const { buildHelpText: fullHelp } = await import("./index-xgmx9had.js");
|
|
56088
56102
|
if (similar.length > 0) {
|
|
56089
56103
|
return `Command '/swarm ${targetCommand}' not found.
|
|
56090
56104
|
|
|
@@ -56261,7 +56275,7 @@ var COMMAND_REGISTRY = {
|
|
|
56261
56275
|
},
|
|
56262
56276
|
"guardrail explain": {
|
|
56263
56277
|
handler: async (ctx) => {
|
|
56264
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
56278
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-xppwfnxr.js");
|
|
56265
56279
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
56266
56280
|
},
|
|
56267
56281
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -56271,7 +56285,7 @@ var COMMAND_REGISTRY = {
|
|
|
56271
56285
|
},
|
|
56272
56286
|
"guardrail-explain": {
|
|
56273
56287
|
handler: async (ctx) => {
|
|
56274
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
56288
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-xppwfnxr.js");
|
|
56275
56289
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
56276
56290
|
},
|
|
56277
56291
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -56281,7 +56295,7 @@ var COMMAND_REGISTRY = {
|
|
|
56281
56295
|
},
|
|
56282
56296
|
"guardrail-log": {
|
|
56283
56297
|
handler: async (ctx) => {
|
|
56284
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
56298
|
+
const { handleGuardrailLog } = await import("./guardrail-log-swet7rch.js");
|
|
56285
56299
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
56286
56300
|
},
|
|
56287
56301
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.138.
|
|
24
|
+
version: "7.138.3",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-1djv5684.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-93ky909v.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-e5fqy9h4.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-xg5f11md.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-1v89yst3.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-99af5gvd.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-31vfewmn.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-tc61fybd.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-1djv5684.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-93ky909v.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-wqg74mwj.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-1djv5684.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
15
|
} from "./index-en4fb04r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gda7cwqz.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-js7th5my.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-99af5gvd.js";
|
|
88
88
|
import"./index-vm4xw9z3.js";
|
|
89
89
|
import"./index-rrxcfxrd.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
90
|
+
import"./index-31vfewmn.js";
|
|
91
|
+
import"./index-btx8j39p.js";
|
|
92
92
|
import"./index-y06a43sk.js";
|
|
93
93
|
import"./index-ngqxzkqm.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-jhb8kjc5.js";
|
|
98
|
+
import"./index-adde7nm2.js";
|
|
99
|
+
import"./index-rjratees.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-39k6y018.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-tc61fybd.js";
|
|
106
|
+
import"./index-wqg74mwj.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
108
|
+
import"./index-1djv5684.js";
|
|
109
|
+
import"./index-93ky909v.js";
|
|
110
110
|
import"./index-ae75rja9.js";
|
|
111
111
|
import"./index-en4fb04r.js";
|
|
112
112
|
import"./index-tqshdzaw.js";
|
|
113
|
-
import"./index-
|
|
113
|
+
import"./index-y6dvs5tt.js";
|
|
114
114
|
import"./index-gprxjmm7.js";
|
|
115
115
|
import"./index-n832052r.js";
|
|
116
116
|
import {
|
|
117
117
|
init_schema,
|
|
118
118
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-ab57h0yq.js";
|
|
120
120
|
import"./index-bk5tah7q.js";
|
|
121
121
|
import"./index-8fwhhayc.js";
|
|
122
122
|
import"./index-q1exe2b3.js";
|
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-99af5gvd.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
11
|
import"./index-rrxcfxrd.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-31vfewmn.js";
|
|
13
|
+
import"./index-btx8j39p.js";
|
|
14
14
|
import"./index-y06a43sk.js";
|
|
15
15
|
import"./index-ngqxzkqm.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-jhb8kjc5.js";
|
|
20
|
+
import"./index-adde7nm2.js";
|
|
21
|
+
import"./index-rjratees.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-39k6y018.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-tc61fybd.js";
|
|
28
|
+
import"./index-wqg74mwj.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-1djv5684.js";
|
|
31
|
+
import"./index-93ky909v.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-y6dvs5tt.js";
|
|
36
36
|
import"./index-gprxjmm7.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-ab57h0yq.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-adde7nm2.js";
|
|
12
|
+
import"./index-1djv5684.js";
|
|
13
|
+
import"./index-93ky909v.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-en4fb04r.js";
|
|
16
16
|
import"./index-tqshdzaw.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-93ky909v.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-tc61fybd.js";
|
|
27
|
+
import"./index-wqg74mwj.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-1djv5684.js";
|
|
30
|
+
import"./index-93ky909v.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-en4fb04r.js";
|
|
33
33
|
import"./index-tqshdzaw.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-rjratees.js";
|
|
8
|
+
import"./index-1djv5684.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-en4fb04r.js";
|
|
11
11
|
import"./index-tqshdzaw.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-jhb8kjc5.js";
|
|
37
|
+
import"./index-tc61fybd.js";
|
|
38
|
+
import"./index-wqg74mwj.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-1djv5684.js";
|
|
41
|
+
import"./index-93ky909v.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-en4fb04r.js";
|
|
44
44
|
import"./index-tqshdzaw.js";
|