@elnora-ai/linear 1.0.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/.claude-plugin/marketplace.json +19 -0
- package/.claude-plugin/plugin.json +19 -0
- package/CHANGELOG.md +29 -0
- package/LICENSE +201 -0
- package/README.md +61 -0
- package/agents/linear-issue-creator.md +45 -0
- package/agents/linear-issue-reviewer.md +44 -0
- package/agents/linear-issue-updater.md +45 -0
- package/agents/linear-url-to-issues.md +51 -0
- package/commands/linear-bulk.md +42 -0
- package/commands/linear-cleanup.md +45 -0
- package/commands/linear-curator-run.md +39 -0
- package/commands/linear-my-issues.md +25 -0
- package/commands/linear-search.md +32 -0
- package/commands/linear-sync.md +54 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +126 -0
- package/dist/cli.js.map +1 -0
- package/dist/client/auth.d.ts +21 -0
- package/dist/client/auth.d.ts.map +1 -0
- package/dist/client/auth.js +74 -0
- package/dist/client/auth.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/linear-client.d.ts +5 -0
- package/dist/client/linear-client.d.ts.map +1 -0
- package/dist/client/linear-client.js +18 -0
- package/dist/client/linear-client.js.map +1 -0
- package/dist/commands/bulk.d.ts +39 -0
- package/dist/commands/bulk.d.ts.map +1 -0
- package/dist/commands/bulk.js +103 -0
- package/dist/commands/bulk.js.map +1 -0
- package/dist/commands/cleanup.d.ts +39 -0
- package/dist/commands/cleanup.d.ts.map +1 -0
- package/dist/commands/cleanup.js +100 -0
- package/dist/commands/cleanup.js.map +1 -0
- package/dist/commands/curator.d.ts +23 -0
- package/dist/commands/curator.d.ts.map +1 -0
- package/dist/commands/curator.js +66 -0
- package/dist/commands/curator.js.map +1 -0
- package/dist/commands/index.d.ts +7 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +7 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/my-issues.d.ts +7 -0
- package/dist/commands/my-issues.d.ts.map +1 -0
- package/dist/commands/my-issues.js +24 -0
- package/dist/commands/my-issues.js.map +1 -0
- package/dist/commands/search.d.ts +20 -0
- package/dist/commands/search.d.ts.map +1 -0
- package/dist/commands/search.js +54 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/commands/sync.d.ts +87 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +229 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +12 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +140 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/types.d.ts +133 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +13 -0
- package/dist/config/types.js.map +1 -0
- package/dist/output/formatter.d.ts +16 -0
- package/dist/output/formatter.d.ts.map +1 -0
- package/dist/output/formatter.js +34 -0
- package/dist/output/formatter.js.map +1 -0
- package/dist/output/index.d.ts +2 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +2 -0
- package/dist/output/index.js.map +1 -0
- package/dist/signals/external-command.d.ts +30 -0
- package/dist/signals/external-command.d.ts.map +1 -0
- package/dist/signals/external-command.js +96 -0
- package/dist/signals/external-command.js.map +1 -0
- package/dist/signals/index.d.ts +4 -0
- package/dist/signals/index.d.ts.map +1 -0
- package/dist/signals/index.js +4 -0
- package/dist/signals/index.js.map +1 -0
- package/dist/signals/registry.d.ts +5 -0
- package/dist/signals/registry.d.ts.map +1 -0
- package/dist/signals/registry.js +29 -0
- package/dist/signals/registry.js.map +1 -0
- package/dist/signals/types.d.ts +25 -0
- package/dist/signals/types.d.ts.map +1 -0
- package/dist/signals/types.js +9 -0
- package/dist/signals/types.js.map +1 -0
- package/package.json +76 -0
- package/references/projects.example.json +26 -0
- package/references/projects.placeholder.json +6 -0
- package/references/repos.example.json +21 -0
- package/references/repos.placeholder.json +6 -0
- package/references/signal-sources.example.json +42 -0
- package/references/signal-sources.placeholder.json +6 -0
- package/references/slack.example.json +10 -0
- package/references/slack.placeholder.json +8 -0
- package/references/teams.example.json +21 -0
- package/references/teams.placeholder.json +6 -0
- package/references/users.example.json +18 -0
- package/references/users.placeholder.json +6 -0
- package/references/workflows.example.json +44 -0
- package/references/workflows.placeholder.json +7 -0
- package/schemas/projects.json +47 -0
- package/schemas/repos.json +41 -0
- package/schemas/signal-sources.json +90 -0
- package/schemas/slack.json +45 -0
- package/schemas/teams.json +43 -0
- package/schemas/users.json +41 -0
- package/schemas/workflows.json +61 -0
- package/skills/linear-workspace/SKILL.md +52 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "elnora-linear",
|
|
3
|
+
"description": "Linear workspace for Claude Code — single-plugin marketplace.",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "Elnora AI",
|
|
6
|
+
"email": "opensource@elnora.ai",
|
|
7
|
+
"url": "https://github.com/Elnora-AI"
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"name": "linear-workspace",
|
|
12
|
+
"description": "Linear issue management for Claude Code — search, bulk operations, intelligent agents, config-driven curator.",
|
|
13
|
+
"source": "./",
|
|
14
|
+
"version": "0.0.0",
|
|
15
|
+
"category": "productivity",
|
|
16
|
+
"tags": ["linear", "issue-tracker", "workflow", "automation"]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "linear-workspace",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Linear issue management for Claude Code — search, bulk operations, intelligent agents, config-driven curator. Backed by the elnora-linear CLI.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Elnora AI",
|
|
7
|
+
"email": "opensource@elnora.ai",
|
|
8
|
+
"url": "https://github.com/Elnora-AI"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/Elnora-AI/elnora-linear",
|
|
11
|
+
"repository": "https://github.com/Elnora-AI/elnora-linear",
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"linear",
|
|
15
|
+
"issue-tracker",
|
|
16
|
+
"workflow",
|
|
17
|
+
"automation"
|
|
18
|
+
]
|
|
19
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (2026-05-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* agents + slash commands + linear-workspace skill ([#13](https://github.com/Elnora-AI/elnora-linear/issues/13)) ([cf350ac](https://github.com/Elnora-AI/elnora-linear/commit/cf350ace534de6a6658b9b2c801a42bbf9cc8ae0))
|
|
9
|
+
* bulk + cleanup commands with dry-run safety ([#10](https://github.com/Elnora-AI/elnora-linear/issues/10)) ([1b9e332](https://github.com/Elnora-AI/elnora-linear/commit/1b9e33228dad92e78b732cf1d12a2226c2cd4c02))
|
|
10
|
+
* **ci:** add release.yml — publish to npm via OIDC on GitHub release ([#15](https://github.com/Elnora-AI/elnora-linear/issues/15)) ([cb52372](https://github.com/Elnora-AI/elnora-linear/commit/cb52372d97d7088146edbc5d46937c97bd3bde5c))
|
|
11
|
+
* config layer — types, loader, schema validation, tests ([#8](https://github.com/Elnora-AI/elnora-linear/issues/8)) ([40c4f7a](https://github.com/Elnora-AI/elnora-linear/commit/40c4f7a3f8cc8d990833c8eac1f7c09f6929a140))
|
|
12
|
+
* curator-run + signal-source registry + external_command source ([#12](https://github.com/Elnora-AI/elnora-linear/issues/12)) ([6fccb47](https://github.com/Elnora-AI/elnora-linear/commit/6fccb476acf7a6904d8e69166fd8e736a84c4020))
|
|
13
|
+
* scaffold reference data — schemas, placeholders, examples, no-populated-references CI check ([#7](https://github.com/Elnora-AI/elnora-linear/issues/7)) ([e2dcc15](https://github.com/Elnora-AI/elnora-linear/commit/e2dcc15c7ac3ea6b67527f23037af3ee22491a1c))
|
|
14
|
+
* search + my-issues commands, Linear client, API key auth, output formatter ([#9](https://github.com/Elnora-AI/elnora-linear/issues/9)) ([f0893e4](https://github.com/Elnora-AI/elnora-linear/commit/f0893e47f1ee8ec9e04210369a6a23be7271973c))
|
|
15
|
+
* sync command — auto-discover teams/projects/users/workflows from Linear ([#11](https://github.com/Elnora-AI/elnora-linear/issues/11)) ([9721027](https://github.com/Elnora-AI/elnora-linear/commit/9721027712a36af321c7609c7c0b36d545849295))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **ci:** switch release.yml from OIDC to NPM_TOKEN ([#18](https://github.com/Elnora-AI/elnora-linear/issues/18)) ([b67bcde](https://github.com/Elnora-AI/elnora-linear/commit/b67bcde6b59ba8919174d82c25494a70a7a97ce1))
|
|
21
|
+
* **ci:** use org-level RELEASE_BOT_PAT for Release Please ([#14](https://github.com/Elnora-AI/elnora-linear/issues/14)) ([a83d6db](https://github.com/Elnora-AI/elnora-linear/commit/a83d6db75db141e2a6f81aff46574fac9f87628e))
|
|
22
|
+
* **ci:** use per-repo RELEASE_TOKEN to match elnora-cli/mcp-server pattern ([#16](https://github.com/Elnora-AI/elnora-linear/issues/16)) ([2fe0cd5](https://github.com/Elnora-AI/elnora-linear/commit/2fe0cd5ed66ccaf304bc30fe5da1bec020e0f127))
|
|
23
|
+
* remove internal staging path and sibling-repo reference ([#6](https://github.com/Elnora-AI/elnora-linear/issues/6)) ([b7a4053](https://github.com/Elnora-AI/elnora-linear/commit/b7a4053e30b9118cdb1f225e410066f4c19973ff))
|
|
24
|
+
|
|
25
|
+
## Changelog
|
|
26
|
+
|
|
27
|
+
All notable changes to `@elnora-ai/linear` are documented in this file.
|
|
28
|
+
|
|
29
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). Releases are produced by [release-please](https://github.com/googleapis/release-please) from [Conventional Commits](https://www.conventionalcommits.org/).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Elnora AI, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# elnora-linear
|
|
2
|
+
|
|
3
|
+
Linear workspace for Claude Code — search, bulk edit, intelligent agents, and a config-driven issue curator. This repo is both a Claude Code plugin marketplace and a standalone CLI on npm.
|
|
4
|
+
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://www.npmjs.com/package/@elnora-ai/linear)
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
Two commands plus one paste of your Linear API key:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/plugin marketplace add Elnora-AI/elnora-linear
|
|
14
|
+
/plugin install linear-workspace@elnora-linear
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
On your next Linear command (e.g. `/linear-search "issues assigned to me"`), you'll be prompted once for your Linear API key. Teams, projects, users, and workflow states are then auto-discovered from the Linear API. No wizard, no env vars, no config files to edit by hand.
|
|
18
|
+
|
|
19
|
+
Standalone (non-Claude-Code):
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
npm install -g @elnora-ai/linear
|
|
23
|
+
elnora-linear search "team:ENG state:in-progress"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## What's in the box
|
|
27
|
+
|
|
28
|
+
- **Slash commands:** `/linear-search`, `/linear-my-issues`, `/linear-bulk`, `/linear-cleanup`, `/linear-sync`, `/linear-curator-run`
|
|
29
|
+
- **Agents:** `linear-issue-creator`, `linear-issue-reviewer`, `linear-issue-updater`, `linear-url-to-issues`, `linear-state-curator`
|
|
30
|
+
- **Skill router:** `linear-workspace`
|
|
31
|
+
- **CLI:** `elnora-linear` — every command above is scriptable
|
|
32
|
+
- **Issue curator:** validates Linear issues against signals from your GitHub repos, Slack channels, MCP tools, or any shell command, and proposes state changes / nudges
|
|
33
|
+
|
|
34
|
+
## Configuration
|
|
35
|
+
|
|
36
|
+
All user-specific data (team prefixes, channel IDs, repo allowlists, signal sources, custom workflows) lives in `references/*.json` files that the plugin populates on first run via `linear-sync`. The schema is documented in [docs/CONFIGURATION.md](docs/CONFIGURATION.md). Populated files live in your own private space (default `~/.config/elnora-linear/`) — they never enter this repo.
|
|
37
|
+
|
|
38
|
+
To re-fetch teams or projects after Linear changes:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
elnora-linear sync teams projects users
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
To enable the curator:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
elnora-linear sync signal-sources
|
|
48
|
+
elnora-linear curator-run
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Contributing
|
|
52
|
+
|
|
53
|
+
Issues and PRs welcome. We review and merge — see [CONTRIBUTING.md](.github/CONTRIBUTING.md).
|
|
54
|
+
|
|
55
|
+
## Security
|
|
56
|
+
|
|
57
|
+
See [SECURITY.md](.github/SECURITY.md). Report vulnerabilities privately via security@elnora.ai or GitHub Security Advisories.
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
Apache-2.0
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-issue-creator
|
|
3
|
+
description: >
|
|
4
|
+
Create Linear issues from user descriptions. NOT for URLs — use linear-url-to-issues for that.
|
|
5
|
+
Use when: "create issue", "new ticket", "log bug", "add task", "file issue", "report bug",
|
|
6
|
+
"make ticket", "make issue", "add to linear", "create task", "new issue",
|
|
7
|
+
"open ticket", "open issue".
|
|
8
|
+
|
|
9
|
+
<example>create issue for dark mode feature</example>
|
|
10
|
+
<example>log bug: authentication not working</example>
|
|
11
|
+
<example>new ticket for API optimization</example>
|
|
12
|
+
<example>add task to implement SSO</example>
|
|
13
|
+
color: cyan
|
|
14
|
+
tools:
|
|
15
|
+
- Bash
|
|
16
|
+
- Read
|
|
17
|
+
- AskUserQuestion
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Linear Issue Creator
|
|
21
|
+
|
|
22
|
+
Create a Linear issue from a user's free-text description. Single-issue, manual creation only — URLs are handled by `linear-url-to-issues`, edits by `linear-issue-updater`.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
- One issue per invocation
|
|
27
|
+
- Confirm with the user before creating; show the proposed title + team + assignee
|
|
28
|
+
- Never create silently — every issue is acknowledged on Linear
|
|
29
|
+
|
|
30
|
+
## Workflow
|
|
31
|
+
|
|
32
|
+
1. **Identify the team.** If the user named a team (or its issue prefix like `ENG`), use it. Otherwise check `references/teams.json` for available teams and ask if more than one is plausible.
|
|
33
|
+
2. **Draft title + description.** Keep the title under ~80 chars. Description in markdown. Include reproduction steps for bugs, acceptance criteria for features.
|
|
34
|
+
3. **Pick optional fields.** Assignee (default: the viewer), priority, project. Don't invent a project that doesn't exist in `references/projects.json`.
|
|
35
|
+
4. **Confirm.** Show the user a 3-line summary and ask "create this?" Use `AskUserQuestion` for the confirmation gate.
|
|
36
|
+
5. **Create.** No direct CLI command for single-issue creation in v0 — use the Linear web app or wait for `elnora-linear create` (planned). Until then, draft the issue body and hand it to the user with a one-click link.
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
After creation, return the new issue's `ENG-NNN` identifier and URL.
|
|
41
|
+
|
|
42
|
+
## Don't
|
|
43
|
+
|
|
44
|
+
- Don't create the same issue twice (check `elnora-linear search --query "<title>"` first if the title is generic)
|
|
45
|
+
- Don't pick a team or project the user didn't name unless `references/teams.json` has only one candidate
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-issue-reviewer
|
|
3
|
+
description: >
|
|
4
|
+
Review an existing Linear issue for clarity, completeness, and routing. Use when:
|
|
5
|
+
"review issue", "check this issue", "look at <ID>", "is this issue good", "what's missing".
|
|
6
|
+
|
|
7
|
+
<example>review ENG-101</example>
|
|
8
|
+
<example>check this issue: <link></example>
|
|
9
|
+
<example>is this ticket clear enough to start work on?</example>
|
|
10
|
+
color: blue
|
|
11
|
+
tools:
|
|
12
|
+
- Bash
|
|
13
|
+
- Read
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Linear Issue Reviewer
|
|
17
|
+
|
|
18
|
+
Read a Linear issue and grade it on: clarity, scope, acceptance criteria, ownership, and metadata (team, project, priority, labels). Surface anything missing.
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
1. **Fetch the issue.** Use `elnora-linear search --query "<identifier-or-keywords>" --output json` to get the issue details.
|
|
23
|
+
2. **Check completeness.**
|
|
24
|
+
- Title: specific (not "fix bug")
|
|
25
|
+
- Description: includes context, expected vs actual, or acceptance criteria
|
|
26
|
+
- Assignee: set
|
|
27
|
+
- Project: set (or explicitly marked as not requiring one)
|
|
28
|
+
- Priority: set when severity warrants
|
|
29
|
+
3. **Score.** Give a 1–5 rating with a short rationale. Highlight the top 1–2 things to fix.
|
|
30
|
+
4. **Suggest the fix.** Concrete: "title should be: <X>", "missing repro steps", "should be on project Y".
|
|
31
|
+
|
|
32
|
+
## Output
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
ENG-101: <title> — score: 3/5
|
|
36
|
+
Strengths: clear bug scope, has repro
|
|
37
|
+
Gaps: no acceptance criteria; assignee missing
|
|
38
|
+
Suggested fix: add criteria + assign to <name>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Don't
|
|
42
|
+
|
|
43
|
+
- Don't apply edits yourself — that's `linear-issue-updater`'s job
|
|
44
|
+
- Don't fabricate a rating without reading the issue
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-issue-updater
|
|
3
|
+
description: >
|
|
4
|
+
Edit an existing Linear issue. State changes, assignee, priority, labels, comments, close,
|
|
5
|
+
relate, duplicate, block. Use when: "update issue", "move issue", "reassign", "change state",
|
|
6
|
+
"change priority", "add label", "remove label", "add comment", "close issue", "mark done",
|
|
7
|
+
"link issues", "mark as duplicate", "mark as blocking".
|
|
8
|
+
|
|
9
|
+
<example>move ENG-101 to In Progress</example>
|
|
10
|
+
<example>reassign ENG-405 to <name></example>
|
|
11
|
+
<example>add comment to SEC-50 about the fix</example>
|
|
12
|
+
<example>close ENG-300, it's done</example>
|
|
13
|
+
color: yellow
|
|
14
|
+
tools:
|
|
15
|
+
- Bash
|
|
16
|
+
- Read
|
|
17
|
+
- AskUserQuestion
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Linear Issue Updater
|
|
21
|
+
|
|
22
|
+
Apply a single change (or small batched set of changes) to one Linear issue. Confirm any state transition or comment before applying.
|
|
23
|
+
|
|
24
|
+
## Workflow
|
|
25
|
+
|
|
26
|
+
1. **Resolve the issue.** If the user gave an identifier (`ENG-101`), use it. If they described the issue, run `elnora-linear search --query "..." --output json` first and confirm which issue they meant.
|
|
27
|
+
2. **Plan the change.** List exactly what will be changed in 1–2 lines. Examples:
|
|
28
|
+
- "Move ENG-101 from `Todo` → `In Progress`"
|
|
29
|
+
- "Reassign ENG-405 to <name>"
|
|
30
|
+
- "Add comment to SEC-50: <quote first 60 chars>…"
|
|
31
|
+
3. **Confirm with the user** via `AskUserQuestion` if the change is destructive (state → Canceled, removing a label, etc.) or if you had to guess intent. Skip confirmation for clearly-stated edits.
|
|
32
|
+
4. **Apply.** Use the appropriate `elnora-linear` invocation:
|
|
33
|
+
- State changes → `elnora-linear bulk --query "<id>" --set-state "<new-state>" --yes`
|
|
34
|
+
- Comments → `elnora-linear bulk --query "<id>" --add-comment "<text>" --yes`
|
|
35
|
+
- Other field edits (priority, assignee, labels, relations, etc.) are not yet exposed by the v0 CLI — fall back to instructing the user to edit in Linear's web app, or use the Linear MCP if available.
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
Show the issue ID + the field changed + the new value. Link to the issue.
|
|
40
|
+
|
|
41
|
+
## Don't
|
|
42
|
+
|
|
43
|
+
- Don't use `--yes` on a multi-issue match — `bulk` is for batch ops; the updater agent acts on ONE issue at a time
|
|
44
|
+
- Don't auto-close issues without confirmation
|
|
45
|
+
- Don't invent state names — check `references/workflows.json` if unsure
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-url-to-issues
|
|
3
|
+
description: >
|
|
4
|
+
Extract actionable Linear issues from URLs (articles, blog posts, design files, docs).
|
|
5
|
+
Parallel-safe — dispatch one agent per URL when processing several. NOT for manual
|
|
6
|
+
free-text creation — use linear-issue-creator for that. Use when: "create issues from URL",
|
|
7
|
+
"turn this article into tasks", "implement this design", "make issues from blog post",
|
|
8
|
+
"extract tasks from", "read and create issues", "issues from this link".
|
|
9
|
+
|
|
10
|
+
<example>create issues from this article about caching: <url></example>
|
|
11
|
+
<example>turn this design into Linear tasks: <figma-link></example>
|
|
12
|
+
<example>read this blog and make actionable issues: <url></example>
|
|
13
|
+
color: purple
|
|
14
|
+
tools:
|
|
15
|
+
- Bash
|
|
16
|
+
- WebFetch
|
|
17
|
+
- WebSearch
|
|
18
|
+
- Read
|
|
19
|
+
- AskUserQuestion
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Linear URL → Issues
|
|
23
|
+
|
|
24
|
+
Read a URL (article, blog, doc, design file) and propose Linear issues that capture the actionable work. The user reviews and approves; the agent then drafts each issue.
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. **Fetch the URL.** Use `WebFetch`. Skim for actionable items: design decisions, implementation tasks, open questions, follow-ups. Ignore preamble.
|
|
29
|
+
2. **Extract candidates.** Aim for 1 issue per atomic piece of work. Don't over-split (one issue per sentence is too granular) and don't under-split (one issue for the whole article is too coarse).
|
|
30
|
+
3. **Group by team.** If the user has multiple teams in `references/teams.json`, propose a team for each issue. Default to the first listed team if no obvious match.
|
|
31
|
+
4. **Show the proposal.** A list: "ENG | <title> | <one-line rationale>". Number them.
|
|
32
|
+
5. **Confirm.** Ask the user which to create. They can accept all, accept a subset, or edit titles inline.
|
|
33
|
+
6. **Hand off.** For each approved issue, drop the title + body into `linear-issue-creator` (or instruct the user to paste into Linear web). The url-to-issues agent doesn't create directly.
|
|
34
|
+
|
|
35
|
+
## Output
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Extracted 4 candidate issues from <url>:
|
|
39
|
+
1. ENG | Add request-level caching to <endpoint> | mitigates p99 spikes documented in §3
|
|
40
|
+
2. ENG | Move <X> off cron to event-driven trigger | author calls out the reliability gap
|
|
41
|
+
3. OPS | Document <Y> migration playbook | post-mortem section ends with this ask
|
|
42
|
+
4. ENG | Investigate whether <Z> applies to our setup | open question in §5
|
|
43
|
+
|
|
44
|
+
Which should I create?
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Don't
|
|
48
|
+
|
|
49
|
+
- Don't fabricate items the URL doesn't mention
|
|
50
|
+
- Don't create issues without user confirmation
|
|
51
|
+
- Don't pull in items already tracked — `elnora-linear search --query "<keyword>"` first if uncertain
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-bulk
|
|
3
|
+
description: Apply the same change to many Linear issues at once. Dry-run by default.
|
|
4
|
+
argument-hint: "<filter description> → <mutation description>"
|
|
5
|
+
allowed-tools: Bash, Read, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Linear Bulk Update
|
|
9
|
+
|
|
10
|
+
Apply one change to every Linear issue matching a filter. **Default is dry-run** — the plan is shown but nothing mutates until the user confirms with `--yes`.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
1. **Parse the user's request** into filter + mutation pieces. Example: "move all ENG team Todos with the 'security' label to In Progress" → filter `--team ENG --state Todo` + mutation `--set-state "In Progress"`.
|
|
15
|
+
|
|
16
|
+
2. **Run the dry-run first** — always:
|
|
17
|
+
```bash
|
|
18
|
+
elnora-linear bulk \
|
|
19
|
+
--team <key> [--state <name>] [--assignee <name>] [--query <text>] \
|
|
20
|
+
[--set-state <name>] [--add-comment "<text>"] \
|
|
21
|
+
--output text
|
|
22
|
+
```
|
|
23
|
+
This prints what would change without touching anything.
|
|
24
|
+
|
|
25
|
+
3. **Show the user the plan.** Use `AskUserQuestion` to confirm. Options:
|
|
26
|
+
- "Apply all" → re-run with `--yes`
|
|
27
|
+
- "Cancel" → stop
|
|
28
|
+
- "Adjust filter" → tweak and re-dry-run
|
|
29
|
+
|
|
30
|
+
4. **Apply** with `--yes` only after explicit confirmation.
|
|
31
|
+
|
|
32
|
+
## Safety
|
|
33
|
+
|
|
34
|
+
- `bulk` REQUIRES at least one of `--set-state` or `--add-comment` — the command itself errors otherwise
|
|
35
|
+
- Issues already in the target state are skipped (with a `SKIPPED` reason in the plan)
|
|
36
|
+
- The default `--limit` is 100; raise it explicitly if the user wants to touch more
|
|
37
|
+
|
|
38
|
+
## Don't
|
|
39
|
+
|
|
40
|
+
- Don't add `--yes` to the first invocation. Always dry-run first
|
|
41
|
+
- Don't auto-confirm. The user clicks Approve
|
|
42
|
+
- Don't combine filters the user didn't ask for
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-cleanup
|
|
3
|
+
description: Find stale Linear issues and act on them. Dry-run by default.
|
|
4
|
+
allowed-tools: Bash, Read, AskUserQuestion
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Linear Cleanup
|
|
8
|
+
|
|
9
|
+
Find Linear issues that have gone stale (no activity for N days) and propose a cleanup action: close, cancel, or just nudge with a comment.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. **Run the dry-run first** to see what's stale:
|
|
14
|
+
```bash
|
|
15
|
+
elnora-linear cleanup \
|
|
16
|
+
[--team <key>] \
|
|
17
|
+
[--states "Todo,Backlog"] \
|
|
18
|
+
--inactive-days 30 \
|
|
19
|
+
--action comment \
|
|
20
|
+
--output text
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
2. **Show the plan.** It lists each stale issue, days inactive, and the proposed action. Default action is `comment` (least destructive).
|
|
24
|
+
|
|
25
|
+
3. **Confirm via `AskUserQuestion`.** Options:
|
|
26
|
+
- "Comment on all" → rerun with `--action comment --yes`
|
|
27
|
+
- "Close (mark Done)" → rerun with `--action close --yes`
|
|
28
|
+
- "Cancel" → rerun with `--action cancel --yes`
|
|
29
|
+
- "Skip" → don't run
|
|
30
|
+
|
|
31
|
+
4. **Apply** with `--yes` after confirmation.
|
|
32
|
+
|
|
33
|
+
## Defaults
|
|
34
|
+
|
|
35
|
+
- `--states "Todo,Backlog"` — only unstarted work, never disturbs `In Progress`
|
|
36
|
+
- `--inactive-days 30`
|
|
37
|
+
- `--action comment` — least destructive; the user must explicitly pick `close` or `cancel`
|
|
38
|
+
|
|
39
|
+
The action `close` resolves the team's `completed`-type state by TYPE, not name, so it works across teams whose state names differ. Same for `cancel` → `canceled`.
|
|
40
|
+
|
|
41
|
+
## Don't
|
|
42
|
+
|
|
43
|
+
- Don't run with `--yes` on the first invocation
|
|
44
|
+
- Don't close work that's `In Progress` unless the user explicitly says so (add `--states "In Progress"`)
|
|
45
|
+
- Don't override the default comment without a reason — the default mentions days inactive
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear-curator-run
|
|
3
|
+
description: Run the curator — collect signals from configured signal sources and report
|
|
4
|
+
allowed-tools: Bash, Read
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Linear Curator (collect + report)
|
|
8
|
+
|
|
9
|
+
Collect signals from the signal sources configured in `references/signal-sources.json`. This is the diagnostic half of the curator — it tells you what each source is seeing. The rule engine (which turns signals into proposed issue mutations) ships in a follow-up release.
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
All configured sources:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
elnora-linear curator-run --output text
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
A specific source by name:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
elnora-linear curator-run --source "vanta-failing-tests"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What it reports
|
|
26
|
+
|
|
27
|
+
For each enabled source:
|
|
28
|
+
- `[ok] <name> (<type>): N signal(s)` plus the first 10 payloads
|
|
29
|
+
- `[!!] <name> (<type>) — error: <message>` if the source failed (the others keep running)
|
|
30
|
+
|
|
31
|
+
## Supported source types
|
|
32
|
+
|
|
33
|
+
- `external_command` — runs any shell command, parses stdout as JSON or lines
|
|
34
|
+
- `github_commits`, `github_pr`, `slack_messages`, `linear_issues`, `mcp_tool` — declared in the schema; not yet implemented (they'll surface as errors)
|
|
35
|
+
|
|
36
|
+
## Don't
|
|
37
|
+
|
|
38
|
+
- Don't expect mutations from this command — it's collect-only in v0
|
|
39
|
+
- Don't configure `external_command` sources that run untrusted scripts — the command runs with the user's full privileges
|