{
  "name": "scorpiox-vault-server-native",
  "version": "1.0.0",
  "type": "cgi-handlers",
  "host": "scorpiox-server.dll",
  "depends": [
    "scorpiox-vault-storage",
    "scorpiox-vault-crypto"
  ],
  "note": "Bitwarden-compatible vault server route handlers. Windows builds statically link the storage/crypto DLLs (embedded); Linux builds dynamically link them. Config via env (VAULT_ROOT, SERVER_JWT_SECRET) or server.json in script dir.",
  "routes": [
    {
      "path": "/",
      "exe": "index",
      "notes": "dark-mode Fluent dashboard, ?format=json, ?backup=1"
    },
    {
      "path": "/status",
      "exe": "status",
      "notes": "health, ?format=json"
    },
    {
      "path": "/api/accounts/prelogin",
      "exe": "prelogin (or _fallback)",
      "notes": "Kdf info by email"
    },
    {
      "path": "/api/accounts/register",
      "exe": "register (or _fallback)",
      "notes": "create account"
    },
    {
      "path": "/identity/connect/token",
      "exe": "token (or _fallback)",
      "notes": "OAuth2 password + refresh grant, JWT"
    },
    {
      "path": "/api/sync",
      "exe": "sync (or _fallback)",
      "notes": "full Bitwarden sync payload, Bearer"
    },
    {
      "path": "/api/ciphers[/{id}]",
      "exe": "ciphers (or _fallback)",
      "notes": "GET/POST/PUT/DELETE"
    },
    {
      "path": "/api/folders[/{id}]",
      "exe": "folders (or _fallback)",
      "notes": "GET/POST/PUT/DELETE"
    },
    {
      "path": "*",
      "exe": "_fallback",
      "notes": "clean 404 HTML or ?format=json"
    }
  ],
  "artifacts": {
    "linux": "vault-server-native-linux-1.0.0.tar.gz \u2014 9 executables, dynamically link libscorpiox-vault-{storage,crypto}.so (RUNPATH to sibling checkouts; deploy libs alongside for prod)",
    "windows": "vault-server-native-win-1.0.0.tar.gz \u2014 9 fully self-contained .exe (storage+crypto+yyjson compiled in, static CRT + static-libgcc, bcrypt for UUID RNG; zero companion DLLs)"
  },
  "tested": {
    "linux": "scorpiox-vault-server-native.console 39/39 PASS (dotnet run -- --test) on .100 container",
    "windows": "39/39 PASS on .204 (dotnet run -- --test --handlers build-win --port 18091, scorpiox-server.dll 2026-09-05 build)"
  },
  "sha256": {
    "linux": "0abf661d1738357afa6ad5af807ad64765695a13117b296bc794ef521cf79f93",
    "windows": "ce1729e7cf381f880057ad933075b3295689b9cccd5f137f780b96103724bd8c"
  }
}