@elizaos/plugin-linear 2.0.0-beta.1 → 2.0.11-beta.7

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shaw Walters and elizaOS Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,83 +1,123 @@
1
- # @elizaos/plugin-linear-ts
1
+ # @elizaos/plugin-linear
2
2
 
3
- TypeScript implementation of the Linear integration plugin for ElizaOS.
3
+ Linear issue-tracking integration for [elizaOS](https://github.com/elizaos/eliza). Gives Eliza agents full CRUD control over Linear issues, comments, teams, and projects through natural-language commands.
4
4
 
5
- ## Features
5
+ ## What it does
6
6
 
7
- - **Issue Management**: Create, read, update, delete, and search issues
8
- - **Comment Management**: Add comments to issues
9
- - **Team Operations**: List and filter teams
10
- - **Project Management**: List and filter projects
11
- - **Activity Tracking**: Track and view Linear operations
12
- - **Natural Language Understanding**: LLM-powered parsing of user requests
7
+ - Create, read, update, archive, and search Linear issues
8
+ - Add, update, delete, and list comments on issues
9
+ - Browse teams and active projects as agent context
10
+ - Track an in-memory activity log of all Linear operations the agent performs
11
+ - Register as a named search category (`linear_issues`) for structured issue queries
12
+ - Support both API-key and OAuth workspace authentication
13
+ - Multi-account configuration — manage multiple Linear workspaces from one agent
14
+
15
+ ## Requirements
16
+
17
+ - Node.js runtime (ESM)
18
+ - A Linear API key from [linear.app/settings/api](https://linear.app/settings/api)
13
19
 
14
20
  ## Installation
15
21
 
16
22
  ```bash
17
- npm install @elizaos/plugin-linear-ts
18
- # or
19
- bun add @elizaos/plugin-linear-ts
23
+ bun add @elizaos/plugin-linear
20
24
  ```
21
25
 
22
26
  ## Configuration
23
27
 
24
- Set these environment variables:
28
+ ### Minimal (single workspace, API key)
25
29
 
26
30
  ```env
27
- LINEAR_API_KEY=your_api_key # Required
28
- LINEAR_WORKSPACE_ID=your_workspace # Optional
29
- LINEAR_DEFAULT_TEAM_KEY=ENG # Optional
31
+ LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxxxxxxxx
32
+ ```
33
+
34
+ ### Full options
35
+
36
+ ```env
37
+ # Required
38
+ LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxxxxxxxx
39
+
40
+ # Optional
41
+ LINEAR_WORKSPACE_ID=your_workspace_id
42
+ LINEAR_DEFAULT_TEAM_KEY=ENG # default team key for new issues
43
+ LINEAR_ACCOUNT_ID=default # label for this account in multi-account setups
44
+
45
+ # Multi-account (JSON array or object keyed by account ID)
46
+ LINEAR_ACCOUNTS=[{"accountId":"work","apiKey":"lin_api_...","defaultTeamKey":"ENG"},{"accountId":"oss","apiKey":"lin_api_..."}]
47
+
48
+ # OAuth (only needed if using OAuth flow instead of API keys)
49
+ LINEAR_OAUTH_CLIENT_ID=your_client_id
50
+ LINEAR_OAUTH_CLIENT_SECRET=your_client_secret
51
+ LINEAR_OAUTH_REDIRECT_URI=https://your-app/oauth/linear/callback
30
52
  ```
31
53
 
32
- ## Usage
54
+ Character-file alternative — set `character.settings.linear.accounts` to an array or object of account configs with the same fields.
55
+
56
+ ## Enabling the plugin
57
+
58
+ Add it to your agent's plugin list:
33
59
 
34
60
  ```typescript
35
- import { linearPlugin } from "@elizaos/plugin-linear-ts";
61
+ import { linearPlugin } from "@elizaos/plugin-linear";
36
62
 
37
- // Register with your ElizaOS agent
38
- agent.registerPlugin(linearPlugin);
63
+ const agent = new AgentRuntime({
64
+ plugins: [linearPlugin],
65
+ // ...
66
+ });
39
67
  ```
40
68
 
41
- ## Actions
69
+ The plugin validates the Linear API key on startup and will throw `LinearAuthenticationError` if none is found or the key is invalid.
42
70
 
43
- | Action | Description |
44
- | ----------------------- | ------------------------- |
45
- | `CREATE_LINEAR_ISSUE` | Create a new issue |
46
- | `GET_LINEAR_ISSUE` | Get issue details |
47
- | `UPDATE_LINEAR_ISSUE` | Update an existing issue |
48
- | `DELETE_LINEAR_ISSUE` | Archive an issue |
49
- | `SEARCH_LINEAR_ISSUES` | Search for issues |
50
- | `CREATE_LINEAR_COMMENT` | Add a comment to an issue |
51
- | `LIST_LINEAR_TEAMS` | List teams |
52
- | `LIST_LINEAR_PROJECTS` | List projects |
53
- | `GET_LINEAR_ACTIVITY` | View activity log |
54
- | `CLEAR_LINEAR_ACTIVITY` | Clear activity log |
71
+ ## Capabilities
55
72
 
56
- ## Providers
73
+ ### Actions
57
74
 
58
- | Provider | Description |
59
- | ----------------- | ----------------------------- |
60
- | `LINEAR_ISSUES` | Context about recent issues |
61
- | `LINEAR_TEAMS` | Context about teams |
62
- | `LINEAR_PROJECTS` | Context about projects |
63
- | `LINEAR_ACTIVITY` | Context about recent activity |
75
+ The plugin exposes a single `LINEAR` action that routes to 11 operations. The agent infers the operation from context, or you can pass `action` explicitly.
64
76
 
65
- ## Development
77
+ | Operation | What it does |
78
+ |-----------|-------------|
79
+ | `create_issue` | Create a new issue in a team |
80
+ | `get_issue` | Fetch issue details by identifier (e.g. `ENG-123`) |
81
+ | `update_issue` | Change title, description, priority, assignee, labels, state, estimate, or due date |
82
+ | `delete_issue` | Archive an issue |
83
+ | `search_issues` | Filter issues by query, state, assignee, label, project, team, or priority |
84
+ | `create_comment` | Add a comment to an issue |
85
+ | `update_comment` | Edit a comment |
86
+ | `delete_comment` | Remove a comment |
87
+ | `list_comments` | List comments on an issue |
88
+ | `get_activity` | View the agent's operation history log |
89
+ | `clear_activity` | Clear the activity log |
66
90
 
67
- ```bash
68
- # Build
69
- npm run build
91
+ Example triggers:
70
92
 
71
- # Test
72
- npm run test
93
+ - "Create a Linear issue for the login bug in team ENG"
94
+ - "What's the status of ENG-456?"
95
+ - "Comment on ENG-123 that QA can retest"
96
+ - "Search open high-priority bugs assigned to alice"
97
+ - "Update ENG-789 priority to urgent"
73
98
 
74
- # Watch mode
75
- npm run dev
76
- ```
99
+ ### Context providers
100
+
101
+ These inject Linear data into the agent's context window automatically when relevant. All require `ADMIN` role.
102
+
103
+ | Provider | Data injected |
104
+ |----------|--------------|
105
+ | `LINEAR_ISSUES` | Up to 10 recent issues with state and assignee |
106
+ | `LINEAR_TEAMS` | Up to 20 teams with key, name, description |
107
+ | `LINEAR_PROJECTS` | Up to 10 active projects with state and dates |
108
+ | `LINEAR_ACTIVITY` | Last 10 Linear operations the agent performed |
109
+
110
+ ### Search category
111
+
112
+ The plugin registers a `linear_issues` search category that accepts structured filters: `query`, `state`, `assignee`, `label`, `project`, `team`, `priority`, `limit`, `accountId`.
77
113
 
78
- ## License
114
+ ## Priority values
79
115
 
80
- MIT
116
+ Linear uses numeric priorities: `1` = Urgent, `2` = High, `3` = Normal, `4` = Low, `0` = No priority.
81
117
 
118
+ ## Notes
82
119
 
120
+ - "Delete issue" calls Linear's archive endpoint — Linear does not expose hard-delete via the public API.
121
+ - The activity log is in-memory and resets when the agent stops. Maximum 1000 entries.
122
+ - All four providers are gated to the `automation` and `connectors` contexts, so they appear only when those contexts are active.
83
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-linear",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.11-beta.7",
4
4
  "description": "Linear integration plugin for ElizaOS (TypeScript)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -9,10 +9,26 @@
9
9
  "exports": {
10
10
  "./package.json": "./package.json",
11
11
  ".": {
12
+ "eliza-source": {
13
+ "types": "./src/index.ts",
14
+ "import": "./src/index.ts",
15
+ "default": "./src/index.ts"
16
+ },
12
17
  "import": {
13
18
  "types": "./dist/index.d.ts",
14
19
  "default": "./dist/index.js"
15
20
  }
21
+ },
22
+ "./*.css": "./dist/*.css",
23
+ "./*": {
24
+ "types": "./dist/*.d.ts",
25
+ "eliza-source": {
26
+ "types": "./src/*.ts",
27
+ "import": "./src/*.ts",
28
+ "default": "./src/*.ts"
29
+ },
30
+ "import": "./dist/*.js",
31
+ "default": "./dist/*.js"
16
32
  }
17
33
  },
18
34
  "files": [
@@ -32,7 +48,7 @@
32
48
  "lint:check": "bunx @biomejs/biome check .",
33
49
  "build": "bun run build.ts",
34
50
  "build:ts": "bun run build.ts",
35
- "typecheck": "tsc --noEmit"
51
+ "typecheck": "tsgo --noEmit"
36
52
  },
37
53
  "repository": {
38
54
  "type": "git",
@@ -53,8 +69,8 @@
53
69
  },
54
70
  "homepage": "https://github.com/elizaos/eliza#readme",
55
71
  "dependencies": {
56
- "@elizaos/core": "2.0.0-beta.1",
57
- "@linear/sdk": "^83.0.0"
72
+ "@elizaos/core": "2.0.11-beta.7",
73
+ "@linear/sdk": "^86.0.0"
58
74
  },
59
75
  "devDependencies": {
60
76
  "@biomejs/biome": "^2.4.14",
@@ -93,5 +109,6 @@
93
109
  "platformDetails": {
94
110
  "node": "ESM build available via exports.import"
95
111
  }
96
- }
112
+ },
113
+ "gitHead": "cdbc876f793d96073d7eb0d09715a031ce0cd32e"
97
114
  }