@atcx/contract 0.0.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -30
- package/dist/agent-list.d.ts +215 -0
- package/dist/agent-session-id.d.ts +2 -0
- package/dist/answer-view.d.ts +10 -0
- package/dist/check-daemon.d.ts +15 -0
- package/dist/commit-id-pattern.d.ts +1 -0
- package/dist/config-file-schema.d.ts +15 -0
- package/dist/contract-version.d.ts +1 -0
- package/dist/daemon-contract.d.ts +1646 -0
- package/dist/daemon-error-map.d.ts +9 -0
- package/dist/daemon-event.d.ts +424 -0
- package/dist/daemon-features.d.ts +2 -0
- package/dist/daemon-id.d.ts +2 -0
- package/dist/events-page.d.ts +39 -0
- package/dist/fleet-entry-view.d.ts +32 -0
- package/dist/fleet-event.d.ts +35 -0
- package/dist/git-probe-result.d.ts +18 -0
- package/dist/git-ref.d.ts +10 -0
- package/dist/hello-result.d.ts +16 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +1124 -0
- package/dist/light/error-codes.d.ts +2 -0
- package/dist/light/index.d.ts +6 -0
- package/dist/light/index.js +132 -0
- package/dist/light/message-sender.d.ts +17 -0
- package/dist/light/resolve-atc-paths.d.ts +11 -0
- package/dist/light/resolve-home-dir.d.ts +1 -0
- package/dist/light/resolve-state-dir.d.ts +1 -0
- package/dist/light/session-env-names.d.ts +8 -0
- package/dist/menu-view.d.ts +12 -0
- package/dist/message-answer.d.ts +10 -0
- package/dist/message-id.d.ts +2 -0
- package/dist/message-status.d.ts +7 -0
- package/dist/message-view.d.ts +36 -0
- package/dist/note-view.d.ts +10 -0
- package/dist/procedure-meta.d.ts +10 -0
- package/dist/published-record-schema.d.ts +3 -0
- package/dist/published-record.d.ts +41 -0
- package/dist/request-param-schemas.d.ts +252 -0
- package/dist/restart-result.d.ts +28 -0
- package/dist/schema/build-optional-boolean.d.ts +2 -0
- package/dist/schema/build-optional-non-empty-string.d.ts +2 -0
- package/dist/schema/build-optional-string-array.d.ts +2 -0
- package/dist/schema/build-optional-string.d.ts +2 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/index.js +26 -0
- package/dist/session-descriptor.d.ts +71 -0
- package/dist/session-id.d.ts +2 -0
- package/dist/session-lifecycle.d.ts +26 -0
- package/dist/session-workspace.d.ts +8 -0
- package/dist/source-candidate.d.ts +13 -0
- package/dist/source-entry.d.ts +10 -0
- package/dist/source-interpretation.d.ts +14 -0
- package/dist/source-pick.d.ts +9 -0
- package/dist/spawn-answer.d.ts +73 -0
- package/dist/spawn-option-spec.d.ts +16 -0
- package/dist/to-agent-session-id.d.ts +2 -0
- package/dist/to-daemon-id.d.ts +2 -0
- package/dist/to-message-id.d.ts +2 -0
- package/dist/to-session-id.d.ts +2 -0
- package/dist/transcript-row.d.ts +14 -0
- package/package.json +34 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ErrorCode } from './light/error-codes.js';
|
|
3
|
+
declare const ERROR_DATA_SCHEMA: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4
|
+
export interface DaemonErrorMap extends Readonly<Record<ErrorCode, {
|
|
5
|
+
readonly data: typeof ERROR_DATA_SCHEMA;
|
|
6
|
+
}>> {
|
|
7
|
+
}
|
|
8
|
+
export declare const DAEMON_ERROR_MAP: DaemonErrorMap;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DAEMON_EVENT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
session: z.ZodObject<{
|
|
4
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
cwd: z.ZodString;
|
|
7
|
+
state: z.ZodEnum<{
|
|
8
|
+
done: "done";
|
|
9
|
+
exited: "exited";
|
|
10
|
+
needs_you: "needs_you";
|
|
11
|
+
running: "running";
|
|
12
|
+
}>;
|
|
13
|
+
unread: z.ZodBoolean;
|
|
14
|
+
lastMsg: z.ZodString;
|
|
15
|
+
lastDetail: z.ZodOptional<z.ZodString>;
|
|
16
|
+
restoreRefusal: z.ZodOptional<z.ZodString>;
|
|
17
|
+
agentSessionID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./agent-session-id.js").AgentSessionID, string>>>;
|
|
18
|
+
agent: z.ZodString;
|
|
19
|
+
pinned: z.ZodBoolean;
|
|
20
|
+
lastAttachedAt: z.ZodNumber;
|
|
21
|
+
repoRoot: z.ZodString;
|
|
22
|
+
namedBy: z.ZodEnum<{
|
|
23
|
+
agent: "agent";
|
|
24
|
+
auto: "auto";
|
|
25
|
+
user: "user";
|
|
26
|
+
}>;
|
|
27
|
+
createdAt: z.ZodNumber;
|
|
28
|
+
kind: z.ZodEnum<{
|
|
29
|
+
headless: "headless";
|
|
30
|
+
pty: "pty";
|
|
31
|
+
}>;
|
|
32
|
+
alive: z.ZodBoolean;
|
|
33
|
+
canEject: z.ZodBoolean;
|
|
34
|
+
parent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>>;
|
|
35
|
+
locator: z.ZodObject<{
|
|
36
|
+
daemonID: z.ZodPipe<z.ZodString, z.ZodTransform<import("./daemon-id.js").DaemonID, string>>;
|
|
37
|
+
targetID: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
repoURL: z.ZodString;
|
|
41
|
+
sha: z.ZodString;
|
|
42
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
43
|
+
materializedAt: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
lifecycle: z.ZodObject<{
|
|
46
|
+
desired: z.ZodEnum<{
|
|
47
|
+
run: "run";
|
|
48
|
+
sleep: "sleep";
|
|
49
|
+
stop: "stop";
|
|
50
|
+
}>;
|
|
51
|
+
vm: z.ZodEnum<{
|
|
52
|
+
asleep: "asleep";
|
|
53
|
+
awake: "awake";
|
|
54
|
+
none: "none";
|
|
55
|
+
unknown: "unknown";
|
|
56
|
+
}>;
|
|
57
|
+
harness: z.ZodEnum<{
|
|
58
|
+
exited: "exited";
|
|
59
|
+
running: "running";
|
|
60
|
+
suspended: "suspended";
|
|
61
|
+
}>;
|
|
62
|
+
attachment: z.ZodEnum<{
|
|
63
|
+
attached: "attached";
|
|
64
|
+
detached: "detached";
|
|
65
|
+
local: "local";
|
|
66
|
+
reattaching: "reattaching";
|
|
67
|
+
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
model: z.ZodOptional<z.ZodString>;
|
|
70
|
+
pluginDirs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
ev: z.ZodLiteral<"SessionAdded">;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
session: z.ZodObject<{
|
|
75
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
cwd: z.ZodString;
|
|
78
|
+
state: z.ZodEnum<{
|
|
79
|
+
done: "done";
|
|
80
|
+
exited: "exited";
|
|
81
|
+
needs_you: "needs_you";
|
|
82
|
+
running: "running";
|
|
83
|
+
}>;
|
|
84
|
+
unread: z.ZodBoolean;
|
|
85
|
+
lastMsg: z.ZodString;
|
|
86
|
+
lastDetail: z.ZodOptional<z.ZodString>;
|
|
87
|
+
restoreRefusal: z.ZodOptional<z.ZodString>;
|
|
88
|
+
agentSessionID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./agent-session-id.js").AgentSessionID, string>>>;
|
|
89
|
+
agent: z.ZodString;
|
|
90
|
+
pinned: z.ZodBoolean;
|
|
91
|
+
lastAttachedAt: z.ZodNumber;
|
|
92
|
+
repoRoot: z.ZodString;
|
|
93
|
+
namedBy: z.ZodEnum<{
|
|
94
|
+
agent: "agent";
|
|
95
|
+
auto: "auto";
|
|
96
|
+
user: "user";
|
|
97
|
+
}>;
|
|
98
|
+
createdAt: z.ZodNumber;
|
|
99
|
+
kind: z.ZodEnum<{
|
|
100
|
+
headless: "headless";
|
|
101
|
+
pty: "pty";
|
|
102
|
+
}>;
|
|
103
|
+
alive: z.ZodBoolean;
|
|
104
|
+
canEject: z.ZodBoolean;
|
|
105
|
+
parent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>>;
|
|
106
|
+
locator: z.ZodObject<{
|
|
107
|
+
daemonID: z.ZodPipe<z.ZodString, z.ZodTransform<import("./daemon-id.js").DaemonID, string>>;
|
|
108
|
+
targetID: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
repoURL: z.ZodString;
|
|
112
|
+
sha: z.ZodString;
|
|
113
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
114
|
+
materializedAt: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
lifecycle: z.ZodObject<{
|
|
117
|
+
desired: z.ZodEnum<{
|
|
118
|
+
run: "run";
|
|
119
|
+
sleep: "sleep";
|
|
120
|
+
stop: "stop";
|
|
121
|
+
}>;
|
|
122
|
+
vm: z.ZodEnum<{
|
|
123
|
+
asleep: "asleep";
|
|
124
|
+
awake: "awake";
|
|
125
|
+
none: "none";
|
|
126
|
+
unknown: "unknown";
|
|
127
|
+
}>;
|
|
128
|
+
harness: z.ZodEnum<{
|
|
129
|
+
exited: "exited";
|
|
130
|
+
running: "running";
|
|
131
|
+
suspended: "suspended";
|
|
132
|
+
}>;
|
|
133
|
+
attachment: z.ZodEnum<{
|
|
134
|
+
attached: "attached";
|
|
135
|
+
detached: "detached";
|
|
136
|
+
local: "local";
|
|
137
|
+
reattaching: "reattaching";
|
|
138
|
+
}>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
model: z.ZodOptional<z.ZodString>;
|
|
141
|
+
pluginDirs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
ev: z.ZodLiteral<"SessionState">;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
session: z.ZodObject<{
|
|
146
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
cwd: z.ZodString;
|
|
149
|
+
state: z.ZodEnum<{
|
|
150
|
+
done: "done";
|
|
151
|
+
exited: "exited";
|
|
152
|
+
needs_you: "needs_you";
|
|
153
|
+
running: "running";
|
|
154
|
+
}>;
|
|
155
|
+
unread: z.ZodBoolean;
|
|
156
|
+
lastMsg: z.ZodString;
|
|
157
|
+
lastDetail: z.ZodOptional<z.ZodString>;
|
|
158
|
+
restoreRefusal: z.ZodOptional<z.ZodString>;
|
|
159
|
+
agentSessionID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./agent-session-id.js").AgentSessionID, string>>>;
|
|
160
|
+
agent: z.ZodString;
|
|
161
|
+
pinned: z.ZodBoolean;
|
|
162
|
+
lastAttachedAt: z.ZodNumber;
|
|
163
|
+
repoRoot: z.ZodString;
|
|
164
|
+
namedBy: z.ZodEnum<{
|
|
165
|
+
agent: "agent";
|
|
166
|
+
auto: "auto";
|
|
167
|
+
user: "user";
|
|
168
|
+
}>;
|
|
169
|
+
createdAt: z.ZodNumber;
|
|
170
|
+
kind: z.ZodEnum<{
|
|
171
|
+
headless: "headless";
|
|
172
|
+
pty: "pty";
|
|
173
|
+
}>;
|
|
174
|
+
alive: z.ZodBoolean;
|
|
175
|
+
canEject: z.ZodBoolean;
|
|
176
|
+
parent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>>;
|
|
177
|
+
locator: z.ZodObject<{
|
|
178
|
+
daemonID: z.ZodPipe<z.ZodString, z.ZodTransform<import("./daemon-id.js").DaemonID, string>>;
|
|
179
|
+
targetID: z.ZodString;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
repoURL: z.ZodString;
|
|
183
|
+
sha: z.ZodString;
|
|
184
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
185
|
+
materializedAt: z.ZodNumber;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
lifecycle: z.ZodObject<{
|
|
188
|
+
desired: z.ZodEnum<{
|
|
189
|
+
run: "run";
|
|
190
|
+
sleep: "sleep";
|
|
191
|
+
stop: "stop";
|
|
192
|
+
}>;
|
|
193
|
+
vm: z.ZodEnum<{
|
|
194
|
+
asleep: "asleep";
|
|
195
|
+
awake: "awake";
|
|
196
|
+
none: "none";
|
|
197
|
+
unknown: "unknown";
|
|
198
|
+
}>;
|
|
199
|
+
harness: z.ZodEnum<{
|
|
200
|
+
exited: "exited";
|
|
201
|
+
running: "running";
|
|
202
|
+
suspended: "suspended";
|
|
203
|
+
}>;
|
|
204
|
+
attachment: z.ZodEnum<{
|
|
205
|
+
attached: "attached";
|
|
206
|
+
detached: "detached";
|
|
207
|
+
local: "local";
|
|
208
|
+
reattaching: "reattaching";
|
|
209
|
+
}>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
model: z.ZodOptional<z.ZodString>;
|
|
212
|
+
pluginDirs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
ev: z.ZodLiteral<"SessionAttached">;
|
|
215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
216
|
+
session: z.ZodObject<{
|
|
217
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
cwd: z.ZodString;
|
|
220
|
+
state: z.ZodEnum<{
|
|
221
|
+
done: "done";
|
|
222
|
+
exited: "exited";
|
|
223
|
+
needs_you: "needs_you";
|
|
224
|
+
running: "running";
|
|
225
|
+
}>;
|
|
226
|
+
unread: z.ZodBoolean;
|
|
227
|
+
lastMsg: z.ZodString;
|
|
228
|
+
lastDetail: z.ZodOptional<z.ZodString>;
|
|
229
|
+
restoreRefusal: z.ZodOptional<z.ZodString>;
|
|
230
|
+
agentSessionID: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./agent-session-id.js").AgentSessionID, string>>>;
|
|
231
|
+
agent: z.ZodString;
|
|
232
|
+
pinned: z.ZodBoolean;
|
|
233
|
+
lastAttachedAt: z.ZodNumber;
|
|
234
|
+
repoRoot: z.ZodString;
|
|
235
|
+
namedBy: z.ZodEnum<{
|
|
236
|
+
agent: "agent";
|
|
237
|
+
auto: "auto";
|
|
238
|
+
user: "user";
|
|
239
|
+
}>;
|
|
240
|
+
createdAt: z.ZodNumber;
|
|
241
|
+
kind: z.ZodEnum<{
|
|
242
|
+
headless: "headless";
|
|
243
|
+
pty: "pty";
|
|
244
|
+
}>;
|
|
245
|
+
alive: z.ZodBoolean;
|
|
246
|
+
canEject: z.ZodBoolean;
|
|
247
|
+
parent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./session-id.js").SessionID, string>>>;
|
|
248
|
+
locator: z.ZodObject<{
|
|
249
|
+
daemonID: z.ZodPipe<z.ZodString, z.ZodTransform<import("./daemon-id.js").DaemonID, string>>;
|
|
250
|
+
targetID: z.ZodString;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
repoURL: z.ZodString;
|
|
254
|
+
sha: z.ZodString;
|
|
255
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
256
|
+
materializedAt: z.ZodNumber;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
lifecycle: z.ZodObject<{
|
|
259
|
+
desired: z.ZodEnum<{
|
|
260
|
+
run: "run";
|
|
261
|
+
sleep: "sleep";
|
|
262
|
+
stop: "stop";
|
|
263
|
+
}>;
|
|
264
|
+
vm: z.ZodEnum<{
|
|
265
|
+
asleep: "asleep";
|
|
266
|
+
awake: "awake";
|
|
267
|
+
none: "none";
|
|
268
|
+
unknown: "unknown";
|
|
269
|
+
}>;
|
|
270
|
+
harness: z.ZodEnum<{
|
|
271
|
+
exited: "exited";
|
|
272
|
+
running: "running";
|
|
273
|
+
suspended: "suspended";
|
|
274
|
+
}>;
|
|
275
|
+
attachment: z.ZodEnum<{
|
|
276
|
+
attached: "attached";
|
|
277
|
+
detached: "detached";
|
|
278
|
+
local: "local";
|
|
279
|
+
reattaching: "reattaching";
|
|
280
|
+
}>;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
model: z.ZodOptional<z.ZodString>;
|
|
283
|
+
pluginDirs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
ev: z.ZodLiteral<"SessionDetached">;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
ev: z.ZodLiteral<"SessionRenamed">;
|
|
288
|
+
sessionID: z.ZodString;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
namedBy: z.ZodEnum<{
|
|
291
|
+
agent: "agent";
|
|
292
|
+
auto: "auto";
|
|
293
|
+
user: "user";
|
|
294
|
+
}>;
|
|
295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
+
ev: z.ZodLiteral<"SessionRemoved">;
|
|
297
|
+
sessionID: z.ZodString;
|
|
298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
299
|
+
ev: z.ZodLiteral<"SessionResized">;
|
|
300
|
+
sessionID: z.ZodString;
|
|
301
|
+
cols: z.ZodNumber;
|
|
302
|
+
rows: z.ZodNumber;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
ev: z.ZodLiteral<"SessionOutput">;
|
|
305
|
+
sessionID: z.ZodString;
|
|
306
|
+
seq: z.ZodNumber;
|
|
307
|
+
data: z.ZodString;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
+
ev: z.ZodLiteral<"SessionDesync">;
|
|
310
|
+
sessionID: z.ZodString;
|
|
311
|
+
dropped: z.ZodNumber;
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
313
|
+
ev: z.ZodLiteral<"PermissionRequested">;
|
|
314
|
+
request: z.ZodString;
|
|
315
|
+
sessionID: z.ZodString;
|
|
316
|
+
message: z.ZodString;
|
|
317
|
+
respondable: z.ZodBoolean;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
ev: z.ZodLiteral<"PermissionResolved">;
|
|
320
|
+
request: z.ZodString;
|
|
321
|
+
decision: z.ZodString;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
+
ev: z.ZodLiteral<"SessionMessage">;
|
|
324
|
+
sessionID: z.ZodString;
|
|
325
|
+
message: z.ZodString;
|
|
326
|
+
status: z.ZodEnum<{
|
|
327
|
+
answered: "answered";
|
|
328
|
+
delivered: "delivered";
|
|
329
|
+
queued: "queued";
|
|
330
|
+
unanswered: "unanswered";
|
|
331
|
+
}>;
|
|
332
|
+
from: z.ZodString;
|
|
333
|
+
sender: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
334
|
+
kind: z.ZodLiteral<"connector">;
|
|
335
|
+
client: z.ZodString;
|
|
336
|
+
name: z.ZodString;
|
|
337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
+
kind: z.ZodLiteral<"session">;
|
|
339
|
+
session: z.ZodString;
|
|
340
|
+
name: z.ZodString;
|
|
341
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
+
kind: z.ZodLiteral<"local">;
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
+
kind: z.ZodLiteral<"owner">;
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
}, z.core.$strip>], "kind">>;
|
|
348
|
+
textPreview: z.ZodString;
|
|
349
|
+
sentAt: z.ZodNumber;
|
|
350
|
+
deliveredAt: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
answeredAt: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
answerPreview: z.ZodOptional<z.ZodString>;
|
|
353
|
+
unansweredAt: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
unansweredReason: z.ZodOptional<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
356
|
+
ev: z.ZodLiteral<"SessionNote">;
|
|
357
|
+
sessionID: z.ZodString;
|
|
358
|
+
kind: z.ZodString;
|
|
359
|
+
text: z.ZodString;
|
|
360
|
+
sentAt: z.ZodNumber;
|
|
361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
362
|
+
ev: z.ZodLiteral<"InboxMessage">;
|
|
363
|
+
sessionID: z.ZodString;
|
|
364
|
+
message: z.ZodString;
|
|
365
|
+
from: z.ZodString;
|
|
366
|
+
sender: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
367
|
+
kind: z.ZodLiteral<"connector">;
|
|
368
|
+
client: z.ZodString;
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
kind: z.ZodLiteral<"session">;
|
|
372
|
+
session: z.ZodString;
|
|
373
|
+
name: z.ZodString;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"local">;
|
|
376
|
+
name: z.ZodString;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
kind: z.ZodLiteral<"owner">;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
}, z.core.$strip>], "kind">>;
|
|
381
|
+
text: z.ZodString;
|
|
382
|
+
sentAt: z.ZodNumber;
|
|
383
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
384
|
+
ev: z.ZodLiteral<"InboxNotice">;
|
|
385
|
+
sessionID: z.ZodString;
|
|
386
|
+
message: z.ZodString;
|
|
387
|
+
from: z.ZodString;
|
|
388
|
+
status: z.ZodEnum<{
|
|
389
|
+
answered: "answered";
|
|
390
|
+
unanswered: "unanswered";
|
|
391
|
+
}>;
|
|
392
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
393
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
394
|
+
at: z.ZodNumber;
|
|
395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
396
|
+
ev: z.ZodLiteral<"InboxClosed">;
|
|
397
|
+
sessionID: z.ZodString;
|
|
398
|
+
reason: z.ZodEnum<{
|
|
399
|
+
removed: "removed";
|
|
400
|
+
replaced: "replaced";
|
|
401
|
+
}>;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
ev: z.ZodLiteral<"DaemonRestarted">;
|
|
404
|
+
result: z.ZodObject<{
|
|
405
|
+
runID: z.ZodString;
|
|
406
|
+
code: z.ZodNumber;
|
|
407
|
+
pid: z.ZodNullable<z.ZodNumber>;
|
|
408
|
+
build: z.ZodNullable<z.ZodString>;
|
|
409
|
+
listenPort: z.ZodNullable<z.ZodNumber>;
|
|
410
|
+
restored: z.ZodNumber;
|
|
411
|
+
total: z.ZodNumber;
|
|
412
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
reason: z.ZodString;
|
|
416
|
+
}, z.core.$strip>>>;
|
|
417
|
+
interrupted: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
418
|
+
name: z.ZodString;
|
|
419
|
+
id: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>>;
|
|
421
|
+
error: z.ZodNullable<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
}, z.core.$strip>], "ev">;
|
|
424
|
+
export type DaemonEvent = z.output<typeof DAEMON_EVENT_SCHEMA>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EVENTS_PAGE_SCHEMA: z.ZodObject<{
|
|
3
|
+
events: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4
|
+
cursor: z.ZodString;
|
|
5
|
+
at: z.ZodNumber;
|
|
6
|
+
session: z.ZodString;
|
|
7
|
+
name: z.ZodNullable<z.ZodString>;
|
|
8
|
+
kind: z.ZodString;
|
|
9
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
10
|
+
message: z.ZodOptional<z.ZodString>;
|
|
11
|
+
label: z.ZodOptional<z.ZodString>;
|
|
12
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
runID: z.ZodString;
|
|
14
|
+
code: z.ZodNumber;
|
|
15
|
+
pid: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
build: z.ZodNullable<z.ZodString>;
|
|
17
|
+
listenPort: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
restored: z.ZodNumber;
|
|
19
|
+
total: z.ZodNumber;
|
|
20
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
reason: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
interrupted: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
error: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
daemon: z.ZodString;
|
|
33
|
+
incarnation: z.ZodString;
|
|
34
|
+
cursor: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
cursor: z.ZodString;
|
|
38
|
+
more: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FLEET_ENTRY_VIEW_SCHEMA: z.ZodObject<{
|
|
3
|
+
sessionID: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
cwd: z.ZodString;
|
|
6
|
+
agentSessionID: z.ZodOptional<z.ZodString>;
|
|
7
|
+
agent: z.ZodString;
|
|
8
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
lastAttachedAt: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
exited: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
12
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
result: z.ZodOptional<z.ZodString>;
|
|
14
|
+
transcriptPath: z.ZodOptional<z.ZodString>;
|
|
15
|
+
model: z.ZodOptional<z.ZodString>;
|
|
16
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
17
|
+
pluginDirs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
target: z.ZodOptional<z.ZodString>;
|
|
19
|
+
targetIdentity: z.ZodOptional<z.ZodString>;
|
|
20
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
repoURL: z.ZodString;
|
|
22
|
+
sha: z.ZodString;
|
|
23
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
24
|
+
materializedAt: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
withheldEnv: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
27
|
+
desired: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
sleep: "sleep";
|
|
29
|
+
stop: "stop";
|
|
30
|
+
}>>;
|
|
31
|
+
hostKey: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FLEET_EVENT_SCHEMA: z.ZodObject<{
|
|
3
|
+
cursor: z.ZodString;
|
|
4
|
+
at: z.ZodNumber;
|
|
5
|
+
session: z.ZodString;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
kind: z.ZodString;
|
|
8
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
9
|
+
message: z.ZodOptional<z.ZodString>;
|
|
10
|
+
label: z.ZodOptional<z.ZodString>;
|
|
11
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
runID: z.ZodString;
|
|
13
|
+
code: z.ZodNumber;
|
|
14
|
+
pid: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
build: z.ZodNullable<z.ZodString>;
|
|
16
|
+
listenPort: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
restored: z.ZodNumber;
|
|
18
|
+
total: z.ZodNumber;
|
|
19
|
+
failed: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
reason: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
interrupted: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
error: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
daemon: z.ZodString;
|
|
32
|
+
incarnation: z.ZodString;
|
|
33
|
+
cursor: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GIT_PROBE_RESULT_SCHEMA: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
head: z.ZodNullable<z.ZodString>;
|
|
5
|
+
refs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
|
+
branch: "branch";
|
|
9
|
+
tag: "tag";
|
|
10
|
+
}>;
|
|
11
|
+
sha: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
resolved: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
sha: z.ZodString;
|
|
15
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type GitProbeResult = z.output<typeof GIT_PROBE_RESULT_SCHEMA>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HELLO_RESULT_SCHEMA: z.ZodObject<{
|
|
3
|
+
daemon: z.ZodString;
|
|
4
|
+
daemonID: z.ZodString;
|
|
5
|
+
limits: z.ZodObject<{
|
|
6
|
+
maxLine: z.ZodNumber;
|
|
7
|
+
maxChunk: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
idempotency: z.ZodObject<{
|
|
10
|
+
completedRetentionMs: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
lastUsedAgent: z.ZodString;
|
|
13
|
+
peerSession: z.ZodNullable<z.ZodString>;
|
|
14
|
+
features: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type HelloResult = z.output<typeof HELLO_RESULT_SCHEMA>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type * from './agent-session-id.js';
|
|
2
|
+
export * from './agent-list.js';
|
|
3
|
+
export * from './answer-view.js';
|
|
4
|
+
export * from './check-daemon.js';
|
|
5
|
+
export * from './commit-id-pattern.js';
|
|
6
|
+
export * from './config-file-schema.js';
|
|
7
|
+
export * from './contract-version.js';
|
|
8
|
+
export * from './daemon-contract.js';
|
|
9
|
+
export * from './daemon-error-map.js';
|
|
10
|
+
export * from './daemon-event.js';
|
|
11
|
+
export * from './daemon-features.js';
|
|
12
|
+
export * from './events-page.js';
|
|
13
|
+
export type * from './daemon-id.js';
|
|
14
|
+
export * from './fleet-entry-view.js';
|
|
15
|
+
export * from './fleet-event.js';
|
|
16
|
+
export * from './git-probe-result.js';
|
|
17
|
+
export * from './git-ref.js';
|
|
18
|
+
export * from './hello-result.js';
|
|
19
|
+
export * from './light/index.js';
|
|
20
|
+
export * from './menu-view.js';
|
|
21
|
+
export * from './message-answer.js';
|
|
22
|
+
export type * from './message-id.js';
|
|
23
|
+
export * from './message-status.js';
|
|
24
|
+
export * from './message-view.js';
|
|
25
|
+
export * from './note-view.js';
|
|
26
|
+
export * from './procedure-meta.js';
|
|
27
|
+
export type * from './published-record.js';
|
|
28
|
+
export * from './published-record-schema.js';
|
|
29
|
+
export * from './request-param-schemas.js';
|
|
30
|
+
export * from './restart-result.js';
|
|
31
|
+
export * from './session-descriptor.js';
|
|
32
|
+
export type * from './session-id.js';
|
|
33
|
+
export * from './session-lifecycle.js';
|
|
34
|
+
export * from './session-workspace.js';
|
|
35
|
+
export * from './source-candidate.js';
|
|
36
|
+
export * from './source-entry.js';
|
|
37
|
+
export * from './source-interpretation.js';
|
|
38
|
+
export * from './source-pick.js';
|
|
39
|
+
export * from './spawn-answer.js';
|
|
40
|
+
export * from './spawn-option-spec.js';
|
|
41
|
+
export * from './to-agent-session-id.js';
|
|
42
|
+
export * from './to-daemon-id.js';
|
|
43
|
+
export * from './to-message-id.js';
|
|
44
|
+
export * from './to-session-id.js';
|
|
45
|
+
export * from './transcript-row.js';
|