@pxlabz/tasq-mcp 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/tasq-mcp.js +45 -6
  2. package/package.json +1 -1
package/dist/tasq-mcp.js CHANGED
@@ -30544,7 +30544,7 @@ var EMPTY_COMPLETION_RESULT = {
30544
30544
  // package.json
30545
30545
  var package_default = {
30546
30546
  name: "@pxlabz/tasq-mcp",
30547
- version: "0.1.1",
30547
+ version: "0.1.3",
30548
30548
  description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
30549
30549
  keywords: [
30550
30550
  "tasq",
@@ -30918,6 +30918,19 @@ function commentIdOf(ref) {
30918
30918
 
30919
30919
  // src/tools.ts
30920
30920
  var PRIORITY_INPUT = external_exports.enum(["urgent", "high", "medium", "low", "none"]);
30921
+ var DATE_INPUT = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Use YYYY-MM-DD");
30922
+ var DATE_OR_NONE = external_exports.union([DATE_INPUT, external_exports.literal("none")]);
30923
+ function datesInput(taskId, input) {
30924
+ if (input.due === void 0 && input.start === void 0) return null;
30925
+ const action = { taskId };
30926
+ if (input.due !== void 0) {
30927
+ action.dueDate = input.due === "none" ? null : input.due;
30928
+ }
30929
+ if (input.start !== void 0) {
30930
+ action.startDate = input.start === "none" ? null : input.start;
30931
+ }
30932
+ return action;
30933
+ }
30921
30934
  var workspaceFields = {
30922
30935
  workspace: external_exports.string().optional().describe("Workspace slug; defaults to TASQ_WORKSPACE.")
30923
30936
  };
@@ -30999,6 +31012,8 @@ var definitions = [
30999
31012
  priority: PRIORITY_INPUT.optional(),
31000
31013
  project: external_exports.string().optional().describe("Project id."),
31001
31014
  cycle: external_exports.string().optional().describe("Cycle id."),
31015
+ due: external_exports.enum(["overdue", "today", "week", "none"]).optional().describe('Due-date bucket; "none" is tasks with no due date.'),
31016
+ sort: external_exports.enum(["due"]).optional().describe("Order by due date instead of board order."),
31002
31017
  q: external_exports.string().optional().describe("Search text."),
31003
31018
  includeArchived: external_exports.boolean().optional()
31004
31019
  }),
@@ -31011,6 +31026,8 @@ var definitions = [
31011
31026
  if (input.cycle !== void 0) query.cycle = input.cycle;
31012
31027
  if (input.q !== void 0) query.q = input.q;
31013
31028
  if (input.priority !== void 0) query.priority = input.priority;
31029
+ if (input.due !== void 0) query.due = input.due;
31030
+ if (input.sort !== void 0) query.sort = input.sort;
31014
31031
  if (input.includeArchived === true) query.includeArchived = true;
31015
31032
  if (input.status !== void 0) {
31016
31033
  const teamIdentifier = await resolveTeamIdentifier(
@@ -31051,7 +31068,9 @@ var definitions = [
31051
31068
  description: external_exports.string().optional().describe("Description in Markdown."),
31052
31069
  priority: PRIORITY_INPUT.optional(),
31053
31070
  project: external_exports.string().optional().describe("Project id or name."),
31054
- labels: external_exports.string().optional().describe("Comma-separated label names.")
31071
+ labels: external_exports.string().optional().describe("Comma-separated label names."),
31072
+ due: DATE_INPUT.optional().describe("Due date, YYYY-MM-DD."),
31073
+ start: DATE_INPUT.optional().describe("Start date, YYYY-MM-DD.")
31055
31074
  }),
31056
31075
  run: async ({ client, config: config2 }, input) => {
31057
31076
  const slug = requireWorkspace(config2, input);
@@ -31078,6 +31097,13 @@ var definitions = [
31078
31097
  "create",
31079
31098
  () => client.dispatch("task.create", slug, action)
31080
31099
  );
31100
+ const dates = datesInput(created.result.task.id, input);
31101
+ if (dates) {
31102
+ await steps.run(
31103
+ "dates",
31104
+ () => client.dispatch("task.setDates", slug, dates)
31105
+ );
31106
+ }
31081
31107
  for (const [index, labelId] of labelIds.entries()) {
31082
31108
  await steps.run(
31083
31109
  `label "${labelNames[index] ?? labelId}"`,
@@ -31092,20 +31118,26 @@ var definitions = [
31092
31118
  }),
31093
31119
  define({
31094
31120
  name: "task_update",
31095
- description: "Update a task's title, description, priority or status.",
31121
+ description: "Update a task's title, description, priority, status or dates.",
31096
31122
  schema: external_exports.object({
31097
31123
  ...workspaceFields,
31098
31124
  id: external_exports.string().describe("Task key such as ENG-42, or a task id."),
31099
31125
  title: external_exports.string().optional(),
31100
31126
  description: external_exports.string().optional().describe("Description in Markdown."),
31101
31127
  priority: PRIORITY_INPUT.optional(),
31102
- status: external_exports.string().optional().describe("Status name on the task's team.")
31128
+ status: external_exports.string().optional().describe("Status name on the task's team."),
31129
+ due: DATE_OR_NONE.optional().describe(
31130
+ 'Due date, YYYY-MM-DD, or "none" to clear it.'
31131
+ ),
31132
+ start: DATE_OR_NONE.optional().describe(
31133
+ 'Start date, YYYY-MM-DD, or "none" to clear it.'
31134
+ )
31103
31135
  }),
31104
31136
  run: async ({ client, config: config2 }, input) => {
31105
31137
  const slug = requireWorkspace(config2, input);
31106
- if (input.title === void 0 && input.description === void 0 && input.priority === void 0 && input.status === void 0) {
31138
+ if (input.title === void 0 && input.description === void 0 && input.priority === void 0 && input.status === void 0 && input.due === void 0 && input.start === void 0) {
31107
31139
  throw new UsageError(
31108
- "Nothing to update. Pass at least one of title, description, priority, status."
31140
+ "Nothing to update. Pass at least one of title, description, priority, status, due, start."
31109
31141
  );
31110
31142
  }
31111
31143
  const taskId = await resolveTaskId(client, slug, input.id);
@@ -31133,6 +31165,13 @@ var definitions = [
31133
31165
  })
31134
31166
  );
31135
31167
  }
31168
+ const dates = datesInput(task.id, input);
31169
+ if (dates) {
31170
+ await steps.run(
31171
+ "dates",
31172
+ () => client.dispatch("task.setDates", slug, dates)
31173
+ );
31174
+ }
31136
31175
  if (input.status !== void 0) {
31137
31176
  const statusName = input.status;
31138
31177
  await steps.run("status", async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxlabz/tasq-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
5
5
  "keywords": [
6
6
  "tasq",