@kikimoradev/kcloud 1.8.0 → 1.10.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/dist/main.js +31 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1075,16 +1075,37 @@ const agentEventSchema = z.discriminatedUnion("event", [
|
|
|
1075
1075
|
}),
|
|
1076
1076
|
z.looseObject({
|
|
1077
1077
|
...roleEnvelope("session.text"),
|
|
1078
|
+
sessionId: z.string().optional(),
|
|
1078
1079
|
text: z.string()
|
|
1079
1080
|
}),
|
|
1081
|
+
z.looseObject({
|
|
1082
|
+
...roleEnvelope("session.thinking"),
|
|
1083
|
+
sessionId: z.string().optional(),
|
|
1084
|
+
text: z.string(),
|
|
1085
|
+
truncated: z.boolean().optional()
|
|
1086
|
+
}),
|
|
1080
1087
|
z.looseObject({
|
|
1081
1088
|
...roleEnvelope("session.tool"),
|
|
1089
|
+
sessionId: z.string().optional(),
|
|
1082
1090
|
tool: z.string(),
|
|
1083
|
-
detail: z.string()
|
|
1091
|
+
detail: z.string(),
|
|
1092
|
+
toolUseId: z.string().optional(),
|
|
1093
|
+
input: z.unknown().optional(),
|
|
1094
|
+
inputTruncated: z.boolean().optional()
|
|
1095
|
+
}),
|
|
1096
|
+
z.looseObject({
|
|
1097
|
+
...roleEnvelope("session.toolResult"),
|
|
1098
|
+
sessionId: z.string().optional(),
|
|
1099
|
+
toolUseId: z.string(),
|
|
1100
|
+
output: z.string(),
|
|
1101
|
+
truncated: z.boolean().optional()
|
|
1084
1102
|
}),
|
|
1085
1103
|
z.looseObject({
|
|
1086
1104
|
...roleEnvelope("session.toolError"),
|
|
1087
|
-
|
|
1105
|
+
sessionId: z.string().optional(),
|
|
1106
|
+
toolUseId: z.string().optional(),
|
|
1107
|
+
output: z.string(),
|
|
1108
|
+
truncated: z.boolean().optional()
|
|
1088
1109
|
})
|
|
1089
1110
|
]);
|
|
1090
1111
|
z.looseObject({
|
|
@@ -1466,10 +1487,17 @@ const costQuerySchema = z.object({
|
|
|
1466
1487
|
from: z.iso.date(),
|
|
1467
1488
|
to: z.iso.date()
|
|
1468
1489
|
});
|
|
1490
|
+
const agentCostSchema = z.object({
|
|
1491
|
+
agentId: idSchema,
|
|
1492
|
+
name: z.string().nullable(),
|
|
1493
|
+
costUsd: z.number().min(0),
|
|
1494
|
+
runs: z.int().nonnegative()
|
|
1495
|
+
}).meta({ id: "AgentCost" });
|
|
1469
1496
|
const projectCostSchema = z.object({
|
|
1470
1497
|
projectId: idSchema,
|
|
1471
1498
|
costUsd: z.number().min(0),
|
|
1472
|
-
runs: z.int().nonnegative()
|
|
1499
|
+
runs: z.int().nonnegative(),
|
|
1500
|
+
agents: z.array(agentCostSchema)
|
|
1473
1501
|
}).meta({ id: "ProjectCost" });
|
|
1474
1502
|
costSeriesSchema.extend({ projects: z.array(projectCostSchema) }).meta({ id: "OrganizationCosts" });
|
|
1475
1503
|
pageSchema(z.object({
|