@agentrix/shared 1.0.11 → 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 +21 -2
- package/dist/index.d.cts +1051 -790
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -267,6 +267,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
267
267
|
baseBranch: zod.z.string().nullable(),
|
|
268
268
|
title: zod.z.string().nullable(),
|
|
269
269
|
// Task title (can be set by worker)
|
|
270
|
+
customTitle: zod.z.string().nullable(),
|
|
271
|
+
// Custom task title (set by user, takes priority over title)
|
|
270
272
|
agentSessionId: zod.z.string().nullable(),
|
|
271
273
|
dataEncryptionKey: zod.z.string().nullable(),
|
|
272
274
|
cwd: zod.z.string().nullable(),
|
|
@@ -443,6 +445,13 @@ const UnarchiveTaskResponseSchema = zod.z.object({
|
|
|
443
445
|
success: zod.z.boolean(),
|
|
444
446
|
task: TaskItemSchema
|
|
445
447
|
});
|
|
448
|
+
const UpdateTaskTitleRequestSchema = zod.z.object({
|
|
449
|
+
customTitle: zod.z.string().min(1).max(200)
|
|
450
|
+
});
|
|
451
|
+
const UpdateTaskTitleResponseSchema = zod.z.object({
|
|
452
|
+
success: zod.z.boolean(),
|
|
453
|
+
task: TaskItemSchema
|
|
454
|
+
});
|
|
446
455
|
|
|
447
456
|
const ChatMemberSchema = zod.z.object({
|
|
448
457
|
id: IdSchema,
|
|
@@ -1027,6 +1036,10 @@ const WorkerRunningSchema = EventBaseSchema.extend({
|
|
|
1027
1036
|
machineId: zod.z.string(),
|
|
1028
1037
|
timestamp: zod.z.string()
|
|
1029
1038
|
});
|
|
1039
|
+
const WorkerStatusRequestSchema = EventBaseSchema.extend({
|
|
1040
|
+
taskId: zod.z.string(),
|
|
1041
|
+
timestamp: zod.z.string()
|
|
1042
|
+
});
|
|
1030
1043
|
const baseTaskSchema = EventBaseSchema.extend({
|
|
1031
1044
|
taskId: zod.z.string(),
|
|
1032
1045
|
userId: zod.z.string(),
|
|
@@ -1204,7 +1217,7 @@ const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
|
|
|
1204
1217
|
const TaskInfoUpdateEventDataSchema = EventBaseSchema.extend({
|
|
1205
1218
|
taskId: zod.z.string(),
|
|
1206
1219
|
chatId: zod.z.string(),
|
|
1207
|
-
updates: zod.z.record(zod.z.any()),
|
|
1220
|
+
updates: zod.z.record(zod.z.any()).optional(),
|
|
1208
1221
|
// Flexible updates object for any task fields
|
|
1209
1222
|
updatedAt: zod.z.string()
|
|
1210
1223
|
// ISO 8601 timestamp
|
|
@@ -1281,6 +1294,7 @@ const EventSchemaMap = {
|
|
|
1281
1294
|
"worker-alive": WorkerAliveEventSchema,
|
|
1282
1295
|
"worker-exit": WorkerExitSchema,
|
|
1283
1296
|
"worker-running": WorkerRunningSchema,
|
|
1297
|
+
"worker-status-request": WorkerStatusRequestSchema,
|
|
1284
1298
|
// Task events
|
|
1285
1299
|
"create-task": createTaskSchema,
|
|
1286
1300
|
"resume-task": resumeTaskSchema,
|
|
@@ -1379,7 +1393,9 @@ const ClaudeConfigSchema = zod.z.object({
|
|
|
1379
1393
|
pullRequestPrompt: zod.z.object({
|
|
1380
1394
|
path: zod.z.string(),
|
|
1381
1395
|
mode: zod.z.enum(["append", "replace"]).optional().default("append")
|
|
1382
|
-
}).optional()
|
|
1396
|
+
}).optional(),
|
|
1397
|
+
// SDK MCP Tools - scripts that export createSdkMcpServer()
|
|
1398
|
+
sdkMcpTools: zod.z.array(zod.z.string()).optional()
|
|
1383
1399
|
});
|
|
1384
1400
|
|
|
1385
1401
|
class AgentError extends Error {
|
|
@@ -2017,6 +2033,8 @@ exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
|
|
|
2017
2033
|
exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
|
|
2018
2034
|
exports.UpdateOAuthServerResponseSchema = UpdateOAuthServerResponseSchema;
|
|
2019
2035
|
exports.UpdateTaskAgentSessionIdEventSchema = UpdateTaskAgentSessionIdEventSchema;
|
|
2036
|
+
exports.UpdateTaskTitleRequestSchema = UpdateTaskTitleRequestSchema;
|
|
2037
|
+
exports.UpdateTaskTitleResponseSchema = UpdateTaskTitleResponseSchema;
|
|
2020
2038
|
exports.UploadUrlResultSchema = UploadUrlResultSchema;
|
|
2021
2039
|
exports.UserBalanceResponseSchema = UserBalanceResponseSchema;
|
|
2022
2040
|
exports.UserBasicInfoSchema = UserBasicInfoSchema;
|
|
@@ -2027,6 +2045,7 @@ exports.WorkerExitSchema = WorkerExitSchema;
|
|
|
2027
2045
|
exports.WorkerInitializingSchema = WorkerInitializingSchema;
|
|
2028
2046
|
exports.WorkerReadySchema = WorkerReadySchema;
|
|
2029
2047
|
exports.WorkerRunningSchema = WorkerRunningSchema;
|
|
2048
|
+
exports.WorkerStatusRequestSchema = WorkerStatusRequestSchema;
|
|
2030
2049
|
exports.WorkspaceFileRequestSchema = WorkspaceFileRequestSchema;
|
|
2031
2050
|
exports.WorkspaceFileResponseSchema = WorkspaceFileResponseSchema;
|
|
2032
2051
|
exports.assertAgentExists = assertAgentExists;
|