@knpkv/herdr-connect 0.3.1 → 0.4.1

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 (80) hide show
  1. package/README.md +2 -0
  2. package/dist/activity-store.d.ts +2 -2
  3. package/dist/activity-store.d.ts.map +1 -1
  4. package/dist/activity-store.js +20 -26
  5. package/dist/activity-store.js.map +1 -1
  6. package/dist/client.d.ts +986 -2
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +353 -54
  9. package/dist/client.js.map +1 -1
  10. package/dist/directory.d.ts +1 -1
  11. package/dist/directory.d.ts.map +1 -1
  12. package/dist/directory.js +1 -1
  13. package/dist/directory.js.map +1 -1
  14. package/dist/id.d.ts.map +1 -1
  15. package/dist/id.js +3 -2
  16. package/dist/id.js.map +1 -1
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +4 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/internal/terminal-release.d.ts.map +1 -1
  22. package/dist/internal/terminal-release.js +3 -1
  23. package/dist/internal/terminal-release.js.map +1 -1
  24. package/dist/model.d.ts.map +1 -1
  25. package/dist/model.js +3 -2
  26. package/dist/model.js.map +1 -1
  27. package/dist/relationship-store.d.ts +2 -2
  28. package/dist/relationship-store.d.ts.map +1 -1
  29. package/dist/relationship-store.js +23 -32
  30. package/dist/relationship-store.js.map +1 -1
  31. package/dist/terminal-dimensions.d.ts +25 -0
  32. package/dist/terminal-dimensions.d.ts.map +1 -0
  33. package/dist/terminal-dimensions.js +19 -0
  34. package/dist/terminal-dimensions.js.map +1 -0
  35. package/dist/terminal-keyboard.d.ts +52 -0
  36. package/dist/terminal-keyboard.d.ts.map +1 -0
  37. package/dist/terminal-keyboard.js +141 -0
  38. package/dist/terminal-keyboard.js.map +1 -0
  39. package/dist/terminal-output.d.ts +30 -0
  40. package/dist/terminal-output.d.ts.map +1 -0
  41. package/dist/terminal-output.js +54 -0
  42. package/dist/terminal-output.js.map +1 -0
  43. package/dist/terminal-rail-navigation.d.ts +4 -0
  44. package/dist/terminal-rail-navigation.d.ts.map +1 -0
  45. package/dist/terminal-rail-navigation.js +13 -0
  46. package/dist/terminal-rail-navigation.js.map +1 -0
  47. package/dist/terminal-viewport.d.ts +32 -2
  48. package/dist/terminal-viewport.d.ts.map +1 -1
  49. package/dist/terminal-viewport.js +131 -12
  50. package/dist/terminal-viewport.js.map +1 -1
  51. package/dist/terminal-worker-guard.d.ts +7 -0
  52. package/dist/terminal-worker-guard.d.ts.map +1 -0
  53. package/dist/terminal-worker-guard.js +11 -0
  54. package/dist/terminal-worker-guard.js.map +1 -0
  55. package/dist/terminal.d.ts +1746 -110
  56. package/dist/terminal.d.ts.map +1 -1
  57. package/dist/terminal.js +1 -1
  58. package/dist/terminal.js.map +1 -1
  59. package/dist/view.d.ts +15 -2
  60. package/dist/view.d.ts.map +1 -1
  61. package/dist/view.js +46 -2
  62. package/dist/view.js.map +1 -1
  63. package/dist/work-goal-link-view.d.ts +8 -0
  64. package/dist/work-goal-link-view.d.ts.map +1 -0
  65. package/dist/work-goal-link-view.js +3 -0
  66. package/dist/work-goal-link-view.js.map +1 -0
  67. package/dist/work-goal-link.d.ts +24 -0
  68. package/dist/work-goal-link.d.ts.map +1 -0
  69. package/dist/work-goal-link.js +34 -0
  70. package/dist/work-goal-link.js.map +1 -0
  71. package/dist/work-poll.d.ts +6 -0
  72. package/dist/work-poll.d.ts.map +1 -0
  73. package/dist/work-poll.js +7 -0
  74. package/dist/work-poll.js.map +1 -0
  75. package/dist/workspace-focus.d.ts +23 -0
  76. package/dist/workspace-focus.d.ts.map +1 -0
  77. package/dist/workspace-focus.js +69 -0
  78. package/dist/workspace-focus.js.map +1 -0
  79. package/package.json +17 -15
  80. package/src/styles.css +139 -12
package/dist/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Cause, Schema } from "effect";
2
- import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
3
- import * as Atom from "effect/unstable/reactivity/Atom";
2
+ import * as AsyncResult from "effect/reactivity/AsyncResult";
3
+ import * as Atom from "effect/reactivity/Atom";
4
4
  import { type ReactNode } from "react";
5
5
  import { type ConnectAgent } from "./model.js";
6
6
  import { type AgentActivityFilter } from "./view.js";
@@ -75,6 +75,990 @@ export declare const makeConnectAtoms: () => {
75
75
  preferenceError: Atom.Writable<string | null, string | null>;
76
76
  query: Atom.Writable<string, string>;
77
77
  selectedKey: Atom.Writable<string | null, string | null>;
78
+ work: Atom.Atom<AsyncResult.AsyncResult<{
79
+ readonly observedAt: number;
80
+ readonly now: {
81
+ readonly window: "day" | "month" | "now" | "week";
82
+ readonly observedAt: number;
83
+ readonly asOf: number;
84
+ readonly goals: readonly {
85
+ readonly id: string;
86
+ readonly title: string;
87
+ readonly summary: string;
88
+ readonly detail: string;
89
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
90
+ readonly owner: {
91
+ readonly id: string;
92
+ readonly name: string;
93
+ };
94
+ readonly repository: {
95
+ readonly repository: string;
96
+ readonly branch: string;
97
+ };
98
+ readonly spend: {
99
+ readonly currency: string;
100
+ readonly minorUnits: number;
101
+ } | null;
102
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
103
+ readonly blocker: {
104
+ readonly summary: string;
105
+ readonly since: number;
106
+ } | null;
107
+ readonly connectTarget: {
108
+ readonly host: string;
109
+ readonly agentId: string;
110
+ readonly url: string;
111
+ } | null;
112
+ readonly goalFamily?: {
113
+ readonly canonicalGoalId: string;
114
+ readonly role: "canonical" | "superseded";
115
+ };
116
+ readonly agentHierarchy?: {
117
+ readonly agent: {
118
+ readonly host: string;
119
+ readonly agentId: string;
120
+ readonly name: string;
121
+ readonly paneId: string;
122
+ readonly relationship?: {
123
+ readonly parentAgentId: string;
124
+ readonly relation: "delegated" | "pair" | "review";
125
+ };
126
+ };
127
+ } | null;
128
+ readonly activity?: readonly {
129
+ readonly id: string;
130
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
131
+ readonly summary: string;
132
+ readonly occurredAt: number;
133
+ }[];
134
+ readonly blockers?: readonly {
135
+ readonly summary: string;
136
+ readonly since: number;
137
+ }[];
138
+ readonly requests?: readonly {
139
+ readonly id: string;
140
+ readonly summary: string;
141
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
142
+ readonly requestedAt: number;
143
+ readonly approvalTarget: {
144
+ readonly host: string;
145
+ readonly jobId: string;
146
+ readonly url: string;
147
+ } | null;
148
+ }[];
149
+ readonly review?: {
150
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
151
+ readonly summary: string | null;
152
+ readonly updatedAt: number;
153
+ readonly url: string | null;
154
+ } | null;
155
+ readonly approvalTarget?: {
156
+ readonly host: string;
157
+ readonly jobId: string;
158
+ readonly url: string;
159
+ } | null;
160
+ readonly createdAt: number;
161
+ readonly updatedAt: number;
162
+ }[];
163
+ readonly families?: readonly {
164
+ readonly canonicalGoalId: string;
165
+ readonly canonical: {
166
+ readonly id: string;
167
+ readonly title: string;
168
+ readonly summary: string;
169
+ readonly detail: string;
170
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
171
+ readonly owner: {
172
+ readonly id: string;
173
+ readonly name: string;
174
+ };
175
+ readonly repository: {
176
+ readonly repository: string;
177
+ readonly branch: string;
178
+ };
179
+ readonly spend: {
180
+ readonly currency: string;
181
+ readonly minorUnits: number;
182
+ } | null;
183
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
184
+ readonly blocker: {
185
+ readonly summary: string;
186
+ readonly since: number;
187
+ } | null;
188
+ readonly connectTarget: {
189
+ readonly host: string;
190
+ readonly agentId: string;
191
+ readonly url: string;
192
+ } | null;
193
+ readonly goalFamily?: {
194
+ readonly canonicalGoalId: string;
195
+ readonly role: "canonical" | "superseded";
196
+ };
197
+ readonly agentHierarchy?: {
198
+ readonly agent: {
199
+ readonly host: string;
200
+ readonly agentId: string;
201
+ readonly name: string;
202
+ readonly paneId: string;
203
+ readonly relationship?: {
204
+ readonly parentAgentId: string;
205
+ readonly relation: "delegated" | "pair" | "review";
206
+ };
207
+ };
208
+ } | null;
209
+ readonly activity?: readonly {
210
+ readonly id: string;
211
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
212
+ readonly summary: string;
213
+ readonly occurredAt: number;
214
+ }[];
215
+ readonly blockers?: readonly {
216
+ readonly summary: string;
217
+ readonly since: number;
218
+ }[];
219
+ readonly requests?: readonly {
220
+ readonly id: string;
221
+ readonly summary: string;
222
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
223
+ readonly requestedAt: number;
224
+ readonly approvalTarget: {
225
+ readonly host: string;
226
+ readonly jobId: string;
227
+ readonly url: string;
228
+ } | null;
229
+ }[];
230
+ readonly review?: {
231
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
232
+ readonly summary: string | null;
233
+ readonly updatedAt: number;
234
+ readonly url: string | null;
235
+ } | null;
236
+ readonly approvalTarget?: {
237
+ readonly host: string;
238
+ readonly jobId: string;
239
+ readonly url: string;
240
+ } | null;
241
+ readonly createdAt: number;
242
+ readonly updatedAt: number;
243
+ };
244
+ readonly superseded: readonly {
245
+ readonly id: string;
246
+ readonly title: string;
247
+ readonly summary: string;
248
+ readonly detail: string;
249
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
250
+ readonly owner: {
251
+ readonly id: string;
252
+ readonly name: string;
253
+ };
254
+ readonly repository: {
255
+ readonly repository: string;
256
+ readonly branch: string;
257
+ };
258
+ readonly spend: {
259
+ readonly currency: string;
260
+ readonly minorUnits: number;
261
+ } | null;
262
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
263
+ readonly blocker: {
264
+ readonly summary: string;
265
+ readonly since: number;
266
+ } | null;
267
+ readonly connectTarget: {
268
+ readonly host: string;
269
+ readonly agentId: string;
270
+ readonly url: string;
271
+ } | null;
272
+ readonly goalFamily?: {
273
+ readonly canonicalGoalId: string;
274
+ readonly role: "canonical" | "superseded";
275
+ };
276
+ readonly agentHierarchy?: {
277
+ readonly agent: {
278
+ readonly host: string;
279
+ readonly agentId: string;
280
+ readonly name: string;
281
+ readonly paneId: string;
282
+ readonly relationship?: {
283
+ readonly parentAgentId: string;
284
+ readonly relation: "delegated" | "pair" | "review";
285
+ };
286
+ };
287
+ } | null;
288
+ readonly activity?: readonly {
289
+ readonly id: string;
290
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
291
+ readonly summary: string;
292
+ readonly occurredAt: number;
293
+ }[];
294
+ readonly blockers?: readonly {
295
+ readonly summary: string;
296
+ readonly since: number;
297
+ }[];
298
+ readonly requests?: readonly {
299
+ readonly id: string;
300
+ readonly summary: string;
301
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
302
+ readonly requestedAt: number;
303
+ readonly approvalTarget: {
304
+ readonly host: string;
305
+ readonly jobId: string;
306
+ readonly url: string;
307
+ } | null;
308
+ }[];
309
+ readonly review?: {
310
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
311
+ readonly summary: string | null;
312
+ readonly updatedAt: number;
313
+ readonly url: string | null;
314
+ } | null;
315
+ readonly approvalTarget?: {
316
+ readonly host: string;
317
+ readonly jobId: string;
318
+ readonly url: string;
319
+ } | null;
320
+ readonly createdAt: number;
321
+ readonly updatedAt: number;
322
+ }[];
323
+ }[];
324
+ };
325
+ readonly day: {
326
+ readonly window: "day" | "month" | "now" | "week";
327
+ readonly observedAt: number;
328
+ readonly asOf: number;
329
+ readonly goals: readonly {
330
+ readonly id: string;
331
+ readonly title: string;
332
+ readonly summary: string;
333
+ readonly detail: string;
334
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
335
+ readonly owner: {
336
+ readonly id: string;
337
+ readonly name: string;
338
+ };
339
+ readonly repository: {
340
+ readonly repository: string;
341
+ readonly branch: string;
342
+ };
343
+ readonly spend: {
344
+ readonly currency: string;
345
+ readonly minorUnits: number;
346
+ } | null;
347
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
348
+ readonly blocker: {
349
+ readonly summary: string;
350
+ readonly since: number;
351
+ } | null;
352
+ readonly connectTarget: {
353
+ readonly host: string;
354
+ readonly agentId: string;
355
+ readonly url: string;
356
+ } | null;
357
+ readonly goalFamily?: {
358
+ readonly canonicalGoalId: string;
359
+ readonly role: "canonical" | "superseded";
360
+ };
361
+ readonly agentHierarchy?: {
362
+ readonly agent: {
363
+ readonly host: string;
364
+ readonly agentId: string;
365
+ readonly name: string;
366
+ readonly paneId: string;
367
+ readonly relationship?: {
368
+ readonly parentAgentId: string;
369
+ readonly relation: "delegated" | "pair" | "review";
370
+ };
371
+ };
372
+ } | null;
373
+ readonly activity?: readonly {
374
+ readonly id: string;
375
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
376
+ readonly summary: string;
377
+ readonly occurredAt: number;
378
+ }[];
379
+ readonly blockers?: readonly {
380
+ readonly summary: string;
381
+ readonly since: number;
382
+ }[];
383
+ readonly requests?: readonly {
384
+ readonly id: string;
385
+ readonly summary: string;
386
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
387
+ readonly requestedAt: number;
388
+ readonly approvalTarget: {
389
+ readonly host: string;
390
+ readonly jobId: string;
391
+ readonly url: string;
392
+ } | null;
393
+ }[];
394
+ readonly review?: {
395
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
396
+ readonly summary: string | null;
397
+ readonly updatedAt: number;
398
+ readonly url: string | null;
399
+ } | null;
400
+ readonly approvalTarget?: {
401
+ readonly host: string;
402
+ readonly jobId: string;
403
+ readonly url: string;
404
+ } | null;
405
+ readonly createdAt: number;
406
+ readonly updatedAt: number;
407
+ }[];
408
+ readonly families?: readonly {
409
+ readonly canonicalGoalId: string;
410
+ readonly canonical: {
411
+ readonly id: string;
412
+ readonly title: string;
413
+ readonly summary: string;
414
+ readonly detail: string;
415
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
416
+ readonly owner: {
417
+ readonly id: string;
418
+ readonly name: string;
419
+ };
420
+ readonly repository: {
421
+ readonly repository: string;
422
+ readonly branch: string;
423
+ };
424
+ readonly spend: {
425
+ readonly currency: string;
426
+ readonly minorUnits: number;
427
+ } | null;
428
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
429
+ readonly blocker: {
430
+ readonly summary: string;
431
+ readonly since: number;
432
+ } | null;
433
+ readonly connectTarget: {
434
+ readonly host: string;
435
+ readonly agentId: string;
436
+ readonly url: string;
437
+ } | null;
438
+ readonly goalFamily?: {
439
+ readonly canonicalGoalId: string;
440
+ readonly role: "canonical" | "superseded";
441
+ };
442
+ readonly agentHierarchy?: {
443
+ readonly agent: {
444
+ readonly host: string;
445
+ readonly agentId: string;
446
+ readonly name: string;
447
+ readonly paneId: string;
448
+ readonly relationship?: {
449
+ readonly parentAgentId: string;
450
+ readonly relation: "delegated" | "pair" | "review";
451
+ };
452
+ };
453
+ } | null;
454
+ readonly activity?: readonly {
455
+ readonly id: string;
456
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
457
+ readonly summary: string;
458
+ readonly occurredAt: number;
459
+ }[];
460
+ readonly blockers?: readonly {
461
+ readonly summary: string;
462
+ readonly since: number;
463
+ }[];
464
+ readonly requests?: readonly {
465
+ readonly id: string;
466
+ readonly summary: string;
467
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
468
+ readonly requestedAt: number;
469
+ readonly approvalTarget: {
470
+ readonly host: string;
471
+ readonly jobId: string;
472
+ readonly url: string;
473
+ } | null;
474
+ }[];
475
+ readonly review?: {
476
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
477
+ readonly summary: string | null;
478
+ readonly updatedAt: number;
479
+ readonly url: string | null;
480
+ } | null;
481
+ readonly approvalTarget?: {
482
+ readonly host: string;
483
+ readonly jobId: string;
484
+ readonly url: string;
485
+ } | null;
486
+ readonly createdAt: number;
487
+ readonly updatedAt: number;
488
+ };
489
+ readonly superseded: readonly {
490
+ readonly id: string;
491
+ readonly title: string;
492
+ readonly summary: string;
493
+ readonly detail: string;
494
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
495
+ readonly owner: {
496
+ readonly id: string;
497
+ readonly name: string;
498
+ };
499
+ readonly repository: {
500
+ readonly repository: string;
501
+ readonly branch: string;
502
+ };
503
+ readonly spend: {
504
+ readonly currency: string;
505
+ readonly minorUnits: number;
506
+ } | null;
507
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
508
+ readonly blocker: {
509
+ readonly summary: string;
510
+ readonly since: number;
511
+ } | null;
512
+ readonly connectTarget: {
513
+ readonly host: string;
514
+ readonly agentId: string;
515
+ readonly url: string;
516
+ } | null;
517
+ readonly goalFamily?: {
518
+ readonly canonicalGoalId: string;
519
+ readonly role: "canonical" | "superseded";
520
+ };
521
+ readonly agentHierarchy?: {
522
+ readonly agent: {
523
+ readonly host: string;
524
+ readonly agentId: string;
525
+ readonly name: string;
526
+ readonly paneId: string;
527
+ readonly relationship?: {
528
+ readonly parentAgentId: string;
529
+ readonly relation: "delegated" | "pair" | "review";
530
+ };
531
+ };
532
+ } | null;
533
+ readonly activity?: readonly {
534
+ readonly id: string;
535
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
536
+ readonly summary: string;
537
+ readonly occurredAt: number;
538
+ }[];
539
+ readonly blockers?: readonly {
540
+ readonly summary: string;
541
+ readonly since: number;
542
+ }[];
543
+ readonly requests?: readonly {
544
+ readonly id: string;
545
+ readonly summary: string;
546
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
547
+ readonly requestedAt: number;
548
+ readonly approvalTarget: {
549
+ readonly host: string;
550
+ readonly jobId: string;
551
+ readonly url: string;
552
+ } | null;
553
+ }[];
554
+ readonly review?: {
555
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
556
+ readonly summary: string | null;
557
+ readonly updatedAt: number;
558
+ readonly url: string | null;
559
+ } | null;
560
+ readonly approvalTarget?: {
561
+ readonly host: string;
562
+ readonly jobId: string;
563
+ readonly url: string;
564
+ } | null;
565
+ readonly createdAt: number;
566
+ readonly updatedAt: number;
567
+ }[];
568
+ }[];
569
+ };
570
+ readonly week: {
571
+ readonly window: "day" | "month" | "now" | "week";
572
+ readonly observedAt: number;
573
+ readonly asOf: number;
574
+ readonly goals: readonly {
575
+ readonly id: string;
576
+ readonly title: string;
577
+ readonly summary: string;
578
+ readonly detail: string;
579
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
580
+ readonly owner: {
581
+ readonly id: string;
582
+ readonly name: string;
583
+ };
584
+ readonly repository: {
585
+ readonly repository: string;
586
+ readonly branch: string;
587
+ };
588
+ readonly spend: {
589
+ readonly currency: string;
590
+ readonly minorUnits: number;
591
+ } | null;
592
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
593
+ readonly blocker: {
594
+ readonly summary: string;
595
+ readonly since: number;
596
+ } | null;
597
+ readonly connectTarget: {
598
+ readonly host: string;
599
+ readonly agentId: string;
600
+ readonly url: string;
601
+ } | null;
602
+ readonly goalFamily?: {
603
+ readonly canonicalGoalId: string;
604
+ readonly role: "canonical" | "superseded";
605
+ };
606
+ readonly agentHierarchy?: {
607
+ readonly agent: {
608
+ readonly host: string;
609
+ readonly agentId: string;
610
+ readonly name: string;
611
+ readonly paneId: string;
612
+ readonly relationship?: {
613
+ readonly parentAgentId: string;
614
+ readonly relation: "delegated" | "pair" | "review";
615
+ };
616
+ };
617
+ } | null;
618
+ readonly activity?: readonly {
619
+ readonly id: string;
620
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
621
+ readonly summary: string;
622
+ readonly occurredAt: number;
623
+ }[];
624
+ readonly blockers?: readonly {
625
+ readonly summary: string;
626
+ readonly since: number;
627
+ }[];
628
+ readonly requests?: readonly {
629
+ readonly id: string;
630
+ readonly summary: string;
631
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
632
+ readonly requestedAt: number;
633
+ readonly approvalTarget: {
634
+ readonly host: string;
635
+ readonly jobId: string;
636
+ readonly url: string;
637
+ } | null;
638
+ }[];
639
+ readonly review?: {
640
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
641
+ readonly summary: string | null;
642
+ readonly updatedAt: number;
643
+ readonly url: string | null;
644
+ } | null;
645
+ readonly approvalTarget?: {
646
+ readonly host: string;
647
+ readonly jobId: string;
648
+ readonly url: string;
649
+ } | null;
650
+ readonly createdAt: number;
651
+ readonly updatedAt: number;
652
+ }[];
653
+ readonly families?: readonly {
654
+ readonly canonicalGoalId: string;
655
+ readonly canonical: {
656
+ readonly id: string;
657
+ readonly title: string;
658
+ readonly summary: string;
659
+ readonly detail: string;
660
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
661
+ readonly owner: {
662
+ readonly id: string;
663
+ readonly name: string;
664
+ };
665
+ readonly repository: {
666
+ readonly repository: string;
667
+ readonly branch: string;
668
+ };
669
+ readonly spend: {
670
+ readonly currency: string;
671
+ readonly minorUnits: number;
672
+ } | null;
673
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
674
+ readonly blocker: {
675
+ readonly summary: string;
676
+ readonly since: number;
677
+ } | null;
678
+ readonly connectTarget: {
679
+ readonly host: string;
680
+ readonly agentId: string;
681
+ readonly url: string;
682
+ } | null;
683
+ readonly goalFamily?: {
684
+ readonly canonicalGoalId: string;
685
+ readonly role: "canonical" | "superseded";
686
+ };
687
+ readonly agentHierarchy?: {
688
+ readonly agent: {
689
+ readonly host: string;
690
+ readonly agentId: string;
691
+ readonly name: string;
692
+ readonly paneId: string;
693
+ readonly relationship?: {
694
+ readonly parentAgentId: string;
695
+ readonly relation: "delegated" | "pair" | "review";
696
+ };
697
+ };
698
+ } | null;
699
+ readonly activity?: readonly {
700
+ readonly id: string;
701
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
702
+ readonly summary: string;
703
+ readonly occurredAt: number;
704
+ }[];
705
+ readonly blockers?: readonly {
706
+ readonly summary: string;
707
+ readonly since: number;
708
+ }[];
709
+ readonly requests?: readonly {
710
+ readonly id: string;
711
+ readonly summary: string;
712
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
713
+ readonly requestedAt: number;
714
+ readonly approvalTarget: {
715
+ readonly host: string;
716
+ readonly jobId: string;
717
+ readonly url: string;
718
+ } | null;
719
+ }[];
720
+ readonly review?: {
721
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
722
+ readonly summary: string | null;
723
+ readonly updatedAt: number;
724
+ readonly url: string | null;
725
+ } | null;
726
+ readonly approvalTarget?: {
727
+ readonly host: string;
728
+ readonly jobId: string;
729
+ readonly url: string;
730
+ } | null;
731
+ readonly createdAt: number;
732
+ readonly updatedAt: number;
733
+ };
734
+ readonly superseded: readonly {
735
+ readonly id: string;
736
+ readonly title: string;
737
+ readonly summary: string;
738
+ readonly detail: string;
739
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
740
+ readonly owner: {
741
+ readonly id: string;
742
+ readonly name: string;
743
+ };
744
+ readonly repository: {
745
+ readonly repository: string;
746
+ readonly branch: string;
747
+ };
748
+ readonly spend: {
749
+ readonly currency: string;
750
+ readonly minorUnits: number;
751
+ } | null;
752
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
753
+ readonly blocker: {
754
+ readonly summary: string;
755
+ readonly since: number;
756
+ } | null;
757
+ readonly connectTarget: {
758
+ readonly host: string;
759
+ readonly agentId: string;
760
+ readonly url: string;
761
+ } | null;
762
+ readonly goalFamily?: {
763
+ readonly canonicalGoalId: string;
764
+ readonly role: "canonical" | "superseded";
765
+ };
766
+ readonly agentHierarchy?: {
767
+ readonly agent: {
768
+ readonly host: string;
769
+ readonly agentId: string;
770
+ readonly name: string;
771
+ readonly paneId: string;
772
+ readonly relationship?: {
773
+ readonly parentAgentId: string;
774
+ readonly relation: "delegated" | "pair" | "review";
775
+ };
776
+ };
777
+ } | null;
778
+ readonly activity?: readonly {
779
+ readonly id: string;
780
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
781
+ readonly summary: string;
782
+ readonly occurredAt: number;
783
+ }[];
784
+ readonly blockers?: readonly {
785
+ readonly summary: string;
786
+ readonly since: number;
787
+ }[];
788
+ readonly requests?: readonly {
789
+ readonly id: string;
790
+ readonly summary: string;
791
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
792
+ readonly requestedAt: number;
793
+ readonly approvalTarget: {
794
+ readonly host: string;
795
+ readonly jobId: string;
796
+ readonly url: string;
797
+ } | null;
798
+ }[];
799
+ readonly review?: {
800
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
801
+ readonly summary: string | null;
802
+ readonly updatedAt: number;
803
+ readonly url: string | null;
804
+ } | null;
805
+ readonly approvalTarget?: {
806
+ readonly host: string;
807
+ readonly jobId: string;
808
+ readonly url: string;
809
+ } | null;
810
+ readonly createdAt: number;
811
+ readonly updatedAt: number;
812
+ }[];
813
+ }[];
814
+ };
815
+ readonly month: {
816
+ readonly window: "day" | "month" | "now" | "week";
817
+ readonly observedAt: number;
818
+ readonly asOf: number;
819
+ readonly goals: readonly {
820
+ readonly id: string;
821
+ readonly title: string;
822
+ readonly summary: string;
823
+ readonly detail: string;
824
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
825
+ readonly owner: {
826
+ readonly id: string;
827
+ readonly name: string;
828
+ };
829
+ readonly repository: {
830
+ readonly repository: string;
831
+ readonly branch: string;
832
+ };
833
+ readonly spend: {
834
+ readonly currency: string;
835
+ readonly minorUnits: number;
836
+ } | null;
837
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
838
+ readonly blocker: {
839
+ readonly summary: string;
840
+ readonly since: number;
841
+ } | null;
842
+ readonly connectTarget: {
843
+ readonly host: string;
844
+ readonly agentId: string;
845
+ readonly url: string;
846
+ } | null;
847
+ readonly goalFamily?: {
848
+ readonly canonicalGoalId: string;
849
+ readonly role: "canonical" | "superseded";
850
+ };
851
+ readonly agentHierarchy?: {
852
+ readonly agent: {
853
+ readonly host: string;
854
+ readonly agentId: string;
855
+ readonly name: string;
856
+ readonly paneId: string;
857
+ readonly relationship?: {
858
+ readonly parentAgentId: string;
859
+ readonly relation: "delegated" | "pair" | "review";
860
+ };
861
+ };
862
+ } | null;
863
+ readonly activity?: readonly {
864
+ readonly id: string;
865
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
866
+ readonly summary: string;
867
+ readonly occurredAt: number;
868
+ }[];
869
+ readonly blockers?: readonly {
870
+ readonly summary: string;
871
+ readonly since: number;
872
+ }[];
873
+ readonly requests?: readonly {
874
+ readonly id: string;
875
+ readonly summary: string;
876
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
877
+ readonly requestedAt: number;
878
+ readonly approvalTarget: {
879
+ readonly host: string;
880
+ readonly jobId: string;
881
+ readonly url: string;
882
+ } | null;
883
+ }[];
884
+ readonly review?: {
885
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
886
+ readonly summary: string | null;
887
+ readonly updatedAt: number;
888
+ readonly url: string | null;
889
+ } | null;
890
+ readonly approvalTarget?: {
891
+ readonly host: string;
892
+ readonly jobId: string;
893
+ readonly url: string;
894
+ } | null;
895
+ readonly createdAt: number;
896
+ readonly updatedAt: number;
897
+ }[];
898
+ readonly families?: readonly {
899
+ readonly canonicalGoalId: string;
900
+ readonly canonical: {
901
+ readonly id: string;
902
+ readonly title: string;
903
+ readonly summary: string;
904
+ readonly detail: string;
905
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
906
+ readonly owner: {
907
+ readonly id: string;
908
+ readonly name: string;
909
+ };
910
+ readonly repository: {
911
+ readonly repository: string;
912
+ readonly branch: string;
913
+ };
914
+ readonly spend: {
915
+ readonly currency: string;
916
+ readonly minorUnits: number;
917
+ } | null;
918
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
919
+ readonly blocker: {
920
+ readonly summary: string;
921
+ readonly since: number;
922
+ } | null;
923
+ readonly connectTarget: {
924
+ readonly host: string;
925
+ readonly agentId: string;
926
+ readonly url: string;
927
+ } | null;
928
+ readonly goalFamily?: {
929
+ readonly canonicalGoalId: string;
930
+ readonly role: "canonical" | "superseded";
931
+ };
932
+ readonly agentHierarchy?: {
933
+ readonly agent: {
934
+ readonly host: string;
935
+ readonly agentId: string;
936
+ readonly name: string;
937
+ readonly paneId: string;
938
+ readonly relationship?: {
939
+ readonly parentAgentId: string;
940
+ readonly relation: "delegated" | "pair" | "review";
941
+ };
942
+ };
943
+ } | null;
944
+ readonly activity?: readonly {
945
+ readonly id: string;
946
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
947
+ readonly summary: string;
948
+ readonly occurredAt: number;
949
+ }[];
950
+ readonly blockers?: readonly {
951
+ readonly summary: string;
952
+ readonly since: number;
953
+ }[];
954
+ readonly requests?: readonly {
955
+ readonly id: string;
956
+ readonly summary: string;
957
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
958
+ readonly requestedAt: number;
959
+ readonly approvalTarget: {
960
+ readonly host: string;
961
+ readonly jobId: string;
962
+ readonly url: string;
963
+ } | null;
964
+ }[];
965
+ readonly review?: {
966
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
967
+ readonly summary: string | null;
968
+ readonly updatedAt: number;
969
+ readonly url: string | null;
970
+ } | null;
971
+ readonly approvalTarget?: {
972
+ readonly host: string;
973
+ readonly jobId: string;
974
+ readonly url: string;
975
+ } | null;
976
+ readonly createdAt: number;
977
+ readonly updatedAt: number;
978
+ };
979
+ readonly superseded: readonly {
980
+ readonly id: string;
981
+ readonly title: string;
982
+ readonly summary: string;
983
+ readonly detail: string;
984
+ readonly state: "blocked" | "completed" | "deployed" | "planned" | "review" | "working";
985
+ readonly owner: {
986
+ readonly id: string;
987
+ readonly name: string;
988
+ };
989
+ readonly repository: {
990
+ readonly repository: string;
991
+ readonly branch: string;
992
+ };
993
+ readonly spend: {
994
+ readonly currency: string;
995
+ readonly minorUnits: number;
996
+ } | null;
997
+ readonly delivery: "deployed" | "local" | "merged" | "pull_request" | "review";
998
+ readonly blocker: {
999
+ readonly summary: string;
1000
+ readonly since: number;
1001
+ } | null;
1002
+ readonly connectTarget: {
1003
+ readonly host: string;
1004
+ readonly agentId: string;
1005
+ readonly url: string;
1006
+ } | null;
1007
+ readonly goalFamily?: {
1008
+ readonly canonicalGoalId: string;
1009
+ readonly role: "canonical" | "superseded";
1010
+ };
1011
+ readonly agentHierarchy?: {
1012
+ readonly agent: {
1013
+ readonly host: string;
1014
+ readonly agentId: string;
1015
+ readonly name: string;
1016
+ readonly paneId: string;
1017
+ readonly relationship?: {
1018
+ readonly parentAgentId: string;
1019
+ readonly relation: "delegated" | "pair" | "review";
1020
+ };
1021
+ };
1022
+ } | null;
1023
+ readonly activity?: readonly {
1024
+ readonly id: string;
1025
+ readonly kind: "blocker" | "note" | "request" | "review" | "shipment" | "status";
1026
+ readonly summary: string;
1027
+ readonly occurredAt: number;
1028
+ }[];
1029
+ readonly blockers?: readonly {
1030
+ readonly summary: string;
1031
+ readonly since: number;
1032
+ }[];
1033
+ readonly requests?: readonly {
1034
+ readonly id: string;
1035
+ readonly summary: string;
1036
+ readonly state: "approved" | "fulfilled" | "open" | "rejected";
1037
+ readonly requestedAt: number;
1038
+ readonly approvalTarget: {
1039
+ readonly host: string;
1040
+ readonly jobId: string;
1041
+ readonly url: string;
1042
+ } | null;
1043
+ }[];
1044
+ readonly review?: {
1045
+ readonly state: "approved" | "changes_requested" | "not_requested" | "requested";
1046
+ readonly summary: string | null;
1047
+ readonly updatedAt: number;
1048
+ readonly url: string | null;
1049
+ } | null;
1050
+ readonly approvalTarget?: {
1051
+ readonly host: string;
1052
+ readonly jobId: string;
1053
+ readonly url: string;
1054
+ } | null;
1055
+ readonly createdAt: number;
1056
+ readonly updatedAt: number;
1057
+ }[];
1058
+ }[];
1059
+ };
1060
+ }, ConnectNetworkError | ConnectProtocolError | ConnectStatusError>>;
1061
+ workPoll: Atom.Atom<AsyncResult.AsyncResult<number, never>>;
78
1062
  };
79
1063
  export type ConnectAtoms = ReturnType<typeof makeConnectAtoms>;
80
1064
  export declare const ConnectSurface: ({ atoms, embedded, roomFooter }: {