@nyte-ai/core 0.0.23 → 0.0.25-beta.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.
- package/THIRD-PARTY-NOTICES.md +2 -38
- package/dist/chunks/{compose-nj4nj5n9.js → compose-0f9x3cjd.js} +1 -1
- package/dist/chunks/{compose-yfcb6w2h.js → compose-0zrwy7nk.js} +1 -1
- package/dist/chunks/{compose-xhtgytrh.js → compose-122g5jvb.js} +1 -1
- package/dist/chunks/{compose-nkxwrphm.js → compose-17xxey5y.js} +6 -6
- package/dist/chunks/compose-1hgkp0q6.js +154 -0
- package/dist/chunks/{compose-ad80nkkn.js → compose-1kvvrw50.js} +6 -6
- package/dist/chunks/{compose-jeemzja1.js → compose-1nqjy2z5.js} +3 -3
- package/dist/chunks/compose-2e84znn8.js +62 -0
- package/dist/chunks/{compose-sprfv38c.js → compose-34cqydxc.js} +4 -4
- package/dist/chunks/{compose-ee0h1pk1.js → compose-3qkhfwtd.js} +4 -4
- package/dist/chunks/{compose-yr19b453.js → compose-4jqwbez4.js} +7 -7
- package/dist/chunks/{compose-5rg7askh.js → compose-4krv4vzw.js} +13 -5
- package/dist/chunks/{compose-byse0eqj.js → compose-4s0c5zqv.js} +6 -6
- package/dist/chunks/{compose-gj2ypr7q.js → compose-5ygdrc65.js} +3 -3
- package/dist/chunks/{compose-csh5vv2t.js → compose-6e9ktyhr.js} +1 -1
- package/dist/chunks/{compose-dbsn3bsy.js → compose-6zgf2dtw.js} +6 -3
- package/dist/chunks/{compose-ht1tbyr3.js → compose-75pnchkk.js} +22 -10
- package/dist/chunks/{compose-vzvm76dn.js → compose-79h43be5.js} +13 -5
- package/dist/chunks/compose-7bpnxft1.js +20 -0
- package/dist/chunks/{compose-jwy1gba9.js → compose-7sjf0y70.js} +3 -3
- package/dist/chunks/{compose-1tdb9ezw.js → compose-8nysak5a.js} +33 -22
- package/dist/chunks/{compose-ay7t13m9.js → compose-8p6emvvh.js} +8 -8
- package/dist/chunks/{compose-e3635qmn.js → compose-8ranx653.js} +17 -2
- package/dist/chunks/{compose-5njywhy8.js → compose-9tntshv3.js} +6 -6
- package/dist/chunks/{compose-gvm49f4b.js → compose-b10qcn9b.js} +1 -1
- package/dist/chunks/{compose-42egt9y7.js → compose-b4zb2rpb.js} +21 -12
- package/dist/chunks/{compose-767bb340.js → compose-c7jk6qr1.js} +1 -1
- package/dist/chunks/{compose-hfsn6pnt.js → compose-chcqk093.js} +39 -17
- package/dist/chunks/{compose-nw5hdpxk.js → compose-ct1h40fd.js} +8 -8
- package/dist/chunks/{compose-smsafpqe.js → compose-d5yhtpa7.js} +2 -2
- package/dist/chunks/{compose-qxfq6dn9.js → compose-d95420jw.js} +8 -8
- package/dist/chunks/{compose-gxjc6vz9.js → compose-dw8fvn94.js} +4 -2
- package/dist/chunks/{compose-fnncnk81.js → compose-dywbt4he.js} +5 -5
- package/dist/chunks/{compose-xvbyp65f.js → compose-gnfmty38.js} +30 -10
- package/dist/chunks/{compose-mdwr0er9.js → compose-h0d0vess.js} +4 -4
- package/dist/chunks/{compose-2gsbcjgv.js → compose-hf0nrd46.js} +22 -18
- package/dist/chunks/{compose-mcz93154.js → compose-ht5fhzzw.js} +10 -10
- package/dist/chunks/{compose-8pp3vtv0.js → compose-hx8j2kef.js} +4 -4
- package/dist/chunks/{compose-c4z4kp98.js → compose-j8xmyfy6.js} +118 -42
- package/dist/chunks/{compose-9jvn2wvh.js → compose-jawbhn7q.js} +21 -5
- package/dist/chunks/{compose-2rha31fc.js → compose-jbrtw0md.js} +4 -4
- package/dist/chunks/{compose-m01wspwf.js → compose-jrxg4vqg.js} +1 -1
- package/dist/chunks/{compose-bz70g01d.js → compose-kf2k4hq5.js} +5 -5
- package/dist/chunks/{compose-w6zb11k1.js → compose-kgdmzx0n.js} +6 -6
- package/dist/chunks/{compose-qjxtbzgq.js → compose-krkyrds4.js} +11 -5
- package/dist/chunks/{compose-tppkp915.js → compose-kw3bf8mf.js} +4 -4
- package/dist/chunks/{compose-d95fwwvw.js → compose-kwbs1f34.js} +2 -2
- package/dist/chunks/{compose-j42p9wfs.js → compose-n29d5dzv.js} +1 -1
- package/dist/chunks/{compose-qwbe95qs.js → compose-n5f6w2y6.js} +1 -1
- package/dist/chunks/{compose-a7k9h27z.js → compose-nc60858y.js} +4 -4
- package/dist/chunks/{compose-6r5ymwyr.js → compose-nenmmq5w.js} +30 -10
- package/dist/chunks/{compose-enq3x3rq.js → compose-p7j0gt4t.js} +22 -7
- package/dist/chunks/compose-pb3420v8.js +74 -0
- package/dist/chunks/{compose-ts08bth2.js → compose-pcfvksb2.js} +1 -1
- package/dist/chunks/{compose-917xy085.js → compose-pjkzf9ev.js} +9 -9
- package/dist/chunks/{compose-c9wxgbjp.js → compose-prek5sd9.js} +2 -2
- package/dist/chunks/{compose-h14pmqv3.js → compose-qgz6q016.js} +1 -1
- package/dist/chunks/{compose-y6xgbg2h.js → compose-qq85vkhf.js} +1 -1
- package/dist/chunks/{compose-bd8c5n7k.js → compose-qyjchprv.js} +2 -2
- package/dist/chunks/{compose-97y00axn.js → compose-rh1d2g0s.js} +30 -16
- package/dist/chunks/compose-s23st6q6.js +4 -0
- package/dist/chunks/{compose-bbhk8vnr.js → compose-s4kyfjj6.js} +2 -2
- package/dist/chunks/{compose-t9fcqtby.js → compose-sjfbxw65.js} +93 -85
- package/dist/chunks/{compose-a40dnhy5.js → compose-vphbntyn.js} +7 -7
- package/dist/chunks/compose-vxme67gg.js +63 -0
- package/dist/chunks/compose-wgs4rgfp.js +32 -0
- package/dist/chunks/{compose-1xn3eecn.js → compose-xdq54csy.js} +39 -35
- package/dist/chunks/{compose-v46qmh60.js → compose-yd5t8qj3.js} +63 -126
- package/dist/chunks/{compose-vn7b7fdj.js → compose-ydth4n0z.js} +7 -3
- package/dist/chunks/{compose-6gt28900.js → compose-yxhvzsed.js} +4 -4
- package/dist/chunks/{compose-matk94se.js → compose-zajq79k0.js} +6 -6
- package/dist/chunks/{compose-ae5t6v5b.js → compose-zq7ar8qm.js} +4 -4
- package/dist/chunks/{compose-4ppmas7g.js → compose-zt2qtrxj.js} +4 -4
- package/dist/chunks/compose-ztyjpn84.js +59 -0
- package/dist/chunks/{compose-m91ffwss.js → compose-zv0t13e7.js} +2 -2
- package/dist/chunks/{compose-r8tz1xfj.js → compose-zx78edb2.js} +9 -5
- package/dist/src/agent/agent-loop.d.ts +4 -0
- package/dist/src/agent/agent-loop.js +3 -1
- package/dist/src/agent/compaction.js +38 -37
- package/dist/src/agent/open-parts.d.ts +34 -0
- package/dist/src/agent/open-parts.js +22 -0
- package/dist/src/agent/request.js +27 -26
- package/dist/src/agent/tool-runner.d.ts +5 -5
- package/dist/src/agent/tool-runner.js +31 -30
- package/dist/src/agent/transcript.js +34 -33
- package/dist/src/agent/turn.js +48 -43
- package/dist/src/api/connection.js +61 -56
- package/dist/src/api/head.d.ts +1 -2
- package/dist/src/api/head.js +43 -39
- package/dist/src/api/hold.d.ts +7 -0
- package/dist/src/api/hold.js +7 -0
- package/dist/src/api/part.js +20 -18
- package/dist/src/api/server.js +48 -45
- package/dist/src/api/session.js +48 -44
- package/dist/src/builtins/delegation.js +1 -1
- package/dist/src/builtins/environment.d.ts +8 -0
- package/dist/src/builtins/environment.js +3 -1
- package/dist/src/builtins/interruptions.d.ts +4 -0
- package/dist/src/builtins/interruptions.js +8 -0
- package/dist/src/compose.js +75 -68
- package/dist/src/contract/host.d.ts +6 -0
- package/dist/src/contract/kernel.d.ts +9 -6
- package/dist/src/contract/parts.d.ts +48 -46
- package/dist/src/contract/records.d.ts +429 -419
- package/dist/src/contract/records.js +1 -1
- package/dist/src/contract/server.d.ts +3 -1
- package/dist/src/contract/session.d.ts +31 -1
- package/dist/src/contract/session.js +6 -0
- package/dist/src/contract/workspace.d.ts +3 -1
- package/dist/src/drive/execution.js +44 -43
- package/dist/src/drive/interruptions.d.ts +10 -2
- package/dist/src/drive/interruptions.js +9 -5
- package/dist/src/drive/pause.d.ts +11 -0
- package/dist/src/drive/pause.js +10 -0
- package/dist/src/engine/admission-writes.d.ts +22 -0
- package/dist/src/engine/admission-writes.js +15 -0
- package/dist/src/engine/admission.d.ts +15 -1
- package/dist/src/engine/admission.js +25 -20
- package/dist/src/engine/batches.js +18 -18
- package/dist/src/engine/branch-summary.js +17 -17
- package/dist/src/engine/durable.js +17 -17
- package/dist/src/engine/fence.js +16 -16
- package/dist/src/engine/holds.d.ts +4 -0
- package/dist/src/engine/holds.js +43 -0
- package/dist/src/engine/jobs.js +24 -23
- package/dist/src/engine/lease.d.ts +5 -4
- package/dist/src/engine/lease.js +1 -1
- package/dist/src/engine/move.js +19 -19
- package/dist/src/engine/presence.js +2 -2
- package/dist/src/engine/principals.js +14 -14
- package/dist/src/engine/receipts.js +17 -17
- package/dist/src/engine/runs.js +22 -21
- package/dist/src/engine/start.js +34 -33
- package/dist/src/engine/surface.js +3 -3
- package/dist/src/engine/waits.js +15 -15
- package/dist/src/env/browser.js +25 -24
- package/dist/src/env/environment.js +27 -26
- package/dist/src/env/mcp.js +29 -28
- package/dist/src/env/session-changes.js +3 -3
- package/dist/src/env/trust.js +28 -27
- package/dist/src/env/workspaces.js +32 -31
- package/dist/src/env/worktrees.js +33 -32
- package/dist/src/extend/activation.d.ts +3 -0
- package/dist/src/extend/activation.js +35 -32
- package/dist/src/extend/hooks.js +19 -19
- package/dist/src/extend/models.js +26 -25
- package/dist/src/extend/plugin-api.js +14 -14
- package/dist/src/extend/plugin-runtime.d.ts +3 -1
- package/dist/src/extend/plugin-runtime.js +39 -38
- package/dist/src/extend/registry.js +24 -23
- package/dist/src/extend/resources.js +29 -28
- package/dist/src/extend/setting-layers.js +3 -3
- package/dist/src/extend/settings.js +36 -35
- package/dist/src/extend/workspace-commands.js +40 -39
- package/dist/src/fold/calls.js +4 -4
- package/dist/src/fold/checkpoint.js +9 -9
- package/dist/src/fold/code.d.ts +1 -1
- package/dist/src/fold/code.js +1 -1
- package/dist/src/fold/commit.js +13 -13
- package/dist/src/fold/draft.d.ts +37 -37
- package/dist/src/fold/draft.js +3 -3
- package/dist/src/fold/fold.js +6 -6
- package/dist/src/fold/paths.js +4 -4
- package/dist/src/fold/project.d.ts +2 -2
- package/dist/src/fold/project.js +6 -6
- package/dist/src/fold/reads.js +3 -3
- package/dist/src/fold/seen.d.ts +3 -5
- package/dist/src/fold/seen.js +17 -17
- package/dist/src/fold/view.d.ts +7 -1
- package/dist/src/fold/view.js +8 -23
- package/dist/src/fold/watch.js +12 -12
- package/dist/src/harness.d.ts +257 -257
- package/dist/src/harness.js +78 -71
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.js +13 -3
- package/dist/src/server.js +73 -66
- package/dist/src/store/inspect.js +3 -3
- package/dist/src/store/memory-store.js +3 -3
- package/dist/src/store/migrations.js +2 -2
- package/dist/src/store/model-state.js +2 -2
- package/dist/src/store/parts.js +3 -3
- package/dist/src/store/session-index.js +2 -2
- package/dist/src/store/session.js +2 -2
- package/dist/src/store.js +5 -5
- package/dist/src/testing.js +76 -69
- package/dist/src/util/line-diff.d.ts +5 -5
- package/package.json +4 -5
- package/dist/chunks/compose-hfrjm4a1.js +0 -88
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type { Json } from "@nyte-ai/schema";
|
|
2
2
|
import { Type } from "typebox";
|
|
3
|
-
import type { Static } from "typebox";
|
|
3
|
+
import type { Static, TUnsafe } from "typebox";
|
|
4
4
|
declare const HeadRecordType: Type.TObject<{
|
|
5
|
-
name: Type.TReadonly<
|
|
6
|
-
stack: Type.TReadonly<
|
|
7
|
-
readonly
|
|
5
|
+
name: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
6
|
+
stack: Type.TReadonly<TUnsafe<{
|
|
7
|
+
readonly parent: import("@nyte-ai/schema").Id<"head">;
|
|
8
8
|
readonly base: {
|
|
9
9
|
readonly kind: "start";
|
|
10
10
|
} | {
|
|
11
11
|
readonly kind: "commit";
|
|
12
12
|
readonly id: import("@nyte-ai/schema").Id<"commit">;
|
|
13
13
|
};
|
|
14
|
-
readonly
|
|
14
|
+
readonly stale: boolean;
|
|
15
15
|
} | null>>;
|
|
16
|
-
selected: Type.TReadonly<Type.TUnion<[
|
|
16
|
+
selected: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
17
17
|
readonly kind: "exact";
|
|
18
18
|
readonly model: {
|
|
19
|
-
readonly id: string;
|
|
20
19
|
readonly provider: string;
|
|
20
|
+
readonly id: string;
|
|
21
21
|
};
|
|
22
|
-
readonly thinking: "
|
|
22
|
+
readonly thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
23
23
|
readonly agent: string | null;
|
|
24
24
|
readonly settings: {
|
|
25
25
|
readonly [x: string]: Json;
|
|
@@ -27,8 +27,8 @@ declare const HeadRecordType: Type.TObject<{
|
|
|
27
27
|
readonly settingsVersion: string;
|
|
28
28
|
}>, Type.TNull]>>;
|
|
29
29
|
lastRun: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
30
|
-
id: Type.TReadonly<
|
|
31
|
-
end: Type.TReadonly<
|
|
30
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"run">>>;
|
|
31
|
+
end: Type.TReadonly<TUnsafe<{
|
|
32
32
|
readonly kind: "completed";
|
|
33
33
|
readonly usage: {
|
|
34
34
|
readonly input: number;
|
|
@@ -50,14 +50,14 @@ declare const HeadRecordType: Type.TObject<{
|
|
|
50
50
|
} | {
|
|
51
51
|
readonly kind: "failed";
|
|
52
52
|
readonly failure: {
|
|
53
|
-
readonly
|
|
53
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
54
54
|
readonly message: string;
|
|
55
|
-
readonly
|
|
55
|
+
readonly retryAfterMs?: number | undefined;
|
|
56
56
|
};
|
|
57
57
|
}>>;
|
|
58
58
|
endedAt: Type.TReadonly<Type.TNumber>;
|
|
59
59
|
}>, Type.TNull]>>;
|
|
60
|
-
response: Type.TReadonly<Type.TOptional<
|
|
60
|
+
response: Type.TReadonly<Type.TOptional<TUnsafe<{
|
|
61
61
|
readonly input: number;
|
|
62
62
|
readonly output: number;
|
|
63
63
|
readonly cacheRead: number;
|
|
@@ -75,38 +75,38 @@ declare const HeadRecordType: Type.TObject<{
|
|
|
75
75
|
}>;
|
|
76
76
|
export type HeadRecord = Static<typeof HeadRecordType>;
|
|
77
77
|
declare const SessionRecordType: Type.TObject<{
|
|
78
|
-
id: Type.TReadonly<
|
|
78
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"session">>>;
|
|
79
79
|
name: Type.TReadonly<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
80
|
-
parent: Type.TReadonly<Type.TUnion<[
|
|
80
|
+
parent: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"session">>, Type.TNull]>>;
|
|
81
81
|
origin: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
82
|
-
run: Type.TReadonly<
|
|
83
|
-
head: Type.TReadonly<
|
|
84
|
-
call: Type.TReadonly<Type.TUnion<[
|
|
82
|
+
run: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"run">>>;
|
|
83
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
84
|
+
call: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"call">>, Type.TNull]>>;
|
|
85
85
|
}>, Type.TNull]>>;
|
|
86
|
-
workspace: Type.TReadonly<
|
|
86
|
+
workspace: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
87
87
|
pinned: Type.TReadonly<Type.TBoolean>;
|
|
88
88
|
archived: Type.TReadonly<Type.TBoolean>;
|
|
89
89
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
90
90
|
lastActivityAt: Type.TReadonly<Type.TNumber>;
|
|
91
91
|
heads: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TObject<{
|
|
92
|
-
name: Type.TReadonly<
|
|
93
|
-
stack: Type.TReadonly<
|
|
94
|
-
readonly
|
|
92
|
+
name: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
93
|
+
stack: Type.TReadonly<TUnsafe<{
|
|
94
|
+
readonly parent: import("@nyte-ai/schema").Id<"head">;
|
|
95
95
|
readonly base: {
|
|
96
96
|
readonly kind: "start";
|
|
97
97
|
} | {
|
|
98
98
|
readonly kind: "commit";
|
|
99
99
|
readonly id: import("@nyte-ai/schema").Id<"commit">;
|
|
100
100
|
};
|
|
101
|
-
readonly
|
|
101
|
+
readonly stale: boolean;
|
|
102
102
|
} | null>>;
|
|
103
|
-
selected: Type.TReadonly<Type.TUnion<[
|
|
103
|
+
selected: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
104
104
|
readonly kind: "exact";
|
|
105
105
|
readonly model: {
|
|
106
|
-
readonly id: string;
|
|
107
106
|
readonly provider: string;
|
|
107
|
+
readonly id: string;
|
|
108
108
|
};
|
|
109
|
-
readonly thinking: "
|
|
109
|
+
readonly thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
110
110
|
readonly agent: string | null;
|
|
111
111
|
readonly settings: {
|
|
112
112
|
readonly [x: string]: Json;
|
|
@@ -114,8 +114,8 @@ declare const SessionRecordType: Type.TObject<{
|
|
|
114
114
|
readonly settingsVersion: string;
|
|
115
115
|
}>, Type.TNull]>>;
|
|
116
116
|
lastRun: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
117
|
-
id: Type.TReadonly<
|
|
118
|
-
end: Type.TReadonly<
|
|
117
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"run">>>;
|
|
118
|
+
end: Type.TReadonly<TUnsafe<{
|
|
119
119
|
readonly kind: "completed";
|
|
120
120
|
readonly usage: {
|
|
121
121
|
readonly input: number;
|
|
@@ -137,14 +137,14 @@ declare const SessionRecordType: Type.TObject<{
|
|
|
137
137
|
} | {
|
|
138
138
|
readonly kind: "failed";
|
|
139
139
|
readonly failure: {
|
|
140
|
-
readonly
|
|
140
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
141
141
|
readonly message: string;
|
|
142
|
-
readonly
|
|
142
|
+
readonly retryAfterMs?: number | undefined;
|
|
143
143
|
};
|
|
144
144
|
}>>;
|
|
145
145
|
endedAt: Type.TReadonly<Type.TNumber>;
|
|
146
146
|
}>, Type.TNull]>>;
|
|
147
|
-
response: Type.TReadonly<Type.TOptional<
|
|
147
|
+
response: Type.TReadonly<Type.TOptional<TUnsafe<{
|
|
148
148
|
readonly input: number;
|
|
149
149
|
readonly output: number;
|
|
150
150
|
readonly cacheRead: number;
|
|
@@ -160,74 +160,75 @@ declare const SessionRecordType: Type.TObject<{
|
|
|
160
160
|
};
|
|
161
161
|
}>>>;
|
|
162
162
|
}>>>>;
|
|
163
|
-
prompt: Type.TReadonly<Type.TUnion<[
|
|
164
|
-
readonly order?: number | undefined;
|
|
163
|
+
prompt: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
165
164
|
readonly kind: "layer";
|
|
166
165
|
readonly text: string;
|
|
166
|
+
readonly order?: number | undefined;
|
|
167
167
|
} | {
|
|
168
168
|
readonly kind: "replace";
|
|
169
169
|
readonly text: string;
|
|
170
170
|
}>, Type.TNull]>>;
|
|
171
|
+
contextFiles: Type.TReadonly<Type.TOptional<Type.TLiteral<false>>>;
|
|
171
172
|
}>;
|
|
172
173
|
export type SessionRecord = Static<typeof SessionRecordType>;
|
|
173
174
|
declare const CommitRecordType: Type.TObject<{
|
|
174
|
-
parent: Type.TReadonly<Type.TUnion<[
|
|
175
|
+
parent: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"commit">>, Type.TNull]>>;
|
|
175
176
|
at: Type.TReadonly<Type.TNumber>;
|
|
176
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
177
|
-
body: Type.TReadonly<
|
|
178
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
179
|
-
readonly source: {
|
|
180
|
-
readonly kind: "user";
|
|
181
|
-
} | {
|
|
182
|
-
readonly kind: "child";
|
|
183
|
-
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
184
|
-
readonly end: "completed" | "stopped" | "failed";
|
|
185
|
-
} | {
|
|
186
|
-
readonly kind: "job";
|
|
187
|
-
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
188
|
-
} | {
|
|
189
|
-
readonly kind: "shell";
|
|
190
|
-
} | {
|
|
191
|
-
readonly command?: string | undefined;
|
|
192
|
-
readonly kind: "action";
|
|
193
|
-
readonly label: string;
|
|
194
|
-
};
|
|
177
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
178
|
+
body: Type.TReadonly<TUnsafe<{
|
|
195
179
|
readonly kind: "user";
|
|
196
|
-
readonly
|
|
180
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
197
181
|
readonly content: string | readonly ({
|
|
198
182
|
readonly kind: "text";
|
|
199
183
|
readonly text: string;
|
|
200
184
|
} | {
|
|
201
185
|
readonly kind: "file";
|
|
202
|
-
readonly name: string;
|
|
203
186
|
readonly blob: import("@nyte-ai/schema").Id<"blob">;
|
|
204
187
|
readonly mime: string;
|
|
188
|
+
readonly name: string;
|
|
205
189
|
} | {
|
|
206
|
-
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
207
|
-
readonly path: string;
|
|
208
190
|
readonly kind: "reference";
|
|
191
|
+
readonly path: string;
|
|
192
|
+
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
209
193
|
} | {
|
|
210
194
|
readonly kind: "skill";
|
|
211
195
|
readonly name: string;
|
|
212
196
|
readonly location: string;
|
|
213
197
|
} | {
|
|
198
|
+
readonly kind: "excerpt";
|
|
214
199
|
readonly source: {
|
|
215
|
-
readonly path: string;
|
|
216
200
|
readonly kind: "diff";
|
|
201
|
+
readonly path: string;
|
|
202
|
+
readonly side: "new" | "old";
|
|
217
203
|
readonly start: number;
|
|
218
204
|
readonly end: number;
|
|
219
|
-
readonly side: "old" | "new";
|
|
220
205
|
} | {
|
|
221
|
-
readonly command?: string | undefined;
|
|
222
206
|
readonly kind: "terminal";
|
|
207
|
+
readonly command?: string | undefined;
|
|
223
208
|
} | {
|
|
224
209
|
readonly kind: "browser";
|
|
225
210
|
readonly url: string;
|
|
226
211
|
readonly selector: string;
|
|
227
212
|
};
|
|
228
|
-
readonly kind: "excerpt";
|
|
229
213
|
readonly text: string;
|
|
230
214
|
})[];
|
|
215
|
+
readonly source: {
|
|
216
|
+
readonly kind: "user";
|
|
217
|
+
} | {
|
|
218
|
+
readonly kind: "child";
|
|
219
|
+
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
220
|
+
readonly end: "completed" | "failed" | "stopped";
|
|
221
|
+
} | {
|
|
222
|
+
readonly kind: "job";
|
|
223
|
+
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
224
|
+
} | {
|
|
225
|
+
readonly kind: "shell";
|
|
226
|
+
} | {
|
|
227
|
+
readonly kind: "action";
|
|
228
|
+
readonly label: string;
|
|
229
|
+
readonly command?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
readonly delivery: "attach" | "queue" | "steer";
|
|
231
232
|
readonly siblings: readonly import("@nyte-ai/schema").Id<"commit">[];
|
|
232
233
|
} | {
|
|
233
234
|
readonly kind: "part";
|
|
@@ -244,44 +245,48 @@ declare const CommitRecordType: Type.TObject<{
|
|
|
244
245
|
}>;
|
|
245
246
|
export type CommitRecord = Static<typeof CommitRecordType>;
|
|
246
247
|
declare const InboxRecordType: Type.TObject<{
|
|
247
|
-
messages: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
248
|
-
pendingInput: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
248
|
+
messages: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"message">>>>>;
|
|
249
|
+
pendingInput: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"message">>>>>;
|
|
250
|
+
hold: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
251
|
+
message: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"message">>>;
|
|
252
|
+
until: Type.TReadonly<Type.TNumber>;
|
|
253
|
+
}>>>;
|
|
249
254
|
}>;
|
|
250
255
|
export type InboxRecord = Static<typeof InboxRecordType>;
|
|
251
256
|
declare const RunRecordType: Type.TObject<{
|
|
252
|
-
view: Type.TReadonly<
|
|
253
|
-
readonly head: import("@nyte-ai/schema").Id<"head">;
|
|
257
|
+
view: Type.TReadonly<TUnsafe<{
|
|
254
258
|
readonly id: import("@nyte-ai/schema").Id<"run">;
|
|
259
|
+
readonly head: import("@nyte-ai/schema").Id<"head">;
|
|
260
|
+
readonly startedAt: number;
|
|
261
|
+
readonly attempt: number;
|
|
255
262
|
readonly configuration: {
|
|
256
263
|
readonly kind: "exact";
|
|
257
264
|
readonly model: {
|
|
258
|
-
readonly id: string;
|
|
259
265
|
readonly provider: string;
|
|
266
|
+
readonly id: string;
|
|
260
267
|
};
|
|
261
|
-
readonly thinking: "
|
|
268
|
+
readonly thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
262
269
|
readonly agent: string | null;
|
|
263
270
|
readonly settings: {
|
|
264
271
|
readonly [x: string]: Json;
|
|
265
272
|
};
|
|
266
273
|
readonly settingsVersion: string;
|
|
267
274
|
};
|
|
268
|
-
readonly startedAt: number;
|
|
269
|
-
readonly attempt: number;
|
|
270
275
|
readonly origin: {
|
|
271
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
272
276
|
readonly kind: "input";
|
|
277
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
273
278
|
} | {
|
|
274
279
|
readonly kind: "continuation";
|
|
275
|
-
readonly from: "
|
|
280
|
+
readonly from: "child" | "job" | "wake";
|
|
276
281
|
};
|
|
277
282
|
}>>;
|
|
278
283
|
phase: Type.TReadonly<Type.TEnum<["responding", "executing"]>>;
|
|
279
284
|
stopping: Type.TReadonly<Type.TBoolean>;
|
|
280
|
-
waiting: Type.TReadonly<Type.TUnion<[
|
|
285
|
+
waiting: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
281
286
|
readonly deadline?: number | undefined;
|
|
282
287
|
readonly kind: "run";
|
|
283
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
284
288
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
289
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
285
290
|
} | {
|
|
286
291
|
readonly deadline?: number | undefined;
|
|
287
292
|
readonly kind: "job";
|
|
@@ -299,9 +304,9 @@ declare const RunRecordType: Type.TObject<{
|
|
|
299
304
|
until: Type.TReadonly<Type.TNumber>;
|
|
300
305
|
reason: Type.TReadonly<Type.TString>;
|
|
301
306
|
}>, Type.TNull]>>;
|
|
302
|
-
snapshot: Type.TReadonly<Type.TUnion<[
|
|
303
|
-
lastSnapshot: Type.TReadonly<Type.TUnion<[
|
|
304
|
-
usage: Type.TReadonly<Type.TUnion<[
|
|
307
|
+
snapshot: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"snapshot">>, Type.TNull]>>;
|
|
308
|
+
lastSnapshot: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"snapshot">>, Type.TNull]>>;
|
|
309
|
+
usage: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
305
310
|
readonly input: number;
|
|
306
311
|
readonly output: number;
|
|
307
312
|
readonly cacheRead: number;
|
|
@@ -317,7 +322,7 @@ declare const RunRecordType: Type.TObject<{
|
|
|
317
322
|
};
|
|
318
323
|
}>, Type.TNull]>>;
|
|
319
324
|
requests: Type.TReadonly<Type.TNumber>;
|
|
320
|
-
response: Type.TReadonly<Type.TOptional<
|
|
325
|
+
response: Type.TReadonly<Type.TOptional<TUnsafe<{
|
|
321
326
|
readonly input: number;
|
|
322
327
|
readonly output: number;
|
|
323
328
|
readonly cacheRead: number;
|
|
@@ -332,7 +337,7 @@ declare const RunRecordType: Type.TObject<{
|
|
|
332
337
|
readonly total: number;
|
|
333
338
|
};
|
|
334
339
|
}>>>;
|
|
335
|
-
parked: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
340
|
+
parked: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"call">>>>>;
|
|
336
341
|
interrupted: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
337
342
|
count: Type.TReadonly<Type.TNumber>;
|
|
338
343
|
mark: Type.TReadonly<Type.TString>;
|
|
@@ -341,37 +346,37 @@ declare const RunRecordType: Type.TObject<{
|
|
|
341
346
|
}>;
|
|
342
347
|
export type RunRecord = Static<typeof RunRecordType>;
|
|
343
348
|
declare const PartRecordType: Type.TObject<{
|
|
344
|
-
id: Type.TReadonly<
|
|
349
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"part">>>;
|
|
345
350
|
partKind: Type.TReadonly<Type.TString>;
|
|
346
|
-
placement: Type.TReadonly<
|
|
351
|
+
placement: Type.TReadonly<TUnsafe<{
|
|
347
352
|
readonly kind: "transcript";
|
|
348
|
-
readonly role: "
|
|
353
|
+
readonly role: "answer" | "note" | "step";
|
|
349
354
|
} | {
|
|
350
355
|
readonly kind: "modal";
|
|
351
356
|
} | {
|
|
352
357
|
readonly [x: string]: Json;
|
|
353
358
|
readonly kind: string;
|
|
354
359
|
}>>;
|
|
355
|
-
state: Type.TReadonly<
|
|
360
|
+
state: Type.TReadonly<TUnsafe<Json>>;
|
|
356
361
|
version: Type.TReadonly<Type.TNumber>;
|
|
357
362
|
owner: Type.TReadonly<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
358
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
359
|
-
status: Type.TReadonly<
|
|
363
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
364
|
+
status: Type.TReadonly<TUnsafe<{
|
|
365
|
+
readonly kind: "live";
|
|
366
|
+
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
367
|
+
readonly waiting?: import("@nyte-ai/schema").Id<"call"> | undefined;
|
|
360
368
|
readonly answer?: {
|
|
361
|
-
readonly input: Json;
|
|
362
369
|
readonly action: string;
|
|
370
|
+
readonly input: Json;
|
|
363
371
|
} | undefined;
|
|
364
|
-
readonly waiting?: import("@nyte-ai/schema").Id<"call"> | undefined;
|
|
365
|
-
readonly kind: "live";
|
|
366
|
-
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
367
372
|
} | {
|
|
368
373
|
readonly kind: "waiting";
|
|
369
374
|
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
370
375
|
readonly on: {
|
|
371
376
|
readonly deadline?: number | undefined;
|
|
372
377
|
readonly kind: "run";
|
|
373
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
374
378
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
379
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
375
380
|
} | {
|
|
376
381
|
readonly deadline?: number | undefined;
|
|
377
382
|
readonly kind: "job";
|
|
@@ -391,26 +396,42 @@ declare const PartRecordType: Type.TObject<{
|
|
|
391
396
|
readonly endedAt: number;
|
|
392
397
|
} | {
|
|
393
398
|
readonly kind: "failed";
|
|
399
|
+
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
394
400
|
readonly failure: {
|
|
395
|
-
readonly
|
|
401
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
396
402
|
readonly message: string;
|
|
397
|
-
readonly
|
|
403
|
+
readonly retryAfterMs?: number | undefined;
|
|
398
404
|
};
|
|
399
|
-
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
400
405
|
}>>;
|
|
401
406
|
definition: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
402
|
-
state: Type.TReadonly<Type.TRecord<"^.*$",
|
|
407
|
+
state: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
403
408
|
actions: Type.TReadonly<Type.TRecord<"^.*$", Type.TObject<{
|
|
404
|
-
input: Type.TReadonly<Type.TRecord<"^.*$",
|
|
405
|
-
output: Type.TReadonly<Type.TOptional<Type.TRecord<"^.*$",
|
|
409
|
+
input: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
410
|
+
output: Type.TReadonly<Type.TOptional<Type.TRecord<"^.*$", TUnsafe<Json>>>>;
|
|
406
411
|
}>>>;
|
|
407
412
|
}>>>;
|
|
408
413
|
}>;
|
|
409
414
|
export type PartRecord = Static<typeof PartRecordType>;
|
|
410
415
|
declare const ReceiptRecordType: Type.TUnion<[Type.TObject<{
|
|
416
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
417
|
+
digest: Type.TReadonly<Type.TString>;
|
|
411
418
|
kind: Type.TReadonly<Type.TLiteral<"send">>;
|
|
412
|
-
principal: Type.TReadonly<Type.TOptional<
|
|
413
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
419
|
+
principal: Type.TReadonly<Type.TOptional<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>>;
|
|
420
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
421
|
+
readonly kind: "stale";
|
|
422
|
+
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
423
|
+
} | {
|
|
424
|
+
readonly kind: "busy";
|
|
425
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
426
|
+
} | {
|
|
427
|
+
readonly kind: "pending-input";
|
|
428
|
+
readonly messages: readonly import("@nyte-ai/schema").Id<"message">[];
|
|
429
|
+
} | {
|
|
430
|
+
readonly kind: "missing-target";
|
|
431
|
+
} | {
|
|
432
|
+
readonly kind: "summary-failed";
|
|
433
|
+
readonly reason: string;
|
|
434
|
+
} | {
|
|
414
435
|
readonly kind: "completed";
|
|
415
436
|
readonly usage: {
|
|
416
437
|
readonly input: number;
|
|
@@ -432,32 +453,18 @@ declare const ReceiptRecordType: Type.TUnion<[Type.TObject<{
|
|
|
432
453
|
} | {
|
|
433
454
|
readonly kind: "failed";
|
|
434
455
|
readonly failure: {
|
|
435
|
-
readonly
|
|
456
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
436
457
|
readonly message: string;
|
|
437
|
-
readonly
|
|
458
|
+
readonly retryAfterMs?: number | undefined;
|
|
438
459
|
};
|
|
439
460
|
} | {
|
|
440
461
|
readonly kind: "withdrawn";
|
|
441
|
-
} | {
|
|
442
|
-
readonly kind: "stale";
|
|
443
|
-
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
444
|
-
} | {
|
|
445
|
-
readonly kind: "busy";
|
|
446
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
447
|
-
} | {
|
|
448
|
-
readonly kind: "pending-input";
|
|
449
|
-
readonly messages: readonly import("@nyte-ai/schema").Id<"message">[];
|
|
450
|
-
} | {
|
|
451
|
-
readonly kind: "missing-target";
|
|
452
|
-
} | {
|
|
453
|
-
readonly kind: "summary-failed";
|
|
454
|
-
readonly reason: string;
|
|
455
462
|
}>, Type.TNull]>>;
|
|
456
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
457
|
-
digest: Type.TReadonly<Type.TString>;
|
|
458
463
|
}>, Type.TObject<{
|
|
464
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
465
|
+
digest: Type.TReadonly<Type.TString>;
|
|
459
466
|
kind: Type.TReadonly<Type.TLiteral<"move">>;
|
|
460
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
467
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
461
468
|
readonly kind: "moved";
|
|
462
469
|
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
463
470
|
readonly position: {
|
|
@@ -472,33 +479,33 @@ declare const ReceiptRecordType: Type.TUnion<[Type.TObject<{
|
|
|
472
479
|
readonly text: string;
|
|
473
480
|
} | {
|
|
474
481
|
readonly kind: "file";
|
|
475
|
-
readonly name: string;
|
|
476
482
|
readonly blob: import("@nyte-ai/schema").Id<"blob">;
|
|
477
483
|
readonly mime: string;
|
|
484
|
+
readonly name: string;
|
|
478
485
|
} | {
|
|
479
|
-
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
480
|
-
readonly path: string;
|
|
481
486
|
readonly kind: "reference";
|
|
487
|
+
readonly path: string;
|
|
488
|
+
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
482
489
|
} | {
|
|
483
490
|
readonly kind: "skill";
|
|
484
491
|
readonly name: string;
|
|
485
492
|
readonly location: string;
|
|
486
493
|
} | {
|
|
494
|
+
readonly kind: "excerpt";
|
|
487
495
|
readonly source: {
|
|
488
|
-
readonly path: string;
|
|
489
496
|
readonly kind: "diff";
|
|
497
|
+
readonly path: string;
|
|
498
|
+
readonly side: "new" | "old";
|
|
490
499
|
readonly start: number;
|
|
491
500
|
readonly end: number;
|
|
492
|
-
readonly side: "old" | "new";
|
|
493
501
|
} | {
|
|
494
|
-
readonly command?: string | undefined;
|
|
495
502
|
readonly kind: "terminal";
|
|
503
|
+
readonly command?: string | undefined;
|
|
496
504
|
} | {
|
|
497
505
|
readonly kind: "browser";
|
|
498
506
|
readonly url: string;
|
|
499
507
|
readonly selector: string;
|
|
500
508
|
};
|
|
501
|
-
readonly kind: "excerpt";
|
|
502
509
|
readonly text: string;
|
|
503
510
|
})[] | null;
|
|
504
511
|
} | {
|
|
@@ -517,19 +524,19 @@ declare const ReceiptRecordType: Type.TUnion<[Type.TObject<{
|
|
|
517
524
|
readonly reason: string;
|
|
518
525
|
}>, Type.TNull]>>;
|
|
519
526
|
move: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
520
|
-
head: Type.TReadonly<
|
|
521
|
-
position: Type.TReadonly<
|
|
527
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
528
|
+
position: Type.TReadonly<TUnsafe<{
|
|
522
529
|
readonly kind: "start";
|
|
523
530
|
} | {
|
|
524
531
|
readonly kind: "commit";
|
|
525
532
|
readonly id: import("@nyte-ai/schema").Id<"commit">;
|
|
526
533
|
}>>;
|
|
527
534
|
}>>>;
|
|
528
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
529
|
-
digest: Type.TReadonly<Type.TString>;
|
|
530
535
|
}>, Type.TObject<{
|
|
536
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
537
|
+
digest: Type.TReadonly<Type.TString>;
|
|
531
538
|
kind: Type.TReadonly<Type.TLiteral<"batch">>;
|
|
532
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
539
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
533
540
|
readonly kind: "applied";
|
|
534
541
|
readonly snapshot: import("@nyte-ai/schema").Id<"snapshot">;
|
|
535
542
|
readonly paths: readonly string[];
|
|
@@ -538,34 +545,32 @@ declare const ReceiptRecordType: Type.TUnion<[Type.TObject<{
|
|
|
538
545
|
readonly paths: readonly string[];
|
|
539
546
|
} | {
|
|
540
547
|
readonly kind: "partial";
|
|
541
|
-
readonly reason: string;
|
|
542
548
|
readonly applied: readonly string[];
|
|
543
549
|
readonly remaining: readonly string[];
|
|
550
|
+
readonly reason: string;
|
|
544
551
|
} | {
|
|
545
552
|
readonly kind: "stopped";
|
|
546
553
|
readonly applied: readonly string[];
|
|
547
554
|
}>, Type.TNull]>>;
|
|
548
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
549
|
-
digest: Type.TReadonly<Type.TString>;
|
|
550
555
|
}>]>;
|
|
551
556
|
export type ReceiptRecord = Static<typeof ReceiptRecordType>;
|
|
552
557
|
declare const SeenRecordType: Type.TObject<{
|
|
553
|
-
commit: Type.TReadonly<Type.TUnion<[
|
|
558
|
+
commit: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"commit">>, Type.TNull]>>;
|
|
554
559
|
}>;
|
|
555
560
|
export type SeenRecord = Static<typeof SeenRecordType>;
|
|
556
561
|
declare const CallRecordType: Type.TObject<{
|
|
557
|
-
id: Type.TReadonly<
|
|
562
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"call">>>;
|
|
558
563
|
kind: Type.TReadonly<Type.TEnum<["tool", "action", "hook", "intent"]>>;
|
|
559
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
560
|
-
head: Type.TReadonly<Type.TUnion<[
|
|
561
|
-
part: Type.TReadonly<Type.TUnion<[
|
|
562
|
-
intent: Type.TReadonly<
|
|
563
|
-
memos: Type.TReadonly<Type.TRecord<"^.*$",
|
|
564
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
565
|
+
head: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"head">>, Type.TNull]>>;
|
|
566
|
+
part: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"part">>, Type.TNull]>>;
|
|
567
|
+
intent: Type.TReadonly<TUnsafe<Json>>;
|
|
568
|
+
memos: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
564
569
|
clock: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TNumber>>>;
|
|
565
|
-
waits: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
570
|
+
waits: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<{
|
|
566
571
|
readonly kind: "run";
|
|
567
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
568
572
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
573
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
569
574
|
readonly end: {
|
|
570
575
|
readonly kind: "completed";
|
|
571
576
|
readonly usage: {
|
|
@@ -588,41 +593,41 @@ declare const CallRecordType: Type.TObject<{
|
|
|
588
593
|
} | {
|
|
589
594
|
readonly kind: "failed";
|
|
590
595
|
readonly failure: {
|
|
591
|
-
readonly
|
|
596
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
592
597
|
readonly message: string;
|
|
593
|
-
readonly
|
|
598
|
+
readonly retryAfterMs?: number | undefined;
|
|
594
599
|
};
|
|
595
600
|
};
|
|
596
601
|
} | {
|
|
597
602
|
readonly kind: "job";
|
|
598
603
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
599
604
|
readonly end: {
|
|
600
|
-
readonly code: number | null;
|
|
601
605
|
readonly kind: "exited";
|
|
602
|
-
readonly
|
|
606
|
+
readonly code: number | null;
|
|
607
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
603
608
|
} | {
|
|
604
609
|
readonly kind: "lost";
|
|
605
610
|
};
|
|
606
611
|
} | {
|
|
607
612
|
readonly kind: "part";
|
|
613
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
608
614
|
readonly answer: {
|
|
609
|
-
readonly input: Json;
|
|
610
615
|
readonly action: string;
|
|
616
|
+
readonly input: Json;
|
|
611
617
|
} | null;
|
|
612
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
613
618
|
} | {
|
|
614
619
|
readonly kind: "timer";
|
|
615
620
|
} | {
|
|
616
621
|
readonly kind: "deadline";
|
|
617
622
|
} | {
|
|
618
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
619
623
|
readonly kind: "input";
|
|
624
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
620
625
|
} | {
|
|
621
626
|
readonly kind: "all";
|
|
622
627
|
readonly outcomes: readonly ({
|
|
623
628
|
readonly kind: "run";
|
|
624
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
625
629
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
630
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
626
631
|
readonly end: {
|
|
627
632
|
readonly kind: "completed";
|
|
628
633
|
readonly usage: {
|
|
@@ -645,41 +650,41 @@ declare const CallRecordType: Type.TObject<{
|
|
|
645
650
|
} | {
|
|
646
651
|
readonly kind: "failed";
|
|
647
652
|
readonly failure: {
|
|
648
|
-
readonly
|
|
653
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
649
654
|
readonly message: string;
|
|
650
|
-
readonly
|
|
655
|
+
readonly retryAfterMs?: number | undefined;
|
|
651
656
|
};
|
|
652
657
|
};
|
|
653
658
|
} | {
|
|
654
659
|
readonly kind: "job";
|
|
655
660
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
656
661
|
readonly end: {
|
|
657
|
-
readonly code: number | null;
|
|
658
662
|
readonly kind: "exited";
|
|
659
|
-
readonly
|
|
663
|
+
readonly code: number | null;
|
|
664
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
660
665
|
} | {
|
|
661
666
|
readonly kind: "lost";
|
|
662
667
|
};
|
|
663
668
|
} | {
|
|
664
669
|
readonly kind: "part";
|
|
670
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
665
671
|
readonly answer: {
|
|
666
|
-
readonly input: Json;
|
|
667
672
|
readonly action: string;
|
|
673
|
+
readonly input: Json;
|
|
668
674
|
} | null;
|
|
669
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
670
675
|
} | {
|
|
671
676
|
readonly kind: "timer";
|
|
672
677
|
} | {
|
|
673
678
|
readonly kind: "deadline";
|
|
674
679
|
} | {
|
|
675
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
676
680
|
readonly kind: "input";
|
|
681
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
677
682
|
} | {
|
|
678
683
|
readonly kind: "all";
|
|
679
684
|
readonly outcomes: readonly ({
|
|
680
685
|
readonly kind: "run";
|
|
681
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
682
686
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
687
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
683
688
|
readonly end: {
|
|
684
689
|
readonly kind: "completed";
|
|
685
690
|
readonly usage: {
|
|
@@ -702,35 +707,35 @@ declare const CallRecordType: Type.TObject<{
|
|
|
702
707
|
} | {
|
|
703
708
|
readonly kind: "failed";
|
|
704
709
|
readonly failure: {
|
|
705
|
-
readonly
|
|
710
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
706
711
|
readonly message: string;
|
|
707
|
-
readonly
|
|
712
|
+
readonly retryAfterMs?: number | undefined;
|
|
708
713
|
};
|
|
709
714
|
};
|
|
710
715
|
} | {
|
|
711
716
|
readonly kind: "job";
|
|
712
717
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
713
718
|
readonly end: {
|
|
714
|
-
readonly code: number | null;
|
|
715
719
|
readonly kind: "exited";
|
|
716
|
-
readonly
|
|
720
|
+
readonly code: number | null;
|
|
721
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
717
722
|
} | {
|
|
718
723
|
readonly kind: "lost";
|
|
719
724
|
};
|
|
720
725
|
} | {
|
|
721
726
|
readonly kind: "part";
|
|
727
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
722
728
|
readonly answer: {
|
|
723
|
-
readonly input: Json;
|
|
724
729
|
readonly action: string;
|
|
730
|
+
readonly input: Json;
|
|
725
731
|
} | null;
|
|
726
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
727
732
|
} | {
|
|
728
733
|
readonly kind: "timer";
|
|
729
734
|
} | {
|
|
730
735
|
readonly kind: "deadline";
|
|
731
736
|
} | {
|
|
732
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
733
737
|
readonly kind: "input";
|
|
738
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
734
739
|
} | {
|
|
735
740
|
readonly kind: "all";
|
|
736
741
|
readonly outcomes: readonly any[];
|
|
@@ -743,11 +748,11 @@ declare const CallRecordType: Type.TObject<{
|
|
|
743
748
|
} | {
|
|
744
749
|
readonly kind: "stopped";
|
|
745
750
|
}>>>>;
|
|
746
|
-
waiting: Type.TReadonly<Type.TUnion<[Type.TUnion<[
|
|
751
|
+
waiting: Type.TReadonly<Type.TUnion<[Type.TUnion<[TUnsafe<{
|
|
747
752
|
readonly deadline?: number | undefined;
|
|
748
753
|
readonly kind: "run";
|
|
749
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
750
754
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
755
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
751
756
|
} | {
|
|
752
757
|
readonly deadline?: number | undefined;
|
|
753
758
|
readonly kind: "job";
|
|
@@ -762,11 +767,11 @@ declare const CallRecordType: Type.TObject<{
|
|
|
762
767
|
readonly until: number;
|
|
763
768
|
}>, Type.TObject<{
|
|
764
769
|
kind: Type.TReadonly<Type.TEnum<["any", "all"]>>;
|
|
765
|
-
targets: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
770
|
+
targets: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<{
|
|
766
771
|
readonly deadline?: number | undefined;
|
|
767
772
|
readonly kind: "run";
|
|
768
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
769
773
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
774
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
770
775
|
} | {
|
|
771
776
|
readonly deadline?: number | undefined;
|
|
772
777
|
readonly kind: "job";
|
|
@@ -783,10 +788,10 @@ declare const CallRecordType: Type.TObject<{
|
|
|
783
788
|
deadline: Type.TReadonly<Type.TOptional<Type.TNumber>>;
|
|
784
789
|
untilInput: Type.TReadonly<Type.TOptional<Type.TBoolean>>;
|
|
785
790
|
}>]>, Type.TNull]>>;
|
|
786
|
-
partial: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TUnion<[
|
|
791
|
+
partial: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TUnion<[TUnsafe<{
|
|
787
792
|
readonly kind: "run";
|
|
788
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
789
793
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
794
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
790
795
|
readonly end: {
|
|
791
796
|
readonly kind: "completed";
|
|
792
797
|
readonly usage: {
|
|
@@ -809,41 +814,41 @@ declare const CallRecordType: Type.TObject<{
|
|
|
809
814
|
} | {
|
|
810
815
|
readonly kind: "failed";
|
|
811
816
|
readonly failure: {
|
|
812
|
-
readonly
|
|
817
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
813
818
|
readonly message: string;
|
|
814
|
-
readonly
|
|
819
|
+
readonly retryAfterMs?: number | undefined;
|
|
815
820
|
};
|
|
816
821
|
};
|
|
817
822
|
} | {
|
|
818
823
|
readonly kind: "job";
|
|
819
824
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
820
825
|
readonly end: {
|
|
821
|
-
readonly code: number | null;
|
|
822
826
|
readonly kind: "exited";
|
|
823
|
-
readonly
|
|
827
|
+
readonly code: number | null;
|
|
828
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
824
829
|
} | {
|
|
825
830
|
readonly kind: "lost";
|
|
826
831
|
};
|
|
827
832
|
} | {
|
|
828
833
|
readonly kind: "part";
|
|
834
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
829
835
|
readonly answer: {
|
|
830
|
-
readonly input: Json;
|
|
831
836
|
readonly action: string;
|
|
837
|
+
readonly input: Json;
|
|
832
838
|
} | null;
|
|
833
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
834
839
|
} | {
|
|
835
840
|
readonly kind: "timer";
|
|
836
841
|
} | {
|
|
837
842
|
readonly kind: "deadline";
|
|
838
843
|
} | {
|
|
839
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
840
844
|
readonly kind: "input";
|
|
845
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
841
846
|
} | {
|
|
842
847
|
readonly kind: "all";
|
|
843
848
|
readonly outcomes: readonly ({
|
|
844
849
|
readonly kind: "run";
|
|
845
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
846
850
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
851
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
847
852
|
readonly end: {
|
|
848
853
|
readonly kind: "completed";
|
|
849
854
|
readonly usage: {
|
|
@@ -866,41 +871,41 @@ declare const CallRecordType: Type.TObject<{
|
|
|
866
871
|
} | {
|
|
867
872
|
readonly kind: "failed";
|
|
868
873
|
readonly failure: {
|
|
869
|
-
readonly
|
|
874
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
870
875
|
readonly message: string;
|
|
871
|
-
readonly
|
|
876
|
+
readonly retryAfterMs?: number | undefined;
|
|
872
877
|
};
|
|
873
878
|
};
|
|
874
879
|
} | {
|
|
875
880
|
readonly kind: "job";
|
|
876
881
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
877
882
|
readonly end: {
|
|
878
|
-
readonly code: number | null;
|
|
879
883
|
readonly kind: "exited";
|
|
880
|
-
readonly
|
|
884
|
+
readonly code: number | null;
|
|
885
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
881
886
|
} | {
|
|
882
887
|
readonly kind: "lost";
|
|
883
888
|
};
|
|
884
889
|
} | {
|
|
885
890
|
readonly kind: "part";
|
|
891
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
886
892
|
readonly answer: {
|
|
887
|
-
readonly input: Json;
|
|
888
893
|
readonly action: string;
|
|
894
|
+
readonly input: Json;
|
|
889
895
|
} | null;
|
|
890
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
891
896
|
} | {
|
|
892
897
|
readonly kind: "timer";
|
|
893
898
|
} | {
|
|
894
899
|
readonly kind: "deadline";
|
|
895
900
|
} | {
|
|
896
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
897
901
|
readonly kind: "input";
|
|
902
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
898
903
|
} | {
|
|
899
904
|
readonly kind: "all";
|
|
900
905
|
readonly outcomes: readonly ({
|
|
901
906
|
readonly kind: "run";
|
|
902
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
903
907
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
908
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
904
909
|
readonly end: {
|
|
905
910
|
readonly kind: "completed";
|
|
906
911
|
readonly usage: {
|
|
@@ -923,35 +928,35 @@ declare const CallRecordType: Type.TObject<{
|
|
|
923
928
|
} | {
|
|
924
929
|
readonly kind: "failed";
|
|
925
930
|
readonly failure: {
|
|
926
|
-
readonly
|
|
931
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
927
932
|
readonly message: string;
|
|
928
|
-
readonly
|
|
933
|
+
readonly retryAfterMs?: number | undefined;
|
|
929
934
|
};
|
|
930
935
|
};
|
|
931
936
|
} | {
|
|
932
937
|
readonly kind: "job";
|
|
933
938
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
934
939
|
readonly end: {
|
|
935
|
-
readonly code: number | null;
|
|
936
940
|
readonly kind: "exited";
|
|
937
|
-
readonly
|
|
941
|
+
readonly code: number | null;
|
|
942
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
938
943
|
} | {
|
|
939
944
|
readonly kind: "lost";
|
|
940
945
|
};
|
|
941
946
|
} | {
|
|
942
947
|
readonly kind: "part";
|
|
948
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
943
949
|
readonly answer: {
|
|
944
|
-
readonly input: Json;
|
|
945
950
|
readonly action: string;
|
|
951
|
+
readonly input: Json;
|
|
946
952
|
} | null;
|
|
947
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
948
953
|
} | {
|
|
949
954
|
readonly kind: "timer";
|
|
950
955
|
} | {
|
|
951
956
|
readonly kind: "deadline";
|
|
952
957
|
} | {
|
|
953
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
954
958
|
readonly kind: "input";
|
|
959
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
955
960
|
} | {
|
|
956
961
|
readonly kind: "all";
|
|
957
962
|
readonly outcomes: readonly any[];
|
|
@@ -964,8 +969,8 @@ declare const CallRecordType: Type.TObject<{
|
|
|
964
969
|
} | {
|
|
965
970
|
readonly kind: "stopped";
|
|
966
971
|
}>, Type.TNull]>>>>;
|
|
967
|
-
acquisitions: Type.TReadonly<Type.TRecord<"^.*$",
|
|
968
|
-
result: Type.TReadonly<Type.TUnion<[
|
|
972
|
+
acquisitions: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
973
|
+
result: Type.TReadonly<Type.TUnion<[TUnsafe<Json>, Type.TNull]>>;
|
|
969
974
|
replay: Type.TReadonly<Type.TEnum<["safe", "never"]>>;
|
|
970
975
|
reran: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
971
976
|
waits: Type.TReadonly<Type.TNumber>;
|
|
@@ -975,31 +980,31 @@ declare const CallRecordType: Type.TObject<{
|
|
|
975
980
|
}>;
|
|
976
981
|
export type CallRecord = Static<typeof CallRecordType>;
|
|
977
982
|
declare const WorkspaceRecordType: Type.TObject<{
|
|
978
|
-
id: Type.TReadonly<
|
|
979
|
-
target: Type.TReadonly<
|
|
980
|
-
readonly path: string;
|
|
983
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
984
|
+
target: Type.TReadonly<TUnsafe<{
|
|
981
985
|
readonly kind: "local";
|
|
986
|
+
readonly path: string;
|
|
982
987
|
} | {
|
|
983
988
|
readonly kind: string;
|
|
984
989
|
readonly locator: Json;
|
|
985
990
|
}>>;
|
|
986
|
-
identity: Type.TReadonly<
|
|
991
|
+
identity: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"environment-identity">>>;
|
|
987
992
|
projectSources: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TString>>>;
|
|
988
|
-
addedBy: Type.TReadonly<
|
|
993
|
+
addedBy: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>;
|
|
989
994
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
990
|
-
isolation: Type.TReadonly<Type.TUnion<[
|
|
991
|
-
readonly source: import("@nyte-ai/schema").Id<"workspace">;
|
|
995
|
+
isolation: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
992
996
|
readonly kind: "worktree";
|
|
997
|
+
readonly source: import("@nyte-ai/schema").Id<"workspace">;
|
|
993
998
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
994
|
-
readonly base: string;
|
|
995
999
|
readonly branch: string;
|
|
1000
|
+
readonly base: string;
|
|
996
1001
|
}>, Type.TNull]>>;
|
|
997
1002
|
}>;
|
|
998
1003
|
export type WorkspaceRecord = Static<typeof WorkspaceRecordType>;
|
|
999
1004
|
declare const TrustRecordType: Type.TObject<{
|
|
1000
|
-
target: Type.TReadonly<
|
|
1001
|
-
readonly path: string;
|
|
1005
|
+
target: Type.TReadonly<TUnsafe<{
|
|
1002
1006
|
readonly kind: "local";
|
|
1007
|
+
readonly path: string;
|
|
1003
1008
|
} | {
|
|
1004
1009
|
readonly kind: string;
|
|
1005
1010
|
readonly locator: Json;
|
|
@@ -1009,7 +1014,7 @@ declare const TrustRecordType: Type.TObject<{
|
|
|
1009
1014
|
export type TrustRecord = Static<typeof TrustRecordType>;
|
|
1010
1015
|
declare const PrincipalRecordType: Type.TObject<{
|
|
1011
1016
|
principals: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TObject<{
|
|
1012
|
-
id: Type.TReadonly<
|
|
1017
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>;
|
|
1013
1018
|
label: Type.TReadonly<Type.TString>;
|
|
1014
1019
|
authority: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TEnum<["participant", "owner", "maintenance"]>>>>;
|
|
1015
1020
|
pairedAt: Type.TReadonly<Type.TNumber>;
|
|
@@ -1024,14 +1029,14 @@ declare const PrincipalRecordType: Type.TObject<{
|
|
|
1024
1029
|
}>;
|
|
1025
1030
|
export type PrincipalRecord = Static<typeof PrincipalRecordType>;
|
|
1026
1031
|
declare const LeaseType: Type.TObject<{
|
|
1027
|
-
holder: Type.TReadonly<
|
|
1032
|
+
holder: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
1028
1033
|
instance: Type.TReadonly<Type.TString>;
|
|
1029
1034
|
expiresAt: Type.TReadonly<Type.TNumber>;
|
|
1030
1035
|
}>;
|
|
1031
1036
|
type Lease = Static<typeof LeaseType>;
|
|
1032
1037
|
declare const ProcessRecordType: Type.TObject<{
|
|
1033
1038
|
instance: Type.TReadonly<Type.TString>;
|
|
1034
|
-
holder: Type.TReadonly<
|
|
1039
|
+
holder: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
1035
1040
|
label: Type.TReadonly<Type.TString>;
|
|
1036
1041
|
pid: Type.TReadonly<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
1037
1042
|
capabilities: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TString>>>;
|
|
@@ -1039,19 +1044,19 @@ declare const ProcessRecordType: Type.TObject<{
|
|
|
1039
1044
|
}>;
|
|
1040
1045
|
export type ProcessRecord = Static<typeof ProcessRecordType>;
|
|
1041
1046
|
declare const JobRecordType: Type.TObject<{
|
|
1042
|
-
id: Type.TReadonly<
|
|
1047
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"job">>>;
|
|
1043
1048
|
instance: Type.TReadonly<Type.TString>;
|
|
1044
|
-
workspace: Type.TReadonly<
|
|
1045
|
-
session: Type.TReadonly<
|
|
1046
|
-
head: Type.TReadonly<
|
|
1047
|
-
startedBy: Type.TReadonly<Type.TUnion<[
|
|
1049
|
+
workspace: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
1050
|
+
session: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"session">>>;
|
|
1051
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
1052
|
+
startedBy: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"call">>, Type.TNull]>>;
|
|
1048
1053
|
title: Type.TReadonly<Type.TString>;
|
|
1049
1054
|
command: Type.TReadonly<Type.TString>;
|
|
1050
1055
|
startedAt: Type.TReadonly<Type.TNumber>;
|
|
1051
|
-
end: Type.TReadonly<Type.TUnion<[
|
|
1052
|
-
readonly code: number | null;
|
|
1056
|
+
end: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1053
1057
|
readonly kind: "exited";
|
|
1054
|
-
readonly
|
|
1058
|
+
readonly code: number | null;
|
|
1059
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1055
1060
|
} | {
|
|
1056
1061
|
readonly kind: "lost";
|
|
1057
1062
|
}>, Type.TNull]>>;
|
|
@@ -1059,45 +1064,45 @@ declare const JobRecordType: Type.TObject<{
|
|
|
1059
1064
|
}>;
|
|
1060
1065
|
export type JobRecord = Static<typeof JobRecordType>;
|
|
1061
1066
|
declare const HostIdentityType: Type.TObject<{
|
|
1062
|
-
id: Type.TReadonly<
|
|
1067
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
1063
1068
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
1064
1069
|
}>;
|
|
1065
1070
|
export type HostIdentity = Static<typeof HostIdentityType>;
|
|
1066
1071
|
export type RecordKind = "session" | "commit" | "inbox" | "run" | "part" | "receipt" | "seen" | "workspace" | "trust" | "lease" | "process" | "job" | "call" | "kv" | "principals" | "identity";
|
|
1067
1072
|
export declare const STORED_RECORD_TYPES: {
|
|
1068
1073
|
session: Type.TObject<{
|
|
1069
|
-
id: Type.TReadonly<
|
|
1074
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"session">>>;
|
|
1070
1075
|
name: Type.TReadonly<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
1071
|
-
parent: Type.TReadonly<Type.TUnion<[
|
|
1076
|
+
parent: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"session">>, Type.TNull]>>;
|
|
1072
1077
|
origin: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
1073
|
-
run: Type.TReadonly<
|
|
1074
|
-
head: Type.TReadonly<
|
|
1075
|
-
call: Type.TReadonly<Type.TUnion<[
|
|
1078
|
+
run: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"run">>>;
|
|
1079
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
1080
|
+
call: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"call">>, Type.TNull]>>;
|
|
1076
1081
|
}>, Type.TNull]>>;
|
|
1077
|
-
workspace: Type.TReadonly<
|
|
1082
|
+
workspace: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
1078
1083
|
pinned: Type.TReadonly<Type.TBoolean>;
|
|
1079
1084
|
archived: Type.TReadonly<Type.TBoolean>;
|
|
1080
1085
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
1081
1086
|
lastActivityAt: Type.TReadonly<Type.TNumber>;
|
|
1082
1087
|
heads: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TObject<{
|
|
1083
|
-
name: Type.TReadonly<
|
|
1084
|
-
stack: Type.TReadonly<
|
|
1085
|
-
readonly
|
|
1088
|
+
name: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
1089
|
+
stack: Type.TReadonly<TUnsafe<{
|
|
1090
|
+
readonly parent: import("@nyte-ai/schema").Id<"head">;
|
|
1086
1091
|
readonly base: {
|
|
1087
1092
|
readonly kind: "start";
|
|
1088
1093
|
} | {
|
|
1089
1094
|
readonly kind: "commit";
|
|
1090
1095
|
readonly id: import("@nyte-ai/schema").Id<"commit">;
|
|
1091
1096
|
};
|
|
1092
|
-
readonly
|
|
1097
|
+
readonly stale: boolean;
|
|
1093
1098
|
} | null>>;
|
|
1094
|
-
selected: Type.TReadonly<Type.TUnion<[
|
|
1099
|
+
selected: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1095
1100
|
readonly kind: "exact";
|
|
1096
1101
|
readonly model: {
|
|
1097
|
-
readonly id: string;
|
|
1098
1102
|
readonly provider: string;
|
|
1103
|
+
readonly id: string;
|
|
1099
1104
|
};
|
|
1100
|
-
readonly thinking: "
|
|
1105
|
+
readonly thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
1101
1106
|
readonly agent: string | null;
|
|
1102
1107
|
readonly settings: {
|
|
1103
1108
|
readonly [x: string]: Json;
|
|
@@ -1105,8 +1110,8 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1105
1110
|
readonly settingsVersion: string;
|
|
1106
1111
|
}>, Type.TNull]>>;
|
|
1107
1112
|
lastRun: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
1108
|
-
id: Type.TReadonly<
|
|
1109
|
-
end: Type.TReadonly<
|
|
1113
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"run">>>;
|
|
1114
|
+
end: Type.TReadonly<TUnsafe<{
|
|
1110
1115
|
readonly kind: "completed";
|
|
1111
1116
|
readonly usage: {
|
|
1112
1117
|
readonly input: number;
|
|
@@ -1128,14 +1133,14 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1128
1133
|
} | {
|
|
1129
1134
|
readonly kind: "failed";
|
|
1130
1135
|
readonly failure: {
|
|
1131
|
-
readonly
|
|
1136
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1132
1137
|
readonly message: string;
|
|
1133
|
-
readonly
|
|
1138
|
+
readonly retryAfterMs?: number | undefined;
|
|
1134
1139
|
};
|
|
1135
1140
|
}>>;
|
|
1136
1141
|
endedAt: Type.TReadonly<Type.TNumber>;
|
|
1137
1142
|
}>, Type.TNull]>>;
|
|
1138
|
-
response: Type.TReadonly<Type.TOptional<
|
|
1143
|
+
response: Type.TReadonly<Type.TOptional<TUnsafe<{
|
|
1139
1144
|
readonly input: number;
|
|
1140
1145
|
readonly output: number;
|
|
1141
1146
|
readonly cacheRead: number;
|
|
@@ -1151,73 +1156,74 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1151
1156
|
};
|
|
1152
1157
|
}>>>;
|
|
1153
1158
|
}>>>>;
|
|
1154
|
-
prompt: Type.TReadonly<Type.TUnion<[
|
|
1155
|
-
readonly order?: number | undefined;
|
|
1159
|
+
prompt: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1156
1160
|
readonly kind: "layer";
|
|
1157
1161
|
readonly text: string;
|
|
1162
|
+
readonly order?: number | undefined;
|
|
1158
1163
|
} | {
|
|
1159
1164
|
readonly kind: "replace";
|
|
1160
1165
|
readonly text: string;
|
|
1161
1166
|
}>, Type.TNull]>>;
|
|
1167
|
+
contextFiles: Type.TReadonly<Type.TOptional<Type.TLiteral<false>>>;
|
|
1162
1168
|
}>;
|
|
1163
1169
|
commit: Type.TObject<{
|
|
1164
|
-
parent: Type.TReadonly<Type.TUnion<[
|
|
1170
|
+
parent: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"commit">>, Type.TNull]>>;
|
|
1165
1171
|
at: Type.TReadonly<Type.TNumber>;
|
|
1166
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
1167
|
-
body: Type.TReadonly<
|
|
1168
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1169
|
-
readonly source: {
|
|
1170
|
-
readonly kind: "user";
|
|
1171
|
-
} | {
|
|
1172
|
-
readonly kind: "child";
|
|
1173
|
-
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1174
|
-
readonly end: "completed" | "stopped" | "failed";
|
|
1175
|
-
} | {
|
|
1176
|
-
readonly kind: "job";
|
|
1177
|
-
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1178
|
-
} | {
|
|
1179
|
-
readonly kind: "shell";
|
|
1180
|
-
} | {
|
|
1181
|
-
readonly command?: string | undefined;
|
|
1182
|
-
readonly kind: "action";
|
|
1183
|
-
readonly label: string;
|
|
1184
|
-
};
|
|
1172
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
1173
|
+
body: Type.TReadonly<TUnsafe<{
|
|
1185
1174
|
readonly kind: "user";
|
|
1186
|
-
readonly
|
|
1175
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1187
1176
|
readonly content: string | readonly ({
|
|
1188
1177
|
readonly kind: "text";
|
|
1189
1178
|
readonly text: string;
|
|
1190
1179
|
} | {
|
|
1191
1180
|
readonly kind: "file";
|
|
1192
|
-
readonly name: string;
|
|
1193
1181
|
readonly blob: import("@nyte-ai/schema").Id<"blob">;
|
|
1194
1182
|
readonly mime: string;
|
|
1183
|
+
readonly name: string;
|
|
1195
1184
|
} | {
|
|
1196
|
-
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
1197
|
-
readonly path: string;
|
|
1198
1185
|
readonly kind: "reference";
|
|
1186
|
+
readonly path: string;
|
|
1187
|
+
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
1199
1188
|
} | {
|
|
1200
1189
|
readonly kind: "skill";
|
|
1201
1190
|
readonly name: string;
|
|
1202
1191
|
readonly location: string;
|
|
1203
1192
|
} | {
|
|
1193
|
+
readonly kind: "excerpt";
|
|
1204
1194
|
readonly source: {
|
|
1205
|
-
readonly path: string;
|
|
1206
1195
|
readonly kind: "diff";
|
|
1196
|
+
readonly path: string;
|
|
1197
|
+
readonly side: "new" | "old";
|
|
1207
1198
|
readonly start: number;
|
|
1208
1199
|
readonly end: number;
|
|
1209
|
-
readonly side: "old" | "new";
|
|
1210
1200
|
} | {
|
|
1211
|
-
readonly command?: string | undefined;
|
|
1212
1201
|
readonly kind: "terminal";
|
|
1202
|
+
readonly command?: string | undefined;
|
|
1213
1203
|
} | {
|
|
1214
1204
|
readonly kind: "browser";
|
|
1215
1205
|
readonly url: string;
|
|
1216
1206
|
readonly selector: string;
|
|
1217
1207
|
};
|
|
1218
|
-
readonly kind: "excerpt";
|
|
1219
1208
|
readonly text: string;
|
|
1220
1209
|
})[];
|
|
1210
|
+
readonly source: {
|
|
1211
|
+
readonly kind: "user";
|
|
1212
|
+
} | {
|
|
1213
|
+
readonly kind: "child";
|
|
1214
|
+
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1215
|
+
readonly end: "completed" | "failed" | "stopped";
|
|
1216
|
+
} | {
|
|
1217
|
+
readonly kind: "job";
|
|
1218
|
+
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly kind: "shell";
|
|
1221
|
+
} | {
|
|
1222
|
+
readonly kind: "action";
|
|
1223
|
+
readonly label: string;
|
|
1224
|
+
readonly command?: string | undefined;
|
|
1225
|
+
};
|
|
1226
|
+
readonly delivery: "attach" | "queue" | "steer";
|
|
1221
1227
|
readonly siblings: readonly import("@nyte-ai/schema").Id<"commit">[];
|
|
1222
1228
|
} | {
|
|
1223
1229
|
readonly kind: "part";
|
|
@@ -1233,43 +1239,47 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1233
1239
|
}>>;
|
|
1234
1240
|
}>;
|
|
1235
1241
|
inbox: Type.TObject<{
|
|
1236
|
-
messages: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
1237
|
-
pendingInput: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
1242
|
+
messages: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"message">>>>>;
|
|
1243
|
+
pendingInput: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"message">>>>>;
|
|
1244
|
+
hold: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
1245
|
+
message: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"message">>>;
|
|
1246
|
+
until: Type.TReadonly<Type.TNumber>;
|
|
1247
|
+
}>>>;
|
|
1238
1248
|
}>;
|
|
1239
1249
|
run: Type.TObject<{
|
|
1240
|
-
view: Type.TReadonly<
|
|
1241
|
-
readonly head: import("@nyte-ai/schema").Id<"head">;
|
|
1250
|
+
view: Type.TReadonly<TUnsafe<{
|
|
1242
1251
|
readonly id: import("@nyte-ai/schema").Id<"run">;
|
|
1252
|
+
readonly head: import("@nyte-ai/schema").Id<"head">;
|
|
1253
|
+
readonly startedAt: number;
|
|
1254
|
+
readonly attempt: number;
|
|
1243
1255
|
readonly configuration: {
|
|
1244
1256
|
readonly kind: "exact";
|
|
1245
1257
|
readonly model: {
|
|
1246
|
-
readonly id: string;
|
|
1247
1258
|
readonly provider: string;
|
|
1259
|
+
readonly id: string;
|
|
1248
1260
|
};
|
|
1249
|
-
readonly thinking: "
|
|
1261
|
+
readonly thinking: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
1250
1262
|
readonly agent: string | null;
|
|
1251
1263
|
readonly settings: {
|
|
1252
1264
|
readonly [x: string]: Json;
|
|
1253
1265
|
};
|
|
1254
1266
|
readonly settingsVersion: string;
|
|
1255
1267
|
};
|
|
1256
|
-
readonly startedAt: number;
|
|
1257
|
-
readonly attempt: number;
|
|
1258
1268
|
readonly origin: {
|
|
1259
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1260
1269
|
readonly kind: "input";
|
|
1270
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1261
1271
|
} | {
|
|
1262
1272
|
readonly kind: "continuation";
|
|
1263
|
-
readonly from: "
|
|
1273
|
+
readonly from: "child" | "job" | "wake";
|
|
1264
1274
|
};
|
|
1265
1275
|
}>>;
|
|
1266
1276
|
phase: Type.TReadonly<Type.TEnum<["responding", "executing"]>>;
|
|
1267
1277
|
stopping: Type.TReadonly<Type.TBoolean>;
|
|
1268
|
-
waiting: Type.TReadonly<Type.TUnion<[
|
|
1278
|
+
waiting: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1269
1279
|
readonly deadline?: number | undefined;
|
|
1270
1280
|
readonly kind: "run";
|
|
1271
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1272
1281
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1282
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1273
1283
|
} | {
|
|
1274
1284
|
readonly deadline?: number | undefined;
|
|
1275
1285
|
readonly kind: "job";
|
|
@@ -1287,9 +1297,9 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1287
1297
|
until: Type.TReadonly<Type.TNumber>;
|
|
1288
1298
|
reason: Type.TReadonly<Type.TString>;
|
|
1289
1299
|
}>, Type.TNull]>>;
|
|
1290
|
-
snapshot: Type.TReadonly<Type.TUnion<[
|
|
1291
|
-
lastSnapshot: Type.TReadonly<Type.TUnion<[
|
|
1292
|
-
usage: Type.TReadonly<Type.TUnion<[
|
|
1300
|
+
snapshot: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"snapshot">>, Type.TNull]>>;
|
|
1301
|
+
lastSnapshot: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"snapshot">>, Type.TNull]>>;
|
|
1302
|
+
usage: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1293
1303
|
readonly input: number;
|
|
1294
1304
|
readonly output: number;
|
|
1295
1305
|
readonly cacheRead: number;
|
|
@@ -1305,7 +1315,7 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1305
1315
|
};
|
|
1306
1316
|
}>, Type.TNull]>>;
|
|
1307
1317
|
requests: Type.TReadonly<Type.TNumber>;
|
|
1308
|
-
response: Type.TReadonly<Type.TOptional<
|
|
1318
|
+
response: Type.TReadonly<Type.TOptional<TUnsafe<{
|
|
1309
1319
|
readonly input: number;
|
|
1310
1320
|
readonly output: number;
|
|
1311
1321
|
readonly cacheRead: number;
|
|
@@ -1320,7 +1330,7 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1320
1330
|
readonly total: number;
|
|
1321
1331
|
};
|
|
1322
1332
|
}>>>;
|
|
1323
|
-
parked: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
1333
|
+
parked: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<import("@nyte-ai/schema").Id<"call">>>>>;
|
|
1324
1334
|
interrupted: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
1325
1335
|
count: Type.TReadonly<Type.TNumber>;
|
|
1326
1336
|
mark: Type.TReadonly<Type.TString>;
|
|
@@ -1328,37 +1338,37 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1328
1338
|
requires: Type.TReadonly<Type.TOptional<Type.TImmutable<Type.TArray<Type.TString>>>>;
|
|
1329
1339
|
}>;
|
|
1330
1340
|
part: Type.TObject<{
|
|
1331
|
-
id: Type.TReadonly<
|
|
1341
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"part">>>;
|
|
1332
1342
|
partKind: Type.TReadonly<Type.TString>;
|
|
1333
|
-
placement: Type.TReadonly<
|
|
1343
|
+
placement: Type.TReadonly<TUnsafe<{
|
|
1334
1344
|
readonly kind: "transcript";
|
|
1335
|
-
readonly role: "
|
|
1345
|
+
readonly role: "answer" | "note" | "step";
|
|
1336
1346
|
} | {
|
|
1337
1347
|
readonly kind: "modal";
|
|
1338
1348
|
} | {
|
|
1339
1349
|
readonly [x: string]: Json;
|
|
1340
1350
|
readonly kind: string;
|
|
1341
1351
|
}>>;
|
|
1342
|
-
state: Type.TReadonly<
|
|
1352
|
+
state: Type.TReadonly<TUnsafe<Json>>;
|
|
1343
1353
|
version: Type.TReadonly<Type.TNumber>;
|
|
1344
1354
|
owner: Type.TReadonly<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
1345
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
1346
|
-
status: Type.TReadonly<
|
|
1355
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
1356
|
+
status: Type.TReadonly<TUnsafe<{
|
|
1357
|
+
readonly kind: "live";
|
|
1358
|
+
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
1359
|
+
readonly waiting?: import("@nyte-ai/schema").Id<"call"> | undefined;
|
|
1347
1360
|
readonly answer?: {
|
|
1348
|
-
readonly input: Json;
|
|
1349
1361
|
readonly action: string;
|
|
1362
|
+
readonly input: Json;
|
|
1350
1363
|
} | undefined;
|
|
1351
|
-
readonly waiting?: import("@nyte-ai/schema").Id<"call"> | undefined;
|
|
1352
|
-
readonly kind: "live";
|
|
1353
|
-
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
1354
1364
|
} | {
|
|
1355
1365
|
readonly kind: "waiting";
|
|
1356
1366
|
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1357
1367
|
readonly on: {
|
|
1358
1368
|
readonly deadline?: number | undefined;
|
|
1359
1369
|
readonly kind: "run";
|
|
1360
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1361
1370
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1371
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1362
1372
|
} | {
|
|
1363
1373
|
readonly deadline?: number | undefined;
|
|
1364
1374
|
readonly kind: "job";
|
|
@@ -1378,25 +1388,41 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1378
1388
|
readonly endedAt: number;
|
|
1379
1389
|
} | {
|
|
1380
1390
|
readonly kind: "failed";
|
|
1391
|
+
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
1381
1392
|
readonly failure: {
|
|
1382
|
-
readonly
|
|
1393
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1383
1394
|
readonly message: string;
|
|
1384
|
-
readonly
|
|
1395
|
+
readonly retryAfterMs?: number | undefined;
|
|
1385
1396
|
};
|
|
1386
|
-
readonly run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
1387
1397
|
}>>;
|
|
1388
1398
|
definition: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
1389
|
-
state: Type.TReadonly<Type.TRecord<"^.*$",
|
|
1399
|
+
state: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
1390
1400
|
actions: Type.TReadonly<Type.TRecord<"^.*$", Type.TObject<{
|
|
1391
|
-
input: Type.TReadonly<Type.TRecord<"^.*$",
|
|
1392
|
-
output: Type.TReadonly<Type.TOptional<Type.TRecord<"^.*$",
|
|
1401
|
+
input: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
1402
|
+
output: Type.TReadonly<Type.TOptional<Type.TRecord<"^.*$", TUnsafe<Json>>>>;
|
|
1393
1403
|
}>>>;
|
|
1394
1404
|
}>>>;
|
|
1395
1405
|
}>;
|
|
1396
1406
|
receipt: Type.TUnion<[Type.TObject<{
|
|
1407
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1408
|
+
digest: Type.TReadonly<Type.TString>;
|
|
1397
1409
|
kind: Type.TReadonly<Type.TLiteral<"send">>;
|
|
1398
|
-
principal: Type.TReadonly<Type.TOptional<
|
|
1399
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
1410
|
+
principal: Type.TReadonly<Type.TOptional<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>>;
|
|
1411
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1412
|
+
readonly kind: "stale";
|
|
1413
|
+
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
1414
|
+
} | {
|
|
1415
|
+
readonly kind: "busy";
|
|
1416
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1417
|
+
} | {
|
|
1418
|
+
readonly kind: "pending-input";
|
|
1419
|
+
readonly messages: readonly import("@nyte-ai/schema").Id<"message">[];
|
|
1420
|
+
} | {
|
|
1421
|
+
readonly kind: "missing-target";
|
|
1422
|
+
} | {
|
|
1423
|
+
readonly kind: "summary-failed";
|
|
1424
|
+
readonly reason: string;
|
|
1425
|
+
} | {
|
|
1400
1426
|
readonly kind: "completed";
|
|
1401
1427
|
readonly usage: {
|
|
1402
1428
|
readonly input: number;
|
|
@@ -1418,32 +1444,18 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1418
1444
|
} | {
|
|
1419
1445
|
readonly kind: "failed";
|
|
1420
1446
|
readonly failure: {
|
|
1421
|
-
readonly
|
|
1447
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1422
1448
|
readonly message: string;
|
|
1423
|
-
readonly
|
|
1449
|
+
readonly retryAfterMs?: number | undefined;
|
|
1424
1450
|
};
|
|
1425
1451
|
} | {
|
|
1426
1452
|
readonly kind: "withdrawn";
|
|
1427
|
-
} | {
|
|
1428
|
-
readonly kind: "stale";
|
|
1429
|
-
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
1430
|
-
} | {
|
|
1431
|
-
readonly kind: "busy";
|
|
1432
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1433
|
-
} | {
|
|
1434
|
-
readonly kind: "pending-input";
|
|
1435
|
-
readonly messages: readonly import("@nyte-ai/schema").Id<"message">[];
|
|
1436
|
-
} | {
|
|
1437
|
-
readonly kind: "missing-target";
|
|
1438
|
-
} | {
|
|
1439
|
-
readonly kind: "summary-failed";
|
|
1440
|
-
readonly reason: string;
|
|
1441
1453
|
}>, Type.TNull]>>;
|
|
1442
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1443
|
-
digest: Type.TReadonly<Type.TString>;
|
|
1444
1454
|
}>, Type.TObject<{
|
|
1455
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1456
|
+
digest: Type.TReadonly<Type.TString>;
|
|
1445
1457
|
kind: Type.TReadonly<Type.TLiteral<"move">>;
|
|
1446
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
1458
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1447
1459
|
readonly kind: "moved";
|
|
1448
1460
|
readonly revision: import("@nyte-ai/schema").Id<"revision">;
|
|
1449
1461
|
readonly position: {
|
|
@@ -1458,33 +1470,33 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1458
1470
|
readonly text: string;
|
|
1459
1471
|
} | {
|
|
1460
1472
|
readonly kind: "file";
|
|
1461
|
-
readonly name: string;
|
|
1462
1473
|
readonly blob: import("@nyte-ai/schema").Id<"blob">;
|
|
1463
1474
|
readonly mime: string;
|
|
1475
|
+
readonly name: string;
|
|
1464
1476
|
} | {
|
|
1465
|
-
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
1466
|
-
readonly path: string;
|
|
1467
1477
|
readonly kind: "reference";
|
|
1478
|
+
readonly path: string;
|
|
1479
|
+
readonly blob?: import("@nyte-ai/schema").Id<"blob"> | undefined;
|
|
1468
1480
|
} | {
|
|
1469
1481
|
readonly kind: "skill";
|
|
1470
1482
|
readonly name: string;
|
|
1471
1483
|
readonly location: string;
|
|
1472
1484
|
} | {
|
|
1485
|
+
readonly kind: "excerpt";
|
|
1473
1486
|
readonly source: {
|
|
1474
|
-
readonly path: string;
|
|
1475
1487
|
readonly kind: "diff";
|
|
1488
|
+
readonly path: string;
|
|
1489
|
+
readonly side: "new" | "old";
|
|
1476
1490
|
readonly start: number;
|
|
1477
1491
|
readonly end: number;
|
|
1478
|
-
readonly side: "old" | "new";
|
|
1479
1492
|
} | {
|
|
1480
|
-
readonly command?: string | undefined;
|
|
1481
1493
|
readonly kind: "terminal";
|
|
1494
|
+
readonly command?: string | undefined;
|
|
1482
1495
|
} | {
|
|
1483
1496
|
readonly kind: "browser";
|
|
1484
1497
|
readonly url: string;
|
|
1485
1498
|
readonly selector: string;
|
|
1486
1499
|
};
|
|
1487
|
-
readonly kind: "excerpt";
|
|
1488
1500
|
readonly text: string;
|
|
1489
1501
|
})[] | null;
|
|
1490
1502
|
} | {
|
|
@@ -1503,19 +1515,19 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1503
1515
|
readonly reason: string;
|
|
1504
1516
|
}>, Type.TNull]>>;
|
|
1505
1517
|
move: Type.TReadonly<Type.TOptional<Type.TObject<{
|
|
1506
|
-
head: Type.TReadonly<
|
|
1507
|
-
position: Type.TReadonly<
|
|
1518
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
1519
|
+
position: Type.TReadonly<TUnsafe<{
|
|
1508
1520
|
readonly kind: "start";
|
|
1509
1521
|
} | {
|
|
1510
1522
|
readonly kind: "commit";
|
|
1511
1523
|
readonly id: import("@nyte-ai/schema").Id<"commit">;
|
|
1512
1524
|
}>>;
|
|
1513
1525
|
}>>>;
|
|
1514
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1515
|
-
digest: Type.TReadonly<Type.TString>;
|
|
1516
1526
|
}>, Type.TObject<{
|
|
1527
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1528
|
+
digest: Type.TReadonly<Type.TString>;
|
|
1517
1529
|
kind: Type.TReadonly<Type.TLiteral<"batch">>;
|
|
1518
|
-
outcome: Type.TReadonly<Type.TUnion<[
|
|
1530
|
+
outcome: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1519
1531
|
readonly kind: "applied";
|
|
1520
1532
|
readonly snapshot: import("@nyte-ai/schema").Id<"snapshot">;
|
|
1521
1533
|
readonly paths: readonly string[];
|
|
@@ -1524,44 +1536,42 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1524
1536
|
readonly paths: readonly string[];
|
|
1525
1537
|
} | {
|
|
1526
1538
|
readonly kind: "partial";
|
|
1527
|
-
readonly reason: string;
|
|
1528
1539
|
readonly applied: readonly string[];
|
|
1529
1540
|
readonly remaining: readonly string[];
|
|
1541
|
+
readonly reason: string;
|
|
1530
1542
|
} | {
|
|
1531
1543
|
readonly kind: "stopped";
|
|
1532
1544
|
readonly applied: readonly string[];
|
|
1533
1545
|
}>, Type.TNull]>>;
|
|
1534
|
-
id: Type.TReadonly<Type.TUnsafe<import("@nyte-ai/schema").Id<"receipt">>>;
|
|
1535
|
-
digest: Type.TReadonly<Type.TString>;
|
|
1536
1546
|
}>]>;
|
|
1537
1547
|
seen: Type.TObject<{
|
|
1538
|
-
commit: Type.TReadonly<Type.TUnion<[
|
|
1548
|
+
commit: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"commit">>, Type.TNull]>>;
|
|
1539
1549
|
}>;
|
|
1540
1550
|
workspace: Type.TObject<{
|
|
1541
|
-
id: Type.TReadonly<
|
|
1542
|
-
target: Type.TReadonly<
|
|
1543
|
-
readonly path: string;
|
|
1551
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
1552
|
+
target: Type.TReadonly<TUnsafe<{
|
|
1544
1553
|
readonly kind: "local";
|
|
1554
|
+
readonly path: string;
|
|
1545
1555
|
} | {
|
|
1546
1556
|
readonly kind: string;
|
|
1547
1557
|
readonly locator: Json;
|
|
1548
1558
|
}>>;
|
|
1549
|
-
identity: Type.TReadonly<
|
|
1559
|
+
identity: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"environment-identity">>>;
|
|
1550
1560
|
projectSources: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TString>>>;
|
|
1551
|
-
addedBy: Type.TReadonly<
|
|
1561
|
+
addedBy: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>;
|
|
1552
1562
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
1553
|
-
isolation: Type.TReadonly<Type.TUnion<[
|
|
1554
|
-
readonly source: import("@nyte-ai/schema").Id<"workspace">;
|
|
1563
|
+
isolation: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1555
1564
|
readonly kind: "worktree";
|
|
1565
|
+
readonly source: import("@nyte-ai/schema").Id<"workspace">;
|
|
1556
1566
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1557
|
-
readonly base: string;
|
|
1558
1567
|
readonly branch: string;
|
|
1568
|
+
readonly base: string;
|
|
1559
1569
|
}>, Type.TNull]>>;
|
|
1560
1570
|
}>;
|
|
1561
1571
|
trust: Type.TObject<{
|
|
1562
|
-
target: Type.TReadonly<
|
|
1563
|
-
readonly path: string;
|
|
1572
|
+
target: Type.TReadonly<TUnsafe<{
|
|
1564
1573
|
readonly kind: "local";
|
|
1574
|
+
readonly path: string;
|
|
1565
1575
|
} | {
|
|
1566
1576
|
readonly kind: string;
|
|
1567
1577
|
readonly locator: Json;
|
|
@@ -1569,50 +1579,50 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1569
1579
|
trusted: Type.TReadonly<Type.TBoolean>;
|
|
1570
1580
|
}>;
|
|
1571
1581
|
lease: Type.TObject<{
|
|
1572
|
-
holder: Type.TReadonly<
|
|
1582
|
+
holder: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
1573
1583
|
instance: Type.TReadonly<Type.TString>;
|
|
1574
1584
|
expiresAt: Type.TReadonly<Type.TNumber>;
|
|
1575
1585
|
}>;
|
|
1576
1586
|
process: Type.TObject<{
|
|
1577
1587
|
instance: Type.TReadonly<Type.TString>;
|
|
1578
|
-
holder: Type.TReadonly<
|
|
1588
|
+
holder: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
1579
1589
|
label: Type.TReadonly<Type.TString>;
|
|
1580
1590
|
pid: Type.TReadonly<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
1581
1591
|
capabilities: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TString>>>;
|
|
1582
1592
|
startedAt: Type.TReadonly<Type.TNumber>;
|
|
1583
1593
|
}>;
|
|
1584
1594
|
job: Type.TObject<{
|
|
1585
|
-
id: Type.TReadonly<
|
|
1595
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"job">>>;
|
|
1586
1596
|
instance: Type.TReadonly<Type.TString>;
|
|
1587
|
-
workspace: Type.TReadonly<
|
|
1588
|
-
session: Type.TReadonly<
|
|
1589
|
-
head: Type.TReadonly<
|
|
1590
|
-
startedBy: Type.TReadonly<Type.TUnion<[
|
|
1597
|
+
workspace: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"workspace">>>;
|
|
1598
|
+
session: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"session">>>;
|
|
1599
|
+
head: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"head">>>;
|
|
1600
|
+
startedBy: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"call">>, Type.TNull]>>;
|
|
1591
1601
|
title: Type.TReadonly<Type.TString>;
|
|
1592
1602
|
command: Type.TReadonly<Type.TString>;
|
|
1593
1603
|
startedAt: Type.TReadonly<Type.TNumber>;
|
|
1594
|
-
end: Type.TReadonly<Type.TUnion<[
|
|
1595
|
-
readonly code: number | null;
|
|
1604
|
+
end: Type.TReadonly<Type.TUnion<[TUnsafe<{
|
|
1596
1605
|
readonly kind: "exited";
|
|
1597
|
-
readonly
|
|
1606
|
+
readonly code: number | null;
|
|
1607
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1598
1608
|
} | {
|
|
1599
1609
|
readonly kind: "lost";
|
|
1600
1610
|
}>, Type.TNull]>>;
|
|
1601
1611
|
endedAt: Type.TReadonly<Type.TUnion<[Type.TNumber, Type.TNull]>>;
|
|
1602
1612
|
}>;
|
|
1603
1613
|
call: Type.TObject<{
|
|
1604
|
-
id: Type.TReadonly<
|
|
1614
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"call">>>;
|
|
1605
1615
|
kind: Type.TReadonly<Type.TEnum<["tool", "action", "hook", "intent"]>>;
|
|
1606
|
-
run: Type.TReadonly<Type.TUnion<[
|
|
1607
|
-
head: Type.TReadonly<Type.TUnion<[
|
|
1608
|
-
part: Type.TReadonly<Type.TUnion<[
|
|
1609
|
-
intent: Type.TReadonly<
|
|
1610
|
-
memos: Type.TReadonly<Type.TRecord<"^.*$",
|
|
1616
|
+
run: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"run">>, Type.TNull]>>;
|
|
1617
|
+
head: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"head">>, Type.TNull]>>;
|
|
1618
|
+
part: Type.TReadonly<Type.TUnion<[TUnsafe<import("@nyte-ai/schema").Id<"part">>, Type.TNull]>>;
|
|
1619
|
+
intent: Type.TReadonly<TUnsafe<Json>>;
|
|
1620
|
+
memos: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
1611
1621
|
clock: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TNumber>>>;
|
|
1612
|
-
waits: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
1622
|
+
waits: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<{
|
|
1613
1623
|
readonly kind: "run";
|
|
1614
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1615
1624
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1625
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1616
1626
|
readonly end: {
|
|
1617
1627
|
readonly kind: "completed";
|
|
1618
1628
|
readonly usage: {
|
|
@@ -1635,41 +1645,41 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1635
1645
|
} | {
|
|
1636
1646
|
readonly kind: "failed";
|
|
1637
1647
|
readonly failure: {
|
|
1638
|
-
readonly
|
|
1648
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1639
1649
|
readonly message: string;
|
|
1640
|
-
readonly
|
|
1650
|
+
readonly retryAfterMs?: number | undefined;
|
|
1641
1651
|
};
|
|
1642
1652
|
};
|
|
1643
1653
|
} | {
|
|
1644
1654
|
readonly kind: "job";
|
|
1645
1655
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1646
1656
|
readonly end: {
|
|
1647
|
-
readonly code: number | null;
|
|
1648
1657
|
readonly kind: "exited";
|
|
1649
|
-
readonly
|
|
1658
|
+
readonly code: number | null;
|
|
1659
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1650
1660
|
} | {
|
|
1651
1661
|
readonly kind: "lost";
|
|
1652
1662
|
};
|
|
1653
1663
|
} | {
|
|
1654
1664
|
readonly kind: "part";
|
|
1665
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1655
1666
|
readonly answer: {
|
|
1656
|
-
readonly input: Json;
|
|
1657
1667
|
readonly action: string;
|
|
1668
|
+
readonly input: Json;
|
|
1658
1669
|
} | null;
|
|
1659
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1660
1670
|
} | {
|
|
1661
1671
|
readonly kind: "timer";
|
|
1662
1672
|
} | {
|
|
1663
1673
|
readonly kind: "deadline";
|
|
1664
1674
|
} | {
|
|
1665
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1666
1675
|
readonly kind: "input";
|
|
1676
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1667
1677
|
} | {
|
|
1668
1678
|
readonly kind: "all";
|
|
1669
1679
|
readonly outcomes: readonly ({
|
|
1670
1680
|
readonly kind: "run";
|
|
1671
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1672
1681
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1682
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1673
1683
|
readonly end: {
|
|
1674
1684
|
readonly kind: "completed";
|
|
1675
1685
|
readonly usage: {
|
|
@@ -1692,41 +1702,41 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1692
1702
|
} | {
|
|
1693
1703
|
readonly kind: "failed";
|
|
1694
1704
|
readonly failure: {
|
|
1695
|
-
readonly
|
|
1705
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1696
1706
|
readonly message: string;
|
|
1697
|
-
readonly
|
|
1707
|
+
readonly retryAfterMs?: number | undefined;
|
|
1698
1708
|
};
|
|
1699
1709
|
};
|
|
1700
1710
|
} | {
|
|
1701
1711
|
readonly kind: "job";
|
|
1702
1712
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1703
1713
|
readonly end: {
|
|
1704
|
-
readonly code: number | null;
|
|
1705
1714
|
readonly kind: "exited";
|
|
1706
|
-
readonly
|
|
1715
|
+
readonly code: number | null;
|
|
1716
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1707
1717
|
} | {
|
|
1708
1718
|
readonly kind: "lost";
|
|
1709
1719
|
};
|
|
1710
1720
|
} | {
|
|
1711
1721
|
readonly kind: "part";
|
|
1722
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1712
1723
|
readonly answer: {
|
|
1713
|
-
readonly input: Json;
|
|
1714
1724
|
readonly action: string;
|
|
1725
|
+
readonly input: Json;
|
|
1715
1726
|
} | null;
|
|
1716
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1717
1727
|
} | {
|
|
1718
1728
|
readonly kind: "timer";
|
|
1719
1729
|
} | {
|
|
1720
1730
|
readonly kind: "deadline";
|
|
1721
1731
|
} | {
|
|
1722
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1723
1732
|
readonly kind: "input";
|
|
1733
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1724
1734
|
} | {
|
|
1725
1735
|
readonly kind: "all";
|
|
1726
1736
|
readonly outcomes: readonly ({
|
|
1727
1737
|
readonly kind: "run";
|
|
1728
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1729
1738
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1739
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1730
1740
|
readonly end: {
|
|
1731
1741
|
readonly kind: "completed";
|
|
1732
1742
|
readonly usage: {
|
|
@@ -1749,35 +1759,35 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1749
1759
|
} | {
|
|
1750
1760
|
readonly kind: "failed";
|
|
1751
1761
|
readonly failure: {
|
|
1752
|
-
readonly
|
|
1762
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1753
1763
|
readonly message: string;
|
|
1754
|
-
readonly
|
|
1764
|
+
readonly retryAfterMs?: number | undefined;
|
|
1755
1765
|
};
|
|
1756
1766
|
};
|
|
1757
1767
|
} | {
|
|
1758
1768
|
readonly kind: "job";
|
|
1759
1769
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1760
1770
|
readonly end: {
|
|
1761
|
-
readonly code: number | null;
|
|
1762
1771
|
readonly kind: "exited";
|
|
1763
|
-
readonly
|
|
1772
|
+
readonly code: number | null;
|
|
1773
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1764
1774
|
} | {
|
|
1765
1775
|
readonly kind: "lost";
|
|
1766
1776
|
};
|
|
1767
1777
|
} | {
|
|
1768
1778
|
readonly kind: "part";
|
|
1779
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1769
1780
|
readonly answer: {
|
|
1770
|
-
readonly input: Json;
|
|
1771
1781
|
readonly action: string;
|
|
1782
|
+
readonly input: Json;
|
|
1772
1783
|
} | null;
|
|
1773
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1774
1784
|
} | {
|
|
1775
1785
|
readonly kind: "timer";
|
|
1776
1786
|
} | {
|
|
1777
1787
|
readonly kind: "deadline";
|
|
1778
1788
|
} | {
|
|
1779
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1780
1789
|
readonly kind: "input";
|
|
1790
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1781
1791
|
} | {
|
|
1782
1792
|
readonly kind: "all";
|
|
1783
1793
|
readonly outcomes: readonly any[];
|
|
@@ -1790,11 +1800,11 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1790
1800
|
} | {
|
|
1791
1801
|
readonly kind: "stopped";
|
|
1792
1802
|
}>>>>;
|
|
1793
|
-
waiting: Type.TReadonly<Type.TUnion<[Type.TUnion<[
|
|
1803
|
+
waiting: Type.TReadonly<Type.TUnion<[Type.TUnion<[TUnsafe<{
|
|
1794
1804
|
readonly deadline?: number | undefined;
|
|
1795
1805
|
readonly kind: "run";
|
|
1796
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1797
1806
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1807
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1798
1808
|
} | {
|
|
1799
1809
|
readonly deadline?: number | undefined;
|
|
1800
1810
|
readonly kind: "job";
|
|
@@ -1809,11 +1819,11 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1809
1819
|
readonly until: number;
|
|
1810
1820
|
}>, Type.TObject<{
|
|
1811
1821
|
kind: Type.TReadonly<Type.TEnum<["any", "all"]>>;
|
|
1812
|
-
targets: Type.TReadonly<Type.TImmutable<Type.TArray<
|
|
1822
|
+
targets: Type.TReadonly<Type.TImmutable<Type.TArray<TUnsafe<{
|
|
1813
1823
|
readonly deadline?: number | undefined;
|
|
1814
1824
|
readonly kind: "run";
|
|
1815
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1816
1825
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1826
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1817
1827
|
} | {
|
|
1818
1828
|
readonly deadline?: number | undefined;
|
|
1819
1829
|
readonly kind: "job";
|
|
@@ -1830,10 +1840,10 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1830
1840
|
deadline: Type.TReadonly<Type.TOptional<Type.TNumber>>;
|
|
1831
1841
|
untilInput: Type.TReadonly<Type.TOptional<Type.TBoolean>>;
|
|
1832
1842
|
}>]>, Type.TNull]>>;
|
|
1833
|
-
partial: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TUnion<[
|
|
1843
|
+
partial: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TUnion<[TUnsafe<{
|
|
1834
1844
|
readonly kind: "run";
|
|
1835
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1836
1845
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1846
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1837
1847
|
readonly end: {
|
|
1838
1848
|
readonly kind: "completed";
|
|
1839
1849
|
readonly usage: {
|
|
@@ -1856,41 +1866,41 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1856
1866
|
} | {
|
|
1857
1867
|
readonly kind: "failed";
|
|
1858
1868
|
readonly failure: {
|
|
1859
|
-
readonly
|
|
1869
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1860
1870
|
readonly message: string;
|
|
1861
|
-
readonly
|
|
1871
|
+
readonly retryAfterMs?: number | undefined;
|
|
1862
1872
|
};
|
|
1863
1873
|
};
|
|
1864
1874
|
} | {
|
|
1865
1875
|
readonly kind: "job";
|
|
1866
1876
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1867
1877
|
readonly end: {
|
|
1868
|
-
readonly code: number | null;
|
|
1869
1878
|
readonly kind: "exited";
|
|
1870
|
-
readonly
|
|
1879
|
+
readonly code: number | null;
|
|
1880
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1871
1881
|
} | {
|
|
1872
1882
|
readonly kind: "lost";
|
|
1873
1883
|
};
|
|
1874
1884
|
} | {
|
|
1875
1885
|
readonly kind: "part";
|
|
1886
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1876
1887
|
readonly answer: {
|
|
1877
|
-
readonly input: Json;
|
|
1878
1888
|
readonly action: string;
|
|
1889
|
+
readonly input: Json;
|
|
1879
1890
|
} | null;
|
|
1880
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1881
1891
|
} | {
|
|
1882
1892
|
readonly kind: "timer";
|
|
1883
1893
|
} | {
|
|
1884
1894
|
readonly kind: "deadline";
|
|
1885
1895
|
} | {
|
|
1886
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1887
1896
|
readonly kind: "input";
|
|
1897
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1888
1898
|
} | {
|
|
1889
1899
|
readonly kind: "all";
|
|
1890
1900
|
readonly outcomes: readonly ({
|
|
1891
1901
|
readonly kind: "run";
|
|
1892
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1893
1902
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1903
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1894
1904
|
readonly end: {
|
|
1895
1905
|
readonly kind: "completed";
|
|
1896
1906
|
readonly usage: {
|
|
@@ -1913,41 +1923,41 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1913
1923
|
} | {
|
|
1914
1924
|
readonly kind: "failed";
|
|
1915
1925
|
readonly failure: {
|
|
1916
|
-
readonly
|
|
1926
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1917
1927
|
readonly message: string;
|
|
1918
|
-
readonly
|
|
1928
|
+
readonly retryAfterMs?: number | undefined;
|
|
1919
1929
|
};
|
|
1920
1930
|
};
|
|
1921
1931
|
} | {
|
|
1922
1932
|
readonly kind: "job";
|
|
1923
1933
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1924
1934
|
readonly end: {
|
|
1925
|
-
readonly code: number | null;
|
|
1926
1935
|
readonly kind: "exited";
|
|
1927
|
-
readonly
|
|
1936
|
+
readonly code: number | null;
|
|
1937
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1928
1938
|
} | {
|
|
1929
1939
|
readonly kind: "lost";
|
|
1930
1940
|
};
|
|
1931
1941
|
} | {
|
|
1932
1942
|
readonly kind: "part";
|
|
1943
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1933
1944
|
readonly answer: {
|
|
1934
|
-
readonly input: Json;
|
|
1935
1945
|
readonly action: string;
|
|
1946
|
+
readonly input: Json;
|
|
1936
1947
|
} | null;
|
|
1937
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1938
1948
|
} | {
|
|
1939
1949
|
readonly kind: "timer";
|
|
1940
1950
|
} | {
|
|
1941
1951
|
readonly kind: "deadline";
|
|
1942
1952
|
} | {
|
|
1943
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1944
1953
|
readonly kind: "input";
|
|
1954
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
1945
1955
|
} | {
|
|
1946
1956
|
readonly kind: "all";
|
|
1947
1957
|
readonly outcomes: readonly ({
|
|
1948
1958
|
readonly kind: "run";
|
|
1949
|
-
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1950
1959
|
readonly session: import("@nyte-ai/schema").Id<"session">;
|
|
1960
|
+
readonly run: import("@nyte-ai/schema").Id<"run">;
|
|
1951
1961
|
readonly end: {
|
|
1952
1962
|
readonly kind: "completed";
|
|
1953
1963
|
readonly usage: {
|
|
@@ -1970,35 +1980,35 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
1970
1980
|
} | {
|
|
1971
1981
|
readonly kind: "failed";
|
|
1972
1982
|
readonly failure: {
|
|
1973
|
-
readonly
|
|
1983
|
+
readonly class: "aborted" | "auth" | "context_window" | "network" | "overloaded" | "provider" | "quota" | "rate_limit" | "runner";
|
|
1974
1984
|
readonly message: string;
|
|
1975
|
-
readonly
|
|
1985
|
+
readonly retryAfterMs?: number | undefined;
|
|
1976
1986
|
};
|
|
1977
1987
|
};
|
|
1978
1988
|
} | {
|
|
1979
1989
|
readonly kind: "job";
|
|
1980
1990
|
readonly job: import("@nyte-ai/schema").Id<"job">;
|
|
1981
1991
|
readonly end: {
|
|
1982
|
-
readonly code: number | null;
|
|
1983
1992
|
readonly kind: "exited";
|
|
1984
|
-
readonly
|
|
1993
|
+
readonly code: number | null;
|
|
1994
|
+
readonly reason: "exited" | "expired" | "host-lost" | "terminated";
|
|
1985
1995
|
} | {
|
|
1986
1996
|
readonly kind: "lost";
|
|
1987
1997
|
};
|
|
1988
1998
|
} | {
|
|
1989
1999
|
readonly kind: "part";
|
|
2000
|
+
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1990
2001
|
readonly answer: {
|
|
1991
|
-
readonly input: Json;
|
|
1992
2002
|
readonly action: string;
|
|
2003
|
+
readonly input: Json;
|
|
1993
2004
|
} | null;
|
|
1994
|
-
readonly part: import("@nyte-ai/schema").Id<"part">;
|
|
1995
2005
|
} | {
|
|
1996
2006
|
readonly kind: "timer";
|
|
1997
2007
|
} | {
|
|
1998
2008
|
readonly kind: "deadline";
|
|
1999
2009
|
} | {
|
|
2000
|
-
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
2001
2010
|
readonly kind: "input";
|
|
2011
|
+
readonly message: import("@nyte-ai/schema").Id<"message">;
|
|
2002
2012
|
} | {
|
|
2003
2013
|
readonly kind: "all";
|
|
2004
2014
|
readonly outcomes: readonly any[];
|
|
@@ -2011,8 +2021,8 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
2011
2021
|
} | {
|
|
2012
2022
|
readonly kind: "stopped";
|
|
2013
2023
|
}>, Type.TNull]>>>>;
|
|
2014
|
-
acquisitions: Type.TReadonly<Type.TRecord<"^.*$",
|
|
2015
|
-
result: Type.TReadonly<Type.TUnion<[
|
|
2024
|
+
acquisitions: Type.TReadonly<Type.TRecord<"^.*$", TUnsafe<Json>>>;
|
|
2025
|
+
result: Type.TReadonly<Type.TUnion<[TUnsafe<Json>, Type.TNull]>>;
|
|
2016
2026
|
replay: Type.TReadonly<Type.TEnum<["safe", "never"]>>;
|
|
2017
2027
|
reran: Type.TReadonly<Type.TUnion<[Type.TObject<{
|
|
2018
2028
|
waits: Type.TReadonly<Type.TNumber>;
|
|
@@ -2022,7 +2032,7 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
2022
2032
|
}>;
|
|
2023
2033
|
principals: Type.TObject<{
|
|
2024
2034
|
principals: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TObject<{
|
|
2025
|
-
id: Type.TReadonly<
|
|
2035
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"principal">>>;
|
|
2026
2036
|
label: Type.TReadonly<Type.TString>;
|
|
2027
2037
|
authority: Type.TReadonly<Type.TImmutable<Type.TArray<Type.TEnum<["participant", "owner", "maintenance"]>>>>;
|
|
2028
2038
|
pairedAt: Type.TReadonly<Type.TNumber>;
|
|
@@ -2036,7 +2046,7 @@ export declare const STORED_RECORD_TYPES: {
|
|
|
2036
2046
|
}>>>>;
|
|
2037
2047
|
}>;
|
|
2038
2048
|
identity: Type.TObject<{
|
|
2039
|
-
id: Type.TReadonly<
|
|
2049
|
+
id: Type.TReadonly<TUnsafe<import("@nyte-ai/schema").Id<"host">>>;
|
|
2040
2050
|
createdAt: Type.TReadonly<Type.TNumber>;
|
|
2041
2051
|
}>;
|
|
2042
2052
|
};
|