@opsee/mcp-server 0.11.6 → 0.11.9

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.
@@ -7,7 +7,7 @@ import type { Message } from "@bufbuild/protobuf";
7
7
  import type { Pagination } from "./pagination_pb";
8
8
  import type { FilterOptions } from "./filter_pb";
9
9
  import type { Comment, Initiative, InitiativeMemoryEntry, Task, TaskPullRequest } from "./models_pb";
10
- import type { EmptySchema } from "@bufbuild/protobuf/wkt";
10
+ import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
11
11
 
12
12
  /**
13
13
  * Describes the file api/v1/initiative.proto.
@@ -415,6 +415,14 @@ export declare type InitiativeCostRollup = Message<"api.v1.InitiativeCostRollup"
415
415
  * @generated from field: int64 total_cache_creation_tokens = 11;
416
416
  */
417
417
  totalCacheCreationTokens: bigint;
418
+
419
+ /**
420
+ * Credits reported by Foreman spend events in the Initiative's Run Record. Already folded into
421
+ * total_credits, model_costs and the token totals above; broken out so the two lanes stay legible.
422
+ *
423
+ * @generated from field: int64 run_record_credits = 12;
424
+ */
425
+ runRecordCredits: bigint;
418
426
  };
419
427
 
420
428
  /**
@@ -1008,6 +1016,795 @@ export declare type ReconcileInitiativeResponse = Message<"api.v1.ReconcileIniti
1008
1016
  */
1009
1017
  export declare const ReconcileInitiativeResponseSchema: GenMessage<ReconcileInitiativeResponse>;
1010
1018
 
1019
+ /**
1020
+ * @generated from message api.v1.Run
1021
+ */
1022
+ export declare type Run = Message<"api.v1.Run"> & {
1023
+ /**
1024
+ * @generated from field: uint32 id = 1;
1025
+ */
1026
+ id: number;
1027
+
1028
+ /**
1029
+ * @generated from field: uint32 initiative_id = 2;
1030
+ */
1031
+ initiativeId: number;
1032
+
1033
+ /**
1034
+ * @generated from field: uint32 company_id = 3;
1035
+ */
1036
+ companyId: number;
1037
+
1038
+ /**
1039
+ * mirrors Initiative.status: draft | active | paused | completed | abandoned
1040
+ *
1041
+ * @generated from field: string status = 4;
1042
+ */
1043
+ status: string;
1044
+
1045
+ /**
1046
+ * @generated from field: int64 event_count = 5;
1047
+ */
1048
+ eventCount: bigint;
1049
+
1050
+ /**
1051
+ * first event append
1052
+ *
1053
+ * @generated from field: google.protobuf.Timestamp started_at = 6;
1054
+ */
1055
+ startedAt?: Timestamp;
1056
+
1057
+ /**
1058
+ * @generated from field: google.protobuf.Timestamp last_event_at = 7;
1059
+ */
1060
+ lastEventAt?: Timestamp;
1061
+ };
1062
+
1063
+ /**
1064
+ * Describes the message api.v1.Run.
1065
+ * Use `create(RunSchema)` to create a new message.
1066
+ */
1067
+ export declare const RunSchema: GenMessage<Run>;
1068
+
1069
+ /**
1070
+ * RunVerification is the orchestrator Workflow Ledger's Verification shape (orchestrator/internal/ledger):
1071
+ * the log of one deterministic command. Gate and Verdict events carry it so both lanes render the same way.
1072
+ *
1073
+ * @generated from message api.v1.RunVerification
1074
+ */
1075
+ export declare type RunVerification = Message<"api.v1.RunVerification"> & {
1076
+ /**
1077
+ * @generated from field: string id = 1;
1078
+ */
1079
+ id: string;
1080
+
1081
+ /**
1082
+ * @generated from field: string stage = 2;
1083
+ */
1084
+ stage: string;
1085
+
1086
+ /**
1087
+ * @generated from field: string tool = 3;
1088
+ */
1089
+ tool: string;
1090
+
1091
+ /**
1092
+ * @generated from field: string command = 4;
1093
+ */
1094
+ command: string;
1095
+
1096
+ /**
1097
+ * @generated from field: string cwd = 5;
1098
+ */
1099
+ cwd: string;
1100
+
1101
+ /**
1102
+ * @generated from field: int32 exit_code = 6;
1103
+ */
1104
+ exitCode: number;
1105
+
1106
+ /**
1107
+ * @generated from field: int64 duration_ms = 7;
1108
+ */
1109
+ durationMs: bigint;
1110
+
1111
+ /**
1112
+ * @generated from field: string stdout_tail = 8;
1113
+ */
1114
+ stdoutTail: string;
1115
+
1116
+ /**
1117
+ * @generated from field: string stderr_tail = 9;
1118
+ */
1119
+ stderrTail: string;
1120
+
1121
+ /**
1122
+ * @generated from field: repeated string related_assumption_ids = 10;
1123
+ */
1124
+ relatedAssumptionIds: string[];
1125
+
1126
+ /**
1127
+ * @generated from field: google.protobuf.Timestamp at = 11;
1128
+ */
1129
+ at?: Timestamp;
1130
+ };
1131
+
1132
+ /**
1133
+ * Describes the message api.v1.RunVerification.
1134
+ * Use `create(RunVerificationSchema)` to create a new message.
1135
+ */
1136
+ export declare const RunVerificationSchema: GenMessage<RunVerification>;
1137
+
1138
+ /**
1139
+ * A Worker was started on a Task.
1140
+ *
1141
+ * @generated from message api.v1.RunDispatchEvent
1142
+ */
1143
+ export declare type RunDispatchEvent = Message<"api.v1.RunDispatchEvent"> & {
1144
+ /**
1145
+ * claude-code | codex | ...
1146
+ *
1147
+ * @generated from field: string vendor = 1;
1148
+ */
1149
+ vendor: string;
1150
+
1151
+ /**
1152
+ * Account label, never a credential
1153
+ *
1154
+ * @generated from field: string account = 2;
1155
+ */
1156
+ account: string;
1157
+
1158
+ /**
1159
+ * Workspace path on the user's machine
1160
+ *
1161
+ * @generated from field: string workspace = 3;
1162
+ */
1163
+ workspace: string;
1164
+
1165
+ /**
1166
+ * @generated from field: string branch = 4;
1167
+ */
1168
+ branch: string;
1169
+
1170
+ /**
1171
+ * @generated from field: int32 attempt = 5;
1172
+ */
1173
+ attempt: number;
1174
+ };
1175
+
1176
+ /**
1177
+ * Describes the message api.v1.RunDispatchEvent.
1178
+ * Use `create(RunDispatchEventSchema)` to create a new message.
1179
+ */
1180
+ export declare const RunDispatchEventSchema: GenMessage<RunDispatchEvent>;
1181
+
1182
+ /**
1183
+ * A Worker turn ended (or stalled). Vendor session ids are Process Table facts and never appear here.
1184
+ *
1185
+ * @generated from message api.v1.RunAttemptEvent
1186
+ */
1187
+ export declare type RunAttemptEvent = Message<"api.v1.RunAttemptEvent"> & {
1188
+ /**
1189
+ * @generated from field: int32 attempt = 1;
1190
+ */
1191
+ attempt: number;
1192
+
1193
+ /**
1194
+ * @generated from field: string outcome = 2;
1195
+ */
1196
+ outcome: string;
1197
+
1198
+ /**
1199
+ * @generated from field: string summary = 3;
1200
+ */
1201
+ summary: string;
1202
+
1203
+ /**
1204
+ * the draft PR
1205
+ *
1206
+ * @generated from field: optional string hand_off_url = 4;
1207
+ */
1208
+ handOffUrl?: string;
1209
+ };
1210
+
1211
+ /**
1212
+ * Describes the message api.v1.RunAttemptEvent.
1213
+ * Use `create(RunAttemptEventSchema)` to create a new message.
1214
+ */
1215
+ export declare const RunAttemptEventSchema: GenMessage<RunAttemptEvent>;
1216
+
1217
+ /**
1218
+ * A Gate ran in a Workspace after a Hand-off. Pass or fail is the verification's exit code.
1219
+ *
1220
+ * @generated from message api.v1.RunGateEvent
1221
+ */
1222
+ export declare type RunGateEvent = Message<"api.v1.RunGateEvent"> & {
1223
+ /**
1224
+ * test | lint | typecheck | build | ...
1225
+ *
1226
+ * @generated from field: string name = 1;
1227
+ */
1228
+ name: string;
1229
+
1230
+ /**
1231
+ * @generated from field: api.v1.RunVerification verification = 2;
1232
+ */
1233
+ verification?: RunVerification;
1234
+ };
1235
+
1236
+ /**
1237
+ * Describes the message api.v1.RunGateEvent.
1238
+ * Use `create(RunGateEventSchema)` to create a new message.
1239
+ */
1240
+ export declare const RunGateEventSchema: GenMessage<RunGateEvent>;
1241
+
1242
+ /**
1243
+ * One failure a Verifier observed.
1244
+ *
1245
+ * @generated from message api.v1.RunDefect
1246
+ */
1247
+ export declare type RunDefect = Message<"api.v1.RunDefect"> & {
1248
+ /**
1249
+ * @generated from field: string title = 1;
1250
+ */
1251
+ title: string;
1252
+
1253
+ /**
1254
+ * @generated from field: string steps = 2;
1255
+ */
1256
+ steps: string;
1257
+
1258
+ /**
1259
+ * @generated from field: string expected = 3;
1260
+ */
1261
+ expected: string;
1262
+
1263
+ /**
1264
+ * @generated from field: string observed = 4;
1265
+ */
1266
+ observed: string;
1267
+
1268
+ /**
1269
+ * @generated from field: string evidence_url = 5;
1270
+ */
1271
+ evidenceUrl: string;
1272
+
1273
+ /**
1274
+ * the sibling Task filed for this Defect, once it exists
1275
+ *
1276
+ * @generated from field: optional uint32 task_id = 6;
1277
+ */
1278
+ taskId?: number;
1279
+ };
1280
+
1281
+ /**
1282
+ * Describes the message api.v1.RunDefect.
1283
+ * Use `create(RunDefectSchema)` to create a new message.
1284
+ */
1285
+ export declare const RunDefectSchema: GenMessage<RunDefect>;
1286
+
1287
+ /**
1288
+ * The Verifier's structured result.
1289
+ *
1290
+ * @generated from message api.v1.RunVerdictEvent
1291
+ */
1292
+ export declare type RunVerdictEvent = Message<"api.v1.RunVerdictEvent"> & {
1293
+ /**
1294
+ * @generated from field: string status = 1;
1295
+ */
1296
+ status: string;
1297
+
1298
+ /**
1299
+ * @generated from field: repeated api.v1.RunDefect defects = 2;
1300
+ */
1301
+ defects: RunDefect[];
1302
+
1303
+ /**
1304
+ * commands the Verifier ran, same shape as a Gate
1305
+ *
1306
+ * @generated from field: repeated api.v1.RunVerification evidence = 3;
1307
+ */
1308
+ evidence: RunVerification[];
1309
+ };
1310
+
1311
+ /**
1312
+ * Describes the message api.v1.RunVerdictEvent.
1313
+ * Use `create(RunVerdictEventSchema)` to create a new message.
1314
+ */
1315
+ export declare const RunVerdictEventSchema: GenMessage<RunVerdictEvent>;
1316
+
1317
+ /**
1318
+ * A Breaker halted new dispatch.
1319
+ *
1320
+ * @generated from message api.v1.RunBreakerEvent
1321
+ */
1322
+ export declare type RunBreakerEvent = Message<"api.v1.RunBreakerEvent"> & {
1323
+ /**
1324
+ * @generated from field: string condition = 1;
1325
+ */
1326
+ condition: string;
1327
+
1328
+ /**
1329
+ * @generated from field: string message = 2;
1330
+ */
1331
+ message: string;
1332
+ };
1333
+
1334
+ /**
1335
+ * Describes the message api.v1.RunBreakerEvent.
1336
+ * Use `create(RunBreakerEventSchema)` to create a new message.
1337
+ */
1338
+ export declare const RunBreakerEventSchema: GenMessage<RunBreakerEvent>;
1339
+
1340
+ /**
1341
+ * Spend on one Account. Joins the Initiative cost rollup (1 credit = $0.001 USD).
1342
+ *
1343
+ * @generated from message api.v1.RunSpendEvent
1344
+ */
1345
+ export declare type RunSpendEvent = Message<"api.v1.RunSpendEvent"> & {
1346
+ /**
1347
+ * @generated from field: int64 credits = 1;
1348
+ */
1349
+ credits: bigint;
1350
+
1351
+ /**
1352
+ * @generated from field: string vendor = 2;
1353
+ */
1354
+ vendor: string;
1355
+
1356
+ /**
1357
+ * @generated from field: string account = 3;
1358
+ */
1359
+ account: string;
1360
+
1361
+ /**
1362
+ * @generated from field: string model = 4;
1363
+ */
1364
+ model: string;
1365
+
1366
+ /**
1367
+ * @generated from field: int64 input_tokens = 5;
1368
+ */
1369
+ inputTokens: bigint;
1370
+
1371
+ /**
1372
+ * @generated from field: int64 output_tokens = 6;
1373
+ */
1374
+ outputTokens: bigint;
1375
+
1376
+ /**
1377
+ * @generated from field: int64 cache_read_tokens = 7;
1378
+ */
1379
+ cacheReadTokens: bigint;
1380
+
1381
+ /**
1382
+ * @generated from field: int64 cache_creation_tokens = 8;
1383
+ */
1384
+ cacheCreationTokens: bigint;
1385
+ };
1386
+
1387
+ /**
1388
+ * Describes the message api.v1.RunSpendEvent.
1389
+ * Use `create(RunSpendEventSchema)` to create a new message.
1390
+ */
1391
+ export declare const RunSpendEventSchema: GenMessage<RunSpendEvent>;
1392
+
1393
+ /**
1394
+ * A human steered the Run from the CLI (stories 53-56): took a Worker over (attach) or handed it
1395
+ * back (release), paused or resumed new dispatch for the whole Run, or cancelled an attempt.
1396
+ * Task-scoped for attach, release and cancel; Run-wide (no task_id) for pause and resume. A cancel
1397
+ * is followed by the attempt event that closes the attempt (outcome "stopped").
1398
+ *
1399
+ * @generated from message api.v1.RunControlEvent
1400
+ */
1401
+ export declare type RunControlEvent = Message<"api.v1.RunControlEvent"> & {
1402
+ /**
1403
+ * @generated from field: string action = 1;
1404
+ */
1405
+ action: string;
1406
+
1407
+ /**
1408
+ * @generated from field: string message = 2;
1409
+ */
1410
+ message: string;
1411
+ };
1412
+
1413
+ /**
1414
+ * Describes the message api.v1.RunControlEvent.
1415
+ * Use `create(RunControlEventSchema)` to create a new message.
1416
+ */
1417
+ export declare const RunControlEventSchema: GenMessage<RunControlEvent>;
1418
+
1419
+ /**
1420
+ * An Account's state changed (Account, cli/CONTEXT.md): the vendor refused a turn on it, its
1421
+ * credential was judged dead, or a human brought it back. `state` names where the Account arrived
1422
+ * rather than what happened to it, so one vocabulary covers a lift from either a pause or a
1423
+ * quarantine. Never a credential: an Account is identified by the label its operator gave it
1424
+ * (ADR-0013), never by the config directory or key variable behind it.
1425
+ *
1426
+ * @generated from message api.v1.RunAccountEvent
1427
+ */
1428
+ export declare type RunAccountEvent = Message<"api.v1.RunAccountEvent"> & {
1429
+ /**
1430
+ * @generated from field: string state = 1;
1431
+ */
1432
+ state: string;
1433
+
1434
+ /**
1435
+ * claude-code | codex
1436
+ *
1437
+ * @generated from field: string vendor = 2;
1438
+ */
1439
+ vendor: string;
1440
+
1441
+ /**
1442
+ * the Account's label
1443
+ *
1444
+ * @generated from field: string account = 3;
1445
+ */
1446
+ account: string;
1447
+
1448
+ /**
1449
+ * the vendor's own words, or the Foreman's
1450
+ *
1451
+ * @generated from field: string reason = 4;
1452
+ */
1453
+ reason: string;
1454
+
1455
+ /**
1456
+ * when a pause lifts; absent for the rest
1457
+ *
1458
+ * @generated from field: optional google.protobuf.Timestamp until = 5;
1459
+ */
1460
+ until?: Timestamp;
1461
+ };
1462
+
1463
+ /**
1464
+ * Describes the message api.v1.RunAccountEvent.
1465
+ * Use `create(RunAccountEventSchema)` to create a new message.
1466
+ */
1467
+ export declare const RunAccountEventSchema: GenMessage<RunAccountEvent>;
1468
+
1469
+ /**
1470
+ * The typed body of a RunEvent. Exactly one branch is set; the event's kind is derived from it.
1471
+ *
1472
+ * @generated from message api.v1.RunEventPayload
1473
+ */
1474
+ export declare type RunEventPayload = Message<"api.v1.RunEventPayload"> & {
1475
+ /**
1476
+ * @generated from oneof api.v1.RunEventPayload.payload
1477
+ */
1478
+ payload: {
1479
+ /**
1480
+ * @generated from field: api.v1.RunDispatchEvent dispatch = 1;
1481
+ */
1482
+ value: RunDispatchEvent;
1483
+ case: "dispatch";
1484
+ } | {
1485
+ /**
1486
+ * @generated from field: api.v1.RunAttemptEvent attempt = 2;
1487
+ */
1488
+ value: RunAttemptEvent;
1489
+ case: "attempt";
1490
+ } | {
1491
+ /**
1492
+ * @generated from field: api.v1.RunGateEvent gate = 3;
1493
+ */
1494
+ value: RunGateEvent;
1495
+ case: "gate";
1496
+ } | {
1497
+ /**
1498
+ * @generated from field: api.v1.RunVerdictEvent verdict = 4;
1499
+ */
1500
+ value: RunVerdictEvent;
1501
+ case: "verdict";
1502
+ } | {
1503
+ /**
1504
+ * @generated from field: api.v1.RunBreakerEvent breaker = 5;
1505
+ */
1506
+ value: RunBreakerEvent;
1507
+ case: "breaker";
1508
+ } | {
1509
+ /**
1510
+ * @generated from field: api.v1.RunSpendEvent spend = 6;
1511
+ */
1512
+ value: RunSpendEvent;
1513
+ case: "spend";
1514
+ } | {
1515
+ /**
1516
+ * @generated from field: api.v1.RunControlEvent control = 7;
1517
+ */
1518
+ value: RunControlEvent;
1519
+ case: "control";
1520
+ } | {
1521
+ /**
1522
+ * @generated from field: api.v1.RunAccountEvent account = 8;
1523
+ */
1524
+ value: RunAccountEvent;
1525
+ case: "account";
1526
+ } | { case: undefined; value?: undefined };
1527
+ };
1528
+
1529
+ /**
1530
+ * Describes the message api.v1.RunEventPayload.
1531
+ * Use `create(RunEventPayloadSchema)` to create a new message.
1532
+ */
1533
+ export declare const RunEventPayloadSchema: GenMessage<RunEventPayload>;
1534
+
1535
+ /**
1536
+ * @generated from message api.v1.RunEventInput
1537
+ */
1538
+ export declare type RunEventInput = Message<"api.v1.RunEventInput"> & {
1539
+ /**
1540
+ * the Task this fact is about; absent for Run-wide facts (breaker, spend, an Account brought back)
1541
+ *
1542
+ * @generated from field: optional uint32 task_id = 1;
1543
+ */
1544
+ taskId?: number;
1545
+
1546
+ /**
1547
+ * when it happened on the machine; server time when absent
1548
+ *
1549
+ * @generated from field: google.protobuf.Timestamp occurred_at = 2;
1550
+ */
1551
+ occurredAt?: Timestamp;
1552
+
1553
+ /**
1554
+ * @generated from field: api.v1.RunEventPayload payload = 3;
1555
+ */
1556
+ payload?: RunEventPayload;
1557
+
1558
+ /**
1559
+ * Client-minted, unique per event within a Run: an append carrying a key already stored is not
1560
+ * inserted again and the stored event is returned instead. The Foreman's outbox queues a write it
1561
+ * could not confirm and re-sends it later, and the codes it queues on (deadline exceeded, unknown)
1562
+ * are exactly the ones where the first write may already have committed; without this, that
1563
+ * re-send duplicates the event, and a duplicated dispatch makes every later attempt number on
1564
+ * that Task skip. Absent means no de-duplication: a caller that never retries needs none.
1565
+ *
1566
+ * @generated from field: optional string idempotency_key = 4;
1567
+ */
1568
+ idempotencyKey?: string;
1569
+ };
1570
+
1571
+ /**
1572
+ * Describes the message api.v1.RunEventInput.
1573
+ * Use `create(RunEventInputSchema)` to create a new message.
1574
+ */
1575
+ export declare const RunEventInputSchema: GenMessage<RunEventInput>;
1576
+
1577
+ /**
1578
+ * @generated from message api.v1.RunEvent
1579
+ */
1580
+ export declare type RunEvent = Message<"api.v1.RunEvent"> & {
1581
+ /**
1582
+ * @generated from field: uint32 id = 1;
1583
+ */
1584
+ id: number;
1585
+
1586
+ /**
1587
+ * @generated from field: uint32 run_id = 2;
1588
+ */
1589
+ runId: number;
1590
+
1591
+ /**
1592
+ * @generated from field: uint32 initiative_id = 3;
1593
+ */
1594
+ initiativeId: number;
1595
+
1596
+ /**
1597
+ * @generated from field: uint32 company_id = 4;
1598
+ */
1599
+ companyId: number;
1600
+
1601
+ /**
1602
+ * dispatch | attempt | gate | verdict | breaker | spend | control | account
1603
+ *
1604
+ * @generated from field: string kind = 5;
1605
+ */
1606
+ kind: string;
1607
+
1608
+ /**
1609
+ * @generated from field: optional uint32 task_id = 6;
1610
+ */
1611
+ taskId?: number;
1612
+
1613
+ /**
1614
+ * @generated from field: optional uint32 author_user_id = 7;
1615
+ */
1616
+ authorUserId?: number;
1617
+
1618
+ /**
1619
+ * @generated from field: bool is_agent = 8;
1620
+ */
1621
+ isAgent: boolean;
1622
+
1623
+ /**
1624
+ * @generated from field: google.protobuf.Timestamp occurred_at = 9;
1625
+ */
1626
+ occurredAt?: Timestamp;
1627
+
1628
+ /**
1629
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
1630
+ */
1631
+ createdAt?: Timestamp;
1632
+
1633
+ /**
1634
+ * @generated from field: api.v1.RunEventPayload payload = 11;
1635
+ */
1636
+ payload?: RunEventPayload;
1637
+ };
1638
+
1639
+ /**
1640
+ * Describes the message api.v1.RunEvent.
1641
+ * Use `create(RunEventSchema)` to create a new message.
1642
+ */
1643
+ export declare const RunEventSchema: GenMessage<RunEvent>;
1644
+
1645
+ /**
1646
+ * @generated from message api.v1.AppendRunEventsRequest
1647
+ */
1648
+ export declare type AppendRunEventsRequest = Message<"api.v1.AppendRunEventsRequest"> & {
1649
+ /**
1650
+ * @generated from field: uint32 initiative_id = 1;
1651
+ */
1652
+ initiativeId: number;
1653
+
1654
+ /**
1655
+ * @generated from field: repeated api.v1.RunEventInput events = 2;
1656
+ */
1657
+ events: RunEventInput[];
1658
+ };
1659
+
1660
+ /**
1661
+ * Describes the message api.v1.AppendRunEventsRequest.
1662
+ * Use `create(AppendRunEventsRequestSchema)` to create a new message.
1663
+ */
1664
+ export declare const AppendRunEventsRequestSchema: GenMessage<AppendRunEventsRequest>;
1665
+
1666
+ /**
1667
+ * @generated from message api.v1.AppendRunEventsResponse
1668
+ */
1669
+ export declare type AppendRunEventsResponse = Message<"api.v1.AppendRunEventsResponse"> & {
1670
+ /**
1671
+ * @generated from field: api.v1.Run run = 1;
1672
+ */
1673
+ run?: Run;
1674
+
1675
+ /**
1676
+ * in append order, ids assigned
1677
+ *
1678
+ * @generated from field: repeated api.v1.RunEvent events = 2;
1679
+ */
1680
+ events: RunEvent[];
1681
+ };
1682
+
1683
+ /**
1684
+ * Describes the message api.v1.AppendRunEventsResponse.
1685
+ * Use `create(AppendRunEventsResponseSchema)` to create a new message.
1686
+ */
1687
+ export declare const AppendRunEventsResponseSchema: GenMessage<AppendRunEventsResponse>;
1688
+
1689
+ /**
1690
+ * @generated from message api.v1.GetRunEventsRequest
1691
+ */
1692
+ export declare type GetRunEventsRequest = Message<"api.v1.GetRunEventsRequest"> & {
1693
+ /**
1694
+ * @generated from field: uint32 initiative_id = 1;
1695
+ */
1696
+ initiativeId: number;
1697
+
1698
+ /**
1699
+ * @generated from field: api.v1.Pagination pagination = 2;
1700
+ */
1701
+ pagination?: Pagination;
1702
+
1703
+ /**
1704
+ * empty = all
1705
+ *
1706
+ * @generated from field: repeated string kinds = 3;
1707
+ */
1708
+ kinds: string[];
1709
+
1710
+ /**
1711
+ * @generated from field: optional uint32 task_id = 4;
1712
+ */
1713
+ taskId?: number;
1714
+
1715
+ /**
1716
+ * only events with id > after_id, so Reconcile reads just what it has not seen
1717
+ *
1718
+ * @generated from field: optional uint32 after_id = 5;
1719
+ */
1720
+ afterId?: number;
1721
+ };
1722
+
1723
+ /**
1724
+ * Describes the message api.v1.GetRunEventsRequest.
1725
+ * Use `create(GetRunEventsRequestSchema)` to create a new message.
1726
+ */
1727
+ export declare const GetRunEventsRequestSchema: GenMessage<GetRunEventsRequest>;
1728
+
1729
+ /**
1730
+ * @generated from message api.v1.GetRunEventsResponse
1731
+ */
1732
+ export declare type GetRunEventsResponse = Message<"api.v1.GetRunEventsResponse"> & {
1733
+ /**
1734
+ * absent when no event has been appended yet
1735
+ *
1736
+ * @generated from field: api.v1.Run run = 1;
1737
+ */
1738
+ run?: Run;
1739
+
1740
+ /**
1741
+ * append order (id ascending)
1742
+ *
1743
+ * @generated from field: repeated api.v1.RunEvent events = 2;
1744
+ */
1745
+ events: RunEvent[];
1746
+
1747
+ /**
1748
+ * @generated from field: api.v1.Pagination pagination = 3;
1749
+ */
1750
+ pagination?: Pagination;
1751
+ };
1752
+
1753
+ /**
1754
+ * Describes the message api.v1.GetRunEventsResponse.
1755
+ * Use `create(GetRunEventsResponseSchema)` to create a new message.
1756
+ */
1757
+ export declare const GetRunEventsResponseSchema: GenMessage<GetRunEventsResponse>;
1758
+
1759
+ /**
1760
+ * Ready Tasks: the Tasks in the Initiative's first open slice (no open blocker) that carry the dispatch
1761
+ * label `ready-for-agent`. Done and Archived Tasks are neither ready nor blockers.
1762
+ *
1763
+ * @generated from message api.v1.GetReadyTasksRequest
1764
+ */
1765
+ export declare type GetReadyTasksRequest = Message<"api.v1.GetReadyTasksRequest"> & {
1766
+ /**
1767
+ * @generated from field: uint32 initiative_id = 1;
1768
+ */
1769
+ initiativeId: number;
1770
+ };
1771
+
1772
+ /**
1773
+ * Describes the message api.v1.GetReadyTasksRequest.
1774
+ * Use `create(GetReadyTasksRequestSchema)` to create a new message.
1775
+ */
1776
+ export declare const GetReadyTasksRequestSchema: GenMessage<GetReadyTasksRequest>;
1777
+
1778
+ /**
1779
+ * @generated from message api.v1.GetReadyTasksResponse
1780
+ */
1781
+ export declare type GetReadyTasksResponse = Message<"api.v1.GetReadyTasksResponse"> & {
1782
+ /**
1783
+ * @generated from field: repeated api.v1.Task tasks = 1;
1784
+ */
1785
+ tasks: Task[];
1786
+
1787
+ /**
1788
+ * the label name matched
1789
+ *
1790
+ * @generated from field: string dispatch_label = 2;
1791
+ */
1792
+ dispatchLabel: string;
1793
+
1794
+ /**
1795
+ * false when the project has no such label: nothing can ever be ready
1796
+ *
1797
+ * @generated from field: bool dispatch_label_exists = 3;
1798
+ */
1799
+ dispatchLabelExists: boolean;
1800
+ };
1801
+
1802
+ /**
1803
+ * Describes the message api.v1.GetReadyTasksResponse.
1804
+ * Use `create(GetReadyTasksResponseSchema)` to create a new message.
1805
+ */
1806
+ export declare const GetReadyTasksResponseSchema: GenMessage<GetReadyTasksResponse>;
1807
+
1011
1808
  /**
1012
1809
  * @generated from service api.v1.InitiativeService
1013
1810
  */
@@ -1108,5 +1905,29 @@ export declare const InitiativeService: GenService<{
1108
1905
  input: typeof ReconcileInitiativeRequestSchema;
1109
1906
  output: typeof ReconcileInitiativeResponseSchema;
1110
1907
  },
1908
+ /**
1909
+ * @generated from rpc api.v1.InitiativeService.AppendRunEvents
1910
+ */
1911
+ appendRunEvents: {
1912
+ methodKind: "unary";
1913
+ input: typeof AppendRunEventsRequestSchema;
1914
+ output: typeof AppendRunEventsResponseSchema;
1915
+ },
1916
+ /**
1917
+ * @generated from rpc api.v1.InitiativeService.GetRunEvents
1918
+ */
1919
+ getRunEvents: {
1920
+ methodKind: "unary";
1921
+ input: typeof GetRunEventsRequestSchema;
1922
+ output: typeof GetRunEventsResponseSchema;
1923
+ },
1924
+ /**
1925
+ * @generated from rpc api.v1.InitiativeService.GetReadyTasks
1926
+ */
1927
+ getReadyTasks: {
1928
+ methodKind: "unary";
1929
+ input: typeof GetReadyTasksRequestSchema;
1930
+ output: typeof GetReadyTasksResponseSchema;
1931
+ },
1111
1932
  }>;
1112
1933