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.
- package/lib/prismo-dev/agent.js +18 -11
- package/package.json +1 -1
package/lib/prismo-dev/agent.js
CHANGED
|
@@ -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
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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