@threadbase-sh/streamer 1.50.0 → 1.51.0

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/index.js CHANGED
@@ -458,6 +458,12 @@ var FEATURE_FLAGS = [
458
458
  default: true,
459
459
  env: "THREADBASE_FEATURE_SESSION_REHYDRATION"
460
460
  },
461
+ {
462
+ id: "liveActivityPush",
463
+ description: "Drive iOS Live Activity surfaces for running sessions. Off by default: the streamer half needs an APNs p8 and a registered push-to-start token, and without both, mobile falls back to starting the activity locally \u2014 which freezes the moment the app backgrounds and expires silently after ~8h. Mobile reads this flag and skips its local path too, so one switch turns the whole surface off.",
464
+ default: false,
465
+ env: "THREADBASE_FEATURE_LIVE_ACTIVITY_PUSH"
466
+ },
461
467
  {
462
468
  id: "ptyHost",
463
469
  description: "Keep live PTYs in a separate host process so a streamer restart can reconnect without restarting the agents. Off by default until cross-platform behavior is qualified.",
@@ -11750,6 +11756,13 @@ var StreamerServer = class {
11750
11756
  * on disk; neither it nor any device token is ever logged.
11751
11757
  */
11752
11758
  initLiveActivityPush(pushRepo) {
11759
+ if (!this.featureFlags.liveActivityPush) {
11760
+ this.log.info(
11761
+ "Live Activity push is disabled by the liveActivityPush feature flag. Enable it with THREADBASE_FEATURE_LIVE_ACTIVITY_PUSH=1, --feature liveActivityPush=true, or feature_flags: in server.yaml.",
11762
+ { event: "live_activity.disabled" }
11763
+ );
11764
+ return;
11765
+ }
11753
11766
  const creds = readApnsCredentialsFromEnv();
11754
11767
  if (!creds) {
11755
11768
  const why = describeMissingApnsCredentials();