opencode-swarm 7.134.3 → 7.135.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.
Files changed (58) hide show
  1. package/dist/background/pr-monitor-worker.d.ts +14 -13
  2. package/dist/cli/{config-doctor-yqwm2tfh.js → config-doctor-j1x63x87.js} +2 -2
  3. package/dist/cli/{core-d6yd2jzv.js → core-fvqp2gnn.js} +1 -1
  4. package/dist/cli/{curation-policy-x5m4x34n.js → curation-policy-xg9zw0ep.js} +6 -6
  5. package/dist/cli/{curator-llm-factory-24mjnh2y.js → curator-llm-factory-4mat6cq5.js} +23 -23
  6. package/dist/cli/{curator-thrwgwh1.js → curator-yc06cmnz.js} +23 -23
  7. package/dist/cli/{evidence-summary-service-pay9409b.js → evidence-summary-service-0cczdmjv.js} +6 -6
  8. package/dist/cli/{gate-evidence-b5v1xvxp.js → gate-evidence-8zrwdj69.js} +4 -4
  9. package/dist/cli/{guardrail-explain-nmfq71cm.js → guardrail-explain-zmbxwh3s.js} +24 -24
  10. package/dist/cli/{guardrail-log-2a61rz1w.js → guardrail-log-7egxrxap.js} +3 -3
  11. package/dist/cli/{hive-promoter-2nkjjwgc.js → hive-promoter-7s3gzajy.js} +23 -23
  12. package/dist/cli/{index-5nybajn9.js → index-09b9zncg.js} +1 -1
  13. package/dist/cli/{index-tsmjmhnk.js → index-337r9pkr.js} +2 -2
  14. package/dist/cli/{index-2t1n9k7b.js → index-44zgqvqh.js} +1 -1
  15. package/dist/cli/{index-8wktghbc.js → index-4yv2rn8q.js} +1 -1
  16. package/dist/cli/{index-yaptf0hg.js → index-6kmmdtdp.js} +2 -2
  17. package/dist/cli/{index-q2rrv0cy.js → index-7a2hm51h.js} +57 -2
  18. package/dist/cli/{index-y3v1404y.js → index-7an2qn0s.js} +1 -1
  19. package/dist/cli/{index-mgr951p8.js → index-86wdrskb.js} +5 -5
  20. package/dist/cli/{index-txwm0fv4.js → index-96b78s7p.js} +25 -25
  21. package/dist/cli/{index-q3m6bpx2.js → index-997d6p42.js} +4 -4
  22. package/dist/cli/{index-1mq8kmp6.js → index-a4972t0f.js} +3 -3
  23. package/dist/cli/{index-wk1h5ec2.js → index-b7p0mp2q.js} +2 -2
  24. package/dist/cli/{index-6kfqz0jw.js → index-crw4n55v.js} +1289 -1124
  25. package/dist/cli/{index-2b7sv71f.js → index-ctvnb76s.js} +1 -1
  26. package/dist/cli/{index-ddxt327j.js → index-e8w62fgs.js} +1 -1
  27. package/dist/cli/{index-8fhg2nt2.js → index-ens0gt38.js} +5 -5
  28. package/dist/cli/{index-y3rj2jgb.js → index-g0raqavt.js} +2 -2
  29. package/dist/cli/{index-yqvh2s4w.js → index-grxkbbc5.js} +1 -1
  30. package/dist/cli/{index-rjngxx7q.js → index-nrvs08pr.js} +6 -6
  31. package/dist/cli/{index-p8hezdtz.js → index-ny93srnd.js} +1 -1
  32. package/dist/cli/{index-reesz606.js → index-q9mq5tv3.js} +2 -2
  33. package/dist/cli/{index-5f403c30.js → index-vf6e8ame.js} +2 -2
  34. package/dist/cli/{index-4p02dp92.js → index-wxyxf0bd.js} +2 -2
  35. package/dist/cli/{index-6wya5cqh.js → index-x88w0cp5.js} +3 -3
  36. package/dist/cli/{index-dd7ttx8x.js → index-xg9repnx.js} +1 -1
  37. package/dist/cli/{index-cfkvc5q9.js → index-yhba8swx.js} +1 -1
  38. package/dist/cli/{index-1j3682j8.js → index-z085b4ka.js} +1 -1
  39. package/dist/cli/index.js +23 -23
  40. package/dist/cli/{knowledge-escalator-fqsavryx.js → knowledge-escalator-d76a090n.js} +7 -7
  41. package/dist/cli/{knowledge-events-ykt8vrvj.js → knowledge-events-3mcg1a0e.js} +5 -5
  42. package/dist/cli/{knowledge-link-nc4y2zkq.js → knowledge-link-etrfntkd.js} +4 -4
  43. package/dist/cli/{knowledge-store-tpd98m39.js → knowledge-store-xtt4sede.js} +5 -5
  44. package/dist/cli/{knowledge-validator-kc7fnt2r.js → knowledge-validator-h1k7ymtd.js} +8 -8
  45. package/dist/cli/{pending-delegations-v9e40hfk.js → pending-delegations-4z3tkkct.js} +3 -3
  46. package/dist/cli/{pr-subscriptions-ztq40hrt.js → pr-subscriptions-29j794kd.js} +3 -3
  47. package/dist/cli/{scan-cursor-121b73j0.js → scan-cursor-stztfv7d.js} +6 -6
  48. package/dist/cli/{schema-jb4p8ja9.js → schema-tbq2srrh.js} +1 -1
  49. package/dist/cli/{scope-persistence-hz3zmmsv.js → scope-persistence-7wydjzx8.js} +4 -4
  50. package/dist/cli/{skill-generator-m2g5mdva.js → skill-generator-02q1qdf0.js} +9 -9
  51. package/dist/cli/{telemetry-qh78ymq4.js → telemetry-859khp82.js} +9 -1
  52. package/dist/cli/{worktree-collision-ownership-c4bdnjtx.js → worktree-collision-ownership-dtwr0xj4.js} +3 -3
  53. package/dist/commands/context-map-stats.d.ts +5 -0
  54. package/dist/commands/registry.d.ts +14 -0
  55. package/dist/index.js +180 -178
  56. package/dist/services/status-service.d.ts +12 -2
  57. package/dist/telemetry.d.ts +5 -0
  58. package/package.json +1 -1
@@ -118,6 +118,16 @@ export interface StatusData {
118
118
  sharedRoot?: string;
119
119
  generation?: number;
120
120
  };
121
+ /** FR-010: last heartbeat activity for the session */
122
+ lastActivity?: {
123
+ sessionId: string;
124
+ /** epoch ms from getLastHeartbeat */
125
+ timestamp: number;
126
+ /** null when no heartbeat recorded */
127
+ agoMs: number | null;
128
+ /** human-readable: "5s ago", "12m ago", "2h ago", "never" */
129
+ agoLabel: string;
130
+ };
121
131
  /**
122
132
  * #1850: memory cohort link status. Distinct from `cohort` (knowledge link)
123
133
  * so status can distinguish knowledge-linked from memory-linked (acceptance
@@ -139,7 +149,7 @@ export interface StatusData {
139
149
  * Get status data from the swarm directory.
140
150
  * Returns structured data that can be used by GUI, background flows, or commands.
141
151
  */
142
- export declare function getStatusData(directory: string, agents: Record<string, AgentDefinition>): Promise<StatusData>;
152
+ export declare function getStatusData(directory: string, agents: Record<string, AgentDefinition>, sessionId?: string): Promise<StatusData>;
143
153
  /**
144
154
  * Format status data as markdown for command output.
145
155
  * This is the thin adapter that delegates to the service.
@@ -149,4 +159,4 @@ export declare function formatStatusMarkdown(status: StatusData): string;
149
159
  * Handle status command - delegates to service and formats output.
150
160
  * Kept for backward compatibility - thin adapter.
151
161
  */
152
- export declare function handleStatusCommand(directory: string, agents: Record<string, AgentDefinition>): Promise<string>;
162
+ export declare function handleStatusCommand(directory: string, agents: Record<string, AgentDefinition>, sessionId?: string): Promise<string>;
@@ -10,6 +10,10 @@ export type ReviewerGateEvidenceKind = 'genuine' | 'fallback' | 'data_quality' |
10
10
  */
11
11
  export type ReviewerGateReasonCode = 'lean_turbo_completed_lane' | 'standard_turbo_non_tier3' | 'durable_evidence_complete' | 'workflow_state_complete' | 'stage_b_parallel_complete' | 'no_active_sessions' | 'zero_valid_sessions' | 'restart_recovery_complete' | 'scoped_delegation_complete' | 'unscoped_delegation_complete' | 'corrupt_evidence' | 'required_gates_missing' | 'inspection_error';
12
12
  export type TelemetryListener = (event: TelemetryEvent, data: Record<string, unknown>) => void;
13
+ export declare function startHeartbeatTracking(): void;
14
+ export declare function getLastHeartbeat(sessionId: string): number | undefined;
15
+ export declare function stopHeartbeatTracking(): void;
16
+ export declare function resetHeartbeatTrackingForTesting(): void;
13
17
  /**
14
18
  * Number of emits between rotation checks. 50 keeps the overhead at one
15
19
  * `statSync` per 50 telemetry writes (~once per few seconds in a busy
@@ -87,4 +91,5 @@ export declare const _internals: {
87
91
  telemetry: typeof telemetry;
88
92
  emit: typeof emit;
89
93
  rotateTelemetryIfNeeded: typeof rotateTelemetryIfNeeded;
94
+ heartbeatListenerCount: () => number;
90
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.134.3",
3
+ "version": "7.135.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",