@catamorphic/fastify-plugin 0.1.0-alpha.43 → 0.1.0-alpha.44
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/dist/index.js +21 -2
- package/dist/index.js.map +4 -4
- package/dist/routes/client-runners.d.ts.map +1 -1
- package/dist/schemas.d.ts +473 -1
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/routes/client-runners.ts +2 -1
- package/src/schemas.ts +30 -4
package/dist/index.js
CHANGED
|
@@ -758,7 +758,8 @@ var CacheFillSchema = z.object({
|
|
|
758
758
|
cache: z.string(),
|
|
759
759
|
machine: z.string().nullable(),
|
|
760
760
|
status: z.enum(["queued", "running", "succeeded", "failed", "evicted"]),
|
|
761
|
-
reason: z.enum(["requested", "first-use"]),
|
|
761
|
+
reason: z.enum(["requested", "first-use", "prepare"]),
|
|
762
|
+
restored: z.boolean(),
|
|
762
763
|
commit: z.string().nullable(),
|
|
763
764
|
generation: z.number().nullable(),
|
|
764
765
|
attempts: z.number(),
|
|
@@ -1425,6 +1426,21 @@ var AgentTurnUsageSchema = describes()(z.object({
|
|
|
1425
1426
|
contextTokens: z.number().optional(),
|
|
1426
1427
|
contextWindow: z.number().optional()
|
|
1427
1428
|
}));
|
|
1429
|
+
var TurnEndingSchema = describes()(z.discriminatedUnion("cause", [
|
|
1430
|
+
z.object({
|
|
1431
|
+
cause: z.literal("stopped"),
|
|
1432
|
+
by: z.string(),
|
|
1433
|
+
through: z.enum(["agent", "message", "closing"]).optional(),
|
|
1434
|
+
sessionId: z.string().optional()
|
|
1435
|
+
}),
|
|
1436
|
+
z.object({ cause: z.literal("host_stopped") }),
|
|
1437
|
+
z.object({
|
|
1438
|
+
cause: z.literal("process_ended"),
|
|
1439
|
+
exitCode: z.number().int().optional(),
|
|
1440
|
+
signal: z.string().optional()
|
|
1441
|
+
}),
|
|
1442
|
+
z.object({ cause: z.literal("machine_lost") })
|
|
1443
|
+
]));
|
|
1428
1444
|
var TurnOutcomeSchema = describes()(z.object({
|
|
1429
1445
|
changedFiles: z.array(z.object({ path: z.string(), kind: z.enum(["modified", "deleted"]) })),
|
|
1430
1446
|
usage: AgentTurnUsageSchema.optional(),
|
|
@@ -1459,6 +1475,7 @@ var TurnSchema = describes()(z.object({
|
|
|
1459
1475
|
providerThreadId: z.string().nullable(),
|
|
1460
1476
|
retryAt: z.string().nullable(),
|
|
1461
1477
|
cancellationRequested: z.boolean(),
|
|
1478
|
+
ending: TurnEndingSchema.nullable().describe("Why the turn ended without completing, or who asked a running turn to stop: stopped (by someone), host_stopped, process_ended or machine_lost. Only stopped is somebody's stop."),
|
|
1462
1479
|
error: TurnErrorSchema.nullable(),
|
|
1463
1480
|
outcome: TurnOutcomeSchema.nullable(),
|
|
1464
1481
|
checkpoint: z.object({
|
|
@@ -1496,6 +1513,7 @@ var AttemptSchema = describes()(z.object({
|
|
|
1496
1513
|
providerThreadId: z.string().nullable(),
|
|
1497
1514
|
nativeTurnRef: NativeRefSchema.nullable(),
|
|
1498
1515
|
error: TurnErrorSchema.nullable(),
|
|
1516
|
+
ending: TurnEndingSchema.nullable(),
|
|
1499
1517
|
createdAt: z.string(),
|
|
1500
1518
|
startedAt: z.string().nullable(),
|
|
1501
1519
|
completedAt: z.string().nullable()
|
|
@@ -4859,6 +4877,7 @@ function registerClientRunnerRoutes(app, ctx) {
|
|
|
4859
4877
|
"network.setup",
|
|
4860
4878
|
"volumes",
|
|
4861
4879
|
"caches",
|
|
4880
|
+
"caches.archive",
|
|
4862
4881
|
"commands.separate"
|
|
4863
4882
|
])).optional(),
|
|
4864
4883
|
publicKey: ExecutorPublicKeySchema.optional()
|
|
@@ -12439,5 +12458,5 @@ export {
|
|
|
12439
12458
|
serveSpaDist
|
|
12440
12459
|
};
|
|
12441
12460
|
|
|
12442
|
-
//# debugId=
|
|
12461
|
+
//# debugId=00789418A69F295964756E2164756E21
|
|
12443
12462
|
//# sourceMappingURL=index.js.map
|