@boxxy/contract 0.0.0-stage → 0.1.3
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 +39 -2
- package/dist/access.d.ts +81 -0
- package/dist/boxxy-client.d.ts +3 -0
- package/dist/contract.d.ts +542 -0
- package/dist/index.d.ts +3 -0
- package/package.json +40 -4
- package/src/access.ts +98 -0
- package/src/boxxy-client.ts +5 -0
- package/src/contract.ts +518 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const contract: {
|
|
3
|
+
item: {
|
|
4
|
+
file: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
5
|
+
repo: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
outcome: z.ZodString;
|
|
8
|
+
acceptance: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
10
|
+
designMode: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
agent: "agent";
|
|
12
|
+
attended: "attended";
|
|
13
|
+
}>>;
|
|
14
|
+
blockedBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
item: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, {
|
|
19
|
+
NOT_FOUND: {
|
|
20
|
+
message: string;
|
|
21
|
+
data: z.ZodObject<{
|
|
22
|
+
item: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
edit: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
27
|
+
item: z.ZodString;
|
|
28
|
+
title: z.ZodOptional<z.ZodString>;
|
|
29
|
+
outcome: z.ZodOptional<z.ZodString>;
|
|
30
|
+
acceptance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
text: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
designMode: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
agent: "agent";
|
|
36
|
+
attended: "attended";
|
|
37
|
+
}>>;
|
|
38
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
item: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, {
|
|
42
|
+
NOT_FOUND: {
|
|
43
|
+
message: string;
|
|
44
|
+
data: z.ZodObject<{
|
|
45
|
+
item: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
close: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
50
|
+
item: z.ZodString;
|
|
51
|
+
reason: z.ZodString;
|
|
52
|
+
of: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
item: z.ZodString;
|
|
55
|
+
ended: z.ZodArray<z.ZodObject<{
|
|
56
|
+
attempt: z.ZodString;
|
|
57
|
+
how: z.ZodEnum<{
|
|
58
|
+
closing: "closing";
|
|
59
|
+
settled: "settled";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>, {
|
|
63
|
+
NOT_FOUND: {
|
|
64
|
+
message: string;
|
|
65
|
+
data: z.ZodObject<{
|
|
66
|
+
item: z.ZodString;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
retry: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
71
|
+
item: z.ZodString;
|
|
72
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
lever: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>, {
|
|
76
|
+
NOT_FOUND: {
|
|
77
|
+
message: string;
|
|
78
|
+
data: z.ZodObject<{
|
|
79
|
+
item: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
};
|
|
82
|
+
UNKNOWN_PHASE: {
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
wake: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
87
|
+
item: z.ZodString;
|
|
88
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"requested">;
|
|
90
|
+
attempt: z.ZodString;
|
|
91
|
+
atcSession: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"not-sleeping">;
|
|
94
|
+
}, z.core.$strip>], "kind">, {
|
|
95
|
+
NOT_FOUND: {
|
|
96
|
+
message: string;
|
|
97
|
+
data: z.ZodObject<{
|
|
98
|
+
item: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
};
|
|
101
|
+
}>;
|
|
102
|
+
note: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
103
|
+
item: z.ZodString;
|
|
104
|
+
text: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
item: z.ZodString;
|
|
107
|
+
seq: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>, {
|
|
109
|
+
NOT_FOUND: {
|
|
110
|
+
message: string;
|
|
111
|
+
data: z.ZodObject<{
|
|
112
|
+
item: z.ZodString;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
};
|
|
115
|
+
}>;
|
|
116
|
+
get: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
117
|
+
item: z.ZodString;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
item: z.ZodType<import("@boxxy/model").ItemView, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").ItemView, unknown>>;
|
|
120
|
+
notes: z.ZodArray<z.ZodType<import("@boxxy/model").NoteRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").NoteRow, unknown>>>;
|
|
121
|
+
attempts: z.ZodArray<z.ZodType<import("@boxxy/model").AttemptRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").AttemptRow, unknown>>>;
|
|
122
|
+
relations: z.ZodArray<z.ZodType<import("@boxxy/model").RelationRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").RelationRow, unknown>>>;
|
|
123
|
+
evidence: z.ZodArray<z.ZodType<import("@boxxy/model").EvidenceRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").EvidenceRow, unknown>>>;
|
|
124
|
+
pullRequests: z.ZodArray<z.ZodType<import("@boxxy/model").PullRequestRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").PullRequestRow, unknown>>>;
|
|
125
|
+
}, z.core.$strip>, {
|
|
126
|
+
NOT_FOUND: {
|
|
127
|
+
message: string;
|
|
128
|
+
data: z.ZodObject<{
|
|
129
|
+
item: z.ZodString;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
};
|
|
132
|
+
}>;
|
|
133
|
+
list: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
134
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
archived: "archived";
|
|
136
|
+
blocked: "blocked";
|
|
137
|
+
done: "done";
|
|
138
|
+
idea: "idea";
|
|
139
|
+
ready: "ready";
|
|
140
|
+
running: "running";
|
|
141
|
+
waiting: "waiting";
|
|
142
|
+
}>>;
|
|
143
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
144
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
145
|
+
text: z.ZodOptional<z.ZodString>;
|
|
146
|
+
label: z.ZodOptional<z.ZodString>;
|
|
147
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
after: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
+
items: z.ZodArray<z.ZodType<import("@boxxy/model").ItemView, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").ItemView, unknown>>>;
|
|
151
|
+
next: z.ZodNullable<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>, Record<never, never>>;
|
|
153
|
+
};
|
|
154
|
+
relation: {
|
|
155
|
+
add: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
156
|
+
source: z.ZodString;
|
|
157
|
+
type: z.ZodString;
|
|
158
|
+
target: z.ZodString;
|
|
159
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"added">;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
kind: z.ZodLiteral<"refused">;
|
|
163
|
+
reason: z.ZodEnum<{
|
|
164
|
+
cycle: "cycle";
|
|
165
|
+
exists: "exists";
|
|
166
|
+
"unknown-type": "unknown-type";
|
|
167
|
+
}>;
|
|
168
|
+
}, z.core.$strip>], "kind">, {
|
|
169
|
+
NOT_FOUND: {
|
|
170
|
+
message: string;
|
|
171
|
+
data: z.ZodObject<{
|
|
172
|
+
item: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
remove: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
177
|
+
source: z.ZodString;
|
|
178
|
+
type: z.ZodString;
|
|
179
|
+
target: z.ZodString;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
removed: z.ZodBoolean;
|
|
182
|
+
}, z.core.$strip>, {
|
|
183
|
+
NOT_FOUND: {
|
|
184
|
+
message: string;
|
|
185
|
+
data: z.ZodObject<{
|
|
186
|
+
item: z.ZodString;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
};
|
|
189
|
+
}>;
|
|
190
|
+
};
|
|
191
|
+
attempt: {
|
|
192
|
+
current: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
kind: z.ZodLiteral<"attempt">;
|
|
194
|
+
attempt: z.ZodType<import("@boxxy/model").AttemptRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").AttemptRow, unknown>>;
|
|
195
|
+
item: z.ZodType<import("@boxxy/model").ItemView, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").ItemView, unknown>>;
|
|
196
|
+
input: z.ZodJSONSchema;
|
|
197
|
+
closeOut: z.ZodObject<{
|
|
198
|
+
phase: z.ZodString;
|
|
199
|
+
schema: z.ZodJSONSchema;
|
|
200
|
+
outcomes: z.ZodArray<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
skills: z.ZodObject<{
|
|
203
|
+
pin: z.ZodNullable<z.ZodObject<{
|
|
204
|
+
source: z.ZodString;
|
|
205
|
+
ref: z.ZodString;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
names: z.ZodArray<z.ZodString>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
notes: z.ZodArray<z.ZodObject<{
|
|
210
|
+
seq: z.ZodNumber;
|
|
211
|
+
text: z.ZodString;
|
|
212
|
+
at: z.ZodNumber;
|
|
213
|
+
}, z.core.$strip>>;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
kind: z.ZodLiteral<"refused">;
|
|
216
|
+
reason: z.ZodEnum<{
|
|
217
|
+
"no-attempt": "no-attempt";
|
|
218
|
+
"not-current": "not-current";
|
|
219
|
+
}>;
|
|
220
|
+
}, z.core.$strip>], "kind">, Record<never, never>>;
|
|
221
|
+
closeOut: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
222
|
+
session: z.ZodObject<{
|
|
223
|
+
attempt: z.ZodString;
|
|
224
|
+
agentSession: z.ZodOptional<z.ZodString>;
|
|
225
|
+
product: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
claude_code: "claude_code";
|
|
227
|
+
codex: "codex";
|
|
228
|
+
}>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
closeOut: z.ZodUnknown;
|
|
231
|
+
}, z.core.$strip>, z.ZodType<import("@boxxy/model").CloseOutAnswer, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").CloseOutAnswer, unknown>>, Record<never, never>>;
|
|
232
|
+
evidence: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
233
|
+
session: z.ZodObject<{
|
|
234
|
+
attempt: z.ZodString;
|
|
235
|
+
agentSession: z.ZodOptional<z.ZodString>;
|
|
236
|
+
product: z.ZodOptional<z.ZodEnum<{
|
|
237
|
+
claude_code: "claude_code";
|
|
238
|
+
codex: "codex";
|
|
239
|
+
}>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
kind: z.ZodEnum<{
|
|
242
|
+
"ci-run": "ci-run";
|
|
243
|
+
"live-check": "live-check";
|
|
244
|
+
test: "test";
|
|
245
|
+
}>;
|
|
246
|
+
ref: z.ZodString;
|
|
247
|
+
observed: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
249
|
+
kind: z.ZodLiteral<"recorded">;
|
|
250
|
+
factId: z.ZodString;
|
|
251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
+
kind: z.ZodLiteral<"refused">;
|
|
253
|
+
reason: z.ZodEnum<{
|
|
254
|
+
"no-attempt": "no-attempt";
|
|
255
|
+
"not-current": "not-current";
|
|
256
|
+
}>;
|
|
257
|
+
}, z.core.$strip>], "kind">, Record<never, never>>;
|
|
258
|
+
bindSession: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
259
|
+
session: z.ZodObject<{
|
|
260
|
+
attempt: z.ZodNonOptional<z.ZodString>;
|
|
261
|
+
agentSession: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
262
|
+
product: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
claude_code: "claude_code";
|
|
264
|
+
codex: "codex";
|
|
265
|
+
}>>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
seenAt: z.ZodISODateTime;
|
|
268
|
+
missingSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
kind: z.ZodEnum<{
|
|
271
|
+
bound: "bound";
|
|
272
|
+
held: "held";
|
|
273
|
+
"no-attempt": "no-attempt";
|
|
274
|
+
"not-current": "not-current";
|
|
275
|
+
"skill-missing": "skill-missing";
|
|
276
|
+
}>;
|
|
277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"fault">;
|
|
279
|
+
fault: z.ZodLiteral<"agent-session-owned">;
|
|
280
|
+
holder: z.ZodString;
|
|
281
|
+
}, z.core.$strip>], "kind">, Record<never, never>>;
|
|
282
|
+
recordPullRequest: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
283
|
+
session: z.ZodObject<{
|
|
284
|
+
attempt: z.ZodString;
|
|
285
|
+
agentSession: z.ZodOptional<z.ZodString>;
|
|
286
|
+
product: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
claude_code: "claude_code";
|
|
288
|
+
codex: "codex";
|
|
289
|
+
}>>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
url: z.ZodURL;
|
|
292
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"linked">;
|
|
294
|
+
repo: z.ZodString;
|
|
295
|
+
number: z.ZodNumber;
|
|
296
|
+
repeat: z.ZodBoolean;
|
|
297
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
298
|
+
kind: z.ZodLiteral<"retry">;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
kind: z.ZodLiteral<"refused">;
|
|
301
|
+
reason: z.ZodEnum<{
|
|
302
|
+
"linked-elsewhere": "linked-elsewhere";
|
|
303
|
+
"no-attempt": "no-attempt";
|
|
304
|
+
"not-a-pull-request-url": "not-a-pull-request-url";
|
|
305
|
+
"not-current": "not-current";
|
|
306
|
+
}>;
|
|
307
|
+
}, z.core.$strip>], "kind">, Record<never, never>>;
|
|
308
|
+
};
|
|
309
|
+
plan: {
|
|
310
|
+
defer: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
311
|
+
item: z.ZodString;
|
|
312
|
+
until: z.ZodOptional<z.ZodISODateTime>;
|
|
313
|
+
reason: z.ZodString;
|
|
314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
315
|
+
lever: z.ZodNumber;
|
|
316
|
+
}, z.core.$strip>, {
|
|
317
|
+
NOT_FOUND: {
|
|
318
|
+
message: string;
|
|
319
|
+
data: z.ZodObject<{
|
|
320
|
+
item: z.ZodString;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
};
|
|
323
|
+
}>;
|
|
324
|
+
undefer: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
325
|
+
item: z.ZodString;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
lever: z.ZodNumber;
|
|
328
|
+
}, z.core.$strip>, {
|
|
329
|
+
NOT_FOUND: {
|
|
330
|
+
message: string;
|
|
331
|
+
data: z.ZodObject<{
|
|
332
|
+
item: z.ZodString;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
};
|
|
335
|
+
}>;
|
|
336
|
+
expedite: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
337
|
+
items: z.ZodArray<z.ZodString>;
|
|
338
|
+
reason: z.ZodString;
|
|
339
|
+
expires: z.ZodOptional<z.ZodISODateTime>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
levers: z.ZodArray<z.ZodNumber>;
|
|
342
|
+
}, z.core.$strip>, {
|
|
343
|
+
NOT_FOUND: {
|
|
344
|
+
message: string;
|
|
345
|
+
data: z.ZodObject<{
|
|
346
|
+
item: z.ZodString;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
};
|
|
349
|
+
}>;
|
|
350
|
+
unexpedite: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
351
|
+
item: z.ZodString;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
lever: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>, {
|
|
355
|
+
NOT_FOUND: {
|
|
356
|
+
message: string;
|
|
357
|
+
data: z.ZodObject<{
|
|
358
|
+
item: z.ZodString;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
};
|
|
361
|
+
}>;
|
|
362
|
+
};
|
|
363
|
+
runner: {
|
|
364
|
+
status: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
365
|
+
paused: z.ZodBoolean;
|
|
366
|
+
limits: z.ZodArray<z.ZodType<import("@boxxy/model").LimitFill, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").LimitFill, unknown>>>;
|
|
367
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
368
|
+
attempt: z.ZodType<import("@boxxy/model").AttemptRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").AttemptRow, unknown>>;
|
|
369
|
+
title: z.ZodString;
|
|
370
|
+
waitingSince: z.ZodNullable<z.ZodNumber>;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
strays: z.ZodArray<z.ZodType<import("@boxxy/model").AttemptRow, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").AttemptRow, unknown>>>;
|
|
373
|
+
notices: z.ZodObject<{
|
|
374
|
+
unsent: z.ZodNumber;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
outbox: z.ZodObject<{
|
|
377
|
+
sink: z.ZodEnum<{
|
|
378
|
+
none: "none";
|
|
379
|
+
pepys: "pepys";
|
|
380
|
+
}>;
|
|
381
|
+
state: z.ZodEnum<{
|
|
382
|
+
"backing-off": "backing-off";
|
|
383
|
+
blocked: "blocked";
|
|
384
|
+
idle: "idle";
|
|
385
|
+
off: "off";
|
|
386
|
+
sending: "sending";
|
|
387
|
+
}>;
|
|
388
|
+
unsent: z.ZodNumber;
|
|
389
|
+
parked: z.ZodNumber;
|
|
390
|
+
lag: z.ZodNullable<z.ZodNumber>;
|
|
391
|
+
failingSince: z.ZodNullable<z.ZodNumber>;
|
|
392
|
+
nextTryAt: z.ZodNullable<z.ZodNumber>;
|
|
393
|
+
lastError: z.ZodNullable<z.ZodObject<{
|
|
394
|
+
kind: z.ZodEnum<{
|
|
395
|
+
"refused-batch": "refused-batch";
|
|
396
|
+
"refused-sink": "refused-sink";
|
|
397
|
+
retry: "retry";
|
|
398
|
+
}>;
|
|
399
|
+
status: z.ZodNullable<z.ZodNumber>;
|
|
400
|
+
message: z.ZodString;
|
|
401
|
+
at: z.ZodNumber;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
lastStoredAt: z.ZodNullable<z.ZodNumber>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
rules: z.ZodObject<{
|
|
406
|
+
version: z.ZodString;
|
|
407
|
+
commit: z.ZodString;
|
|
408
|
+
lastRejected: z.ZodNullable<z.ZodObject<{
|
|
409
|
+
commit: z.ZodString;
|
|
410
|
+
rejections: z.ZodArray<z.ZodType<import("@boxxy/model").LoadRejection, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").LoadRejection, unknown>>>;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
}, z.core.$strip>, Record<never, never>>;
|
|
414
|
+
pause: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
415
|
+
paused: z.ZodLiteral<true>;
|
|
416
|
+
}, z.core.$strip>, Record<never, never>>;
|
|
417
|
+
resume: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
418
|
+
paused: z.ZodLiteral<false>;
|
|
419
|
+
}, z.core.$strip>, Record<never, never>>;
|
|
420
|
+
};
|
|
421
|
+
outbox: {
|
|
422
|
+
retry: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
423
|
+
unparked: z.ZodNumber;
|
|
424
|
+
}, z.core.$strip>, Record<never, never>>;
|
|
425
|
+
};
|
|
426
|
+
rules: {
|
|
427
|
+
dryRun: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
428
|
+
rules: z.ZodString;
|
|
429
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
430
|
+
kind: z.ZodLiteral<"loaded">;
|
|
431
|
+
version: z.ZodString;
|
|
432
|
+
moved: z.ZodNumber;
|
|
433
|
+
items: z.ZodArray<z.ZodObject<{
|
|
434
|
+
item: z.ZodString;
|
|
435
|
+
now: z.ZodType<import("@boxxy/model").Position, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").Position, unknown>>;
|
|
436
|
+
then: z.ZodType<import("@boxxy/model").Position, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").Position, unknown>>;
|
|
437
|
+
moved: z.ZodBoolean;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
440
|
+
kind: z.ZodLiteral<"rejected">;
|
|
441
|
+
rejections: z.ZodArray<z.ZodType<import("@boxxy/model").LoadRejection, unknown, z.core.$ZodTypeInternals<import("@boxxy/model").LoadRejection, unknown>>>;
|
|
442
|
+
}, z.core.$strip>], "kind">, Record<never, never>>;
|
|
443
|
+
};
|
|
444
|
+
report: {
|
|
445
|
+
cost: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
446
|
+
item: z.ZodString;
|
|
447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
448
|
+
landedAt: z.ZodNullable<z.ZodString>;
|
|
449
|
+
attempts: z.ZodNumber;
|
|
450
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
451
|
+
phase: z.ZodString;
|
|
452
|
+
rework: z.ZodBoolean;
|
|
453
|
+
product: z.ZodString;
|
|
454
|
+
model: z.ZodNullable<z.ZodString>;
|
|
455
|
+
requests: z.ZodNumber;
|
|
456
|
+
inputTokens: z.ZodNumber;
|
|
457
|
+
cacheReadTokens: z.ZodNumber;
|
|
458
|
+
cacheCreationTokens: z.ZodNumber;
|
|
459
|
+
outputTokens: z.ZodNumber;
|
|
460
|
+
costUSD: z.ZodNullable<z.ZodNumber>;
|
|
461
|
+
costBasis: z.ZodEnum<{
|
|
462
|
+
none: "none";
|
|
463
|
+
reported: "reported";
|
|
464
|
+
turn: "turn";
|
|
465
|
+
}>;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
totals: z.ZodObject<{
|
|
468
|
+
requests: z.ZodNumber;
|
|
469
|
+
costUSD: z.ZodNumber;
|
|
470
|
+
reworkCostUSD: z.ZodNumber;
|
|
471
|
+
requestsWithoutCost: z.ZodNumber;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
item: z.ZodString;
|
|
474
|
+
behind: z.ZodObject<{
|
|
475
|
+
facts: z.ZodNumber;
|
|
476
|
+
oldestAt: z.ZodNullable<z.ZodNumber>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
}, z.core.$strip>, {
|
|
479
|
+
NOT_FOUND: {
|
|
480
|
+
message: string;
|
|
481
|
+
data: z.ZodObject<{
|
|
482
|
+
item: z.ZodString;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
};
|
|
485
|
+
PEPYS_NOT_CONFIGURED: {
|
|
486
|
+
message: string;
|
|
487
|
+
};
|
|
488
|
+
PEPYS_UNAVAILABLE: {
|
|
489
|
+
message: string;
|
|
490
|
+
data: z.ZodObject<{
|
|
491
|
+
reason: z.ZodString;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
};
|
|
494
|
+
}>;
|
|
495
|
+
stageTimes: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<z.ZodObject<{
|
|
496
|
+
item: z.ZodString;
|
|
497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
+
environment: z.ZodString;
|
|
499
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
500
|
+
step: z.ZodEnum<{
|
|
501
|
+
build: "build";
|
|
502
|
+
deploy: "deploy";
|
|
503
|
+
design: "design";
|
|
504
|
+
merge: "merge";
|
|
505
|
+
release: "release";
|
|
506
|
+
review: "review";
|
|
507
|
+
triage: "triage";
|
|
508
|
+
}>;
|
|
509
|
+
minutes: z.ZodNullable<z.ZodNumber>;
|
|
510
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
511
|
+
}, z.core.$strip>>;
|
|
512
|
+
rework: z.ZodObject<{
|
|
513
|
+
count: z.ZodNumber;
|
|
514
|
+
minutes: z.ZodNumber;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
reviewWaitMinutes: z.ZodNullable<z.ZodNumber>;
|
|
517
|
+
sleepMinutes: z.ZodNumber;
|
|
518
|
+
pullRequests: z.ZodArray<z.ZodString>;
|
|
519
|
+
item: z.ZodString;
|
|
520
|
+
behind: z.ZodObject<{
|
|
521
|
+
facts: z.ZodNumber;
|
|
522
|
+
oldestAt: z.ZodNullable<z.ZodNumber>;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
}, z.core.$strip>, {
|
|
525
|
+
NOT_FOUND: {
|
|
526
|
+
message: string;
|
|
527
|
+
data: z.ZodObject<{
|
|
528
|
+
item: z.ZodString;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
};
|
|
531
|
+
PEPYS_NOT_CONFIGURED: {
|
|
532
|
+
message: string;
|
|
533
|
+
};
|
|
534
|
+
PEPYS_UNAVAILABLE: {
|
|
535
|
+
message: string;
|
|
536
|
+
data: z.ZodObject<{
|
|
537
|
+
reason: z.ZodString;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
};
|
|
540
|
+
}>;
|
|
541
|
+
};
|
|
542
|
+
};
|
package/dist/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boxxy/contract",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "The oRPC contract of the boxxy API and the table of who may call each procedure",
|
|
5
|
+
"homepage": "https://github.com/zgeoff/boxxy/tree/main/libs/contract#readme",
|
|
6
|
+
"bugs": "https://github.com/zgeoff/boxxy/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/zgeoff/boxxy.git",
|
|
11
|
+
"directory": "libs/contract"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src",
|
|
15
|
+
"!src/**/*.test.ts",
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./src/index.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "rm -rf dist && tsrs -p tsconfig.build.json",
|
|
30
|
+
"typecheck": "tsrs --noEmit"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@boxxy/model": "0.1.3",
|
|
34
|
+
"@orpc/contract": "2.0.0-beta.50",
|
|
35
|
+
"@orpc/mcp": "2.0.0-beta.50",
|
|
36
|
+
"zod": "4.6.7"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"bun": ">=1.3",
|
|
40
|
+
"node": ">=24"
|
|
41
|
+
}
|
|
42
|
+
}
|