{
  "manifest": {
    "spekkr": 1,
    "id": "kato/cli-sign-in",
    "name": "Sign-in for a command-line tool",
    "summary": "Let a command-line tool sign in through the browser with a short code, keep its token in the system keychain and sign out cleanly.",
    "keywords": [
      "login",
      "log in",
      "device code",
      "oauth",
      "terminal",
      "auth",
      "authentication"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "kato",
      "name": "Kato"
    },
    "targets": {
      "platforms": [
        "cli",
        "backend",
        "web"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "cli_name",
          "label": "Name of the command",
          "default": "acme",
          "help": "Lowercase, as typed in a terminal."
        },
        {
          "key": "token_days",
          "label": "Days a token lasts",
          "default": "90",
          "help": "A whole number."
        }
      ],
      "options": [
        {
          "key": "open_browser",
          "label": "Open the browser automatically",
          "default": true,
          "help": "The tool tries to open the approval page itself."
        },
        {
          "key": "ci_tokens",
          "label": "Tokens for automation",
          "default": true,
          "help": "A token made on the website can be given to the tool in an environment variable."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, rules and flows."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/home.png",
        "shots/approval.png",
        "shots/approved.png",
        "shots/tokens.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/cli-sign-in."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/approval.png": "files/shots/approval.png",
      "shots/approved.png": "files/shots/approved.png",
      "shots/home.png": "files/shots/home.png",
      "shots/tokens.png": "files/shots/tokens.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "kato",
  "uploaded": {
    "shots/approval.png": {
      "bytes": 195761,
      "type": "image/png"
    },
    "shots/approved.png": {
      "bytes": 214402,
      "type": "image/png"
    },
    "shots/home.png": {
      "bytes": 235014,
      "type": "image/png"
    },
    "shots/tokens.png": {
      "bytes": 175372,
      "type": "image/png"
    }
  }
}
