@pxlabz/tasq-mcp 0.1.9 → 0.1.10

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/README.md CHANGED
@@ -70,7 +70,7 @@ tool that sends a project update: an agent drafts, and a person sends.
70
70
  | `thread_context` | `tasq thread context` | `workspace`, `threadId`, `format` (`markdown` by default) |
71
71
  | `project_list` | `tasq project list` | `workspace` |
72
72
  | `initiative_list` | `tasq initiative list` | `workspace` |
73
- | `project_update_list` | `tasq update list` | `workspace`, `project` |
73
+ | `project_update_list` | `tasq update list` | `workspace`, `project`, `limit` |
74
74
  | `project_update_draft` | `tasq update draft` | `workspace`, `project`, `health`, `body` |
75
75
  | `cycle_current` | `tasq cycle current` | `workspace`, `team` |
76
76
  | `events_listen` | `tasq events listen` | `workspace`, `wait` (seconds, 0–25) |
package/dist/tasq-mcp.js CHANGED
@@ -22299,6 +22299,7 @@ function toTasqError(status, body, retryAfterHeader) {
22299
22299
  }
22300
22300
 
22301
22301
  // ../sdk/src/client.ts
22302
+ var PROJECT_UPDATES_PAGE_MAX = 100;
22302
22303
  function assertPrefix(token, prefix, label) {
22303
22304
  if (!token.startsWith(prefix)) {
22304
22305
  throw new Error(
@@ -22472,10 +22473,32 @@ var TasqClient = class _TasqClient {
22472
22473
  * approving it.
22473
22474
  */
22474
22475
  projectUpdates = {
22475
- /** Every update on the project, drafts included, newest first. */
22476
- list: async (slug, projectId) => (await this.#get(
22477
- `/workspaces/${encodeURIComponent(slug)}/projects/${encodeURIComponent(projectId)}/updates`
22478
- )).updates,
22476
+ /**
22477
+ * Every update on the project, drafts included, newest first. Follows
22478
+ * `nextCursor` until the last page; use `listPage` for one page.
22479
+ */
22480
+ list: async (slug, projectId) => {
22481
+ const updates = [];
22482
+ let before;
22483
+ do {
22484
+ const page = await this.projectUpdates.listPage(slug, projectId, {
22485
+ limit: PROJECT_UPDATES_PAGE_MAX,
22486
+ before
22487
+ });
22488
+ updates.push(...page.updates);
22489
+ before = page.nextCursor ?? void 0;
22490
+ } while (before !== void 0);
22491
+ return updates;
22492
+ },
22493
+ /**
22494
+ * One page of the project's updates, drafts included, newest first; pass
22495
+ * `nextCursor` as `before` for the next. The API returns 20 by default,
22496
+ * at most 100.
22497
+ */
22498
+ listPage: (slug, projectId, query = {}) => this.#get(
22499
+ `/workspaces/${encodeURIComponent(slug)}/projects/${encodeURIComponent(projectId)}/updates`,
22500
+ { limit: query.limit, before: query.before }
22501
+ ),
22479
22502
  draft: (slug, input) => this.dispatch("projectUpdate.create", slug, input),
22480
22503
  create: (slug, input) => this.dispatch("projectUpdate.create", slug, input),
22481
22504
  update: (slug, input) => this.dispatch("projectUpdate.update", slug, input),
@@ -30612,7 +30635,7 @@ var EMPTY_COMPLETION_RESULT = {
30612
30635
  // package.json
30613
30636
  var package_default = {
30614
30637
  name: "@pxlabz/tasq-mcp",
30615
- version: "0.1.9",
30638
+ version: "0.1.10",
30616
30639
  description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
30617
30640
  keywords: [
30618
30641
  "tasq",
@@ -31429,12 +31452,22 @@ var definitions = [
31429
31452
  description: "List a project's updates, drafts included, newest first.",
31430
31453
  schema: external_exports.object({
31431
31454
  ...workspaceFields,
31432
- project: external_exports.string().describe("Project id or name.")
31455
+ project: external_exports.string().describe("Project id or name."),
31456
+ limit: external_exports.number().int().min(1).max(100).optional().describe(
31457
+ "Only the latest n updates, 1-100, as one page with nextCursor; omit for all of them."
31458
+ )
31433
31459
  }),
31434
31460
  run: async ({ client, config: config2 }, input) => {
31435
31461
  const slug = requireWorkspace(config2, input);
31436
31462
  const projectId = await resolveProjectId(client, slug, input.project);
31437
- return { data: await client.projectUpdates.list(slug, projectId) };
31463
+ if (input.limit === void 0) {
31464
+ return { data: await client.projectUpdates.list(slug, projectId) };
31465
+ }
31466
+ return {
31467
+ data: await client.projectUpdates.listPage(slug, projectId, {
31468
+ limit: input.limit
31469
+ })
31470
+ };
31438
31471
  }
31439
31472
  }),
31440
31473
  // Drafting is the whole agent surface: there is no send tool, because
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxlabz/tasq-mcp",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
5
5
  "keywords": [
6
6
  "tasq",
@@ -48,7 +48,7 @@
48
48
  "zod": "4.3.6"
49
49
  },
50
50
  "devDependencies": {
51
- "@pxlabz/tasq-sdk": "0.1.4",
51
+ "@pxlabz/tasq-sdk": "0.1.13",
52
52
  "@types/bun": "^1.3.12",
53
53
  "tsup": "^8.5.0",
54
54
  "typescript": "^5.7.2"