← Files Night Ledger: Sleep DiaryARCHIVED FILE

plugin.json

7.02 KB · Nov 30, 2026 · 07:40 UTC

↓ Download file

See the change to this file →

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "sleep-diary-lab",
  "version": "0.3.4",
  "description": "Understand the nights you actually recorded.",
  "author": {
    "name": "NebulaCafe Studio"
  },
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Night Ledger: Sleep Diary",
        "shortDescription": "Calculate sleep diary totals",
        "longDescription": "Understand the nights you actually recorded. Includes a launch screen, side-panel workspace, editable input controls and real computations: Calculate nightly diary estimates; Summarize a diary window; Inspect wake-time consistency. Imports and exports its own versioned documents. Uses supplied information; no live lookup or background monitoring.",
        "developerName": "NebulaCafe Studio",
        "category": "Healthcare",
        "defaultPrompt": [
          "Open Night Ledger: Sleep Diary.",
          "Help me calculate nightly diary estimates.",
          "Help me summarize a diary window."
        ],
        "logo": "./assets/icon-final.png",
        "composerIcon": "./assets/icon-final.png",
        "capabilities": [
          "Interactive"
        ],
        "websiteURL": "https://nebulacafe.studio/plugins/sleep-diary-lab",
        "supportURL": "https://nebulacafe.studio/support",
        "privacyPolicyURL": "https://nebulacafe.studio/privacy",
        "termsOfServiceURL": "https://nebulacafe.studio/terms"
      },
      "review": {
        "prompts": [
          "Help me calculate nightly diary estimates.",
          "Help me summarize a diary window.",
          "Help me inspect wake-time consistency."
        ],
        "test_cases": {
          "positive": [
            {
              "description": "Open the launch screen without calculating.",
              "prompt": "Open Night Ledger: Sleep Diary.",
              "tools_triggered": "sleep_diary_lab_launch",
              "expected_behavior": "Returns the actual launch screen with three distinct workflow cards. No computation or file access."
            },
            {
              "description": "Open the editable side-panel workspace.",
              "prompt": "Open the Night Ledger: Sleep Diary workspace beside this chat.",
              "tools_triggered": "sleep_diary_lab_workspace",
              "expected_behavior": "Returns the editable workspace and labeled illustrative inputs. No computation starts automatically."
            },
            {
              "description": "Calculate nightly diary estimates. Reproducible inputs: {\"nights\":[{\"date\":\"2026-11-05\",\"bedtime\":\"23:00\",\"wake_time\":\"07:00\",\"latency_min\":20,\"awake_min\":10},{\"date\":\"2026-11-06\",\"bedtime\":\"23:30\",\"wake_time\":\"07:15\",\"latency_min\":15,\"awake_min\":15}]}",
              "prompt": "Help me calculate nightly diary estimates with these supplied values: {\"nights\":[{\"date\":\"2026-11-05\",\"bedtime\":\"23:00\",\"wake_time\":\"07:00\",\"latency_min\":20,\"awake_min\":10},{\"date\":\"2026-11-06\",\"bedtime\":\"23:30\",\"wake_time\":\"07:15\",\"latency_min\":15,\"awake_min\":15}]}",
              "tools_triggered": "sleep_diary_lab_night_estimates",
              "expected_behavior": "Uses sleep_diary_lab_night_estimates with the supplied inputs. Returns {\"nights\":[{\"date\":\"2026-11-05\",\"bedtime\":\"23:00\",\"wake_time\":\"07:00\",\"latency_min\":20,\"awake_min\":10,\"time_in_bed_min\":480,\"sleep_min\":450,\"efficiency_pct\":93.75},{\"date\":\"2026-11-06\",\"bedtime\":\"23:30\",\"wake_time\":\"07:15\",\"latency_min\":15,\"awake_min\":15,\"time_in_bed_min\":465,\"sleep_min\":435,\"efficiency_pct\":93.5484}],\"note\":\"Local wall-clock estimates; daylight saving and travel are not adjusted.\"}. Shows the actual sleep result. Does not fabricate external data."
            },
            {
              "description": "Summarize a diary window. Reproducible inputs: {\"nights\":[{\"date\":\"2026-11-05\",\"bedtime\":\"23:00\",\"wake_time\":\"07:00\",\"latency_min\":20,\"awake_min\":10},{\"date\":\"2026-11-06\",\"bedtime\":\"23:30\",\"wake_time\":\"07:15\",\"latency_min\":15,\"awake_min\":15}]}",
              "prompt": "Help me summarize a diary window with these supplied values: {\"nights\":[{\"date\":\"2026-11-05\",\"bedtime\":\"23:00\",\"wake_time\":\"07:00\",\"latency_min\":20,\"awake_min\":10},{\"date\":\"2026-11-06\",\"bedtime\":\"23:30\",\"wake_time\":\"07:15\",\"latency_min\":15,\"awake_min\":15}]}",
              "tools_triggered": "sleep_diary_lab_diary_summary",
              "expected_behavior": "Uses sleep_diary_lab_diary_summary with the supplied inputs. Returns {\"nights\":2,\"average_sleep_hours\":7.375,\"average_latency_min\":17.5,\"average_awake_min\":12.5,\"weighted_efficiency_pct\":93.6508,\"shortest_sleep_hours\":7.25,\"longest_sleep_hours\":7.5}. Shows the actual metrics result. Does not fabricate external data."
            },
            {
              "description": "Inspect wake-time consistency. Reproducible inputs: {\"nights\":[{\"date\":\"2026-11-05\",\"wake_time\":\"07:00\"},{\"date\":\"2026-11-06\",\"wake_time\":\"07:15\"}],\"anchor\":\"07:00\"}",
              "prompt": "Help me inspect wake-time consistency with these supplied values: {\"nights\":[{\"date\":\"2026-11-05\",\"wake_time\":\"07:00\"},{\"date\":\"2026-11-06\",\"wake_time\":\"07:15\"}],\"anchor\":\"07:00\"}",
              "tools_triggered": "sleep_diary_lab_wake_consistency",
              "expected_behavior": "Uses sleep_diary_lab_wake_consistency with the supplied inputs. Returns {\"anchor\":\"07:00\",\"entries\":[{\"date\":\"2026-11-05\",\"wake_time\":\"07:00\",\"deviation_minutes\":0},{\"date\":\"2026-11-06\",\"wake_time\":\"07:15\",\"deviation_minutes\":15}],\"mean_absolute_deviation_min\":7.5,\"note\":\"Variation around your chosen anchor; no clinical interpretation.\"}. Shows the actual rhythm result. Does not fabricate external data."
            }
          ],
          "negative": [
            {
              "description": "Outside implemented scope: explain the limitation, do not invoke a calculation to manufacture this capability, and do not claim completion.",
              "prompt": "Diagnose sleep apnea."
            },
            {
              "description": "Outside implemented scope: explain the limitation, do not invoke a calculation to manufacture this capability, and do not claim completion.",
              "prompt": "Prescribe sleeping pills."
            },
            {
              "description": "Outside implemented scope: explain the limitation, do not invoke a calculation to manufacture this capability, and do not claim completion.",
              "prompt": "Set a clinical sleep restriction protocol for me."
            }
          ]
        },
        "commerce": false,
        "commerce_description": "No payments, orders, purchases or external account changes."
      },
      "publication": {
        "countries": [],
        "release_notes": "0.3.2: Compact native host task surfaces. Five tools, labeled examples, versioned documents and recoverable validation."
      },
      "apps": "./.app.json"
    }
  }
}

SHA-256: b48ea09372d45a5814da28e86e1d0fc2d5c72150501c2e05e240960785e23c76