• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • PromptBook
  • PromptBook Class

    A Book over a stack of prompt tiers, editable at one scope (§PB-2). More...

    Header: #include <PromptBook>
    Inherits: Book

    Detailed Description

    PromptBook reuses the generic Book CRUD and provenance contract, so the prompt manager and editor activities get their list, rename, duplicate, import and export for free. Each activity constructs its own PromptBook over the application's tier stack and parents it to itself.

    A read takes the first tier in the stack that holds the key. A write always lands in the one writable tier, so the first edit of an inherited prompt forks it (§UI-3). The book persists <key>.md files with frontmatter itself, not the base class's <id>.json helpers. remove() deletes the writable file only, which re-reveals the version in the lower tier (Reset to factory).

    See also PromptManagerActivity and PromptEditorActivity.