Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

839 B
Raw Blame
import { defineFeature, type FeatureDeclaration } from "../contracts.js";
import { contributeInboxNotificationContext } from "./notification-context.js";

export const NOTIFICATION_CONTEXT_FEATURE_ID = "notification-context";

/**
 * Contributes the notification collaboration reminder. No external dependencies; first render and canonical rebuild
 * receive the composed contributeNotificationContext injected into the renderer by the host, so both see
 * the same input facts.
 */
export const createNotificationContextFeature = (): FeatureDeclaration =>
  defineFeature({
    id: NOTIFICATION_CONTEXT_FEATURE_ID,
    context: {
      ports: { contributeNotificationContext: {} },
      create: () => ({
        contributeNotificationContext: (_view, input) =>
          contributeInboxNotificationContext(input),
      }),
    },
  });