master
John Lauer Publish 1.4.6 3f138a6 1mo ago
{
  "dock_manifest": "1.2.0",
  "say": [
    "with parts search, find a 10k 0402 resistor",
    "with parts search, find the cheapest LM358",
    "with parts search, price an STM32F103RBT6",
    "with parts search, check ESP32-S3-WROOM-1 stock",
    "with parts search, source the parts in my BOM",
    "with parts search, show in-stock 3.3V LDOs"
  ],
  "webview": {
    "title": "Parts Search",
    "favicon": "docs/icon.svg"
  },
  "health": {
    "url": "/api/status",
    "poll_seconds": 15,
    "timeout_ms": 2000
  },
  "launch": {
    "mode": "container_command",
    "console": "show",
    "steps": [
      {
        "label": "Installing or updating Parts Search",
        "run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; adom-wiki pkg update adom/adom-parts-search || adom-wiki pkg install adom/adom-parts-search'",
        "timeout_seconds": 180
      },
      {
        "label": "Starting Parts Search",
        "run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; exec adom-parts-search serve --print-url'",
        "await": "url",
        "timeout_seconds": 60
      }
    ],
    "on_ready": "navigate_placeholder",
    "ai": {
      "prompt": "The user just opened Parts Search from the dock. It searches Mouser, DigiKey, and JLCPCB in one query and names the best source (Mouser preferred). Run `adom-parts-search health` and, if any vendor LED is not green, offer the fix its _hint names. Then ask which part they want to source and run `adom-parts-search show \"<part>\"` so the results render on the page. Searches spend a shared daily vendor quota: one search per question, never a retry loop.",
      "thread": "existing",
      "thread_fallback": "new",
      "submit": "staged"
    }
  }
}