orchestrating 0.1.35 → 0.1.36
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/bin/orch +13 -4
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -722,6 +722,11 @@ while (i < args.length) {
|
|
|
722
722
|
console.error(" -y, --yolo Skip all permission prompts (auto-approve everything)");
|
|
723
723
|
console.error("");
|
|
724
724
|
console.error("Daemon options:");
|
|
725
|
+
console.error(" -b, --background Run daemon in background");
|
|
726
|
+
console.error(" --enable Start on boot (systemd/launchd)");
|
|
727
|
+
console.error(" --disable Remove boot startup");
|
|
728
|
+
console.error(" --stop Stop background daemon");
|
|
729
|
+
console.error(" --status Check if daemon is running");
|
|
725
730
|
console.error(" --projects <path> Directory to scan for projects (default: ~/projects)");
|
|
726
731
|
console.error(" -d <path> Short alias for --projects");
|
|
727
732
|
console.error("");
|
|
@@ -731,7 +736,8 @@ while (i < args.length) {
|
|
|
731
736
|
console.error(' orch -l "deploy fix" codex');
|
|
732
737
|
console.error(" orch bash");
|
|
733
738
|
console.error(" orch daemon");
|
|
734
|
-
console.error(" orch daemon
|
|
739
|
+
console.error(" orch daemon -b");
|
|
740
|
+
console.error(" orch daemon --enable");
|
|
735
741
|
console.error("");
|
|
736
742
|
console.error("Environment:");
|
|
737
743
|
console.error(" ORC_URL WebSocket server URL (default: wss://api.orchestrat.ing/ws)");
|
|
@@ -1082,10 +1088,13 @@ if (adapter) {
|
|
|
1082
1088
|
} catch {}
|
|
1083
1089
|
}
|
|
1084
1090
|
if (historyEvents.length > 0) {
|
|
1085
|
-
|
|
1091
|
+
// Only keep the most recent events from history
|
|
1092
|
+
const trimmedHistory = historyEvents.length > MAX_EVENT_HISTORY
|
|
1093
|
+
? historyEvents.slice(-MAX_EVENT_HISTORY)
|
|
1094
|
+
: historyEvents;
|
|
1095
|
+
process.stderr.write(`${DIM}[orch] Forwarding ${trimmedHistory.length} history events to dashboard (${historyEvents.length} total)${RESET}\n`);
|
|
1086
1096
|
// Prepend to eventHistory so they get replayed on reconnect too
|
|
1087
|
-
eventHistory.unshift(...
|
|
1088
|
-
while (eventHistory.length > MAX_EVENT_HISTORY) eventHistory.pop();
|
|
1097
|
+
eventHistory.unshift(...trimmedHistory);
|
|
1089
1098
|
}
|
|
1090
1099
|
}
|
|
1091
1100
|
} catch (err) {
|