@kyaukyuai/linear-cli 2.13.0 → 2.15.0

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,24 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.15.0] - 2026-04-03
6
+
7
+ ### Added
8
+
9
+ - added a global `--profile agent-safe` execution profile that disables pager by default, extends write timeouts, and requires explicit `--yes` for destructive confirmation flows in automation contexts
10
+
11
+ ### Changed
12
+
13
+ - added downstream consumer certification to the release gate so startup discovery, resolve, preview/apply, and timeout-recovery paths used by real agent workflows cannot drift silently
14
+
15
+ ## [2.14.0] - 2026-04-03
16
+
17
+ ### Added
18
+
19
+ - added operation receipts to high-value write JSON results so agents can inspect resolved refs, applied changes, no-op state, partial success, and next safe actions from a shared receipt surface
20
+ - unified representative `--dry-run` previews and apply results under the same top-level `operation` contract family for safer plan/apply loops
21
+ - added Automation Contract v6 for `linear resolve issue/team/workflow-state/user/label --json`, giving agents a machine-readable reference resolution surface before previewing or applying writes
22
+
5
23
  ## [2.13.0] - 2026-04-02
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -7,6 +7,8 @@ if you want an agent to read Linear state, preview a write, apply it, and return
7
7
  ```bash
8
8
  linear capabilities --json
9
9
  linear capabilities --json --compat v2
10
+ linear resolve issue ENG-123 --json
11
+ linear --profile agent-safe issue update ENG-123 --state done --dry-run --json
10
12
  linear issue list --json
11
13
  linear issue view ENG-123 --json
12
14
  linear issue create -t "Backfill webhook contract docs" --team ENG --dry-run --json
@@ -22,6 +24,8 @@ interactive commands still exist for humans, but the primary design goal is that
22
24
  If an agent only reads one page, it should be this README plus the two contract docs below.
23
25
 
24
26
  - start with `linear capabilities --json` for the stable startup-safe shape; use `linear capabilities --json --compat v2` when you also need required/optional input refs, constrained values, defaults, context resolution hints, input constraints, canonical argv examples, stdin/file targets, and structured output semantics
27
+ - use `linear --profile agent-safe ...` when you want predictable non-interactive defaults for an automation run
28
+ - resolve ambiguous issue/team/state/user/label refs with `linear resolve ... --json` before previewing or applying writes
25
29
  - 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
30
  - preview writes with `--dry-run --json` before mutating Linear
27
31
  - apply writes with `--json`, then inspect exit codes and `error.details` instead of parsing terminal text
@@ -127,6 +131,8 @@ compared to upstream, this fork adds and maintains capabilities aimed at automat
127
131
  - stable JSON contracts for the automation tier, with machine-readable failures for parser, validation, and runtime errors
128
132
  - a self-describing `linear capabilities --json` surface with a backward-compatible default and an explicit `--compat v2` mode for richer schema and output metadata
129
133
  - `--dry-run` previews for high-value write commands, including `issue start`, issue writes, and non-issue writes
134
+ - additive operation receipts on high-value JSON write success paths
135
+ - a shared top-level `operation` contract on representative preview/apply JSON write paths
130
136
  - stdin and pipeline support for high-value write paths
131
137
  - retry-safe semantics for relation add/delete, project label add/remove, notification read/archive, and structured partial-failure details
132
138
  - canonical `--yes` confirmation bypass handling for destructive commands
@@ -158,11 +164,20 @@ for bot and org-wide automation use cases, `linear-cli` defines a stable JSON co
158
164
 
159
165
  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 required vs optional primary inputs, constrained values, defaults, context resolution hints, input constraints, canonical argv examples, stdin/file targets, structured output semantics, and timeout/no-op traits, opt into `linear capabilities --json --compat v2`.
160
166
 
167
+ `linear --profile agent-safe ...` is the opt-in execution profile for agent-controlled runs. it currently disables pager-by-default behavior, extends the built-in write timeout to `45000ms` unless `--timeout-ms` or `LINEAR_WRITE_TIMEOUT_MS` is set, and rejects destructive confirmation prompts unless the caller passes `--yes`.
168
+
169
+ non-goals:
170
+
171
+ - it does not force `--json`
172
+ - it does not auto-confirm destructive actions
173
+ - it does not replace every interactive data-entry fallback; callers should still pass explicit flags, stdin, or file inputs
174
+
161
175
  - 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`
162
176
  - v2 additions: `project list/view --json`, `cycle list/view/current/next --json`, `milestone list/view --json`
163
177
  - v3 additions: `document list/view --json`, `webhook list/view --json`, `notification list/count --json`
164
178
  - v4 additions: `team list/view --json`, `user list/view --json`, `workflow-state list/view --json`, `label list --json`, `project-label list --json`
165
179
  - v5 additions: `initiative list/view --json`, `project-update list --json`, `initiative-update list --json`
180
+ - v6 additions: `resolve issue/team/workflow-state/user/label --json`
166
181
  - out of scope: non-JSON terminal output, `linear api`, and other `--json` commands that are not listed above
167
182
 
168
183
  the contract fixes top-level success payload shapes and requires machine-readable failure payloads for the automation tier. see [docs/json-contracts.md](docs/json-contracts.md) for the full contract, compatibility rules, and example payloads. that guarantee also covers parser and argument validation failures when `--json` is present.
@@ -173,6 +188,8 @@ high-value write commands honor `LINEAR_WRITE_TIMEOUT_MS` and accept `--timeout-
173
188
 
174
189
  the same document also defines the shared preview contract for future `--dry-run` write commands. those commands are not all implemented yet, but the contract now fixes the expected `stdout`, `exit code`, and `--json --dry-run` envelope shape ahead of rollout.
175
190
 
191
+ representative preview/apply JSON write paths may add a top-level `operation` field so agents can diff preview intent against apply results with one parser path. successful high-value JSON writes may also add a top-level `receipt` field. this gives agents a shared place to inspect `operationId`, `resolvedRefs`, `appliedChanges`, `noOp`, and `nextSafeAction` without inferring those traits from command-specific payload fields.
192
+
176
193
  destructive commands use `--yes` as the canonical confirmation-bypass flag. legacy `--force` and `--confirm` flags are still accepted where older workflows already depended on them.
177
194
 
178
195
  for retry behavior, prefer treating write commands in three buckets:
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@kyaukyuai/linear-cli",
26
- "version": "2.13.0"
26
+ "version": "2.15.0"
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.13.0"
545
+ "version": "2.15.0"
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.13.0"
3
+ "https://github.com/kyaukyuai/linear-cli/releases/download/v2.15.0"
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.13.0",
88
+ "version": "2.15.0",
89
89
  "volta": {
90
90
  "node": "18.14.1",
91
91
  "npm": "9.5.0"