opencode-swarm 7.163.0 → 7.164.0
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/README.md +1 -1
- package/dist/cli/{coder-settlement-g2g5kkv5.js → coder-settlement-84je6bza.js} +8 -8
- package/dist/cli/{config-doctor-p16xr78z.js → config-doctor-vfze38e1.js} +2 -2
- package/dist/cli/{core-g088v0zt.js → core-q5hv8e2w.js} +1 -1
- package/dist/cli/{curation-policy-j12j2gvc.js → curation-policy-a2zty4br.js} +5 -5
- package/dist/cli/{curator-3m8a8qsn.js → curator-4pckmmyf.js} +32 -32
- package/dist/cli/{curator-drift-g6w4ga1q.js → curator-drift-wy7ejcvw.js} +105 -37
- package/dist/cli/{curator-llm-factory-p00hks4v.js → curator-llm-factory-msbj3hpn.js} +32 -32
- package/dist/cli/{evidence-summary-service-4ghqakhx.js → evidence-summary-service-b15yes21.js} +14 -14
- package/dist/cli/{gate-evidence-4v8apasx.js → gate-evidence-70h0w4tb.js} +5 -5
- package/dist/cli/{guardrail-explain-smqenqtm.js → guardrail-explain-kksdy032.js} +33 -33
- package/dist/cli/{guardrail-log-mmh4b4k4.js → guardrail-log-7rxbd20p.js} +6 -6
- package/dist/cli/{guardrail-reset-zge5hg4p.js → guardrail-reset-3b4gs357.js} +32 -32
- package/dist/cli/{hive-promoter-vxez5s7m.js → hive-promoter-s80g1gwb.js} +32 -32
- package/dist/cli/index-0515j0cz.js +403 -0
- package/dist/cli/{index-t4hs3qk6.js → index-12f1tsn2.js} +3 -3
- package/dist/cli/{index-2zgjcmmc.js → index-1b1h770t.js} +3 -3
- package/dist/cli/{index-9ss2m4rs.js → index-1hpjwz3s.js} +410 -1
- package/dist/cli/{index-4t68xs0p.js → index-1z4jzwja.js} +3 -3
- package/dist/cli/{index-0103w5pf.js → index-2s4s9n82.js} +2 -2
- package/dist/cli/{index-9crtmnqg.js → index-36nt17m8.js} +1 -1
- package/dist/cli/{index-qy2rm1f6.js → index-4afh2cz7.js} +5 -5
- package/dist/cli/{index-pykfqsk0.js → index-4jersar8.js} +4 -4
- package/dist/cli/{index-n67vx5zw.js → index-70bfj3v1.js} +1 -1
- package/dist/cli/{index-eqkdjfqa.js → index-7r9vpkwa.js} +4 -4
- package/dist/cli/{index-8ada7ag7.js → index-93sepnc9.js} +2 -2
- package/dist/cli/{index-s8c6f9rr.js → index-9sy65e94.js} +3 -3
- package/dist/cli/{index-ptsmms01.js → index-bm73pych.js} +6 -6
- package/dist/cli/{index-xyhmt813.js → index-c4pynht5.js} +1 -1
- package/dist/cli/{index-w1mc7gcm.js → index-c69jbpex.js} +2 -2
- package/dist/cli/{index-axx3t3k7.js → index-e3hwzcjv.js} +2 -2
- package/dist/cli/{index-453tzvkg.js → index-g64154pd.js} +1 -1
- package/dist/cli/{index-f7t5fn4z.js → index-gxd8fwyt.js} +4 -4
- package/dist/cli/{index-5hgn302x.js → index-hyq20s2v.js} +118 -296
- package/dist/cli/{index-7n9jznv0.js → index-ma8w6pfp.js} +3 -3
- package/dist/cli/{index-rqh25ns3.js → index-nhxaa9j5.js} +1 -1
- package/dist/cli/{index-zgz81a8x.js → index-nzrhw31r.js} +1 -1
- package/dist/cli/{index-4xggfhge.js → index-pvgcex0d.js} +3 -3
- package/dist/cli/{index-nwa7ctyf.js → index-qkk2skff.js} +34 -34
- package/dist/cli/{index-g4bvsapf.js → index-t5t82jy8.js} +5 -5
- package/dist/cli/{index-m4nhy4fp.js → index-t90gjc0k.js} +1 -1
- package/dist/cli/{index-3rjxbe1p.js → index-t9rhtvy9.js} +2 -2
- package/dist/cli/{index-hm239n1p.js → index-tb1k8jya.js} +1 -1
- package/dist/cli/{index-m7yt3xmk.js → index-td6n935w.js} +3 -2
- package/dist/cli/{index-w0yn4rmh.js → index-v3a9rmyh.js} +3 -3
- package/dist/cli/{index-cqgpvx2d.js → index-wdtckfnf.js} +1 -1
- package/dist/cli/{index-7wb2v7jg.js → index-xk0kc1py.js} +522 -358
- package/dist/cli/{index-n2mhyect.js → index-ynqp3jb6.js} +1 -1
- package/dist/cli/{index-n249fbw7.js → index-zaab1wz9.js} +5 -0
- package/dist/cli/{index-3ab9tczn.js → index-zbpcpsk0.js} +8 -8
- package/dist/cli/index.js +32 -32
- package/dist/cli/{knowledge-escalator-91d1n291.js → knowledge-escalator-sttdnwf8.js} +11 -11
- package/dist/cli/{knowledge-events-xrd9es3p.js → knowledge-events-4h88stj7.js} +9 -9
- package/dist/cli/{knowledge-link-vmdj5e5d.js → knowledge-link-yykmxdyw.js} +4 -4
- package/dist/cli/{knowledge-store-2brg88cx.js → knowledge-store-j832fxpx.js} +5 -5
- package/dist/cli/{knowledge-validator-s1v7kry2.js → knowledge-validator-edbg761g.js} +7 -7
- package/dist/cli/{pending-delegations-b341397j.js → pending-delegations-sphntrs0.js} +4 -4
- package/dist/cli/{pr-subscriptions-2mkdt0ak.js → pr-subscriptions-1a4gcnzv.js} +4 -4
- package/dist/cli/{runner-3gw2njnx.js → runner-d294h1by.js} +5 -5
- package/dist/cli/{scan-cursor-jm7j3w1c.js → scan-cursor-5frvp7nb.js} +6 -6
- package/dist/cli/{schema-6cpgnq4s.js → schema-9xkt5hvd.js} +1 -1
- package/dist/cli/{scope-persistence-q713ck5n.js → scope-persistence-gk55h3sp.js} +8 -8
- package/dist/cli/{skill-generator-z9bs6vdt.js → skill-generator-sxxf7jbb.js} +13 -13
- package/dist/cli/{sqlite-loader-c92413n7.js → sqlite-loader-8zefc142.js} +1 -1
- package/dist/cli/{telemetry-x4zggfd7.js → telemetry-q51s6tyt.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-drtv7jjp.js → worktree-collision-ownership-7kj2ryt1.js} +4 -4
- package/dist/cli/{worktree-isolation-534h3c2f.js → worktree-isolation-67fs6rz9.js} +32 -32
- package/dist/db/canonical-project.d.ts +31 -0
- package/dist/db/db-errors.d.ts +24 -0
- package/dist/db/driver-parity.d.ts +31 -0
- package/dist/db/durability.d.ts +40 -0
- package/dist/db/group-commit-writer.d.ts +117 -0
- package/dist/db/health.d.ts +35 -0
- package/dist/db/insight-candidate-store.d.ts +61 -0
- package/dist/db/legacy-import.d.ts +77 -0
- package/dist/db/phase-report-store.d.ts +45 -0
- package/dist/db/project-db.d.ts +35 -8
- package/dist/db/qa-gate-profile.d.ts +2 -0
- package/dist/hooks/curator-drift.d.ts +9 -5
- package/dist/hooks/curator-types.d.ts +1 -0
- package/dist/hooks/knowledge-curator.d.ts +5 -3
- package/dist/hooks/micro-reflector.d.ts +12 -7
- package/dist/index.js +619 -567
- package/dist/memory/schema.d.ts +4 -4
- package/dist/prm/index.d.ts +3 -1
- package/package.json +3 -2
- package/dist/cli/index-c8s9a3zh.js +0 -73
package/dist/memory/schema.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const MAX_OUTCOME_QUESTION_LENGTH: number;
|
|
|
8
8
|
export declare const MemoryScopeTypeSchema: z.ZodEnum<{
|
|
9
9
|
agent: "agent";
|
|
10
10
|
project: "project";
|
|
11
|
-
workspace: "workspace";
|
|
12
11
|
run: "run";
|
|
12
|
+
workspace: "workspace";
|
|
13
13
|
repository: "repository";
|
|
14
14
|
global_user: "global_user";
|
|
15
15
|
cohort: "cohort";
|
|
@@ -18,8 +18,8 @@ export declare const MemoryScopeRefSchema: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodEnum<{
|
|
19
19
|
agent: "agent";
|
|
20
20
|
project: "project";
|
|
21
|
-
workspace: "workspace";
|
|
22
21
|
run: "run";
|
|
22
|
+
workspace: "workspace";
|
|
23
23
|
repository: "repository";
|
|
24
24
|
global_user: "global_user";
|
|
25
25
|
cohort: "cohort";
|
|
@@ -75,8 +75,8 @@ export declare const MemoryRecordSchema: z.ZodObject<{
|
|
|
75
75
|
type: z.ZodEnum<{
|
|
76
76
|
agent: "agent";
|
|
77
77
|
project: "project";
|
|
78
|
-
workspace: "workspace";
|
|
79
78
|
run: "run";
|
|
79
|
+
workspace: "workspace";
|
|
80
80
|
repository: "repository";
|
|
81
81
|
global_user: "global_user";
|
|
82
82
|
cohort: "cohort";
|
|
@@ -173,8 +173,8 @@ export declare const MemoryProposalSchema: z.ZodObject<{
|
|
|
173
173
|
type: z.ZodEnum<{
|
|
174
174
|
agent: "agent";
|
|
175
175
|
project: "project";
|
|
176
|
-
workspace: "workspace";
|
|
177
176
|
run: "run";
|
|
177
|
+
workspace: "workspace";
|
|
178
178
|
repository: "repository";
|
|
179
179
|
global_user: "global_user";
|
|
180
180
|
cohort: "cohort";
|
package/dist/prm/index.d.ts
CHANGED
|
@@ -126,7 +126,9 @@ export interface PrmPatternPersistenceOptions {
|
|
|
126
126
|
*
|
|
127
127
|
* It must never gate the durable append (issue #1821 F3): AC8 says disabled
|
|
128
128
|
* or crashed real-time work loses nothing, and the phase-boundary backstop
|
|
129
|
-
* can only see candidates that reached
|
|
129
|
+
* can only see candidates that reached the durable insight stream
|
|
130
|
+
* (`insight_candidate` in `.swarm/swarm.db` since #2480; previously
|
|
131
|
+
* `.swarm/insight-candidates.jsonl`).
|
|
130
132
|
* ANDing the two flags at the call site made `realtime_admission.enabled=false`
|
|
131
133
|
* silently discard every PRM candidate. Mirrors `micro-reflector.ts`, which
|
|
132
134
|
* appends unconditionally and gates only its enqueue.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.164.0",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"engines": {
|
|
19
|
-
"bun": ">=1.3.13"
|
|
19
|
+
"bun": ">=1.3.13",
|
|
20
|
+
"node": ">=22.13"
|
|
20
21
|
},
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"repository": {
|
|
@@ -1,73 +0,0 @@
|
|
|
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 };
|