cyrus-core 0.2.1 → 0.2.3
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/dist/CyrusAgentSession.d.ts +4 -4
- package/dist/CyrusAgentSession.d.ts.map +1 -1
- package/dist/config-types.d.ts +3 -0
- package/dist/config-types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/issue-tracker/AgentEvent.d.ts +134 -0
- package/dist/issue-tracker/AgentEvent.d.ts.map +1 -0
- package/dist/issue-tracker/AgentEvent.js +109 -0
- package/dist/issue-tracker/AgentEvent.js.map +1 -0
- package/dist/issue-tracker/IAgentEventTransport.d.ts +146 -0
- package/dist/issue-tracker/IAgentEventTransport.d.ts.map +1 -0
- package/dist/issue-tracker/IAgentEventTransport.js +12 -0
- package/dist/issue-tracker/IAgentEventTransport.js.map +1 -0
- package/dist/issue-tracker/IIssueTrackerService.d.ts +692 -0
- package/dist/issue-tracker/IIssueTrackerService.d.ts.map +1 -0
- package/dist/issue-tracker/IIssueTrackerService.js +11 -0
- package/dist/issue-tracker/IIssueTrackerService.js.map +1 -0
- package/dist/issue-tracker/index.d.ts +59 -0
- package/dist/issue-tracker/index.d.ts.map +1 -0
- package/dist/issue-tracker/index.js +61 -0
- package/dist/issue-tracker/index.js.map +1 -0
- package/dist/issue-tracker/types.d.ts +499 -0
- package/dist/issue-tracker/types.d.ts.map +1 -0
- package/dist/issue-tracker/types.js +123 -0
- package/dist/issue-tracker/types.js.map +1 -0
- package/package.json +4 -3
- package/dist/webhook-types.d.ts +0 -259
- package/dist/webhook-types.d.ts.map +0 -1
- package/dist/webhook-types.js +0 -26
- package/dist/webhook-types.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic interface for issue tracking platform operations.
|
|
3
|
+
*
|
|
4
|
+
* This interface provides a unified API for interacting with issue tracking
|
|
5
|
+
* platforms like Linear, GitHub Issues, Jira, etc. It abstracts away platform-specific
|
|
6
|
+
* details while supporting all operations needed for Cyrus agent functionality.
|
|
7
|
+
*
|
|
8
|
+
* @module issue-tracker/IIssueTrackerService
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=IIssueTrackerService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIssueTrackerService.js","sourceRoot":"","sources":["../../src/issue-tracker/IIssueTrackerService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue Tracker Abstraction Layer
|
|
3
|
+
*
|
|
4
|
+
* This module provides a platform-agnostic interface for issue tracking operations.
|
|
5
|
+
* It decouples the Cyrus codebase from Linear-specific implementations, enabling
|
|
6
|
+
* support for multiple issue tracking platforms (Linear, GitHub, Jira, etc.).
|
|
7
|
+
*
|
|
8
|
+
* @module issue-tracker
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Basic usage:
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { IIssueTrackerService, Issue, Comment } from '@cyrus/core/issue-tracker';
|
|
14
|
+
*
|
|
15
|
+
* // Use the service interface (implementation provided elsewhere)
|
|
16
|
+
* async function processIssue(service: IIssueTrackerService, issueId: string) {
|
|
17
|
+
* const issue = await service.fetchIssue(issueId);
|
|
18
|
+
* const comments = await service.fetchComments(issue.id);
|
|
19
|
+
* // ... process the issue
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Working with webhook events:
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import {
|
|
27
|
+
* AgentEvent,
|
|
28
|
+
* isIssueAssignedEvent,
|
|
29
|
+
* isNewCommentEvent
|
|
30
|
+
* } from '@cyrus/core/issue-tracker';
|
|
31
|
+
*
|
|
32
|
+
* function handleWebhook(event: AgentEvent) {
|
|
33
|
+
* if (isIssueAssignedEvent(event)) {
|
|
34
|
+
* console.log('Issue assigned:', event.notification.issue.identifier);
|
|
35
|
+
* } else if (isNewCommentEvent(event)) {
|
|
36
|
+
* console.log('New comment:', event.notification.comment.body);
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export { IIssueTrackerService } from "./IIssueTrackerService.js";
|
|
42
|
+
export type { AgentEventTransportConfig, AgentEventTransportEvents, IAgentEventTransport, } from "./IAgentEventTransport.js";
|
|
43
|
+
export type { AgentActivityCreateInput, AgentActivityPayload, } from "./types.js";
|
|
44
|
+
export * from "./types.js";
|
|
45
|
+
export type { AgentEvent } from "./AgentEvent.js";
|
|
46
|
+
export { isAgentSessionCreatedEvent, isAgentSessionPromptedEvent, isCommentMentionEvent, isIssueAssignedEvent, isIssueUnassignedEvent, isNewCommentEvent, } from "./AgentEvent.js";
|
|
47
|
+
/**
|
|
48
|
+
* Version of the issue tracker abstraction layer.
|
|
49
|
+
*/
|
|
50
|
+
export declare const VERSION = "1.0.0";
|
|
51
|
+
/**
|
|
52
|
+
* Supported platform types.
|
|
53
|
+
*/
|
|
54
|
+
export declare const SUPPORTED_PLATFORMS: readonly ["linear"];
|
|
55
|
+
/**
|
|
56
|
+
* Type for supported platform identifiers.
|
|
57
|
+
*/
|
|
58
|
+
export type SupportedPlatform = (typeof SUPPORTED_PLATFORMS)[number];
|
|
59
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issue-tracker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAMH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAMjE,YAAY,EACX,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,2BAA2B,CAAC;AAOnC,YAAY,EACX,wBAAwB,EACxB,oBAAoB,GACpB,MAAM,YAAY,CAAC;AAEpB,cAAc,YAAY,CAAC;AAM3B,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACN,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AAczB;;GAEG;AACH,eAAO,MAAM,OAAO,UAAU,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,mBAAmB,qBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue Tracker Abstraction Layer
|
|
3
|
+
*
|
|
4
|
+
* This module provides a platform-agnostic interface for issue tracking operations.
|
|
5
|
+
* It decouples the Cyrus codebase from Linear-specific implementations, enabling
|
|
6
|
+
* support for multiple issue tracking platforms (Linear, GitHub, Jira, etc.).
|
|
7
|
+
*
|
|
8
|
+
* @module issue-tracker
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Basic usage:
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { IIssueTrackerService, Issue, Comment } from '@cyrus/core/issue-tracker';
|
|
14
|
+
*
|
|
15
|
+
* // Use the service interface (implementation provided elsewhere)
|
|
16
|
+
* async function processIssue(service: IIssueTrackerService, issueId: string) {
|
|
17
|
+
* const issue = await service.fetchIssue(issueId);
|
|
18
|
+
* const comments = await service.fetchComments(issue.id);
|
|
19
|
+
* // ... process the issue
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Working with webhook events:
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import {
|
|
27
|
+
* AgentEvent,
|
|
28
|
+
* isIssueAssignedEvent,
|
|
29
|
+
* isNewCommentEvent
|
|
30
|
+
* } from '@cyrus/core/issue-tracker';
|
|
31
|
+
*
|
|
32
|
+
* function handleWebhook(event: AgentEvent) {
|
|
33
|
+
* if (isIssueAssignedEvent(event)) {
|
|
34
|
+
* console.log('Issue assigned:', event.notification.issue.identifier);
|
|
35
|
+
* } else if (isNewCommentEvent(event)) {
|
|
36
|
+
* console.log('New comment:', event.notification.comment.body);
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
// Export all types and enums from types.ts
|
|
42
|
+
export * from "./types.js";
|
|
43
|
+
export { isAgentSessionCreatedEvent, isAgentSessionPromptedEvent, isCommentMentionEvent, isIssueAssignedEvent, isIssueUnassignedEvent, isNewCommentEvent, } from "./AgentEvent.js";
|
|
44
|
+
// ============================================================================
|
|
45
|
+
// ADAPTERS
|
|
46
|
+
// ============================================================================
|
|
47
|
+
// CLI adapters will be added in part 2 of CYPACK-388
|
|
48
|
+
// Linear adapters have been moved to cyrus-linear-event-transport package
|
|
49
|
+
// Import them directly from that package instead of from cyrus-core
|
|
50
|
+
// ============================================================================
|
|
51
|
+
// MODULE METADATA
|
|
52
|
+
// ============================================================================
|
|
53
|
+
/**
|
|
54
|
+
* Version of the issue tracker abstraction layer.
|
|
55
|
+
*/
|
|
56
|
+
export const VERSION = "1.0.0";
|
|
57
|
+
/**
|
|
58
|
+
* Supported platform types.
|
|
59
|
+
*/
|
|
60
|
+
export const SUPPORTED_PLATFORMS = ["linear"];
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/issue-tracker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AA2BH,2CAA2C;AAC3C,cAAc,YAAY,CAAC;AAO3B,OAAO,EACN,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,+EAA+E;AAC/E,WAAW;AACX,+EAA+E;AAE/E,qDAAqD;AACrD,0EAA0E;AAC1E,oEAAoE;AAEpE,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic types for issue tracking platforms.
|
|
3
|
+
*
|
|
4
|
+
* These types provide simplified interfaces that match Linear SDK GraphQL types structure.
|
|
5
|
+
* Linear SDK is the source of truth - these types are designed to be compatible subsets
|
|
6
|
+
* of Linear's types, omitting implementation-specific fields while maintaining core
|
|
7
|
+
* data structure compatibility.
|
|
8
|
+
*
|
|
9
|
+
* Following the pattern from AgentEvent.ts, we reference Linear SDK types via JSDoc
|
|
10
|
+
* and re-export Linear enums where they exist. This makes Linear the "source of truth"
|
|
11
|
+
* while keeping interfaces manageable.
|
|
12
|
+
*
|
|
13
|
+
* @module issue-tracker/types
|
|
14
|
+
* @see {@link https://linear.app/docs/graphql/api|Linear GraphQL API Documentation}
|
|
15
|
+
*/
|
|
16
|
+
import type * as LinearSDK from "@linear/sdk";
|
|
17
|
+
/**
|
|
18
|
+
* Issue type - Direct alias to Linear SDK's Issue type.
|
|
19
|
+
* Linear SDK is the source of truth for all issue tracking types.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link LinearSDK.Issue} - Linear's complete Issue type
|
|
22
|
+
*/
|
|
23
|
+
export type Issue = LinearSDK.Issue;
|
|
24
|
+
/**
|
|
25
|
+
* Comment type - Direct alias to Linear SDK's Comment type.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link LinearSDK.Comment} - Linear's complete Comment type
|
|
28
|
+
*/
|
|
29
|
+
export type Comment = LinearSDK.Comment;
|
|
30
|
+
/**
|
|
31
|
+
* Label type - Direct alias to Linear SDK's IssueLabel type.
|
|
32
|
+
*
|
|
33
|
+
* @see {@link LinearSDK.IssueLabel} - Linear's complete IssueLabel type
|
|
34
|
+
*/
|
|
35
|
+
export type Label = LinearSDK.IssueLabel;
|
|
36
|
+
/**
|
|
37
|
+
* Team type - Direct alias to Linear SDK's Team type.
|
|
38
|
+
*
|
|
39
|
+
* @see {@link LinearSDK.Team} - Linear's complete Team type
|
|
40
|
+
*/
|
|
41
|
+
export type Team = LinearSDK.Team;
|
|
42
|
+
/**
|
|
43
|
+
* User type - Direct alias to Linear SDK's User type.
|
|
44
|
+
*
|
|
45
|
+
* @see {@link LinearSDK.User} - Linear's complete User type
|
|
46
|
+
*/
|
|
47
|
+
export type User = LinearSDK.User;
|
|
48
|
+
/**
|
|
49
|
+
* WorkflowState type - Direct alias to Linear SDK's WorkflowState type.
|
|
50
|
+
*
|
|
51
|
+
* @see {@link LinearSDK.WorkflowState} - Linear's complete WorkflowState type
|
|
52
|
+
*/
|
|
53
|
+
export type WorkflowState = LinearSDK.WorkflowState;
|
|
54
|
+
/**
|
|
55
|
+
* Filter options for querying entities.
|
|
56
|
+
*/
|
|
57
|
+
export interface FilterOptions {
|
|
58
|
+
/** Filter by state type */
|
|
59
|
+
state?: {
|
|
60
|
+
type?: {
|
|
61
|
+
eq?: string;
|
|
62
|
+
neq?: string;
|
|
63
|
+
in?: string[];
|
|
64
|
+
nin?: string[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** Filter by archived status */
|
|
68
|
+
archivedAt?: {
|
|
69
|
+
null?: boolean;
|
|
70
|
+
};
|
|
71
|
+
/** Additional platform-specific filters */
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Pagination options for list operations.
|
|
76
|
+
*/
|
|
77
|
+
export interface PaginationOptions {
|
|
78
|
+
/** Number of items to fetch */
|
|
79
|
+
first?: number;
|
|
80
|
+
/** Cursor for pagination */
|
|
81
|
+
after?: string;
|
|
82
|
+
/** Cursor for reverse pagination */
|
|
83
|
+
before?: string;
|
|
84
|
+
/** Filter criteria */
|
|
85
|
+
filter?: FilterOptions;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Standard workflow state types across platforms.
|
|
89
|
+
*/
|
|
90
|
+
export declare enum WorkflowStateType {
|
|
91
|
+
Triage = "triage",
|
|
92
|
+
Backlog = "backlog",
|
|
93
|
+
Unstarted = "unstarted",
|
|
94
|
+
Started = "started",
|
|
95
|
+
Completed = "completed",
|
|
96
|
+
Canceled = "canceled"
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Issue priority levels (0 = no priority, 1 = urgent, 2 = high, 3 = normal, 4 = low).
|
|
100
|
+
*/
|
|
101
|
+
export declare enum IssuePriority {
|
|
102
|
+
NoPriority = 0,
|
|
103
|
+
Urgent = 1,
|
|
104
|
+
High = 2,
|
|
105
|
+
Normal = 3,
|
|
106
|
+
Low = 4
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Minimal issue representation for lightweight operations.
|
|
110
|
+
*/
|
|
111
|
+
export interface IssueMinimal {
|
|
112
|
+
/** Unique issue identifier */
|
|
113
|
+
id: string;
|
|
114
|
+
/** Human-readable identifier */
|
|
115
|
+
identifier: string;
|
|
116
|
+
/** Issue title */
|
|
117
|
+
title: string;
|
|
118
|
+
/** Issue URL */
|
|
119
|
+
url: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Issue with child issues included.
|
|
123
|
+
* Note: This extends Issue but overrides the children property from a method to an array.
|
|
124
|
+
*/
|
|
125
|
+
export interface IssueWithChildren extends Omit<Issue, "children"> {
|
|
126
|
+
/** Child/sub-issues */
|
|
127
|
+
children: Issue[];
|
|
128
|
+
/** Total count of children */
|
|
129
|
+
childCount: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Comment with attachments metadata.
|
|
133
|
+
*/
|
|
134
|
+
export interface CommentWithAttachments extends Comment {
|
|
135
|
+
/** Attachment information */
|
|
136
|
+
attachments?: Array<{
|
|
137
|
+
id: string;
|
|
138
|
+
url: string;
|
|
139
|
+
filename: string;
|
|
140
|
+
contentType?: string;
|
|
141
|
+
size?: number;
|
|
142
|
+
}>;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Agent session status enumeration.
|
|
146
|
+
*
|
|
147
|
+
* Re-exported from Linear SDK. Linear SDK is the source of truth.
|
|
148
|
+
* Note: Linear uses "awaitingInput" while we historically used "awaiting-input".
|
|
149
|
+
* We now use Linear's enum directly for consistency.
|
|
150
|
+
*
|
|
151
|
+
* @see {@link LinearSDK.AgentSessionStatus} - Linear's AgentSessionStatus enum
|
|
152
|
+
*/
|
|
153
|
+
import { AgentSessionStatus } from "@linear/sdk";
|
|
154
|
+
export { AgentSessionStatus };
|
|
155
|
+
export type { AgentSessionStatus as AgentSessionStatusEnum } from "@linear/sdk";
|
|
156
|
+
/**
|
|
157
|
+
* Agent session type/context enumeration.
|
|
158
|
+
*
|
|
159
|
+
* Re-exported from Linear SDK. Linear SDK is the source of truth.
|
|
160
|
+
*
|
|
161
|
+
* @see {@link LinearSDK.AgentSessionType} - Linear's AgentSessionType enum
|
|
162
|
+
*/
|
|
163
|
+
import { AgentSessionType } from "@linear/sdk";
|
|
164
|
+
export { AgentSessionType };
|
|
165
|
+
export type { AgentSessionType as AgentSessionTypeEnum } from "@linear/sdk";
|
|
166
|
+
/**
|
|
167
|
+
* Agent session webhook payload type.
|
|
168
|
+
* Used for webhook events and type-safe data structures (strict, non-optional fields).
|
|
169
|
+
*
|
|
170
|
+
* @see {@link LinearSDK.LinearDocument.AgentSession}
|
|
171
|
+
*/
|
|
172
|
+
export type AgentSession = LinearSDK.LinearDocument.AgentSession;
|
|
173
|
+
/**
|
|
174
|
+
* Agent session SDK runtime type.
|
|
175
|
+
* Used when working with Linear SDK API responses (has optional getters).
|
|
176
|
+
*
|
|
177
|
+
* @see {@link LinearSDK.AgentSession}
|
|
178
|
+
*/
|
|
179
|
+
export type AgentSessionSDK = LinearSDK.AgentSession;
|
|
180
|
+
/**
|
|
181
|
+
* Agent activity type enumeration.
|
|
182
|
+
*
|
|
183
|
+
* Re-exported from Linear SDK. Linear SDK is the source of truth.
|
|
184
|
+
* This is aliased as AgentActivityContentType for backward compatibility.
|
|
185
|
+
*
|
|
186
|
+
* @see {@link LinearSDK.AgentActivityType} - Linear's AgentActivityType enum
|
|
187
|
+
*/
|
|
188
|
+
import { AgentActivityType } from "@linear/sdk";
|
|
189
|
+
export { AgentActivityType };
|
|
190
|
+
export type { AgentActivityType as AgentActivityTypeEnum } from "@linear/sdk";
|
|
191
|
+
/**
|
|
192
|
+
* Legacy alias for AgentActivityType.
|
|
193
|
+
* @deprecated Use AgentActivityType instead
|
|
194
|
+
*/
|
|
195
|
+
export declare const AgentActivityContentType: typeof LinearSDK.LinearDocument.AgentActivityType;
|
|
196
|
+
export type AgentActivityContentType = AgentActivityType;
|
|
197
|
+
/**
|
|
198
|
+
* Agent activity content type.
|
|
199
|
+
* Used for both webhook events and SDK API responses (union type is the same for both).
|
|
200
|
+
*
|
|
201
|
+
* @see {@link LinearSDK.LinearDocument.AgentActivityContent}
|
|
202
|
+
*/
|
|
203
|
+
export type AgentActivityContent = LinearSDK.LinearDocument.AgentActivityContent;
|
|
204
|
+
/**
|
|
205
|
+
* Agent activity signal enumeration.
|
|
206
|
+
*
|
|
207
|
+
* Re-exported from Linear SDK. Linear SDK is the source of truth.
|
|
208
|
+
*
|
|
209
|
+
* @see {@link LinearSDK.AgentActivitySignal} - Linear's AgentActivitySignal enum
|
|
210
|
+
*/
|
|
211
|
+
import { AgentActivitySignal } from "@linear/sdk";
|
|
212
|
+
export { AgentActivitySignal };
|
|
213
|
+
export type { AgentActivitySignal as AgentActivitySignalEnum } from "@linear/sdk";
|
|
214
|
+
/**
|
|
215
|
+
* Agent activity webhook payload type.
|
|
216
|
+
* Used for webhook events and type-safe data structures (strict, non-optional fields).
|
|
217
|
+
*
|
|
218
|
+
* @see {@link LinearSDK.LinearDocument.AgentActivity}
|
|
219
|
+
*/
|
|
220
|
+
export type AgentActivity = LinearSDK.LinearDocument.AgentActivity;
|
|
221
|
+
/**
|
|
222
|
+
* Agent activity SDK runtime type.
|
|
223
|
+
* Used when working with Linear SDK API responses (has optional getters).
|
|
224
|
+
*
|
|
225
|
+
* @see {@link LinearSDK.AgentActivity}
|
|
226
|
+
*/
|
|
227
|
+
export type AgentActivitySDK = LinearSDK.AgentActivity;
|
|
228
|
+
/**
|
|
229
|
+
* Agent activity create input type.
|
|
230
|
+
* Used for creating agent activities - matches Linear SDK's input structure exactly.
|
|
231
|
+
*
|
|
232
|
+
* @see {@link LinearSDK.LinearDocument.AgentActivityCreateInput}
|
|
233
|
+
*/
|
|
234
|
+
export type AgentActivityCreateInput = LinearSDK.LinearDocument.AgentActivityCreateInput;
|
|
235
|
+
/**
|
|
236
|
+
* Agent activity payload type.
|
|
237
|
+
* Returned from createAgentActivity mutation - contains success status and created activity.
|
|
238
|
+
*
|
|
239
|
+
* @see {@link LinearSDK.AgentActivityPayload}
|
|
240
|
+
*/
|
|
241
|
+
export type AgentActivityPayload = LinearSDK.AgentActivityPayload;
|
|
242
|
+
/**
|
|
243
|
+
* File upload request parameters.
|
|
244
|
+
*/
|
|
245
|
+
export interface FileUploadRequest {
|
|
246
|
+
/** MIME type of the file */
|
|
247
|
+
contentType: string;
|
|
248
|
+
/** File name */
|
|
249
|
+
filename: string;
|
|
250
|
+
/** File size in bytes */
|
|
251
|
+
size: number;
|
|
252
|
+
/** Whether to make the file publicly accessible */
|
|
253
|
+
makePublic?: boolean;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* File upload response with URLs and headers.
|
|
257
|
+
*/
|
|
258
|
+
export interface FileUploadResponse {
|
|
259
|
+
/** URL to upload the file to */
|
|
260
|
+
uploadUrl: string;
|
|
261
|
+
/** Headers to include in the upload request */
|
|
262
|
+
headers: Record<string, string>;
|
|
263
|
+
/** Asset URL to use in content after upload */
|
|
264
|
+
assetUrl: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Agent session creation input for issue-based sessions.
|
|
268
|
+
*/
|
|
269
|
+
export interface AgentSessionCreateOnIssueInput {
|
|
270
|
+
/** Issue ID or identifier */
|
|
271
|
+
issueId: string;
|
|
272
|
+
/** Optional external link */
|
|
273
|
+
externalLink?: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Agent session creation input for comment-based sessions.
|
|
277
|
+
*/
|
|
278
|
+
export interface AgentSessionCreateOnCommentInput {
|
|
279
|
+
/** Comment ID */
|
|
280
|
+
commentId: string;
|
|
281
|
+
/** Optional external link */
|
|
282
|
+
externalLink?: string;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Agent session creation response.
|
|
286
|
+
*/
|
|
287
|
+
export interface AgentSessionCreateResponse {
|
|
288
|
+
/** Whether the creation was successful */
|
|
289
|
+
success: boolean;
|
|
290
|
+
/** Created agent session ID */
|
|
291
|
+
agentSessionId: string;
|
|
292
|
+
/** Last sync ID */
|
|
293
|
+
lastSyncId: number;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Issue update parameters.
|
|
297
|
+
*/
|
|
298
|
+
export interface IssueUpdateInput {
|
|
299
|
+
/** New issue state ID */
|
|
300
|
+
stateId?: string;
|
|
301
|
+
/** New assignee ID */
|
|
302
|
+
assigneeId?: string;
|
|
303
|
+
/** New title */
|
|
304
|
+
title?: string;
|
|
305
|
+
/** New description */
|
|
306
|
+
description?: string;
|
|
307
|
+
/** New priority */
|
|
308
|
+
priority?: IssuePriority;
|
|
309
|
+
/** New parent ID */
|
|
310
|
+
parentId?: string;
|
|
311
|
+
/** Label IDs to set */
|
|
312
|
+
labelIds?: string[];
|
|
313
|
+
/** Additional platform-specific fields */
|
|
314
|
+
[key: string]: unknown;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Comment creation parameters.
|
|
318
|
+
*/
|
|
319
|
+
export interface CommentCreateInput {
|
|
320
|
+
/** Comment body/content */
|
|
321
|
+
body: string;
|
|
322
|
+
/** Parent comment ID (for threaded comments) */
|
|
323
|
+
parentId?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Asset URLs to attach to the comment (Linear-specific).
|
|
326
|
+
* These URLs should be obtained from `requestFileUpload()` + upload workflow.
|
|
327
|
+
* The URLs will be automatically embedded in the comment body as markdown images/links.
|
|
328
|
+
*/
|
|
329
|
+
attachmentUrls?: string[];
|
|
330
|
+
/** Additional platform-specific fields */
|
|
331
|
+
[key: string]: unknown;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Options for fetching child issues.
|
|
335
|
+
*/
|
|
336
|
+
export interface FetchChildrenOptions {
|
|
337
|
+
/** Maximum number of children to fetch */
|
|
338
|
+
limit?: number;
|
|
339
|
+
/** Whether to include completed children */
|
|
340
|
+
includeCompleted?: boolean;
|
|
341
|
+
/** Whether to include archived children */
|
|
342
|
+
includeArchived?: boolean;
|
|
343
|
+
/** Additional filter options */
|
|
344
|
+
filter?: FilterOptions;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Platform configuration for authentication.
|
|
348
|
+
*/
|
|
349
|
+
export interface PlatformConfig {
|
|
350
|
+
/** Platform type identifier */
|
|
351
|
+
type: "linear" | "github" | string;
|
|
352
|
+
/** Authentication token/API key */
|
|
353
|
+
apiToken: string;
|
|
354
|
+
/** User ID on the platform */
|
|
355
|
+
userId?: string;
|
|
356
|
+
/** User email on the platform */
|
|
357
|
+
userEmail?: string;
|
|
358
|
+
/** Organization/workspace ID */
|
|
359
|
+
organizationId?: string;
|
|
360
|
+
/** Additional platform-specific config */
|
|
361
|
+
metadata?: Record<string, unknown>;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Routing configuration for repository-based routing.
|
|
365
|
+
*/
|
|
366
|
+
export interface RoutingConfig {
|
|
367
|
+
/** Team keys to route on */
|
|
368
|
+
teamKeys?: string[];
|
|
369
|
+
/** Project keys to route on */
|
|
370
|
+
projectKeys?: string[];
|
|
371
|
+
/** Label names to route on */
|
|
372
|
+
routingLabels?: string[];
|
|
373
|
+
/** Additional platform-specific routing */
|
|
374
|
+
metadata?: Record<string, unknown>;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Webhook configuration with signature verification.
|
|
378
|
+
*/
|
|
379
|
+
export interface WebhookConfigWithSignature {
|
|
380
|
+
/** Verification mode */
|
|
381
|
+
verificationMode: "signature";
|
|
382
|
+
/** Webhook secret (for signature verification) */
|
|
383
|
+
secret: string;
|
|
384
|
+
/** Webhook endpoint URL */
|
|
385
|
+
endpointUrl?: string;
|
|
386
|
+
/** Additional platform-specific config */
|
|
387
|
+
metadata?: Record<string, unknown>;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Webhook configuration with bearer token verification.
|
|
391
|
+
*/
|
|
392
|
+
export interface WebhookConfigWithBearerToken {
|
|
393
|
+
/** Verification mode */
|
|
394
|
+
verificationMode: "bearerToken";
|
|
395
|
+
/** API key (for bearer token verification) */
|
|
396
|
+
apiKey: string;
|
|
397
|
+
/** Webhook endpoint URL */
|
|
398
|
+
endpointUrl?: string;
|
|
399
|
+
/** Additional platform-specific config */
|
|
400
|
+
metadata?: Record<string, unknown>;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Webhook configuration - discriminated union based on verification mode.
|
|
404
|
+
*/
|
|
405
|
+
export type WebhookConfig = WebhookConfigWithSignature | WebhookConfigWithBearerToken;
|
|
406
|
+
/**
|
|
407
|
+
* Platform-agnostic webhook issue data type.
|
|
408
|
+
* Maps to Linear SDK's IssueWebhookPayload or IssueWithDescriptionChildWebhookPayload.
|
|
409
|
+
* The Linear SDK uses different payload types in different contexts.
|
|
410
|
+
*/
|
|
411
|
+
export type WebhookIssue = LinearSDK.LinearDocument.IssueWebhookPayload | LinearSDK.LinearDocument.IssueWithDescriptionChildWebhookPayload;
|
|
412
|
+
/**
|
|
413
|
+
* Platform-agnostic webhook comment data type.
|
|
414
|
+
* Maps to Linear SDK's CommentWebhookPayload structure.
|
|
415
|
+
*/
|
|
416
|
+
export type WebhookComment = LinearSDK.LinearDocument.CommentWebhookPayload;
|
|
417
|
+
/**
|
|
418
|
+
* Platform-agnostic webhook agent session data type.
|
|
419
|
+
* Maps to Linear SDK's AgentSessionWebhookPayload structure.
|
|
420
|
+
*/
|
|
421
|
+
export type WebhookAgentSession = LinearSDK.LinearDocument.AgentSessionWebhookPayload;
|
|
422
|
+
/**
|
|
423
|
+
* Platform-agnostic agent session created webhook payload.
|
|
424
|
+
* Maps to Linear SDK's AgentSessionEventWebhookPayload.
|
|
425
|
+
*/
|
|
426
|
+
export type AgentSessionCreatedWebhook = LinearSDK.LinearDocument.AgentSessionEventWebhookPayload;
|
|
427
|
+
/**
|
|
428
|
+
* Platform-agnostic agent session prompted webhook payload.
|
|
429
|
+
* Maps to Linear SDK's AgentSessionEventWebhookPayload.
|
|
430
|
+
*/
|
|
431
|
+
export type AgentSessionPromptedWebhook = LinearSDK.LinearDocument.AgentSessionEventWebhookPayload;
|
|
432
|
+
/**
|
|
433
|
+
* Platform-agnostic issue unassigned webhook payload.
|
|
434
|
+
* Maps to Linear SDK's AppUserNotificationWebhookPayload.
|
|
435
|
+
*/
|
|
436
|
+
export type IssueUnassignedWebhook = LinearSDK.LinearDocument.AppUserNotificationWebhookPayload;
|
|
437
|
+
/**
|
|
438
|
+
* Platform-agnostic union of all webhook types.
|
|
439
|
+
* Maps to Linear SDK's webhook payload union types.
|
|
440
|
+
*/
|
|
441
|
+
export type Webhook = LinearSDK.LinearDocument.AgentSessionEventWebhookPayload | LinearSDK.LinearDocument.AppUserNotificationWebhookPayload;
|
|
442
|
+
/**
|
|
443
|
+
* Platform-agnostic guidance rule type.
|
|
444
|
+
* Maps to Linear SDK's GuidanceRuleWebhookPayload.
|
|
445
|
+
*/
|
|
446
|
+
export type GuidanceRule = LinearSDK.LinearDocument.GuidanceRuleWebhookPayload;
|
|
447
|
+
/**
|
|
448
|
+
* Type guard to check if webhook is an agent session created event.
|
|
449
|
+
*/
|
|
450
|
+
export declare function isAgentSessionCreatedWebhook(webhook: Webhook): webhook is AgentSessionCreatedWebhook;
|
|
451
|
+
/**
|
|
452
|
+
* Type guard to check if webhook is an agent session prompted event.
|
|
453
|
+
*/
|
|
454
|
+
export declare function isAgentSessionPromptedWebhook(webhook: Webhook): webhook is AgentSessionPromptedWebhook;
|
|
455
|
+
/**
|
|
456
|
+
* Type guard to check if webhook is an issue assigned notification.
|
|
457
|
+
*/
|
|
458
|
+
export declare function isIssueAssignedWebhook(webhook: Webhook): webhook is LinearSDK.LinearDocument.AppUserNotificationWebhookPayload;
|
|
459
|
+
/**
|
|
460
|
+
* Type guard to check if webhook is an issue comment mention notification.
|
|
461
|
+
*/
|
|
462
|
+
export declare function isIssueCommentMentionWebhook(webhook: Webhook): webhook is LinearSDK.LinearDocument.AppUserNotificationWebhookPayload;
|
|
463
|
+
/**
|
|
464
|
+
* Type guard to check if webhook is an issue new comment notification.
|
|
465
|
+
*/
|
|
466
|
+
export declare function isIssueNewCommentWebhook(webhook: Webhook): webhook is LinearSDK.LinearDocument.AppUserNotificationWebhookPayload;
|
|
467
|
+
/**
|
|
468
|
+
* Type guard to check if webhook is an issue unassigned notification.
|
|
469
|
+
*/
|
|
470
|
+
export declare function isIssueUnassignedWebhook(webhook: Webhook): webhook is IssueUnassignedWebhook;
|
|
471
|
+
/**
|
|
472
|
+
* Pagination connection for list results.
|
|
473
|
+
* Based on Linear SDK's Connection pattern with PageInfo.
|
|
474
|
+
* Linear SDK is the source of truth for pagination patterns.
|
|
475
|
+
*
|
|
476
|
+
* @see {@link LinearSDK.LinearDocument.PageInfo} - Linear's PageInfo type
|
|
477
|
+
*/
|
|
478
|
+
export interface Connection<T> {
|
|
479
|
+
/** Array of items */
|
|
480
|
+
nodes: T[];
|
|
481
|
+
/** Page info for cursor-based pagination (from Linear SDK) */
|
|
482
|
+
pageInfo?: LinearSDK.LinearDocument.PageInfo;
|
|
483
|
+
/** Total count (if available) */
|
|
484
|
+
totalCount?: number;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Generic result type for operations.
|
|
488
|
+
*/
|
|
489
|
+
export interface OperationResult<T = unknown> {
|
|
490
|
+
/** Whether the operation was successful */
|
|
491
|
+
success: boolean;
|
|
492
|
+
/** Result data */
|
|
493
|
+
data?: T;
|
|
494
|
+
/** Error message if operation failed */
|
|
495
|
+
error?: string;
|
|
496
|
+
/** Additional metadata */
|
|
497
|
+
metadata?: Record<string, unknown>;
|
|
498
|
+
}
|
|
499
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/issue-tracker/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,KAAK,SAAS,MAAM,aAAa,CAAC;AAM9C;;;;;GAKG;AACH,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;AAEpC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;AAElC;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;AAElC;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;AAMpD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,2BAA2B;IAC3B,KAAK,CAAC,E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