@opsee/mcp-server 0.10.0 → 0.11.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 (55) hide show
  1. package/gen/api/v1/acceptance_criterion_pb.js +2 -1
  2. package/gen/api/v1/account_pb.d.ts +20 -0
  3. package/gen/api/v1/account_pb.js +1 -1
  4. package/gen/api/v1/activity_log_pb.js +2 -1
  5. package/gen/api/v1/ai_workflow_run_pb.js +2 -1
  6. package/gen/api/v1/ai_workflow_unit_pb.js +2 -1
  7. package/gen/api/v1/attachment_pb.js +2 -1
  8. package/gen/api/v1/board_column_pb.d.ts +75 -0
  9. package/gen/api/v1/board_column_pb.js +27 -5
  10. package/gen/api/v1/board_pb.js +2 -1
  11. package/gen/api/v1/comment_pb.d.ts +19 -0
  12. package/gen/api/v1/comment_pb.js +2 -1
  13. package/gen/api/v1/component_pb.js +2 -1
  14. package/gen/api/v1/cycle_pb.js +2 -1
  15. package/gen/api/v1/doc_page_pb.js +2 -1
  16. package/gen/api/v1/doc_space_pb.js +2 -1
  17. package/gen/api/v1/doc_template_pb.js +2 -1
  18. package/gen/api/v1/document_pb.js +2 -1
  19. package/gen/api/v1/initiative_pb.d.ts +181 -0
  20. package/gen/api/v1/initiative_pb.js +46 -17
  21. package/gen/api/v1/integration_pb.d.ts +559 -0
  22. package/gen/api/v1/integration_pb.js +123 -3
  23. package/gen/api/v1/label_pb.js +2 -1
  24. package/gen/api/v1/milestone_doc_page_pb.js +2 -1
  25. package/gen/api/v1/milestone_document_pb.js +2 -1
  26. package/gen/api/v1/milestone_pb.js +2 -1
  27. package/gen/api/v1/milestone_repository_pb.js +2 -1
  28. package/gen/api/v1/milestone_task_pb.js +2 -1
  29. package/gen/api/v1/models_pb.d.ts +55 -0
  30. package/gen/api/v1/models_pb.js +56 -49
  31. package/gen/api/v1/orchestrator_pb.d.ts +164 -1
  32. package/gen/api/v1/orchestrator_pb.js +81 -53
  33. package/gen/api/v1/project_membership_pb.d.ts +207 -1
  34. package/gen/api/v1/project_membership_pb.js +46 -2
  35. package/gen/api/v1/project_pb.d.ts +47 -3
  36. package/gen/api/v1/project_pb.js +29 -15
  37. package/gen/api/v1/readiness_pb.d.ts +229 -10
  38. package/gen/api/v1/readiness_pb.js +50 -7
  39. package/gen/api/v1/reporting_pb.js +2 -1
  40. package/gen/api/v1/subscription_pb.js +1 -1
  41. package/gen/api/v1/task_component_pb.js +2 -1
  42. package/gen/api/v1/task_contributor_pb.js +2 -1
  43. package/gen/api/v1/task_doc_page_pb.js +2 -1
  44. package/gen/api/v1/task_document_pb.js +2 -1
  45. package/gen/api/v1/task_label_pb.js +2 -1
  46. package/gen/api/v1/task_pb.d.ts +281 -1
  47. package/gen/api/v1/task_pb.js +73 -23
  48. package/gen/api/v1/task_priority_pb.js +2 -1
  49. package/gen/api/v1/task_repository_pb.js +2 -1
  50. package/gen/api/v1/task_subscription_pb.d.ts +146 -0
  51. package/gen/api/v1/task_subscription_pb.js +66 -0
  52. package/gen/api/v1/task_template_pb.js +2 -1
  53. package/gen/api/v1/task_type_pb.js +2 -1
  54. package/gen/api/v1/view_pb.js +2 -1
  55. package/package.json +1 -1
@@ -5,6 +5,7 @@
5
5
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
6
6
  import type { JsonObject, Message } from "@bufbuild/protobuf";
7
7
  import type { AIWorkflowRun, AIWorkflowUnit, DocPage, Project, Task, TaskDocPage, TaskDocument, TaskRepository, VCSIntegration } from "./models_pb";
8
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
9
  import type { ApplyGeneratedDocumentRequestSchema, ApplyGeneratedDocumentResponseSchema, GetDocumentGenerationResultRequestSchema, GetDocumentGenerationResultResponseSchema, StartDocumentGenerationRequestSchema, StartDocumentGenerationResponseSchema } from "./template_service_pb";
9
10
 
10
11
  /**
@@ -475,8 +476,62 @@ export declare type UpdateUnitProgressResponse = Message<"api.v1.UpdateUnitProgr
475
476
  export declare const UpdateUnitProgressResponseSchema: GenMessage<UpdateUnitProgressResponse>;
476
477
 
477
478
  /**
478
- * Workflow completion messages
479
+ * Per-model AI token usage for a workflow run. One entry per (unit, model);
480
+ * usage that cannot be attributed to a unit (e.g. PLAN-stage cost) is reported
481
+ * at the run level with unit_id unset. Credits are the orchestrator-computed,
482
+ * authoritative figure — the backend persists them as-is rather than re-pricing
483
+ * from token counts (see ai_workflow_token_usage).
479
484
  *
485
+ * @generated from message api.v1.TokenUsage
486
+ */
487
+ export declare type TokenUsage = Message<"api.v1.TokenUsage"> & {
488
+ /**
489
+ * @generated from field: string model = 1;
490
+ */
491
+ model: string;
492
+
493
+ /**
494
+ * @generated from field: int64 input_tokens = 2;
495
+ */
496
+ inputTokens: bigint;
497
+
498
+ /**
499
+ * @generated from field: int64 output_tokens = 3;
500
+ */
501
+ outputTokens: bigint;
502
+
503
+ /**
504
+ * @generated from field: int64 cache_read_tokens = 4;
505
+ */
506
+ cacheReadTokens: bigint;
507
+
508
+ /**
509
+ * @generated from field: int64 cache_creation_tokens = 5;
510
+ */
511
+ cacheCreationTokens: bigint;
512
+
513
+ /**
514
+ * orchestrator-computed, not recomputed downstream
515
+ *
516
+ * @generated from field: int64 credits = 6;
517
+ */
518
+ credits: bigint;
519
+
520
+ /**
521
+ * unset = run-level (e.g. PLAN)
522
+ *
523
+ * @generated from field: optional uint32 unit_id = 7;
524
+ */
525
+ unitId?: number;
526
+ };
527
+
528
+ /**
529
+ * Describes the message api.v1.TokenUsage.
530
+ * Use `create(TokenUsageSchema)` to create a new message.
531
+ */
532
+ export declare const TokenUsageSchema: GenMessage<TokenUsage>;
533
+
534
+ /**
480
535
  * @generated from message api.v1.CompleteWorkflowRequest
481
536
  */
482
537
  export declare type CompleteWorkflowRequest = Message<"api.v1.CompleteWorkflowRequest"> & {
@@ -525,6 +580,13 @@ export declare type CompleteWorkflowRequest = Message<"api.v1.CompleteWorkflowRe
525
580
  * @generated from field: optional string source_branch = 8;
526
581
  */
527
582
  sourceBranch?: string;
583
+
584
+ /**
585
+ * Per-model token usage breakdown (additive; total_credits_used remains authoritative)
586
+ *
587
+ * @generated from field: repeated api.v1.TokenUsage token_usage = 9;
588
+ */
589
+ tokenUsage: TokenUsage[];
528
590
  };
529
591
 
530
592
  /**
@@ -2003,6 +2065,99 @@ export declare type CompletePRReviewResponse = Message<"api.v1.CompletePRReviewR
2003
2065
  */
2004
2066
  export declare const CompletePRReviewResponseSchema: GenMessage<CompletePRReviewResponse>;
2005
2067
 
2068
+ /**
2069
+ * @generated from message api.v1.GetTaskPRReviewsRequest
2070
+ */
2071
+ export declare type GetTaskPRReviewsRequest = Message<"api.v1.GetTaskPRReviewsRequest"> & {
2072
+ /**
2073
+ * @generated from field: uint32 task_id = 1;
2074
+ */
2075
+ taskId: number;
2076
+ };
2077
+
2078
+ /**
2079
+ * Describes the message api.v1.GetTaskPRReviewsRequest.
2080
+ * Use `create(GetTaskPRReviewsRequestSchema)` to create a new message.
2081
+ */
2082
+ export declare const GetTaskPRReviewsRequestSchema: GenMessage<GetTaskPRReviewsRequest>;
2083
+
2084
+ /**
2085
+ * @generated from message api.v1.TaskPRReviewSummary
2086
+ */
2087
+ export declare type TaskPRReviewSummary = Message<"api.v1.TaskPRReviewSummary"> & {
2088
+ /**
2089
+ * @generated from field: uint32 id = 1;
2090
+ */
2091
+ id: number;
2092
+
2093
+ /**
2094
+ * @generated from field: uint32 task_pull_request_id = 2;
2095
+ */
2096
+ taskPullRequestId: number;
2097
+
2098
+ /**
2099
+ * @generated from field: int32 pr_number = 3;
2100
+ */
2101
+ prNumber: number;
2102
+
2103
+ /**
2104
+ * @generated from field: string pr_url = 4;
2105
+ */
2106
+ prUrl: string;
2107
+
2108
+ /**
2109
+ * @generated from field: string status = 5;
2110
+ */
2111
+ status: string;
2112
+
2113
+ /**
2114
+ * @generated from field: string summary = 6;
2115
+ */
2116
+ summary: string;
2117
+
2118
+ /**
2119
+ * @generated from field: repeated api.v1.PRReviewFinding findings = 7;
2120
+ */
2121
+ findings: PRReviewFinding[];
2122
+
2123
+ /**
2124
+ * @generated from field: string pr_comment_url = 8;
2125
+ */
2126
+ prCommentUrl: string;
2127
+
2128
+ /**
2129
+ * @generated from field: uint32 workflow_run_id = 9;
2130
+ */
2131
+ workflowRunId: number;
2132
+
2133
+ /**
2134
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
2135
+ */
2136
+ createdAt?: Timestamp;
2137
+ };
2138
+
2139
+ /**
2140
+ * Describes the message api.v1.TaskPRReviewSummary.
2141
+ * Use `create(TaskPRReviewSummarySchema)` to create a new message.
2142
+ */
2143
+ export declare const TaskPRReviewSummarySchema: GenMessage<TaskPRReviewSummary>;
2144
+
2145
+ /**
2146
+ * @generated from message api.v1.GetTaskPRReviewsResponse
2147
+ */
2148
+ export declare type GetTaskPRReviewsResponse = Message<"api.v1.GetTaskPRReviewsResponse"> & {
2149
+ /**
2150
+ * @generated from field: repeated api.v1.TaskPRReviewSummary reviews = 1;
2151
+ */
2152
+ reviews: TaskPRReviewSummary[];
2153
+ };
2154
+
2155
+ /**
2156
+ * Describes the message api.v1.GetTaskPRReviewsResponse.
2157
+ * Use `create(GetTaskPRReviewsResponseSchema)` to create a new message.
2158
+ */
2159
+ export declare const GetTaskPRReviewsResponseSchema: GenMessage<GetTaskPRReviewsResponse>;
2160
+
2006
2161
  /**
2007
2162
  * @generated from message api.v1.PRDiffFile
2008
2163
  */
@@ -2389,6 +2544,14 @@ export declare const OrchestratorService: GenService<{
2389
2544
  input: typeof PostPRReviewRequestSchema;
2390
2545
  output: typeof PostPRReviewResponseSchema;
2391
2546
  },
2547
+ /**
2548
+ * @generated from rpc api.v1.OrchestratorService.GetTaskPRReviews
2549
+ */
2550
+ getTaskPRReviews: {
2551
+ methodKind: "unary";
2552
+ input: typeof GetTaskPRReviewsRequestSchema;
2553
+ output: typeof GetTaskPRReviewsResponseSchema;
2554
+ },
2392
2555
  /**
2393
2556
  * Worker-facing (internal)
2394
2557
  *