Écrans Natifs Personnalisés · notibuddy 0.4.0+

Transformez du JSON
en UI iPhone native.

Envoyez des écrans SwiftUI avec indicateurs, listes de vérification, formulaires et diffs depuis n’importe quel agent IA ou script. Utilisez les 8 modèles certifiés ou assemblez 12 blocs natifs — chiffrés de bout en bout.

Pour votre agent IA, la référence Markdown complète se trouve sur notibuddy.app/screens.md (Markdown brut, en anglais).

Écran natif personnalisé NotiBuddy sur iPhone avec bandeau KPI, liste de vérification et bouton d’approbation Face ID.

Catalogue intégré

8 modèles certifiés prêts à copier

Les modèles certifiés sont présignés sur l’appareil : passez simplement templateId, labels et data à notibuddy_notify ou nb notify --screen.

Release & CI Porte Face ID
deployment_gate

Porte de déploiement

Approbation de mise en production avec indicateurs canary, manifeste, liste de vérification, interrupteur et Face ID.

Idéal pour: Promotions CI/CD, bascules canary vers production et déploiements d’agents.
Blocs: badgealertkpiStripkeyValueListchecklistformField (toggle)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_7320257f323bb157…
{
  "title": "Promote api-gateway v2.4.1 to production",
  "screen": {
    "templateId": "tpl_7320257f323bb157a27a9f3eb40ca76a06a63b7cc3a6d877884f2450b68fb75a",
    "labels": {
      "s0": "Canary status",
      "s1": "Production",
      "s2": "Canary healthy across us-east and eu-central",
      "s3": "All 128 integration checks passed with zero elevated 5xx responses.",
      "s5": "Release manifest",
      "s7": "Pre-flight sign-off",
      "s9": "I verified the rollback image is pinned",
      "s10": "Promote to production",
      "s11": "Hold canary",
      "s12": "Abort deploy"
    },
    "data": {
      "s4": [
        {
          "label": "Success",
          "value": "99.98%"
        },
        {
          "label": "Errors",
          "value": "0.02%"
        },
        {
          "label": "P95",
          "value": "41 ms"
        }
      ],
      "s6": [
        {
          "key": "Service",
          "value": "api-gateway"
        },
        {
          "key": "Version",
          "value": "v2.4.1"
        },
        {
          "key": "Commit",
          "value": "8f3c19a"
        },
        {
          "key": "Triggered by",
          "value": "GitHub Actions"
        }
      ],
      "s8": [
        "Database backup verified",
        "On-call engineer notified",
        "Zero active P1 incidents"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen deployment-gate.json
Database Porte Face ID
db_migration_approval

Approbation de migration BD

Validation de migration avec bannière d’alerte, métadonnées, visionneuse de diff DDL, liste de vérification et Face ID.

Idéal pour: Migrations SQL destructives, modifications d’index et changements de schéma.
Blocs: badgealertkeyValueListdiffViewerchecklist
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_9a64eaa2fbf40f98…
{
  "title": "Run migration 20261123_drop_legacy_tokens.sql",
  "screen": {
    "templateId": "tpl_9a64eaa2fbf40f9821af64340dba6788893684e3c1fd39a2651850130c0cdeb3",
    "labels": {
      "s0": "Migration target",
      "s1": "Destructive DDL",
      "s2": "Table lock expected (~4 seconds)",
      "s3": "Dropping legacy_session_tokens removes 1.2M expired rows and frees 840 MB.",
      "s5": "DDL diff",
      "s7": "Safety checks",
      "s9": "Run migration",
      "s10": "Cancel"
    },
    "data": {
      "s4": [
        {
          "key": "Cluster",
          "value": "prod-postgres-primary"
        },
        {
          "key": "Migration",
          "value": "20261123_drop_legacy_tokens.sql"
        },
        {
          "key": "Estimated lock",
          "value": "4s (ACCESS EXCLUSIVE)"
        }
      ],
      "s6": {
        "filename": "migrations/20261123_drop_legacy_tokens.sql",
        "language": "sql",
        "original": "CREATE TABLE legacy_session_tokens (\n  id uuid PRIMARY KEY,\n  expires_at timestamptz NOT NULL\n);",
        "modified": "DROP TABLE IF EXISTS legacy_session_tokens;\n-- Snapshot archived to s3://db-backups/2026-11-23/"
      },
      "s8": [
        "Point-in-time snapshot completed",
        "Zero active readers on legacy_session_tokens"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen db-migration-approval.json
Incident Response Porte Face ID
incident_triage

Triage d’incident

Écran d’intervention avec alerte critique, indicateurs en direct, contexte, sélecteur de priorité et retour arrière Face ID.

Idéal pour: Alertes d’anomalies, régressions détectées et escalade rapide.
Blocs: badgealertkpiStripkeyValueListdividerformField (picker, text)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_efcaca7923b82253…
{
  "title": "P1: Elevated 502 rate on checkout-api",
  "screen": {
    "templateId": "tpl_efcaca7923b82253ed38e2b0f71950d967bc55d5085fb1d315b55b2953a65294",
    "labels": {
      "s0": "Active incident",
      "s1": "SEV-1",
      "s2": "502 spike after v2.4.1 rollout",
      "s3": "Error rate crossed 4.8% in us-east-1 for 3 consecutive minutes.",
      "s5": "Response & routing",
      "s7": "Assigned severity",
      "s9": "Action note",
      "s10": "Optional note (required for rollback)",
      "s11": "Acknowledge & investigate",
      "s12": "Rollback to v2.4.0",
      "s13": "Dismiss false positive"
    },
    "data": {
      "s4": [
        {
          "label": "502 Rate",
          "value": "4.8%"
        },
        {
          "label": "P99",
          "value": "1.9 s"
        },
        {
          "label": "Affected",
          "value": "us-east-1"
        }
      ],
      "s6": [
        {
          "key": "Service",
          "value": "checkout-api"
        },
        {
          "key": "Suspect commit",
          "value": "8f3c19a"
        },
        {
          "key": "Alert ID",
          "value": "INC-4921"
        }
      ],
      "s8": [
        "SEV-1 Critical",
        "SEV-2 High",
        "SEV-3 Moderate"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen incident-triage.json
Code Review Réponse rapide
code_review_form

Formulaire de revue de code

Revue de correctif ou PR avec résumé, métadonnées, visionneuse de diff, sélecteur et commentaire requis.

Idéal pour: Vérifier les modifications de Claude Code, Codex ou Cursor sur iPhone.
Blocs: badgetextkeyValueListdiffViewerformField (picker, text)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_516ea85f72e98ed5…
{
  "title": "Review patch: rate-limit retry backoff",
  "screen": {
    "templateId": "tpl_516ea85f72e98ed524aed18b1fc44b73f63e0b2a18fd1a85e5b6a64a7c0866d3",
    "labels": {
      "s0": "Patch summary",
      "s1": "Ready for review",
      "s2": "Adds capped exponential backoff with jitter when upstream returns HTTP 429.",
      "s4": "Changed file",
      "s6": "Your review",
      "s7": "Disposition",
      "s9": "Review note",
      "s10": "Explain approval or requested edits",
      "s11": "Submit review",
      "s12": "Cancel"
    },
    "data": {
      "s3": [
        {
          "key": "Repo",
          "value": "yourbit-network/notibuddy"
        },
        {
          "key": "Branch",
          "value": "fix/retry-backoff"
        },
        {
          "key": "Tests",
          "value": "42/42 passing"
        }
      ],
      "s5": {
        "filename": "src/retry.ts",
        "language": "typescript",
        "original": "const delayMs = 1000 * attempt;",
        "modified": "const base = Math.min(30_000, 500 * 2 ** attempt);\nconst delayMs = Math.round(base * (0.8 + Math.random() * 0.4));"
      },
      "s8": [
        "Approve & apply",
        "Request changes",
        "Comment only"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen code-review-form.json
Observability Réponse rapide
kpi_status_card

Carte de statut KPI

Rapport opérationnel avec indicateurs clés, badge de statut, résumé et détails clé-valeur.

Idéal pour: Bilans quotidiens, points de contrôle et rapports de performance.
Blocs: headingbadgekpiStripdividertextkeyValueList
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_6fa3fbdf264b1048…
{
  "title": "Eval run #142 completed",
  "screen": {
    "templateId": "tpl_6fa3fbdf264b1048364bf9b4179464ccc6795a1b5c67ade9e5e2ac8a00262526",
    "labels": {
      "s0": "Evaluation summary",
      "s1": "Prompt v14 benchmark",
      "s2": "Pass +4.2%",
      "s4": "Accuracy improved on tool-calling tasks with 18% fewer output tokens than v13.",
      "s5": "Run details",
      "s7": "Promote prompt v14",
      "s8": "Keep v13"
    },
    "data": {
      "s3": [
        {
          "label": "Pass rate",
          "value": "94.6%"
        },
        {
          "label": "Median latency",
          "value": "620 ms"
        },
        {
          "label": "Cost / 1k",
          "value": "$1.84"
        }
      ],
      "s6": [
        {
          "key": "Dataset",
          "value": "agent-eval-500"
        },
        {
          "key": "Baseline",
          "value": "v13 (90.4%)"
        },
        {
          "key": "Duration",
          "value": "11m 42s"
        }
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen kpi-status-card.json
Operations Porte Face ID
action_checklist

Liste de vérification

Liste de contrôle avec interrupteur requis qui active la validation Face ID seulement quand tout est coché.

Idéal pour: Listes de publication, rotation de clés et tâches irréversibles.
Blocs: headingtextchecklistdividerformField (toggle)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_ab44ab504d7cc01c…
{
  "title": "Publish notibuddy@0.4.1 to npm",
  "screen": {
    "templateId": "tpl_ab44ab504d7cc01c05bd68f23d0c31550e6f66b6dc02b30f5a5f903dd068dcaa",
    "labels": {
      "s0": "Release overview",
      "s1": "npm publish checklist",
      "s2": "Confirm all release artifacts before the agent runs npm publish and updates the Homebrew formula.",
      "s3": "Required checks",
      "s4": "Pre-publish verification",
      "s6": "I confirm the changelog and git tag match v0.4.1",
      "s7": "Publish release",
      "s8": "Abort"
    },
    "data": {
      "s5": [
        "All unit and integration tests passed",
        "Tarball contents inspected with npm pack --dry-run",
        "No secrets or local fixtures bundled"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen action-checklist.json
Tuning Porte Face ID
parameter_tuning_form

Réglage de paramètres

Éditeur de configuration avec résumé actuel, compteur, sélecteur, interrupteur et application avec Face ID.

Idéal pour: Ajuster la concurrence, les budgets LLM ou les limites en direct.
Blocs: textkeyValueListformField (stepper, picker, toggle, text)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_dd6f8732c37e9016…
{
  "title": "Adjust queue worker concurrency",
  "screen": {
    "templateId": "tpl_dd6f8732c37e901667a0c1e9d9764b36b878121a2ae5beac73bb2ad593dc4e4a",
    "labels": {
      "s0": "Current configuration",
      "s1": "Queue depth reached 4,200 jobs. Adjust concurrency and retry strategy before resuming workers.",
      "s3": "Updated parameters",
      "s4": "Max concurrent workers",
      "s5": "Routing mode",
      "s7": "Enable circuit breaker",
      "s8": "Change rationale",
      "s9": "Optional note for audit log",
      "s10": "Apply settings",
      "s11": "Keep current"
    },
    "data": {
      "s2": [
        {
          "key": "Current workers",
          "value": "10"
        },
        {
          "key": "Queue depth",
          "value": "4,200"
        },
        {
          "key": "Error budget",
          "value": "99.5%"
        }
      ],
      "s6": [
        "Balanced",
        "Throughput-first",
        "Cost-saving"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen parameter-tuning-form.json
Compliance Porte Face ID
multi_choice_audit

Audit multi-choix

Revue de conformité ou sécurité avec preuves, deux sélecteurs, note requise, attestation et Face ID.

Idéal pour: Approbations d’accès, audits de sécurité et attestations signées.
Blocs: headingbadgetextkeyValueListformField (picker ×2, text, toggle)
Payload notibuddy_notify (MCP / --screen JSON)
templateId: tpl_33d53edadb953581…
{
  "title": "Security audit: grant production read token",
  "screen": {
    "templateId": "tpl_33d53edadb953581c0d1dfe4c857c86c5a42d53e8dba668a4b091081057dbc99",
    "labels": {
      "s0": "Audit evidence",
      "s1": "Scoped token request",
      "s2": "Pending review",
      "s3": "Agent requested a 2-hour read-only token to inspect production billing metrics.",
      "s5": "Auditor decision",
      "s6": "Scope grant",
      "s8": "Expiration window",
      "s10": "Auditor rationale",
      "s11": "Required for approval or revocation",
      "s12": "I reviewed the requested scope and ticket",
      "s13": "Approve scoped token",
      "s14": "Revoke & alert security",
      "s15": "Deny"
    },
    "data": {
      "s4": [
        {
          "key": "Requester",
          "value": "billing-agent@mac"
        },
        {
          "key": "Ticket",
          "value": "SEC-1084"
        },
        {
          "key": "Requested scope",
          "value": "metrics:read"
        }
      ],
      "s7": [
        "metrics:read only",
        "logs:read + metrics:read"
      ],
      "s9": [
        "1 hour",
        "2 hours",
        "24 hours"
      ]
    }
  }
}
npx -y notibuddy@^0.4.0 notify --to personal --screen multi-choice-audit.json

Blocs composables

12 blocs SwiftUI natifs

Chaque écran intégré ou personnalisé est assemblé à partir de ces 12 blocs iOS natifs avec mode sombre et accessibilité.

vstack Layout

Vertical container with compact, regular, or relaxed spacing.

card Layout

Grouped native surface with an optional encrypted section header.

divider Layout

Subtle hairline separator between sections inside a card.

heading Content

Section heading at level 1, 2, or 3 with Dynamic Type scaling.

text Content

Body, caption, or monospaced text block.

badge Content

Status pill in neutral, info, success, warning, or danger tone.

alert Content

Highlighted callout banner with title, body, and severity.

kpiStrip Data

Compact horizontal metric strip of label/value KPI tiles.

keyValueList Data

Structured metadata rows for versions, targets, commits, or IDs.

diffViewer Data

Inline syntax-aware unified or before/after code and DDL diff viewer.

checklist Interactive

Interactive pre-flight items that can gate action buttons via allChecked.

formField Interactive

Native text, email, url, secret, date, toggle, stepper, or picker inputs.

Mises en page sur mesure

Ou composez votre propre gabarit en ligne

Passez screen.template directement à notibuddy_notify ou enregistrez vos modèles avec nb screen register. Le serveur valide seulement la structure sans contenu ; tout le reste demeure chiffré de bout en bout.

Exemple d’écran personnalisé en ligne
{
  "title": "Approve nightly model eval",
  "screen": {
    "template": {
      "root": {
        "kind": "vstack",
        "spacing": "regular",
        "children": [
          {
            "kind": "card",
            "header": "Eval summary",
            "children": [
              { "kind": "badge", "tone": "success", "label": "All checks passed" },
              {
                "kind": "kpiStrip",
                "items": [
                  { "label": "Score", "value": "96.4%" },
                  { "label": "Latency", "value": "410 ms" }
                ]
              }
            ]
          }
        ]
      },
      "actions": [
        { "id": "promote", "label": "Promote weights", "role": "primary", "requireBio": true },
        { "id": "cancel", "label": "Cancel", "role": "decline", "requireBio": false }
      ]
    }
  }
}

Prêt à utiliser les Écrans Personnalisés ?

Jumelez votre iPhone une fois et envoyez des écrans natifs depuis Claude Code, Cursor, Codex, Antigravity, GitHub Actions ou vos scripts.