opencode-swarm 7.107.0 → 7.107.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/agents/explorer.d.ts +2 -2
- package/dist/cli/curator-6zvpn7fs.js +51 -0
- package/dist/cli/curator-drift-6ad8mxxb.js +211 -0
- package/dist/cli/curator-llm-factory-r3m5e7n8.js +31 -0
- package/dist/cli/{evidence-summary-service-zhw4rkjb.js → evidence-summary-service-7nwhd8s4.js} +4 -3
- package/dist/cli/{explorer-rwfvbbx5.js → explorer-ksr3xq7n.js} +1 -1
- package/dist/cli/{guardrail-explain-6xt0pb56.js → guardrail-explain-zajegz3a.js} +13 -11
- package/dist/cli/hive-promoter-nwcsha2j.js +39 -0
- package/dist/cli/{index-ydgy7vg5.js → index-09xpycan.js} +31 -5
- package/dist/cli/{index-fhw0jm5c.js → index-168p3bfr.js} +22952 -21022
- package/dist/cli/index-357p0baj.js +719 -0
- package/dist/cli/{index-vwyjkzgs.js → index-9wstcavp.js} +1 -1
- package/dist/cli/index-c8s9a3zh.js +73 -0
- package/dist/cli/{index-25pev4e7.js → index-f12bmedv.js} +132 -843
- package/dist/cli/{index-wa6at603.js → index-jr54w7pb.js} +1 -1
- package/dist/cli/{index-v90bnn0f.js → index-r87xhtmx.js} +14 -12
- package/dist/cli/{index-e9n3xsk0.js → index-t4hbye3v.js} +1 -1
- package/dist/cli/index.js +12 -10
- package/dist/cli/{pending-delegations-dvprsdfy.js → pending-delegations-46xf2n2e.js} +2 -2
- package/dist/cli/{pr-subscriptions-zfxjtyzw.js → pr-subscriptions-3c34rnm1.js} +3 -3
- package/dist/cli/{skill-generator-99rrfwae.js → skill-generator-y6mmq8n5.js} +1 -1
- package/dist/commands/curate.d.ts +38 -1
- package/dist/commands/handoff.d.ts +2 -1
- package/dist/commands/registry.d.ts +6 -6
- package/dist/config/bundled-skills.d.ts +3 -5
- package/dist/hooks/curator-postmortem.d.ts +52 -3
- package/dist/hooks/curator.d.ts +2 -1
- package/dist/index.js +438 -393
- package/dist/session/snapshot-writer.d.ts +4 -0
- package/dist/tools/external-skill-discover.d.ts +11 -0
- package/dist/tools/pre-check-batch.d.ts +4 -0
- package/dist/turbo/lean/evidence.d.ts +22 -0
- package/dist/turbo/lean/integration.d.ts +6 -1
- package/dist/turbo/lean/reviewer.d.ts +6 -1
- package/dist/turbo/lean/runner.d.ts +10 -1
- package/dist/utils/untrusted-markdown.d.ts +1 -0
- package/dist/worktree/merge.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cli/{index-7ztmmqpt.js → index-mpe0yk9s.js} +3 -3
|
@@ -2561,4 +2561,4 @@ var _internals = {
|
|
|
2561
2561
|
unlinkSync
|
|
2562
2562
|
};
|
|
2563
2563
|
|
|
2564
|
-
export { resolveKnowledgeEventsPath, readKnowledgeEvents, readKnowledgeCounterRollups, effectiveRetrievalOutcomes, validateLesson, validateActionableFields, validateActionability, resolveUnactionablePath, appendUnactionable, quarantineEntry, restoreEntry, sanitizeSlug, isValidSlug2 as isValidSlug, proposalPath, activePath, activeRepoRelativePath, DEFAULT_SKILL_MIN_CONFIDENCE, DEFAULT_SKILL_MIN_CONFIRMATIONS, STRONG_SKILL_OUTCOME_COUNT, HIGH_PRIORITY_SKILL_MIN_CONFIDENCE, selectCandidateEntries, isSkillMaturityEligible, clusterEntries, renderSkillMarkdown, generateSkills, parseDraftFrontmatter, activateProposal, findSkillsBySourceKnowledgeId, findStaleSkillsBySourceKnowledgeId, listSkills, autoApplyProposals, inspectSkill, retireSkill, markSkillStale, clearSkillStale, retireOrMarkStale, regenerateSkill, _internals };
|
|
2564
|
+
export { resolveKnowledgeEventsPath, readKnowledgeEvents, readKnowledgeCounterRollups, effectiveRetrievalOutcomes, validateLesson, validateActionableFields, validateActionability, resolveUnactionablePath, appendUnactionable, quarantineEntry, restoreEntry, appendSkillChangelog, evaluateSkillChange, appendRejectedSkillEdit, sanitizeSlug, isValidSlug2 as isValidSlug, proposalPath, activePath, activeRepoRelativePath, DEFAULT_SKILL_MIN_CONFIDENCE, DEFAULT_SKILL_MIN_CONFIRMATIONS, STRONG_SKILL_OUTCOME_COUNT, HIGH_PRIORITY_SKILL_MIN_CONFIDENCE, selectCandidateEntries, isSkillMaturityEligible, clusterEntries, renderSkillMarkdown, generateSkills, parseDraftFrontmatter, activateProposal, findSkillsBySourceKnowledgeId, findStaleSkillsBySourceKnowledgeId, listSkills, autoApplyProposals, inspectSkill, retireSkill, markSkillStale, clearSkillStale, retireOrMarkStale, regenerateSkill, _internals };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
log
|
|
4
|
+
} from "./index-zgwm4ryv.js";
|
|
5
|
+
|
|
6
|
+
// src/background/event-bus.ts
|
|
7
|
+
class AutomationEventBus {
|
|
8
|
+
listeners = new Map;
|
|
9
|
+
eventHistory = [];
|
|
10
|
+
maxHistorySize;
|
|
11
|
+
constructor(options) {
|
|
12
|
+
this.maxHistorySize = options?.maxHistorySize ?? 100;
|
|
13
|
+
}
|
|
14
|
+
subscribe(type, listener) {
|
|
15
|
+
if (!this.listeners.has(type)) {
|
|
16
|
+
this.listeners.set(type, new Set);
|
|
17
|
+
}
|
|
18
|
+
this.listeners.get(type).add(listener);
|
|
19
|
+
return () => {
|
|
20
|
+
this.listeners.get(type)?.delete(listener);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async publish(type, payload, source) {
|
|
24
|
+
const event = {
|
|
25
|
+
type,
|
|
26
|
+
timestamp: Date.now(),
|
|
27
|
+
payload,
|
|
28
|
+
source
|
|
29
|
+
};
|
|
30
|
+
this.eventHistory.push(event);
|
|
31
|
+
if (this.eventHistory.length > this.maxHistorySize) {
|
|
32
|
+
this.eventHistory.shift();
|
|
33
|
+
}
|
|
34
|
+
log(`[EventBus] ${type}`, {
|
|
35
|
+
source,
|
|
36
|
+
payload: typeof payload === "object" ? "..." : payload
|
|
37
|
+
});
|
|
38
|
+
const listeners = this.listeners.get(type);
|
|
39
|
+
if (listeners) {
|
|
40
|
+
await Promise.all(Array.from(listeners).map(async (listener) => {
|
|
41
|
+
try {
|
|
42
|
+
await listener(event);
|
|
43
|
+
} catch (error) {
|
|
44
|
+
log(`[EventBus] Listener error for ${type}`, { error });
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
getHistory(types) {
|
|
50
|
+
if (!types || types.length === 0) {
|
|
51
|
+
return [...this.eventHistory];
|
|
52
|
+
}
|
|
53
|
+
return this.eventHistory.filter((e) => types.includes(e.type));
|
|
54
|
+
}
|
|
55
|
+
clearHistory() {
|
|
56
|
+
this.eventHistory = [];
|
|
57
|
+
}
|
|
58
|
+
getListenerCount(type) {
|
|
59
|
+
return this.listeners.get(type)?.size ?? 0;
|
|
60
|
+
}
|
|
61
|
+
hasListeners(type) {
|
|
62
|
+
return this.getListenerCount(type) > 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var globalEventBus = null;
|
|
66
|
+
function getGlobalEventBus() {
|
|
67
|
+
if (!globalEventBus) {
|
|
68
|
+
globalEventBus = new AutomationEventBus;
|
|
69
|
+
}
|
|
70
|
+
return globalEventBus;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { getGlobalEventBus };
|