@agentrix/shared 1.0.12 → 1.0.13
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.cjs +10 -2
- package/dist/index.d.cts +921 -897
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1036,6 +1036,10 @@ const WorkerRunningSchema = EventBaseSchema.extend({
|
|
|
1036
1036
|
machineId: zod.z.string(),
|
|
1037
1037
|
timestamp: zod.z.string()
|
|
1038
1038
|
});
|
|
1039
|
+
const WorkerStatusRequestSchema = EventBaseSchema.extend({
|
|
1040
|
+
taskId: zod.z.string(),
|
|
1041
|
+
timestamp: zod.z.string()
|
|
1042
|
+
});
|
|
1039
1043
|
const baseTaskSchema = EventBaseSchema.extend({
|
|
1040
1044
|
taskId: zod.z.string(),
|
|
1041
1045
|
userId: zod.z.string(),
|
|
@@ -1213,7 +1217,7 @@ const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
|
|
|
1213
1217
|
const TaskInfoUpdateEventDataSchema = EventBaseSchema.extend({
|
|
1214
1218
|
taskId: zod.z.string(),
|
|
1215
1219
|
chatId: zod.z.string(),
|
|
1216
|
-
updates: zod.z.record(zod.z.any()),
|
|
1220
|
+
updates: zod.z.record(zod.z.any()).optional(),
|
|
1217
1221
|
// Flexible updates object for any task fields
|
|
1218
1222
|
updatedAt: zod.z.string()
|
|
1219
1223
|
// ISO 8601 timestamp
|
|
@@ -1290,6 +1294,7 @@ const EventSchemaMap = {
|
|
|
1290
1294
|
"worker-alive": WorkerAliveEventSchema,
|
|
1291
1295
|
"worker-exit": WorkerExitSchema,
|
|
1292
1296
|
"worker-running": WorkerRunningSchema,
|
|
1297
|
+
"worker-status-request": WorkerStatusRequestSchema,
|
|
1293
1298
|
// Task events
|
|
1294
1299
|
"create-task": createTaskSchema,
|
|
1295
1300
|
"resume-task": resumeTaskSchema,
|
|
@@ -1388,7 +1393,9 @@ const ClaudeConfigSchema = zod.z.object({
|
|
|
1388
1393
|
pullRequestPrompt: zod.z.object({
|
|
1389
1394
|
path: zod.z.string(),
|
|
1390
1395
|
mode: zod.z.enum(["append", "replace"]).optional().default("append")
|
|
1391
|
-
}).optional()
|
|
1396
|
+
}).optional(),
|
|
1397
|
+
// SDK MCP Tools - scripts that export createSdkMcpServer()
|
|
1398
|
+
sdkMcpTools: zod.z.array(zod.z.string()).optional()
|
|
1392
1399
|
});
|
|
1393
1400
|
|
|
1394
1401
|
class AgentError extends Error {
|
|
@@ -2038,6 +2045,7 @@ exports.WorkerExitSchema = WorkerExitSchema;
|
|
|
2038
2045
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
2039
2046
|
exports.WorkerReadySchema = WorkerReadySchema;
|
|
2040
2047
|
exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
2048
|
+
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
2041
2049
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
2042
2050
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
2043
2051
|
exports.assertAgentExists = assertAgentExists;
|