@kyaukyuai/linear-cli 2.12.0 → 2.12.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.12.2] - 2026-03-31
6
+
7
+ ### Fixed
8
+
9
+ - restored `linear capabilities --json` to a startup-safe `v1` machine-readable shape by default, while requiring `--compat v2` for richer schema metadata
10
+
11
+ ## [2.12.1] - 2026-03-30
12
+
13
+ ### Added
14
+
15
+ - added `stateName` to `issue list --json` as an additive convenience field while keeping the nested `state` object unchanged
16
+
17
+ ### Changed
18
+
19
+ - refreshed the README, agent workflow docs, and skills.sh install guidance to better position `linear-cli` as an agent-first Linear CLI
20
+
21
+ ### Fixed
22
+
23
+ - preserved agent-first generated skill docs so `deno task generate-skill-docs` no longer reverts the published skill description and command guidance
24
+
5
25
  ## [2.12.0] - 2026-03-30
6
26
 
7
27
  ### Added
package/README.md CHANGED
@@ -6,6 +6,7 @@ if you want an agent to read Linear state, preview a write, apply it, and return
6
6
 
7
7
  ```bash
8
8
  linear capabilities --json
9
+ linear capabilities --json --compat v2
9
10
  linear issue list --json
10
11
  linear issue view ENG-123 --json
11
12
  linear issue create -t "Backfill webhook contract docs" --team ENG --dry-run --json
@@ -16,6 +17,22 @@ linear notification list --json
16
17
 
17
18
  interactive commands still exist for humans, but the primary design goal is that an agent can discover commands incrementally, pass all important input as flags or stdin, and get machine-readable success or failure back.
18
19
 
20
+ ## for agents
21
+
22
+ If an agent only reads one page, it should be this README plus the two contract docs below.
23
+
24
+ - start with `linear capabilities --json` for the stable startup-safe shape; use `linear capabilities --json --compat v2` when you also need primary input schema and output semantics
25
+ - prefer stable read surfaces such as `issue`, `project`, `cycle`, `milestone`, `document`, `webhook`, `notification`, `team`, `user`, `workflow-state`, `label`, `initiative`, and update feeds with `--json`
26
+ - preview writes with `--dry-run --json` before mutating Linear
27
+ - apply writes with `--json`, then inspect exit codes and `error.details` instead of parsing terminal text
28
+ - use stdin or file flags for Markdown-heavy descriptions and comments instead of long inline shell strings
29
+
30
+ Recommended docs:
31
+
32
+ - [Agent workflow guide](docs/agent-first.md)
33
+ - [Automation contracts](docs/json-contracts.md)
34
+ - [stdin and pipeline policy](docs/stdin-policy.md)
35
+
19
36
  ## screencast demos
20
37
 
21
38
  <details>
@@ -36,6 +53,24 @@ interactive commands still exist for humans, but the primary design goal is that
36
53
 
37
54
  for agents and scripts, prefer a pinned install in the repo or runtime you control.
38
55
 
56
+ ### install as a skill
57
+
58
+ If you want to expose `linear-cli` as a reusable skill on top of an existing agent runtime, install it from the repo root and select the public skill explicitly:
59
+
60
+ ```bash
61
+ npx skills add https://github.com/kyaukyuai/linear-cli --skill linear-cli
62
+ ```
63
+
64
+ This is the most compatible form for `skills` and `skills.sh`.
65
+
66
+ If you want to point directly at the skill directory instead, this also works:
67
+
68
+ ```bash
69
+ npx skills add https://github.com/kyaukyuai/linear-cli/tree/main/skills/linear-cli
70
+ ```
71
+
72
+ Once installed, agents can load the skill and then call the local `linear` binary using the agent-first guidance in [skills/linear-cli/SKILL.md](skills/linear-cli/SKILL.md).
73
+
39
74
  ### npm / bun / pnpm
40
75
 
41
76
  install as a dependency to pin a version in your project:
@@ -59,6 +94,8 @@ bunx linear issue list
59
94
 
60
95
  package on npm: [@kyaukyuai/linear-cli](https://www.npmjs.com/package/@kyaukyuai/linear-cli)
61
96
 
97
+ skills directory on GitHub: [skills/linear-cli](https://github.com/kyaukyuai/linear-cli/tree/main/skills/linear-cli)
98
+
62
99
  ### deno via jsr
63
100
 
64
101
  ```bash
@@ -88,7 +125,7 @@ deno task install
88
125
  compared to upstream, this fork adds and maintains capabilities aimed at automation-heavy workflows:
89
126
 
90
127
  - stable JSON contracts for the automation tier, with machine-readable failures for parser, validation, and runtime errors
91
- - a self-describing `linear capabilities --json` surface so agents can discover contract coverage, primary input schema, output semantics, and command traits without scraping docs
128
+ - a self-describing `linear capabilities --json` surface with a backward-compatible default and an explicit `--compat v2` mode for richer schema and output metadata
92
129
  - `--dry-run` previews for high-value write commands, including `issue start`, issue writes, and non-issue writes
93
130
  - stdin and pipeline support for high-value write paths
94
131
  - retry-safe semantics for relation add/delete, project label add/remove, notification read/archive, and structured partial-failure details
@@ -106,11 +143,20 @@ compared to upstream, this fork adds and maintains capabilities aimed at automat
106
143
  - workspace-aware auth management with keyring migration and default workspace support
107
144
  - generated AI-agent skill docs, Claude plugin metadata, npm publishing, and Homebrew tap release plumbing
108
145
 
146
+ ## docs map
147
+
148
+ Use the docs in this order if you are building an agent integration:
149
+
150
+ 1. [docs/agent-first.md](docs/agent-first.md) for the recommended discover/read/preview/apply/recover loop
151
+ 2. [docs/json-contracts.md](docs/json-contracts.md) for stable JSON payloads, exit codes, timeout semantics, and dry-run envelopes
152
+ 3. [docs/stdin-policy.md](docs/stdin-policy.md) for pipeline and file-input conventions
153
+ 4. [`linear capabilities --json`](#automation-contract) for machine-readable command metadata at runtime
154
+
109
155
  ## automation contract
110
156
 
111
157
  for bot and org-wide automation use cases, `linear-cli` defines a stable JSON contract for a focused automation tier.
112
158
 
113
- to discover the curated agent-facing command surface programmatically, use `linear capabilities --json`. it reports stable contract versions, automation-tier membership, and per-command support for `--json`, `--dry-run`, stdin, confirmation bypass, idempotency category, primary arguments and flags, and success/failure output semantics.
159
+ to discover the curated agent-facing command surface programmatically, use `linear capabilities --json`. the default shape preserves the v1-compatible startup contract for existing bots. when you need richer metadata such as primary arguments, flags, and output semantics, opt into `linear capabilities --json --compat v2`.
114
160
 
115
161
  - v1 in scope: `issue list/view/create/update --json`, `issue relation add/delete/list --json`, `issue comment add --json`, `team members --json`, `issue parent/children/create-batch --json`
116
162
  - v2 additions: `project list/view --json`, `cycle list/view/current/next --json`, `milestone list/view --json`
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@kyaukyuai/linear-cli",
26
- "version": "2.12.0"
26
+ "version": "2.12.2"
27
27
  },
28
28
  "node_modules/@isaacs/cliui": {
29
29
  "engines": {
@@ -542,5 +542,5 @@
542
542
  }
543
543
  },
544
544
  "requires": true,
545
- "version": "2.12.0"
545
+ "version": "2.12.2"
546
546
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/kyaukyuai/linear-cli/releases/download/v2.12.0"
3
+ "https://github.com/kyaukyuai/linear-cli/releases/download/v2.12.2"
4
4
  ],
5
5
  "bin": {
6
6
  "linear": "run-linear.js"
@@ -85,7 +85,7 @@
85
85
  "zipExt": ".tar.xz"
86
86
  }
87
87
  },
88
- "version": "2.12.0",
88
+ "version": "2.12.2",
89
89
  "volta": {
90
90
  "node": "18.14.1",
91
91
  "npm": "9.5.0"