@critical-path/svelte 0.18.17 → 0.18.19

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/index.js +17 -4
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -4586,7 +4586,7 @@ var xn = $({
4586
4586
  }), wn = $({
4587
4587
  name: "list_tasks",
4588
4588
  title: "List Tasks",
4589
- description: "List tasks (oldest first), optionally filtered by project, status, priority, assignee or iteration. Returns { tasks, nextCursor }; pass nextCursor back as cursor to get the next page.",
4589
+ description: "List tasks (oldest first), optionally filtered by project, status, priority, assignee, iteration, deliverable, container or parent task ('none' for top-level tasks). Returns { tasks, nextCursor }; pass nextCursor back as cursor to get the next page.",
4590
4590
  zodSchema: W({
4591
4591
  projectId: z().optional().describe("Filter by project ID"),
4592
4592
  status: z().optional().describe("Filter by task status key"),
@@ -4599,6 +4599,9 @@ var xn = $({
4599
4599
  ]).optional().describe("Filter by priority"),
4600
4600
  assigneeId: z().optional().describe("Filter by assignee ID"),
4601
4601
  iterationId: z().optional().describe("Filter by iteration (sprint) ID"),
4602
+ deliverableId: z().optional().describe("Filter by deliverable ID"),
4603
+ containerId: z().optional().describe("Filter by container (e.g. epic) ID"),
4604
+ parentId: z().optional().describe("Subtasks of this task ID, or 'none' for top-level tasks only"),
4602
4605
  limit: B().int().min(1).max(500).optional().describe("Page size (default 100)"),
4603
4606
  cursor: z().optional().describe("nextCursor from a previous call")
4604
4607
  }),
@@ -4610,6 +4613,9 @@ var xn = $({
4610
4613
  priority: e.priority ? [e.priority] : void 0,
4611
4614
  assigneeId: e.assigneeId,
4612
4615
  iterationId: e.iterationId,
4616
+ deliverableId: e.deliverableId,
4617
+ containerId: e.containerId,
4618
+ ...e.parentId ? { parentId: e.parentId === "none" ? null : e.parentId } : {},
4613
4619
  limit: e.limit,
4614
4620
  cursor: e.cursor
4615
4621
  });
@@ -4633,7 +4639,7 @@ var xn = $({
4633
4639
  projectId: z().optional().describe("Project ID (inferred from active view in browser if omitted)"),
4634
4640
  title: z().describe("Title of the task"),
4635
4641
  description: z().optional().describe("Detailed description / markdown"),
4636
- status: z().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
4642
+ status: z().optional().describe("Status key (defaults to the project workflow's default status)"),
4637
4643
  priority: K([
4638
4644
  "urgent",
4639
4645
  "high",
@@ -4657,7 +4663,7 @@ var xn = $({
4657
4663
  projectId: r,
4658
4664
  title: e.title,
4659
4665
  description: e.description,
4660
- status: e.status || "todo",
4666
+ ...e.status ? { status: e.status } : {},
4661
4667
  priority: e.priority || "none",
4662
4668
  assigneeId: e.assigneeId,
4663
4669
  dueDate: e.dueDate,
@@ -4947,6 +4953,10 @@ function In(e) {
4947
4953
  let t = e.document ?? (typeof document < "u" ? document : null), n = e.navigator ?? (typeof navigator < "u" ? navigator : null), r = e.window ?? (typeof window < "u" ? window : null), i;
4948
4954
  t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = Fn(t) ?? void 0);
4949
4955
  let a = e.tools ? Pn.filter((t) => e.tools.includes(t.name)) : Pn, o = [], s = new AbortController();
4956
+ if (e.signal?.aborted) return {
4957
+ unregister: () => {},
4958
+ getRegisteredTools: () => []
4959
+ };
4950
4960
  e.signal && e.signal.addEventListener("abort", () => s.abort(), { once: !0 });
4951
4961
  for (let t of a) {
4952
4962
  let n = {
@@ -4954,7 +4964,10 @@ function In(e) {
4954
4964
  title: t.title,
4955
4965
  description: t.description,
4956
4966
  inputSchema: t.inputSchema,
4957
- annotations: t.annotations,
4967
+ annotations: {
4968
+ readOnlyHint: t.annotations?.readOnlyHint ?? !1,
4969
+ destructiveHint: t.annotations?.requiresConfirmation ?? !1
4970
+ },
4958
4971
  execute: async (n) => {
4959
4972
  let r = e.projectId ? { projectId: e.projectId } : void 0, i = await t.execute(bn(t, n), e.client, r);
4960
4973
  return e.onToolExecuted?.(t.name, n, i), i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@critical-path/svelte",
3
- "version": "0.18.17",
3
+ "version": "0.18.19",
4
4
  "description": "Svelte 5 Runes state and reactive integrations for Critical Path headless project management framework",
5
5
  "author": "Jack James",
6
6
  "license": "MIT",
@@ -18,9 +18,9 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@critical-path/client": "0.24.4",
22
- "@critical-path/core": "0.49.0",
23
- "@critical-path/mcp": "0.17.1"
21
+ "@critical-path/client": "0.25.0",
22
+ "@critical-path/mcp": "0.18.0",
23
+ "@critical-path/core": "0.51.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "svelte": "^5.0.0"