@elizaos/plugin-linear 2.0.3-beta.5 → 2.0.3-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.
Files changed (63) hide show
  1. package/dist/accounts.d.ts +18 -0
  2. package/dist/accounts.d.ts.map +1 -0
  3. package/dist/actions/account-options.d.ts +12 -0
  4. package/dist/actions/account-options.d.ts.map +1 -0
  5. package/dist/actions/clearActivity.d.ts +3 -0
  6. package/dist/actions/clearActivity.d.ts.map +1 -0
  7. package/dist/actions/createComment.d.ts +3 -0
  8. package/dist/actions/createComment.d.ts.map +1 -0
  9. package/dist/actions/createIssue.d.ts +3 -0
  10. package/dist/actions/createIssue.d.ts.map +1 -0
  11. package/dist/actions/deleteComment.d.ts +3 -0
  12. package/dist/actions/deleteComment.d.ts.map +1 -0
  13. package/dist/actions/deleteIssue.d.ts +3 -0
  14. package/dist/actions/deleteIssue.d.ts.map +1 -0
  15. package/dist/actions/getActivity.d.ts +3 -0
  16. package/dist/actions/getActivity.d.ts.map +1 -0
  17. package/dist/actions/getIssue.d.ts +3 -0
  18. package/dist/actions/getIssue.d.ts.map +1 -0
  19. package/dist/actions/index.d.ts +9 -0
  20. package/dist/actions/index.d.ts.map +1 -0
  21. package/dist/actions/linear.d.ts +4 -0
  22. package/dist/actions/linear.d.ts.map +1 -0
  23. package/dist/actions/listComments.d.ts +3 -0
  24. package/dist/actions/listComments.d.ts.map +1 -0
  25. package/dist/actions/message-source.d.ts +4 -0
  26. package/dist/actions/message-source.d.ts.map +1 -0
  27. package/dist/actions/parseLinearPrompt.d.ts +8 -0
  28. package/dist/actions/parseLinearPrompt.d.ts.map +1 -0
  29. package/dist/actions/routers.d.ts +154 -0
  30. package/dist/actions/routers.d.ts.map +1 -0
  31. package/dist/actions/searchIssues.d.ts +3 -0
  32. package/dist/actions/searchIssues.d.ts.map +1 -0
  33. package/dist/actions/updateComment.d.ts +3 -0
  34. package/dist/actions/updateComment.d.ts.map +1 -0
  35. package/dist/actions/updateIssue.d.ts +4 -0
  36. package/dist/actions/updateIssue.d.ts.map +1 -0
  37. package/dist/actions/validate-linear-intent.d.ts +12 -0
  38. package/dist/actions/validate-linear-intent.d.ts.map +1 -0
  39. package/dist/connector-account-provider.d.ts +19 -0
  40. package/dist/connector-account-provider.d.ts.map +1 -0
  41. package/dist/index.d.ts +6 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/index.js +3692 -0
  44. package/dist/index.js.map +36 -0
  45. package/dist/prompts.d.ts +27 -0
  46. package/dist/prompts.d.ts.map +1 -0
  47. package/dist/providers/activity.d.ts +3 -0
  48. package/dist/providers/activity.d.ts.map +1 -0
  49. package/dist/providers/index.d.ts +5 -0
  50. package/dist/providers/index.d.ts.map +1 -0
  51. package/dist/providers/issues.d.ts +3 -0
  52. package/dist/providers/issues.d.ts.map +1 -0
  53. package/dist/providers/projects.d.ts +3 -0
  54. package/dist/providers/projects.d.ts.map +1 -0
  55. package/dist/providers/teams.d.ts +3 -0
  56. package/dist/providers/teams.d.ts.map +1 -0
  57. package/dist/search-category.d.ts +4 -0
  58. package/dist/search-category.d.ts.map +1 -0
  59. package/dist/services/linear.d.ts +41 -0
  60. package/dist/services/linear.d.ts.map +1 -0
  61. package/dist/types/index.d.ts +96 -0
  62. package/dist/types/index.d.ts.map +1 -0
  63. package/package.json +3 -3
@@ -0,0 +1,18 @@
1
+ import type { IAgentRuntime } from "@elizaos/core";
2
+ export declare const DEFAULT_LINEAR_ACCOUNT_ID = "default";
3
+ export declare const DEFAULT_LINEAR_ACCOUNT_ROLE = "OWNER";
4
+ export interface LinearAccountConfig {
5
+ accountId: string;
6
+ role: typeof DEFAULT_LINEAR_ACCOUNT_ROLE;
7
+ apiKey: string;
8
+ workspaceId?: string;
9
+ defaultTeamKey?: string;
10
+ label?: string;
11
+ }
12
+ export declare function normalizeLinearAccountId(value: unknown): string;
13
+ export declare function resolveLinearAccountId(runtime: IAgentRuntime, options?: Record<string, unknown>): string;
14
+ export declare function readLinearAccounts(runtime: IAgentRuntime): LinearAccountConfig[];
15
+ export declare function resolveLinearAccount(accounts: readonly LinearAccountConfig[], accountId: string): LinearAccountConfig | null;
16
+ export declare function resolveLinearDefaultAccount(accounts: readonly LinearAccountConfig[], accountId?: string): LinearAccountConfig | null;
17
+ export declare function hasLinearAccountConfig(runtime: IAgentRuntime, options?: Record<string, unknown>): boolean;
18
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,2BAA2B,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAYD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE/D;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,MAAM,CASR;AA8ED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,mBAAmB,EAAE,CA4ChF;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,SAAS,EAAE,MAAM,GAChB,mBAAmB,GAAG,IAAI,CAE5B;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,SAAS,CAAC,EAAE,MAAM,GACjB,mBAAmB,GAAG,IAAI,CAS5B;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAGT"}
@@ -0,0 +1,12 @@
1
+ import type { HandlerOptions, IAgentRuntime } from "@elizaos/core";
2
+ export declare function getLinearActionOptions(options?: HandlerOptions | Record<string, unknown>): Record<string, unknown>;
3
+ export declare function getLinearAccountId(runtime: IAgentRuntime, options?: HandlerOptions | Record<string, unknown>): string;
4
+ export declare const linearAccountIdParameter: {
5
+ name: string;
6
+ description: string;
7
+ required: boolean;
8
+ schema: {
9
+ type: "string";
10
+ };
11
+ };
12
+ //# sourceMappingURL=account-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-options.d.ts","sourceRoot":"","sources":["../../src/actions/account-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnE,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOzB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjD,MAAM,CAER;AAED,eAAO,MAAM,wBAAwB;;;;;;;CAMpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const clearActivityAction: Action;
3
+ //# sourceMappingURL=clearActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clearActivity.d.ts","sourceRoot":"","sources":["../../src/actions/clearActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAQvB,eAAO,MAAM,mBAAmB,EAAE,MA4HjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const createCommentAction: Action;
3
+ //# sourceMappingURL=createComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../src/actions/createComment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AASvB,eAAO,MAAM,mBAAmB,EAAE,MAuSjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const createIssueAction: Action;
3
+ //# sourceMappingURL=createIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createIssue.d.ts","sourceRoot":"","sources":["../../src/actions/createIssue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAcvB,eAAO,MAAM,iBAAiB,EAAE,MAyR/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const deleteCommentAction: Action;
3
+ //# sourceMappingURL=deleteComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../src/actions/deleteComment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAOvB,eAAO,MAAM,mBAAmB,EAAE,MAgFjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const deleteIssueAction: Action;
3
+ //# sourceMappingURL=deleteIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteIssue.d.ts","sourceRoot":"","sources":["../../src/actions/deleteIssue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAUZ,MAAM,eAAe,CAAC;AAYvB,eAAO,MAAM,iBAAiB,EAAE,MAkO/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const getActivityAction: Action;
3
+ //# sourceMappingURL=getActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActivity.d.ts","sourceRoot":"","sources":["../../src/actions/getActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAkCvB,eAAO,MAAM,iBAAiB,EAAE,MA8R/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const getIssueAction: Action;
3
+ //# sourceMappingURL=getIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIssue.d.ts","sourceRoot":"","sources":["../../src/actions/getIssue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAcvB,eAAO,MAAM,cAAc,EAAE,MA+R5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from "./clearActivity";
2
+ export * from "./createComment";
3
+ export * from "./createIssue";
4
+ export * from "./deleteIssue";
5
+ export * from "./getActivity";
6
+ export * from "./getIssue";
7
+ export * from "./routers";
8
+ export * from "./searchIssues";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const LINEAR_CONTEXT = "linear";
3
+ export declare const linearAction: Action;
4
+ //# sourceMappingURL=linear.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.d.ts","sourceRoot":"","sources":["../../src/actions/linear.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAgBvB,eAAO,MAAM,cAAc,WAAW,CAAC;AAmJvC,eAAO,MAAM,YAAY,EAAE,MAsH1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const listCommentsAction: Action;
3
+ //# sourceMappingURL=listComments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listComments.d.ts","sourceRoot":"","sources":["../../src/actions/listComments.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAOvB,eAAO,MAAM,kBAAkB,EAAE,MA0FhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Memory } from "@elizaos/core";
2
+ export declare function getMessageSource(message: Memory): string | undefined;
3
+ export declare function formatUnknownError(error: unknown): string;
4
+ //# sourceMappingURL=message-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../src/actions/message-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQzD"}
@@ -0,0 +1,8 @@
1
+ export declare function parseLinearPromptResponse(response: string): Record<string, unknown>;
2
+ export declare function getRecordValue(value: unknown): Record<string, unknown> | undefined;
3
+ export declare function getStringValue(value: unknown): string | undefined;
4
+ export declare function getStringArrayValue(value: unknown): string[] | undefined;
5
+ export declare function getBooleanValue(value: unknown): boolean | undefined;
6
+ export declare function getNumberValue(value: unknown): number | undefined;
7
+ export declare function getPriorityNumberValue(value: unknown): number | undefined;
8
+ //# sourceMappingURL=parseLinearPrompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseLinearPrompt.d.ts","sourceRoot":"","sources":["../../src/actions/parseLinearPrompt.ts"],"names":[],"mappings":"AAgCA,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAanF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAWlF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAWjE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAwBxE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAgBnE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAgBjE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAoBzE"}
@@ -0,0 +1,154 @@
1
+ import type { Action, HandlerOptions, Memory, ProviderValue } from "@elizaos/core";
2
+ export declare const LINEAR_ISSUE_CONTEXT = "linear_issue";
3
+ export declare const LINEAR_COMMENT_CONTEXT = "linear_comment";
4
+ export declare const LINEAR_WORKFLOW_CONTEXT = "linear_workflow";
5
+ /**
6
+ * Common envelope every Linear router result carries. `actionName` and
7
+ * `router` identify the public router action that produced the result,
8
+ * `routedActionName` names the child action that handled the request, and
9
+ * `op`/`subaction` are the resolved verb (or `null` when no route matched).
10
+ * `result` carries child action data on success and `error` carries structured
11
+ * failure details. The index signature is required so the result is assignable
12
+ * to `ProviderDataRecord`.
13
+ */
14
+ interface LinearRouterEnvelope {
15
+ router: string;
16
+ routedActionName: string | null;
17
+ op: string | null;
18
+ subaction: string | null;
19
+ result?: ProviderValue;
20
+ error?: ProviderValue;
21
+ /** List of valid subactions, populated only on missing-subaction errors. */
22
+ availableSubactions?: string;
23
+ [key: string]: ProviderValue;
24
+ }
25
+ interface LinearIssueSummary {
26
+ id: string;
27
+ identifier: string;
28
+ title: string;
29
+ }
30
+ /**
31
+ * `LINEAR_ISSUE` router result. Fields below are the union of what
32
+ * createIssue/getIssue/updateIssue/deleteIssue place in `data`. Each is
33
+ * optional because only the routed child populates its subset.
34
+ */
35
+ export interface LinearIssueRouterResultData extends LinearRouterEnvelope {
36
+ actionName: "LINEAR_ISSUE";
37
+ /** createIssue, updateIssue, deleteIssue (also prompt branches). */
38
+ issueId?: string;
39
+ /** createIssue, updateIssue, deleteIssue. */
40
+ identifier?: string;
41
+ /** createIssue, updateIssue. */
42
+ url?: string;
43
+ /** updateIssue: snapshot of fields that were changed. */
44
+ updates?: Record<string, ProviderValue>;
45
+ /** deleteIssue. */
46
+ title?: string;
47
+ archived?: boolean;
48
+ /** deleteIssue (pending confirmation) and any future awaiting branches. */
49
+ awaitingUserInput?: boolean;
50
+ /** deleteIssue (user declined). */
51
+ cancelled?: boolean;
52
+ /** getIssue (single hit): full serialized issue details. */
53
+ issue?: Record<string, ProviderValue>;
54
+ /** getIssue (multi-result clarify branch). */
55
+ multipleResults?: boolean;
56
+ /** getIssue clarify branch: shortlist for the user to disambiguate. */
57
+ issues?: LinearIssueSummary[];
58
+ }
59
+ /**
60
+ * `LINEAR_COMMENT` router result. Sourced from createComment.
61
+ */
62
+ export interface LinearCommentRouterResultData extends LinearRouterEnvelope {
63
+ actionName: "LINEAR_COMMENT";
64
+ /** createComment success. */
65
+ commentId?: string;
66
+ issueId?: string;
67
+ issueIdentifier?: string;
68
+ commentBody?: string;
69
+ createdAt?: string;
70
+ /** createComment clarify branch when multiple issues match. */
71
+ multipleMatches?: boolean;
72
+ issues?: LinearIssueSummary[];
73
+ /** Comment text held while clarifying which issue to attach it to. */
74
+ pendingComment?: string;
75
+ }
76
+ interface LinearActivityItem {
77
+ id: string;
78
+ action: string;
79
+ resource_type: string;
80
+ resource_id: string;
81
+ success: boolean;
82
+ error?: string;
83
+ details: ProviderValue;
84
+ timestamp: string;
85
+ }
86
+ interface LinearSearchIssue {
87
+ id: string;
88
+ identifier: string;
89
+ title: string;
90
+ url: string;
91
+ priority: number | null;
92
+ state: {
93
+ name: string;
94
+ type: string;
95
+ } | null;
96
+ assignee: {
97
+ name: string;
98
+ email: string;
99
+ } | null;
100
+ team: {
101
+ name: string;
102
+ key: string;
103
+ } | null;
104
+ createdAt: string | Date;
105
+ updatedAt: string | Date;
106
+ }
107
+ /**
108
+ * `LINEAR_WORKFLOW` router result. Sourced from
109
+ * getActivity/clearActivity/searchIssues.
110
+ */
111
+ export interface LinearWorkflowRouterResultData extends LinearRouterEnvelope {
112
+ actionName: "LINEAR_WORKFLOW";
113
+ /** getActivity. */
114
+ activity?: LinearActivityItem[];
115
+ /** getActivity, searchIssues. */
116
+ filters?: Record<string, ProviderValue>;
117
+ count?: number;
118
+ /** searchIssues. */
119
+ issues?: LinearSearchIssue[];
120
+ /** clearActivity (pending confirmation). */
121
+ awaitingUserInput?: boolean;
122
+ /** clearActivity (user declined). */
123
+ cancelled?: boolean;
124
+ }
125
+ type RouterAction = Action & {
126
+ actionGroup?: {
127
+ contexts?: string[];
128
+ };
129
+ };
130
+ export declare function getLinearRouteForTest(group: "issue" | "comment" | "workflow", message: Memory, options?: HandlerOptions | Record<string, unknown>): string | null;
131
+ /**
132
+ * Routes natural-language issue intents to CREATE/GET/UPDATE/DELETE Linear
133
+ * issue actions. `data` is `LinearIssueRouterResultData`: always carries
134
+ * `actionName: "LINEAR_ISSUE"`, `routedActionName`, and `subaction`. Result
135
+ * fields like `issueId`, `identifier`, and `url` are populated by the routed
136
+ * child; absent fields just mean that child didn't supply them.
137
+ */
138
+ export declare const linearIssueRouterAction: RouterAction;
139
+ /**
140
+ * Routes Linear comment intents to the comment child actions. `data` is
141
+ * `LinearCommentRouterResultData` with the standard envelope plus
142
+ * `commentId`, `issueId`, `issueIdentifier`, `commentBody`, and `createdAt`
143
+ * on success, or a `multipleMatches`/`pendingComment` clarify branch.
144
+ */
145
+ export declare const linearCommentRouterAction: RouterAction;
146
+ /**
147
+ * Routes Linear workflow intents to getActivity/clearActivity/searchIssues.
148
+ * `data` is `LinearWorkflowRouterResultData`: standard envelope plus
149
+ * `activity`/`filters`/`count` (activity), `issues`/`filters`/`count`
150
+ * (search), or `awaitingUserInput`/`cancelled` (clearActivity).
151
+ */
152
+ export declare const linearWorkflowRouterAction: RouterAction;
153
+ export {};
154
+ //# sourceMappingURL=routers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routers.d.ts","sourceRoot":"","sources":["../../src/actions/routers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAGN,cAAc,EAEd,MAAM,EACN,aAAa,EAEd,MAAM,eAAe,CAAC;AAavB,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAEzD;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,4EAA4E;IAC5E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAC9B;AAED,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,oBAAoB;IACvE,U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AAM,EAAE,CAAC;KACrB,CAAC;CACH,CAAC;AAkNF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,EACvC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjD,MAAM,GAAG,IAAI,CAIf;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,YA4CrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,YA4CvC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,YA4CxC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type Action } from "@elizaos/core";
2
+ export declare const searchIssuesAction: Action;
3
+ //# sourceMappingURL=searchIssues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchIssues.d.ts","sourceRoot":"","sources":["../../src/actions/searchIssues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAiBvB,eAAO,MAAM,kBAAkB,EAAE,MAsThC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ActionResult, type HandlerCallback, type HandlerOptions, type IAgentRuntime, type Memory, type State } from "@elizaos/core";
2
+ export declare function handleUpdateComment(runtime: IAgentRuntime, message: Memory, _state?: State, _options?: HandlerOptions, callback?: HandlerCallback): Promise<ActionResult>;
3
+ //# sourceMappingURL=updateComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateComment.d.ts","sourceRoot":"","sources":["../../src/actions/updateComment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,MAAM,EACX,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAMvB,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,KAAK,EACd,QAAQ,CAAC,EAAE,cAAc,EACzB,QAAQ,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAiCvB"}
@@ -0,0 +1,4 @@
1
+ import { type Action, type ActionResult, type HandlerCallback, type HandlerOptions, type IAgentRuntime, type Memory, type State } from "@elizaos/core";
2
+ export declare function handleUpdateIssue(runtime: IAgentRuntime, message: Memory, _state?: State, _options?: HandlerOptions, callback?: HandlerCallback): Promise<ActionResult>;
3
+ export declare const updateIssueAction: Action;
4
+ //# sourceMappingURL=updateIssue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateIssue.d.ts","sourceRoot":"","sources":["../../src/actions/updateIssue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,MAAM,EAEX,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAkBvB,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,KAAK,EACd,QAAQ,CAAC,EAAE,cAAc,EACzB,QAAQ,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAuPvB;AAED,eAAO,MAAM,iBAAiB,EAAE,MA2C/B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { IAgentRuntime, Memory, State } from "@elizaos/core";
2
+ export interface LinearIntentValidationSpec {
3
+ readonly keywords: readonly string[];
4
+ /** Alternation body only, e.g. `clear|linear|activity` for `/\b(?:…)\b/i`. */
5
+ readonly regexAlternation: string;
6
+ }
7
+ /**
8
+ * Shared action validator: hard availability only. Intent/keyword routing is
9
+ * handled by action retrieval, while this confirms Linear is configured.
10
+ */
11
+ export declare function validateLinearActionIntent(runtime: IAgentRuntime, _message: Memory, _state: State | undefined, _spec: LinearIntentValidationSpec): Promise<boolean>;
12
+ //# sourceMappingURL=validate-linear-intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-linear-intent.d.ts","sourceRoot":"","sources":["../../src/actions/validate-linear-intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGlE,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,8EAA8E;IAC9E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,KAAK,GAAG,SAAS,EACzB,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,OAAO,CAAC,CAMlB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Linear ConnectorAccountManager provider.
3
+ *
4
+ * Bridges plugin-linear to the @elizaos/core ConnectorAccountManager so the
5
+ * generic HTTP CRUD + OAuth surface can list, create, patch, delete, and run
6
+ * the OAuth flow for Linear workspaces.
7
+ *
8
+ * Account model:
9
+ * - role "OWNER" — workspace admin (workspace API key or OAuth)
10
+ * - accountKey — workspace id (or workspace handle if id unavailable)
11
+ * - purpose — ["admin"]
12
+ */
13
+ import { type ConnectorAccountProvider, type IAgentRuntime } from "@elizaos/core";
14
+ export declare const LINEAR_PROVIDER_NAME = "linear";
15
+ /**
16
+ * Build the Linear ConnectorAccountManager provider.
17
+ */
18
+ export declare function createLinearConnectorAccountProvider(runtime: IAgentRuntime): ConnectorAccountProvider;
19
+ //# sourceMappingURL=connector-account-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-account-provider.d.ts","sourceRoot":"","sources":["../src/connector-account-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAIL,KAAK,wBAAwB,EAM7B,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,oBAAoB,WAAW,CAAC;AA8I7C;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,aAAa,GACrB,wBAAwB,CA0I1B"}
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from "@elizaos/core";
2
+ export declare const linearPlugin: Plugin;
3
+ export * from "./accounts";
4
+ export { createLinearConnectorAccountProvider } from "./connector-account-provider";
5
+ export { LinearService } from "./services/linear";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAW3D,eAAO,MAAM,YAAY,EAAE,MA8B1B,CAAC;AAEF,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}