opencode-swarm 7.146.1 → 7.146.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/dist/agents/council-prompts.d.ts +3 -3
- package/dist/cli/{config-doctor-sd7x5bts.js → config-doctor-yd866pd5.js} +2 -2
- package/dist/cli/{core-17febkvw.js → core-nc9a9g5m.js} +1 -1
- package/dist/cli/{curation-policy-x19e8bqc.js → curation-policy-9vv7v5rf.js} +6 -6
- package/dist/cli/{curator-vghf320v.js → curator-acp80hpc.js} +27 -27
- package/dist/cli/{curator-llm-factory-zxbgkjm5.js → curator-llm-factory-ewffa8r1.js} +27 -27
- package/dist/cli/{evidence-summary-service-xma4aagr.js → evidence-summary-service-8gw74j8g.js} +11 -11
- package/dist/cli/{gate-evidence-2bznvee8.js → gate-evidence-jj3zt2x1.js} +6 -6
- package/dist/cli/{guardrail-explain-ppzg0xz9.js → guardrail-explain-50cp8k3r.js} +28 -28
- package/dist/cli/{guardrail-log-xexwz93q.js → guardrail-log-jazq10gt.js} +3 -3
- package/dist/cli/{hive-promoter-j3vw2hj4.js → hive-promoter-qhrngsvb.js} +27 -27
- package/dist/cli/{index-4qvsh3m5.js → index-0a4s2803.js} +6 -6
- package/dist/cli/{index-qbpxrw95.js → index-1kq3x5q6.js} +2 -2
- package/dist/cli/{index-t7sfrv3v.js → index-262kyrk3.js} +4 -4
- package/dist/cli/{index-xz0ccakc.js → index-3377n9qp.js} +1 -1
- package/dist/cli/{index-g8qbjqqz.js → index-3gagma8p.js} +4 -4
- package/dist/cli/{index-5e5a1y2r.js → index-3p4wgm0d.js} +1 -1
- package/dist/cli/{index-e1hjd15c.js → index-463msy1e.js} +1 -1
- package/dist/cli/{index-twwb61bh.js → index-4zevsvaa.js} +3 -3
- package/dist/cli/{index-bghwrr59.js → index-6q35swn2.js} +1 -1
- package/dist/cli/{index-h8qed3pr.js → index-7ph5pz77.js} +17 -4
- package/dist/cli/{index-vacrzesw.js → index-923phxsp.js} +6 -6
- package/dist/cli/{index-k46kg4t6.js → index-a7cnyp5e.js} +7 -7
- package/dist/cli/{index-tzyvmkd1.js → index-bxk21f2w.js} +1 -1
- package/dist/cli/{index-97psh79d.js → index-bxs4wkjf.js} +1 -1
- package/dist/cli/{index-19f0zycs.js → index-bydybrke.js} +2 -2
- package/dist/cli/{index-cw96tpy6.js → index-cgcs823z.js} +4 -4
- package/dist/cli/{index-9qbr27bw.js → index-eybamsqg.js} +2 -2
- package/dist/cli/{index-1c9mfnj0.js → index-fypq68yn.js} +2 -2
- package/dist/cli/{index-n7trn9wz.js → index-gayh8tmh.js} +55 -1
- package/dist/cli/{index-va8a2zrq.js → index-gwt7ceh7.js} +2 -2
- package/dist/cli/{index-w0cj7zyd.js → index-j2ckvbx7.js} +1 -1
- package/dist/cli/{index-7x00nx8m.js → index-n96nt4gb.js} +1235 -589
- package/dist/cli/{index-zkaz3fhw.js → index-pc4423w8.js} +2 -2
- package/dist/cli/{index-fksfxhmx.js → index-pgsvn005.js} +5 -5
- package/dist/cli/{index-qyvjp0bq.js → index-q81s0m8k.js} +66 -37
- package/dist/cli/{index-w5r84rd1.js → index-qjgg9qzs.js} +1 -1
- package/dist/cli/{index-e3caa7ng.js → index-qqawmxe7.js} +29 -29
- package/dist/cli/{index-txh3h83v.js → index-v2eevdbj.js} +4 -4
- package/dist/cli/{index-ycgm9pzg.js → index-xz9w7sa9.js} +3 -2
- package/dist/cli/{index-bd4g9fvb.js → index-ypwwchs0.js} +1 -1
- package/dist/cli/{index-zwn2e2pe.js → index-yr1aabxa.js} +4 -4
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-wj85ppdt.js → knowledge-escalator-7zpg79dx.js} +11 -11
- package/dist/cli/{knowledge-events-4y9kk2xe.js → knowledge-events-8abttcnt.js} +9 -9
- package/dist/cli/{knowledge-link-8pr02pza.js → knowledge-link-mgg482z6.js} +5 -5
- package/dist/cli/{knowledge-store-kc8dwc14.js → knowledge-store-a5mzf986.js} +6 -6
- package/dist/cli/{knowledge-validator-584ga9fb.js → knowledge-validator-fn2myc73.js} +8 -8
- package/dist/cli/{pending-delegations-kkrczqv7.js → pending-delegations-591vme3d.js} +3 -3
- package/dist/cli/{pr-subscriptions-2xn238xt.js → pr-subscriptions-js5v2xr6.js} +3 -3
- package/dist/cli/{runner-e7z9cf5y.js → runner-rcnpm510.js} +6 -6
- package/dist/cli/{scan-cursor-rhjym1pn.js → scan-cursor-4jv70zwb.js} +7 -7
- package/dist/cli/{schema-yb3pvhcs.js → schema-jhz9hme9.js} +1 -1
- package/dist/cli/{scope-persistence-bxwjk9rc.js → scope-persistence-ykswenxj.js} +7 -7
- package/dist/cli/{skill-generator-3w8w7htr.js → skill-generator-k5pxb3w2.js} +13 -13
- package/dist/cli/{telemetry-t109dhv7.js → telemetry-xzy0qeap.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-2jtg2my1.js → worktree-collision-ownership-vt0jzmdt.js} +3 -3
- package/dist/cli/{worktree-isolation-av1rshr3.js → worktree-isolation-443q0pah.js} +27 -27
- package/dist/commands/close.d.ts +1 -0
- package/dist/commands/context-map-stats.d.ts +5 -0
- package/dist/config/schema.d.ts +16 -0
- package/dist/context-map/telemetry.d.ts +168 -26
- package/dist/council/council-evidence-writer.d.ts +2 -1
- package/dist/council/council-freshness.d.ts +49 -0
- package/dist/council/council-review-identity.d.ts +133 -0
- package/dist/council/council-round-state.d.ts +27 -3
- package/dist/council/disagreement-detector.d.ts +12 -2
- package/dist/council/general-council-types.d.ts +32 -0
- package/dist/council/types.d.ts +43 -7
- package/dist/hooks/knowledge-application-gate.d.ts +23 -0
- package/dist/index.js +166 -143
- package/dist/observability/catalog.d.ts +7 -5
- package/dist/telemetry.d.ts +22 -1
- package/dist/tools/phase-complete/gates/types.d.ts +7 -0
- package/dist/tools/write-final-council-evidence.d.ts +1 -7
- package/package.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The event catalog (issue #2029).
|
|
3
3
|
*
|
|
4
|
-
* Exactly
|
|
5
|
-
* `src/telemetry.ts:15-
|
|
4
|
+
* Exactly 46 entries, matching the `TelemetryEvent` union at
|
|
5
|
+
* `src/telemetry.ts:15-109`. Thirty-eight predate the #2029 contract; the 39th is
|
|
6
6
|
* `agent_conflict_detected` (previously emitted through a force-cast past the
|
|
7
7
|
* type system), the 40th is `close_archive_result` (issue #2030 — the
|
|
8
8
|
* structured close/archive result event), the 41st is the bounded diagnostic
|
|
9
9
|
* projection of authoritative knowledge-receipt transitions (issue #2031).
|
|
10
10
|
* The 42nd is the human-only `knowledge_maintenance` quarantine audit
|
|
11
11
|
* (issue #2033), the 43rd is the aggregate `context_pruned` transcript
|
|
12
|
-
* mutation audit,
|
|
13
|
-
* residue audit (issue #2035)
|
|
12
|
+
* mutation audit, the 44th is the bounded `residue_health` atomic-write
|
|
13
|
+
* residue audit (issue #2035), and the 46th is the bounded
|
|
14
|
+
* `context_telemetry_health` storage audit for the issue-#2037
|
|
15
|
+
* `.swarm/context-telemetry.jsonl` store. These late additions are instances of
|
|
14
16
|
* the defect class this contract exists to close: an event kind entering the
|
|
15
17
|
* stream with no registration.
|
|
16
18
|
*
|
|
@@ -65,7 +67,7 @@ export interface CatalogEntry {
|
|
|
65
67
|
/**
|
|
66
68
|
* Whether an event of this kind must carry `trace.parentSpanId`.
|
|
67
69
|
*
|
|
68
|
-
* `false` for all
|
|
70
|
+
* `false` for all 46 entries today, and that is a truthful statement about
|
|
69
71
|
* the current system rather than a placeholder: no producer supplies a
|
|
70
72
|
* parent span, so `createObservation` never sets one. Setting this to `true`
|
|
71
73
|
* for a kind whose producer cannot supply a parent would make every
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type TelemetryEvent = 'session_started' | 'session_ended' | 'agent_activa
|
|
|
32
32
|
* `prm_hard_stop` TRIGGER emitted by `src/prm/escalation.ts`. A trigger with
|
|
33
33
|
* no matching delivery means the containment never reached the agent.
|
|
34
34
|
*/
|
|
35
|
-
| 'prm_hard_stop_delivered' | 'agent_conflict_detected' | 'close_archive_result' | 'knowledge_receipt_transition' | 'knowledge_maintenance' | 'residue_health';
|
|
35
|
+
| 'prm_hard_stop_delivered' | 'agent_conflict_detected' | 'close_archive_result' | 'knowledge_receipt_transition' | 'knowledge_maintenance' | 'residue_health' | 'context_telemetry_health';
|
|
36
36
|
/** Stable classification for how a reviewer-gate decision was established. */
|
|
37
37
|
export type ReviewerGateEvidenceKind = 'genuine' | 'fallback' | 'data_quality' | 'block';
|
|
38
38
|
/**
|
|
@@ -236,6 +236,27 @@ export declare const telemetry: {
|
|
|
236
236
|
oldest_age_ms: number;
|
|
237
237
|
grammar_counts: Record<string, number>;
|
|
238
238
|
}): void;
|
|
239
|
+
/**
|
|
240
|
+
* Context-map telemetry storage health (issue #2037). Emitted after a
|
|
241
|
+
* compaction or close cut for the bounded `.swarm/context-telemetry.jsonl`
|
|
242
|
+
* store. Bounded payload: accepted/compacted/retained/dropped/corrupt
|
|
243
|
+
* counts, oldest/newest timestamps, and byte figures. Counts ONLY — no
|
|
244
|
+
* capsule/query content and no filesystem paths, matching the observability
|
|
245
|
+
* contract's no-content-in-metrics rule. Enables PR 16 to alarm and PR 20 to
|
|
246
|
+
* report without leaking workspace layout or capsule contents.
|
|
247
|
+
*/
|
|
248
|
+
contextTelemetryHealth(data: {
|
|
249
|
+
trigger: "compaction" | "close";
|
|
250
|
+
accepted_count: number;
|
|
251
|
+
compacted_count: number;
|
|
252
|
+
retained_count: number;
|
|
253
|
+
dropped_count: number;
|
|
254
|
+
corrupt_count: number;
|
|
255
|
+
oldest_timestamp: string | null;
|
|
256
|
+
newest_timestamp: string | null;
|
|
257
|
+
bytes: number;
|
|
258
|
+
limit_bytes: number;
|
|
259
|
+
}): void;
|
|
239
260
|
/**
|
|
240
261
|
* Issue #2063 C2 — the PRM hard-stop DENIAL was actually delivered to the
|
|
241
262
|
* agent (thrown by the guardrails `toolBefore` consumer). `prm_hard_stop`
|
|
@@ -50,4 +50,11 @@ export interface GateContext {
|
|
|
50
50
|
autoReviewBlocked?: boolean;
|
|
51
51
|
/** Machine-readable reason from the current review run, when blocked. */
|
|
52
52
|
autoReviewBlockReason?: import('../../../review/engine').ReviewEngineResult['blockReason'];
|
|
53
|
+
/**
|
|
54
|
+
* Single clock captured once for the whole aggregate phase preflight
|
|
55
|
+
* (issue #2102 contract D). All freshness-sensitive gates must evaluate
|
|
56
|
+
* against this timestamp instead of calling Date.now()/new Date() so
|
|
57
|
+
* their verdicts stay mutually consistent across an age boundary.
|
|
58
|
+
*/
|
|
59
|
+
preflightNowMs: number;
|
|
53
60
|
}
|
|
@@ -7,13 +7,7 @@ export declare const ArgsSchema: z.ZodObject<{
|
|
|
7
7
|
projectSummary: z.ZodString;
|
|
8
8
|
roundNumber: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
verdicts: z.ZodArray<z.ZodObject<{
|
|
10
|
-
agent: z.
|
|
11
|
-
reviewer: "reviewer";
|
|
12
|
-
test_engineer: "test_engineer";
|
|
13
|
-
critic: "critic";
|
|
14
|
-
explorer: "explorer";
|
|
15
|
-
sme: "sme";
|
|
16
|
-
}>;
|
|
10
|
+
agent: z.ZodString;
|
|
17
11
|
verdict: z.ZodEnum<{
|
|
18
12
|
APPROVE: "APPROVE";
|
|
19
13
|
CONCERNS: "CONCERNS";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.146.
|
|
3
|
+
"version": "7.146.3",
|
|
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",
|