@threadbase-sh/streamer 1.47.3 → 1.49.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 +540 -319
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +388 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +385 -168
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1706,6 +1706,13 @@ type ApiDeps = {
|
|
|
1706
1706
|
cacheMonitor: () => CacheIntegrityMonitor | null;
|
|
1707
1707
|
/** Push registration + delivery state (C7). Null when the cache DB is unavailable. */
|
|
1708
1708
|
pushRepo: () => PushRepository | null;
|
|
1709
|
+
/**
|
|
1710
|
+
* Whether Live Activity push is actually running on this server — the same
|
|
1711
|
+
* fact the boot log reports as `live_activity.enabled`. Asked of the server
|
|
1712
|
+
* rather than re-derived from the environment, because APNs credentials alone
|
|
1713
|
+
* do not enable it: the sender is only wired when the token store opened too.
|
|
1714
|
+
*/
|
|
1715
|
+
liveActivityPushEnabled: () => boolean;
|
|
1709
1716
|
/** Paired-device registry (C5). Null when the cache DB is unavailable. */
|
|
1710
1717
|
devicesRepo: () => DevicesRepository | null;
|
|
1711
1718
|
projectsRepo: () => ProjectsRepository | null;
|
|
@@ -1954,6 +1961,7 @@ declare class StreamerServer {
|
|
|
1954
1961
|
private apnsClient;
|
|
1955
1962
|
private liveActivityNotifier;
|
|
1956
1963
|
private liveActivityRenewal;
|
|
1964
|
+
private waitingInputNotifier;
|
|
1957
1965
|
private discoveryCache;
|
|
1958
1966
|
private discoveryInFlight;
|
|
1959
1967
|
private cacheDir;
|
|
@@ -2008,6 +2016,18 @@ declare class StreamerServer {
|
|
|
2008
2016
|
* on disk; neither it nor any device token is ever logged.
|
|
2009
2017
|
*/
|
|
2010
2018
|
private initLiveActivityPush;
|
|
2019
|
+
/**
|
|
2020
|
+
* Bring up "your turn" notifications over Expo's relay (#528).
|
|
2021
|
+
*
|
|
2022
|
+
* Unconditional, unlike Live Activity push: Expo holds the app's APNs and FCM
|
|
2023
|
+
* credentials, so a self-hosted streamer needs no credential of its own. The
|
|
2024
|
+
* access token is optional and only relevant if the Expo project has enhanced
|
|
2025
|
+
* security enabled — requiring one would lock out every self-hoster, since
|
|
2026
|
+
* they do not own the project. It is never logged.
|
|
2027
|
+
*/
|
|
2028
|
+
private initWaitingInputPush;
|
|
2029
|
+
/** Whether any live socket is subscribed to this session — "someone is looking". */
|
|
2030
|
+
private hasSessionSubscriber;
|
|
2011
2031
|
/**
|
|
2012
2032
|
* Classify sessions left behind by previous streamer runs (C1 Phase 3a).
|
|
2013
2033
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1706,6 +1706,13 @@ type ApiDeps = {
|
|
|
1706
1706
|
cacheMonitor: () => CacheIntegrityMonitor | null;
|
|
1707
1707
|
/** Push registration + delivery state (C7). Null when the cache DB is unavailable. */
|
|
1708
1708
|
pushRepo: () => PushRepository | null;
|
|
1709
|
+
/**
|
|
1710
|
+
* Whether Live Activity push is actually running on this server — the same
|
|
1711
|
+
* fact the boot log reports as `live_activity.enabled`. Asked of the server
|
|
1712
|
+
* rather than re-derived from the environment, because APNs credentials alone
|
|
1713
|
+
* do not enable it: the sender is only wired when the token store opened too.
|
|
1714
|
+
*/
|
|
1715
|
+
liveActivityPushEnabled: () => boolean;
|
|
1709
1716
|
/** Paired-device registry (C5). Null when the cache DB is unavailable. */
|
|
1710
1717
|
devicesRepo: () => DevicesRepository | null;
|
|
1711
1718
|
projectsRepo: () => ProjectsRepository | null;
|
|
@@ -1954,6 +1961,7 @@ declare class StreamerServer {
|
|
|
1954
1961
|
private apnsClient;
|
|
1955
1962
|
private liveActivityNotifier;
|
|
1956
1963
|
private liveActivityRenewal;
|
|
1964
|
+
private waitingInputNotifier;
|
|
1957
1965
|
private discoveryCache;
|
|
1958
1966
|
private discoveryInFlight;
|
|
1959
1967
|
private cacheDir;
|
|
@@ -2008,6 +2016,18 @@ declare class StreamerServer {
|
|
|
2008
2016
|
* on disk; neither it nor any device token is ever logged.
|
|
2009
2017
|
*/
|
|
2010
2018
|
private initLiveActivityPush;
|
|
2019
|
+
/**
|
|
2020
|
+
* Bring up "your turn" notifications over Expo's relay (#528).
|
|
2021
|
+
*
|
|
2022
|
+
* Unconditional, unlike Live Activity push: Expo holds the app's APNs and FCM
|
|
2023
|
+
* credentials, so a self-hosted streamer needs no credential of its own. The
|
|
2024
|
+
* access token is optional and only relevant if the Expo project has enhanced
|
|
2025
|
+
* security enabled — requiring one would lock out every self-hoster, since
|
|
2026
|
+
* they do not own the project. It is never logged.
|
|
2027
|
+
*/
|
|
2028
|
+
private initWaitingInputPush;
|
|
2029
|
+
/** Whether any live socket is subscribed to this session — "someone is looking". */
|
|
2030
|
+
private hasSessionSubscriber;
|
|
2011
2031
|
/**
|
|
2012
2032
|
* Classify sessions left behind by previous streamer runs (C1 Phase 3a).
|
|
2013
2033
|
*
|