@nyte-ai/schema 0.0.19 → 0.0.23

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.
@@ -471,182 +471,189 @@ export declare const HOST_OPERATIONS: {
471
471
  } | undefined;
472
472
  }>;
473
473
  readonly output: import("../../schema.ts").Schema<{
474
- name: string | null;
475
- call: import("../../ids.ts").Id<"call"> | null;
476
- workspace: import("../../ids.ts").Id<"workspace">;
477
- id: import("../../ids.ts").Id<"session">;
478
- parent: import("../../ids.ts").Id<"session"> | null;
479
- heads: {
480
- name: import("../../ids.ts").Id<"head">;
481
- tip: {
482
- kind: "start";
483
- } | {
484
- id: import("../../ids.ts").Id<"commit">;
485
- kind: "commit";
486
- };
487
- stack: {
488
- stale: boolean;
489
- parent: import("../../ids.ts").Id<"head">;
490
- base: {
474
+ items: {
475
+ name: string | null;
476
+ call: import("../../ids.ts").Id<"call"> | null;
477
+ workspace: import("../../ids.ts").Id<"workspace">;
478
+ id: import("../../ids.ts").Id<"session">;
479
+ parent: import("../../ids.ts").Id<"session"> | null;
480
+ heads: {
481
+ name: import("../../ids.ts").Id<"head">;
482
+ tip: {
491
483
  kind: "start";
492
484
  } | {
493
485
  id: import("../../ids.ts").Id<"commit">;
494
486
  kind: "commit";
495
487
  };
496
- } | null;
497
- execution: {
498
- kind: "idle";
499
- lastRun: {
500
- id: import("../../ids.ts").Id<"run">;
501
- end: {
502
- kind: "completed";
503
- usage: {
504
- output: number;
505
- input: number;
506
- cacheRead: number;
507
- cacheWrite: number;
508
- reasoning: number | null;
509
- total: number;
510
- cost: {
488
+ stack: {
489
+ stale: boolean;
490
+ parent: import("../../ids.ts").Id<"head">;
491
+ base: {
492
+ kind: "start";
493
+ } | {
494
+ id: import("../../ids.ts").Id<"commit">;
495
+ kind: "commit";
496
+ };
497
+ } | null;
498
+ execution: {
499
+ kind: "idle";
500
+ lastRun: {
501
+ id: import("../../ids.ts").Id<"run">;
502
+ end: {
503
+ kind: "completed";
504
+ usage: {
511
505
  output: number;
512
506
  input: number;
513
507
  cacheRead: number;
514
508
  cacheWrite: number;
509
+ reasoning: number | null;
515
510
  total: number;
511
+ cost: {
512
+ output: number;
513
+ input: number;
514
+ cacheRead: number;
515
+ cacheWrite: number;
516
+ total: number;
517
+ };
518
+ };
519
+ } | {
520
+ kind: "stopped";
521
+ } | {
522
+ kind: "failed";
523
+ failure: {
524
+ retryAfterMs?: number | undefined;
525
+ message: string;
526
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
516
527
  };
517
528
  };
518
- } | {
519
- kind: "stopped";
520
- } | {
521
- kind: "failed";
522
- failure: {
523
- retryAfterMs?: number | undefined;
524
- message: string;
525
- class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
529
+ endedAt: number;
530
+ } | null;
531
+ } | {
532
+ run: {
533
+ head: import("../../ids.ts").Id<"head">;
534
+ id: import("../../ids.ts").Id<"run">;
535
+ configuration: {
536
+ kind: "exact";
537
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
538
+ model: {
539
+ id: string;
540
+ provider: string;
541
+ };
542
+ agent: string | null;
543
+ settings: Record<string, import("../../json.ts").Json>;
544
+ settingsVersion: string;
526
545
  };
527
- };
528
- endedAt: number;
529
- } | null;
530
- } | {
531
- run: {
532
- head: import("../../ids.ts").Id<"head">;
533
- id: import("../../ids.ts").Id<"run">;
534
- configuration: {
535
- kind: "exact";
536
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
537
- model: {
538
- id: string;
539
- provider: string;
546
+ startedAt: number;
547
+ attempt: number;
548
+ origin: {
549
+ message: import("../../ids.ts").Id<"message">;
550
+ kind: "input";
551
+ } | {
552
+ kind: "continuation";
553
+ from: "job" | "child" | "wake";
540
554
  };
541
- agent: string | null;
542
- settings: Record<string, import("../../json.ts").Json>;
543
- settingsVersion: string;
544
555
  };
545
- startedAt: number;
546
- attempt: number;
547
- origin: {
548
- message: import("../../ids.ts").Id<"message">;
549
- kind: "input";
550
- } | {
551
- kind: "continuation";
552
- from: "job" | "child" | "wake";
553
- };
554
- };
555
- kind: "live";
556
- phase: "responding" | "executing";
557
- stopping: boolean;
558
- } | {
559
- run: {
560
- head: import("../../ids.ts").Id<"head">;
561
- id: import("../../ids.ts").Id<"run">;
562
- configuration: {
563
- kind: "exact";
564
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
565
- model: {
566
- id: string;
567
- provider: string;
556
+ kind: "live";
557
+ phase: "responding" | "executing";
558
+ stopping: boolean;
559
+ } | {
560
+ run: {
561
+ head: import("../../ids.ts").Id<"head">;
562
+ id: import("../../ids.ts").Id<"run">;
563
+ configuration: {
564
+ kind: "exact";
565
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
566
+ model: {
567
+ id: string;
568
+ provider: string;
569
+ };
570
+ agent: string | null;
571
+ settings: Record<string, import("../../json.ts").Json>;
572
+ settingsVersion: string;
573
+ };
574
+ startedAt: number;
575
+ attempt: number;
576
+ origin: {
577
+ message: import("../../ids.ts").Id<"message">;
578
+ kind: "input";
579
+ } | {
580
+ kind: "continuation";
581
+ from: "job" | "child" | "wake";
568
582
  };
569
- agent: string | null;
570
- settings: Record<string, import("../../json.ts").Json>;
571
- settingsVersion: string;
572
583
  };
573
- startedAt: number;
574
- attempt: number;
575
- origin: {
576
- message: import("../../ids.ts").Id<"message">;
577
- kind: "input";
584
+ kind: "waiting";
585
+ on: {
586
+ deadline?: number | undefined;
587
+ session: import("../../ids.ts").Id<"session">;
588
+ run: import("../../ids.ts").Id<"run">;
589
+ kind: "run";
578
590
  } | {
579
- kind: "continuation";
580
- from: "job" | "child" | "wake";
591
+ deadline?: number | undefined;
592
+ job: import("../../ids.ts").Id<"job">;
593
+ kind: "job";
594
+ } | {
595
+ deadline?: number | undefined;
596
+ part: import("../../ids.ts").Id<"part">;
597
+ kind: "part";
598
+ } | {
599
+ deadline?: number | undefined;
600
+ kind: "timer";
601
+ until: number;
581
602
  };
582
- };
583
- kind: "waiting";
584
- on: {
585
- deadline?: number | undefined;
586
- session: import("../../ids.ts").Id<"session">;
587
- run: import("../../ids.ts").Id<"run">;
588
- kind: "run";
589
- } | {
590
- deadline?: number | undefined;
591
- job: import("../../ids.ts").Id<"job">;
592
- kind: "job";
593
- } | {
594
- deadline?: number | undefined;
595
- part: import("../../ids.ts").Id<"part">;
596
- kind: "part";
597
603
  } | {
598
- deadline?: number | undefined;
599
- kind: "timer";
600
- until: number;
601
- };
602
- } | {
603
- run: {
604
- head: import("../../ids.ts").Id<"head">;
605
- id: import("../../ids.ts").Id<"run">;
606
- configuration: {
607
- kind: "exact";
608
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
609
- model: {
610
- id: string;
611
- provider: string;
604
+ run: {
605
+ head: import("../../ids.ts").Id<"head">;
606
+ id: import("../../ids.ts").Id<"run">;
607
+ configuration: {
608
+ kind: "exact";
609
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
610
+ model: {
611
+ id: string;
612
+ provider: string;
613
+ };
614
+ agent: string | null;
615
+ settings: Record<string, import("../../json.ts").Json>;
616
+ settingsVersion: string;
617
+ };
618
+ startedAt: number;
619
+ attempt: number;
620
+ origin: {
621
+ message: import("../../ids.ts").Id<"message">;
622
+ kind: "input";
623
+ } | {
624
+ kind: "continuation";
625
+ from: "job" | "child" | "wake";
612
626
  };
613
- agent: string | null;
614
- settings: Record<string, import("../../json.ts").Json>;
615
- settingsVersion: string;
616
- };
617
- startedAt: number;
618
- attempt: number;
619
- origin: {
620
- message: import("../../ids.ts").Id<"message">;
621
- kind: "input";
622
- } | {
623
- kind: "continuation";
624
- from: "job" | "child" | "wake";
625
627
  };
628
+ kind: "retrying";
629
+ reason: string;
630
+ until: number;
626
631
  };
627
- kind: "retrying";
628
- reason: string;
629
- until: number;
632
+ unread: boolean;
633
+ }[];
634
+ pinned: boolean;
635
+ archived: boolean;
636
+ activation: {
637
+ kind: "active";
638
+ } | {
639
+ kind: "inactive";
640
+ } | {
641
+ workspace: import("../../ids.ts").Id<"workspace">;
642
+ kind: "unavailable";
643
+ reason: "unreachable" | "unsupported";
644
+ } | {
645
+ message: string;
646
+ kind: "failed";
630
647
  };
631
- unread: boolean;
648
+ createdAt: number;
649
+ lastActivityAt: number;
632
650
  }[];
633
- pinned: boolean;
634
- archived: boolean;
635
- activation: {
636
- kind: "active";
637
- } | {
638
- kind: "inactive";
639
- } | {
640
- workspace: import("../../ids.ts").Id<"workspace">;
641
- kind: "unavailable";
642
- reason: "unreachable" | "unsupported";
643
- } | {
644
- message: string;
645
- kind: "failed";
651
+ kind: "list" | "delta";
652
+ order: {
653
+ items: import("../../ids.ts").Id<"session">[];
654
+ runs: number[];
646
655
  };
647
- createdAt: number;
648
- lastActivityAt: number;
649
- }[]>;
656
+ }>;
650
657
  readonly authority: "participant";
651
658
  readonly scope: "host";
652
659
  };
@@ -1,13 +1,16 @@
1
1
  import {
2
2
  HOST_OPERATIONS2,
3
3
  MAINTENANCE_OPERATIONS2
4
- } from "../../../chunks/browser-sgst60b0.js";
4
+ } from "../../../chunks/browser-fnanbp6m.js";
5
5
  import"../../../chunks/browser-r87w64mz.js";
6
+ import"../../../chunks/browser-fe66aj8v.js";
6
7
  import"../../../chunks/browser-j629a6wa.js";
7
8
  import"../../../chunks/browser-0byq2fja.js";
8
9
  import"../../../chunks/browser-s2xe7c21.js";
9
10
  import"../../../chunks/browser-0chm3654.js";
10
11
  import"../../../chunks/browser-6e1madxa.js";
12
+ import"../../../chunks/browser-t5xqtqzh.js";
13
+ import"../../../chunks/browser-h86zs54a.js";
11
14
  import"../../../chunks/browser-xensz05x.js";
12
15
  import"../../../chunks/browser-bg1esaw0.js";
13
16
  import"../../../chunks/browser-8ancsy4m.js";
@@ -18,6 +21,7 @@ import"../../../chunks/browser-ynj8v9ad.js";
18
21
  import"../../../chunks/browser-0sbkxgkx.js";
19
22
  import"../../../chunks/browser-sgwxbek9.js";
20
23
  import"../../../chunks/browser-1sfp0bcx.js";
24
+ import"../../../chunks/browser-ebr6k189.js";
21
25
  import"../../../chunks/browser-4et7qtz3.js";
22
26
  import"../../../chunks/browser-ypez6s7v.js";
23
27
  import"../../../chunks/browser-vzc3r2r3.js";