orchestrating 0.1.29 → 0.1.30

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 (2) hide show
  1. package/bin/orch +3 -1
  2. package/package.json +1 -1
package/bin/orch CHANGED
@@ -814,7 +814,9 @@ if (adapter) {
814
814
  }
815
815
  if (historyEvents.length > 0) {
816
816
  process.stderr.write(`${DIM}[orch] Forwarding ${historyEvents.length} history events to dashboard${RESET}\n`);
817
- sendToServer({ type: "agent_history_replay", sessionId, events: historyEvents });
817
+ // Prepend to eventHistory so they get replayed on reconnect too
818
+ eventHistory.unshift(...historyEvents);
819
+ while (eventHistory.length > MAX_EVENT_HISTORY) eventHistory.pop();
818
820
  }
819
821
  }
820
822
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrating",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Stream terminal sessions to the orchestrat.ing dashboard",
5
5
  "type": "module",
6
6
  "bin": {