@threadbase-sh/streamer 1.49.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.cjs CHANGED
@@ -510,6 +510,12 @@ var FEATURE_FLAGS = [
510
510
  default: true,
511
511
  env: "THREADBASE_FEATURE_SESSION_REHYDRATION"
512
512
  },
513
+ {
514
+ id: "liveActivityPush",
515
+ 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.",
516
+ default: false,
517
+ env: "THREADBASE_FEATURE_LIVE_ACTIVITY_PUSH"
518
+ },
513
519
  {
514
520
  id: "ptyHost",
515
521
  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.",
@@ -11787,6 +11793,13 @@ var StreamerServer = class {
11787
11793
  * on disk; neither it nor any device token is ever logged.
11788
11794
  */
11789
11795
  initLiveActivityPush(pushRepo) {
11796
+ if (!this.featureFlags.liveActivityPush) {
11797
+ this.log.info(
11798
+ "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.",
11799
+ { event: "live_activity.disabled" }
11800
+ );
11801
+ return;
11802
+ }
11790
11803
  const creds = readApnsCredentialsFromEnv();
11791
11804
  if (!creds) {
11792
11805
  const why = describeMissingApnsCredentials();