@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/cli.cjs CHANGED
@@ -6227,6 +6227,12 @@ var init_feature_flags = __esm({
6227
6227
  default: true,
6228
6228
  env: "THREADBASE_FEATURE_SESSION_REHYDRATION"
6229
6229
  },
6230
+ {
6231
+ id: "liveActivityPush",
6232
+ 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.",
6233
+ default: false,
6234
+ env: "THREADBASE_FEATURE_LIVE_ACTIVITY_PUSH"
6235
+ },
6230
6236
  {
6231
6237
  id: "ptyHost",
6232
6238
  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.",
@@ -149557,6 +149563,13 @@ var StreamerServer = class {
149557
149563
  * on disk; neither it nor any device token is ever logged.
149558
149564
  */
149559
149565
  initLiveActivityPush(pushRepo) {
149566
+ if (!this.featureFlags.liveActivityPush) {
149567
+ this.log.info(
149568
+ "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.",
149569
+ { event: "live_activity.disabled" }
149570
+ );
149571
+ return;
149572
+ }
149560
149573
  const creds = readApnsCredentialsFromEnv();
149561
149574
  if (!creds) {
149562
149575
  const why = describeMissingApnsCredentials();