switchroom 0.15.14 → 0.15.15
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/dist/cli/switchroom.js
CHANGED
|
@@ -50467,8 +50467,8 @@ var {
|
|
|
50467
50467
|
} = import__.default;
|
|
50468
50468
|
|
|
50469
50469
|
// src/build-info.ts
|
|
50470
|
-
var VERSION = "0.15.
|
|
50471
|
-
var COMMIT_SHA = "
|
|
50470
|
+
var VERSION = "0.15.15";
|
|
50471
|
+
var COMMIT_SHA = "815adf85";
|
|
50472
50472
|
|
|
50473
50473
|
// src/cli/agent.ts
|
|
50474
50474
|
init_source();
|
package/package.json
CHANGED
|
@@ -86,8 +86,16 @@ CRON_APPEND_PROMPT="You are the cheap background cron worker for {{name}}. You r
|
|
|
86
86
|
# (no --continue) — low context by construction. cd into the workspace so
|
|
87
87
|
# claude's project key matches the pre-seeded trust state (.claude-cron).
|
|
88
88
|
cd "{{agentDir}}" || exit 1
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
# Create the cron tmux session DETACHED (-d), not in attach mode. This is a
|
|
90
|
+
# SUPERVISED BACKGROUND sidecar (start.sh forks it with `&`) with no controlling
|
|
91
|
+
# TTY — the MAIN session owns the container's foreground TTY. The attach flag
|
|
92
|
+
# needs a TTY, so it dies "open terminal failed: not a terminal" and the cron
|
|
93
|
+
# bridge never registers (every Tier-1 fire then falls back to main). `-d` runs
|
|
94
|
+
# claude in a detached pane that registers fine; a human can still
|
|
95
|
+
# `tmux -L "$CRON_SOCKET" attach -t "$CRON_NAME"` later. The `-x/-y` give the
|
|
96
|
+
# pane a size since there's no TTY to derive one from.
|
|
97
|
+
tmux -L "$CRON_SOCKET" \
|
|
98
|
+
new-session -d -s "$CRON_NAME" -x 400 -y 50 \
|
|
91
99
|
claude \
|
|
92
100
|
--dangerously-load-development-channels server:switchroom-telegram \
|
|
93
101
|
--plugin-dir "{{securityPluginDir}}" \
|
|
@@ -96,3 +104,12 @@ exec tmux -L "$CRON_SOCKET" \
|
|
|
96
104
|
--model {{{cronModelQ}}} \
|
|
97
105
|
--append-system-prompt "$CRON_APPEND_PROMPT"{{#if dangerousMode}} \
|
|
98
106
|
--dangerously-skip-permissions{{/if}}
|
|
107
|
+
|
|
108
|
+
# `new-session -d` returns immediately (tmux daemonizes the session), so block
|
|
109
|
+
# here while the session lives — this keeps cron-session.sh as the supervisor's
|
|
110
|
+
# long-running child. When the cron claude exits (crash / kill), the session
|
|
111
|
+
# ends, the loop exits, and the supervisor respawns us cleanly (with backoff).
|
|
112
|
+
while tmux -L "$CRON_SOCKET" has-session -t "$CRON_NAME" 2>/dev/null; do
|
|
113
|
+
sleep 5
|
|
114
|
+
done
|
|
115
|
+
echo "cron-session: ${CRON_NAME} tmux session ended — exiting for supervisor respawn" >&2
|
|
@@ -54166,10 +54166,10 @@ function readTurnActiveMarkerAgeMs(stateDir, now) {
|
|
|
54166
54166
|
}
|
|
54167
54167
|
|
|
54168
54168
|
// ../src/build-info.ts
|
|
54169
|
-
var VERSION = "0.15.
|
|
54170
|
-
var COMMIT_SHA = "
|
|
54171
|
-
var COMMIT_DATE = "2026-06-
|
|
54172
|
-
var LATEST_PR =
|
|
54169
|
+
var VERSION = "0.15.15";
|
|
54170
|
+
var COMMIT_SHA = "815adf85";
|
|
54171
|
+
var COMMIT_DATE = "2026-06-13T12:14:07Z";
|
|
54172
|
+
var LATEST_PR = 2328;
|
|
54173
54173
|
var COMMITS_AHEAD_OF_TAG = 0;
|
|
54174
54174
|
|
|
54175
54175
|
// gateway/boot-version.ts
|