@pellux/goodvibes-contracts 0.38.0 → 1.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.
@@ -191,7 +191,7 @@ export interface OperatorMethodInputMap {
191
191
  jobId: string;
192
192
  };
193
193
  "automation.jobs.list": {};
194
- "automation.jobs.patch": ({
194
+ "automation.jobs.update": ({
195
195
  jobId?: string;
196
196
  name?: string;
197
197
  description?: string;
@@ -285,12 +285,6 @@ export interface OperatorMethodInputMap {
285
285
  } & {
286
286
  readonly [key: string]: unknown;
287
287
  });
288
- "automation.jobs.pause": {
289
- jobId: string;
290
- };
291
- "automation.jobs.resume": {
292
- jobId: string;
293
- };
294
288
  "automation.jobs.run": {
295
289
  jobId: string;
296
290
  };
@@ -495,6 +489,28 @@ export interface OperatorMethodInputMap {
495
489
  "channels.tools.surface.list": {
496
490
  surface: string;
497
491
  };
492
+ "checkpoints.create": {
493
+ kind: "agent-run" | "manual" | "turn";
494
+ label?: string;
495
+ retentionClass?: "forensic" | "short" | "standard";
496
+ turnId?: string;
497
+ agentId?: string;
498
+ paths?: readonly string[];
499
+ };
500
+ "checkpoints.diff": {
501
+ a: string;
502
+ b?: string;
503
+ };
504
+ "checkpoints.list": {
505
+ kind?: "agent-run" | "manual" | "turn";
506
+ since?: number;
507
+ limit?: number;
508
+ };
509
+ "checkpoints.restore": {
510
+ id: string;
511
+ paths?: readonly string[];
512
+ safetyCheckpoint?: boolean;
513
+ };
498
514
  "companion.chat.events.stream": {
499
515
  sessionId: string;
500
516
  };
@@ -513,6 +529,9 @@ export interface OperatorMethodInputMap {
513
529
  "companion.chat.messages.list": {
514
530
  sessionId: string;
515
531
  };
532
+ "companion.chat.sessions.close": {
533
+ sessionId: string;
534
+ };
516
535
  "companion.chat.sessions.create": ({
517
536
  title?: string;
518
537
  provider?: string;
@@ -576,6 +595,13 @@ export interface OperatorMethodInputMap {
576
595
  deliveryId: string;
577
596
  };
578
597
  "deliveries.list": {};
598
+ "fleet.list": {
599
+ kinds?: readonly string[];
600
+ states?: readonly string[];
601
+ limit?: number;
602
+ cursor?: string;
603
+ };
604
+ "fleet.snapshot": {};
579
605
  "health.snapshot": {};
580
606
  "intelligence.snapshot": {};
581
607
  "knowledge.candidate.decide": ({
@@ -1209,7 +1235,7 @@ export interface OperatorMethodInputMap {
1209
1235
  bindingId: string;
1210
1236
  };
1211
1237
  "routes.bindings.list": {};
1212
- "routes.bindings.patch": ({
1238
+ "routes.bindings.update": ({
1213
1239
  bindingId?: string;
1214
1240
  sessionPolicy?: string;
1215
1241
  threadPolicy?: string;
@@ -1229,7 +1255,7 @@ export interface OperatorMethodInputMap {
1229
1255
  readonly [key: string]: unknown;
1230
1256
  });
1231
1257
  "routes.snapshot": {};
1232
- "schedules.create": ({
1258
+ "automation.schedules.create": ({
1233
1259
  name?: string;
1234
1260
  prompt: string;
1235
1261
  kind?: string;
@@ -1303,17 +1329,17 @@ export interface OperatorMethodInputMap {
1303
1329
  } & {
1304
1330
  readonly [key: string]: unknown;
1305
1331
  });
1306
- "schedules.delete": {
1332
+ "automation.schedules.delete": {
1307
1333
  scheduleId: string;
1308
1334
  };
1309
- "schedules.disable": {
1335
+ "automation.schedules.disable": {
1310
1336
  scheduleId: string;
1311
1337
  };
1312
- "schedules.enable": {
1338
+ "automation.schedules.enable": {
1313
1339
  scheduleId: string;
1314
1340
  };
1315
- "schedules.list": {};
1316
- "schedules.run": {
1341
+ "automation.schedules.list": {};
1342
+ "automation.schedules.run": {
1317
1343
  scheduleId: string;
1318
1344
  };
1319
1345
  "security.settings": {};
@@ -1333,6 +1359,13 @@ export interface OperatorMethodInputMap {
1333
1359
  } & {
1334
1360
  readonly [key: string]: unknown;
1335
1361
  });
1362
+ "sessions.delete": {
1363
+ sessionId: string;
1364
+ };
1365
+ "sessions.detach": {
1366
+ sessionId: string;
1367
+ surfaceId: string;
1368
+ };
1336
1369
  "sessions.followUp": ({
1337
1370
  body: string;
1338
1371
  surfaceKind?: string;
@@ -1407,6 +1440,16 @@ export interface OperatorMethodInputMap {
1407
1440
  "sessions.reopen": {
1408
1441
  sessionId: string;
1409
1442
  };
1443
+ "sessions.search": {
1444
+ query?: string;
1445
+ project?: string;
1446
+ kind?: string;
1447
+ surfaceKind?: string;
1448
+ status?: "active" | "closed";
1449
+ includeClosed?: boolean;
1450
+ limit?: number;
1451
+ cursor?: string;
1452
+ };
1410
1453
  "sessions.steer": ({
1411
1454
  body: string;
1412
1455
  surfaceKind?: string;
@@ -1714,7 +1757,7 @@ export interface OperatorMethodInputMap {
1714
1757
  watcherId: string;
1715
1758
  };
1716
1759
  "watchers.list": {};
1717
- "watchers.patch": ({
1760
+ "watchers.update": ({
1718
1761
  watcherId?: string;
1719
1762
  label?: string;
1720
1763
  kind?: string;
@@ -2735,7 +2778,7 @@ export interface OperatorMethodOutputMap {
2735
2778
  readonly [key: string]: unknown;
2736
2779
  }))[];
2737
2780
  };
2738
- "automation.jobs.patch": ({
2781
+ "automation.jobs.update": ({
2739
2782
  id: string;
2740
2783
  name: string;
2741
2784
  description?: string;
@@ -2879,18 +2922,6 @@ export interface OperatorMethodOutputMap {
2879
2922
  } & {
2880
2923
  readonly [key: string]: unknown;
2881
2924
  });
2882
- "automation.jobs.pause": ({
2883
- id: string;
2884
- enabled: boolean;
2885
- } & {
2886
- readonly [key: string]: unknown;
2887
- });
2888
- "automation.jobs.resume": ({
2889
- id: string;
2890
- enabled: boolean;
2891
- } & {
2892
- readonly [key: string]: unknown;
2893
- });
2894
2925
  "automation.jobs.run": ({
2895
2926
  jobId: string;
2896
2927
  runId: string;
@@ -4447,6 +4478,52 @@ export interface OperatorMethodOutputMap {
4447
4478
  });
4448
4479
  })[];
4449
4480
  };
4481
+ "checkpoints.create": {
4482
+ checkpoint: null | {
4483
+ id: string;
4484
+ kind: "agent-run" | "manual" | "turn";
4485
+ label: string;
4486
+ createdAt: number;
4487
+ parentId: null | string;
4488
+ turnId?: string;
4489
+ agentId?: string;
4490
+ retentionClass: "forensic" | "short" | "standard";
4491
+ commit: string;
4492
+ sizeBytes: number;
4493
+ };
4494
+ noop: boolean;
4495
+ };
4496
+ "checkpoints.diff": {
4497
+ diff: {
4498
+ from: string;
4499
+ to: string;
4500
+ files: readonly string[];
4501
+ unifiedDiff: string;
4502
+ stat: string;
4503
+ };
4504
+ };
4505
+ "checkpoints.list": {
4506
+ checkpoints: readonly ({
4507
+ id: string;
4508
+ kind: "agent-run" | "manual" | "turn";
4509
+ label: string;
4510
+ createdAt: number;
4511
+ parentId: null | string;
4512
+ turnId?: string;
4513
+ agentId?: string;
4514
+ retentionClass: "forensic" | "short" | "standard";
4515
+ commit: string;
4516
+ sizeBytes: number;
4517
+ })[];
4518
+ };
4519
+ "checkpoints.restore": {
4520
+ result: {
4521
+ checkpointId: string;
4522
+ safetyCheckpointId: null | string;
4523
+ restoredFiles: readonly string[];
4524
+ removedFiles: readonly string[];
4525
+ };
4526
+ };
4450
4527
  "companion.chat.events.stream": {};
4451
4528
  "companion.chat.messages.create": {
4452
4529
  messageId: string;
@@ -4455,6 +4532,10 @@ export interface OperatorMethodOutputMap {
4455
4532
  sessionId: string;
4456
4533
  messages: readonly CompanionChatMessage[];
4457
4534
  };
4535
+ "companion.chat.sessions.close": {
4536
+ sessionId: string;
4537
+ status: string;
4538
+ };
4458
4539
  "companion.chat.sessions.create": {
4459
4540
  sessionId: string;
4460
4541
  createdAt: number;
@@ -4462,7 +4543,7 @@ export interface OperatorMethodOutputMap {
4462
4543
  };
4463
4544
  "companion.chat.sessions.delete": {
4464
4545
  sessionId: string;
4465
- status: CompanionChatSessionStatus;
4546
+ deleted: boolean;
4466
4547
  };
4467
4548
  "companion.chat.sessions.get": {
4468
4549
  session: CompanionChatSession;
@@ -4995,6 +5076,104 @@ export interface OperatorMethodOutputMap {
4995
5076
  readonly [key: string]: unknown;
4996
5077
  }))[];
4997
5078
  };
5079
+ "fleet.list": {
5080
+ items: readonly (({
5081
+ id: string;
5082
+ kind: "agent" | "background-process" | "code-index" | "phase" | "schedule" | "trigger" | "watcher" | "work-item" | "workflow" | "workstream" | "wrfc-chain" | "wrfc-subtask";
5083
+ parentId?: string;
5084
+ label: string;
5085
+ task?: string;
5086
+ state: "awaiting-approval" | "done" | "executing-tool" | "failed" | "idle" | "interrupted" | "killed" | "paused" | "queued" | "retrying" | "stalled" | "streaming" | "thinking";
5087
+ startedAt?: number;
5088
+ completedAt?: number;
5089
+ elapsedMs: number;
5090
+ usage?: {
5091
+ inputTokens: number;
5092
+ outputTokens: number;
5093
+ cacheReadTokens: number;
5094
+ cacheWriteTokens: number;
5095
+ reasoningTokens?: number;
5096
+ llmCallCount: number;
5097
+ turnCount: number;
5098
+ toolCallCount: number;
5099
+ };
5100
+ model?: string;
5101
+ provider?: string;
5102
+ costUsd?: null | number;
5103
+ costState: "estimated" | "priced" | "unpriced";
5104
+ currentActivity?: {
5105
+ kind: "output-line" | "phase" | "tool";
5106
+ text: string;
5107
+ toolName?: string;
5108
+ at: number;
5109
+ };
5110
+ capabilities: {
5111
+ interruptible: boolean;
5112
+ killable: boolean;
5113
+ pausable: boolean;
5114
+ resumable: boolean;
5115
+ steerable: boolean;
5116
+ };
5117
+ sessionRef?: {
5118
+ sessionId?: string;
5119
+ agentId?: string;
5120
+ };
5121
+ } & {
5122
+ readonly [key: string]: unknown;
5123
+ }))[];
5124
+ nextCursor?: string;
5125
+ hasMore: boolean;
5126
+ capturedAt: number;
5127
+ };
5128
+ "fleet.snapshot": {
5129
+ capturedAt: number;
5130
+ nodes: readonly (({
5131
+ id: string;
5132
+ kind: "agent" | "background-process" | "code-index" | "phase" | "schedule" | "trigger" | "watcher" | "work-item" | "workflow" | "workstream" | "wrfc-chain" | "wrfc-subtask";
5133
+ parentId?: string;
5134
+ label: string;
5135
+ task?: string;
5136
+ state: "awaiting-approval" | "done" | "executing-tool" | "failed" | "idle" | "interrupted" | "killed" | "paused" | "queued" | "retrying" | "stalled" | "streaming" | "thinking";
5137
+ startedAt?: number;
5138
+ completedAt?: number;
5139
+ elapsedMs: number;
5140
+ usage?: {
5141
+ inputTokens: number;
5142
+ outputTokens: number;
5143
+ cacheReadTokens: number;
5144
+ cacheWriteTokens: number;
5145
+ reasoningTokens?: number;
5146
+ llmCallCount: number;
5147
+ turnCount: number;
5148
+ toolCallCount: number;
5149
+ };
5150
+ model?: string;
5151
+ provider?: string;
5152
+ costUsd?: null | number;
5153
+ costState: "estimated" | "priced" | "unpriced";
5154
+ currentActivity?: {
5155
+ kind: "output-line" | "phase" | "tool";
5156
+ text: string;
5157
+ toolName?: string;
5158
+ at: number;
5159
+ };
5160
+ capabilities: {
5161
+ interruptible: boolean;
5162
+ killable: boolean;
5163
+ pausable: boolean;
5164
+ resumable: boolean;
5165
+ steerable: boolean;
5166
+ };
5167
+ sessionRef?: {
5168
+ sessionId?: string;
5169
+ agentId?: string;
5170
+ };
5171
+ } & {
5172
+ readonly [key: string]: unknown;
5173
+ }))[];
5174
+ truncated: boolean;
5175
+ totalCount: number;
5176
+ };
4998
5177
  "health.snapshot": ({
4999
5178
  overall: "degraded" | "healthy";
5000
5179
  degradedDomains: readonly string[];
@@ -7822,7 +8001,7 @@ export interface OperatorMethodOutputMap {
7822
8001
  readonly [key: string]: unknown;
7823
8002
  }))[];
7824
8003
  };
7825
- "routes.bindings.patch": ({
8004
+ "routes.bindings.update": ({
7826
8005
  id: string;
7827
8006
  kind: "channel" | "message" | "session" | "thread";
7828
8007
  surfaceKind: "bluebubbles" | "discord" | "google-chat" | "imessage" | "matrix" | "mattermost" | "msteams" | "ntfy" | "service" | "signal" | "slack" | "telegram" | "tui" | "web" | "webhook" | "whatsapp";
@@ -7879,7 +8058,7 @@ export interface OperatorMethodOutputMap {
7879
8058
  readonly [key: string]: unknown;
7880
8059
  }))[];
7881
8060
  };
7882
- "schedules.create": ({
8061
+ "automation.schedules.create": ({
7883
8062
  id: string;
7884
8063
  name: string;
7885
8064
  description?: string;
@@ -8023,25 +8202,25 @@ export interface OperatorMethodOutputMap {
8023
8202
  } & {
8024
8203
  readonly [key: string]: unknown;
8025
8204
  });
8026
- "schedules.delete": ({
8205
+ "automation.schedules.delete": ({
8027
8206
  removed: boolean;
8028
8207
  id?: string;
8029
8208
  } & {
8030
8209
  readonly [key: string]: unknown;
8031
8210
  });
8032
- "schedules.disable": ({
8211
+ "automation.schedules.disable": ({
8033
8212
  id: string;
8034
8213
  enabled: boolean;
8035
8214
  } & {
8036
8215
  readonly [key: string]: unknown;
8037
8216
  });
8038
- "schedules.enable": ({
8217
+ "automation.schedules.enable": ({
8039
8218
  id: string;
8040
8219
  enabled: boolean;
8041
8220
  } & {
8042
8221
  readonly [key: string]: unknown;
8043
8222
  });
8044
- "schedules.list": {
8223
+ "automation.schedules.list": {
8045
8224
  jobs: readonly (({
8046
8225
  id: string;
8047
8226
  name: string;
@@ -8369,7 +8548,7 @@ export interface OperatorMethodOutputMap {
8369
8548
  readonly [key: string]: unknown;
8370
8549
  }))[];
8371
8550
  };
8372
- "schedules.run": ({
8551
+ "automation.schedules.run": ({
8373
8552
  jobId: string;
8374
8553
  runId: string;
8375
8554
  agentId?: string;
@@ -8825,6 +9004,48 @@ export interface OperatorMethodOutputMap {
8825
9004
  });
8826
9005
  };
8827
9006
  };
9007
+ "sessions.delete": {
9008
+ sessionId: string;
9009
+ deleted: boolean;
9010
+ };
9011
+ "sessions.detach": ({
9012
+ session: {
9013
+ id: string;
9014
+ kind: string;
9015
+ project?: string;
9016
+ title: string;
9017
+ status: "active" | "closed";
9018
+ createdAt: number;
9019
+ updatedAt: number;
9020
+ lastMessageAt?: number;
9021
+ closedAt?: number;
9022
+ lastActivityAt: number;
9023
+ messageCount: number;
9024
+ retainedMessageCount?: number;
9025
+ pendingInputCount: number;
9026
+ routeIds: readonly string[];
9027
+ surfaceKinds: readonly string[];
9028
+ participants: readonly ({
9029
+ surfaceKind: string;
9030
+ surfaceId: string;
9031
+ externalId?: string;
9032
+ userId?: string;
9033
+ displayName?: string;
9034
+ routeId?: string;
9035
+ lastSeenAt: number;
9036
+ })[];
9037
+ activeAgentId?: string;
9038
+ lastAgentId?: string;
9039
+ lastError?: string;
9040
+ metadata: ({} & {
9041
+ readonly [key: string]: ({} & {
9042
+ readonly [key: string]: JsonValue;
9043
+ }) | boolean | null | number | readonly JsonValue[] | string;
9044
+ });
9045
+ };
9046
+ } & {
9047
+ readonly [key: string]: unknown;
9048
+ });
8828
9049
  "sessions.followUp": {
8829
9050
  session: null | {
8830
9051
  id: string;
@@ -9336,6 +9557,44 @@ export interface OperatorMethodOutputMap {
9336
9557
  } & {
9337
9558
  readonly [key: string]: unknown;
9338
9559
  });
9560
+ "sessions.search": {
9561
+ sessions: readonly ({
9562
+ id: string;
9563
+ kind: string;
9564
+ project?: string;
9565
+ title: string;
9566
+ status: "active" | "closed";
9567
+ createdAt: number;
9568
+ updatedAt: number;
9569
+ lastMessageAt?: number;
9570
+ closedAt?: number;
9571
+ lastActivityAt: number;
9572
+ messageCount: number;
9573
+ retainedMessageCount?: number;
9574
+ pendingInputCount: number;
9575
+ routeIds: readonly string[];
9576
+ surfaceKinds: readonly string[];
9577
+ participants: readonly ({
9578
+ surfaceKind: string;
9579
+ surfaceId: string;
9580
+ externalId?: string;
9581
+ userId?: string;
9582
+ displayName?: string;
9583
+ routeId?: string;
9584
+ lastSeenAt: number;
9585
+ })[];
9586
+ activeAgentId?: string;
9587
+ lastAgentId?: string;
9588
+ lastError?: string;
9589
+ metadata: ({} & {
9590
+ readonly [key: string]: ({} & {
9591
+ readonly [key: string]: JsonValue;
9592
+ }) | boolean | null | number | readonly JsonValue[] | string;
9593
+ });
9594
+ })[];
9595
+ nextCursor?: string;
9596
+ hasMore: boolean;
9597
+ };
9339
9598
  "sessions.steer": {
9340
9599
  session: null | {
9341
9600
  id: string;
@@ -10326,7 +10585,7 @@ export interface OperatorMethodOutputMap {
10326
10585
  readonly [key: string]: unknown;
10327
10586
  }))[];
10328
10587
  };
10329
- "watchers.patch": ({
10588
+ "watchers.update": ({
10330
10589
  id: string;
10331
10590
  kind: string;
10332
10591
  label: string;