@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.
@@ -6645,182 +6645,189 @@ export declare const OPERATIONS: {
6645
6645
  } | undefined;
6646
6646
  }>;
6647
6647
  readonly output: import("../../schema.ts").Schema<{
6648
- name: string | null;
6649
- call: import("../../ids.ts").Id<"call"> | null;
6650
- workspace: import("../../ids.ts").Id<"workspace">;
6651
- id: import("../../ids.ts").Id<"session">;
6652
- parent: import("../../ids.ts").Id<"session"> | null;
6653
- heads: {
6654
- name: import("../../ids.ts").Id<"head">;
6655
- tip: {
6656
- kind: "start";
6657
- } | {
6658
- id: import("../../ids.ts").Id<"commit">;
6659
- kind: "commit";
6660
- };
6661
- stack: {
6662
- stale: boolean;
6663
- parent: import("../../ids.ts").Id<"head">;
6664
- base: {
6648
+ items: {
6649
+ name: string | null;
6650
+ call: import("../../ids.ts").Id<"call"> | null;
6651
+ workspace: import("../../ids.ts").Id<"workspace">;
6652
+ id: import("../../ids.ts").Id<"session">;
6653
+ parent: import("../../ids.ts").Id<"session"> | null;
6654
+ heads: {
6655
+ name: import("../../ids.ts").Id<"head">;
6656
+ tip: {
6665
6657
  kind: "start";
6666
6658
  } | {
6667
6659
  id: import("../../ids.ts").Id<"commit">;
6668
6660
  kind: "commit";
6669
6661
  };
6670
- } | null;
6671
- execution: {
6672
- kind: "idle";
6673
- lastRun: {
6674
- id: import("../../ids.ts").Id<"run">;
6675
- end: {
6676
- kind: "completed";
6677
- usage: {
6678
- output: number;
6679
- input: number;
6680
- cacheRead: number;
6681
- cacheWrite: number;
6682
- reasoning: number | null;
6683
- total: number;
6684
- cost: {
6662
+ stack: {
6663
+ stale: boolean;
6664
+ parent: import("../../ids.ts").Id<"head">;
6665
+ base: {
6666
+ kind: "start";
6667
+ } | {
6668
+ id: import("../../ids.ts").Id<"commit">;
6669
+ kind: "commit";
6670
+ };
6671
+ } | null;
6672
+ execution: {
6673
+ kind: "idle";
6674
+ lastRun: {
6675
+ id: import("../../ids.ts").Id<"run">;
6676
+ end: {
6677
+ kind: "completed";
6678
+ usage: {
6685
6679
  output: number;
6686
6680
  input: number;
6687
6681
  cacheRead: number;
6688
6682
  cacheWrite: number;
6683
+ reasoning: number | null;
6689
6684
  total: number;
6685
+ cost: {
6686
+ output: number;
6687
+ input: number;
6688
+ cacheRead: number;
6689
+ cacheWrite: number;
6690
+ total: number;
6691
+ };
6692
+ };
6693
+ } | {
6694
+ kind: "stopped";
6695
+ } | {
6696
+ kind: "failed";
6697
+ failure: {
6698
+ retryAfterMs?: number | undefined;
6699
+ message: string;
6700
+ class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
6690
6701
  };
6691
6702
  };
6692
- } | {
6693
- kind: "stopped";
6694
- } | {
6695
- kind: "failed";
6696
- failure: {
6697
- retryAfterMs?: number | undefined;
6698
- message: string;
6699
- class: "provider" | "rate_limit" | "auth" | "quota" | "context_window" | "overloaded" | "network" | "aborted" | "runner";
6703
+ endedAt: number;
6704
+ } | null;
6705
+ } | {
6706
+ run: {
6707
+ head: import("../../ids.ts").Id<"head">;
6708
+ id: import("../../ids.ts").Id<"run">;
6709
+ configuration: {
6710
+ kind: "exact";
6711
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6712
+ model: {
6713
+ id: string;
6714
+ provider: string;
6715
+ };
6716
+ agent: string | null;
6717
+ settings: Record<string, import("../../json.ts").Json>;
6718
+ settingsVersion: string;
6700
6719
  };
6701
- };
6702
- endedAt: number;
6703
- } | null;
6704
- } | {
6705
- run: {
6706
- head: import("../../ids.ts").Id<"head">;
6707
- id: import("../../ids.ts").Id<"run">;
6708
- configuration: {
6709
- kind: "exact";
6710
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6711
- model: {
6712
- id: string;
6713
- provider: string;
6720
+ startedAt: number;
6721
+ attempt: number;
6722
+ origin: {
6723
+ message: import("../../ids.ts").Id<"message">;
6724
+ kind: "input";
6725
+ } | {
6726
+ kind: "continuation";
6727
+ from: "job" | "child" | "wake";
6714
6728
  };
6715
- agent: string | null;
6716
- settings: Record<string, import("../../json.ts").Json>;
6717
- settingsVersion: string;
6718
6729
  };
6719
- startedAt: number;
6720
- attempt: number;
6721
- origin: {
6722
- message: import("../../ids.ts").Id<"message">;
6723
- kind: "input";
6724
- } | {
6725
- kind: "continuation";
6726
- from: "job" | "child" | "wake";
6727
- };
6728
- };
6729
- kind: "live";
6730
- phase: "responding" | "executing";
6731
- stopping: boolean;
6732
- } | {
6733
- run: {
6734
- head: import("../../ids.ts").Id<"head">;
6735
- id: import("../../ids.ts").Id<"run">;
6736
- configuration: {
6737
- kind: "exact";
6738
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6739
- model: {
6740
- id: string;
6741
- provider: string;
6730
+ kind: "live";
6731
+ phase: "responding" | "executing";
6732
+ stopping: boolean;
6733
+ } | {
6734
+ run: {
6735
+ head: import("../../ids.ts").Id<"head">;
6736
+ id: import("../../ids.ts").Id<"run">;
6737
+ configuration: {
6738
+ kind: "exact";
6739
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6740
+ model: {
6741
+ id: string;
6742
+ provider: string;
6743
+ };
6744
+ agent: string | null;
6745
+ settings: Record<string, import("../../json.ts").Json>;
6746
+ settingsVersion: string;
6747
+ };
6748
+ startedAt: number;
6749
+ attempt: number;
6750
+ origin: {
6751
+ message: import("../../ids.ts").Id<"message">;
6752
+ kind: "input";
6753
+ } | {
6754
+ kind: "continuation";
6755
+ from: "job" | "child" | "wake";
6742
6756
  };
6743
- agent: string | null;
6744
- settings: Record<string, import("../../json.ts").Json>;
6745
- settingsVersion: string;
6746
6757
  };
6747
- startedAt: number;
6748
- attempt: number;
6749
- origin: {
6750
- message: import("../../ids.ts").Id<"message">;
6751
- kind: "input";
6758
+ kind: "waiting";
6759
+ on: {
6760
+ deadline?: number | undefined;
6761
+ session: import("../../ids.ts").Id<"session">;
6762
+ run: import("../../ids.ts").Id<"run">;
6763
+ kind: "run";
6764
+ } | {
6765
+ deadline?: number | undefined;
6766
+ job: import("../../ids.ts").Id<"job">;
6767
+ kind: "job";
6768
+ } | {
6769
+ deadline?: number | undefined;
6770
+ part: import("../../ids.ts").Id<"part">;
6771
+ kind: "part";
6752
6772
  } | {
6753
- kind: "continuation";
6754
- from: "job" | "child" | "wake";
6773
+ deadline?: number | undefined;
6774
+ kind: "timer";
6775
+ until: number;
6755
6776
  };
6756
- };
6757
- kind: "waiting";
6758
- on: {
6759
- deadline?: number | undefined;
6760
- session: import("../../ids.ts").Id<"session">;
6761
- run: import("../../ids.ts").Id<"run">;
6762
- kind: "run";
6763
- } | {
6764
- deadline?: number | undefined;
6765
- job: import("../../ids.ts").Id<"job">;
6766
- kind: "job";
6767
6777
  } | {
6768
- deadline?: number | undefined;
6769
- part: import("../../ids.ts").Id<"part">;
6770
- kind: "part";
6771
- } | {
6772
- deadline?: number | undefined;
6773
- kind: "timer";
6774
- until: number;
6775
- };
6776
- } | {
6777
- run: {
6778
- head: import("../../ids.ts").Id<"head">;
6779
- id: import("../../ids.ts").Id<"run">;
6780
- configuration: {
6781
- kind: "exact";
6782
- thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6783
- model: {
6784
- id: string;
6785
- provider: string;
6778
+ run: {
6779
+ head: import("../../ids.ts").Id<"head">;
6780
+ id: import("../../ids.ts").Id<"run">;
6781
+ configuration: {
6782
+ kind: "exact";
6783
+ thinking: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6784
+ model: {
6785
+ id: string;
6786
+ provider: string;
6787
+ };
6788
+ agent: string | null;
6789
+ settings: Record<string, import("../../json.ts").Json>;
6790
+ settingsVersion: string;
6791
+ };
6792
+ startedAt: number;
6793
+ attempt: number;
6794
+ origin: {
6795
+ message: import("../../ids.ts").Id<"message">;
6796
+ kind: "input";
6797
+ } | {
6798
+ kind: "continuation";
6799
+ from: "job" | "child" | "wake";
6786
6800
  };
6787
- agent: string | null;
6788
- settings: Record<string, import("../../json.ts").Json>;
6789
- settingsVersion: string;
6790
- };
6791
- startedAt: number;
6792
- attempt: number;
6793
- origin: {
6794
- message: import("../../ids.ts").Id<"message">;
6795
- kind: "input";
6796
- } | {
6797
- kind: "continuation";
6798
- from: "job" | "child" | "wake";
6799
6801
  };
6802
+ kind: "retrying";
6803
+ reason: string;
6804
+ until: number;
6800
6805
  };
6801
- kind: "retrying";
6802
- reason: string;
6803
- until: number;
6806
+ unread: boolean;
6807
+ }[];
6808
+ pinned: boolean;
6809
+ archived: boolean;
6810
+ activation: {
6811
+ kind: "active";
6812
+ } | {
6813
+ kind: "inactive";
6814
+ } | {
6815
+ workspace: import("../../ids.ts").Id<"workspace">;
6816
+ kind: "unavailable";
6817
+ reason: "unreachable" | "unsupported";
6818
+ } | {
6819
+ message: string;
6820
+ kind: "failed";
6804
6821
  };
6805
- unread: boolean;
6822
+ createdAt: number;
6823
+ lastActivityAt: number;
6806
6824
  }[];
6807
- pinned: boolean;
6808
- archived: boolean;
6809
- activation: {
6810
- kind: "active";
6811
- } | {
6812
- kind: "inactive";
6813
- } | {
6814
- workspace: import("../../ids.ts").Id<"workspace">;
6815
- kind: "unavailable";
6816
- reason: "unreachable" | "unsupported";
6817
- } | {
6818
- message: string;
6819
- kind: "failed";
6825
+ kind: "list" | "delta";
6826
+ order: {
6827
+ items: import("../../ids.ts").Id<"session">[];
6828
+ runs: number[];
6820
6829
  };
6821
- createdAt: number;
6822
- lastActivityAt: number;
6823
- }[]>;
6830
+ }>;
6824
6831
  readonly authority: "participant";
6825
6832
  readonly scope: "host";
6826
6833
  };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  OPERATIONS2
3
- } from "../../../chunks/browser-pvfshqyk.js";
4
- import"../../../chunks/browser-jgxe05s4.js";
3
+ } from "../../../chunks/browser-etfrcxhb.js";
4
+ import"../../../chunks/browser-gzn951k8.js";
5
5
  import"../../../chunks/browser-h5k4hqfq.js";
6
6
  import"../../../chunks/browser-fd3accdr.js";
7
7
  import"../../../chunks/browser-pdv675va.js";
8
8
  import"../../../chunks/browser-0xr6c36r.js";
9
9
  import"../../../chunks/browser-0g0z3617.js";
10
- import"../../../chunks/browser-sgst60b0.js";
10
+ import"../../../chunks/browser-fnanbp6m.js";
11
11
  import"../../../chunks/browser-r87w64mz.js";
12
- import"../../../chunks/browser-hp9ze9ga.js";
12
+ import"../../../chunks/browser-fe66aj8v.js";
13
13
  import"../../../chunks/browser-b519jtez.js";
14
14
  import"../../../chunks/browser-j629a6wa.js";
15
15
  import"../../../chunks/browser-0byq2fja.js";
@@ -18,7 +18,7 @@ import"../../../chunks/browser-mzfc0v5j.js";
18
18
  import"../../../chunks/browser-s2xe7c21.js";
19
19
  import"../../../chunks/browser-0chm3654.js";
20
20
  import"../../../chunks/browser-6e1madxa.js";
21
- import"../../../chunks/browser-j150etqf.js";
21
+ import"../../../chunks/browser-t5xqtqzh.js";
22
22
  import"../../../chunks/browser-h86zs54a.js";
23
23
  import"../../../chunks/browser-xensz05x.js";
24
24
  import"../../../chunks/browser-bg1esaw0.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SESSION_OPERATIONS2
3
- } from "../../../chunks/browser-jgxe05s4.js";
3
+ } from "../../../chunks/browser-gzn951k8.js";
4
4
  import"../../../chunks/browser-r87w64mz.js";
5
- import"../../../chunks/browser-hp9ze9ga.js";
5
+ import"../../../chunks/browser-fe66aj8v.js";
6
6
  import"../../../chunks/browser-0chm3654.js";
7
- import"../../../chunks/browser-j150etqf.js";
7
+ import"../../../chunks/browser-t5xqtqzh.js";
8
8
  import"../../../chunks/browser-h86zs54a.js";
9
9
  import"../../../chunks/browser-xensz05x.js";
10
10
  import"../../../chunks/browser-bg1esaw0.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyte-ai/schema",
3
- "version": "0.0.19",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,11 +33,11 @@
33
33
  "provenance": true
34
34
  },
35
35
  "dependencies": {
36
- "@standard-schema/spec": "1.1.0",
37
- "typebox": "1.3.36"
36
+ "@standard-schema/spec": "^1.1.0",
37
+ "typebox": "^1.4.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@cfworker/json-schema": "4.1.1",
40
+ "@cfworker/json-schema": "^4.1.1",
41
41
  "@types/node": "^26.6.5",
42
42
  "typescript": "6.0.3",
43
43
  "vitest": "^5.0.5"