@cpod/sdk - v0.2.7
    Preparing search index...

    Class AppRuntime

    App Runtime - Isolated per-app runtime with config, analytics, prompts, notifications, and tasks

    This module is pending backend implementation. All methods will throw NotImplementedError until the backend endpoints are available.

    const runtime = createAppRuntime("my-app-id");

    // Config
    await runtime.config.setEnv("API_KEY", "secret");
    const apiKey = await runtime.config.getEnv("API_KEY");

    // Analytics
    await runtime.analytics.recordMetric({ name: "requests", value: 1 });

    // Prompts
    const result = await runtime.prompts.execute({ prompt_name: "greeting", variables: { name: "World" } });

    // Notifications
    await runtime.notifications.send({ user_id: "user-123", title: "Hello", message: "Welcome!" });

    // Tasks
    await runtime.tasks.trigger({ name: "process-data", payload: { items: 100 } });
    Index

    Constructors

    Properties

    config: AppConfigRuntime
    analytics: AppAnalyticsRuntime
    prompts: AppPromptsRuntime
    notifications: AppNotificationsRuntime
    tasks: AppTasksRuntime

    Methods