getprismo 0.1.56 → 0.1.57

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.
@@ -575,17 +575,24 @@ module.exports = function createAgent(deps) {
575
575
  try {
576
576
  await sendHeartbeat(config, { mode, status: "online", lastPollAt: pollTime }, options);
577
577
  } catch (_) {}
578
- await sendLiveEvent(config, {
579
- eventId: `heartbeat-${repo.pathBasename}-${pollTime.slice(0, 16)}`,
580
- phase: "watching",
581
- eventType: "heartbeat",
582
- headline: "Connector is watching this repo",
583
- detail: `Mode: ${mode}. Polling for safe repairs and syncing telemetry.`,
584
- repo,
585
- }, options);
586
- await publishClaudeLoopStops(config, rootDir, repo, options);
587
- await publishClaudeContextBlocks(config, rootDir, repo, options);
588
- await publishAgentLoopSignals(config, rootDir, repo, options);
578
+
579
+ // Presence heartbeat above runs every poll (cheap upsert). The live-event
580
+ // feed and loop/context publishing only need the slower sync cadence, so
581
+ // gate them on syncTelemetry to avoid a burst of small writes every poll.
582
+ const publishLive = options.syncTelemetry !== false;
583
+ if (publishLive) {
584
+ await sendLiveEvent(config, {
585
+ eventId: `heartbeat-${repo.pathBasename}-${pollTime.slice(0, 16)}`,
586
+ phase: "watching",
587
+ eventType: "heartbeat",
588
+ headline: "Connector is watching this repo",
589
+ detail: `Mode: ${mode}. Polling for safe repairs and syncing telemetry.`,
590
+ repo,
591
+ }, options);
592
+ await publishClaudeLoopStops(config, rootDir, repo, options);
593
+ await publishClaudeContextBlocks(config, rootDir, repo, options);
594
+ await publishAgentLoopSignals(config, rootDir, repo, options);
595
+ }
589
596
 
590
597
  let autoDetectResult = null;
591
598
  if (options.autoDetect) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getprismo",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "description": "Local AI coding workflow scanner for Codex, Claude Code, Cursor, and token-waste diagnostics.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/shanirsh/prismodev#readme",