Skip to content

Commit 50c84f9

Browse files
authored
feat(composio): add Linear as a native memory provider (tinyhumansai#2452)
1 parent a6b19ce commit 50c84f9

10 files changed

Lines changed: 1034 additions & 92 deletions

File tree

src/openhuman/composio/providers/catalogs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ pub use super::catalogs_messaging::{
2727
DISCORD_CURATED, MICROSOFT_TEAMS_CURATED, SLACK_CURATED, TELEGRAM_CURATED, WHATSAPP_CURATED,
2828
};
2929
pub use super::catalogs_productivity::{
30-
ASANA_CURATED, DROPBOX_CURATED, JIRA_CURATED, LINEAR_CURATED, OUTLOOK_CURATED, TRELLO_CURATED,
30+
ASANA_CURATED, DROPBOX_CURATED, JIRA_CURATED, OUTLOOK_CURATED, TRELLO_CURATED,
3131
};
3232
pub use super::catalogs_social_media::{SPOTIFY_CURATED, TWITTER_CURATED, YOUTUBE_CURATED};

src/openhuman/composio/providers/catalogs_productivity.rs

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -99,94 +99,6 @@ pub const OUTLOOK_CURATED: &[CuratedTool] = &[
9999
},
100100
];
101101

102-
// ── linear ──────────────────────────────────────────────────────────
103-
pub const LINEAR_CURATED: &[CuratedTool] = &[
104-
CuratedTool {
105-
slug: "LINEAR_LIST_LINEAR_ISSUES",
106-
scope: ToolScope::Read,
107-
},
108-
CuratedTool {
109-
slug: "LINEAR_GET_LINEAR_ISSUE",
110-
scope: ToolScope::Read,
111-
},
112-
CuratedTool {
113-
slug: "LINEAR_LIST_LINEAR_TEAMS",
114-
scope: ToolScope::Read,
115-
},
116-
CuratedTool {
117-
slug: "LINEAR_LIST_LINEAR_PROJECTS",
118-
scope: ToolScope::Read,
119-
},
120-
CuratedTool {
121-
slug: "LINEAR_LIST_LINEAR_STATES",
122-
scope: ToolScope::Read,
123-
},
124-
CuratedTool {
125-
slug: "LINEAR_SEARCH_ISSUES",
126-
scope: ToolScope::Read,
127-
},
128-
CuratedTool {
129-
slug: "LINEAR_GET_CYCLES_BY_TEAM_ID",
130-
scope: ToolScope::Read,
131-
},
132-
CuratedTool {
133-
slug: "LINEAR_LIST_LINEAR_USERS",
134-
scope: ToolScope::Read,
135-
},
136-
CuratedTool {
137-
slug: "LINEAR_LIST_LINEAR_LABELS",
138-
scope: ToolScope::Read,
139-
},
140-
CuratedTool {
141-
slug: "LINEAR_GET_LINEAR_PROJECT",
142-
scope: ToolScope::Read,
143-
},
144-
CuratedTool {
145-
slug: "LINEAR_CREATE_LINEAR_ISSUE",
146-
scope: ToolScope::Write,
147-
},
148-
CuratedTool {
149-
slug: "LINEAR_UPDATE_ISSUE",
150-
scope: ToolScope::Write,
151-
},
152-
CuratedTool {
153-
slug: "LINEAR_CREATE_LINEAR_COMMENT",
154-
scope: ToolScope::Write,
155-
},
156-
CuratedTool {
157-
slug: "LINEAR_CREATE_ATTACHMENT",
158-
scope: ToolScope::Write,
159-
},
160-
CuratedTool {
161-
slug: "LINEAR_CREATE_LINEAR_PROJECT",
162-
scope: ToolScope::Write,
163-
},
164-
CuratedTool {
165-
slug: "LINEAR_CREATE_LINEAR_LABEL",
166-
scope: ToolScope::Write,
167-
},
168-
CuratedTool {
169-
slug: "LINEAR_UPDATE_LINEAR_COMMENT",
170-
scope: ToolScope::Write,
171-
},
172-
CuratedTool {
173-
slug: "LINEAR_CREATE_ISSUE_RELATION",
174-
scope: ToolScope::Write,
175-
},
176-
CuratedTool {
177-
slug: "LINEAR_UPDATE_LINEAR_PROJECT",
178-
scope: ToolScope::Write,
179-
},
180-
CuratedTool {
181-
slug: "LINEAR_DELETE_LINEAR_ISSUE",
182-
scope: ToolScope::Admin,
183-
},
184-
CuratedTool {
185-
slug: "LINEAR_REMOVE_ISSUE_LABEL",
186-
scope: ToolScope::Admin,
187-
},
188-
];
189-
190102
// ── jira ────────────────────────────────────────────────────────────
191103
pub const JIRA_CURATED: &[CuratedTool] = &[
192104
CuratedTool {

src/openhuman/composio/providers/descriptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn toolkit_description(slug: &str) -> &'static str {
2020
"google_sheets" => "Read, write, and manage Google Sheets spreadsheets",
2121
"outlook" => "Send, read, and manage emails in Microsoft Outlook",
2222
"microsoft_teams" => "Send messages and manage channels in Microsoft Teams",
23-
"linear" => "Create and manage issues, projects, and cycles in Linear",
23+
"linear" => "Create and manage issues, projects, and cycles in Linear; sync assigned issues into Memory Tree",
2424
"jira" => "Create and manage issues, projects, and sprints in Jira",
2525
"trello" => "Create and manage cards, lists, and boards in Trello",
2626
"asana" => "Create and manage tasks, projects, and sections in Asana",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//! Linear Composio provider — incremental Memory Tree ingest for
2+
//! issues assigned to the connected user.
3+
//!
4+
//! Issue: #2400.
5+
6+
mod provider;
7+
mod sync;
8+
#[cfg(test)]
9+
mod tests;
10+
pub mod tools;
11+
12+
pub use provider::LinearProvider;
13+
pub use tools::LINEAR_CURATED;

0 commit comments

Comments
 (0)