@eve/board 0.2.1 → 0.4.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 (44) hide show
  1. package/dist/extension/_manifest.json +1 -1
  2. package/dist/extension/extension.d.ts +8 -5
  3. package/dist/extension/extension.mjs +48 -37
  4. package/dist/extension/hooks/claims.d.ts +2 -0
  5. package/dist/extension/hooks/claims.mjs +11 -0
  6. package/dist/extension/instructions.md +2 -2
  7. package/dist/extension/lib/authorize.d.ts +9 -6
  8. package/dist/extension/lib/board-channel.d.ts +7 -18
  9. package/dist/extension/lib/board-channel.mjs +59 -141
  10. package/dist/extension/lib/boards.d.ts +29 -4
  11. package/dist/extension/lib/boards.mjs +310 -45
  12. package/dist/extension/lib/claims.d.ts +38 -0
  13. package/dist/extension/lib/claims.mjs +239 -0
  14. package/dist/extension/lib/client.d.ts +41 -1
  15. package/dist/extension/lib/client.mjs +89 -12
  16. package/dist/extension/lib/inbound.d.ts +1 -1
  17. package/dist/extension/lib/inbound.mjs +1 -1
  18. package/dist/extension/lib/tools.d.ts +206 -9
  19. package/dist/extension/lib/tools.mjs +310 -52
  20. package/dist/extension/lib/watches.d.ts +3 -1
  21. package/dist/extension/lib/watches.mjs +1 -1
  22. package/dist/extension/skills/collaborate/SKILL.md +9 -6
  23. package/dist/extension/tools/block_task.d.ts +1 -1
  24. package/dist/extension/tools/block_task.mjs +2 -1
  25. package/dist/extension/tools/boards.d.ts +6 -0
  26. package/dist/extension/tools/boards.mjs +10 -0
  27. package/dist/extension/tools/claim_task.d.ts +70 -0
  28. package/dist/extension/tools/claim_task.mjs +10 -0
  29. package/dist/extension/tools/complete_task.d.ts +1 -1
  30. package/dist/extension/tools/complete_task.mjs +2 -1
  31. package/dist/extension/tools/create_task.d.ts +5 -0
  32. package/dist/extension/tools/fail_task.d.ts +1 -1
  33. package/dist/extension/tools/fail_task.mjs +2 -1
  34. package/dist/extension/tools/note.d.ts +5 -0
  35. package/dist/extension/tools/post.d.ts +10 -0
  36. package/dist/extension/tools/read.d.ts +40 -0
  37. package/dist/extension/tools/release_task.d.ts +3 -0
  38. package/dist/extension/tools/release_task.mjs +11 -0
  39. package/dist/extension/tools/reply.d.ts +10 -0
  40. package/dist/extension/tools/tasks.d.ts +40 -0
  41. package/dist/extension/tools/tasks.mjs +10 -0
  42. package/dist/tools/index.d.ts +4 -0
  43. package/dist/tools/index.mjs +5 -1
  44. package/package.json +4 -4
@@ -3,6 +3,12 @@ import { type BoardSettings } from "./client.ts";
3
3
  import { type BoardWatchAction } from "./watches.ts";
4
4
  type Settings = () => BoardSettings;
5
5
  export declare function holdsTask(ctx: Pick<ToolContext, "channel">): boolean;
6
+ export declare function holdsSessionTask(): boolean;
7
+ /** Lists the boards the agent can access. */
8
+ export declare function defineBoardBoardsTool(settings: Settings): import("eve/tools").ToolDefinition<Record<string, never>, {
9
+ readonly boards: readonly import("./boards.ts").AccessibleBoardSummary[];
10
+ readonly defaultBoardId: string | null;
11
+ }>;
6
12
  /** Lists the board's channels. */
7
13
  export declare function defineBoardChannelsTool(settings: Settings): import("eve/tools").ToolDefinition<{
8
14
  board?: string | undefined;
@@ -36,9 +42,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
36
42
  readonly kind: string | null;
37
43
  readonly reason: string;
38
44
  } | null;
45
+ for: string | null;
39
46
  holder: string | null;
47
+ needs: readonly string[];
48
+ owner: string;
49
+ reason: string | null;
40
50
  result: string | null;
41
51
  state: string;
52
+ until: string | null;
42
53
  } | undefined;
43
54
  };
44
55
  replies: {
@@ -55,9 +66,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
55
66
  readonly kind: string | null;
56
67
  readonly reason: string;
57
68
  } | null;
69
+ for: string | null;
58
70
  holder: string | null;
71
+ needs: readonly string[];
72
+ owner: string;
73
+ reason: string | null;
59
74
  result: string | null;
60
75
  state: string;
76
+ until: string | null;
61
77
  } | undefined;
62
78
  }[];
63
79
  } | {
@@ -79,9 +95,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
79
95
  readonly kind: string | null;
80
96
  readonly reason: string;
81
97
  } | null;
98
+ for: string | null;
82
99
  holder: string | null;
100
+ needs: readonly string[];
101
+ owner: string;
102
+ reason: string | null;
83
103
  result: string | null;
84
104
  state: string;
105
+ until: string | null;
85
106
  } | undefined;
86
107
  } | null;
87
108
  message: {
@@ -98,9 +119,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
98
119
  readonly kind: string | null;
99
120
  readonly reason: string;
100
121
  } | null;
122
+ for: string | null;
101
123
  holder: string | null;
124
+ needs: readonly string[];
125
+ owner: string;
126
+ reason: string | null;
102
127
  result: string | null;
103
128
  state: string;
129
+ until: string | null;
104
130
  } | undefined;
105
131
  };
106
132
  replies: number;
@@ -132,9 +158,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
132
158
  readonly kind: string | null;
133
159
  readonly reason: string;
134
160
  } | null;
161
+ for: string | null;
135
162
  holder: string | null;
163
+ needs: readonly string[];
164
+ owner: string;
165
+ reason: string | null;
136
166
  result: string | null;
137
167
  state: string;
168
+ until: string | null;
138
169
  } | undefined;
139
170
  };
140
171
  replies: {
@@ -151,9 +182,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
151
182
  readonly kind: string | null;
152
183
  readonly reason: string;
153
184
  } | null;
185
+ for: string | null;
154
186
  holder: string | null;
187
+ needs: readonly string[];
188
+ owner: string;
189
+ reason: string | null;
155
190
  result: string | null;
156
191
  state: string;
192
+ until: string | null;
157
193
  } | undefined;
158
194
  }[];
159
195
  } | {
@@ -175,9 +211,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
175
211
  readonly kind: string | null;
176
212
  readonly reason: string;
177
213
  } | null;
214
+ for: string | null;
178
215
  holder: string | null;
216
+ needs: readonly string[];
217
+ owner: string;
218
+ reason: string | null;
179
219
  result: string | null;
180
220
  state: string;
221
+ until: string | null;
181
222
  } | undefined;
182
223
  } | null;
183
224
  message: {
@@ -194,9 +235,14 @@ export declare function defineBoardReadTool(settings: Settings): import("eve/too
194
235
  readonly kind: string | null;
195
236
  readonly reason: string;
196
237
  } | null;
238
+ for: string | null;
197
239
  holder: string | null;
240
+ needs: readonly string[];
241
+ owner: string;
242
+ reason: string | null;
198
243
  result: string | null;
199
244
  state: string;
245
+ until: string | null;
200
246
  } | undefined;
201
247
  };
202
248
  replies: number;
@@ -226,9 +272,14 @@ export declare function defineBoardPostTool(settings: Settings): import("eve/too
226
272
  readonly kind: string | null;
227
273
  readonly reason: string;
228
274
  } | null;
275
+ for: string | null;
229
276
  holder: string | null;
277
+ needs: readonly string[];
278
+ owner: string;
279
+ reason: string | null;
230
280
  result: string | null;
231
281
  state: string;
282
+ until: string | null;
232
283
  } | undefined;
233
284
  }> & {
234
285
  execute(input: {
@@ -253,9 +304,14 @@ export declare function defineBoardPostTool(settings: Settings): import("eve/too
253
304
  readonly kind: string | null;
254
305
  readonly reason: string;
255
306
  } | null;
307
+ for: string | null;
256
308
  holder: string | null;
309
+ needs: readonly string[];
310
+ owner: string;
311
+ reason: string | null;
257
312
  result: string | null;
258
313
  state: string;
314
+ until: string | null;
259
315
  } | undefined;
260
316
  }>;
261
317
  };
@@ -282,9 +338,14 @@ export declare function defineBoardReplyTool(settings: Settings): import("eve/to
282
338
  readonly kind: string | null;
283
339
  readonly reason: string;
284
340
  } | null;
341
+ for: string | null;
285
342
  holder: string | null;
343
+ needs: readonly string[];
344
+ owner: string;
345
+ reason: string | null;
286
346
  result: string | null;
287
347
  state: string;
348
+ until: string | null;
288
349
  } | undefined;
289
350
  }> & {
290
351
  execute(input: {
@@ -309,9 +370,14 @@ export declare function defineBoardReplyTool(settings: Settings): import("eve/to
309
370
  readonly kind: string | null;
310
371
  readonly reason: string;
311
372
  } | null;
373
+ for: string | null;
312
374
  holder: string | null;
375
+ needs: readonly string[];
376
+ owner: string;
377
+ reason: string | null;
313
378
  result: string | null;
314
379
  state: string;
380
+ until: string | null;
315
381
  } | undefined;
316
382
  }>;
317
383
  };
@@ -335,9 +401,14 @@ export declare function defineBoardNoteTool(settings: Settings): import("eve/too
335
401
  readonly kind: string | null;
336
402
  readonly reason: string;
337
403
  } | null;
404
+ for: string | null;
338
405
  holder: string | null;
406
+ needs: readonly string[];
407
+ owner: string;
408
+ reason: string | null;
339
409
  result: string | null;
340
410
  state: string;
411
+ until: string | null;
341
412
  } | undefined;
342
413
  }>;
343
414
  /** Reacts to a message. */
@@ -430,18 +501,23 @@ export declare function defineBoardCreateTaskTool(settings: Settings): import("e
430
501
  readonly kind: string | null;
431
502
  readonly reason: string;
432
503
  } | null;
504
+ for: string | null;
433
505
  holder: string | null;
506
+ needs: readonly string[];
507
+ owner: string;
508
+ reason: string | null;
434
509
  result: string | null;
435
510
  state: string;
511
+ until: string | null;
436
512
  } | undefined;
437
513
  }>;
438
- export declare function defineBoardCompleteTaskTool(): import("eve/tools").ToolDefinition<{
514
+ export declare function defineBoardCompleteTaskTool(settings?: Settings): import("eve/tools").ToolDefinition<{
439
515
  result?: string | undefined;
440
516
  }, {
441
517
  result?: string;
442
518
  reason?: string;
443
519
  kind?: string;
444
- settled: "blocked" | "completed" | "failed";
520
+ settled: "blocked" | "completed" | "failed" | "released";
445
521
  task: string;
446
522
  }> & {
447
523
  execute(input: {
@@ -450,17 +526,17 @@ export declare function defineBoardCompleteTaskTool(): import("eve/tools").ToolD
450
526
  result?: string;
451
527
  reason?: string;
452
528
  kind?: string;
453
- settled: "blocked" | "completed" | "failed";
529
+ settled: "blocked" | "completed" | "failed" | "released";
454
530
  task: string;
455
531
  }>;
456
532
  };
457
- export declare function defineBoardFailTaskTool(): import("eve/tools").ToolDefinition<{
533
+ export declare function defineBoardFailTaskTool(settings?: Settings): import("eve/tools").ToolDefinition<{
458
534
  reason: string;
459
535
  }, {
460
536
  result?: string;
461
537
  reason?: string;
462
538
  kind?: string;
463
- settled: "blocked" | "completed" | "failed";
539
+ settled: "blocked" | "completed" | "failed" | "released";
464
540
  task: string;
465
541
  }> & {
466
542
  execute(input: {
@@ -469,18 +545,18 @@ export declare function defineBoardFailTaskTool(): import("eve/tools").ToolDefin
469
545
  result?: string;
470
546
  reason?: string;
471
547
  kind?: string;
472
- settled: "blocked" | "completed" | "failed";
548
+ settled: "blocked" | "completed" | "failed" | "released";
473
549
  task: string;
474
550
  }>;
475
551
  };
476
- export declare function defineBoardBlockTaskTool(): import("eve/tools").ToolDefinition<{
552
+ export declare function defineBoardBlockTaskTool(settings?: Settings): import("eve/tools").ToolDefinition<{
477
553
  reason: string;
478
554
  kind?: string | undefined;
479
555
  }, {
480
556
  result?: string;
481
557
  reason?: string;
482
558
  kind?: string;
483
- settled: "blocked" | "completed" | "failed";
559
+ settled: "blocked" | "completed" | "failed" | "released";
484
560
  task: string;
485
561
  }> & {
486
562
  execute(input: {
@@ -490,7 +566,22 @@ export declare function defineBoardBlockTaskTool(): import("eve/tools").ToolDefi
490
566
  result?: string;
491
567
  reason?: string;
492
568
  kind?: string;
493
- settled: "blocked" | "completed" | "failed";
569
+ settled: "blocked" | "completed" | "failed" | "released";
570
+ task: string;
571
+ }>;
572
+ };
573
+ export declare function defineBoardReleaseTaskTool(settings?: Settings): import("eve/tools").ToolDefinition<Record<string, never>, {
574
+ result?: string;
575
+ reason?: string;
576
+ kind?: string;
577
+ settled: "blocked" | "completed" | "failed" | "released";
578
+ task: string;
579
+ }> & {
580
+ execute(input: Record<string, never>, ctx: ToolContext): Promise<{
581
+ result?: string;
582
+ reason?: string;
583
+ kind?: string;
584
+ settled: "blocked" | "completed" | "failed" | "released";
494
585
  task: string;
495
586
  }>;
496
587
  };
@@ -545,4 +636,110 @@ export declare function defineBoardUnwatchTool(settings: Settings): import("eve/
545
636
  readonly id: string;
546
637
  readonly removed: boolean;
547
638
  }>;
639
+ export declare function defineBoardTasksTool(settings: Settings): import("eve/tools").ToolDefinition<{
640
+ board?: string | undefined;
641
+ channel?: string | undefined;
642
+ state?: "all" | "blocked" | "canceled" | "claimed" | "completed" | "failed" | "open" | "ready" | "waiting" | undefined;
643
+ label?: string[] | undefined;
644
+ owner?: string | undefined;
645
+ for?: string | undefined;
646
+ needs?: string | undefined;
647
+ after?: string | undefined;
648
+ limit?: number | undefined;
649
+ }, {
650
+ cursor: string;
651
+ tasks: {
652
+ attachments: string[];
653
+ author: string;
654
+ channel: string;
655
+ createdAt: string;
656
+ id: string;
657
+ labels: Readonly<Record<string, string>>;
658
+ re: string | null;
659
+ text: string;
660
+ task?: {
661
+ blocked: {
662
+ readonly kind: string | null;
663
+ readonly reason: string;
664
+ } | null;
665
+ for: string | null;
666
+ holder: string | null;
667
+ needs: readonly string[];
668
+ owner: string;
669
+ reason: string | null;
670
+ result: string | null;
671
+ state: string;
672
+ until: string | null;
673
+ } | undefined;
674
+ replies: number;
675
+ }[];
676
+ }>;
677
+ export declare function defineBoardClaimTaskTool(settings: Settings): import("eve/tools").ToolDefinition<{
678
+ board?: string | undefined;
679
+ id?: string | undefined;
680
+ channel?: string | undefined;
681
+ label?: Record<string, string> | undefined;
682
+ from?: string[] | undefined;
683
+ }, {
684
+ board?: undefined;
685
+ claimed: boolean;
686
+ task: null;
687
+ until?: undefined;
688
+ } | {
689
+ board?: undefined;
690
+ claimed: boolean;
691
+ task: {
692
+ attachments: string[];
693
+ author: string;
694
+ channel: string;
695
+ createdAt: string;
696
+ id: string;
697
+ labels: Readonly<Record<string, string>>;
698
+ re: string | null;
699
+ text: string;
700
+ task?: {
701
+ blocked: {
702
+ readonly kind: string | null;
703
+ readonly reason: string;
704
+ } | null;
705
+ for: string | null;
706
+ holder: string | null;
707
+ needs: readonly string[];
708
+ owner: string;
709
+ reason: string | null;
710
+ result: string | null;
711
+ state: string;
712
+ until: string | null;
713
+ } | undefined;
714
+ };
715
+ until: string;
716
+ } | {
717
+ board: string;
718
+ claimed: boolean;
719
+ task: {
720
+ attachments: string[];
721
+ author: string;
722
+ channel: string;
723
+ createdAt: string;
724
+ id: string;
725
+ labels: Readonly<Record<string, string>>;
726
+ re: string | null;
727
+ text: string;
728
+ task?: {
729
+ blocked: {
730
+ readonly kind: string | null;
731
+ readonly reason: string;
732
+ } | null;
733
+ for: string | null;
734
+ holder: string | null;
735
+ needs: readonly string[];
736
+ owner: string;
737
+ reason: string | null;
738
+ result: string | null;
739
+ state: string;
740
+ until: string | null;
741
+ } | undefined;
742
+ };
743
+ until: string;
744
+ }>;
548
745
  export {};