🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import type { AgentInterventionReviewStatus } from '../agent-run/agentInterventionReview';
export type ApnsEnvironment = 'production' | 'sandbox';
export interface RegisterLiveActivityPushToStartTokenParams {
apnsEnvironment: ApnsEnvironment;
deviceId: string;
liveActivityPushToStartToken: string;
userId: string;
workspaceId?: string;
}
export interface RegisterAgentInterventionLiveActivityParams {
/** Native ActivityKit id for diagnostics and token rotation. */
activityId: string;
/** Durable intervention identity, independent of ActivityKit's local id. */
activityKey: string;
apnsEnvironment: ApnsEnvironment;
deviceId: string;
operationId: string;
pushToken: string;
userId: string;
workspaceId?: string;
}
export interface RegisterAgentInterventionLiveActivityResult {
/** Current durable state so a late token registration can end immediately. */
interventionStatus: AgentInterventionReviewStatus;
/** Authoritative aggregate terminality; `mixed` alone cannot determine whether work remains. */
interventionTerminal: boolean;
}
/** OSS has no APNs ActivityKit token store. Cloud overrides this module. */
export async function registerLiveActivityPushToStartToken(
_params: RegisterLiveActivityPushToStartTokenParams,
): Promise<void> {}
/** OSS reports unavailable; Cloud validates ownership and persists by activityKey. */
export async function registerAgentInterventionLiveActivity(
_params: RegisterAgentInterventionLiveActivityParams,
): Promise<RegisterAgentInterventionLiveActivityResult> {
return { interventionStatus: 'unavailable', interventionTerminal: true };
}