terse-sdk 0.1.8 → 0.1.10

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 (46) hide show
  1. package/README.md +2 -1
  2. package/dist/index.d.ts +13 -12
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +12 -27
  5. package/dist/index.js.map +1 -1
  6. package/dist/types.d.ts +96 -8
  7. package/dist/types.d.ts.map +1 -1
  8. package/dist/types.js +78 -1
  9. package/dist/types.js.map +1 -1
  10. package/package.json +12 -6
  11. package/dist/shared/ApiRoutes.d.ts +0 -333
  12. package/dist/shared/ApiRoutes.d.ts.map +0 -1
  13. package/dist/shared/ApiRoutes.js +0 -314
  14. package/dist/shared/ApiRoutes.js.map +0 -1
  15. package/dist/shared/Configs.d.ts +0 -488
  16. package/dist/shared/Configs.d.ts.map +0 -1
  17. package/dist/shared/Configs.js +0 -785
  18. package/dist/shared/Configs.js.map +0 -1
  19. package/dist/shared/Entities.d.ts +0 -8
  20. package/dist/shared/Entities.d.ts.map +0 -1
  21. package/dist/shared/Entities.js +0 -9
  22. package/dist/shared/Entities.js.map +0 -1
  23. package/dist/shared/Integrations.d.ts +0 -235
  24. package/dist/shared/Integrations.d.ts.map +0 -1
  25. package/dist/shared/Integrations.js +0 -143
  26. package/dist/shared/Integrations.js.map +0 -1
  27. package/dist/shared/ModelEvents.d.ts +0 -177
  28. package/dist/shared/ModelEvents.d.ts.map +0 -1
  29. package/dist/shared/ModelEvents.js +0 -29
  30. package/dist/shared/ModelEvents.js.map +0 -1
  31. package/dist/shared/RunHistoryTypes.d.ts +0 -95
  32. package/dist/shared/RunHistoryTypes.d.ts.map +0 -1
  33. package/dist/shared/RunHistoryTypes.js +0 -11
  34. package/dist/shared/RunHistoryTypes.js.map +0 -1
  35. package/dist/shared/Survey.d.ts +0 -10
  36. package/dist/shared/Survey.d.ts.map +0 -1
  37. package/dist/shared/Survey.js +0 -2
  38. package/dist/shared/Survey.js.map +0 -1
  39. package/dist/shared/TicketSystem.d.ts +0 -154
  40. package/dist/shared/TicketSystem.d.ts.map +0 -1
  41. package/dist/shared/TicketSystem.js +0 -21
  42. package/dist/shared/TicketSystem.js.map +0 -1
  43. package/dist/shared/types.d.ts +0 -899
  44. package/dist/shared/types.d.ts.map +0 -1
  45. package/dist/shared/types.js +0 -17
  46. package/dist/shared/types.js.map +0 -1
@@ -1,899 +0,0 @@
1
- import { ConfigInstance, ConfigType } from "./Configs.js";
2
- import { IntegrationType } from "./Integrations.js";
3
- import { RunHistoryAction, RunHistoryActionType, RunHistoryRecordWithAgent } from "./RunHistoryTypes.js";
4
- import { Project, Ticket } from "./TicketSystem.js";
5
- export type Role = "admin" | "user";
6
- export type User = {
7
- id: string;
8
- workosId: string;
9
- organizationId: string;
10
- organizationName: string;
11
- email: string;
12
- displayName: string;
13
- firstName: string | null;
14
- lastName: string | null;
15
- displayPhotoUrl: string;
16
- roles: Role[];
17
- };
18
- export type UserNoOrganization = Omit<User, "organizationId" | "organizationName" | "roles">;
19
- export type SubActivity = {
20
- summary: string;
21
- commits: CommitAssociation[];
22
- };
23
- export type CommitAssociation = {
24
- sha: string;
25
- message: string;
26
- url: string;
27
- };
28
- export type ActivityEvent = {
29
- event_type: string;
30
- title: string;
31
- github_repository_owner_id: string;
32
- github_repository_name: string;
33
- created_at: Date;
34
- sub_activities: SubActivity[];
35
- };
36
- export type TicketActivityEvent = {
37
- ticket: Ticket;
38
- event_type: string;
39
- title: string;
40
- };
41
- export type ProjectActivityEvent = {
42
- project: Project;
43
- event_type: string;
44
- title: string;
45
- };
46
- export type LinearTeam = {
47
- id: string;
48
- name: string;
49
- key: string;
50
- };
51
- export type AttioObject = {
52
- api_slug: string;
53
- singular_noun: string;
54
- plural_noun: string;
55
- };
56
- export type AttioAttribute = {
57
- api_slug?: string;
58
- title?: string;
59
- type?: string;
60
- is_required?: boolean;
61
- is_unique?: boolean;
62
- [key: string]: unknown;
63
- };
64
- export type AttioObjectWithAttributes = AttioObject & {
65
- attributes?: AttioAttribute[];
66
- };
67
- export type AttioRecordIdentifier = {
68
- workspace_id?: string;
69
- object_id?: string;
70
- record_id?: string;
71
- [key: string]: unknown;
72
- };
73
- export type AttioRecord = {
74
- id?: AttioRecordIdentifier;
75
- values?: Record<string, unknown>;
76
- web_url?: string;
77
- created_at?: string;
78
- [key: string]: unknown;
79
- };
80
- export type LinearWorkspace = {
81
- id: string;
82
- name: string;
83
- };
84
- export type JiraProject = {
85
- id: string;
86
- key: string;
87
- name: string;
88
- };
89
- export type JiraCredentialsValidationResponse = {
90
- valid: boolean;
91
- projects?: JiraProject[];
92
- error?: string;
93
- };
94
- export type NotionResourceType = "database" | "page";
95
- export type NotionResource = {
96
- id: string;
97
- title: string;
98
- url: string;
99
- type: NotionResourceType;
100
- };
101
- export type NotionResourcesResponse = {
102
- resources: NotionResource[];
103
- };
104
- export type PosthogProject = {
105
- id: string;
106
- name: string;
107
- organization_id?: string;
108
- };
109
- export type PosthogProjectsResponse = {
110
- projects: PosthogProject[];
111
- };
112
- export type LaunchDarklyProject = {
113
- key: string;
114
- name: string;
115
- };
116
- export type LaunchDarklyProjectsResponse = {
117
- projects: LaunchDarklyProject[];
118
- };
119
- export type LaunchDarklyEnvironment = {
120
- key: string;
121
- name: string;
122
- };
123
- export type LaunchDarklyEnvironmentsResponse = {
124
- environments: LaunchDarklyEnvironment[];
125
- };
126
- export type DatadogIndex = {
127
- id: string;
128
- name: string;
129
- isEnabled: boolean;
130
- dailyLimit?: number;
131
- retentionDays?: number;
132
- };
133
- export type DatadogIndexesResponse = {
134
- indexes: DatadogIndex[];
135
- };
136
- export type SlackChannel = {
137
- id: string;
138
- name: string;
139
- isPrivate: boolean;
140
- isArchived: boolean;
141
- isMPIM: boolean;
142
- };
143
- export type SlackChannelsResponse = {
144
- channels: SlackChannel[];
145
- selectedChannelId: string | null;
146
- };
147
- export type SlackUserResponse = {
148
- id: string;
149
- name: string;
150
- };
151
- export type SlackUsersResponse = {
152
- users: SlackUserResponse[];
153
- };
154
- export declare const TERSE_AGENT_MESSAGE_EVENT_TYPE: "terse_agent_message";
155
- export type TerseAgentMessageMetadata = {
156
- event_type: typeof TERSE_AGENT_MESSAGE_EVENT_TYPE;
157
- event_payload: {
158
- run_id: string;
159
- automation_id: string;
160
- organization_id: string;
161
- };
162
- };
163
- /**
164
- * Slack channel type enum
165
- */
166
- export declare enum SlackChannelType {
167
- CHANNEL = "channel",
168
- GROUP = "group",
169
- MPIM = "mpim",
170
- IM = "im"
171
- }
172
- export type ConfluencePage = {
173
- id: string;
174
- title: string;
175
- spaceId: string;
176
- spaceName: string;
177
- url: string;
178
- status: string;
179
- version: number;
180
- };
181
- export type ConfluencePagesQuery = {
182
- integrationId: string;
183
- spaceId?: string;
184
- spaceKey?: string;
185
- };
186
- export type ConfluencePagesResponse = {
187
- pages: ConfluencePage[];
188
- spaceId: string;
189
- total: number;
190
- };
191
- export type ConfluenceResourcesResponse = {
192
- resources: ConfluencePage[];
193
- spaceId: string;
194
- total: number;
195
- };
196
- export type JiraResourcesResponse = {
197
- success: boolean;
198
- resources: {
199
- projects: Array<{
200
- id: string;
201
- key: string;
202
- name: string;
203
- projectTypeKey: string;
204
- }>;
205
- baseUrl: string;
206
- cloudId: string;
207
- };
208
- };
209
- export type UseConfluenceResourcesReturn<MutateType = any> = {
210
- resources: ConfluencePage[];
211
- response: ConfluenceResourcesResponse | undefined;
212
- isLoading: boolean;
213
- isError: boolean;
214
- error: unknown;
215
- isValidating: boolean;
216
- mutate: MutateType;
217
- };
218
- export declare enum FigmaEventTypes {
219
- FILE_COMMENT = "FILE_COMMENT"
220
- }
221
- /**
222
- * Figma webhook event user object
223
- */
224
- export interface FigmaWebhookUser {
225
- id: string;
226
- handle: string;
227
- email: string;
228
- img_url: string;
229
- }
230
- /**
231
- * Figma webhook comment object (from webhook payload)
232
- */
233
- export interface FigmaWebhookComment {
234
- id: string;
235
- message: string;
236
- client_meta: FigmaClientMeta;
237
- user: FigmaWebhookUser;
238
- created_at: string;
239
- resolved_at: string | null;
240
- }
241
- /**
242
- * Figma comment image URLs
243
- * Extracted images for visual context of comments
244
- */
245
- export interface FigmaCommentImageUrls {
246
- nodeImage?: string;
247
- fullFrame?: string;
248
- }
249
- /**
250
- * Figma positioning data structures
251
- * Represents the position and type of a comment in a Figma file
252
- */
253
- export type FigmaVectorData = {
254
- x: number;
255
- y: number;
256
- };
257
- export type FigmaFrameOffsetData = {
258
- node_id: string;
259
- node_offset: {
260
- x: number;
261
- y: number;
262
- };
263
- };
264
- export type FigmaRegionData = {
265
- x: number;
266
- y: number;
267
- width: number;
268
- height: number;
269
- };
270
- export type FigmaFrameOffsetRegionData = {
271
- node_id: string;
272
- node_offset: {
273
- x: number;
274
- y: number;
275
- };
276
- x: number;
277
- y: number;
278
- width: number;
279
- height: number;
280
- };
281
- export type FigmaPositioningData = {
282
- type: "Vector";
283
- data: FigmaVectorData;
284
- } | {
285
- type: "FrameOffset";
286
- data: FigmaFrameOffsetData;
287
- } | {
288
- type: "Region";
289
- data: FigmaRegionData;
290
- } | {
291
- type: "FrameOffsetRegion";
292
- data: FigmaFrameOffsetRegionData;
293
- };
294
- /**
295
- * Figma client_meta structure
296
- * Represents the raw positioning metadata from Figma comment client_meta
297
- * Can be one of several positioning formats
298
- */
299
- export type FigmaClientMeta = {
300
- x: number;
301
- y: number;
302
- width: number;
303
- height: number;
304
- node_id: string;
305
- node_offset: {
306
- x: number;
307
- y: number;
308
- };
309
- };
310
- /**
311
- * Figma API comment response structure
312
- */
313
- export interface FigmaApiComment {
314
- id: string;
315
- message: string;
316
- client_meta: FigmaClientMeta | null;
317
- user: FigmaWebhookUser;
318
- created_at: string;
319
- resolved_at: string | null;
320
- parent_id?: string | null;
321
- order_id?: string;
322
- mentions?: unknown[];
323
- reactions?: unknown[];
324
- }
325
- export interface FigmaCommentThreadEntry {
326
- id: string;
327
- message: string;
328
- author: FigmaWebhookUser;
329
- createdAt: string;
330
- resolvedAt: string | null;
331
- parentId: string | null;
332
- orderId?: string;
333
- isRoot?: boolean;
334
- }
335
- /**
336
- * Figma comment event data
337
- * Processed/enriched comment data used for automation events
338
- * This combines data from webhook, API, and enriched context
339
- */
340
- export interface FigmaCommentEventData {
341
- integrationId: string;
342
- commentId: string;
343
- fileKey: string;
344
- fileUrl: string;
345
- nodeId?: string;
346
- message: string;
347
- author: FigmaWebhookUser;
348
- createdAt: string;
349
- resolved?: boolean;
350
- thread?: FigmaCommentThreadEntry[];
351
- fileMetadata?: any;
352
- positioningData?: FigmaPositioningData;
353
- matchedNodeIds?: string[];
354
- imageUrls?: FigmaCommentImageUrls;
355
- }
356
- export type ApiToken = {
357
- id: string;
358
- name: string;
359
- tokenPrefix: string;
360
- createdAt: string;
361
- lastUsedAt: string | null;
362
- };
363
- export type ApiTokenCreateResponse = {
364
- token: ApiToken;
365
- rawToken: string;
366
- };
367
- export type AgentTrigger = {
368
- id: string;
369
- config: ConfigInstance;
370
- };
371
- export type AgentOutput = {
372
- id: string;
373
- config: ConfigInstance;
374
- };
375
- export type AgentPrompt = {
376
- text: string;
377
- };
378
- export type TransientAgentTrigger = {
379
- id: string;
380
- config?: ConfigInstance;
381
- configType: ConfigType;
382
- };
383
- export type TransientAgentOutput = {
384
- id: string;
385
- config?: ConfigInstance;
386
- configType: ConfigType;
387
- };
388
- export type TemplateConfigRef = {
389
- configType: ConfigType;
390
- integrationType: IntegrationType;
391
- };
392
- export type TemplateTrigger = {
393
- config: TemplateConfigRef;
394
- };
395
- export type TemplateOutput = {
396
- config: TemplateConfigRef;
397
- };
398
- export type TemplateCategory = "ship" | "users" | "sync" | "track";
399
- export type AgentTemplate = {
400
- id: string;
401
- category: TemplateCategory;
402
- name: string;
403
- description: string;
404
- chatPrompt: string;
405
- prompt: AgentPrompt;
406
- triggers: TemplateTrigger[];
407
- outputs: TemplateOutput[];
408
- requireApproval: boolean;
409
- isActive: boolean;
410
- };
411
- export type Agent = {
412
- id: string;
413
- name: string;
414
- isActive: boolean;
415
- requireApproval: boolean;
416
- prompt: AgentPrompt;
417
- triggers: AgentTrigger[];
418
- outputs: AgentOutput[];
419
- createdByUserId: string;
420
- notificationSettings?: AgentNotificationSettings;
421
- toolApprovals?: string[];
422
- updatedAt?: string;
423
- source?: "WEB_UI" | "SDK";
424
- };
425
- export type AgentNotificationSettings = {
426
- enabled: boolean;
427
- actionTypes: RunHistoryActionType[];
428
- };
429
- export type AgentUpdate = {
430
- name?: string;
431
- triggers?: AgentTrigger[];
432
- outputs?: AgentOutput[];
433
- prompt?: AgentPrompt;
434
- isActive?: boolean;
435
- requireApproval?: boolean;
436
- notificationSettings?: AgentNotificationSettings;
437
- toolApprovals?: string[];
438
- };
439
- export type AgentsResponse = {
440
- agents: Agent[];
441
- pagination: {
442
- page: number;
443
- limit: number;
444
- total: number;
445
- totalPages: number;
446
- };
447
- };
448
- export type RecentAgent = Agent & {
449
- updatedAt: string;
450
- lastEventProcessedAt: string | null;
451
- };
452
- export type AgentImprovementStatus = "PENDING" | "APPLIED" | "DISMISSED";
453
- export type AgentImprovementTargetArea = "prompt" | "trigger_config" | "output_config" | "general" | "code";
454
- export type AgentReview = {
455
- id: string;
456
- automationId: string;
457
- title: string;
458
- summary: string;
459
- runsAnalyzed: number;
460
- reviewPeriodStart: string;
461
- reviewPeriodEnd: string;
462
- createdAt: string;
463
- };
464
- export type AgentImprovement = {
465
- id: string;
466
- reviewId: string;
467
- automationId: string;
468
- title: string;
469
- description: string;
470
- targetArea: AgentImprovementTargetArea;
471
- confidence: number;
472
- status: AgentImprovementStatus;
473
- suggestedPatch?: string;
474
- appliedPrompt?: string;
475
- appliedAt?: string;
476
- dismissedAt?: string;
477
- createdAt: string;
478
- updatedAt: string;
479
- };
480
- export type GetAgentImprovementsResponse = {
481
- review: AgentReview | null;
482
- improvements: AgentImprovement[];
483
- improvementsEnabled: boolean;
484
- };
485
- export type ApplyImprovementResponse = {
486
- success: boolean;
487
- appliedPrompt: string;
488
- };
489
- export type DismissImprovementResponse = {
490
- success: boolean;
491
- };
492
- export type ToggleImprovementsEnabledResponse = {
493
- success: boolean;
494
- improvementsEnabled: boolean;
495
- };
496
- export type GithubAppInstallationCallbackRequest = {
497
- name: string;
498
- email: string;
499
- username: string;
500
- installationId: number;
501
- accountName: string | null;
502
- repositories: Repository[];
503
- };
504
- export type Repository = {
505
- name: string;
506
- owner: string;
507
- id: number;
508
- };
509
- export type GetGithubRepositoriesForIntegrationRequest = {};
510
- export type GetGithubRepositoriesForIntegrationResponse = {
511
- repositories: Repository[];
512
- };
513
- export type OAuthInstallationDetails = {
514
- oauthUrl: string;
515
- };
516
- export type StatsInterval = "1h" | "24h" | "7d" | "1mo" | "3mo" | "1y";
517
- export interface DailyEventCount {
518
- date: string;
519
- events: number;
520
- }
521
- export interface RecentAction {
522
- action: string;
523
- integration: IntegrationType;
524
- target: string;
525
- details: string;
526
- url?: string;
527
- timestamp: string;
528
- agentName: string;
529
- type: RunHistoryActionType;
530
- }
531
- export interface AgentActivityItem {
532
- agentId: string;
533
- agentName: string;
534
- runCount: number;
535
- }
536
- export interface CountByString {
537
- label: string;
538
- count: number;
539
- }
540
- export interface StatsResponse {
541
- totalEventsProcessed: number;
542
- totalEventsProcessedChange: string;
543
- actionsTaken: number;
544
- actionsTakenChange: string;
545
- numberOfAgents: number;
546
- numberOfAgentsChange: string;
547
- dailyEvents: DailyEventCount[];
548
- recentActions: RecentAction[];
549
- recentRuns: RunHistoryRecordWithAgent[];
550
- timezone: string;
551
- agentActivity: AgentActivityItem[];
552
- statusBreakdown: CountByString[];
553
- triggerIntegrations: CountByString[];
554
- actionIntegrations: CountByString[];
555
- actionTypes: CountByString[];
556
- }
557
- export interface TriggerPayload {
558
- integrationId: string;
559
- integrationType: IntegrationType;
560
- config: Record<string, unknown>;
561
- }
562
- export interface SerializedEvent {
563
- integrationType: IntegrationType;
564
- eventType?: string;
565
- formattedContent: string;
566
- debugLog: string;
567
- metadata?: Record<string, unknown>;
568
- }
569
- export type SdkAgentRunEventPayload = {
570
- integrationType: IntegrationType;
571
- formattedContent: string;
572
- debugLog: string;
573
- };
574
- export type SdkAgentSkillPayload = {
575
- configType: ConfigType;
576
- config: Record<string, unknown>;
577
- };
578
- export type SdkAgentRunOptionsPayload = {
579
- maxTurns?: number;
580
- requireApproval?: boolean;
581
- };
582
- export type SdkAgentRunRequestBody = {
583
- prompt?: string;
584
- event?: Partial<SdkAgentRunEventPayload>;
585
- skills?: SdkAgentSkillPayload[];
586
- options?: SdkAgentRunOptionsPayload;
587
- };
588
- export type SdkAgentRunResponseBody = {
589
- success: boolean;
590
- error?: string;
591
- details?: string[];
592
- contract?: {
593
- responseMode: "streaming";
594
- supportsInterruptions: boolean;
595
- };
596
- normalizedRequest?: {
597
- prompt: string;
598
- event: SdkAgentRunEventPayload;
599
- skills: SdkAgentSkillPayload[];
600
- options: {
601
- maxTurns: number;
602
- requireApproval: boolean;
603
- };
604
- };
605
- };
606
- export type SdkAgentStreamEvent = {
607
- type: "run_started";
608
- runId: string;
609
- } | {
610
- type: "text";
611
- text: string;
612
- } | {
613
- type: "final_output";
614
- finalOutput: string;
615
- } | {
616
- type: "tool_call_params";
617
- toolCallParams: string;
618
- } | {
619
- type: "tool_call_started";
620
- toolCallStarted: string;
621
- } | {
622
- type: "tool_call_completed";
623
- toolCallCompleted: string;
624
- } | {
625
- type: "tool_approval_requested";
626
- toolApprovalRequested: {
627
- stepId: string;
628
- toolName: string;
629
- arguments: string;
630
- };
631
- } | {
632
- type: "action";
633
- action: RunHistoryAction;
634
- } | {
635
- type: "error";
636
- message: string;
637
- } | {
638
- type: "done";
639
- };
640
- export type SdkApprovalDecisionRequestBody = {
641
- runId: string;
642
- stepId: string;
643
- approved: boolean;
644
- editedArguments?: string;
645
- };
646
- export type SdkDeployTrigger = {
647
- configType: string;
648
- integrationType: string;
649
- integrationId: string;
650
- config: Record<string, unknown>;
651
- };
652
- export type SdkDeployJob = {
653
- jobName: string;
654
- triggers: SdkDeployTrigger[];
655
- toolApprovals?: string[];
656
- webhookURL?: string;
657
- };
658
- export type SdkDeployRequestBody = {
659
- jobs: SdkDeployJob[];
660
- sourceZipBase64: string;
661
- };
662
- export type SdkDeployResponseBody = {
663
- success: boolean;
664
- results: {
665
- jobName: string;
666
- automationId: string;
667
- isUpdate: boolean;
668
- }[];
669
- removed: {
670
- id: string;
671
- name: string;
672
- }[];
673
- error?: string;
674
- details?: string;
675
- };
676
- export type ToolOutputBase = {
677
- success: boolean;
678
- actions?: RunHistoryAction[];
679
- };
680
- export type ToolOutputByName = {
681
- [toolName: string]: unknown;
682
- attio_list_objects: ToolOutputBase & {
683
- objects: AttioObjectWithAttributes[];
684
- count: number;
685
- };
686
- attio_query_records: ToolOutputBase & {
687
- records: AttioRecord[];
688
- count: number;
689
- };
690
- attio_upsert_record: ToolOutputBase & {
691
- records?: AttioRecord[];
692
- count?: number;
693
- requestedCount?: number;
694
- successCount?: number;
695
- failureCount?: number;
696
- partial?: boolean;
697
- errors?: Array<{
698
- index: number;
699
- message: string;
700
- }>;
701
- };
702
- slack_send_message: ToolOutputBase & {
703
- message_ts: string | undefined;
704
- channel: string;
705
- thread_ts: string | undefined;
706
- summary: string;
707
- has_blocks: boolean;
708
- };
709
- slack_list_channels: ToolOutputBase & {
710
- channels: Array<{
711
- id?: string;
712
- name: string;
713
- isPrivate: boolean;
714
- isIm: boolean;
715
- isMpim: boolean;
716
- }>;
717
- count: number;
718
- nextCursor: string | null;
719
- hasMore: boolean;
720
- };
721
- slack_list_users: ToolOutputBase & {
722
- users: Array<{
723
- id: string;
724
- name: string;
725
- }>;
726
- count: number;
727
- };
728
- slack_read_conversation: ToolOutputBase & {
729
- channelId: string;
730
- channelName?: string;
731
- messages: Array<{
732
- userId?: string;
733
- userName?: string;
734
- text: string;
735
- timestamp?: string;
736
- threadTs?: string;
737
- }>;
738
- count: number;
739
- hasMore: boolean;
740
- nextCursor: string | null;
741
- };
742
- searchGitHubCode: ToolOutputBase & {
743
- totalCount: number;
744
- resultsReturned: number;
745
- query: string;
746
- repositories: string[];
747
- pagination: {
748
- page: number;
749
- perPage: number;
750
- hasMore: boolean;
751
- };
752
- results: Array<{
753
- index: number;
754
- repository: string;
755
- path: string;
756
- url: string;
757
- snippets: string;
758
- }>;
759
- message: string;
760
- tip: string;
761
- };
762
- readGitHubFile: ToolOutputBase & {
763
- repository: string;
764
- path: string;
765
- url: string;
766
- totalLines: number;
767
- displayedLines: string;
768
- size: number;
769
- content: string;
770
- warning?: string;
771
- };
772
- listGitHubPullRequests: ToolOutputBase & {
773
- repository: string;
774
- timeWindow: string;
775
- summary: {
776
- total: number;
777
- merged: number;
778
- open: number;
779
- closed: number;
780
- };
781
- pagination: {
782
- page: number;
783
- perPage: number;
784
- hasMore: boolean;
785
- };
786
- pullRequests: Array<{
787
- number: number;
788
- title: string;
789
- description: string;
790
- author: string;
791
- state: string;
792
- merged: boolean;
793
- mergedAt?: string;
794
- createdAt: string;
795
- closedAt?: string;
796
- labels: string[];
797
- baseBranch: string;
798
- headBranch: string;
799
- url: string;
800
- }>;
801
- message: string;
802
- };
803
- listGitHubDirectory: ToolOutputBase & {
804
- repository: string;
805
- path: string;
806
- recursive: boolean;
807
- totalItems: number;
808
- directories: Array<{
809
- name?: string;
810
- path?: string;
811
- type?: "directory";
812
- } | string>;
813
- files: Array<{
814
- name?: string;
815
- path: string;
816
- type?: "file";
817
- size?: number;
818
- }>;
819
- warning?: string;
820
- tip?: string;
821
- truncated?: boolean;
822
- other?: Array<{
823
- name: string;
824
- type: string;
825
- }>;
826
- };
827
- listGitHubCommits: ToolOutputBase & {
828
- repository: string;
829
- timeWindow: string;
830
- filters: string;
831
- summary: {
832
- total: number;
833
- byAuthor: Record<string, number>;
834
- };
835
- commits: Array<{
836
- sha: string;
837
- fullSha: string;
838
- message: string;
839
- fullMessage: string;
840
- author: string;
841
- date: string;
842
- url: string;
843
- }>;
844
- message: string;
845
- tip: string;
846
- };
847
- grepGitHubCode: ToolOutputBase & {
848
- totalCount: number;
849
- resultsReturned: number;
850
- pattern: string;
851
- query: string;
852
- repositories: string[];
853
- pagination: {
854
- page: number;
855
- perPage: number;
856
- hasMore: boolean;
857
- };
858
- results: Array<{
859
- index: number;
860
- repository: string;
861
- file: string;
862
- url: string;
863
- matches: string;
864
- }>;
865
- message: string;
866
- tip: string;
867
- };
868
- summarizeGitHubPullRequestDiff: ToolOutputBase & {
869
- repository: string;
870
- pullRequest: {
871
- number: number;
872
- title: string;
873
- state: string;
874
- merged: boolean;
875
- baseBranch: string;
876
- headBranch: string;
877
- url: string;
878
- };
879
- summary: Record<string, unknown>;
880
- pagination: {
881
- page: number;
882
- perPage: number;
883
- hasMore: boolean;
884
- };
885
- analysis: string;
886
- message: string;
887
- };
888
- snowflakeExecuteQuery: ToolOutputBase & {
889
- rows: Record<string, unknown>[];
890
- columns: string[];
891
- rowCount: number;
892
- };
893
- snowflakeExplainQuery: ToolOutputBase & {
894
- explainPlan: Record<string, unknown>[];
895
- columns: string[];
896
- rowCount: number;
897
- };
898
- };
899
- //# sourceMappingURL=types.d.ts.map