@lucern/contracts 0.3.0-alpha.13 → 0.3.0-alpha.15

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.
@@ -5044,6 +5044,19 @@ var createTaskArgs = z.object({
5044
5044
  tags: z.array(z.string()).optional().describe("Free-form tags."),
5045
5045
  metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
5046
5046
  });
5047
+ var updateTaskArgs = z.object({
5048
+ taskId: z.string().describe("Task to update."),
5049
+ title: z.string().optional().describe("Updated task title."),
5050
+ description: z.string().optional().describe("Updated task description."),
5051
+ priority: taskPrioritySchema.optional().describe("Updated priority."),
5052
+ status: taskStatusSchema2.optional().describe("Updated status."),
5053
+ linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
5054
+ linkedBeliefId: z.string().optional().describe("Belief this task supports."),
5055
+ linkedQuestionId: z.string().optional().describe("Question this task addresses."),
5056
+ assigneeId: z.string().optional().describe("Principal assigned to the task."),
5057
+ blockedReason: z.string().optional().describe("Reason the task is blocked or deferred."),
5058
+ metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
5059
+ });
5047
5060
  var createTaskInput = (input) => compactRecord({
5048
5061
  title: input.title,
5049
5062
  topicId: input.topicId,
@@ -5130,7 +5143,8 @@ var tasksContracts = [
5130
5143
  kind: "mutation",
5131
5144
  inputProjection: taskInput
5132
5145
  },
5133
- gateway: { handler: "tasks.update" }
5146
+ gateway: { handler: "tasks.update" },
5147
+ args: updateTaskArgs
5134
5148
  }),
5135
5149
  surfaceContract({
5136
5150
  name: "complete_task",