{
  "name": "@vanillagreen/pi-questions",
  "version": "2.0.0",
  "description": "Pi extension for structured multi-tab inline questions and bridge-driven replies.",
  "license": "MIT",
  "keywords": [
    "pi-package",
    "pi",
    "coding-agent",
    "questions",
    "prompt"
  ],
  "pi": {
    "extensions": [
      "./extensions/questions.ts"
    ],
    "image": "https://raw.githubusercontent.com/vanillagreencom/kendex/main/pi-extensions/pi-questions/assets/questions-workflow.gif",
    "appendSystem": "./instructions.md"
  },
  "scripts": {
    "postinstall": "node scripts/append-system.mjs install",
    "preuninstall": "node scripts/append-system.mjs remove"
  },
  "peerDependencies": {
    "@earendil-works/pi-coding-agent": "*",
    "@earendil-works/pi-tui": "*"
  },
  "files": [
    "extensions/",
    "assets/",
    "scripts/",
    "instructions.md",
    "README.md",
    "package.json"
  ],
  "kendex": {
    "extensionManager": {
      "displayName": "Questions",
      "settings": [
        {
          "key": "enabled",
          "label": "Enable questions",
          "description": "Register the question tool, inline question UI, and bridge question service.",
          "type": "boolean",
          "default": true,
          "category": "General",
          "apply": "reload",
          "requiresReload": true
        },
        {
          "key": "answersAsUserMessage",
          "label": "Answers as user message",
          "description": "After a question is answered, also deliver the question and chosen answers to the agent as a steer user message so observer extensions that ignore tool output (e.g. pi-automode) can read decisions from the conversation. Off by default: the extra message changes model-visible context.",
          "type": "boolean",
          "default": false,
          "category": "General",
          "apply": "live"
        },
        {
          "key": "glyphStyle",
          "label": "Glyph style",
          "description": "Glyphs for kendex-owned UI chrome. Unicode is the default; ASCII uses plain box/status/separator characters for terminal compatibility. pi-tool-renderer's global override wins when set.",
          "type": "enum",
          "enumValues": [
            "unicode",
            "ascii"
          ],
          "default": "unicode",
          "category": "Rendering",
          "apply": "live"
        },
        {
          "key": "renderMode",
          "label": "Question UI mode",
          "description": "Where interactive questions render: editor replaces the input area; overlay restores the floating popup.",
          "type": "enum",
          "enumValues": [
            "editor",
            "overlay"
          ],
          "default": "editor",
          "category": "UI",
          "apply": "live"
        },
        {
          "key": "popupWidth",
          "label": "Overlay popup width",
          "description": "Preferred overlay popup width in terminal columns when Question UI mode is overlay.",
          "type": "number",
          "default": 96,
          "category": "UI",
          "apply": "live"
        },
        {
          "key": "popupMaxHeight",
          "label": "Overlay popup max height",
          "description": "Maximum overlay height when Question UI mode is overlay; accepts a number or percentage string.",
          "type": "string",
          "default": "80%",
          "category": "UI",
          "apply": "live"
        },
        {
          "key": "optionRows",
          "label": "Visible option rows",
          "description": "Maximum option rows shown before scrolling. Editor mode does not pad short lists with blank rows.",
          "type": "number",
          "default": 10,
          "category": "UI",
          "apply": "live"
        },
        {
          "key": "defaultHeader",
          "label": "Default question header",
          "description": "Fallback title when a question request has no header.",
          "type": "string",
          "default": "Question",
          "category": "UI",
          "apply": "live"
        },
        {
          "key": "bridgeRepliesEnabled",
          "label": "Bridge replies enabled",
          "description": "Allow pi-session-bridge to answer/reject pending questions.",
          "type": "boolean",
          "default": true,
          "category": "Bridge",
          "apply": "live"
        }
      ]
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/vanillagreencom/kendex.git",
    "directory": "pi-extensions/pi-questions"
  },
  "homepage": "https://github.com/vanillagreencom/kendex/tree/main/pi-extensions/pi-questions",
  "bugs": {
    "url": "https://github.com/vanillagreencom/kendex/issues"
  },
  "author": "vanillagreen",
  "publishConfig": {
    "access": "public"
  },
  "engines": {
    "node": ">=22.19.0"
  },
  "peerDependenciesMeta": {
    "@earendil-works/pi-coding-agent": {
      "optional": true
    },
    "@earendil-works/pi-tui": {
      "optional": true
    }
  }
}
