linear-sdk-cli 0.3.3 → 0.5.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 +15 -0
- package/COVERAGE.md +13 -9
- package/MIGRATING.md +6 -0
- package/README.md +280 -86
- package/package.json +5 -5
- package/skills/linear-sdk-cli/SKILL.md +10 -0
- package/skills/linear-sdk-cli/references/auth.md +1 -0
- package/skills/linear-sdk-cli/references/config.md +10 -7
- package/skills/linear-sdk-cli/references/custom-view.md +205 -0
- package/skills/linear-sdk-cli/references/initiative.md +10 -5
- package/skills/linear-sdk-cli/references/issue.md +222 -77
- package/skills/linear-sdk-cli/references/notification.md +3 -3
- package/skills/linear-sdk-cli/references/project.md +9 -4
- package/src/cli.ts +2 -0
- package/src/commands/custom-view.ts +279 -0
- package/src/commands/initiative.ts +23 -6
- package/src/commands/issue.ts +313 -12
- package/src/commands/meta.ts +55 -9
- package/src/commands/notification.ts +5 -3
- package/src/commands/project.ts +21 -3
- package/src/config.ts +111 -10
- package/src/lib/delegation.ts +240 -0
- package/src/lib/json-input.ts +46 -0
- package/src/lib/options.ts +23 -3
- package/src/lib/output-shapes.ts +102 -3
- package/src/output/lifecycle.ts +10 -0
- package/src/services/custom-view.ts +376 -0
- package/src/services/initiative.ts +12 -3
- package/src/services/issue.ts +498 -21
- package/src/services/project.ts +14 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ Release Please generates this file from Conventional Commits. Feature and fix pu
|
|
|
4
4
|
not edit it directly; their squash-commit titles are the release-note source of truth. This project
|
|
5
5
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.5.0](https://github.com/zhendalf/linear-sdk-cli/compare/v0.4.0...v0.5.0) (2026-09-03)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** support per-workspace default teams ([#50](https://github.com/zhendalf/linear-sdk-cli/issues/50)) ([06be757](https://github.com/zhendalf/linear-sdk-cli/commit/06be757ddb81652dea4da32434e63de773cb6760)), closes [#44](https://github.com/zhendalf/linear-sdk-cli/issues/44)
|
|
12
|
+
- **issue:** add native agent delegation ([#52](https://github.com/zhendalf/linear-sdk-cli/issues/52)) ([15055ff](https://github.com/zhendalf/linear-sdk-cli/commit/15055ff73d46f6ddf31679b7bb5f37fc6e3fddda)), closes [#45](https://github.com/zhendalf/linear-sdk-cli/issues/45)
|
|
13
|
+
- **issue:** set labels by group ([#54](https://github.com/zhendalf/linear-sdk-cli/issues/54)) ([4c471cd](https://github.com/zhendalf/linear-sdk-cli/commit/4c471cd23c9409ba395cf43514f9e251a42ef4d6)), closes [#46](https://github.com/zhendalf/linear-sdk-cli/issues/46)
|
|
14
|
+
- standardize archived-resource listing ([#53](https://github.com/zhendalf/linear-sdk-cli/issues/53)) ([735d1c8](https://github.com/zhendalf/linear-sdk-cli/commit/735d1c87894736de257b8888edb8500934e502f3)), closes [#49](https://github.com/zhendalf/linear-sdk-cli/issues/49)
|
|
15
|
+
|
|
16
|
+
## [0.4.0](https://github.com/zhendalf/linear-sdk-cli/compare/v0.3.3...v0.4.0) (2026-08-28)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- add custom view commands ([#38](https://github.com/zhendalf/linear-sdk-cli/issues/38)) ([fa99ae6](https://github.com/zhendalf/linear-sdk-cli/commit/fa99ae64ccbb23538bf53dc5fb8778e63ebd1b64))
|
|
21
|
+
|
|
7
22
|
## [0.3.3](https://github.com/zhendalf/linear-sdk-cli/compare/v0.3.2...v0.3.3) (2026-08-28)
|
|
8
23
|
|
|
9
24
|
### Bug Fixes
|
package/COVERAGE.md
CHANGED
|
@@ -4,14 +4,18 @@ Generated by `bun run audit:coverage`. Total LinearClient members: **472**.
|
|
|
4
4
|
|
|
5
5
|
| Status | Count | Meaning |
|
|
6
6
|
| -------- | ----- | ----------------------------------------------- |
|
|
7
|
-
| curated |
|
|
7
|
+
| curated | 107 | Has a first-class CLI command |
|
|
8
8
|
| raw-only | 142 | Reachable via `linear api` (no bespoke command) |
|
|
9
|
-
| excluded |
|
|
9
|
+
| excluded | 223 | Out of scope (admin/integration/SDK plumbing) |
|
|
10
10
|
|
|
11
11
|
Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
12
12
|
100% reachable through the raw GraphQL escape hatch; they simply lack a tailored command.
|
|
13
13
|
|
|
14
|
-
## Curated
|
|
14
|
+
## Curated field capabilities
|
|
15
|
+
|
|
16
|
+
- Issue delegation (Developer Preview) — `Issue.delegate`, `IssueCreateInput.delegateId`, `IssueUpdateInput.delegateId`, and eligible agent-user fields are covered by `issue delegate` and the delegation options on `issue create`/`issue update`.
|
|
17
|
+
|
|
18
|
+
## Curated (107)
|
|
15
19
|
|
|
16
20
|
- `agentSession` — issue
|
|
17
21
|
- `agentSessions` — issue
|
|
@@ -27,6 +31,7 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
27
31
|
- `comments` — comment
|
|
28
32
|
- `createAttachment` — attachment
|
|
29
33
|
- `createComment` — issue
|
|
34
|
+
- `createCustomView` — custom-view
|
|
30
35
|
- `createCycle` — cycle
|
|
31
36
|
- `createDocument` — document
|
|
32
37
|
- `createFavorite` — favorite
|
|
@@ -42,10 +47,13 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
42
47
|
- `createRoadmap` — roadmap
|
|
43
48
|
- `createTeam` — team
|
|
44
49
|
- `createWebhook` — webhook
|
|
50
|
+
- `customView` — custom-view
|
|
51
|
+
- `customViews` — custom-view
|
|
45
52
|
- `cycle` — cycle
|
|
46
53
|
- `cycles` — cycle
|
|
47
54
|
- `deleteAttachment` — attachment
|
|
48
55
|
- `deleteComment` — comment
|
|
56
|
+
- `deleteCustomView` — custom-view
|
|
49
57
|
- `deleteDocument` — document
|
|
50
58
|
- `deleteFavorite` — favorite
|
|
51
59
|
- `deleteInitiative` — initiative
|
|
@@ -96,6 +104,7 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
96
104
|
- `unarchiveInitiative` — initiative
|
|
97
105
|
- `unarchiveIssue` — issue
|
|
98
106
|
- `updateComment` — comment
|
|
107
|
+
- `updateCustomView` — custom-view
|
|
99
108
|
- `updateCycle` — cycle
|
|
100
109
|
- `updateDocument` — document
|
|
101
110
|
- `updateInitiative` — initiative
|
|
@@ -116,7 +125,7 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
116
125
|
- `workflowState` — state
|
|
117
126
|
- `workflowStates` — state
|
|
118
127
|
|
|
119
|
-
## Excluded (
|
|
128
|
+
## Excluded (223)
|
|
120
129
|
|
|
121
130
|
- `agentActivities` — specialized/raw api only
|
|
122
131
|
- `agentActivity` — specialized/raw api only
|
|
@@ -141,7 +150,6 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
141
150
|
- `createAgentSkill` — specialized/raw api only
|
|
142
151
|
- `createContact` — specialized/raw api only
|
|
143
152
|
- `createCsvExportReport` — specialized/raw api only
|
|
144
|
-
- `createCustomView` — specialized/raw api only
|
|
145
153
|
- `createCustomer` — specialized/raw api only
|
|
146
154
|
- `createCustomerNeed` — specialized/raw api only
|
|
147
155
|
- `createCustomerStatus` — specialized/raw api only
|
|
@@ -165,9 +173,7 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
165
173
|
- `createTimeSchedule` — specialized/raw api only
|
|
166
174
|
- `createTriageResponsibility` — specialized/raw api only
|
|
167
175
|
- `createViewPreferences` — specialized/raw api only
|
|
168
|
-
- `customView` — specialized/raw api only
|
|
169
176
|
- `customViewHasSubscribers` — specialized/raw api only
|
|
170
|
-
- `customViews` — specialized/raw api only
|
|
171
177
|
- `customer` — specialized/raw api only
|
|
172
178
|
- `customerMerge` — specialized/raw api only
|
|
173
179
|
- `customerNeed` — specialized/raw api only
|
|
@@ -181,7 +187,6 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
181
187
|
- `customerUpsert` — specialized/raw api only
|
|
182
188
|
- `customers` — specialized/raw api only
|
|
183
189
|
- `deleteAgentSkill` — specialized/raw api only
|
|
184
|
-
- `deleteCustomView` — specialized/raw api only
|
|
185
190
|
- `deleteCustomer` — specialized/raw api only
|
|
186
191
|
- `deleteCustomerNeed` — specialized/raw api only
|
|
187
192
|
- `deleteCustomerStatus` — specialized/raw api only
|
|
@@ -321,7 +326,6 @@ Every member is classified — CI fails otherwise. `raw-only` members are still
|
|
|
321
326
|
- `unsuspendUser` — admin/enterprise (raw api only)
|
|
322
327
|
- `updateAgentSession` — specialized/raw api only
|
|
323
328
|
- `updateAgentSkill` — specialized/raw api only
|
|
324
|
-
- `updateCustomView` — specialized/raw api only
|
|
325
329
|
- `updateCustomer` — specialized/raw api only
|
|
326
330
|
- `updateCustomerNeed` — specialized/raw api only
|
|
327
331
|
- `updateCustomerStatus` — specialized/raw api only
|
package/MIGRATING.md
CHANGED
|
@@ -124,6 +124,10 @@ Everything with no row is spelled identically.
|
|
|
124
124
|
|
|
125
125
|
Passing both spellings at once (`--due` _and_ `--due-date`) is a usage error, not a coin flip.
|
|
126
126
|
|
|
127
|
+
This CLI previously taught `initiative list --archived`. Its canonical spelling is now
|
|
128
|
+
`--include-archived`, matching issue, project, and notification lists. The old spelling remains a
|
|
129
|
+
compatibility alias throughout `0.x`; passing both spellings together is a usage error.
|
|
130
|
+
|
|
127
131
|
**Short flags are the one place we did not follow.** schpet 2.5's own tree assigns `-a` four
|
|
128
132
|
meanings (`--app`, `--all`, `--assignee`, `--attach`), `-f` four, `-y` three, `-t` two (`--title`
|
|
129
133
|
and `--team`). There is no consistent target to copy. Ours holds **one meaning per letter across
|
|
@@ -154,6 +158,8 @@ Every one is now either identical, or says so on stderr, or is a usage error. Kn
|
|
|
154
158
|
under `--quiet`) that deactivated users are still excluded and names `--include-disabled`, and
|
|
155
159
|
`--help` says so up front. Not adopted: making `--all` mean "and deactivated" on two commands
|
|
156
160
|
would give one global two meanings.
|
|
161
|
+
The same rule applies to lifecycle history: `--all` never includes archived records. Use
|
|
162
|
+
`--include-archived --all` to widen lifecycle visibility and exhaust pagination independently.
|
|
157
163
|
5. **`-f <file>` on `project create/update`, `document create/update`** — theirs: `--description-file` /
|
|
158
164
|
`--content-file`. Ours: `-f` is `--fields`, and it used to be _dropped_ on those commands, so
|
|
159
165
|
`project create --name X -f desc.md` created the project with no description and exited 0.
|