opencode-swarm 7.137.3 → 7.137.4
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/test-file-split/SKILL.md +2 -2
- package/.opencode/skills/writing-tests/SKILL.md +15 -1
- package/dist/cli/{config-doctor-t560ks5q.js → config-doctor-5qymy0bp.js} +2 -2
- package/dist/cli/{curation-policy-r1ddgn8c.js → curation-policy-788qbgwk.js} +2 -2
- package/dist/cli/{curator-zcg176y4.js → curator-0zebvv5q.js} +12 -12
- package/dist/cli/{curator-llm-factory-ny0hcz11.js → curator-llm-factory-6w7hpfb0.js} +12 -12
- package/dist/cli/{guardrail-explain-wmc2c89t.js → guardrail-explain-k1a7mwq9.js} +13 -13
- package/dist/cli/{guardrail-log-m7th4yac.js → guardrail-log-wqsg11xd.js} +3 -3
- package/dist/cli/{hive-promoter-m9fbm8hg.js → hive-promoter-kxcm4n0n.js} +12 -12
- package/dist/cli/{index-d39q5r1s.js → index-01dpavd4.js} +1 -1
- package/dist/cli/{index-j215fc3r.js → index-2qr7twf5.js} +3 -3
- package/dist/cli/{index-amf649jq.js → index-b2khb7xx.js} +4 -4
- package/dist/cli/{index-kbksjvte.js → index-b9pgq0fk.js} +5 -5
- package/dist/cli/{index-cqsxdb6f.js → index-bma4nwts.js} +1 -1
- package/dist/cli/{index-e1xt3r6c.js → index-csneb2ph.js} +2 -2
- package/dist/cli/{index-2xvtskcg.js → index-eq564d4t.js} +1 -1
- package/dist/cli/{index-9b1vtdpm.js → index-fetnv58w.js} +2 -2
- package/dist/cli/{index-hsc81cfm.js → index-h353c1xz.js} +1 -1
- package/dist/cli/{index-es88kmrz.js → index-m09k3dpz.js} +1 -1
- package/dist/cli/{index-ab7p3gq6.js → index-mrwr3kac.js} +2 -2
- package/dist/cli/{index-897js8x8.js → index-nnf41ca1.js} +36 -36
- package/dist/cli/{index-3zj70fr9.js → index-p9shqpbc.js} +1 -1
- package/dist/cli/{index-ryw98ynn.js → index-pzkn7d2k.js} +4 -2
- package/dist/cli/{index-dkzct23a.js → index-q9eqty52.js} +1 -1
- package/dist/cli/{index-ky1kr5my.js → index-rdg1tkz4.js} +14 -14
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-6bw0gxkh.js → knowledge-escalator-dna6s7qy.js} +3 -3
- package/dist/cli/{knowledge-events-cdwbxkr2.js → knowledge-events-shy8wgb3.js} +1 -1
- package/dist/cli/{knowledge-store-5y46n3as.js → knowledge-store-j7xtx4dd.js} +1 -1
- package/dist/cli/{knowledge-validator-bekm8t70.js → knowledge-validator-zfweje73.js} +4 -4
- package/dist/cli/{scan-cursor-jqwzvkw9.js → scan-cursor-fessrenj.js} +2 -2
- package/dist/cli/{schema-zgrd42bf.js → schema-36b6sv6b.js} +1 -1
- package/dist/cli/{skill-generator-q1jh5agj.js → skill-generator-0ghcwxeb.js} +5 -5
- package/dist/context/role-filter.d.ts +21 -2
- package/dist/index.js +122 -121
- package/package.json +4 -2
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./index-rrxcfxrd.js";
|
|
17
17
|
import {
|
|
18
18
|
stableCanonicalStringify
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-m09k3dpz.js";
|
|
20
20
|
import {
|
|
21
21
|
detectStraySwarmDirs,
|
|
22
22
|
readDoctorArtifact,
|
|
23
23
|
removeStraySwarmDir,
|
|
24
24
|
runConfigDoctor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-q9eqty52.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-2qr7twf5.js";
|
|
118
118
|
import {
|
|
119
119
|
readRecentEscalations
|
|
120
|
-
} from "./index-
|
|
120
|
+
} from "./index-b9pgq0fk.js";
|
|
121
121
|
import {
|
|
122
122
|
alreadyCuratedThisGeneration,
|
|
123
123
|
claimNextScanBatch,
|
|
124
124
|
resolveCohortId
|
|
125
|
-
} from "./index-
|
|
125
|
+
} from "./index-eq564d4t.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-fetnv58w.js";
|
|
179
179
|
import {
|
|
180
180
|
authorizeCuration,
|
|
181
181
|
buildConfigFingerprintInput
|
|
182
|
-
} from "./index-
|
|
182
|
+
} from "./index-01dpavd4.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-b2khb7xx.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-bma4nwts.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-h353c1xz.js";
|
|
251
251
|
import {
|
|
252
252
|
RetrospectiveEvidenceSchema
|
|
253
253
|
} from "./index-k5jrywpr.js";
|
|
@@ -263,7 +263,7 @@ import {
|
|
|
263
263
|
package_default,
|
|
264
264
|
resolveAutoReviewConfig,
|
|
265
265
|
stripKnownSwarmPrefix
|
|
266
|
-
} from "./index-
|
|
266
|
+
} from "./index-pzkn7d2k.js";
|
|
267
267
|
import {
|
|
268
268
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
269
269
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -18476,7 +18476,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
18476
18476
|
};
|
|
18477
18477
|
}
|
|
18478
18478
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
18479
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18479
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mrwr3kac.js");
|
|
18480
18480
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
18481
18481
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
18482
18482
|
if (sweepConfig?.enabled === false)
|
|
@@ -20069,7 +20069,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
20069
20069
|
}
|
|
20070
20070
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
20071
20071
|
try {
|
|
20072
|
-
const skillModule = await import("./skill-generator-
|
|
20072
|
+
const skillModule = await import("./skill-generator-0ghcwxeb.js");
|
|
20073
20073
|
for (const cand of skillCandidates) {
|
|
20074
20074
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
20075
20075
|
continue;
|
|
@@ -20529,7 +20529,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
20529
20529
|
} catch {}
|
|
20530
20530
|
}
|
|
20531
20531
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
20532
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
20532
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-dna6s7qy.js");
|
|
20533
20533
|
for (const { id } of contradictedEntries) {
|
|
20534
20534
|
try {
|
|
20535
20535
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -21348,7 +21348,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
21348
21348
|
warnings.push("Failed to collect knowledge summary.");
|
|
21349
21349
|
}
|
|
21350
21350
|
try {
|
|
21351
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
21351
|
+
const { getScanStatus } = await import("./scan-cursor-fessrenj.js");
|
|
21352
21352
|
const scanStatus = await getScanStatus(directory);
|
|
21353
21353
|
if (scanStatus.remaining_estimate > 0) {
|
|
21354
21354
|
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.`);
|
|
@@ -21520,9 +21520,9 @@ var _internals24 = {
|
|
|
21520
21520
|
verifyPostMortemKnowledgeActions,
|
|
21521
21521
|
repairPostMortemActions,
|
|
21522
21522
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
21523
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
21523
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-36b6sv6b.js");
|
|
21524
21524
|
try {
|
|
21525
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21525
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mrwr3kac.js");
|
|
21526
21526
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
21527
21527
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
21528
21528
|
} catch {
|
|
@@ -21530,11 +21530,11 @@ var _internals24 = {
|
|
|
21530
21530
|
}
|
|
21531
21531
|
},
|
|
21532
21532
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
21533
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
21533
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-0zebvv5q.js");
|
|
21534
21534
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
21535
21535
|
},
|
|
21536
21536
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
21537
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
21537
|
+
const { checkHivePromotions } = await import("./hive-promoter-kxcm4n0n.js");
|
|
21538
21538
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
21539
21539
|
},
|
|
21540
21540
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -21543,7 +21543,7 @@ var _internals24 = {
|
|
|
21543
21543
|
activateProposal,
|
|
21544
21544
|
listSkills: listSkills2,
|
|
21545
21545
|
sanitizeSlug
|
|
21546
|
-
} = await import("./skill-generator-
|
|
21546
|
+
} = await import("./skill-generator-0ghcwxeb.js");
|
|
21547
21547
|
const result = {
|
|
21548
21548
|
approved: [],
|
|
21549
21549
|
rejected: [],
|
|
@@ -24170,9 +24170,9 @@ function hashContent(content) {
|
|
|
24170
24170
|
return createHash9("sha1").update(content).digest("hex");
|
|
24171
24171
|
}
|
|
24172
24172
|
async function loadConfigForPolicyCurator(directory) {
|
|
24173
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
24173
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-36b6sv6b.js");
|
|
24174
24174
|
try {
|
|
24175
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
24175
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mrwr3kac.js");
|
|
24176
24176
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
24177
24177
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
24178
24178
|
} catch {
|
|
@@ -27796,7 +27796,7 @@ async function runFinalizeStage(ctx) {
|
|
|
27796
27796
|
}
|
|
27797
27797
|
}
|
|
27798
27798
|
try {
|
|
27799
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
27799
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-36b6sv6b.js");
|
|
27800
27800
|
const { config: pmLoadedConfig } = _internals35.loadPluginConfigWithMeta(ctx.directory);
|
|
27801
27801
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
27802
27802
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -30038,9 +30038,9 @@ var _internals40 = {
|
|
|
30038
30038
|
loadPluginConfigWithMeta,
|
|
30039
30039
|
loadCuratorDeps: async () => {
|
|
30040
30040
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
30041
|
-
import("./schema-
|
|
30042
|
-
import("./curator-
|
|
30043
|
-
import("./curator-llm-factory-
|
|
30041
|
+
import("./schema-36b6sv6b.js"),
|
|
30042
|
+
import("./curator-0zebvv5q.js"),
|
|
30043
|
+
import("./curator-llm-factory-6w7hpfb0.js")
|
|
30044
30044
|
]);
|
|
30045
30045
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
30046
30046
|
}
|
|
@@ -30945,7 +30945,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30945
30945
|
let scanCompleted = false;
|
|
30946
30946
|
let scanRemaining = 0;
|
|
30947
30947
|
try {
|
|
30948
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
30948
|
+
const { getScanStatus } = await import("./scan-cursor-fessrenj.js");
|
|
30949
30949
|
const status = await getScanStatus(directory);
|
|
30950
30950
|
scanGeneration = status.generation;
|
|
30951
30951
|
scanCompleted = status.completed;
|
|
@@ -30955,17 +30955,17 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
30955
30955
|
try {
|
|
30956
30956
|
const { isLinked: isLinked2 } = await import("./knowledge-link-xc6yhxmz.js");
|
|
30957
30957
|
if (isLinked2(directory)) {
|
|
30958
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
30958
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-36b6sv6b.js");
|
|
30959
30959
|
let config;
|
|
30960
30960
|
try {
|
|
30961
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30961
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mrwr3kac.js");
|
|
30962
30962
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
30963
30963
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
30964
30964
|
} catch {
|
|
30965
30965
|
config = KnowledgeConfigSchema2.parse({});
|
|
30966
30966
|
}
|
|
30967
30967
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
30968
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
30968
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-788qbgwk.js");
|
|
30969
30969
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
30970
30970
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
30971
30971
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -32176,7 +32176,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
32176
32176
|
const result = runConfigDoctor(config, directory);
|
|
32177
32177
|
let output;
|
|
32178
32178
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
32179
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
32179
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-5qymy0bp.js");
|
|
32180
32180
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
32181
32181
|
applyLossy: true
|
|
32182
32182
|
});
|
|
@@ -55227,7 +55227,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
55227
55227
|
async function handleHelpCommand(ctx) {
|
|
55228
55228
|
const targetCommand = ctx.args.join(" ");
|
|
55229
55229
|
if (!targetCommand) {
|
|
55230
|
-
const { buildHelpText } = await import("./index-
|
|
55230
|
+
const { buildHelpText } = await import("./index-rdg1tkz4.js");
|
|
55231
55231
|
return buildHelpText();
|
|
55232
55232
|
}
|
|
55233
55233
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -55236,7 +55236,7 @@ async function handleHelpCommand(ctx) {
|
|
|
55236
55236
|
return _internals14.buildDetailedHelp(resolved.key, resolved.entry);
|
|
55237
55237
|
}
|
|
55238
55238
|
const similar = _internals14.findSimilarCommands(targetCommand);
|
|
55239
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
55239
|
+
const { buildHelpText: fullHelp } = await import("./index-rdg1tkz4.js");
|
|
55240
55240
|
if (similar.length > 0) {
|
|
55241
55241
|
return `Command '/swarm ${targetCommand}' not found.
|
|
55242
55242
|
|
|
@@ -55413,7 +55413,7 @@ var COMMAND_REGISTRY = {
|
|
|
55413
55413
|
},
|
|
55414
55414
|
"guardrail explain": {
|
|
55415
55415
|
handler: async (ctx) => {
|
|
55416
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
55416
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-k1a7mwq9.js");
|
|
55417
55417
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
55418
55418
|
},
|
|
55419
55419
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -55423,7 +55423,7 @@ var COMMAND_REGISTRY = {
|
|
|
55423
55423
|
},
|
|
55424
55424
|
"guardrail-explain": {
|
|
55425
55425
|
handler: async (ctx) => {
|
|
55426
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
55426
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-k1a7mwq9.js");
|
|
55427
55427
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
55428
55428
|
},
|
|
55429
55429
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -55433,7 +55433,7 @@ var COMMAND_REGISTRY = {
|
|
|
55433
55433
|
},
|
|
55434
55434
|
"guardrail-log": {
|
|
55435
55435
|
handler: async (ctx) => {
|
|
55436
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
55436
|
+
const { handleGuardrailLog } = await import("./guardrail-log-wqsg11xd.js");
|
|
55437
55437
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
55438
55438
|
},
|
|
55439
55439
|
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.137.
|
|
24
|
+
version: "7.137.4",
|
|
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",
|
|
@@ -126,7 +126,9 @@ var init_package = __esm(() => {
|
|
|
126
126
|
"repro:704": "node scripts/repro-704.mjs",
|
|
127
127
|
"repro:1144": "bun scripts/repro-1144.mjs",
|
|
128
128
|
"repro:1873": "bun build scripts/repro-1873-entry.ts --outdir dist-build-test/repro-1873 --target node --format esm && node scripts/repro-1873.mjs",
|
|
129
|
-
"check:events": "bun run scripts/check-event-contract.ts"
|
|
129
|
+
"check:events": "bun run scripts/check-event-contract.ts",
|
|
130
|
+
"check:test-file-cap": "bun run scripts/check-test-file-cap.ts",
|
|
131
|
+
"check:gate-portability": "bun run scripts/check-gate-portability.ts"
|
|
130
132
|
},
|
|
131
133
|
dependencies: {
|
|
132
134
|
"@opencode-ai/plugin": "^1.18.3",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-csneb2ph.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-p9shqpbc.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-nnf41ca1.js";
|
|
88
88
|
import"./index-vm4xw9z3.js";
|
|
89
89
|
import"./index-rrxcfxrd.js";
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
90
|
+
import"./index-m09k3dpz.js";
|
|
91
|
+
import"./index-q9eqty52.js";
|
|
92
92
|
import"./index-fmh15wxb.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-2qr7twf5.js";
|
|
98
|
+
import"./index-b9pgq0fk.js";
|
|
99
|
+
import"./index-eq564d4t.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-fetnv58w.js";
|
|
106
|
+
import"./index-01dpavd4.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
108
|
+
import"./index-b2khb7xx.js";
|
|
109
|
+
import"./index-bma4nwts.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-h353c1xz.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-pzkn7d2k.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-nnf41ca1.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
11
|
import"./index-rrxcfxrd.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-m09k3dpz.js";
|
|
13
|
+
import"./index-q9eqty52.js";
|
|
14
14
|
import"./index-fmh15wxb.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-2qr7twf5.js";
|
|
20
|
+
import"./index-b9pgq0fk.js";
|
|
21
|
+
import"./index-eq564d4t.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-fetnv58w.js";
|
|
28
|
+
import"./index-01dpavd4.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-b2khb7xx.js";
|
|
31
|
+
import"./index-bma4nwts.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-h353c1xz.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-pzkn7d2k.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-b9pgq0fk.js";
|
|
12
|
+
import"./index-b2khb7xx.js";
|
|
13
|
+
import"./index-bma4nwts.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-bma4nwts.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-fetnv58w.js";
|
|
27
|
+
import"./index-01dpavd4.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-b2khb7xx.js";
|
|
30
|
+
import"./index-bma4nwts.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-eq564d4t.js";
|
|
8
|
+
import"./index-b2khb7xx.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-2qr7twf5.js";
|
|
37
|
+
import"./index-fetnv58w.js";
|
|
38
|
+
import"./index-01dpavd4.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-b2khb7xx.js";
|
|
41
|
+
import"./index-bma4nwts.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-en4fb04r.js";
|
|
44
44
|
import"./index-tqshdzaw.js";
|
|
@@ -10,6 +10,10 @@ export interface ContextEntry {
|
|
|
10
10
|
content: string;
|
|
11
11
|
name?: string;
|
|
12
12
|
}
|
|
13
|
+
export interface FilterByRoleOptions {
|
|
14
|
+
/** Allow valid leading [FOR: ...] tags to route otherwise-protected system entries. */
|
|
15
|
+
filterTaggedSystem?: boolean;
|
|
16
|
+
}
|
|
13
17
|
/**
|
|
14
18
|
* Filter context entries based on target role and [FOR: ...] tags.
|
|
15
19
|
*
|
|
@@ -21,7 +25,22 @@ export interface ContextEntry {
|
|
|
21
25
|
*
|
|
22
26
|
* @param entries - Array of context entries to filter
|
|
23
27
|
* @param targetRole - The target agent role to filter for
|
|
24
|
-
* @param directory - Optional project directory for metrics logging
|
|
28
|
+
* @param directory - Optional project directory for metrics logging
|
|
29
|
+
* @param options - Optional routing behavior; defaults preserve historical semantics
|
|
25
30
|
* @returns Filtered array of context entries
|
|
26
31
|
*/
|
|
27
|
-
export declare function filterByRole(entries: ContextEntry[], targetRole: string, directory?: string): ContextEntry[];
|
|
32
|
+
export declare function filterByRole(entries: ContextEntry[], targetRole: string, directory?: string, options?: FilterByRoleOptions): ContextEntry[];
|
|
33
|
+
/**
|
|
34
|
+
* Create the production adapter for role-scoped system fragments.
|
|
35
|
+
*
|
|
36
|
+
* The adapter intentionally has no directory parameter: chat-system filtering
|
|
37
|
+
* must stay free of synchronous metrics I/O. Missing session or agent identity
|
|
38
|
+
* fails open so critical system context is never dropped speculatively.
|
|
39
|
+
*/
|
|
40
|
+
export declare function createRoleFilterSystemHook(getActiveAgentName: (sessionID: string) => string | undefined): {
|
|
41
|
+
'experimental.chat.system.transform': (input: {
|
|
42
|
+
sessionID?: string;
|
|
43
|
+
}, output: {
|
|
44
|
+
system?: string[];
|
|
45
|
+
}) => Promise<void>;
|
|
46
|
+
};
|