@opsee/mcp-server 0.1.0

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 (136) hide show
  1. package/bin/opsee-mcp.js +21 -0
  2. package/gen/api/v1/account_pb.d.ts +393 -0
  3. package/gen/api/v1/account_pb.js +111 -0
  4. package/gen/api/v1/activity_log_pb.d.ts +297 -0
  5. package/gen/api/v1/activity_log_pb.js +89 -0
  6. package/gen/api/v1/ai_run_status_pb.d.ts +237 -0
  7. package/gen/api/v1/ai_run_status_pb.js +89 -0
  8. package/gen/api/v1/ai_unit_category_pb.d.ts +237 -0
  9. package/gen/api/v1/ai_unit_category_pb.js +89 -0
  10. package/gen/api/v1/ai_unit_stage_pb.d.ts +347 -0
  11. package/gen/api/v1/ai_unit_stage_pb.js +117 -0
  12. package/gen/api/v1/ai_unit_status_pb.d.ts +237 -0
  13. package/gen/api/v1/ai_unit_status_pb.js +89 -0
  14. package/gen/api/v1/ai_workflow_run_pb.d.ts +542 -0
  15. package/gen/api/v1/ai_workflow_run_pb.js +159 -0
  16. package/gen/api/v1/ai_workflow_unit_pb.d.ts +431 -0
  17. package/gen/api/v1/ai_workflow_unit_pb.js +103 -0
  18. package/gen/api/v1/attachment_pb.d.ts +297 -0
  19. package/gen/api/v1/attachment_pb.js +89 -0
  20. package/gen/api/v1/billing_pb.d.ts +1206 -0
  21. package/gen/api/v1/billing_pb.js +288 -0
  22. package/gen/api/v1/board_column_pb.d.ts +282 -0
  23. package/gen/api/v1/board_column_pb.js +89 -0
  24. package/gen/api/v1/board_pb.d.ts +296 -0
  25. package/gen/api/v1/board_pb.js +96 -0
  26. package/gen/api/v1/comment_pb.d.ts +277 -0
  27. package/gen/api/v1/comment_pb.js +89 -0
  28. package/gen/api/v1/company_pb.d.ts +452 -0
  29. package/gen/api/v1/company_pb.js +110 -0
  30. package/gen/api/v1/component_pb.d.ts +267 -0
  31. package/gen/api/v1/component_pb.js +89 -0
  32. package/gen/api/v1/contact_pb.d.ts +58 -0
  33. package/gen/api/v1/contact_pb.js +28 -0
  34. package/gen/api/v1/country_pb.d.ts +257 -0
  35. package/gen/api/v1/country_pb.js +89 -0
  36. package/gen/api/v1/credit_transaction_pb.d.ts +277 -0
  37. package/gen/api/v1/credit_transaction_pb.js +89 -0
  38. package/gen/api/v1/cycle_pb.d.ts +281 -0
  39. package/gen/api/v1/cycle_pb.js +87 -0
  40. package/gen/api/v1/deployment_pb.d.ts +277 -0
  41. package/gen/api/v1/deployment_pb.js +89 -0
  42. package/gen/api/v1/doc_page_pb.d.ts +505 -0
  43. package/gen/api/v1/doc_page_pb.js +138 -0
  44. package/gen/api/v1/doc_page_version_pb.d.ts +287 -0
  45. package/gen/api/v1/doc_page_version_pb.js +89 -0
  46. package/gen/api/v1/doc_space_pb.d.ts +297 -0
  47. package/gen/api/v1/doc_space_pb.js +89 -0
  48. package/gen/api/v1/document_link_pb.d.ts +174 -0
  49. package/gen/api/v1/document_link_pb.js +61 -0
  50. package/gen/api/v1/document_pb.d.ts +548 -0
  51. package/gen/api/v1/document_pb.js +152 -0
  52. package/gen/api/v1/environment_pb.d.ts +277 -0
  53. package/gen/api/v1/environment_pb.js +89 -0
  54. package/gen/api/v1/filter_pb.d.ts +66 -0
  55. package/gen/api/v1/filter_pb.js +26 -0
  56. package/gen/api/v1/label_pb.d.ts +267 -0
  57. package/gen/api/v1/label_pb.js +89 -0
  58. package/gen/api/v1/models_pb.d.ts +3137 -0
  59. package/gen/api/v1/models_pb.js +357 -0
  60. package/gen/api/v1/notification_pb.d.ts +317 -0
  61. package/gen/api/v1/notification_pb.js +89 -0
  62. package/gen/api/v1/orchestrator_pb.d.ts +1813 -0
  63. package/gen/api/v1/orchestrator_pb.js +353 -0
  64. package/gen/api/v1/pagination_pb.d.ts +92 -0
  65. package/gen/api/v1/pagination_pb.js +33 -0
  66. package/gen/api/v1/permission_pb.d.ts +222 -0
  67. package/gen/api/v1/permission_pb.js +89 -0
  68. package/gen/api/v1/preference_pb.d.ts +109 -0
  69. package/gen/api/v1/preference_pb.js +42 -0
  70. package/gen/api/v1/project_membership_pb.d.ts +321 -0
  71. package/gen/api/v1/project_membership_pb.js +103 -0
  72. package/gen/api/v1/project_pb.d.ts +473 -0
  73. package/gen/api/v1/project_pb.js +145 -0
  74. package/gen/api/v1/reporting_pb.d.ts +1481 -0
  75. package/gen/api/v1/reporting_pb.js +373 -0
  76. package/gen/api/v1/role_pb.d.ts +252 -0
  77. package/gen/api/v1/role_pb.js +101 -0
  78. package/gen/api/v1/subscription_pb.d.ts +307 -0
  79. package/gen/api/v1/subscription_pb.js +89 -0
  80. package/gen/api/v1/swagger_pb.d.ts +11 -0
  81. package/gen/api/v1/swagger_pb.js +13 -0
  82. package/gen/api/v1/task_component_pb.d.ts +242 -0
  83. package/gen/api/v1/task_component_pb.js +89 -0
  84. package/gen/api/v1/task_contributor_pb.d.ts +252 -0
  85. package/gen/api/v1/task_contributor_pb.js +89 -0
  86. package/gen/api/v1/task_doc_page_pb.d.ts +186 -0
  87. package/gen/api/v1/task_doc_page_pb.js +73 -0
  88. package/gen/api/v1/task_document_pb.d.ts +186 -0
  89. package/gen/api/v1/task_document_pb.js +73 -0
  90. package/gen/api/v1/task_label_pb.d.ts +242 -0
  91. package/gen/api/v1/task_label_pb.js +89 -0
  92. package/gen/api/v1/task_pb.d.ts +780 -0
  93. package/gen/api/v1/task_pb.js +173 -0
  94. package/gen/api/v1/task_priority_pb.d.ts +267 -0
  95. package/gen/api/v1/task_priority_pb.js +89 -0
  96. package/gen/api/v1/task_repository_pb.d.ts +242 -0
  97. package/gen/api/v1/task_repository_pb.js +89 -0
  98. package/gen/api/v1/task_type_pb.d.ts +277 -0
  99. package/gen/api/v1/task_type_pb.js +89 -0
  100. package/gen/api/v1/test_run_pb.d.ts +277 -0
  101. package/gen/api/v1/test_run_pb.js +89 -0
  102. package/gen/api/v1/user_pb.d.ts +366 -0
  103. package/gen/api/v1/user_pb.js +117 -0
  104. package/gen/api/v1/vcs_connection_pb.d.ts +964 -0
  105. package/gen/api/v1/vcs_connection_pb.js +228 -0
  106. package/gen/api/v1/vcs_integration_pb.d.ts +479 -0
  107. package/gen/api/v1/vcs_integration_pb.js +125 -0
  108. package/gen/api/v1/vcs_pb.d.ts +36 -0
  109. package/gen/api/v1/vcs_pb.js +24 -0
  110. package/gen/api/v1/view_pb.d.ts +337 -0
  111. package/gen/api/v1/view_pb.js +102 -0
  112. package/gen/google/api/annotations_pb.d.ts +34 -0
  113. package/gen/google/api/annotations_pb.js +36 -0
  114. package/gen/google/api/http_pb.d.ts +477 -0
  115. package/gen/google/api/http_pb.js +47 -0
  116. package/gen/protoc-gen-openapiv2/options/annotations_pb.d.ts +63 -0
  117. package/gen/protoc-gen-openapiv2/options/annotations_pb.js +69 -0
  118. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1497 -0
  119. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.js +232 -0
  120. package/gen/validate/validate_pb.d.ts +1953 -0
  121. package/gen/validate/validate_pb.js +223 -0
  122. package/package.json +37 -0
  123. package/src/auth/credentials.ts +65 -0
  124. package/src/auth/login.ts +96 -0
  125. package/src/auth/manager.ts +49 -0
  126. package/src/client/api.ts +91 -0
  127. package/src/index.ts +13 -0
  128. package/src/server.ts +26 -0
  129. package/src/tools/cycles.ts +77 -0
  130. package/src/tools/docs.ts +148 -0
  131. package/src/tools/projects.ts +40 -0
  132. package/src/tools/repositories.ts +41 -0
  133. package/src/tools/task-metadata.ts +96 -0
  134. package/src/tools/tasks.ts +228 -0
  135. package/src/tools/user.ts +33 -0
  136. package/src/utils/format.ts +141 -0
@@ -0,0 +1,1813 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/orchestrator.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
6
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
7
+ import type { AIWorkflowRun, AIWorkflowUnit, DocPage, Project, Task, TaskDocPage, TaskDocument, TaskRepository, VCSIntegration } from "./models_pb";
8
+
9
+ /**
10
+ * Describes the file api/v1/orchestrator.proto.
11
+ */
12
+ export declare const file_api_v1_orchestrator: GenFile;
13
+
14
+ /**
15
+ * Worker lifecycle messages
16
+ *
17
+ * @generated from message api.v1.RegisterWorkerRequest
18
+ */
19
+ export declare type RegisterWorkerRequest = Message<"api.v1.RegisterWorkerRequest"> & {
20
+ /**
21
+ * @generated from field: uint32 task_id = 1;
22
+ */
23
+ taskId: number;
24
+
25
+ /**
26
+ * @generated from field: uint32 company_id = 2;
27
+ */
28
+ companyId: number;
29
+
30
+ /**
31
+ * @generated from field: uint32 project_id = 3;
32
+ */
33
+ projectId: number;
34
+
35
+ /**
36
+ * @generated from field: string pod_name = 4;
37
+ */
38
+ podName: string;
39
+
40
+ /**
41
+ * @generated from field: string orchestrator_version = 5;
42
+ */
43
+ orchestratorVersion: string;
44
+
45
+ /**
46
+ * What this worker can handle
47
+ *
48
+ * @generated from field: google.protobuf.Struct capabilities = 6;
49
+ */
50
+ capabilities?: JsonObject;
51
+
52
+ /**
53
+ * Determines workflow behavior (task vs analysis)
54
+ *
55
+ * @generated from field: api.v1.WorkflowType workflow_type = 7;
56
+ */
57
+ workflowType: WorkflowType;
58
+
59
+ /**
60
+ * Kubernetes job name for tracking and cancellation
61
+ *
62
+ * @generated from field: string job_name = 8;
63
+ */
64
+ jobName: string;
65
+
66
+ /**
67
+ * Pre-created workflow run ID (optional)
68
+ *
69
+ * @generated from field: uint32 workflow_run_id = 9;
70
+ */
71
+ workflowRunId: number;
72
+ };
73
+
74
+ /**
75
+ * Describes the message api.v1.RegisterWorkerRequest.
76
+ * Use `create(RegisterWorkerRequestSchema)` to create a new message.
77
+ */
78
+ export declare const RegisterWorkerRequestSchema: GenMessage<RegisterWorkerRequest>;
79
+
80
+ /**
81
+ * @generated from message api.v1.RegisterWorkerResponse
82
+ */
83
+ export declare type RegisterWorkerResponse = Message<"api.v1.RegisterWorkerResponse"> & {
84
+ /**
85
+ * @generated from field: string worker_id = 1;
86
+ */
87
+ workerId: string;
88
+
89
+ /**
90
+ * @generated from field: uint32 workflow_run_id = 2;
91
+ */
92
+ workflowRunId: number;
93
+
94
+ /**
95
+ * Any worker-specific config
96
+ *
97
+ * @generated from field: google.protobuf.Struct config = 3;
98
+ */
99
+ config?: JsonObject;
100
+ };
101
+
102
+ /**
103
+ * Describes the message api.v1.RegisterWorkerResponse.
104
+ * Use `create(RegisterWorkerResponseSchema)` to create a new message.
105
+ */
106
+ export declare const RegisterWorkerResponseSchema: GenMessage<RegisterWorkerResponse>;
107
+
108
+ /**
109
+ * @generated from message api.v1.HeartbeatRequest
110
+ */
111
+ export declare type HeartbeatRequest = Message<"api.v1.HeartbeatRequest"> & {
112
+ /**
113
+ * @generated from field: string worker_id = 1;
114
+ */
115
+ workerId: string;
116
+
117
+ /**
118
+ * @generated from field: uint32 units_completed = 2;
119
+ */
120
+ unitsCompleted: number;
121
+
122
+ /**
123
+ * @generated from field: uint32 units_total = 3;
124
+ */
125
+ unitsTotal: number;
126
+
127
+ /**
128
+ * @generated from field: uint32 credits_used = 4;
129
+ */
130
+ creditsUsed: number;
131
+
132
+ /**
133
+ * @generated from field: float elapsed_seconds = 5;
134
+ */
135
+ elapsedSeconds: number;
136
+
137
+ /**
138
+ * @generated from field: repeated uint32 active_unit_ids = 6;
139
+ */
140
+ activeUnitIds: number[];
141
+
142
+ /**
143
+ * "running", "failing", "completing"
144
+ *
145
+ * @generated from field: string status = 7;
146
+ */
147
+ status: string;
148
+ };
149
+
150
+ /**
151
+ * Describes the message api.v1.HeartbeatRequest.
152
+ * Use `create(HeartbeatRequestSchema)` to create a new message.
153
+ */
154
+ export declare const HeartbeatRequestSchema: GenMessage<HeartbeatRequest>;
155
+
156
+ /**
157
+ * @generated from message api.v1.HeartbeatResponse
158
+ */
159
+ export declare type HeartbeatResponse = Message<"api.v1.HeartbeatResponse"> & {
160
+ /**
161
+ * false = graceful shutdown
162
+ *
163
+ * @generated from field: bool should_continue = 1;
164
+ */
165
+ shouldContinue: boolean;
166
+
167
+ /**
168
+ * Any message to log
169
+ *
170
+ * @generated from field: string message = 2;
171
+ */
172
+ message: string;
173
+ };
174
+
175
+ /**
176
+ * Describes the message api.v1.HeartbeatResponse.
177
+ * Use `create(HeartbeatResponseSchema)` to create a new message.
178
+ */
179
+ export declare const HeartbeatResponseSchema: GenMessage<HeartbeatResponse>;
180
+
181
+ /**
182
+ * Task context messages
183
+ *
184
+ * @generated from message api.v1.GetTaskContextRequest
185
+ */
186
+ export declare type GetTaskContextRequest = Message<"api.v1.GetTaskContextRequest"> & {
187
+ /**
188
+ * @generated from field: uint32 task_id = 1;
189
+ */
190
+ taskId: number;
191
+
192
+ /**
193
+ * @generated from field: uint32 company_id = 2;
194
+ */
195
+ companyId: number;
196
+
197
+ /**
198
+ * @generated from field: uint32 project_id = 3;
199
+ */
200
+ projectId: number;
201
+ };
202
+
203
+ /**
204
+ * Describes the message api.v1.GetTaskContextRequest.
205
+ * Use `create(GetTaskContextRequestSchema)` to create a new message.
206
+ */
207
+ export declare const GetTaskContextRequestSchema: GenMessage<GetTaskContextRequest>;
208
+
209
+ /**
210
+ * @generated from message api.v1.GetTaskContextResponse
211
+ */
212
+ export declare type GetTaskContextResponse = Message<"api.v1.GetTaskContextResponse"> & {
213
+ /**
214
+ * @generated from field: api.v1.Task task = 1;
215
+ */
216
+ task?: Task;
217
+
218
+ /**
219
+ * @generated from field: api.v1.Project project = 2;
220
+ */
221
+ project?: Project;
222
+
223
+ /**
224
+ * @generated from field: repeated api.v1.TaskRepository task_repositories = 3;
225
+ */
226
+ taskRepositories: TaskRepository[];
227
+
228
+ /**
229
+ * @generated from field: repeated api.v1.VCSIntegration vcs_integrations = 4;
230
+ */
231
+ vcsIntegrations: VCSIntegration[];
232
+
233
+ /**
234
+ * @generated from field: repeated api.v1.DocPage related_docs = 5;
235
+ */
236
+ relatedDocs: DocPage[];
237
+
238
+ /**
239
+ * @generated from field: api.v1.AIWorkflowRun workflow_run = 6;
240
+ */
241
+ workflowRun?: AIWorkflowRun;
242
+
243
+ /**
244
+ * Additional context
245
+ *
246
+ * @generated from field: google.protobuf.Struct metadata = 7;
247
+ */
248
+ metadata?: JsonObject;
249
+
250
+ /**
251
+ * @generated from field: repeated api.v1.TaskDocPage task_doc_pages = 8;
252
+ */
253
+ taskDocPages: TaskDocPage[];
254
+
255
+ /**
256
+ * @generated from field: repeated api.v1.TaskDocument task_documents = 9;
257
+ */
258
+ taskDocuments: TaskDocument[];
259
+ };
260
+
261
+ /**
262
+ * Describes the message api.v1.GetTaskContextResponse.
263
+ * Use `create(GetTaskContextResponseSchema)` to create a new message.
264
+ */
265
+ export declare const GetTaskContextResponseSchema: GenMessage<GetTaskContextResponse>;
266
+
267
+ /**
268
+ * Unit creation messages
269
+ *
270
+ * @generated from message api.v1.WorkflowUnitSpec
271
+ */
272
+ export declare type WorkflowUnitSpec = Message<"api.v1.WorkflowUnitSpec"> & {
273
+ /**
274
+ * Temporary UUID for dependencies
275
+ *
276
+ * @generated from field: string temp_id = 1;
277
+ */
278
+ tempId: string;
279
+
280
+ /**
281
+ * @generated from field: string title = 2;
282
+ */
283
+ title: string;
284
+
285
+ /**
286
+ * @generated from field: string description = 3;
287
+ */
288
+ description: string;
289
+
290
+ /**
291
+ * @generated from field: uint32 repository_id = 4;
292
+ */
293
+ repositoryId: number;
294
+
295
+ /**
296
+ * @generated from field: string category = 5;
297
+ */
298
+ category: string;
299
+
300
+ /**
301
+ * @generated from field: int32 sequence_order = 6;
302
+ */
303
+ sequenceOrder: number;
304
+
305
+ /**
306
+ * References to other temp_ids
307
+ *
308
+ * @generated from field: repeated string depends_on_temp_ids = 7;
309
+ */
310
+ dependsOnTempIds: string[];
311
+
312
+ /**
313
+ * @generated from field: google.protobuf.Struct metadata = 8;
314
+ */
315
+ metadata?: JsonObject;
316
+ };
317
+
318
+ /**
319
+ * Describes the message api.v1.WorkflowUnitSpec.
320
+ * Use `create(WorkflowUnitSpecSchema)` to create a new message.
321
+ */
322
+ export declare const WorkflowUnitSpecSchema: GenMessage<WorkflowUnitSpec>;
323
+
324
+ /**
325
+ * @generated from message api.v1.CreateWorkflowUnitsRequest
326
+ */
327
+ export declare type CreateWorkflowUnitsRequest = Message<"api.v1.CreateWorkflowUnitsRequest"> & {
328
+ /**
329
+ * @generated from field: uint32 workflow_run_id = 1;
330
+ */
331
+ workflowRunId: number;
332
+
333
+ /**
334
+ * @generated from field: string worker_id = 2;
335
+ */
336
+ workerId: string;
337
+
338
+ /**
339
+ * @generated from field: repeated api.v1.WorkflowUnitSpec units = 3;
340
+ */
341
+ units: WorkflowUnitSpec[];
342
+
343
+ /**
344
+ * How the plan was generated
345
+ *
346
+ * @generated from field: string planning_context = 4;
347
+ */
348
+ planningContext: string;
349
+ };
350
+
351
+ /**
352
+ * Describes the message api.v1.CreateWorkflowUnitsRequest.
353
+ * Use `create(CreateWorkflowUnitsRequestSchema)` to create a new message.
354
+ */
355
+ export declare const CreateWorkflowUnitsRequestSchema: GenMessage<CreateWorkflowUnitsRequest>;
356
+
357
+ /**
358
+ * @generated from message api.v1.CreateWorkflowUnitsResponse
359
+ */
360
+ export declare type CreateWorkflowUnitsResponse = Message<"api.v1.CreateWorkflowUnitsResponse"> & {
361
+ /**
362
+ * @generated from field: repeated api.v1.AIWorkflowUnit units = 1;
363
+ */
364
+ units: AIWorkflowUnit[];
365
+
366
+ /**
367
+ * temp_id -> real unit_id mapping
368
+ *
369
+ * @generated from field: map<string, uint32> temp_id_mapping = 2;
370
+ */
371
+ tempIdMapping: { [key: string]: number };
372
+ };
373
+
374
+ /**
375
+ * Describes the message api.v1.CreateWorkflowUnitsResponse.
376
+ * Use `create(CreateWorkflowUnitsResponseSchema)` to create a new message.
377
+ */
378
+ export declare const CreateWorkflowUnitsResponseSchema: GenMessage<CreateWorkflowUnitsResponse>;
379
+
380
+ /**
381
+ * Progress update messages
382
+ *
383
+ * @generated from message api.v1.UpdateUnitProgressRequest
384
+ */
385
+ export declare type UpdateUnitProgressRequest = Message<"api.v1.UpdateUnitProgressRequest"> & {
386
+ /**
387
+ * @generated from field: uint32 unit_id = 1;
388
+ */
389
+ unitId: number;
390
+
391
+ /**
392
+ * @generated from field: string worker_id = 2;
393
+ */
394
+ workerId: string;
395
+
396
+ /**
397
+ * @generated from field: string stage = 3;
398
+ */
399
+ stage: string;
400
+
401
+ /**
402
+ * @generated from field: string status = 4;
403
+ */
404
+ status: string;
405
+
406
+ /**
407
+ * Optional log line to append
408
+ *
409
+ * @generated from field: string log_entry = 5;
410
+ */
411
+ logEntry: string;
412
+
413
+ /**
414
+ * Credits used in this operation
415
+ *
416
+ * @generated from field: uint32 credits_used = 6;
417
+ */
418
+ creditsUsed: number;
419
+
420
+ /**
421
+ * Stage-specific results (test results, PR link, etc)
422
+ *
423
+ * @generated from field: google.protobuf.Struct stage_result = 7;
424
+ */
425
+ stageResult?: JsonObject;
426
+
427
+ /**
428
+ * If status is failed
429
+ *
430
+ * @generated from field: string error_message = 8;
431
+ */
432
+ errorMessage: string;
433
+ };
434
+
435
+ /**
436
+ * Describes the message api.v1.UpdateUnitProgressRequest.
437
+ * Use `create(UpdateUnitProgressRequestSchema)` to create a new message.
438
+ */
439
+ export declare const UpdateUnitProgressRequestSchema: GenMessage<UpdateUnitProgressRequest>;
440
+
441
+ /**
442
+ * @generated from message api.v1.UpdateUnitProgressResponse
443
+ */
444
+ export declare type UpdateUnitProgressResponse = Message<"api.v1.UpdateUnitProgressResponse"> & {
445
+ /**
446
+ * @generated from field: api.v1.AIWorkflowUnit unit = 1;
447
+ */
448
+ unit?: AIWorkflowUnit;
449
+ };
450
+
451
+ /**
452
+ * Describes the message api.v1.UpdateUnitProgressResponse.
453
+ * Use `create(UpdateUnitProgressResponseSchema)` to create a new message.
454
+ */
455
+ export declare const UpdateUnitProgressResponseSchema: GenMessage<UpdateUnitProgressResponse>;
456
+
457
+ /**
458
+ * Workflow completion messages
459
+ *
460
+ * @generated from message api.v1.CompleteWorkflowRequest
461
+ */
462
+ export declare type CompleteWorkflowRequest = Message<"api.v1.CompleteWorkflowRequest"> & {
463
+ /**
464
+ * @generated from field: uint32 workflow_run_id = 1;
465
+ */
466
+ workflowRunId: number;
467
+
468
+ /**
469
+ * @generated from field: string worker_id = 2;
470
+ */
471
+ workerId: string;
472
+
473
+ /**
474
+ * @generated from field: string status = 3;
475
+ */
476
+ status: string;
477
+
478
+ /**
479
+ * @generated from field: uint32 total_credits_used = 4;
480
+ */
481
+ totalCreditsUsed: number;
482
+
483
+ /**
484
+ * @generated from field: float total_elapsed_seconds = 5;
485
+ */
486
+ totalElapsedSeconds: number;
487
+
488
+ /**
489
+ * Human-readable summary
490
+ *
491
+ * @generated from field: string summary = 6;
492
+ */
493
+ summary: string;
494
+
495
+ /**
496
+ * Final results (PR links, etc)
497
+ *
498
+ * @generated from field: google.protobuf.Struct results = 7;
499
+ */
500
+ results?: JsonObject;
501
+ };
502
+
503
+ /**
504
+ * Describes the message api.v1.CompleteWorkflowRequest.
505
+ * Use `create(CompleteWorkflowRequestSchema)` to create a new message.
506
+ */
507
+ export declare const CompleteWorkflowRequestSchema: GenMessage<CompleteWorkflowRequest>;
508
+
509
+ /**
510
+ * @generated from message api.v1.CompleteWorkflowResponse
511
+ */
512
+ export declare type CompleteWorkflowResponse = Message<"api.v1.CompleteWorkflowResponse"> & {
513
+ /**
514
+ * @generated from field: api.v1.AIWorkflowRun workflow_run = 1;
515
+ */
516
+ workflowRun?: AIWorkflowRun;
517
+ };
518
+
519
+ /**
520
+ * Describes the message api.v1.CompleteWorkflowResponse.
521
+ * Use `create(CompleteWorkflowResponseSchema)` to create a new message.
522
+ */
523
+ export declare const CompleteWorkflowResponseSchema: GenMessage<CompleteWorkflowResponse>;
524
+
525
+ /**
526
+ * Configuration messages
527
+ *
528
+ * @generated from message api.v1.GetPromptConfigRequest
529
+ */
530
+ export declare type GetPromptConfigRequest = Message<"api.v1.GetPromptConfigRequest"> & {
531
+ /**
532
+ * @generated from field: string agent_type = 1;
533
+ */
534
+ agentType: string;
535
+
536
+ /**
537
+ * @generated from field: uint32 company_id = 2;
538
+ */
539
+ companyId: number;
540
+
541
+ /**
542
+ * @generated from field: uint32 project_id = 3;
543
+ */
544
+ projectId: number;
545
+ };
546
+
547
+ /**
548
+ * Describes the message api.v1.GetPromptConfigRequest.
549
+ * Use `create(GetPromptConfigRequestSchema)` to create a new message.
550
+ */
551
+ export declare const GetPromptConfigRequestSchema: GenMessage<GetPromptConfigRequest>;
552
+
553
+ /**
554
+ * @generated from message api.v1.GetPromptConfigResponse
555
+ */
556
+ export declare type GetPromptConfigResponse = Message<"api.v1.GetPromptConfigResponse"> & {
557
+ /**
558
+ * @generated from field: string system_prompt = 1;
559
+ */
560
+ systemPrompt: string;
561
+
562
+ /**
563
+ * @generated from field: string user_prompt_template = 2;
564
+ */
565
+ userPromptTemplate: string;
566
+
567
+ /**
568
+ * Available template variables
569
+ *
570
+ * @generated from field: google.protobuf.Struct variables = 3;
571
+ */
572
+ variables?: JsonObject;
573
+
574
+ /**
575
+ * Example inputs/outputs
576
+ *
577
+ * @generated from field: google.protobuf.Struct examples = 4;
578
+ */
579
+ examples?: JsonObject;
580
+ };
581
+
582
+ /**
583
+ * Describes the message api.v1.GetPromptConfigResponse.
584
+ * Use `create(GetPromptConfigResponseSchema)` to create a new message.
585
+ */
586
+ export declare const GetPromptConfigResponseSchema: GenMessage<GetPromptConfigResponse>;
587
+
588
+ /**
589
+ * @generated from message api.v1.GetModelConfigRequest
590
+ */
591
+ export declare type GetModelConfigRequest = Message<"api.v1.GetModelConfigRequest"> & {
592
+ /**
593
+ * @generated from field: uint32 company_id = 1;
594
+ */
595
+ companyId: number;
596
+
597
+ /**
598
+ * @generated from field: uint32 project_id = 2;
599
+ */
600
+ projectId: number;
601
+
602
+ /**
603
+ * Optional: specific agent config
604
+ *
605
+ * @generated from field: string agent_type = 3;
606
+ */
607
+ agentType: string;
608
+ };
609
+
610
+ /**
611
+ * Describes the message api.v1.GetModelConfigRequest.
612
+ * Use `create(GetModelConfigRequestSchema)` to create a new message.
613
+ */
614
+ export declare const GetModelConfigRequestSchema: GenMessage<GetModelConfigRequest>;
615
+
616
+ /**
617
+ * @generated from message api.v1.GetModelConfigResponse
618
+ */
619
+ export declare type GetModelConfigResponse = Message<"api.v1.GetModelConfigResponse"> & {
620
+ /**
621
+ * "anthropic", "openai", etc
622
+ *
623
+ * @generated from field: string provider = 1;
624
+ */
625
+ provider: string;
626
+
627
+ /**
628
+ * "claude-3-opus-20240229", etc
629
+ *
630
+ * @generated from field: string model = 2;
631
+ */
632
+ model: string;
633
+
634
+ /**
635
+ * @generated from field: int32 max_tokens = 3;
636
+ */
637
+ maxTokens: number;
638
+
639
+ /**
640
+ * @generated from field: double temperature = 4;
641
+ */
642
+ temperature: number;
643
+
644
+ /**
645
+ * Provider-specific settings
646
+ *
647
+ * @generated from field: google.protobuf.Struct provider_config = 5;
648
+ */
649
+ providerConfig?: JsonObject;
650
+ };
651
+
652
+ /**
653
+ * Describes the message api.v1.GetModelConfigResponse.
654
+ * Use `create(GetModelConfigResponseSchema)` to create a new message.
655
+ */
656
+ export declare const GetModelConfigResponseSchema: GenMessage<GetModelConfigResponse>;
657
+
658
+ /**
659
+ * Workflow management messages (for API backend)
660
+ *
661
+ * @generated from message api.v1.StartAIWorkflowRequest
662
+ */
663
+ export declare type StartAIWorkflowRequest = Message<"api.v1.StartAIWorkflowRequest"> & {
664
+ /**
665
+ * @generated from field: uint32 task_id = 1;
666
+ */
667
+ taskId: number;
668
+
669
+ /**
670
+ * @generated from field: uint32 company_id = 2;
671
+ */
672
+ companyId: number;
673
+
674
+ /**
675
+ * @generated from field: uint32 project_id = 3;
676
+ */
677
+ projectId: number;
678
+
679
+ /**
680
+ * @generated from field: uint32 user_id = 4;
681
+ */
682
+ userId: number;
683
+ };
684
+
685
+ /**
686
+ * Describes the message api.v1.StartAIWorkflowRequest.
687
+ * Use `create(StartAIWorkflowRequestSchema)` to create a new message.
688
+ */
689
+ export declare const StartAIWorkflowRequestSchema: GenMessage<StartAIWorkflowRequest>;
690
+
691
+ /**
692
+ * @generated from message api.v1.StartAIWorkflowResponse
693
+ */
694
+ export declare type StartAIWorkflowResponse = Message<"api.v1.StartAIWorkflowResponse"> & {
695
+ /**
696
+ * @generated from field: string job_name = 1;
697
+ */
698
+ jobName: string;
699
+
700
+ /**
701
+ * @generated from field: string status = 2;
702
+ */
703
+ status: string;
704
+
705
+ /**
706
+ * @generated from field: string message = 3;
707
+ */
708
+ message: string;
709
+
710
+ /**
711
+ * The created workflow run ID
712
+ *
713
+ * @generated from field: uint32 workflow_run_id = 4;
714
+ */
715
+ workflowRunId: number;
716
+ };
717
+
718
+ /**
719
+ * Describes the message api.v1.StartAIWorkflowResponse.
720
+ * Use `create(StartAIWorkflowResponseSchema)` to create a new message.
721
+ */
722
+ export declare const StartAIWorkflowResponseSchema: GenMessage<StartAIWorkflowResponse>;
723
+
724
+ /**
725
+ * @generated from message api.v1.StopAIWorkflowRequest
726
+ */
727
+ export declare type StopAIWorkflowRequest = Message<"api.v1.StopAIWorkflowRequest"> & {
728
+ /**
729
+ * @generated from field: uint32 task_id = 1;
730
+ */
731
+ taskId: number;
732
+
733
+ /**
734
+ * @generated from field: string job_name = 2;
735
+ */
736
+ jobName: string;
737
+ };
738
+
739
+ /**
740
+ * Describes the message api.v1.StopAIWorkflowRequest.
741
+ * Use `create(StopAIWorkflowRequestSchema)` to create a new message.
742
+ */
743
+ export declare const StopAIWorkflowRequestSchema: GenMessage<StopAIWorkflowRequest>;
744
+
745
+ /**
746
+ * @generated from message api.v1.StopAIWorkflowResponse
747
+ */
748
+ export declare type StopAIWorkflowResponse = Message<"api.v1.StopAIWorkflowResponse"> & {
749
+ /**
750
+ * @generated from field: string status = 1;
751
+ */
752
+ status: string;
753
+
754
+ /**
755
+ * @generated from field: string message = 2;
756
+ */
757
+ message: string;
758
+ };
759
+
760
+ /**
761
+ * Describes the message api.v1.StopAIWorkflowResponse.
762
+ * Use `create(StopAIWorkflowResponseSchema)` to create a new message.
763
+ */
764
+ export declare const StopAIWorkflowResponseSchema: GenMessage<StopAIWorkflowResponse>;
765
+
766
+ /**
767
+ * @generated from message api.v1.GetAIWorkflowStatusRequest
768
+ */
769
+ export declare type GetAIWorkflowStatusRequest = Message<"api.v1.GetAIWorkflowStatusRequest"> & {
770
+ /**
771
+ * @generated from field: string job_name = 1;
772
+ */
773
+ jobName: string;
774
+
775
+ /**
776
+ * @generated from field: bool include_logs = 2;
777
+ */
778
+ includeLogs: boolean;
779
+ };
780
+
781
+ /**
782
+ * Describes the message api.v1.GetAIWorkflowStatusRequest.
783
+ * Use `create(GetAIWorkflowStatusRequestSchema)` to create a new message.
784
+ */
785
+ export declare const GetAIWorkflowStatusRequestSchema: GenMessage<GetAIWorkflowStatusRequest>;
786
+
787
+ /**
788
+ * @generated from message api.v1.GetAIWorkflowStatusResponse
789
+ */
790
+ export declare type GetAIWorkflowStatusResponse = Message<"api.v1.GetAIWorkflowStatusResponse"> & {
791
+ /**
792
+ * "pending", "running", "succeeded", "failed"
793
+ *
794
+ * @generated from field: string status = 1;
795
+ */
796
+ status: string;
797
+
798
+ /**
799
+ * Only included if requested
800
+ *
801
+ * @generated from field: string logs = 2;
802
+ */
803
+ logs: string;
804
+ };
805
+
806
+ /**
807
+ * Describes the message api.v1.GetAIWorkflowStatusResponse.
808
+ * Use `create(GetAIWorkflowStatusResponseSchema)` to create a new message.
809
+ */
810
+ export declare const GetAIWorkflowStatusResponseSchema: GenMessage<GetAIWorkflowStatusResponse>;
811
+
812
+ /**
813
+ * Repository analysis messages
814
+ *
815
+ * @generated from message api.v1.UpdateAnalysisProgressRequest
816
+ */
817
+ export declare type UpdateAnalysisProgressRequest = Message<"api.v1.UpdateAnalysisProgressRequest"> & {
818
+ /**
819
+ * @generated from field: uint32 analysis_id = 1;
820
+ */
821
+ analysisId: number;
822
+
823
+ /**
824
+ * @generated from field: string worker_id = 2;
825
+ */
826
+ workerId: string;
827
+
828
+ /**
829
+ * "cloning", "analyzing", "creating_files"
830
+ *
831
+ * @generated from field: string stage = 3;
832
+ */
833
+ stage: string;
834
+
835
+ /**
836
+ * @generated from field: int32 progress_percentage = 4;
837
+ */
838
+ progressPercentage: number;
839
+
840
+ /**
841
+ * @generated from field: uint32 credits_used = 5;
842
+ */
843
+ creditsUsed: number;
844
+
845
+ /**
846
+ * @generated from field: string status = 6;
847
+ */
848
+ status: string;
849
+
850
+ /**
851
+ * Optional status message
852
+ *
853
+ * @generated from field: string message = 7;
854
+ */
855
+ message: string;
856
+ };
857
+
858
+ /**
859
+ * Describes the message api.v1.UpdateAnalysisProgressRequest.
860
+ * Use `create(UpdateAnalysisProgressRequestSchema)` to create a new message.
861
+ */
862
+ export declare const UpdateAnalysisProgressRequestSchema: GenMessage<UpdateAnalysisProgressRequest>;
863
+
864
+ /**
865
+ * @generated from message api.v1.UpdateAnalysisProgressResponse
866
+ */
867
+ export declare type UpdateAnalysisProgressResponse = Message<"api.v1.UpdateAnalysisProgressResponse"> & {
868
+ /**
869
+ * @generated from field: bool success = 1;
870
+ */
871
+ success: boolean;
872
+
873
+ /**
874
+ * @generated from field: string message = 2;
875
+ */
876
+ message: string;
877
+ };
878
+
879
+ /**
880
+ * Describes the message api.v1.UpdateAnalysisProgressResponse.
881
+ * Use `create(UpdateAnalysisProgressResponseSchema)` to create a new message.
882
+ */
883
+ export declare const UpdateAnalysisProgressResponseSchema: GenMessage<UpdateAnalysisProgressResponse>;
884
+
885
+ /**
886
+ * @generated from message api.v1.CompleteAnalysisRequest
887
+ */
888
+ export declare type CompleteAnalysisRequest = Message<"api.v1.CompleteAnalysisRequest"> & {
889
+ /**
890
+ * @generated from field: uint32 analysis_id = 1;
891
+ */
892
+ analysisId: number;
893
+
894
+ /**
895
+ * @generated from field: string worker_id = 2;
896
+ */
897
+ workerId: string;
898
+
899
+ /**
900
+ * @generated from field: string status = 3;
901
+ */
902
+ status: string;
903
+
904
+ /**
905
+ * @generated from field: uint32 total_credits_used = 4;
906
+ */
907
+ totalCreditsUsed: number;
908
+
909
+ /**
910
+ * @generated from field: float total_elapsed_seconds = 5;
911
+ */
912
+ totalElapsedSeconds: number;
913
+
914
+ /**
915
+ * Human-readable summary
916
+ *
917
+ * @generated from field: string summary = 6;
918
+ */
919
+ summary: string;
920
+
921
+ /**
922
+ * Analysis results (tech stack detected, files created, etc)
923
+ *
924
+ * @generated from field: google.protobuf.Struct results = 7;
925
+ */
926
+ results?: JsonObject;
927
+
928
+ /**
929
+ * If status is failed
930
+ *
931
+ * @generated from field: string error_message = 8;
932
+ */
933
+ errorMessage: string;
934
+
935
+ /**
936
+ * Whether .opsee config was created
937
+ *
938
+ * @generated from field: bool has_opsee_config = 9;
939
+ */
940
+ hasOpseeConfig: boolean;
941
+ };
942
+
943
+ /**
944
+ * Describes the message api.v1.CompleteAnalysisRequest.
945
+ * Use `create(CompleteAnalysisRequestSchema)` to create a new message.
946
+ */
947
+ export declare const CompleteAnalysisRequestSchema: GenMessage<CompleteAnalysisRequest>;
948
+
949
+ /**
950
+ * @generated from message api.v1.CompleteAnalysisResponse
951
+ */
952
+ export declare type CompleteAnalysisResponse = Message<"api.v1.CompleteAnalysisResponse"> & {
953
+ /**
954
+ * @generated from field: bool success = 1;
955
+ */
956
+ success: boolean;
957
+
958
+ /**
959
+ * @generated from field: string message = 2;
960
+ */
961
+ message: string;
962
+ };
963
+
964
+ /**
965
+ * Describes the message api.v1.CompleteAnalysisResponse.
966
+ * Use `create(CompleteAnalysisResponseSchema)` to create a new message.
967
+ */
968
+ export declare const CompleteAnalysisResponseSchema: GenMessage<CompleteAnalysisResponse>;
969
+
970
+ /**
971
+ * Subtask generation messages
972
+ *
973
+ * @generated from message api.v1.GenerateSubtasksRequest
974
+ */
975
+ export declare type GenerateSubtasksRequest = Message<"api.v1.GenerateSubtasksRequest"> & {
976
+ /**
977
+ * @generated from field: uint32 task_id = 1;
978
+ */
979
+ taskId: number;
980
+
981
+ /**
982
+ * @generated from field: uint32 company_id = 2;
983
+ */
984
+ companyId: number;
985
+
986
+ /**
987
+ * @generated from field: uint32 project_id = 3;
988
+ */
989
+ projectId: number;
990
+
991
+ /**
992
+ * @generated from field: uint32 user_id = 4;
993
+ */
994
+ userId: number;
995
+
996
+ /**
997
+ * Limit number of subtasks
998
+ *
999
+ * @generated from field: int32 max_subtasks = 5;
1000
+ */
1001
+ maxSubtasks: number;
1002
+
1003
+ /**
1004
+ * Whether to suggest assignees
1005
+ *
1006
+ * @generated from field: bool auto_assign = 6;
1007
+ */
1008
+ autoAssign: boolean;
1009
+ };
1010
+
1011
+ /**
1012
+ * Describes the message api.v1.GenerateSubtasksRequest.
1013
+ * Use `create(GenerateSubtasksRequestSchema)` to create a new message.
1014
+ */
1015
+ export declare const GenerateSubtasksRequestSchema: GenMessage<GenerateSubtasksRequest>;
1016
+
1017
+ /**
1018
+ * @generated from message api.v1.GenerateSubtasksResponse
1019
+ */
1020
+ export declare type GenerateSubtasksResponse = Message<"api.v1.GenerateSubtasksResponse"> & {
1021
+ /**
1022
+ * @generated from field: string job_name = 1;
1023
+ */
1024
+ jobName: string;
1025
+
1026
+ /**
1027
+ * @generated from field: string status = 2;
1028
+ */
1029
+ status: string;
1030
+
1031
+ /**
1032
+ * @generated from field: string message = 3;
1033
+ */
1034
+ message: string;
1035
+
1036
+ /**
1037
+ * @generated from field: uint32 workflow_run_id = 4;
1038
+ */
1039
+ workflowRunId: number;
1040
+ };
1041
+
1042
+ /**
1043
+ * Describes the message api.v1.GenerateSubtasksResponse.
1044
+ * Use `create(GenerateSubtasksResponseSchema)` to create a new message.
1045
+ */
1046
+ export declare const GenerateSubtasksResponseSchema: GenMessage<GenerateSubtasksResponse>;
1047
+
1048
+ /**
1049
+ * @generated from message api.v1.SubtaskSpec
1050
+ */
1051
+ export declare type SubtaskSpec = Message<"api.v1.SubtaskSpec"> & {
1052
+ /**
1053
+ * Temporary UUID for dependencies
1054
+ *
1055
+ * @generated from field: string temp_id = 1;
1056
+ */
1057
+ tempId: string;
1058
+
1059
+ /**
1060
+ * @generated from field: string title = 2;
1061
+ */
1062
+ title: string;
1063
+
1064
+ /**
1065
+ * @generated from field: string description = 3;
1066
+ */
1067
+ description: string;
1068
+
1069
+ /**
1070
+ * @generated from field: int32 story_points = 4;
1071
+ */
1072
+ storyPoints: number;
1073
+
1074
+ /**
1075
+ * @generated from field: float estimated_hours = 5;
1076
+ */
1077
+ estimatedHours: number;
1078
+
1079
+ /**
1080
+ * @generated from field: uint32 task_type_id = 6;
1081
+ */
1082
+ taskTypeId: number;
1083
+
1084
+ /**
1085
+ * @generated from field: uint32 task_priority_id = 7;
1086
+ */
1087
+ taskPriorityId: number;
1088
+
1089
+ /**
1090
+ * References to other temp_ids
1091
+ *
1092
+ * @generated from field: repeated string depends_on_temp_ids = 8;
1093
+ */
1094
+ dependsOnTempIds: string[];
1095
+
1096
+ /**
1097
+ * Suggested repositories for this subtask
1098
+ *
1099
+ * @generated from field: repeated uint32 suggested_repository_ids = 9;
1100
+ */
1101
+ suggestedRepositoryIds: number[];
1102
+
1103
+ /**
1104
+ * @generated from field: google.protobuf.Struct metadata = 10;
1105
+ */
1106
+ metadata?: JsonObject;
1107
+ };
1108
+
1109
+ /**
1110
+ * Describes the message api.v1.SubtaskSpec.
1111
+ * Use `create(SubtaskSpecSchema)` to create a new message.
1112
+ */
1113
+ export declare const SubtaskSpecSchema: GenMessage<SubtaskSpec>;
1114
+
1115
+ /**
1116
+ * @generated from message api.v1.CreateSubtasksRequest
1117
+ */
1118
+ export declare type CreateSubtasksRequest = Message<"api.v1.CreateSubtasksRequest"> & {
1119
+ /**
1120
+ * @generated from field: uint32 parent_task_id = 1;
1121
+ */
1122
+ parentTaskId: number;
1123
+
1124
+ /**
1125
+ * @generated from field: string worker_id = 2;
1126
+ */
1127
+ workerId: string;
1128
+
1129
+ /**
1130
+ * @generated from field: repeated api.v1.SubtaskSpec subtasks = 3;
1131
+ */
1132
+ subtasks: SubtaskSpec[];
1133
+
1134
+ /**
1135
+ * How the subtasks were generated
1136
+ *
1137
+ * @generated from field: string generation_context = 4;
1138
+ */
1139
+ generationContext: string;
1140
+ };
1141
+
1142
+ /**
1143
+ * Describes the message api.v1.CreateSubtasksRequest.
1144
+ * Use `create(CreateSubtasksRequestSchema)` to create a new message.
1145
+ */
1146
+ export declare const CreateSubtasksRequestSchema: GenMessage<CreateSubtasksRequest>;
1147
+
1148
+ /**
1149
+ * @generated from message api.v1.CreateSubtasksResponse
1150
+ */
1151
+ export declare type CreateSubtasksResponse = Message<"api.v1.CreateSubtasksResponse"> & {
1152
+ /**
1153
+ * @generated from field: repeated api.v1.Task subtasks = 1;
1154
+ */
1155
+ subtasks: Task[];
1156
+
1157
+ /**
1158
+ * temp_id -> real task_id mapping
1159
+ *
1160
+ * @generated from field: map<string, uint32> temp_id_mapping = 2;
1161
+ */
1162
+ tempIdMapping: { [key: string]: number };
1163
+ };
1164
+
1165
+ /**
1166
+ * Describes the message api.v1.CreateSubtasksResponse.
1167
+ * Use `create(CreateSubtasksResponseSchema)` to create a new message.
1168
+ */
1169
+ export declare const CreateSubtasksResponseSchema: GenMessage<CreateSubtasksResponse>;
1170
+
1171
+ /**
1172
+ * @generated from message api.v1.CompleteSubtaskGenerationRequest
1173
+ */
1174
+ export declare type CompleteSubtaskGenerationRequest = Message<"api.v1.CompleteSubtaskGenerationRequest"> & {
1175
+ /**
1176
+ * @generated from field: uint32 workflow_run_id = 1;
1177
+ */
1178
+ workflowRunId: number;
1179
+
1180
+ /**
1181
+ * @generated from field: string worker_id = 2;
1182
+ */
1183
+ workerId: string;
1184
+
1185
+ /**
1186
+ * @generated from field: string status = 3;
1187
+ */
1188
+ status: string;
1189
+
1190
+ /**
1191
+ * @generated from field: uint32 total_credits_used = 4;
1192
+ */
1193
+ totalCreditsUsed: number;
1194
+
1195
+ /**
1196
+ * @generated from field: float total_elapsed_seconds = 5;
1197
+ */
1198
+ totalElapsedSeconds: number;
1199
+
1200
+ /**
1201
+ * @generated from field: int32 subtasks_created = 6;
1202
+ */
1203
+ subtasksCreated: number;
1204
+
1205
+ /**
1206
+ * Human-readable summary
1207
+ *
1208
+ * @generated from field: string summary = 7;
1209
+ */
1210
+ summary: string;
1211
+
1212
+ /**
1213
+ * Generation results
1214
+ *
1215
+ * @generated from field: google.protobuf.Struct results = 8;
1216
+ */
1217
+ results?: JsonObject;
1218
+ };
1219
+
1220
+ /**
1221
+ * Describes the message api.v1.CompleteSubtaskGenerationRequest.
1222
+ * Use `create(CompleteSubtaskGenerationRequestSchema)` to create a new message.
1223
+ */
1224
+ export declare const CompleteSubtaskGenerationRequestSchema: GenMessage<CompleteSubtaskGenerationRequest>;
1225
+
1226
+ /**
1227
+ * @generated from message api.v1.CompleteSubtaskGenerationResponse
1228
+ */
1229
+ export declare type CompleteSubtaskGenerationResponse = Message<"api.v1.CompleteSubtaskGenerationResponse"> & {
1230
+ /**
1231
+ * @generated from field: api.v1.AIWorkflowRun workflow_run = 1;
1232
+ */
1233
+ workflowRun?: AIWorkflowRun;
1234
+ };
1235
+
1236
+ /**
1237
+ * Describes the message api.v1.CompleteSubtaskGenerationResponse.
1238
+ * Use `create(CompleteSubtaskGenerationResponseSchema)` to create a new message.
1239
+ */
1240
+ export declare const CompleteSubtaskGenerationResponseSchema: GenMessage<CompleteSubtaskGenerationResponse>;
1241
+
1242
+ /**
1243
+ * Description expansion messages
1244
+ *
1245
+ * @generated from message api.v1.ExpandTaskDescriptionRequest
1246
+ */
1247
+ export declare type ExpandTaskDescriptionRequest = Message<"api.v1.ExpandTaskDescriptionRequest"> & {
1248
+ /**
1249
+ * @generated from field: uint32 task_id = 1;
1250
+ */
1251
+ taskId: number;
1252
+
1253
+ /**
1254
+ * @generated from field: uint32 company_id = 2;
1255
+ */
1256
+ companyId: number;
1257
+
1258
+ /**
1259
+ * @generated from field: uint32 project_id = 3;
1260
+ */
1261
+ projectId: number;
1262
+
1263
+ /**
1264
+ * @generated from field: uint32 user_id = 4;
1265
+ */
1266
+ userId: number;
1267
+ };
1268
+
1269
+ /**
1270
+ * Describes the message api.v1.ExpandTaskDescriptionRequest.
1271
+ * Use `create(ExpandTaskDescriptionRequestSchema)` to create a new message.
1272
+ */
1273
+ export declare const ExpandTaskDescriptionRequestSchema: GenMessage<ExpandTaskDescriptionRequest>;
1274
+
1275
+ /**
1276
+ * @generated from message api.v1.ExpandTaskDescriptionResponse
1277
+ */
1278
+ export declare type ExpandTaskDescriptionResponse = Message<"api.v1.ExpandTaskDescriptionResponse"> & {
1279
+ /**
1280
+ * @generated from field: string job_name = 1;
1281
+ */
1282
+ jobName: string;
1283
+
1284
+ /**
1285
+ * @generated from field: string status = 2;
1286
+ */
1287
+ status: string;
1288
+
1289
+ /**
1290
+ * @generated from field: string message = 3;
1291
+ */
1292
+ message: string;
1293
+
1294
+ /**
1295
+ * @generated from field: uint32 workflow_run_id = 4;
1296
+ */
1297
+ workflowRunId: number;
1298
+ };
1299
+
1300
+ /**
1301
+ * Describes the message api.v1.ExpandTaskDescriptionResponse.
1302
+ * Use `create(ExpandTaskDescriptionResponseSchema)` to create a new message.
1303
+ */
1304
+ export declare const ExpandTaskDescriptionResponseSchema: GenMessage<ExpandTaskDescriptionResponse>;
1305
+
1306
+ /**
1307
+ * @generated from message api.v1.GetExpandedDescriptionRequest
1308
+ */
1309
+ export declare type GetExpandedDescriptionRequest = Message<"api.v1.GetExpandedDescriptionRequest"> & {
1310
+ /**
1311
+ * @generated from field: uint32 workflow_run_id = 1;
1312
+ */
1313
+ workflowRunId: number;
1314
+ };
1315
+
1316
+ /**
1317
+ * Describes the message api.v1.GetExpandedDescriptionRequest.
1318
+ * Use `create(GetExpandedDescriptionRequestSchema)` to create a new message.
1319
+ */
1320
+ export declare const GetExpandedDescriptionRequestSchema: GenMessage<GetExpandedDescriptionRequest>;
1321
+
1322
+ /**
1323
+ * @generated from message api.v1.GetExpandedDescriptionResponse
1324
+ */
1325
+ export declare type GetExpandedDescriptionResponse = Message<"api.v1.GetExpandedDescriptionResponse"> & {
1326
+ /**
1327
+ * "pending", "running", "completed", "failed"
1328
+ *
1329
+ * @generated from field: string status = 1;
1330
+ */
1331
+ status: string;
1332
+
1333
+ /**
1334
+ * Only populated when status is "completed"
1335
+ *
1336
+ * @generated from field: api.v1.ExpandedDescriptionResult result = 2;
1337
+ */
1338
+ result?: ExpandedDescriptionResult;
1339
+
1340
+ /**
1341
+ * Only populated when status is "failed"
1342
+ *
1343
+ * @generated from field: string error_message = 3;
1344
+ */
1345
+ errorMessage: string;
1346
+ };
1347
+
1348
+ /**
1349
+ * Describes the message api.v1.GetExpandedDescriptionResponse.
1350
+ * Use `create(GetExpandedDescriptionResponseSchema)` to create a new message.
1351
+ */
1352
+ export declare const GetExpandedDescriptionResponseSchema: GenMessage<GetExpandedDescriptionResponse>;
1353
+
1354
+ /**
1355
+ * @generated from message api.v1.ExpandedDescriptionResult
1356
+ */
1357
+ export declare type ExpandedDescriptionResult = Message<"api.v1.ExpandedDescriptionResult"> & {
1358
+ /**
1359
+ * @generated from field: string overview = 1;
1360
+ */
1361
+ overview: string;
1362
+
1363
+ /**
1364
+ * @generated from field: string details = 2;
1365
+ */
1366
+ details: string;
1367
+
1368
+ /**
1369
+ * @generated from field: string technical_context = 3;
1370
+ */
1371
+ technicalContext: string;
1372
+
1373
+ /**
1374
+ * @generated from field: repeated api.v1.AcceptanceCriterion acceptance_criteria = 4;
1375
+ */
1376
+ acceptanceCriteria: AcceptanceCriterion[];
1377
+
1378
+ /**
1379
+ * @generated from field: repeated api.v1.TechnicalHint technical_hints = 5;
1380
+ */
1381
+ technicalHints: TechnicalHint[];
1382
+
1383
+ /**
1384
+ * @generated from field: string suggested_approach = 6;
1385
+ */
1386
+ suggestedApproach: string;
1387
+
1388
+ /**
1389
+ * @generated from field: string estimated_complexity = 7;
1390
+ */
1391
+ estimatedComplexity: string;
1392
+
1393
+ /**
1394
+ * Pre-formatted for BlockEditor
1395
+ *
1396
+ * @generated from field: string description_block_json = 8;
1397
+ */
1398
+ descriptionBlockJson: string;
1399
+ };
1400
+
1401
+ /**
1402
+ * Describes the message api.v1.ExpandedDescriptionResult.
1403
+ * Use `create(ExpandedDescriptionResultSchema)` to create a new message.
1404
+ */
1405
+ export declare const ExpandedDescriptionResultSchema: GenMessage<ExpandedDescriptionResult>;
1406
+
1407
+ /**
1408
+ * @generated from message api.v1.AcceptanceCriterion
1409
+ */
1410
+ export declare type AcceptanceCriterion = Message<"api.v1.AcceptanceCriterion"> & {
1411
+ /**
1412
+ * @generated from field: string id = 1;
1413
+ */
1414
+ id: string;
1415
+
1416
+ /**
1417
+ * @generated from field: string description = 2;
1418
+ */
1419
+ description: string;
1420
+
1421
+ /**
1422
+ * functional, performance, security, ui, integration
1423
+ *
1424
+ * @generated from field: string type = 3;
1425
+ */
1426
+ type: string;
1427
+ };
1428
+
1429
+ /**
1430
+ * Describes the message api.v1.AcceptanceCriterion.
1431
+ * Use `create(AcceptanceCriterionSchema)` to create a new message.
1432
+ */
1433
+ export declare const AcceptanceCriterionSchema: GenMessage<AcceptanceCriterion>;
1434
+
1435
+ /**
1436
+ * @generated from message api.v1.TechnicalHint
1437
+ */
1438
+ export declare type TechnicalHint = Message<"api.v1.TechnicalHint"> & {
1439
+ /**
1440
+ * files_to_modify, patterns_to_follow, gotchas, dependencies, testing
1441
+ *
1442
+ * @generated from field: string category = 1;
1443
+ */
1444
+ category: string;
1445
+
1446
+ /**
1447
+ * @generated from field: string hint = 2;
1448
+ */
1449
+ hint: string;
1450
+
1451
+ /**
1452
+ * @generated from field: repeated string files = 3;
1453
+ */
1454
+ files: string[];
1455
+ };
1456
+
1457
+ /**
1458
+ * Describes the message api.v1.TechnicalHint.
1459
+ * Use `create(TechnicalHintSchema)` to create a new message.
1460
+ */
1461
+ export declare const TechnicalHintSchema: GenMessage<TechnicalHint>;
1462
+
1463
+ /**
1464
+ * @generated from message api.v1.ApplyExpandedDescriptionRequest
1465
+ */
1466
+ export declare type ApplyExpandedDescriptionRequest = Message<"api.v1.ApplyExpandedDescriptionRequest"> & {
1467
+ /**
1468
+ * @generated from field: uint32 workflow_run_id = 1;
1469
+ */
1470
+ workflowRunId: number;
1471
+
1472
+ /**
1473
+ * Whether to append AC to description
1474
+ *
1475
+ * @generated from field: bool include_acceptance_criteria = 2;
1476
+ */
1477
+ includeAcceptanceCriteria: boolean;
1478
+
1479
+ /**
1480
+ * Whether to append hints to description
1481
+ *
1482
+ * @generated from field: bool include_technical_hints = 3;
1483
+ */
1484
+ includeTechnicalHints: boolean;
1485
+ };
1486
+
1487
+ /**
1488
+ * Describes the message api.v1.ApplyExpandedDescriptionRequest.
1489
+ * Use `create(ApplyExpandedDescriptionRequestSchema)` to create a new message.
1490
+ */
1491
+ export declare const ApplyExpandedDescriptionRequestSchema: GenMessage<ApplyExpandedDescriptionRequest>;
1492
+
1493
+ /**
1494
+ * @generated from message api.v1.ApplyExpandedDescriptionResponse
1495
+ */
1496
+ export declare type ApplyExpandedDescriptionResponse = Message<"api.v1.ApplyExpandedDescriptionResponse"> & {
1497
+ /**
1498
+ * @generated from field: bool success = 1;
1499
+ */
1500
+ success: boolean;
1501
+
1502
+ /**
1503
+ * @generated from field: string message = 2;
1504
+ */
1505
+ message: string;
1506
+
1507
+ /**
1508
+ * @generated from field: api.v1.Task updated_task = 3;
1509
+ */
1510
+ updatedTask?: Task;
1511
+ };
1512
+
1513
+ /**
1514
+ * Describes the message api.v1.ApplyExpandedDescriptionResponse.
1515
+ * Use `create(ApplyExpandedDescriptionResponseSchema)` to create a new message.
1516
+ */
1517
+ export declare const ApplyExpandedDescriptionResponseSchema: GenMessage<ApplyExpandedDescriptionResponse>;
1518
+
1519
+ /**
1520
+ * @generated from message api.v1.CompleteDescriptionExpansionRequest
1521
+ */
1522
+ export declare type CompleteDescriptionExpansionRequest = Message<"api.v1.CompleteDescriptionExpansionRequest"> & {
1523
+ /**
1524
+ * @generated from field: uint32 workflow_run_id = 1;
1525
+ */
1526
+ workflowRunId: number;
1527
+
1528
+ /**
1529
+ * @generated from field: string worker_id = 2;
1530
+ */
1531
+ workerId: string;
1532
+
1533
+ /**
1534
+ * @generated from field: string status = 3;
1535
+ */
1536
+ status: string;
1537
+
1538
+ /**
1539
+ * @generated from field: uint32 total_credits_used = 4;
1540
+ */
1541
+ totalCreditsUsed: number;
1542
+
1543
+ /**
1544
+ * @generated from field: float total_elapsed_seconds = 5;
1545
+ */
1546
+ totalElapsedSeconds: number;
1547
+
1548
+ /**
1549
+ * Human-readable summary
1550
+ *
1551
+ * @generated from field: string summary = 6;
1552
+ */
1553
+ summary: string;
1554
+
1555
+ /**
1556
+ * JSON with expanded description result
1557
+ *
1558
+ * @generated from field: string result_json = 7;
1559
+ */
1560
+ resultJson: string;
1561
+ };
1562
+
1563
+ /**
1564
+ * Describes the message api.v1.CompleteDescriptionExpansionRequest.
1565
+ * Use `create(CompleteDescriptionExpansionRequestSchema)` to create a new message.
1566
+ */
1567
+ export declare const CompleteDescriptionExpansionRequestSchema: GenMessage<CompleteDescriptionExpansionRequest>;
1568
+
1569
+ /**
1570
+ * @generated from message api.v1.CompleteDescriptionExpansionResponse
1571
+ */
1572
+ export declare type CompleteDescriptionExpansionResponse = Message<"api.v1.CompleteDescriptionExpansionResponse"> & {
1573
+ /**
1574
+ * @generated from field: api.v1.AIWorkflowRun workflow_run = 1;
1575
+ */
1576
+ workflowRun?: AIWorkflowRun;
1577
+ };
1578
+
1579
+ /**
1580
+ * Describes the message api.v1.CompleteDescriptionExpansionResponse.
1581
+ * Use `create(CompleteDescriptionExpansionResponseSchema)` to create a new message.
1582
+ */
1583
+ export declare const CompleteDescriptionExpansionResponseSchema: GenMessage<CompleteDescriptionExpansionResponse>;
1584
+
1585
+ /**
1586
+ * WorkflowType defines the type of workflow being executed
1587
+ *
1588
+ * @generated from enum api.v1.WorkflowType
1589
+ */
1590
+ export enum WorkflowType {
1591
+ /**
1592
+ * Default/unknown - will be treated as task workflow
1593
+ *
1594
+ * @generated from enum value: WORKFLOW_TYPE_UNSPECIFIED = 0;
1595
+ */
1596
+ UNSPECIFIED = 0,
1597
+
1598
+ /**
1599
+ * Standard task-based AI workflow
1600
+ *
1601
+ * @generated from enum value: WORKFLOW_TYPE_TASK = 1;
1602
+ */
1603
+ TASK = 1,
1604
+
1605
+ /**
1606
+ * Repository analysis workflow
1607
+ *
1608
+ * @generated from enum value: WORKFLOW_TYPE_ANALYZE = 2;
1609
+ */
1610
+ ANALYZE = 2,
1611
+
1612
+ /**
1613
+ * Subtask generation workflow
1614
+ *
1615
+ * @generated from enum value: WORKFLOW_TYPE_SUBTASK_GENERATION = 3;
1616
+ */
1617
+ SUBTASK_GENERATION = 3,
1618
+
1619
+ /**
1620
+ * Description expansion workflow
1621
+ *
1622
+ * @generated from enum value: WORKFLOW_TYPE_DESCRIPTION_EXPANSION = 4;
1623
+ */
1624
+ DESCRIPTION_EXPANSION = 4,
1625
+ }
1626
+
1627
+ /**
1628
+ * Describes the enum api.v1.WorkflowType.
1629
+ */
1630
+ export declare const WorkflowTypeSchema: GenEnum<WorkflowType>;
1631
+
1632
+ /**
1633
+ * OrchestratorService provides internal APIs for AI orchestrator workers
1634
+ *
1635
+ * @generated from service api.v1.OrchestratorService
1636
+ */
1637
+ export declare const OrchestratorService: GenService<{
1638
+ /**
1639
+ * Worker lifecycle management
1640
+ *
1641
+ * @generated from rpc api.v1.OrchestratorService.RegisterWorker
1642
+ */
1643
+ registerWorker: {
1644
+ methodKind: "unary";
1645
+ input: typeof RegisterWorkerRequestSchema;
1646
+ output: typeof RegisterWorkerResponseSchema;
1647
+ },
1648
+ /**
1649
+ * @generated from rpc api.v1.OrchestratorService.Heartbeat
1650
+ */
1651
+ heartbeat: {
1652
+ methodKind: "unary";
1653
+ input: typeof HeartbeatRequestSchema;
1654
+ output: typeof HeartbeatResponseSchema;
1655
+ },
1656
+ /**
1657
+ * Task and workflow operations
1658
+ *
1659
+ * @generated from rpc api.v1.OrchestratorService.GetTaskContext
1660
+ */
1661
+ getTaskContext: {
1662
+ methodKind: "unary";
1663
+ input: typeof GetTaskContextRequestSchema;
1664
+ output: typeof GetTaskContextResponseSchema;
1665
+ },
1666
+ /**
1667
+ * @generated from rpc api.v1.OrchestratorService.CreateWorkflowUnits
1668
+ */
1669
+ createWorkflowUnits: {
1670
+ methodKind: "unary";
1671
+ input: typeof CreateWorkflowUnitsRequestSchema;
1672
+ output: typeof CreateWorkflowUnitsResponseSchema;
1673
+ },
1674
+ /**
1675
+ * @generated from rpc api.v1.OrchestratorService.UpdateUnitProgress
1676
+ */
1677
+ updateUnitProgress: {
1678
+ methodKind: "unary";
1679
+ input: typeof UpdateUnitProgressRequestSchema;
1680
+ output: typeof UpdateUnitProgressResponseSchema;
1681
+ },
1682
+ /**
1683
+ * @generated from rpc api.v1.OrchestratorService.CompleteWorkflow
1684
+ */
1685
+ completeWorkflow: {
1686
+ methodKind: "unary";
1687
+ input: typeof CompleteWorkflowRequestSchema;
1688
+ output: typeof CompleteWorkflowResponseSchema;
1689
+ },
1690
+ /**
1691
+ * Configuration
1692
+ *
1693
+ * @generated from rpc api.v1.OrchestratorService.GetPromptConfig
1694
+ */
1695
+ getPromptConfig: {
1696
+ methodKind: "unary";
1697
+ input: typeof GetPromptConfigRequestSchema;
1698
+ output: typeof GetPromptConfigResponseSchema;
1699
+ },
1700
+ /**
1701
+ * @generated from rpc api.v1.OrchestratorService.GetModelConfig
1702
+ */
1703
+ getModelConfig: {
1704
+ methodKind: "unary";
1705
+ input: typeof GetModelConfigRequestSchema;
1706
+ output: typeof GetModelConfigResponseSchema;
1707
+ },
1708
+ /**
1709
+ * Repository analysis operations
1710
+ *
1711
+ * @generated from rpc api.v1.OrchestratorService.UpdateAnalysisProgress
1712
+ */
1713
+ updateAnalysisProgress: {
1714
+ methodKind: "unary";
1715
+ input: typeof UpdateAnalysisProgressRequestSchema;
1716
+ output: typeof UpdateAnalysisProgressResponseSchema;
1717
+ },
1718
+ /**
1719
+ * @generated from rpc api.v1.OrchestratorService.CompleteAnalysis
1720
+ */
1721
+ completeAnalysis: {
1722
+ methodKind: "unary";
1723
+ input: typeof CompleteAnalysisRequestSchema;
1724
+ output: typeof CompleteAnalysisResponseSchema;
1725
+ },
1726
+ /**
1727
+ * Workflow management (called by API backend)
1728
+ *
1729
+ * @generated from rpc api.v1.OrchestratorService.StartAIWorkflow
1730
+ */
1731
+ startAIWorkflow: {
1732
+ methodKind: "unary";
1733
+ input: typeof StartAIWorkflowRequestSchema;
1734
+ output: typeof StartAIWorkflowResponseSchema;
1735
+ },
1736
+ /**
1737
+ * @generated from rpc api.v1.OrchestratorService.StopAIWorkflow
1738
+ */
1739
+ stopAIWorkflow: {
1740
+ methodKind: "unary";
1741
+ input: typeof StopAIWorkflowRequestSchema;
1742
+ output: typeof StopAIWorkflowResponseSchema;
1743
+ },
1744
+ /**
1745
+ * @generated from rpc api.v1.OrchestratorService.GetAIWorkflowStatus
1746
+ */
1747
+ getAIWorkflowStatus: {
1748
+ methodKind: "unary";
1749
+ input: typeof GetAIWorkflowStatusRequestSchema;
1750
+ output: typeof GetAIWorkflowStatusResponseSchema;
1751
+ },
1752
+ /**
1753
+ * Subtask generation operations
1754
+ *
1755
+ * @generated from rpc api.v1.OrchestratorService.GenerateSubtasks
1756
+ */
1757
+ generateSubtasks: {
1758
+ methodKind: "unary";
1759
+ input: typeof GenerateSubtasksRequestSchema;
1760
+ output: typeof GenerateSubtasksResponseSchema;
1761
+ },
1762
+ /**
1763
+ * @generated from rpc api.v1.OrchestratorService.CreateSubtasks
1764
+ */
1765
+ createSubtasks: {
1766
+ methodKind: "unary";
1767
+ input: typeof CreateSubtasksRequestSchema;
1768
+ output: typeof CreateSubtasksResponseSchema;
1769
+ },
1770
+ /**
1771
+ * @generated from rpc api.v1.OrchestratorService.CompleteSubtaskGeneration
1772
+ */
1773
+ completeSubtaskGeneration: {
1774
+ methodKind: "unary";
1775
+ input: typeof CompleteSubtaskGenerationRequestSchema;
1776
+ output: typeof CompleteSubtaskGenerationResponseSchema;
1777
+ },
1778
+ /**
1779
+ * Description expansion operations
1780
+ *
1781
+ * @generated from rpc api.v1.OrchestratorService.ExpandTaskDescription
1782
+ */
1783
+ expandTaskDescription: {
1784
+ methodKind: "unary";
1785
+ input: typeof ExpandTaskDescriptionRequestSchema;
1786
+ output: typeof ExpandTaskDescriptionResponseSchema;
1787
+ },
1788
+ /**
1789
+ * @generated from rpc api.v1.OrchestratorService.GetExpandedDescription
1790
+ */
1791
+ getExpandedDescription: {
1792
+ methodKind: "unary";
1793
+ input: typeof GetExpandedDescriptionRequestSchema;
1794
+ output: typeof GetExpandedDescriptionResponseSchema;
1795
+ },
1796
+ /**
1797
+ * @generated from rpc api.v1.OrchestratorService.ApplyExpandedDescription
1798
+ */
1799
+ applyExpandedDescription: {
1800
+ methodKind: "unary";
1801
+ input: typeof ApplyExpandedDescriptionRequestSchema;
1802
+ output: typeof ApplyExpandedDescriptionResponseSchema;
1803
+ },
1804
+ /**
1805
+ * @generated from rpc api.v1.OrchestratorService.CompleteDescriptionExpansion
1806
+ */
1807
+ completeDescriptionExpansion: {
1808
+ methodKind: "unary";
1809
+ input: typeof CompleteDescriptionExpansionRequestSchema;
1810
+ output: typeof CompleteDescriptionExpansionResponseSchema;
1811
+ },
1812
+ }>;
1813
+