@bitefoundry/linear 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -16
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -5,7 +5,7 @@ Fast, single-binary Rust terminal client & AI agent toolkit for [Linear](https:/
5
5
  ## Highlights
6
6
 
7
7
  - **60fps Linear-Native TUI**: 3-pane layout (`My Issues` / `Triage` / `Active Cycle` / `Teams` / `Projects`), instant `1` List ↔ `2` Kanban Board toggle, Day-1 native drag-and-drop (Kanban cards across workflow columns + issues onto Cycles/Projects/Triage/My Issues with 0ms optimistic updates & rollback), `Ctrl+K` Command Palette, `SafeCursorBackend` (DSR-timeout immune), and **0.0% idle CPU**.
8
- - **10-Second Onboarding & Zero-Login Demo**: Authenticate with a Linear Personal API key (`lin_api_...`), OAuth 2.0 PKCE, or external token broker — or run immediately offline with `--demo`.
8
+ - **10-Second Sign-In (In-TUI, CLI & CI)**: Paste your Linear Personal API key (`lin_api_...`) directly inside the TUI sign-in screen, authenticate via `linear login` / OAuth 2.0 PKCE, or supply an environment/external token broker.
9
9
  - **Offline SQLite WAL + FTS5 Search**: Trigram FTS5 full-text index with automatic CJK/Korean & short-token `LIKE` fallback plus case-insensitive issue identifier lookup (`eng-12` → `ENG-12`).
10
10
  - **2-Lane Incremental Delta Sync**: Tracks `updatedAt` Relay cursors and Linear's `X-RateLimit-*` / complexity budget headers with exponential 429 backoff and a single-instance IPC daemon.
11
11
  - **20 Safe MCP Tools**: Powered by `bitefoundry-mcp` (8 MiB bounded stdio framing, lazy initialization, `--read-only` mode hiding/blocking all 8 write tools, and literal `confirm: true` guard on `archive_issue`).
@@ -15,30 +15,31 @@ Fast, single-binary Rust terminal client & AI agent toolkit for [Linear](https:/
15
15
  ## Quick Start
16
16
 
17
17
  ```sh
18
- # Explore immediately with zero login using the built-in 20-issue demo workspace
19
- linear --demo issues list
20
- linear --demo issues get ENG-12 --print
21
- linear --demo search "결제 오류" --json
22
-
23
18
  # Sign in with a Linear Personal API key (10 seconds)
24
19
  linear login --api-key lin_api_...
25
20
  # Or pipe non-interactively in scripts/CI
26
21
  printf '%s\n' "$LINEAR_API_KEY" | linear login --api-key-stdin
27
22
 
28
- # Sync workspace metadata + incremental issues into local SQLite
23
+ # Launch the interactive 60fps TUI (also supports direct in-TUI API key sign-in)
24
+ linear
25
+
26
+ # Sync workspace metadata + incremental issues and query via CLI/JSON
29
27
  linear sync
28
+ linear issues list --json
29
+ linear issues get ENG-12 --print
30
+ linear search "cursor pagination" --json
30
31
  ```
31
32
 
32
33
  ## Authentication
33
34
 
34
- 1. **External Token Broker / Environment** (CI, containers, AI agents):
35
- - `LINEAR_API_KEY` (Personal API Key `lin_api_...` — sent as raw `Authorization: lin_api_...`, **never** `Bearer `, per Linear API requirements)
36
- - `LINEAR_ACCESS_TOKEN`, `LINEAR_TOKEN_FILE`, `LINEAR_TOKEN_REFRESH_CMD` (OAuth 2.0 tokens sent as `Authorization: Bearer <token>`)
35
+ 1. **In-TUI Sign-In**:
36
+ - Running `linear` in an interactive terminal without saved credentials opens a clean **Sign in to Linear** screen with masked API key input (`Ctrl+O` opens `https://linear.app/settings/api`).
37
37
  2. **OS Keyring (`bitefoundry-linear`)**:
38
- - `linear login` (Personal API key) or `linear login --oauth` (OAuth 2.0 PKCE loopback flow with `LINEAR_OAUTH_CLIENT_ID`).
38
+ - `linear login` (Personal API key) or `linear login --oauth --client-id <CLIENT_ID>` (OAuth 2.0 PKCE loopback flow with `LINEAR_OAUTH_CLIENT_ID`).
39
39
  - Set `LINEAR_DISABLE_KEYRING=1` to use the atomic `0600` fallback file.
40
- 3. **Zero-Login Demo (`--demo`)**:
41
- - Deterministic in-memory workspace (`ENG` & `DES` teams, active Cycle 14, 3 projects, 20 realistic issues with sub-issues, comments, and labels).
40
+ 3. **External Token Broker / Environment** (CI, containers, AI agents):
41
+ - `LINEAR_API_KEY` (Personal API Key `lin_api_...` — sent as raw `Authorization: lin_api_...`, **never** `Bearer `, per Linear API requirements)
42
+ - `LINEAR_ACCESS_TOKEN`, `LINEAR_TOKEN_FILE`, `LINEAR_TOKEN_REFRESH_CMD` (OAuth 2.0 tokens sent as `Authorization: Bearer <token>`)
42
43
 
43
44
  ## CLI Reference
44
45
 
@@ -48,7 +49,6 @@ linear sync
48
49
  | :--- | :--- |
49
50
  | `-j`, `--json` | Machine-readable JSON output (errors emit `JsonErrorEnvelope` on `stdout` + exit code `1`). |
50
51
  | `-p`, `--print` | Clean print-friendly Markdown output without interactive chrome. |
51
- | `--demo` | Use the offline 20-issue deterministic demo workspace (zero credentials required). |
52
52
  | `--no-color` | Disable ANSI colors in terminal output. |
53
53
  | `--no-nerd-fonts` | Force 7-bit ASCII icon fallback instead of Unicode/Nerd Font glyphs in the TUI. |
54
54
  | `--theme <THEME>` | Override TUI color theme preset (`linear-dark`, `linear-light`, or any built-in theme). |
@@ -103,8 +103,8 @@ See [docs/MCP.md](docs/MCP.md) for full tool schemas, `--read-only` policy, `con
103
103
  # Loopback bind generates a per-session 64-hex Bearer token automatically
104
104
  linear serve
105
105
 
106
- # Offline demo HTTP API
107
- linear --demo serve --port 8794
106
+ # Bind with an explicit Bearer token
107
+ linear serve --port 8794 --token "$LINEAR_SERVE_TOKEN"
108
108
  ```
109
109
 
110
110
  See [docs/MCP.md](docs/MCP.md) for endpoint details and [docs/design.md](docs/design.md) for architecture and security invariants.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitefoundry/linear",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Linear terminal client & AI agent toolkit — Issues, Cycles, Projects, Triage, Offline SQLite FTS5 & Kanban TUI (CLI, TUI, HTTP API, MCP)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,11 +36,11 @@
36
36
  "build:npm": "node scripts/build-npm.mjs"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@bitefoundry/linear-win32-x64": "0.1.0",
40
- "@bitefoundry/linear-win32-arm64": "0.1.0",
41
- "@bitefoundry/linear-darwin-x64": "0.1.0",
42
- "@bitefoundry/linear-darwin-arm64": "0.1.0",
43
- "@bitefoundry/linear-linux-x64": "0.1.0",
44
- "@bitefoundry/linear-linux-arm64": "0.1.0"
39
+ "@bitefoundry/linear-win32-x64": "0.1.1",
40
+ "@bitefoundry/linear-win32-arm64": "0.1.1",
41
+ "@bitefoundry/linear-darwin-x64": "0.1.1",
42
+ "@bitefoundry/linear-darwin-arm64": "0.1.1",
43
+ "@bitefoundry/linear-linux-x64": "0.1.1",
44
+ "@bitefoundry/linear-linux-arm64": "0.1.1"
45
45
  }
46
46
  }