switchroom 0.14.13 → 0.14.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 +2 -2
- package/package.json +1 -1
- package/profiles/_base/start.sh.hbs +17 -3
- package/telegram-plugin/dist/gateway/gateway.js +438 -158
- package/telegram-plugin/gateway/gateway.ts +123 -2
- package/telegram-plugin/reaction-defer.ts +98 -0
- package/telegram-plugin/status-reactions.ts +31 -1
- package/telegram-plugin/subagent-watcher.ts +13 -0
- package/telegram-plugin/tests/reaction-defer.test.ts +187 -0
- package/telegram-plugin/tests/status-reactions.test.ts +79 -0
- package/telegram-plugin/tests/worker-activity-feed.test.ts +256 -0
- package/telegram-plugin/worker-activity-feed.ts +314 -0
package/dist/cli/switchroom.js
CHANGED
|
@@ -49413,8 +49413,8 @@ var {
|
|
|
49413
49413
|
} = import__.default;
|
|
49414
49414
|
|
|
49415
49415
|
// src/build-info.ts
|
|
49416
|
-
var VERSION = "0.14.
|
|
49417
|
-
var COMMIT_SHA = "
|
|
49416
|
+
var VERSION = "0.14.15";
|
|
49417
|
+
var COMMIT_SHA = "e0f95f64";
|
|
49418
49418
|
|
|
49419
49419
|
// src/cli/agent.ts
|
|
49420
49420
|
init_source();
|
package/package.json
CHANGED
|
@@ -26,6 +26,21 @@
|
|
|
26
26
|
# `src/agents/lifecycle.ts:attachAgent` expect — the contract is the
|
|
27
27
|
# same one v0.6 systemd has always honored, just enforced inside the
|
|
28
28
|
# container instead of by the host's user systemd manager.
|
|
29
|
+
|
|
30
|
+
{{#if handoffEnabled}}
|
|
31
|
+
# The telegram-plugin gateway reads SWITCHROOM_HANDOFF_SHOW_LINE to
|
|
32
|
+
# decide whether to prepend the visible "↩️ Picked up where we left
|
|
33
|
+
# off …" line on the first reply after a restart. It MUST be exported
|
|
34
|
+
# *before* the gateway is forked in the docker preamble below (and
|
|
35
|
+
# before the tmux re-exec), otherwise the gateway — the sole consumer —
|
|
36
|
+
# never inherits it and session_continuity.show_handoff_line:false
|
|
37
|
+
# silently no-ops on every docker agent. Living here, ahead of the
|
|
38
|
+
# runtime branch, covers docker (both the outer fork pass and the inner
|
|
39
|
+
# tmux pass) and the v0.6 non-docker path in one place. Gated on
|
|
40
|
+
# handoffEnabled so a handoff-disabled agent emits no handoff env at all.
|
|
41
|
+
export SWITCHROOM_HANDOFF_SHOW_LINE={{#if handoffShowLine}}true{{else}}false{{/if}}
|
|
42
|
+
{{/if}}
|
|
43
|
+
|
|
29
44
|
if [ "$SWITCHROOM_RUNTIME" = "docker" ] && [ -z "$SWITCHROOM_DOCKER_TMUX_INNER" ]; then
|
|
30
45
|
# Hoist TELEGRAM_STATE_DIR up here so the gateway daemon (forked
|
|
31
46
|
# below) finds gateway.sock / gateway.pid.json / history.db at the
|
|
@@ -510,9 +525,8 @@ if [ ! -s "$HANDOFF_FILE" ]; then
|
|
|
510
525
|
timeout 5 handoff-briefing.sh 2>/dev/null || true
|
|
511
526
|
fi
|
|
512
527
|
fi
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
export SWITCHROOM_HANDOFF_SHOW_LINE={{#if handoffShowLine}}true{{else}}false{{/if}}
|
|
528
|
+
# SWITCHROOM_HANDOFF_SHOW_LINE is exported near the top of this script
|
|
529
|
+
# (ahead of the docker preamble) so the gateway sidecar inherits it.
|
|
516
530
|
APPEND_PROMPT={{#if systemPromptAppendShellQuoted}}{{{systemPromptAppendShellQuoted}}}{{else}}""{{/if}}
|
|
517
531
|
# Inject .handoff-briefing.md first (assembled from live sources), then
|
|
518
532
|
# .handoff.md (raw transcript tail from the Stop hook). If both
|