{
  "application": {
    "name": "MyModels by Forgeboro",
    "appId": "mymodel",
    "version": "1.0.0",
    "type": "Private Local AI Inference Workspace Powered by Ollama",
    "architecture": {
      "framework": "React 18 + Vite 5 + Tailwind CSS",
      "proxyEndpoint": "/api",
      "nativeOllamaPort": 11434,
      "supportedProviders": "Local Ollama Daemon, Chrome Built-in Gemini Nano, Transformers.js (ONNX WebGPU/WASM), WebLLM (MLC WebGPU)",
      "streamingProtocol": "ReadableStream NDJSON (Ollama /api/chat) & In-Browser Generators",
      "persistence": "LocalStorage with cryptographic HMAC-SHA256 State Transfer (FB-006) and CacheStorage/IndexedDB",
      "securityGuardrails": "FB-001 Prototype & Depth Guards, FB-002 Content Security Policy"
    }
  },
  "tools": [
    {
      "id": "prompt-input",
      "name": "Prompt Composer",
      "shortcut": "Enter",
      "selector": "[data-tool=\"prompt-input\"]",
      "description": "Multiline prompt editor. Auto-expands as text is typed. Press Enter to submit, Shift+Enter for line breaks. Press Up/Down arrows to traverse historical prompt drafts."
    },
    {
      "id": "model-selector",
      "name": "Model Selector",
      "selector": "[data-tool=\"model-selector\"]",
      "description": "Dropdown menu to select local Ollama models, Chrome Built-in Gemini Nano, or In-Browser WebGPU/WASM models."
    },
    {
      "id": "hardware-diagnostics",
      "name": "Hardware & AI Diagnostics",
      "selector": "[data-tool=\"hardware-diagnostics\"]",
      "description": "Inspects WebGPU hardware acceleration, Chrome Built-in Prompt API (Gemini Nano) status, and offline cached model weights."
    },
    {
      "id": "sidebar-toggle",
      "name": "Session Drawer Toggle",
      "selector": "[data-tool=\"sidebar-toggle\"]",
      "description": "Collapses or expands the left-hand navigation sidebar containing chronological chat history and session management."
    },
    {
      "id": "command-queue",
      "name": "Sequential Command Queue",
      "selector": "[data-tool=\"command-queue\"]",
      "description": "Enables batch queuing of multiple prompt instructions and file payloads, executing sequentially with autonomous streaming completion."
    },
    {
      "id": "svg-viewer",
      "name": "Interactive SVG Canvas",
      "selector": "[data-tool=\"svg-viewer\"]",
      "description": "Dedicated rendering canvas for inline SVG vector art generated by LLMs, featuring live graphic preview, zoom controls, and raw XML source inspection."
    },
    {
      "id": "theme-toggle",
      "name": "Obsidian Theme Toggle",
      "selector": "[data-tool=\"theme-toggle\"]",
      "description": "Switches between Forgeboro obsidian glassmorphism dark theme and clean high-contrast light mode."
    }
  ],
  "actions": [
    {
      "id": "new-chat",
      "name": "Start New Chat",
      "shortcut": "Ctrl+Shift+O",
      "selector": "[data-action=\"new-chat\"]",
      "description": "Creates a clean conversational session with the currently selected model and system prompt."
    },
    {
      "id": "send-prompt",
      "name": "Send Prompt",
      "shortcut": "Enter",
      "selector": "[data-action=\"send-prompt\"]",
      "description": "Dispatches the prompt to Ollama and begins real-time NDJSON token streaming into the chat area."
    },
    {
      "id": "stop-generation",
      "name": "Stop Generation",
      "shortcut": "Escape",
      "selector": "[data-action=\"stop-generation\"]",
      "description": "Aborts the active streaming HTTP completion via AbortController signal."
    },
    {
      "id": "export-signed-backup",
      "name": "Export Signed Backup",
      "selector": "[data-action=\"export-signed-backup\"]",
      "description": "Generates and downloads a cryptographically signed HMAC-SHA256 JSON backup containing all sessions, settings, and prompt history (FB-006)."
    },
    {
      "id": "restore-signed-backup",
      "name": "Restore Signed Backup",
      "selector": "[data-action=\"restore-signed-backup\"]",
      "description": "Uploads and validates a tamper-proof state backup file, verifying HMAC signatures and running FB-001 depth sanitization before restoring."
    },
    {
      "id": "open-settings",
      "name": "Open Settings",
      "selector": "[data-action=\"open-settings\"]",
      "description": "Opens modal to configure Ollama API URL, default models, temperature, context token window (num_ctx), and custom system instructions."
    },
    {
      "id": "open-help",
      "name": "Open Help & Shortcuts",
      "shortcut": "?",
      "selector": "[data-action=\"open-help\"]",
      "description": "Opens the in-app interactive Help modal featuring categorized guides, keyboard shortcuts cheat sheet, and agent specs."
    },
    {
      "id": "open-about",
      "name": "Open About Page",
      "selector": "[data-action=\"open-about\"]",
      "description": "Presents the Forgeboro obsidian glassmorphic About Page with build-time canonical version V[n]-[hash]."
    },
    {
      "id": "open-diagnostics",
      "name": "Open Hardware Diagnostics",
      "selector": "[data-action=\"open-diagnostics\"]",
      "description": "Opens the Hardware & AI Runtime Diagnostics modal to verify WebGPU adapter limits, FP16 shaders, Chrome Prompt API status, and cached weights."
    },
    {
      "id": "open-cookie-preferences",
      "name": "Open Cookie Preferences",
      "selector": "[data-action=\"open-cookie-preferences\"]",
      "description": "Opens the GDPR/ePrivacy cookie preferences modal allowing granular consent management."
    },
    {
      "id": "open-privacy-policy",
      "name": "Open Privacy Policy",
      "selector": "[data-action=\"open-privacy-policy\"]",
      "description": "Opens the comprehensive AdSense-compliant privacy policy modal with third-party cookie disclosures and opt-out links."
    },
    {
      "id": "open-terms-of-service",
      "name": "Open Terms of Service",
      "selector": "[data-action=\"open-terms-of-service\"]",
      "description": "Opens the FB-011 tier-adaptive terms of service modal detailing client storage disclaimers and computational sandbox shields."
    }
  ],
  "keyboardShortcuts": [
    { "key": "Enter", "description": "Submit current prompt to model" },
    { "key": "Shift + Enter", "description": "Insert newline without submitting" },
    { "key": "ArrowUp", "description": "Traverse backward in prompt draft history (when cursor is at beginning)" },
    { "key": "ArrowDown", "description": "Traverse forward in prompt draft history (when cursor is at end)" },
    { "key": "?", "description": "Open interactive in-app Help & Documentation modal" },
    { "key": "Escape", "description": "Close any active modal dialog or abort active streaming response" }
  ]
}
