@critical-path/svelte 0.18.4 → 0.18.6

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 +5 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -4763,12 +4763,15 @@ var yn = [
4763
4763
  name: "calculate_critical_path",
4764
4764
  title: "Calculate Critical Path",
4765
4765
  description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
4766
- zodSchema: G({ projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)") }),
4766
+ zodSchema: G({
4767
+ projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)"),
4768
+ calendars: K(["project", "assignee"]).optional().describe("'assignee' schedules each task on its assignee's or team's working calendar; default uses the project calendar")
4769
+ }),
4767
4770
  annotations: { readOnlyHint: !0 },
4768
4771
  execute: async (e, t, n) => {
4769
4772
  let r = e.projectId || n?.projectId;
4770
4773
  if (!r) throw Error("projectId is required to calculate critical path.");
4771
- return t.calculateCriticalPath(r);
4774
+ return t.calculateCriticalPath(r, e.calendars ? { calendars: e.calendars } : void 0);
4772
4775
  }
4773
4776
  }),
4774
4777
  $({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@critical-path/svelte",
3
- "version": "0.18.4",
3
+ "version": "0.18.6",
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.20.9",
22
- "@critical-path/core": "0.39.0",
23
- "@critical-path/mcp": "0.11.11"
21
+ "@critical-path/core": "0.41.0",
22
+ "@critical-path/client": "0.21.1",
23
+ "@critical-path/mcp": "0.12.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "svelte": "^5.0.0"